2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
359 # maybe with a smaller string...
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 # Oops. We lost completely, so just stick with echo.
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="build/version.sh"
429 ac_default_prefix=/usr/local
430 # Factoring default headers for most tests.
431 ac_includes_default="\
434 # include <sys/types.h>
437 # include <sys/stat.h>
448 # if !STDC_HEADERS && HAVE_MEMORY_H
454 # include <strings.h>
457 # include <inttypes.h>
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar OPENLDAP_LIBRELEASE OPENLDAP_LIBVERSION OPENLDAP_RELEASE_DATE top_builddir ldap_subdir CC AR CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PERLBIN OL_MKDEP OL_MKDEP_FLAGS LTSTATIC LIBOBJS LIBSRCS PLAT WITH_SASL WITH_TLS WITH_MODULES_ENABLED BUILD_LIBS_DYNAMIC BUILD_SLAPD BUILD_SLAPI SLAPD_SLAPI_DEPEND BUILD_BDB BUILD_DNSSRV BUILD_HDB BUILD_LDAP BUILD_LDBM BUILD_META BUILD_MONITOR BUILD_NULL BUILD_PASSWD BUILD_RELAY BUILD_PERL BUILD_SHELL BUILD_SQL BUILD_ACCESSLOG BUILD_DENYOP BUILD_DYNGROUP BUILD_DYNLIST BUILD_GLUE BUILD_LASTMOD BUILD_PPOLICY BUILD_PROXYCACHE BUILD_REFINT BUILD_RETCODE BUILD_RWM BUILD_SYNCPROV BUILD_TRANSLUCENT BUILD_UNIQUE BUILD_SLURPD LDAP_LIBS SLAPD_LIBS SLURPD_LIBS LDBM_LIBS LTHREAD_LIBS LUTIL_LIBS WRAP_LIBS SLAPD_MODULES_CPPFLAGS SLAPD_MODULES_LDFLAGS SLAPD_NO_STATIC SLAPD_STATIC_BACKENDS SLAPD_DYNAMIC_BACKENDS SLAPD_STATIC_OVERLAYS SLAPD_DYNAMIC_OVERLAYS PERL_CPPFLAGS SLAPD_PERL_LDFLAGS MOD_PERL_LDFLAGS KRB4_LIBS KRB5_LIBS SASL_LIBS TLS_LIBS MODULES_LIBS SLAPI_LIBS LIBSLAPI LIBSLAPITOOLS AUTH_LIBS SLAPD_SLP_LIBS SLAPD_GMP_LIBS SLAPD_SQL_LDFLAGS SLAPD_SQL_LIBS SLAPD_SQL_INCLUDES LTLIBOBJS'
470 # Initialize some variables set by options.
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
482 program_transform_name=s,x,x,
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520 # Accept the important Cygnus configure options, so we can diagnose typos.
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
542 cache_file=config.cache ;;
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 datadir=$ac_optarg ;;
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 eval "enable_$ac_feature='$ac_optarg'" ;;
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
585 -help | --help | --hel | --he | -h)
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
609 -libdir | --libdir | --libdi | --libd)
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636 # Obsolete; use --without-fp.
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 sbindir=$ac_optarg ;;
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 sharedstatedir=$ac_optarg ;;
713 -site | --site | --sit)
715 -site=* | --site=* | --sit=*)
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 -version | --version | --versio | --versi | --vers | -V)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 eval "with_$ac_package='$ac_optarg'" ;;
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
764 # Obsolete; use --with-x.
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807 if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
816 eval ac_val=$`echo $ac_var`
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857 test "$silent" = yes && exec 6>/dev/null
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
877 if test ! -r $srcdir/$ac_unique_file; then
881 ac_srcdir_defaulted=no
883 if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
950 # Report the --help message.
952 if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
956 \`configure' configures this package to adapt to many kinds of systems.
958 Usage: $0 [OPTION]... [VAR=VALUE]...
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE. See below for descriptions of some of the useful variables.
963 Defaults for the options are specified in brackets.
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
979 Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
990 For better control, use the options below.
992 Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1010 --program-prefix=PREFIX prepend PREFIX to installed program names
1011 --program-suffix=SUFFIX append SUFFIX to installed program names
1012 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1015 --build=BUILD configure for building on BUILD [guessed]
1016 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1017 --target=TARGET configure for building compilers for TARGET [HOST]
1021 if test -n "$ac_init_help"; then
1026 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1027 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1028 --enable-debug enable debugging yes
1029 --enable-dynamic enable linking built binaries with dynamic libs no
1030 --enable-syslog enable syslog support auto
1031 --enable-proctitle enable proctitle support yes
1032 --enable-ipv6 enable IPv6 support auto
1033 --enable-local enable AF_LOCAL (AF_UNIX) socket support auto
1034 --enable-slapd enable building slapd yes
1035 --enable-aci enable per-object ACIs (experimental) no
1036 --enable-cleartext enable cleartext passwords yes
1037 --enable-crypt enable crypt(3) passwords no
1038 --enable-lmpasswd enable LAN Manager passwords no
1039 --enable-spasswd enable (Cyrus) SASL password verification no
1040 --enable-modules enable dynamic module support no
1041 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay auto
1042 --enable-rlookups enable reverse lookups of client hostnames no
1043 --enable-slapi enable SLAPI support (experimental) no
1044 --enable-slp enable SLPv2 support no
1045 --enable-wrappers enable tcp wrapper support no
1046 --enable-backends enable all available backends no|yes|mod
1047 --enable-bdb enable Berkeley DB backend no|yes|mod ${ol_dflt_backends-yes}
1048 --enable-dnssrv enable dnssrv backend no|yes|mod ${ol_dflt_backends-no}
1049 --enable-hdb enable Hierarchical DB backend no|yes|mod ${ol_dflt_backends-yes}
1050 --enable-ldap enable ldap backend no|yes|mod ${ol_dflt_backends-no}
1051 --enable-ldbm enable ldbm backend no|yes|mod ${ol_dflt_backends-no}
1052 --enable-meta enable metadirectory backend no|yes|mod ${ol_dflt_backends-no}
1053 --enable-monitor enable monitor backend no|yes|mod ${ol_dflt_backends-yes}
1054 --enable-null enable null backend no|yes|mod ${ol_dflt_backends-no}
1055 --enable-passwd enable passwd backend no|yes|mod ${ol_dflt_backends-no}
1056 --enable-perl enable perl backend no|yes|mod ${ol_dflt_backends-no}
1057 --enable-relay enable relay backend no|yes|mod ${ol_dflt_backends-yes}
1058 --enable-shell enable shell backend no|yes|mod ${ol_dflt_backends-no}
1059 --enable-sql enable sql backend no|yes|mod ${ol_dflt_backends-no}
1060 --enable-overlays enable all available overlays no|yes|mod
1061 --enable-accesslog In-Directory Access Logging overlay no|yes|mod ${ol_dflt_overlays-no}
1062 --enable-denyop Deny Operation overlay no|yes|mod ${ol_dflt_overlays-no}
1063 --enable-dyngroup Dynamic Group overlay no|yes|mod ${ol_dflt_overlays-no}
1064 --enable-dynlist Dynamic List overlay no|yes|mod ${ol_dflt_overlays-no}
1065 --enable-glue Backend Glue overlay no|yes|mod ${ol_dflt_overlays-yes}
1066 --enable-lastmod Last Modification overlay no|yes|mod ${ol_dflt_overlays-no}
1067 --enable-ppolicy Password Policy overlay no|yes|mod ${ol_dflt_overlays-no}
1068 --enable-proxycache Proxy Cache overlay no|yes|mod ${ol_dflt_overlays-no}
1069 --enable-refint Referential Integrity overlay no|yes|mod ${ol_dflt_overlays-no}
1070 --enable-retcode Return Code testing overlay no|yes|mod ${ol_dflt_overlays-no}
1071 --enable-rwm Rewrite/Remap overlay no|yes|mod ${ol_dflt_overlays-no}
1072 --enable-syncprov Syncrepl Provider overlay no|yes|mod ${ol_dflt_overlays-yes}
1073 --enable-translucent Translucent Proxy overlay no|yes|mod ${ol_dflt_overlays-no}
1074 --enable-unique Attribute Uniqueness overlay no|yes|mod ${ol_dflt_overlays-no}
1075 --enable-slurpd enable building slurpd auto
1076 --enable-static[=PKGS]
1077 build static libraries [default=yes]
1078 --enable-shared[=PKGS]
1079 build shared libraries [default=yes]
1080 --enable-fast-install[=PKGS]
1081 optimize for fast installation [default=yes]
1082 --disable-dependency-tracking speeds up one-time build
1083 --enable-dependency-tracking do not reject slow dependency extractors
1084 --disable-libtool-lock avoid locking (might break parallel builds)
1087 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1088 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1089 --with-subdir=DIR change default subdirectory used for installs
1090 --with-cyrus-sasl with Cyrus SASL support auto
1091 --with-fetch with fetch(3) URL support auto
1092 --with-threads with threads auto
1093 --with-tls with TLS/SSL support auto
1094 --with-yielding-select with implicitly yielding select auto
1095 --with-multiple-precision
1096 multiple precision support for statistics
1097 auto|bignum|gmp auto
1099 SLAPD (Standalone LDAP Daemon) Options:
1101 SLAPD Backend Options:
1102 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm auto
1103 --with-ldbm-type use LDBM type auto|btree|hash auto
1105 SLAPD Overlay Options:
1107 SLURPD (Replication Daemon) Options:
1109 Library Generation & Linking Options
1110 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1111 --with-pic try to use only PIC/non-PIC objects [default=use
1114 include additional configurations [automatic]
1116 See INSTALL file for further details.
1118 Some influential environment variables:
1119 CC C compiler command
1120 CFLAGS C compiler flags
1121 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1122 nonstandard directory <lib dir>
1123 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1124 headers in a nonstandard directory <include dir>
1126 CXX C++ compiler command
1127 CXXFLAGS C++ compiler flags
1128 CXXCPP C++ preprocessor
1129 F77 Fortran 77 compiler command
1130 FFLAGS Fortran 77 compiler flags
1132 Use these variables to override the choices made by `configure' or to help
1133 it to find libraries and programs with nonstandard names/locations.
1138 if test "$ac_init_help" = "recursive"; then
1139 # If there are subdirs, report their specific --help.
1141 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1142 test -d $ac_dir || continue
1145 if test "$ac_dir" != .; then
1146 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1147 # A "../" for each directory in $ac_dir_suffix.
1148 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1150 ac_dir_suffix= ac_top_builddir=
1154 .) # No --srcdir option. We are building in place.
1156 if test -z "$ac_top_builddir"; then
1159 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1161 [\\/]* | ?:[\\/]* ) # Absolute path.
1162 ac_srcdir=$srcdir$ac_dir_suffix;
1163 ac_top_srcdir=$srcdir ;;
1165 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1166 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1169 # Do not use `cd foo && pwd` to compute absolute paths, because
1170 # the directories may not exist.
1172 .) ac_abs_builddir="$ac_dir";;
1175 .) ac_abs_builddir=`pwd`;;
1176 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1177 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1180 case $ac_abs_builddir in
1181 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1183 case ${ac_top_builddir}. in
1184 .) ac_abs_top_builddir=$ac_abs_builddir;;
1185 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1186 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1189 case $ac_abs_builddir in
1190 .) ac_abs_srcdir=$ac_srcdir;;
1193 .) ac_abs_srcdir=$ac_abs_builddir;;
1194 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1195 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1198 case $ac_abs_builddir in
1199 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1201 case $ac_top_srcdir in
1202 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1203 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1204 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1209 # Check for guested configure; otherwise get Cygnus style configure.
1210 if test -f $ac_srcdir/configure.gnu; then
1212 $SHELL $ac_srcdir/configure.gnu --help=recursive
1213 elif test -f $ac_srcdir/configure; then
1215 $SHELL $ac_srcdir/configure --help=recursive
1216 elif test -f $ac_srcdir/configure.ac ||
1217 test -f $ac_srcdir/configure.in; then
1219 $ac_configure --help
1221 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1227 test -n "$ac_init_help" && exit 0
1228 if $ac_init_version; then
1231 Copyright (C) 2003 Free Software Foundation, Inc.
1232 This configure script is free software; the Free Software Foundation
1233 gives unlimited permission to copy, distribute and modify it.
1239 This file contains any messages produced by compilers while
1240 running configure, to aid debugging if configure makes a mistake.
1242 It was created by $as_me, which was
1243 generated by GNU Autoconf 2.59. Invocation command line was
1254 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1255 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1256 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1257 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1258 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1260 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1261 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1263 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1264 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1265 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1266 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1267 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1268 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1269 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1277 test -z "$as_dir" && as_dir=.
1278 echo "PATH: $as_dir"
1293 # Keep a trace of the command line.
1294 # Strip out --no-create and --no-recursion so they do not pile up.
1295 # Strip out --silent because we don't want to record it for future runs.
1296 # Also quote any args containing shell meta-characters.
1297 # Make two passes to allow for proper duplicate-argument suppression.
1302 ac_must_keep_next=false
1308 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1310 | -silent | --silent | --silen | --sile | --sil)
1312 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1313 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1316 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1318 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1319 if test $ac_must_keep_next = true; then
1320 ac_must_keep_next=false # Got value, back to normal.
1323 *=* | --config-cache | -C | -disable-* | --disable-* \
1324 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1325 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1326 | -with-* | --with-* | -without-* | --without-* | --x)
1327 case "$ac_configure_args0 " in
1328 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1331 -* ) ac_must_keep_next=true ;;
1334 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1335 # Get rid of the leading space.
1341 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1342 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1344 # When interrupted or exit'd, cleanup temporary files, and complete
1345 # config.log. We remove comments because anyway the quotes in there
1346 # would cause problems or look ugly.
1347 # WARNING: Be sure not to use single quotes in there, as some shells,
1348 # such as our DU 5.0 friend, will then `close' the trap.
1349 trap 'exit_status=$?
1350 # Save into config.log some information that might help in debugging.
1355 ## ---------------- ##
1356 ## Cache variables. ##
1357 ## ---------------- ##
1360 # The following way of writing the cache mishandles newlines in values,
1363 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1366 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1367 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1371 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1378 ## ----------------- ##
1379 ## Output variables. ##
1380 ## ----------------- ##
1383 for ac_var in $ac_subst_vars
1385 eval ac_val=$`echo $ac_var`
1386 echo "$ac_var='"'"'$ac_val'"'"'"
1390 if test -n "$ac_subst_files"; then
1397 for ac_var in $ac_subst_files
1399 eval ac_val=$`echo $ac_var`
1400 echo "$ac_var='"'"'$ac_val'"'"'"
1405 if test -s confdefs.h; then
1412 sed "/^$/d" confdefs.h | sort
1415 test "$ac_signal" != 0 &&
1416 echo "$as_me: caught signal $ac_signal"
1417 echo "$as_me: exit $exit_status"
1419 rm -f core *.core &&
1420 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1423 for ac_signal in 1 2 13 15; do
1424 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1428 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1429 rm -rf conftest* confdefs.h
1430 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1433 # Predefined preprocessor variables.
1435 cat >>confdefs.h <<_ACEOF
1436 #define PACKAGE_NAME "$PACKAGE_NAME"
1440 cat >>confdefs.h <<_ACEOF
1441 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1445 cat >>confdefs.h <<_ACEOF
1446 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1450 cat >>confdefs.h <<_ACEOF
1451 #define PACKAGE_STRING "$PACKAGE_STRING"
1455 cat >>confdefs.h <<_ACEOF
1456 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1460 # Let the site file select an alternate cache file if it wants to.
1461 # Prefer explicitly selected file to automatically selected ones.
1462 if test -z "$CONFIG_SITE"; then
1463 if test "x$prefix" != xNONE; then
1464 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1466 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1469 for ac_site_file in $CONFIG_SITE; do
1470 if test -r "$ac_site_file"; then
1471 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1472 echo "$as_me: loading site script $ac_site_file" >&6;}
1473 sed 's/^/| /' "$ac_site_file" >&5
1479 # Check that the precious variables saved in the cache have kept the same
1481 ac_cache_corrupted=false
1482 for ac_var in `(set) 2>&1 |
1483 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1484 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1485 eval ac_new_set=\$ac_env_${ac_var}_set
1486 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1487 eval ac_new_val="\$ac_env_${ac_var}_value"
1488 case $ac_old_set,$ac_new_set in
1490 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1491 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1492 ac_cache_corrupted=: ;;
1494 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1495 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1496 ac_cache_corrupted=: ;;
1499 if test "x$ac_old_val" != "x$ac_new_val"; then
1500 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1501 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1502 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1503 echo "$as_me: former value: $ac_old_val" >&2;}
1504 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1505 echo "$as_me: current value: $ac_new_val" >&2;}
1506 ac_cache_corrupted=:
1509 # Pass precious variables to config.status.
1510 if test "$ac_new_set" = set; then
1512 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1513 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1514 *) ac_arg=$ac_var=$ac_new_val ;;
1516 case " $ac_configure_args " in
1517 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1518 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1522 if $ac_cache_corrupted; then
1523 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1524 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1525 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1526 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1527 { (exit 1); exit 1; }; }
1531 ac_cpp='$CPP $CPPFLAGS'
1532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1555 # set unset (borrowed from autoconf 2.49c)
1556 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
1562 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
1565 for ac_dir in build $srcdir/build; do
1566 if test -f $ac_dir/install-sh; then
1568 ac_install_sh="$ac_aux_dir/install-sh -c"
1570 elif test -f $ac_dir/install.sh; then
1572 ac_install_sh="$ac_aux_dir/install.sh -c"
1574 elif test -f $ac_dir/shtool; then
1576 ac_install_sh="$ac_aux_dir/shtool install -c"
1580 if test -z "$ac_aux_dir"; then
1581 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build $srcdir/build" >&5
1582 echo "$as_me: error: cannot find install-sh or install.sh in build $srcdir/build" >&2;}
1583 { (exit 1); exit 1; }; }
1585 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1586 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1587 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1589 eval `$ac_aux_dir/version.sh`
1590 if test -z "$OL_STRING"; then
1591 { { echo "$as_me:$LINENO: error: could not determine version" >&5
1592 echo "$as_me: error: could not determine version" >&2;}
1593 { (exit 1); exit 1; }; }
1596 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
1597 ac_cv_shtool="$ac_aux_dir/shtool"
1599 { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
1600 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
1601 { (exit 1); exit 1; }; }
1604 SHTOOL="$ac_cv_shtool"
1606 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
1607 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
1610 if test -d $ac_aux_dir/CVS; then
1611 OPENLDAP_CVS="(from CVS sources) "
1614 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
1616 # Make sure we can run config.sub.
1617 $ac_config_sub sun4 >/dev/null 2>&1 ||
1618 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1619 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1620 { (exit 1); exit 1; }; }
1622 echo "$as_me:$LINENO: checking build system type" >&5
1623 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1624 if test "${ac_cv_build+set}" = set; then
1625 echo $ECHO_N "(cached) $ECHO_C" >&6
1627 ac_cv_build_alias=$build_alias
1628 test -z "$ac_cv_build_alias" &&
1629 ac_cv_build_alias=`$ac_config_guess`
1630 test -z "$ac_cv_build_alias" &&
1631 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1632 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1633 { (exit 1); exit 1; }; }
1634 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1635 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1636 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1637 { (exit 1); exit 1; }; }
1640 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1641 echo "${ECHO_T}$ac_cv_build" >&6
1643 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1644 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1645 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1648 echo "$as_me:$LINENO: checking host system type" >&5
1649 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1650 if test "${ac_cv_host+set}" = set; then
1651 echo $ECHO_N "(cached) $ECHO_C" >&6
1653 ac_cv_host_alias=$host_alias
1654 test -z "$ac_cv_host_alias" &&
1655 ac_cv_host_alias=$ac_cv_build_alias
1656 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1657 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1658 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1659 { (exit 1); exit 1; }; }
1662 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1663 echo "${ECHO_T}$ac_cv_host" >&6
1665 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1666 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1667 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1670 echo "$as_me:$LINENO: checking target system type" >&5
1671 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1672 if test "${ac_cv_target+set}" = set; then
1673 echo $ECHO_N "(cached) $ECHO_C" >&6
1675 ac_cv_target_alias=$target_alias
1676 test "x$ac_cv_target_alias" = "x" &&
1677 ac_cv_target_alias=$ac_cv_host_alias
1678 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1679 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1680 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1681 { (exit 1); exit 1; }; }
1684 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1685 echo "${ECHO_T}$ac_cv_target" >&6
1686 target=$ac_cv_target
1687 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1688 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1689 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1692 # The aliases save the names the user supplied, while $host etc.
1693 # will get canonicalized.
1694 test -n "$target_alias" &&
1695 test "$program_prefix$program_suffix$program_transform_name" = \
1697 program_prefix=${target_alias}-
1699 am__api_version="1.9"
1700 # Find a good install program. We prefer a C program (faster),
1701 # so one script is as good as another. But avoid the broken or
1702 # incompatible versions:
1703 # SysV /etc/install, /usr/sbin/install
1704 # SunOS /usr/etc/install
1705 # IRIX /sbin/install
1707 # AmigaOS /C/install, which installs bootblocks on floppy discs
1708 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1709 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1710 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1711 # OS/2's system install, which has a completely different semantic
1712 # ./install, which can be erroneously created by make from ./install.sh.
1713 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1714 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1715 if test -z "$INSTALL"; then
1716 if test "${ac_cv_path_install+set}" = set; then
1717 echo $ECHO_N "(cached) $ECHO_C" >&6
1719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1723 test -z "$as_dir" && as_dir=.
1724 # Account for people who put trailing slashes in PATH elements.
1726 ./ | .// | /cC/* | \
1727 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1728 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1731 # OSF1 and SCO ODT 3.0 have their own names for install.
1732 # Don't use installbsd from OSF since it installs stuff as root
1734 for ac_prog in ginstall scoinst install; do
1735 for ac_exec_ext in '' $ac_executable_extensions; do
1736 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1737 if test $ac_prog = install &&
1738 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1739 # AIX install. It has an incompatible calling convention.
1741 elif test $ac_prog = install &&
1742 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1743 # program-specific install script used by HP pwplus--don't use.
1746 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1758 if test "${ac_cv_path_install+set}" = set; then
1759 INSTALL=$ac_cv_path_install
1761 # As a last resort, use the slow shell script. We don't cache a
1762 # path for INSTALL within a source directory, because that will
1763 # break other packages using the cache if that directory is
1764 # removed, or if the path is relative.
1765 INSTALL=$ac_install_sh
1768 echo "$as_me:$LINENO: result: $INSTALL" >&5
1769 echo "${ECHO_T}$INSTALL" >&6
1771 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1772 # It thinks the first close brace ends the variable substitution.
1773 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1775 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1777 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1779 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1780 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1783 echo timestamp > conftest.file
1784 # Do `set' in a subshell so we don't clobber the current shell's
1785 # arguments. Must try -L first in case configure is actually a
1786 # symlink; some systems play weird games with the mod time of symlinks
1787 # (eg FreeBSD returns the mod time of the symlink's containing
1790 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1791 if test "$*" = "X"; then
1793 set X `ls -t $srcdir/configure conftest.file`
1796 if test "$*" != "X $srcdir/configure conftest.file" \
1797 && test "$*" != "X conftest.file $srcdir/configure"; then
1799 # If neither matched, then we have a broken ls. This can happen
1800 # if, for instance, CONFIG_SHELL is bash and it inherits a
1801 # broken ls alias from the environment. This has actually
1802 # happened. Such a system could not be considered "sane".
1803 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1804 alias in your environment" >&5
1805 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1806 alias in your environment" >&2;}
1807 { (exit 1); exit 1; }; }
1810 test "$2" = conftest.file
1816 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1817 Check your system clock" >&5
1818 echo "$as_me: error: newly created file is older than distributed files!
1819 Check your system clock" >&2;}
1820 { (exit 1); exit 1; }; }
1822 echo "$as_me:$LINENO: result: yes" >&5
1823 echo "${ECHO_T}yes" >&6
1824 test "$program_prefix" != NONE &&
1825 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1826 # Use a double $ so make ignores it.
1827 test "$program_suffix" != NONE &&
1828 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1829 # Double any \ or $. echo might interpret backslashes.
1830 # By default was `s,x,x', remove it if useless.
1831 cat <<\_ACEOF >conftest.sed
1832 s/[\\$]/&&/g;s/;s,x,x,$//
1834 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1837 # expand $ac_aux_dir to an absolute path
1838 am_aux_dir=`cd $ac_aux_dir && pwd`
1840 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1841 # Use eval to expand $SHELL
1842 if eval "$MISSING --run true"; then
1843 am_missing_run="$MISSING --run "
1846 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1847 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1850 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1851 # We used to keeping the `.' as first argument, in order to
1852 # allow $(mkdir_p) to be used without argument. As in
1853 # $(mkdir_p) $(somedir)
1854 # where $(somedir) is conditionally defined. However this is wrong
1856 # 1. if the package is installed by a user who cannot write `.'
1857 # make install will fail,
1858 # 2. the above comment should most certainly read
1859 # $(mkdir_p) $(DESTDIR)$(somedir)
1860 # so it does not work when $(somedir) is undefined and
1861 # $(DESTDIR) is not.
1862 # To support the latter case, we have to write
1863 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1864 # so the `.' trick is pointless.
1865 mkdir_p='mkdir -p --'
1867 # On NextStep and OpenStep, the `mkdir' command does not
1868 # recognize any option. It will interpret all options as
1869 # directories to create, and then abort because `.' already
1871 for d in ./-p ./--version;
1873 test -d $d && rmdir $d
1875 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1876 if test -f "$ac_aux_dir/mkinstalldirs"; then
1877 mkdir_p='$(mkinstalldirs)'
1879 mkdir_p='$(install_sh) -d'
1883 for ac_prog in gawk mawk nawk awk
1885 # Extract the first word of "$ac_prog", so it can be a program name with args.
1886 set dummy $ac_prog; ac_word=$2
1887 echo "$as_me:$LINENO: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_AWK+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 if test -n "$AWK"; then
1893 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899 test -z "$as_dir" && as_dir=.
1900 for ac_exec_ext in '' $ac_executable_extensions; do
1901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902 ac_cv_prog_AWK="$ac_prog"
1903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912 if test -n "$AWK"; then
1913 echo "$as_me:$LINENO: result: $AWK" >&5
1914 echo "${ECHO_T}$AWK" >&6
1916 echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1920 test -n "$AWK" && break
1923 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1924 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1925 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1926 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1929 cat >conftest.make <<\_ACEOF
1931 @echo 'ac_maketemp="$(MAKE)"'
1933 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1934 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1935 if test -n "$ac_maketemp"; then
1936 eval ac_cv_prog_make_${ac_make}_set=yes
1938 eval ac_cv_prog_make_${ac_make}_set=no
1942 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1943 echo "$as_me:$LINENO: result: yes" >&5
1944 echo "${ECHO_T}yes" >&6
1947 echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1949 SET_MAKE="MAKE=${MAKE-make}"
1952 rm -rf .tst 2>/dev/null
1953 mkdir .tst 2>/dev/null
1954 if test -d .tst; then
1959 rmdir .tst 2>/dev/null
1961 # test to see if srcdir already configured
1962 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1963 test -f $srcdir/config.status; then
1964 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1965 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1966 { (exit 1); exit 1; }; }
1969 # test whether we have cygpath
1970 if test -z "$CYGPATH_W"; then
1971 if (cygpath --version) >/dev/null 2>/dev/null; then
1972 CYGPATH_W='cygpath -w'
1979 # Define the identity of the package.
1984 # Some tools Automake needs.
1986 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1989 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1992 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1995 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1998 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2000 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2002 # Installed binaries are usually stripped using `strip' when the user
2003 # run `make install-strip'. However `strip' might not be the right
2004 # tool to use in cross-compilation environments, therefore Automake
2005 # will honor the `STRIP' environment variable to overrule this program.
2006 if test "$cross_compiling" != no; then
2007 if test -n "$ac_tool_prefix"; then
2008 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2009 set dummy ${ac_tool_prefix}strip; ac_word=$2
2010 echo "$as_me:$LINENO: checking for $ac_word" >&5
2011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2012 if test "${ac_cv_prog_STRIP+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 if test -n "$STRIP"; then
2016 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 test -z "$as_dir" && as_dir=.
2023 for ac_exec_ext in '' $ac_executable_extensions; do
2024 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2025 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2034 STRIP=$ac_cv_prog_STRIP
2035 if test -n "$STRIP"; then
2036 echo "$as_me:$LINENO: result: $STRIP" >&5
2037 echo "${ECHO_T}$STRIP" >&6
2039 echo "$as_me:$LINENO: result: no" >&5
2040 echo "${ECHO_T}no" >&6
2044 if test -z "$ac_cv_prog_STRIP"; then
2046 # Extract the first word of "strip", so it can be a program name with args.
2047 set dummy strip; ac_word=$2
2048 echo "$as_me:$LINENO: checking for $ac_word" >&5
2049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2050 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2051 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 if test -n "$ac_ct_STRIP"; then
2054 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2060 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2063 ac_cv_prog_ac_ct_STRIP="strip"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2073 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2074 if test -n "$ac_ct_STRIP"; then
2075 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2076 echo "${ECHO_T}$ac_ct_STRIP" >&6
2078 echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2084 STRIP="$ac_cv_prog_STRIP"
2088 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2090 # We need awk for the "check" target. The system "awk" is bad on
2092 # Always define AMTAR for backward compatibility.
2094 AMTAR=${AMTAR-"${am_missing_run}tar"}
2096 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2102 cat >>confdefs.h <<_ACEOF
2103 #define OPENLDAP_PACKAGE "$PACKAGE"
2107 cat >>confdefs.h <<_ACEOF
2108 #define OPENLDAP_VERSION "$VERSION"
2113 cat >>confdefs.h <<_ACEOF
2114 #define LDAP_VENDOR_VERSION $OL_API_INC
2118 cat >>confdefs.h <<_ACEOF
2119 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2123 cat >>confdefs.h <<_ACEOF
2124 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2128 cat >>confdefs.h <<_ACEOF
2129 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2133 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2135 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2137 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2145 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2147 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2149 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2152 echo "$as_me:$LINENO: checking configure arguments" >&5
2153 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6
2158 ldap_subdir="/openldap"
2161 # Check whether --with-subdir or --without-subdir was given.
2162 if test "${with_subdir+set}" = set; then
2163 withval="$with_subdir"
2170 ldap_subdir="$withval"
2173 ldap_subdir="/$withval"
2179 # OpenLDAP --enable-debug
2180 # Check whether --enable-debug or --disable-debug was given.
2181 if test "${enable_debug+set}" = set; then
2182 enableval="$enable_debug"
2185 for ol_val in auto yes no ; do
2186 if test "$enableval" = "$ol_val" ; then
2190 if test "$ol_arg" = "invalid" ; then
2191 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2192 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2193 { (exit 1); exit 1; }; }
2195 ol_enable_debug="$ol_arg"
2198 ol_enable_debug="yes"
2199 fi; # end --enable-debug
2200 # OpenLDAP --enable-dynamic
2201 # Check whether --enable-dynamic or --disable-dynamic was given.
2202 if test "${enable_dynamic+set}" = set; then
2203 enableval="$enable_dynamic"
2206 for ol_val in auto yes no ; do
2207 if test "$enableval" = "$ol_val" ; then
2211 if test "$ol_arg" = "invalid" ; then
2212 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2213 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2214 { (exit 1); exit 1; }; }
2216 ol_enable_dynamic="$ol_arg"
2219 ol_enable_dynamic="no"
2220 fi; # end --enable-dynamic
2221 # OpenLDAP --enable-syslog
2222 # Check whether --enable-syslog or --disable-syslog was given.
2223 if test "${enable_syslog+set}" = set; then
2224 enableval="$enable_syslog"
2227 for ol_val in auto yes no ; do
2228 if test "$enableval" = "$ol_val" ; then
2232 if test "$ol_arg" = "invalid" ; then
2233 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2234 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2235 { (exit 1); exit 1; }; }
2237 ol_enable_syslog="$ol_arg"
2240 ol_enable_syslog="auto"
2241 fi; # end --enable-syslog
2242 # OpenLDAP --enable-proctitle
2243 # Check whether --enable-proctitle or --disable-proctitle was given.
2244 if test "${enable_proctitle+set}" = set; then
2245 enableval="$enable_proctitle"
2248 for ol_val in auto yes no ; do
2249 if test "$enableval" = "$ol_val" ; then
2253 if test "$ol_arg" = "invalid" ; then
2254 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2255 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2256 { (exit 1); exit 1; }; }
2258 ol_enable_proctitle="$ol_arg"
2261 ol_enable_proctitle="yes"
2262 fi; # end --enable-proctitle
2263 ol_enable_referrals=${ol_enable_referrals-no}
2264 ol_enable_kbind=${ol_enable_kbind-no}
2265 # OpenLDAP --enable-ipv6
2266 # Check whether --enable-ipv6 or --disable-ipv6 was given.
2267 if test "${enable_ipv6+set}" = set; then
2268 enableval="$enable_ipv6"
2271 for ol_val in auto yes no ; do
2272 if test "$enableval" = "$ol_val" ; then
2276 if test "$ol_arg" = "invalid" ; then
2277 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2278 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2279 { (exit 1); exit 1; }; }
2281 ol_enable_ipv6="$ol_arg"
2284 ol_enable_ipv6="auto"
2285 fi; # end --enable-ipv6
2286 # OpenLDAP --enable-local
2287 # Check whether --enable-local or --disable-local was given.
2288 if test "${enable_local+set}" = set; then
2289 enableval="$enable_local"
2292 for ol_val in auto yes no ; do
2293 if test "$enableval" = "$ol_val" ; then
2297 if test "$ol_arg" = "invalid" ; then
2298 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2299 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2300 { (exit 1); exit 1; }; }
2302 ol_enable_local="$ol_arg"
2305 ol_enable_local="auto"
2306 fi; # end --enable-local
2309 # OpenLDAP --with-cyrus_sasl
2311 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
2312 if test "${with_cyrus_sasl+set}" = set; then
2313 withval="$with_cyrus_sasl"
2316 for ol_val in auto yes no ; do
2317 if test "$withval" = "$ol_val" ; then
2321 if test "$ol_arg" = "invalid" ; then
2322 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2323 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2324 { (exit 1); exit 1; }; }
2326 ol_with_cyrus_sasl="$ol_arg"
2329 ol_with_cyrus_sasl="auto"
2330 fi; # end --with-cyrus_sasl
2332 # OpenLDAP --with-fetch
2334 # Check whether --with-fetch or --without-fetch was given.
2335 if test "${with_fetch+set}" = set; then
2336 withval="$with_fetch"
2339 for ol_val in auto yes no ; do
2340 if test "$withval" = "$ol_val" ; then
2344 if test "$ol_arg" = "invalid" ; then
2345 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2346 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2347 { (exit 1); exit 1; }; }
2349 ol_with_fetch="$ol_arg"
2352 ol_with_fetch="auto"
2353 fi; # end --with-fetch
2355 ol_with_kerberos=${ol_with_kerberos-auto}
2356 # OpenLDAP --with-threads
2358 # Check whether --with-threads or --without-threads was given.
2359 if test "${with_threads+set}" = set; then
2360 withval="$with_threads"
2363 for ol_val in auto nt posix mach pth lwp yes no manual ; do
2364 if test "$withval" = "$ol_val" ; then
2368 if test "$ol_arg" = "invalid" ; then
2369 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2370 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2371 { (exit 1); exit 1; }; }
2373 ol_with_threads="$ol_arg"
2376 ol_with_threads="auto"
2377 fi; # end --with-threads
2379 # OpenLDAP --with-tls
2381 # Check whether --with-tls or --without-tls was given.
2382 if test "${with_tls+set}" = set; then
2386 for ol_val in auto ssleay openssl yes no ; do
2387 if test "$withval" = "$ol_val" ; then
2391 if test "$ol_arg" = "invalid" ; then
2392 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2393 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2394 { (exit 1); exit 1; }; }
2396 ol_with_tls="$ol_arg"
2400 fi; # end --with-tls
2402 # OpenLDAP --with-yielding_select
2404 # Check whether --with-yielding_select or --without-yielding_select was given.
2405 if test "${with_yielding_select+set}" = set; then
2406 withval="$with_yielding_select"
2409 for ol_val in auto yes no manual ; do
2410 if test "$withval" = "$ol_val" ; then
2414 if test "$ol_arg" = "invalid" ; then
2415 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
2416 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
2417 { (exit 1); exit 1; }; }
2419 ol_with_yielding_select="$ol_arg"
2422 ol_with_yielding_select="auto"
2423 fi; # end --with-yielding_select
2425 # OpenLDAP --with-multiple_precision
2427 # Check whether --with-multiple_precision or --without-multiple_precision was given.
2428 if test "${with_multiple_precision+set}" = set; then
2429 withval="$with_multiple_precision"
2432 for ol_val in auto bignum gmp yes no ; do
2433 if test "$withval" = "$ol_val" ; then
2437 if test "$ol_arg" = "invalid" ; then
2438 { { echo "$as_me:$LINENO: error: bad value $withval for --with-multiple_precision" >&5
2439 echo "$as_me: error: bad value $withval for --with-multiple_precision" >&2;}
2440 { (exit 1); exit 1; }; }
2442 ol_with_multiple_precision="$ol_arg"
2445 ol_with_multiple_precision="auto"
2446 fi; # end --with-multiple_precision
2451 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
2452 if test "${with_xxslapdoptions+set}" = set; then
2453 withval="$with_xxslapdoptions"
2456 # OpenLDAP --enable-slapd
2457 # Check whether --enable-slapd or --disable-slapd was given.
2458 if test "${enable_slapd+set}" = set; then
2459 enableval="$enable_slapd"
2462 for ol_val in auto yes no ; do
2463 if test "$enableval" = "$ol_val" ; then
2467 if test "$ol_arg" = "invalid" ; then
2468 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
2469 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
2470 { (exit 1); exit 1; }; }
2472 ol_enable_slapd="$ol_arg"
2475 ol_enable_slapd="yes"
2476 fi; # end --enable-slapd
2477 # OpenLDAP --enable-aci
2478 # Check whether --enable-aci or --disable-aci was given.
2479 if test "${enable_aci+set}" = set; then
2480 enableval="$enable_aci"
2483 for ol_val in auto yes no ; do
2484 if test "$enableval" = "$ol_val" ; then
2488 if test "$ol_arg" = "invalid" ; then
2489 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
2490 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
2491 { (exit 1); exit 1; }; }
2493 ol_enable_aci="$ol_arg"
2497 fi; # end --enable-aci
2498 # OpenLDAP --enable-cleartext
2499 # Check whether --enable-cleartext or --disable-cleartext was given.
2500 if test "${enable_cleartext+set}" = set; then
2501 enableval="$enable_cleartext"
2504 for ol_val in auto yes no ; do
2505 if test "$enableval" = "$ol_val" ; then
2509 if test "$ol_arg" = "invalid" ; then
2510 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
2511 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
2512 { (exit 1); exit 1; }; }
2514 ol_enable_cleartext="$ol_arg"
2517 ol_enable_cleartext="yes"
2518 fi; # end --enable-cleartext
2519 # OpenLDAP --enable-crypt
2520 # Check whether --enable-crypt or --disable-crypt was given.
2521 if test "${enable_crypt+set}" = set; then
2522 enableval="$enable_crypt"
2525 for ol_val in auto yes no ; do
2526 if test "$enableval" = "$ol_val" ; then
2530 if test "$ol_arg" = "invalid" ; then
2531 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
2532 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
2533 { (exit 1); exit 1; }; }
2535 ol_enable_crypt="$ol_arg"
2538 ol_enable_crypt="no"
2539 fi; # end --enable-crypt
2540 # OpenLDAP --enable-lmpasswd
2541 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
2542 if test "${enable_lmpasswd+set}" = set; then
2543 enableval="$enable_lmpasswd"
2546 for ol_val in auto yes no ; do
2547 if test "$enableval" = "$ol_val" ; then
2551 if test "$ol_arg" = "invalid" ; then
2552 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
2553 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
2554 { (exit 1); exit 1; }; }
2556 ol_enable_lmpasswd="$ol_arg"
2559 ol_enable_lmpasswd="no"
2560 fi; # end --enable-lmpasswd
2561 # OpenLDAP --enable-spasswd
2562 # Check whether --enable-spasswd or --disable-spasswd was given.
2563 if test "${enable_spasswd+set}" = set; then
2564 enableval="$enable_spasswd"
2567 for ol_val in auto yes no ; do
2568 if test "$enableval" = "$ol_val" ; then
2572 if test "$ol_arg" = "invalid" ; then
2573 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
2574 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
2575 { (exit 1); exit 1; }; }
2577 ol_enable_spasswd="$ol_arg"
2580 ol_enable_spasswd="no"
2581 fi; # end --enable-spasswd
2582 # OpenLDAP --enable-modules
2583 # Check whether --enable-modules or --disable-modules was given.
2584 if test "${enable_modules+set}" = set; then
2585 enableval="$enable_modules"
2588 for ol_val in auto yes no ; do
2589 if test "$enableval" = "$ol_val" ; then
2593 if test "$ol_arg" = "invalid" ; then
2594 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
2595 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
2596 { (exit 1); exit 1; }; }
2598 ol_enable_modules="$ol_arg"
2601 ol_enable_modules="no"
2602 fi; # end --enable-modules
2603 ol_enable_multimaster=${ol_enable_multimaster-no}
2604 # OpenLDAP --enable-rewrite
2605 # Check whether --enable-rewrite or --disable-rewrite was given.
2606 if test "${enable_rewrite+set}" = set; then
2607 enableval="$enable_rewrite"
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-rewrite" >&5
2617 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
2618 { (exit 1); exit 1; }; }
2620 ol_enable_rewrite="$ol_arg"
2623 ol_enable_rewrite="auto"
2624 fi; # end --enable-rewrite
2625 # OpenLDAP --enable-rlookups
2626 # Check whether --enable-rlookups or --disable-rlookups was given.
2627 if test "${enable_rlookups+set}" = set; then
2628 enableval="$enable_rlookups"
2631 for ol_val in auto yes no ; do
2632 if test "$enableval" = "$ol_val" ; then
2636 if test "$ol_arg" = "invalid" ; then
2637 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
2638 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
2639 { (exit 1); exit 1; }; }
2641 ol_enable_rlookups="$ol_arg"
2644 ol_enable_rlookups="no"
2645 fi; # end --enable-rlookups
2646 # OpenLDAP --enable-slapi
2647 # Check whether --enable-slapi or --disable-slapi was given.
2648 if test "${enable_slapi+set}" = set; then
2649 enableval="$enable_slapi"
2652 for ol_val in auto yes no ; do
2653 if test "$enableval" = "$ol_val" ; then
2657 if test "$ol_arg" = "invalid" ; then
2658 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
2659 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
2660 { (exit 1); exit 1; }; }
2662 ol_enable_slapi="$ol_arg"
2665 ol_enable_slapi="no"
2666 fi; # end --enable-slapi
2667 # OpenLDAP --enable-slp
2668 # Check whether --enable-slp or --disable-slp was given.
2669 if test "${enable_slp+set}" = set; then
2670 enableval="$enable_slp"
2673 for ol_val in auto yes no ; do
2674 if test "$enableval" = "$ol_val" ; then
2678 if test "$ol_arg" = "invalid" ; then
2679 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
2680 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
2681 { (exit 1); exit 1; }; }
2683 ol_enable_slp="$ol_arg"
2687 fi; # end --enable-slp
2688 # OpenLDAP --enable-wrappers
2689 # Check whether --enable-wrappers or --disable-wrappers was given.
2690 if test "${enable_wrappers+set}" = set; then
2691 enableval="$enable_wrappers"
2694 for ol_val in auto yes no ; do
2695 if test "$enableval" = "$ol_val" ; then
2699 if test "$ol_arg" = "invalid" ; then
2700 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
2701 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
2702 { (exit 1); exit 1; }; }
2704 ol_enable_wrappers="$ol_arg"
2707 ol_enable_wrappers="no"
2708 fi; # end --enable-wrappers
2710 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
2711 passwd perl relay shell sql"
2714 # Check whether --with-xxslapbackends or --without-xxslapbackends was given.
2715 if test "${with_xxslapbackends+set}" = set; then
2716 withval="$with_xxslapbackends"
2720 # OpenLDAP --enable-backends
2721 # Check whether --enable-backends or --disable-backends was given.
2722 if test "${enable_backends+set}" = set; then
2723 enableval="$enable_backends"
2726 for ol_val in no yes mod ; 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-backends" >&5
2733 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
2734 { (exit 1); exit 1; }; }
2736 ol_enable_backends="$ol_arg"
2738 fi; # end --enable-backends
2739 test -n "$ol_enable_backends" && ol_dflt_backends="$ol_enable_backends"
2740 # OpenLDAP --enable-bdb
2741 # Check whether --enable-bdb or --disable-bdb was given.
2742 if test "${enable_bdb+set}" = set; then
2743 enableval="$enable_bdb"
2746 for ol_val in no yes mod ; do
2747 if test "$enableval" = "$ol_val" ; then
2751 if test "$ol_arg" = "invalid" ; then
2752 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
2753 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
2754 { (exit 1); exit 1; }; }
2756 ol_enable_bdb="$ol_arg"
2759 ol_enable_bdb="${ol_dflt_backends-yes}"
2760 fi; # end --enable-bdb
2761 # OpenLDAP --enable-dnssrv
2762 # Check whether --enable-dnssrv or --disable-dnssrv was given.
2763 if test "${enable_dnssrv+set}" = set; then
2764 enableval="$enable_dnssrv"
2767 for ol_val in no yes mod ; do
2768 if test "$enableval" = "$ol_val" ; then
2772 if test "$ol_arg" = "invalid" ; then
2773 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
2774 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
2775 { (exit 1); exit 1; }; }
2777 ol_enable_dnssrv="$ol_arg"
2780 ol_enable_dnssrv="${ol_dflt_backends-no}"
2781 fi; # end --enable-dnssrv
2782 # OpenLDAP --enable-hdb
2783 # Check whether --enable-hdb or --disable-hdb was given.
2784 if test "${enable_hdb+set}" = set; then
2785 enableval="$enable_hdb"
2788 for ol_val in no yes mod ; do
2789 if test "$enableval" = "$ol_val" ; then
2793 if test "$ol_arg" = "invalid" ; then
2794 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
2795 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
2796 { (exit 1); exit 1; }; }
2798 ol_enable_hdb="$ol_arg"
2801 ol_enable_hdb="${ol_dflt_backends-yes}"
2802 fi; # end --enable-hdb
2803 # OpenLDAP --enable-ldap
2804 # Check whether --enable-ldap or --disable-ldap was given.
2805 if test "${enable_ldap+set}" = set; then
2806 enableval="$enable_ldap"
2809 for ol_val in no yes mod ; do
2810 if test "$enableval" = "$ol_val" ; then
2814 if test "$ol_arg" = "invalid" ; then
2815 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
2816 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
2817 { (exit 1); exit 1; }; }
2819 ol_enable_ldap="$ol_arg"
2822 ol_enable_ldap="${ol_dflt_backends-no}"
2823 fi; # end --enable-ldap
2824 # OpenLDAP --enable-ldbm
2825 # Check whether --enable-ldbm or --disable-ldbm was given.
2826 if test "${enable_ldbm+set}" = set; then
2827 enableval="$enable_ldbm"
2830 for ol_val in no yes mod ; do
2831 if test "$enableval" = "$ol_val" ; then
2835 if test "$ol_arg" = "invalid" ; then
2836 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldbm" >&5
2837 echo "$as_me: error: bad value $enableval for --enable-ldbm" >&2;}
2838 { (exit 1); exit 1; }; }
2840 ol_enable_ldbm="$ol_arg"
2843 ol_enable_ldbm="${ol_dflt_backends-no}"
2844 fi; # end --enable-ldbm
2845 # OpenLDAP --with-ldbm_api
2847 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2848 if test "${with_ldbm_api+set}" = set; then
2849 withval="$with_ldbm_api"
2852 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2853 if test "$withval" = "$ol_val" ; then
2857 if test "$ol_arg" = "invalid" ; then
2858 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_api" >&5
2859 echo "$as_me: error: bad value $withval for --with-ldbm_api" >&2;}
2860 { (exit 1); exit 1; }; }
2862 ol_with_ldbm_api="$ol_arg"
2865 ol_with_ldbm_api="auto"
2866 fi; # end --with-ldbm_api
2868 # OpenLDAP --with-ldbm_type
2870 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2871 if test "${with_ldbm_type+set}" = set; then
2872 withval="$with_ldbm_type"
2875 for ol_val in auto btree hash ; do
2876 if test "$withval" = "$ol_val" ; then
2880 if test "$ol_arg" = "invalid" ; then
2881 { { echo "$as_me:$LINENO: error: bad value $withval for --with-ldbm_type" >&5
2882 echo "$as_me: error: bad value $withval for --with-ldbm_type" >&2;}
2883 { (exit 1); exit 1; }; }
2885 ol_with_ldbm_type="$ol_arg"
2888 ol_with_ldbm_type="auto"
2889 fi; # end --with-ldbm_type
2891 # OpenLDAP --enable-meta
2892 # Check whether --enable-meta or --disable-meta was given.
2893 if test "${enable_meta+set}" = set; then
2894 enableval="$enable_meta"
2897 for ol_val in no yes mod ; do
2898 if test "$enableval" = "$ol_val" ; then
2902 if test "$ol_arg" = "invalid" ; then
2903 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
2904 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
2905 { (exit 1); exit 1; }; }
2907 ol_enable_meta="$ol_arg"
2910 ol_enable_meta="${ol_dflt_backends-no}"
2911 fi; # end --enable-meta
2912 # OpenLDAP --enable-monitor
2913 # Check whether --enable-monitor or --disable-monitor was given.
2914 if test "${enable_monitor+set}" = set; then
2915 enableval="$enable_monitor"
2918 for ol_val in no yes mod ; do
2919 if test "$enableval" = "$ol_val" ; then
2923 if test "$ol_arg" = "invalid" ; then
2924 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
2925 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
2926 { (exit 1); exit 1; }; }
2928 ol_enable_monitor="$ol_arg"
2931 ol_enable_monitor="${ol_dflt_backends-yes}"
2932 fi; # end --enable-monitor
2933 # OpenLDAP --enable-null
2934 # Check whether --enable-null or --disable-null was given.
2935 if test "${enable_null+set}" = set; then
2936 enableval="$enable_null"
2939 for ol_val in no yes mod ; do
2940 if test "$enableval" = "$ol_val" ; then
2944 if test "$ol_arg" = "invalid" ; then
2945 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
2946 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
2947 { (exit 1); exit 1; }; }
2949 ol_enable_null="$ol_arg"
2952 ol_enable_null="${ol_dflt_backends-no}"
2953 fi; # end --enable-null
2954 # OpenLDAP --enable-passwd
2955 # Check whether --enable-passwd or --disable-passwd was given.
2956 if test "${enable_passwd+set}" = set; then
2957 enableval="$enable_passwd"
2960 for ol_val in no yes mod ; do
2961 if test "$enableval" = "$ol_val" ; then
2965 if test "$ol_arg" = "invalid" ; then
2966 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
2967 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
2968 { (exit 1); exit 1; }; }
2970 ol_enable_passwd="$ol_arg"
2973 ol_enable_passwd="${ol_dflt_backends-no}"
2974 fi; # end --enable-passwd
2975 # OpenLDAP --enable-perl
2976 # Check whether --enable-perl or --disable-perl was given.
2977 if test "${enable_perl+set}" = set; then
2978 enableval="$enable_perl"
2981 for ol_val in no yes mod ; do
2982 if test "$enableval" = "$ol_val" ; then
2986 if test "$ol_arg" = "invalid" ; then
2987 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
2988 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
2989 { (exit 1); exit 1; }; }
2991 ol_enable_perl="$ol_arg"
2994 ol_enable_perl="${ol_dflt_backends-no}"
2995 fi; # end --enable-perl
2996 # OpenLDAP --enable-relay
2997 # Check whether --enable-relay or --disable-relay was given.
2998 if test "${enable_relay+set}" = set; then
2999 enableval="$enable_relay"
3002 for ol_val in no yes mod ; do
3003 if test "$enableval" = "$ol_val" ; then
3007 if test "$ol_arg" = "invalid" ; then
3008 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3009 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3010 { (exit 1); exit 1; }; }
3012 ol_enable_relay="$ol_arg"
3015 ol_enable_relay="${ol_dflt_backends-yes}"
3016 fi; # end --enable-relay
3017 # OpenLDAP --enable-shell
3018 # Check whether --enable-shell or --disable-shell was given.
3019 if test "${enable_shell+set}" = set; then
3020 enableval="$enable_shell"
3023 for ol_val in no yes mod ; do
3024 if test "$enableval" = "$ol_val" ; then
3028 if test "$ol_arg" = "invalid" ; then
3029 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3030 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3031 { (exit 1); exit 1; }; }
3033 ol_enable_shell="$ol_arg"
3036 ol_enable_shell="${ol_dflt_backends-no}"
3037 fi; # end --enable-shell
3038 # OpenLDAP --enable-sql
3039 # Check whether --enable-sql or --disable-sql was given.
3040 if test "${enable_sql+set}" = set; then
3041 enableval="$enable_sql"
3044 for ol_val in no yes mod ; do
3045 if test "$enableval" = "$ol_val" ; then
3049 if test "$ol_arg" = "invalid" ; then
3050 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3051 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3052 { (exit 1); exit 1; }; }
3054 ol_enable_sql="$ol_arg"
3057 ol_enable_sql="${ol_dflt_backends-no}"
3058 fi; # end --enable-sql
3060 Overlays="accesslog denyop dyngroup dynlist glue lastmod ppolicy proxycache \
3061 refint retcode rwm syncprov translucent unique"
3064 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
3065 if test "${with_xxslapoverlays+set}" = set; then
3066 withval="$with_xxslapoverlays"
3070 # OpenLDAP --enable-overlays
3071 # Check whether --enable-overlays or --disable-overlays was given.
3072 if test "${enable_overlays+set}" = set; then
3073 enableval="$enable_overlays"
3076 for ol_val in no yes mod ; do
3077 if test "$enableval" = "$ol_val" ; then
3081 if test "$ol_arg" = "invalid" ; then
3082 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3083 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3084 { (exit 1); exit 1; }; }
3086 ol_enable_overlays="$ol_arg"
3088 fi; # end --enable-overlays
3089 test -n "$ol_enable_overlays" && ol_dflt_overlays="$ol_enable_overlays"
3090 # OpenLDAP --enable-accesslog
3091 # Check whether --enable-accesslog or --disable-accesslog was given.
3092 if test "${enable_accesslog+set}" = set; then
3093 enableval="$enable_accesslog"
3096 for ol_val in no yes mod ; do
3097 if test "$enableval" = "$ol_val" ; then
3101 if test "$ol_arg" = "invalid" ; then
3102 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3103 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3104 { (exit 1); exit 1; }; }
3106 ol_enable_accesslog="$ol_arg"
3109 ol_enable_accesslog="${ol_dflt_overlays-no}"
3110 fi; # end --enable-accesslog
3112 # OpenLDAP --enable-denyop
3113 # Check whether --enable-denyop or --disable-denyop was given.
3114 if test "${enable_denyop+set}" = set; then
3115 enableval="$enable_denyop"
3118 for ol_val in no yes mod ; do
3119 if test "$enableval" = "$ol_val" ; then
3123 if test "$ol_arg" = "invalid" ; then
3124 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-denyop" >&5
3125 echo "$as_me: error: bad value $enableval for --enable-denyop" >&2;}
3126 { (exit 1); exit 1; }; }
3128 ol_enable_denyop="$ol_arg"
3131 ol_enable_denyop="${ol_dflt_overlays-no}"
3132 fi; # end --enable-denyop
3134 # OpenLDAP --enable-dyngroup
3135 # Check whether --enable-dyngroup or --disable-dyngroup was given.
3136 if test "${enable_dyngroup+set}" = set; then
3137 enableval="$enable_dyngroup"
3140 for ol_val in no yes mod ; do
3141 if test "$enableval" = "$ol_val" ; then
3145 if test "$ol_arg" = "invalid" ; then
3146 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3147 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3148 { (exit 1); exit 1; }; }
3150 ol_enable_dyngroup="$ol_arg"
3153 ol_enable_dyngroup="${ol_dflt_overlays-no}"
3154 fi; # end --enable-dyngroup
3156 # OpenLDAP --enable-dynlist
3157 # Check whether --enable-dynlist or --disable-dynlist was given.
3158 if test "${enable_dynlist+set}" = set; then
3159 enableval="$enable_dynlist"
3162 for ol_val in no yes mod ; do
3163 if test "$enableval" = "$ol_val" ; then
3167 if test "$ol_arg" = "invalid" ; then
3168 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3169 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3170 { (exit 1); exit 1; }; }
3172 ol_enable_dynlist="$ol_arg"
3175 ol_enable_dynlist="${ol_dflt_overlays-no}"
3176 fi; # end --enable-dynlist
3178 # OpenLDAP --enable-glue
3179 # Check whether --enable-glue or --disable-glue was given.
3180 if test "${enable_glue+set}" = set; then
3181 enableval="$enable_glue"
3184 for ol_val in no yes mod ; do
3185 if test "$enableval" = "$ol_val" ; then
3189 if test "$ol_arg" = "invalid" ; then
3190 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-glue" >&5
3191 echo "$as_me: error: bad value $enableval for --enable-glue" >&2;}
3192 { (exit 1); exit 1; }; }
3194 ol_enable_glue="$ol_arg"
3197 ol_enable_glue="${ol_dflt_overlays-yes}"
3198 fi; # end --enable-glue
3200 # OpenLDAP --enable-lastmod
3201 # Check whether --enable-lastmod or --disable-lastmod was given.
3202 if test "${enable_lastmod+set}" = set; then
3203 enableval="$enable_lastmod"
3206 for ol_val in no yes mod ; do
3207 if test "$enableval" = "$ol_val" ; then
3211 if test "$ol_arg" = "invalid" ; then
3212 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lastmod" >&5
3213 echo "$as_me: error: bad value $enableval for --enable-lastmod" >&2;}
3214 { (exit 1); exit 1; }; }
3216 ol_enable_lastmod="$ol_arg"
3219 ol_enable_lastmod="${ol_dflt_overlays-no}"
3220 fi; # end --enable-lastmod
3222 # OpenLDAP --enable-ppolicy
3223 # Check whether --enable-ppolicy or --disable-ppolicy was given.
3224 if test "${enable_ppolicy+set}" = set; then
3225 enableval="$enable_ppolicy"
3228 for ol_val in no yes mod ; do
3229 if test "$enableval" = "$ol_val" ; then
3233 if test "$ol_arg" = "invalid" ; then
3234 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
3235 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
3236 { (exit 1); exit 1; }; }
3238 ol_enable_ppolicy="$ol_arg"
3241 ol_enable_ppolicy="${ol_dflt_overlays-no}"
3242 fi; # end --enable-ppolicy
3244 # OpenLDAP --enable-proxycache
3245 # Check whether --enable-proxycache or --disable-proxycache was given.
3246 if test "${enable_proxycache+set}" = set; then
3247 enableval="$enable_proxycache"
3250 for ol_val in no yes mod ; do
3251 if test "$enableval" = "$ol_val" ; then
3255 if test "$ol_arg" = "invalid" ; then
3256 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
3257 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
3258 { (exit 1); exit 1; }; }
3260 ol_enable_proxycache="$ol_arg"
3263 ol_enable_proxycache="${ol_dflt_overlays-no}"
3264 fi; # end --enable-proxycache
3266 # OpenLDAP --enable-refint
3267 # Check whether --enable-refint or --disable-refint was given.
3268 if test "${enable_refint+set}" = set; then
3269 enableval="$enable_refint"
3272 for ol_val in no yes mod ; do
3273 if test "$enableval" = "$ol_val" ; then
3277 if test "$ol_arg" = "invalid" ; then
3278 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
3279 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
3280 { (exit 1); exit 1; }; }
3282 ol_enable_refint="$ol_arg"
3285 ol_enable_refint="${ol_dflt_overlays-no}"
3286 fi; # end --enable-refint
3288 # OpenLDAP --enable-retcode
3289 # Check whether --enable-retcode or --disable-retcode was given.
3290 if test "${enable_retcode+set}" = set; then
3291 enableval="$enable_retcode"
3294 for ol_val in no yes mod ; do
3295 if test "$enableval" = "$ol_val" ; then
3299 if test "$ol_arg" = "invalid" ; then
3300 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
3301 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
3302 { (exit 1); exit 1; }; }
3304 ol_enable_retcode="$ol_arg"
3307 ol_enable_retcode="${ol_dflt_overlays-no}"
3308 fi; # end --enable-retcode
3310 # OpenLDAP --enable-rwm
3311 # Check whether --enable-rwm or --disable-rwm was given.
3312 if test "${enable_rwm+set}" = set; then
3313 enableval="$enable_rwm"
3316 for ol_val in no yes mod ; do
3317 if test "$enableval" = "$ol_val" ; then
3321 if test "$ol_arg" = "invalid" ; then
3322 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
3323 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
3324 { (exit 1); exit 1; }; }
3326 ol_enable_rwm="$ol_arg"
3329 ol_enable_rwm="${ol_dflt_overlays-no}"
3330 fi; # end --enable-rwm
3332 # OpenLDAP --enable-syncprov
3333 # Check whether --enable-syncprov or --disable-syncprov was given.
3334 if test "${enable_syncprov+set}" = set; then
3335 enableval="$enable_syncprov"
3338 for ol_val in no yes mod ; do
3339 if test "$enableval" = "$ol_val" ; then
3343 if test "$ol_arg" = "invalid" ; then
3344 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
3345 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
3346 { (exit 1); exit 1; }; }
3348 ol_enable_syncprov="$ol_arg"
3351 ol_enable_syncprov="${ol_dflt_overlays-yes}"
3352 fi; # end --enable-syncprov
3354 # OpenLDAP --enable-translucent
3355 # Check whether --enable-translucent or --disable-translucent was given.
3356 if test "${enable_translucent+set}" = set; then
3357 enableval="$enable_translucent"
3360 for ol_val in no yes mod ; do
3361 if test "$enableval" = "$ol_val" ; then
3365 if test "$ol_arg" = "invalid" ; then
3366 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
3367 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
3368 { (exit 1); exit 1; }; }
3370 ol_enable_translucent="$ol_arg"
3373 ol_enable_translucent="${ol_dflt_overlays-no}"
3374 fi; # end --enable-translucent
3376 # OpenLDAP --enable-unique
3377 # Check whether --enable-unique or --disable-unique was given.
3378 if test "${enable_unique+set}" = set; then
3379 enableval="$enable_unique"
3382 for ol_val in no yes mod ; do
3383 if test "$enableval" = "$ol_val" ; then
3387 if test "$ol_arg" = "invalid" ; then
3388 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
3389 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
3390 { (exit 1); exit 1; }; }
3392 ol_enable_unique="$ol_arg"
3395 ol_enable_unique="${ol_dflt_overlays-no}"
3396 fi; # end --enable-unique
3401 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
3402 if test "${with_xxslurpdoptions+set}" = set; then
3403 withval="$with_xxslurpdoptions"
3406 # OpenLDAP --enable-slurpd
3407 # Check whether --enable-slurpd or --disable-slurpd was given.
3408 if test "${enable_slurpd+set}" = set; then
3409 enableval="$enable_slurpd"
3412 for ol_val in auto yes no ; do
3413 if test "$enableval" = "$ol_val" ; then
3417 if test "$ol_arg" = "invalid" ; then
3418 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slurpd" >&5
3419 echo "$as_me: error: bad value $enableval for --enable-slurpd" >&2;}
3420 { (exit 1); exit 1; }; }
3422 ol_enable_slurpd="$ol_arg"
3425 ol_enable_slurpd="auto"
3426 fi; # end --enable-slurpd
3429 # Check whether --with-xxliboptions or --without-xxliboptions was given.
3430 if test "${with_xxliboptions+set}" = set; then
3431 withval="$with_xxliboptions"
3434 # Check whether --enable-static or --disable-static was given.
3435 if test "${enable_static+set}" = set; then
3436 enableval="$enable_static"
3437 p=${PACKAGE-default}
3439 yes) enable_static=yes ;;
3440 no) enable_static=no ;;
3443 # Look at the argument we got. We use all the common list separators.
3444 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3445 for pkg in $enableval; do
3447 if test "X$pkg" = "X$p"; then
3458 # Check whether --enable-shared or --disable-shared was given.
3459 if test "${enable_shared+set}" = set; then
3460 enableval="$enable_shared"
3461 p=${PACKAGE-default}
3463 yes) enable_shared=yes ;;
3464 no) enable_shared=no ;;
3467 # Look at the argument we got. We use all the common list separators.
3468 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3469 for pkg in $enableval; do
3471 if test "X$pkg" = "X$p"; then
3485 if test $ol_enable_slapd = no ; then
3486 if test $ol_enable_slapi = yes ; then
3487 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
3488 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
3490 case "$ol_enable_backends" in yes | mod)
3491 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
3492 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
3494 for i in $Backends; do
3495 eval "ol_tmp=\$ol_enable_$i"
3496 if test $ol_tmp != no ; then
3497 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3498 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3499 eval "ol_enable_$i=no"
3502 if test $ol_enable_modules = yes ; then
3503 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
3504 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
3506 if test $ol_enable_multimaster = yes ; then
3507 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&5
3508 echo "$as_me: WARNING: slapd disabled, ignoring --enable-multimaster argument" >&2;}
3510 if test $ol_enable_wrappers = yes ; then
3511 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
3512 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
3514 if test $ol_enable_rlookups = yes ; then
3515 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
3516 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
3518 if test $ol_enable_aci = yes ; then
3519 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
3520 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
3522 if test $ol_with_ldbm_api != auto ; then
3523 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&5
3524 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-api argument" >&2;}
3526 if test $ol_with_ldbm_type != auto ; then
3527 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&5
3528 echo "$as_me: WARNING: slapd disabled, ignoring --with-ldbm-type argument" >&2;}
3530 if test $ol_enable_slurpd = yes ; then
3531 { { echo "$as_me:$LINENO: error: slurpd requires slapd" >&5
3532 echo "$as_me: error: slurpd requires slapd" >&2;}
3533 { (exit 1); exit 1; }; }
3535 if test $ol_enable_rewrite = yes ; then
3536 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
3537 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
3539 case "$ol_enable_overlays" in yes | mod)
3540 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
3541 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
3543 for i in $Overlays; do
3544 eval "ol_tmp=\$ol_enable_$i"
3545 if test $ol_tmp != no ; then
3546 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
3547 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
3548 eval "ol_enable_$i=no"
3552 # force settings to no
3557 ol_enable_modules=no
3558 ol_enable_multimaster=no
3559 ol_enable_rlookups=no
3561 ol_enable_wrappers=no
3564 ol_with_ldbm_type=no
3568 ol_enable_rewrite=no
3570 elif test $ol_enable_ldbm = no ; then
3572 if test $ol_with_ldbm_api != auto ; then
3573 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&5
3574 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-api argument" >&2;}
3577 if test $ol_with_ldbm_type != auto ; then
3578 { echo "$as_me:$LINENO: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&5
3579 echo "$as_me: WARNING: LDBM disabled, ignoring --with-ldbm-type argument" >&2;}
3582 if test $ol_enable_modules != yes -a \
3583 $ol_enable_bdb = no -a \
3584 $ol_enable_dnssrv = no -a \
3585 $ol_enable_hdb = no -a \
3586 $ol_enable_ldap = no -a \
3587 $ol_enable_meta = no -a \
3588 $ol_enable_monitor = no -a \
3589 $ol_enable_null = no -a \
3590 $ol_enable_passwd = no -a \
3591 $ol_enable_perl = no -a \
3592 $ol_enable_relay = no -a \
3593 $ol_enable_shell = no -a \
3594 $ol_enable_sql = no ; then
3596 if test $ol_enable_slapd = yes ; then
3597 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
3598 echo "$as_me: error: slapd requires a backend" >&2;}
3599 { (exit 1); exit 1; }; }
3601 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
3602 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
3608 ol_with_ldbm_type=no
3610 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
3611 ol_with_ldbm_api=berkeley
3615 if test $ol_with_ldbm_api = gdbm -a \
3616 $ol_with_ldbm_type = btree ; then
3617 { { echo "$as_me:$LINENO: error: GDBM only supports LDBM type hash" >&5
3618 echo "$as_me: error: GDBM only supports LDBM type hash" >&2;}
3619 { (exit 1); exit 1; }; }
3621 if test $ol_with_ldbm_api = mdbm -a \
3622 $ol_with_ldbm_type = btree ; then
3623 { { echo "$as_me:$LINENO: error: MDBM only supports LDBM type hash" >&5
3624 echo "$as_me: error: MDBM only supports LDBM type hash" >&2;}
3625 { (exit 1); exit 1; }; }
3627 if test $ol_with_ldbm_api = ndbm -a \
3628 $ol_with_ldbm_type = btree ; then
3629 { { echo "$as_me:$LINENO: error: NDBM only supports LDBM type hash" >&5
3630 echo "$as_me: error: NDBM only supports LDBM type hash" >&2;}
3631 { (exit 1); exit 1; }; }
3634 if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
3635 if test $ol_with_ldbm_api = auto ; then
3636 ol_with_ldbm_api=berkeley
3637 elif test $ol_with_ldbm_api != berkeley ; then
3638 { { echo "$as_me:$LINENO: error: LDBM API not compatible with BDB/HDB" >&5
3639 echo "$as_me: error: LDBM API not compatible with BDB/HDB" >&2;}
3640 { (exit 1); exit 1; }; }
3645 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
3646 { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
3647 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
3648 { (exit 1); exit 1; }; }
3651 if test $ol_enable_slurpd = yes ; then
3652 if test $ol_with_threads = no ; then
3653 { { echo "$as_me:$LINENO: error: slurpd requires threads" >&5
3654 echo "$as_me: error: slurpd requires threads" >&2;}
3655 { (exit 1); exit 1; }; }
3659 if test $ol_enable_lmpasswd = yes ; then
3660 if test $ol_with_tls = no ; then
3661 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
3662 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
3663 { (exit 1); exit 1; }; }
3667 if test $ol_enable_kbind = yes ; then
3668 if test $ol_with_kerberos = no ; then
3669 { { echo "$as_me:$LINENO: error: options require --with-kerberos" >&5
3670 echo "$as_me: error: options require --with-kerberos" >&2;}
3671 { (exit 1); exit 1; }; }
3672 elif test $ol_with_kerberos = auto ; then
3673 ol_with_kerberos=yes
3676 elif test $ol_enable_kbind = no ; then
3677 if test $ol_with_kerberos = auto ; then
3679 elif test $ol_with_kerberos != no ; then
3680 { echo "$as_me:$LINENO: WARNING: Kerberos detection enabled unnecessarily" >&5
3681 echo "$as_me: WARNING: Kerberos detection enabled unnecessarily" >&2;};
3686 if test $ol_enable_spasswd = yes ; then
3687 if test $ol_with_cyrus_sasl = no ; then
3688 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
3689 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
3690 { (exit 1); exit 1; }; }
3692 ol_with_cyrus_sasl=yes
3695 echo "$as_me:$LINENO: result: done" >&5
3696 echo "${ECHO_T}done" >&6
3740 BUILD_TRANSLUCENT=no
3743 SLAPD_STATIC_OVERLAYS=
3744 SLAPD_DYNAMIC_OVERLAYS=
3746 SLAPD_MODULES_LDFLAGS=
3747 SLAPD_MODULES_CPPFLAGS=
3749 SLAPD_STATIC_BACKENDS=back-ldif
3750 SLAPD_DYNAMIC_BACKENDS=
3775 cat >>confdefs.h <<\_ACEOF
3776 #define HAVE_MKVERSION 1
3784 *-*-aix*) if test -z "$CC" ; then
3785 case "$ol_with_threads" in
3786 auto | yes | posix) ol_aix_threads=yes ;;
3792 if test $ol_aix_threads = yes ; then
3793 if test -z "${CC}" ; then
3794 for ac_prog in cc_r xlc_r cc
3796 # Extract the first word of "$ac_prog", so it can be a program name with args.
3797 set dummy $ac_prog; ac_word=$2
3798 echo "$as_me:$LINENO: checking for $ac_word" >&5
3799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3800 if test "${ac_cv_prog_CC+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 if test -n "$CC"; then
3804 ac_cv_prog_CC="$CC" # Let the user override the test.
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 test -z "$as_dir" && as_dir=.
3811 for ac_exec_ext in '' $ac_executable_extensions; do
3812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3813 ac_cv_prog_CC="$ac_prog"
3814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3823 if test -n "$CC"; then
3824 echo "$as_me:$LINENO: result: $CC" >&5
3825 echo "${ECHO_T}$CC" >&6
3827 echo "$as_me:$LINENO: result: no" >&5
3828 echo "${ECHO_T}no" >&6
3831 test -n "$CC" && break
3835 if test "$CC" = cc ; then
3836 if test $ol_with_threads != auto ; then
3837 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
3838 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
3839 { (exit 1); exit 1; }; }
3841 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
3842 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
3848 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3849 ol_with_threads=posix
3850 ol_cv_pthread_create=yes
3854 if test -z "${CC}"; then
3855 for ac_prog in cc gcc
3857 # Extract the first word of "$ac_prog", so it can be a program name with args.
3858 set dummy $ac_prog; ac_word=$2
3859 echo "$as_me:$LINENO: checking for $ac_word" >&5
3860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3861 if test "${ac_cv_prog_CC+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3864 if test -n "$CC"; then
3865 ac_cv_prog_CC="$CC" # Let the user override the test.
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871 test -z "$as_dir" && as_dir=.
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3874 ac_cv_prog_CC="$ac_prog"
3875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3884 if test -n "$CC"; then
3885 echo "$as_me:$LINENO: result: $CC" >&5
3886 echo "${ECHO_T}$CC" >&6
3888 echo "$as_me:$LINENO: result: no" >&5
3889 echo "${ECHO_T}no" >&6
3892 test -n "$CC" && break
3894 test -n "$CC" || CC="missing"
3897 if test "${CC}" = "missing" ; then
3898 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&5
3899 echo "$as_me: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." >&2;}
3900 { (exit 1); exit 1; }; }
3904 if test -z "${AR}"; then
3905 for ac_prog in ar gar
3907 # Extract the first word of "$ac_prog", so it can be a program name with args.
3908 set dummy $ac_prog; ac_word=$2
3909 echo "$as_me:$LINENO: checking for $ac_word" >&5
3910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3911 if test "${ac_cv_prog_AR+set}" = set; then
3912 echo $ECHO_N "(cached) $ECHO_C" >&6
3914 if test -n "$AR"; then
3915 ac_cv_prog_AR="$AR" # Let the user override the test.
3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 test -z "$as_dir" && as_dir=.
3922 for ac_exec_ext in '' $ac_executable_extensions; do
3923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3924 ac_cv_prog_AR="$ac_prog"
3925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3934 if test -n "$AR"; then
3935 echo "$as_me:$LINENO: result: $AR" >&5
3936 echo "${ECHO_T}$AR" >&6
3938 echo "$as_me:$LINENO: result: no" >&5
3939 echo "${ECHO_T}no" >&6
3942 test -n "$AR" && break
3944 test -n "$AR" || AR="missing"
3947 if test "${AR}" = "missing" ; then
3948 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&5
3949 echo "$as_me: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." >&2;}
3950 { (exit 1); exit 1; }; }
3958 # Check whether --enable-fast-install or --disable-fast-install was given.
3959 if test "${enable_fast_install+set}" = set; then
3960 enableval="$enable_fast_install"
3961 p=${PACKAGE-default}
3963 yes) enable_fast_install=yes ;;
3964 no) enable_fast_install=no ;;
3966 enable_fast_install=no
3967 # Look at the argument we got. We use all the common list separators.
3968 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3969 for pkg in $enableval; do
3971 if test "X$pkg" = "X$p"; then
3972 enable_fast_install=yes
3979 enable_fast_install=yes
3982 DEPDIR="${am__leading_dot}deps"
3984 ac_config_commands="$ac_config_commands depfiles"
3987 am_make=${MAKE-make}
3988 cat > confinc << 'END'
3993 # If we don't find an include directive, just comment out the code.
3994 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3995 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3999 # First try GNU make style include.
4000 echo "include confinc" > confmf
4001 # We grep out `Entering directory' and `Leaving directory'
4002 # messages which can occur if `w' ends up in MAKEFLAGS.
4003 # In particular we don't look at `^make:' because GNU make might
4004 # be invoked under some other name (usually "gmake"), in which
4005 # case it prints its new name instead of `make'.
4006 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4011 # Now try BSD make style include.
4012 if test "$am__include" = "#"; then
4013 echo '.include "confinc"' > confmf
4014 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4015 am__include=.include
4022 echo "$as_me:$LINENO: result: $_am_result" >&5
4023 echo "${ECHO_T}$_am_result" >&6
4024 rm -f confinc confmf
4026 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4027 if test "${enable_dependency_tracking+set}" = set; then
4028 enableval="$enable_dependency_tracking"
4031 if test "x$enable_dependency_tracking" != xno; then
4032 am_depcomp="$ac_aux_dir/depcomp"
4037 if test "x$enable_dependency_tracking" != xno; then
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4052 if test -n "$ac_tool_prefix"; then
4053 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4054 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4055 echo "$as_me:$LINENO: checking for $ac_word" >&5
4056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4057 if test "${ac_cv_prog_CC+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 if test -n "$CC"; then
4061 ac_cv_prog_CC="$CC" # Let the user override the test.
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4067 test -z "$as_dir" && as_dir=.
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4070 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4080 if test -n "$CC"; then
4081 echo "$as_me:$LINENO: result: $CC" >&5
4082 echo "${ECHO_T}$CC" >&6
4084 echo "$as_me:$LINENO: result: no" >&5
4085 echo "${ECHO_T}no" >&6
4089 if test -z "$ac_cv_prog_CC"; then
4091 # Extract the first word of "gcc", so it can be a program name with args.
4092 set dummy gcc; ac_word=$2
4093 echo "$as_me:$LINENO: checking for $ac_word" >&5
4094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4095 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4096 echo $ECHO_N "(cached) $ECHO_C" >&6
4098 if test -n "$ac_ct_CC"; then
4099 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4105 test -z "$as_dir" && as_dir=.
4106 for ac_exec_ext in '' $ac_executable_extensions; do
4107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4108 ac_cv_prog_ac_ct_CC="gcc"
4109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4117 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4118 if test -n "$ac_ct_CC"; then
4119 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4120 echo "${ECHO_T}$ac_ct_CC" >&6
4122 echo "$as_me:$LINENO: result: no" >&5
4123 echo "${ECHO_T}no" >&6
4131 if test -z "$CC"; then
4132 if test -n "$ac_tool_prefix"; then
4133 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4134 set dummy ${ac_tool_prefix}cc; ac_word=$2
4135 echo "$as_me:$LINENO: checking for $ac_word" >&5
4136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4137 if test "${ac_cv_prog_CC+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 if test -n "$CC"; then
4141 ac_cv_prog_CC="$CC" # Let the user override the test.
4143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4147 test -z "$as_dir" && as_dir=.
4148 for ac_exec_ext in '' $ac_executable_extensions; do
4149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4150 ac_cv_prog_CC="${ac_tool_prefix}cc"
4151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 if test -n "$CC"; then
4161 echo "$as_me:$LINENO: result: $CC" >&5
4162 echo "${ECHO_T}$CC" >&6
4164 echo "$as_me:$LINENO: result: no" >&5
4165 echo "${ECHO_T}no" >&6
4169 if test -z "$ac_cv_prog_CC"; then
4171 # Extract the first word of "cc", so it can be a program name with args.
4172 set dummy cc; ac_word=$2
4173 echo "$as_me:$LINENO: checking for $ac_word" >&5
4174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4175 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4176 echo $ECHO_N "(cached) $ECHO_C" >&6
4178 if test -n "$ac_ct_CC"; then
4179 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 test -z "$as_dir" && as_dir=.
4186 for ac_exec_ext in '' $ac_executable_extensions; do
4187 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4188 ac_cv_prog_ac_ct_CC="cc"
4189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4197 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4198 if test -n "$ac_ct_CC"; then
4199 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4200 echo "${ECHO_T}$ac_ct_CC" >&6
4202 echo "$as_me:$LINENO: result: no" >&5
4203 echo "${ECHO_T}no" >&6
4212 if test -z "$CC"; then
4213 # Extract the first word of "cc", so it can be a program name with args.
4214 set dummy cc; ac_word=$2
4215 echo "$as_me:$LINENO: checking for $ac_word" >&5
4216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4217 if test "${ac_cv_prog_CC+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 if test -n "$CC"; then
4221 ac_cv_prog_CC="$CC" # Let the user override the test.
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4232 ac_prog_rejected=yes
4236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 if test $ac_prog_rejected = yes; then
4243 # We found a bogon in the path, so make sure we never use it.
4244 set dummy $ac_cv_prog_CC
4246 if test $# != 0; then
4247 # We chose a different compiler from the bogus one.
4248 # However, it has the same basename, so the bogon will be chosen
4249 # first if we set CC to just the basename; use the full file name.
4251 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4257 if test -n "$CC"; then
4258 echo "$as_me:$LINENO: result: $CC" >&5
4259 echo "${ECHO_T}$CC" >&6
4261 echo "$as_me:$LINENO: result: no" >&5
4262 echo "${ECHO_T}no" >&6
4266 if test -z "$CC"; then
4267 if test -n "$ac_tool_prefix"; then
4270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4271 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4272 echo "$as_me:$LINENO: checking for $ac_word" >&5
4273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4274 if test "${ac_cv_prog_CC+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 if test -n "$CC"; then
4278 ac_cv_prog_CC="$CC" # Let the user override the test.
4280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 test -z "$as_dir" && as_dir=.
4285 for ac_exec_ext in '' $ac_executable_extensions; do
4286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4287 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 if test -n "$CC"; then
4298 echo "$as_me:$LINENO: result: $CC" >&5
4299 echo "${ECHO_T}$CC" >&6
4301 echo "$as_me:$LINENO: result: no" >&5
4302 echo "${ECHO_T}no" >&6
4305 test -n "$CC" && break
4308 if test -z "$CC"; then
4312 # Extract the first word of "$ac_prog", so it can be a program name with args.
4313 set dummy $ac_prog; ac_word=$2
4314 echo "$as_me:$LINENO: checking for $ac_word" >&5
4315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4316 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 if test -n "$ac_ct_CC"; then
4320 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 test -z "$as_dir" && as_dir=.
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4329 ac_cv_prog_ac_ct_CC="$ac_prog"
4330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4338 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4339 if test -n "$ac_ct_CC"; then
4340 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4341 echo "${ECHO_T}$ac_ct_CC" >&6
4343 echo "$as_me:$LINENO: result: no" >&5
4344 echo "${ECHO_T}no" >&6
4347 test -n "$ac_ct_CC" && break
4356 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4357 See \`config.log' for more details." >&5
4358 echo "$as_me: error: no acceptable C compiler found in \$PATH
4359 See \`config.log' for more details." >&2;}
4360 { (exit 1); exit 1; }; }
4362 # Provide some information about the compiler.
4363 echo "$as_me:$LINENO:" \
4364 "checking for C compiler version" >&5
4365 ac_compiler=`set X $ac_compile; echo $2`
4366 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4367 (eval $ac_compiler --version </dev/null >&5) 2>&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }
4371 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4372 (eval $ac_compiler -v </dev/null >&5) 2>&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }
4376 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4377 (eval $ac_compiler -V </dev/null >&5) 2>&5
4379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4380 (exit $ac_status); }
4382 cat >conftest.$ac_ext <<_ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4397 ac_clean_files_save=$ac_clean_files
4398 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4399 # Try to create an executable without -o first, disregard a.out.
4400 # It will help us diagnose broken compilers, and finding out an intuition
4402 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4403 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4404 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4405 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4406 (eval $ac_link_default) 2>&5
4408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409 (exit $ac_status); }; then
4410 # Find the output, starting from the most likely. This scheme is
4411 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4414 # Be careful to initialize this variable, since it used to be cached.
4415 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4417 # b.out is created by i960 compilers.
4418 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4420 test -f "$ac_file" || continue
4422 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4425 # This is the source file.
4428 # We found the default executable, but exeext='' is most
4432 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4433 # FIXME: I believe we export ac_cv_exeext for Libtool,
4434 # but it would be cool to find out if it's true. Does anybody
4435 # maintain Libtool? --akim.
4443 echo "$as_me: failed program was:" >&5
4444 sed 's/^/| /' conftest.$ac_ext >&5
4446 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4447 See \`config.log' for more details." >&5
4448 echo "$as_me: error: C compiler cannot create executables
4449 See \`config.log' for more details." >&2;}
4450 { (exit 77); exit 77; }; }
4453 ac_exeext=$ac_cv_exeext
4454 echo "$as_me:$LINENO: result: $ac_file" >&5
4455 echo "${ECHO_T}$ac_file" >&6
4457 # Check the compiler produces executables we can run. If not, either
4458 # the compiler is broken, or we cross compile.
4459 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4460 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4461 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4462 # If not cross compiling, check that we can run a simple program.
4463 if test "$cross_compiling" != yes; then
4464 if { ac_try='./$ac_file'
4465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); }; }; then
4472 if test "$cross_compiling" = maybe; then
4475 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4476 If you meant to cross compile, use \`--host'.
4477 See \`config.log' for more details." >&5
4478 echo "$as_me: error: cannot run C compiled programs.
4479 If you meant to cross compile, use \`--host'.
4480 See \`config.log' for more details." >&2;}
4481 { (exit 1); exit 1; }; }
4485 echo "$as_me:$LINENO: result: yes" >&5
4486 echo "${ECHO_T}yes" >&6
4488 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4489 ac_clean_files=$ac_clean_files_save
4490 # Check the compiler produces executables we can run. If not, either
4491 # the compiler is broken, or we cross compile.
4492 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4493 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4494 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4495 echo "${ECHO_T}$cross_compiling" >&6
4497 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4498 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4500 (eval $ac_link) 2>&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; then
4504 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4505 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4506 # work properly (i.e., refer to `conftest.exe'), while it won't with
4508 for ac_file in conftest.exe conftest conftest.*; do
4509 test -f "$ac_file" || continue
4511 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4512 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4519 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4520 See \`config.log' for more details." >&5
4521 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4522 See \`config.log' for more details." >&2;}
4523 { (exit 1); exit 1; }; }
4526 rm -f conftest$ac_cv_exeext
4527 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4528 echo "${ECHO_T}$ac_cv_exeext" >&6
4530 rm -f conftest.$ac_ext
4531 EXEEXT=$ac_cv_exeext
4533 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4534 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4535 if test "${ac_cv_objext+set}" = set; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4538 cat >conftest.$ac_ext <<_ACEOF
4541 cat confdefs.h >>conftest.$ac_ext
4542 cat >>conftest.$ac_ext <<_ACEOF
4543 /* end confdefs.h. */
4553 rm -f conftest.o conftest.obj
4554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4555 (eval $ac_compile) 2>&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; then
4559 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4561 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4562 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4567 echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4570 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4571 See \`config.log' for more details." >&5
4572 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4573 See \`config.log' for more details." >&2;}
4574 { (exit 1); exit 1; }; }
4577 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4579 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4580 echo "${ECHO_T}$ac_cv_objext" >&6
4581 OBJEXT=$ac_cv_objext
4583 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4584 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4585 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 cat >conftest.$ac_ext <<_ACEOF
4591 cat confdefs.h >>conftest.$ac_ext
4592 cat >>conftest.$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4606 rm -f conftest.$ac_objext
4607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4608 (eval $ac_compile) 2>conftest.er1
4610 grep -v '^ *+' conftest.er1 >conftest.err
4612 cat conftest.err >&5
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } &&
4615 { ac_try='test -z "$ac_c_werror_flag"
4616 || test ! -s conftest.err'
4617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); }; } &&
4622 { ac_try='test -s conftest.$ac_objext'
4623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }; }; then
4630 echo "$as_me: failed program was:" >&5
4631 sed 's/^/| /' conftest.$ac_ext >&5
4635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4636 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4639 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4640 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4641 GCC=`test $ac_compiler_gnu = yes && echo yes`
4642 ac_test_CFLAGS=${CFLAGS+set}
4643 ac_save_CFLAGS=$CFLAGS
4645 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4646 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4647 if test "${ac_cv_prog_cc_g+set}" = set; then
4648 echo $ECHO_N "(cached) $ECHO_C" >&6
4650 cat >conftest.$ac_ext <<_ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h. */
4665 rm -f conftest.$ac_objext
4666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4667 (eval $ac_compile) 2>conftest.er1
4669 grep -v '^ *+' conftest.er1 >conftest.err
4671 cat conftest.err >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } &&
4674 { ac_try='test -z "$ac_c_werror_flag"
4675 || test ! -s conftest.err'
4676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }; } &&
4681 { ac_try='test -s conftest.$ac_objext'
4682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; }; then
4689 echo "$as_me: failed program was:" >&5
4690 sed 's/^/| /' conftest.$ac_ext >&5
4694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4696 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4697 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4698 if test "$ac_test_CFLAGS" = set; then
4699 CFLAGS=$ac_save_CFLAGS
4700 elif test $ac_cv_prog_cc_g = yes; then
4701 if test "$GCC" = yes; then
4707 if test "$GCC" = yes; then
4713 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4714 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4715 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4718 ac_cv_prog_cc_stdc=no
4720 cat >conftest.$ac_ext <<_ACEOF
4723 cat confdefs.h >>conftest.$ac_ext
4724 cat >>conftest.$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4728 #include <sys/types.h>
4729 #include <sys/stat.h>
4730 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4731 struct buf { int x; };
4732 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4733 static char *e (p, i)
4739 static char *f (char * (*g) (char **, int), char **p, ...)
4744 s = g (p, va_arg (v,int));
4749 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4750 function prototypes and stuff, but not '\xHH' hex character constants.
4751 These don't provoke an error unfortunately, instead are silently treated
4752 as 'x'. The following induces an error, until -std1 is added to get
4753 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4754 array size at least. It's necessary to write '\x00'==0 to get something
4755 that's true only with -std1. */
4756 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4758 int test (int i, double x);
4759 struct s1 {int (*f) (int a);};
4760 struct s2 {int (*f) (double a);};
4761 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4767 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4772 # Don't try gcc -ansi; that turns off useful extensions and
4773 # breaks some systems' header files.
4774 # AIX -qlanglvl=ansi
4775 # Ultrix and OSF/1 -std1
4776 # HP-UX 10.20 and later -Ae
4777 # HP-UX older versions -Aa -D_HPUX_SOURCE
4778 # SVR4 -Xc -D__EXTENSIONS__
4779 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4781 CC="$ac_save_CC $ac_arg"
4782 rm -f conftest.$ac_objext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4784 (eval $ac_compile) 2>conftest.er1
4786 grep -v '^ *+' conftest.er1 >conftest.err
4788 cat conftest.err >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } &&
4791 { ac_try='test -z "$ac_c_werror_flag"
4792 || test ! -s conftest.err'
4793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }; } &&
4798 { ac_try='test -s conftest.$ac_objext'
4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); }; }; then
4804 ac_cv_prog_cc_stdc=$ac_arg
4807 echo "$as_me: failed program was:" >&5
4808 sed 's/^/| /' conftest.$ac_ext >&5
4811 rm -f conftest.err conftest.$ac_objext
4813 rm -f conftest.$ac_ext conftest.$ac_objext
4818 case "x$ac_cv_prog_cc_stdc" in
4820 echo "$as_me:$LINENO: result: none needed" >&5
4821 echo "${ECHO_T}none needed" >&6 ;;
4823 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4824 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4825 CC="$CC $ac_cv_prog_cc_stdc" ;;
4828 # Some people use a C++ compiler to compile C. Since we use `exit',
4829 # in C++ we need to declare it. In case someone uses the same compiler
4830 # for both compiling C and C++ we need to have the C++ compiler decide
4831 # the declaration of exit, since it's the most demanding environment.
4832 cat >conftest.$ac_ext <<_ACEOF
4837 rm -f conftest.$ac_objext
4838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4839 (eval $ac_compile) 2>conftest.er1
4841 grep -v '^ *+' conftest.er1 >conftest.err
4843 cat conftest.err >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } &&
4846 { ac_try='test -z "$ac_c_werror_flag"
4847 || test ! -s conftest.err'
4848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); }; } &&
4853 { ac_try='test -s conftest.$ac_objext'
4854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858 (exit $ac_status); }; }; then
4859 for ac_declaration in \
4861 'extern "C" void std::exit (int) throw (); using std::exit;' \
4862 'extern "C" void std::exit (int); using std::exit;' \
4863 'extern "C" void exit (int) throw ();' \
4864 'extern "C" void exit (int);' \
4867 cat >conftest.$ac_ext <<_ACEOF
4870 cat confdefs.h >>conftest.$ac_ext
4871 cat >>conftest.$ac_ext <<_ACEOF
4872 /* end confdefs.h. */
4883 rm -f conftest.$ac_objext
4884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4885 (eval $ac_compile) 2>conftest.er1
4887 grep -v '^ *+' conftest.er1 >conftest.err
4889 cat conftest.err >&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } &&
4892 { ac_try='test -z "$ac_c_werror_flag"
4893 || test ! -s conftest.err'
4894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); }; } &&
4899 { ac_try='test -s conftest.$ac_objext'
4900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4904 (exit $ac_status); }; }; then
4907 echo "$as_me: failed program was:" >&5
4908 sed 's/^/| /' conftest.$ac_ext >&5
4912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4913 cat >conftest.$ac_ext <<_ACEOF
4916 cat confdefs.h >>conftest.$ac_ext
4917 cat >>conftest.$ac_ext <<_ACEOF
4918 /* end confdefs.h. */
4928 rm -f conftest.$ac_objext
4929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4930 (eval $ac_compile) 2>conftest.er1
4932 grep -v '^ *+' conftest.er1 >conftest.err
4934 cat conftest.err >&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); } &&
4937 { ac_try='test -z "$ac_c_werror_flag"
4938 || test ! -s conftest.err'
4939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); }; } &&
4944 { ac_try='test -s conftest.$ac_objext'
4945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); }; }; then
4952 echo "$as_me: failed program was:" >&5
4953 sed 's/^/| /' conftest.$ac_ext >&5
4956 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4959 if test -n "$ac_declaration"; then
4960 echo '#ifdef __cplusplus' >>confdefs.h
4961 echo $ac_declaration >>confdefs.h
4962 echo '#endif' >>confdefs.h
4966 echo "$as_me: failed program was:" >&5
4967 sed 's/^/| /' conftest.$ac_ext >&5
4970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4972 ac_cpp='$CPP $CPPFLAGS'
4973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4977 depcc="$CC" am_compiler_list=
4979 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4980 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4981 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4982 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4985 # We make a subdir and do the tests there. Otherwise we can end up
4986 # making bogus files that we don't know about and never remove. For
4987 # instance it was reported that on HP-UX the gcc test will end up
4988 # making a dummy file named `D' -- because `-MD' means `put the output
4991 # Copy depcomp to subdir because otherwise we won't find it if we're
4992 # using a relative directory.
4993 cp "$am_depcomp" conftest.dir
4995 # We will build objects and dependencies in a subdirectory because
4996 # it helps to detect inapplicable dependency modes. For instance
4997 # both Tru64's cc and ICC support -MD to output dependencies as a
4998 # side effect of compilation, but ICC will put the dependencies in
4999 # the current directory while Tru64 will put them in the object
5003 am_cv_CC_dependencies_compiler_type=none
5004 if test "$am_compiler_list" = ""; then
5005 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5007 for depmode in $am_compiler_list; do
5008 # Setup a source with many dependencies, because some compilers
5009 # like to wrap large dependency lists on column 80 (with \), and
5010 # we should not choose a depcomp mode which is confused by this.
5012 # We need to recreate these files for each test, as the compiler may
5013 # overwrite some of them when testing with obscure command lines.
5014 # This happens at least with the AIX C compiler.
5016 for i in 1 2 3 4 5 6; do
5017 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5018 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5019 # Solaris 8's {/usr,}/bin/sh.
5020 touch sub/conftst$i.h
5022 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5026 # after this tag, mechanisms are not by side-effect, so they'll
5027 # only be used when explicitly requested
5028 if test "x$enable_dependency_tracking" = xyes; then
5036 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5037 # mode. It turns out that the SunPro C++ compiler does not properly
5038 # handle `-M -o', and we need to detect this.
5039 if depmode=$depmode \
5040 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5041 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5042 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5043 >/dev/null 2>conftest.err &&
5044 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5045 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5046 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5047 # icc doesn't choke on unknown options, it will just issue warnings
5048 # or remarks (even with -Werror). So we grep stderr for any message
5049 # that says an option was ignored or not supported.
5050 # When given -MP, icc 7.0 and 7.1 complain thusly:
5051 # icc: Command line warning: ignoring option '-M'; no argument required
5052 # The diagnosis changed in icc 8.0:
5053 # icc: Command line remark: option '-MP' not supported
5054 if (grep 'ignoring option' conftest.err ||
5055 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5056 am_cv_CC_dependencies_compiler_type=$depmode
5065 am_cv_CC_dependencies_compiler_type=none
5069 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5070 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
5071 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5076 test "x$enable_dependency_tracking" != xno \
5077 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5079 am__fastdepCC_FALSE='#'
5081 am__fastdepCC_TRUE='#'
5082 am__fastdepCC_FALSE=
5086 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5087 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5088 if test "${lt_cv_path_SED+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5091 # Loop through the user's path and test for sed and gsed.
5092 # Then use that list of sed's as ones to test for truncation.
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 test -z "$as_dir" && as_dir=.
5098 for lt_ac_prog in sed gsed; do
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5101 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5108 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5109 # along with /bin/sed that truncates output.
5110 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5111 test ! -f $lt_ac_sed && continue
5112 cat /dev/null > conftest.in
5114 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5115 # Check for GNU sed and select it if it is found.
5116 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5117 lt_cv_path_SED=$lt_ac_sed
5121 cat conftest.in conftest.in >conftest.tmp
5122 mv conftest.tmp conftest.in
5123 cp conftest.in conftest.nl
5125 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5126 cmp -s conftest.out conftest.nl || break
5127 # 10000 chars as input seems more than enough
5128 test $lt_ac_count -gt 10 && break
5129 lt_ac_count=`expr $lt_ac_count + 1`
5130 if test $lt_ac_count -gt $lt_ac_max; then
5131 lt_ac_max=$lt_ac_count
5132 lt_cv_path_SED=$lt_ac_sed
5140 echo "$as_me:$LINENO: result: $SED" >&5
5141 echo "${ECHO_T}$SED" >&6
5143 echo "$as_me:$LINENO: checking for egrep" >&5
5144 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5145 if test "${ac_cv_prog_egrep+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5149 then ac_cv_prog_egrep='grep -E'
5150 else ac_cv_prog_egrep='egrep'
5153 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5154 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5155 EGREP=$ac_cv_prog_egrep
5159 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5160 if test "${with_gnu_ld+set}" = set; then
5161 withval="$with_gnu_ld"
5162 test "$withval" = no || with_gnu_ld=yes
5167 if test "$GCC" = yes; then
5168 # Check if gcc -print-prog-name=ld gives a path.
5169 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5170 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5173 # gcc leaves a trailing carriage return which upsets mingw
5174 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5176 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5179 # Accept absolute paths.
5181 re_direlt='/[^/][^/]*/\.\./'
5182 # Canonicalize the pathname of ld
5183 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5184 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5185 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5187 test -z "$LD" && LD="$ac_prog"
5190 # If it fails, then pretend we aren't using GCC.
5194 # If it is relative, then search for the first ld in PATH.
5198 elif test "$with_gnu_ld" = yes; then
5199 echo "$as_me:$LINENO: checking for GNU ld" >&5
5200 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5202 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5203 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5205 if test "${lt_cv_path_LD+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5208 if test -z "$LD"; then
5209 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5210 for ac_dir in $PATH; do
5212 test -z "$ac_dir" && ac_dir=.
5213 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5214 lt_cv_path_LD="$ac_dir/$ac_prog"
5215 # Check to see if the program is GNU ld. I'd rather use --version,
5216 # but apparently some GNU ld's only accept -v.
5217 # Break only if it was the GNU/non-GNU ld that we prefer.
5218 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5219 *GNU* | *'with BFD'*)
5220 test "$with_gnu_ld" != no && break
5223 test "$with_gnu_ld" != yes && break
5230 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5235 if test -n "$LD"; then
5236 echo "$as_me:$LINENO: result: $LD" >&5
5237 echo "${ECHO_T}$LD" >&6
5239 echo "$as_me:$LINENO: result: no" >&5
5240 echo "${ECHO_T}no" >&6
5242 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5243 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5244 { (exit 1); exit 1; }; }
5245 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5246 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5247 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5250 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5251 case `$LD -v 2>&1 </dev/null` in
5252 *GNU* | *'with BFD'*)
5253 lt_cv_prog_gnu_ld=yes
5256 lt_cv_prog_gnu_ld=no
5260 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5261 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5262 with_gnu_ld=$lt_cv_prog_gnu_ld
5265 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5266 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5267 if test "${lt_cv_ld_reload_flag+set}" = set; then
5268 echo $ECHO_N "(cached) $ECHO_C" >&6
5270 lt_cv_ld_reload_flag='-r'
5272 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5273 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5274 reload_flag=$lt_cv_ld_reload_flag
5275 case $reload_flag in
5277 *) reload_flag=" $reload_flag" ;;
5279 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5282 if test "$GCC" = yes; then
5283 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
5285 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5290 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5291 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5292 if test "${lt_cv_path_NM+set}" = set; then
5293 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 if test -n "$NM"; then
5296 # Let the user override the test.
5299 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5300 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5302 test -z "$ac_dir" && ac_dir=.
5303 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5304 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5305 # Check to see if the nm accepts a BSD-compat flag.
5306 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5307 # nm: unknown option "B" ignored
5308 # Tru64's nm complains that /dev/null is an invalid object file
5309 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5310 */dev/null* | *'Invalid file or object type'*)
5311 lt_cv_path_NM="$tmp_nm -B"
5315 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5317 lt_cv_path_NM="$tmp_nm -p"
5321 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5322 continue # so that we can try to find one that supports BSD flags
5329 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5332 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5333 echo "${ECHO_T}$lt_cv_path_NM" >&6
5336 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5337 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5339 if test "$LN_S" = "ln -s"; then
5340 echo "$as_me:$LINENO: result: yes" >&5
5341 echo "${ECHO_T}yes" >&6
5343 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5344 echo "${ECHO_T}no, using $LN_S" >&6
5347 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5348 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5349 if test "${lt_cv_deplibs_check_method+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 lt_cv_file_magic_cmd='$MAGIC_CMD'
5353 lt_cv_file_magic_test_file=
5354 lt_cv_deplibs_check_method='unknown'
5355 # Need to set the preceding variable on all platforms that support
5356 # interlibrary dependencies.
5357 # 'none' -- dependencies not supported.
5358 # `unknown' -- same as none, but documents that we really don't know.
5359 # 'pass_all' -- all dependencies passed with no checks.
5360 # 'test_compile' -- check by making test program.
5361 # 'file_magic [[regex]]' -- check by looking for files in library path
5362 # which responds to the $file_magic_cmd with a given extended regex.
5363 # If you have `file' or equivalent on your system and you're not sure
5364 # whether `pass_all' will *always* work, you probably want this one.
5368 lt_cv_deplibs_check_method=pass_all
5372 lt_cv_deplibs_check_method=pass_all
5376 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5377 lt_cv_file_magic_cmd='/usr/bin/file -L'
5378 lt_cv_file_magic_test_file=/shlib/libc.so
5382 # func_win32_libid is a shell function defined in ltmain.sh
5383 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5384 lt_cv_file_magic_cmd='func_win32_libid'
5388 # Base MSYS/MinGW do not provide the 'file' command needed by
5389 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5390 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5391 lt_cv_file_magic_cmd='$OBJDUMP -f'
5394 darwin* | rhapsody*)
5395 lt_cv_deplibs_check_method=pass_all
5398 freebsd* | kfreebsd*-gnu | dragonfly*)
5399 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5402 # Not sure whether the presence of OpenBSD here was a mistake.
5403 # Let's accept both of them until this is cleared up.
5404 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5405 lt_cv_file_magic_cmd=/usr/bin/file
5406 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5410 lt_cv_deplibs_check_method=pass_all
5415 lt_cv_deplibs_check_method=pass_all
5418 hpux10.20* | hpux11*)
5419 lt_cv_file_magic_cmd=/usr/bin/file
5422 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5423 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5426 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]'
5427 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5430 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5431 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5436 irix5* | irix6* | nonstopux*)
5438 *-32|*"-32 ") libmagic=32-bit;;
5439 *-n32|*"-n32 ") libmagic=N32;;
5440 *-64|*"-64 ") libmagic=64-bit;;
5441 *) libmagic=never-match;;
5443 lt_cv_deplibs_check_method=pass_all
5446 # This must be Linux ELF.
5448 lt_cv_deplibs_check_method=pass_all
5452 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5453 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5455 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5460 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5461 lt_cv_file_magic_cmd=/usr/bin/file
5462 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5466 lt_cv_deplibs_check_method=unknown
5470 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5471 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5473 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5477 osf3* | osf4* | osf5*)
5478 lt_cv_deplibs_check_method=pass_all
5482 lt_cv_deplibs_check_method=pass_all
5486 lt_cv_deplibs_check_method=pass_all
5489 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5490 case $host_vendor in
5492 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]'
5493 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5496 lt_cv_deplibs_check_method=pass_all
5499 lt_cv_file_magic_cmd='/bin/file'
5500 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5503 lt_cv_file_magic_cmd='/bin/file'
5504 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5505 lt_cv_file_magic_test_file=/lib/libc.so
5508 lt_cv_deplibs_check_method=pass_all
5513 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
5514 lt_cv_deplibs_check_method=pass_all
5519 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5520 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
5521 file_magic_cmd=$lt_cv_file_magic_cmd
5522 deplibs_check_method=$lt_cv_deplibs_check_method
5523 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5528 # If no C compiler was specified, use CC.
5531 # Allow CC to be a program name with arguments.
5535 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5536 if test "${enable_libtool_lock+set}" = set; then
5537 enableval="$enable_libtool_lock"
5540 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5542 # Some flags need to be propagated to the compiler or linker for good
5546 # Find out which ABI we are using.
5547 echo 'int i;' > conftest.$ac_ext
5548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5549 (eval $ac_compile) 2>&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; then
5553 case `/usr/bin/file conftest.$ac_objext` in
5565 # Find out which ABI we are using.
5566 echo '#line 5566 "configure"' > conftest.$ac_ext
5567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5568 (eval $ac_compile) 2>&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); }; then
5572 if test "$lt_cv_prog_gnu_ld" = yes; then
5573 case `/usr/bin/file conftest.$ac_objext` in
5575 LD="${LD-ld} -melf32bsmip"
5578 LD="${LD-ld} -melf32bmipn32"
5581 LD="${LD-ld} -melf64bmip"
5585 case `/usr/bin/file conftest.$ac_objext` in
5601 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5602 # Find out which ABI we are using.
5603 echo 'int i;' > conftest.$ac_ext
5604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5605 (eval $ac_compile) 2>&5
5607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5608 (exit $ac_status); }; then
5609 case "`/usr/bin/file conftest.o`" in
5613 LD="${LD-ld} -m elf_i386"
5615 ppc64-*linux*|powerpc64-*linux*)
5616 LD="${LD-ld} -m elf32ppclinux"
5619 LD="${LD-ld} -m elf_s390"
5622 LD="${LD-ld} -m elf32_sparc"
5629 LD="${LD-ld} -m elf_x86_64"
5631 ppc*-*linux*|powerpc*-*linux*)
5632 LD="${LD-ld} -m elf64ppc"
5635 LD="${LD-ld} -m elf64_s390"
5638 LD="${LD-ld} -m elf64_sparc"
5648 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5649 SAVE_CFLAGS="$CFLAGS"
5650 CFLAGS="$CFLAGS -belf"
5651 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5652 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5653 if test "${lt_cv_cc_needs_belf+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5657 ac_cpp='$CPP $CPPFLAGS'
5658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5662 cat >conftest.$ac_ext <<_ACEOF
5665 cat confdefs.h >>conftest.$ac_ext
5666 cat >>conftest.$ac_ext <<_ACEOF
5667 /* end confdefs.h. */
5677 rm -f conftest.$ac_objext conftest$ac_exeext
5678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5679 (eval $ac_link) 2>conftest.er1
5681 grep -v '^ *+' conftest.er1 >conftest.err
5683 cat conftest.err >&5
5684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685 (exit $ac_status); } &&
5686 { ac_try='test -z "$ac_c_werror_flag"
5687 || test ! -s conftest.err'
5688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); }; } &&
5693 { ac_try='test -s conftest$ac_exeext'
5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; }; then
5699 lt_cv_cc_needs_belf=yes
5701 echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5704 lt_cv_cc_needs_belf=no
5706 rm -f conftest.err conftest.$ac_objext \
5707 conftest$ac_exeext conftest.$ac_ext
5709 ac_cpp='$CPP $CPPFLAGS'
5710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5715 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5716 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5717 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5718 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5719 CFLAGS="$SAVE_CFLAGS"
5722 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
5723 if test -n "$ac_tool_prefix"; then
5724 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5725 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5726 echo "$as_me:$LINENO: checking for $ac_word" >&5
5727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5728 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
5729 echo $ECHO_N "(cached) $ECHO_C" >&6
5731 if test -n "$DLLTOOL"; then
5732 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 test -z "$as_dir" && as_dir=.
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5750 DLLTOOL=$ac_cv_prog_DLLTOOL
5751 if test -n "$DLLTOOL"; then
5752 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
5753 echo "${ECHO_T}$DLLTOOL" >&6
5755 echo "$as_me:$LINENO: result: no" >&5
5756 echo "${ECHO_T}no" >&6
5760 if test -z "$ac_cv_prog_DLLTOOL"; then
5761 ac_ct_DLLTOOL=$DLLTOOL
5762 # Extract the first word of "dlltool", so it can be a program name with args.
5763 set dummy dlltool; ac_word=$2
5764 echo "$as_me:$LINENO: checking for $ac_word" >&5
5765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5766 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 if test -n "$ac_ct_DLLTOOL"; then
5770 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776 test -z "$as_dir" && as_dir=.
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5779 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5786 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
5789 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5790 if test -n "$ac_ct_DLLTOOL"; then
5791 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
5792 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
5794 echo "$as_me:$LINENO: result: no" >&5
5795 echo "${ECHO_T}no" >&6
5798 DLLTOOL=$ac_ct_DLLTOOL
5800 DLLTOOL="$ac_cv_prog_DLLTOOL"
5803 if test -n "$ac_tool_prefix"; then
5804 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5805 set dummy ${ac_tool_prefix}as; ac_word=$2
5806 echo "$as_me:$LINENO: checking for $ac_word" >&5
5807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5808 if test "${ac_cv_prog_AS+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5811 if test -n "$AS"; then
5812 ac_cv_prog_AS="$AS" # Let the user override the test.
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 test -z "$as_dir" && as_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5821 ac_cv_prog_AS="${ac_tool_prefix}as"
5822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5831 if test -n "$AS"; then
5832 echo "$as_me:$LINENO: result: $AS" >&5
5833 echo "${ECHO_T}$AS" >&6
5835 echo "$as_me:$LINENO: result: no" >&5
5836 echo "${ECHO_T}no" >&6
5840 if test -z "$ac_cv_prog_AS"; then
5842 # Extract the first word of "as", so it can be a program name with args.
5843 set dummy as; ac_word=$2
5844 echo "$as_me:$LINENO: checking for $ac_word" >&5
5845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5846 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5849 if test -n "$ac_ct_AS"; then
5850 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 test -z "$as_dir" && as_dir=.
5857 for ac_exec_ext in '' $ac_executable_extensions; do
5858 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5859 ac_cv_prog_ac_ct_AS="as"
5860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
5869 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5870 if test -n "$ac_ct_AS"; then
5871 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
5872 echo "${ECHO_T}$ac_ct_AS" >&6
5874 echo "$as_me:$LINENO: result: no" >&5
5875 echo "${ECHO_T}no" >&6
5883 if test -n "$ac_tool_prefix"; then
5884 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5885 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5886 echo "$as_me:$LINENO: checking for $ac_word" >&5
5887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5888 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 if test -n "$OBJDUMP"; then
5892 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5901 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 OBJDUMP=$ac_cv_prog_OBJDUMP
5911 if test -n "$OBJDUMP"; then
5912 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5913 echo "${ECHO_T}$OBJDUMP" >&6
5915 echo "$as_me:$LINENO: result: no" >&5
5916 echo "${ECHO_T}no" >&6
5920 if test -z "$ac_cv_prog_OBJDUMP"; then
5921 ac_ct_OBJDUMP=$OBJDUMP
5922 # Extract the first word of "objdump", so it can be a program name with args.
5923 set dummy objdump; ac_word=$2
5924 echo "$as_me:$LINENO: checking for $ac_word" >&5
5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5926 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5927 echo $ECHO_N "(cached) $ECHO_C" >&6
5929 if test -n "$ac_ct_OBJDUMP"; then
5930 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936 test -z "$as_dir" && as_dir=.
5937 for ac_exec_ext in '' $ac_executable_extensions; do
5938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5939 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5946 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
5949 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5950 if test -n "$ac_ct_OBJDUMP"; then
5951 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5952 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
5954 echo "$as_me:$LINENO: result: no" >&5
5955 echo "${ECHO_T}no" >&6
5958 OBJDUMP=$ac_ct_OBJDUMP
5960 OBJDUMP="$ac_cv_prog_OBJDUMP"
5967 need_locks="$enable_libtool_lock"
5971 ac_cpp='$CPP $CPPFLAGS'
5972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5975 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5976 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5977 # On Suns, sometimes $CPP names a directory.
5978 if test -n "$CPP" && test -d "$CPP"; then
5981 if test -z "$CPP"; then
5982 if test "${ac_cv_prog_CPP+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 # Double quotes because CPP needs to be expanded
5986 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5989 for ac_c_preproc_warn_flag in '' yes
5991 # Use a header file that comes with gcc, so configuring glibc
5992 # with a fresh cross-compiler works.
5993 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5994 # <limits.h> exists even on freestanding compilers.
5995 # On the NeXT, cc -E runs the code through the compiler's parser,
5996 # not just through cpp. "Syntax error" is here to catch this case.
5997 cat >conftest.$ac_ext <<_ACEOF
6000 cat confdefs.h >>conftest.$ac_ext
6001 cat >>conftest.$ac_ext <<_ACEOF
6002 /* end confdefs.h. */
6004 # include <limits.h>
6006 # include <assert.h>
6010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6013 grep -v '^ *+' conftest.er1 >conftest.err
6015 cat conftest.err >&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } >/dev/null; then
6018 if test -s conftest.err; then
6019 ac_cpp_err=$ac_c_preproc_warn_flag
6020 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6027 if test -z "$ac_cpp_err"; then
6030 echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6033 # Broken: fails on valid input.
6036 rm -f conftest.err conftest.$ac_ext
6038 # OK, works on sane cases. Now check whether non-existent headers
6039 # can be detected and how.
6040 cat >conftest.$ac_ext <<_ACEOF
6043 cat confdefs.h >>conftest.$ac_ext
6044 cat >>conftest.$ac_ext <<_ACEOF
6045 /* end confdefs.h. */
6046 #include <ac_nonexistent.h>
6048 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6049 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6051 grep -v '^ *+' conftest.er1 >conftest.err
6053 cat conftest.err >&5
6054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6055 (exit $ac_status); } >/dev/null; then
6056 if test -s conftest.err; then
6057 ac_cpp_err=$ac_c_preproc_warn_flag
6058 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6065 if test -z "$ac_cpp_err"; then
6066 # Broken: success on invalid input.
6069 echo "$as_me: failed program was:" >&5
6070 sed 's/^/| /' conftest.$ac_ext >&5
6072 # Passes both tests.
6076 rm -f conftest.err conftest.$ac_ext
6079 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6080 rm -f conftest.err conftest.$ac_ext
6081 if $ac_preproc_ok; then
6093 echo "$as_me:$LINENO: result: $CPP" >&5
6094 echo "${ECHO_T}$CPP" >&6
6096 for ac_c_preproc_warn_flag in '' yes
6098 # Use a header file that comes with gcc, so configuring glibc
6099 # with a fresh cross-compiler works.
6100 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6101 # <limits.h> exists even on freestanding compilers.
6102 # On the NeXT, cc -E runs the code through the compiler's parser,
6103 # not just through cpp. "Syntax error" is here to catch this case.
6104 cat >conftest.$ac_ext <<_ACEOF
6107 cat confdefs.h >>conftest.$ac_ext
6108 cat >>conftest.$ac_ext <<_ACEOF
6109 /* end confdefs.h. */
6111 # include <limits.h>
6113 # include <assert.h>
6117 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6118 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6120 grep -v '^ *+' conftest.er1 >conftest.err
6122 cat conftest.err >&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } >/dev/null; then
6125 if test -s conftest.err; then
6126 ac_cpp_err=$ac_c_preproc_warn_flag
6127 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6134 if test -z "$ac_cpp_err"; then
6137 echo "$as_me: failed program was:" >&5
6138 sed 's/^/| /' conftest.$ac_ext >&5
6140 # Broken: fails on valid input.
6143 rm -f conftest.err conftest.$ac_ext
6145 # OK, works on sane cases. Now check whether non-existent headers
6146 # can be detected and how.
6147 cat >conftest.$ac_ext <<_ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6153 #include <ac_nonexistent.h>
6155 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6156 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6158 grep -v '^ *+' conftest.er1 >conftest.err
6160 cat conftest.err >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } >/dev/null; then
6163 if test -s conftest.err; then
6164 ac_cpp_err=$ac_c_preproc_warn_flag
6165 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6172 if test -z "$ac_cpp_err"; then
6173 # Broken: success on invalid input.
6176 echo "$as_me: failed program was:" >&5
6177 sed 's/^/| /' conftest.$ac_ext >&5
6179 # Passes both tests.
6183 rm -f conftest.err conftest.$ac_ext
6186 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6187 rm -f conftest.err conftest.$ac_ext
6188 if $ac_preproc_ok; then
6191 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6192 See \`config.log' for more details." >&5
6193 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6194 See \`config.log' for more details." >&2;}
6195 { (exit 1); exit 1; }; }
6199 ac_cpp='$CPP $CPPFLAGS'
6200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6205 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6206 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6207 if test "${ac_cv_header_stdc+set}" = set; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6210 cat >conftest.$ac_ext <<_ACEOF
6213 cat confdefs.h >>conftest.$ac_ext
6214 cat >>conftest.$ac_ext <<_ACEOF
6215 /* end confdefs.h. */
6229 rm -f conftest.$ac_objext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6231 (eval $ac_compile) 2>conftest.er1
6233 grep -v '^ *+' conftest.er1 >conftest.err
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } &&
6238 { ac_try='test -z "$ac_c_werror_flag"
6239 || test ! -s conftest.err'
6240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); }; } &&
6245 { ac_try='test -s conftest.$ac_objext'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; }; then
6251 ac_cv_header_stdc=yes
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6256 ac_cv_header_stdc=no
6258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6260 if test $ac_cv_header_stdc = yes; then
6261 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6262 cat >conftest.$ac_ext <<_ACEOF
6265 cat confdefs.h >>conftest.$ac_ext
6266 cat >>conftest.$ac_ext <<_ACEOF
6267 /* end confdefs.h. */
6271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6272 $EGREP "memchr" >/dev/null 2>&1; then
6275 ac_cv_header_stdc=no
6281 if test $ac_cv_header_stdc = yes; then
6282 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6283 cat >conftest.$ac_ext <<_ACEOF
6286 cat confdefs.h >>conftest.$ac_ext
6287 cat >>conftest.$ac_ext <<_ACEOF
6288 /* end confdefs.h. */
6292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6293 $EGREP "free" >/dev/null 2>&1; then
6296 ac_cv_header_stdc=no
6302 if test $ac_cv_header_stdc = yes; then
6303 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6304 if test "$cross_compiling" = yes; then
6307 cat >conftest.$ac_ext <<_ACEOF
6310 cat confdefs.h >>conftest.$ac_ext
6311 cat >>conftest.$ac_ext <<_ACEOF
6312 /* end confdefs.h. */
6314 #if ((' ' & 0x0FF) == 0x020)
6315 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6316 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6318 # define ISLOWER(c) \
6319 (('a' <= (c) && (c) <= 'i') \
6320 || ('j' <= (c) && (c) <= 'r') \
6321 || ('s' <= (c) && (c) <= 'z'))
6322 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6325 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6330 for (i = 0; i < 256; i++)
6331 if (XOR (islower (i), ISLOWER (i))
6332 || toupper (i) != TOUPPER (i))
6337 rm -f conftest$ac_exeext
6338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6339 (eval $ac_link) 2>&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; }; then
6350 echo "$as_me: program exited with status $ac_status" >&5
6351 echo "$as_me: failed program was:" >&5
6352 sed 's/^/| /' conftest.$ac_ext >&5
6355 ac_cv_header_stdc=no
6357 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6361 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6362 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6363 if test $ac_cv_header_stdc = yes; then
6365 cat >>confdefs.h <<\_ACEOF
6366 #define STDC_HEADERS 1
6371 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6381 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6382 inttypes.h stdint.h unistd.h
6384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6385 echo "$as_me:$LINENO: checking for $ac_header" >&5
6386 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6387 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 cat >conftest.$ac_ext <<_ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6396 $ac_includes_default
6398 #include <$ac_header>
6400 rm -f conftest.$ac_objext
6401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6402 (eval $ac_compile) 2>conftest.er1
6404 grep -v '^ *+' conftest.er1 >conftest.err
6406 cat conftest.err >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } &&
6409 { ac_try='test -z "$ac_c_werror_flag"
6410 || test ! -s conftest.err'
6411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; } &&
6416 { ac_try='test -s conftest.$ac_objext'
6417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); }; }; then
6422 eval "$as_ac_Header=yes"
6424 echo "$as_me: failed program was:" >&5
6425 sed 's/^/| /' conftest.$ac_ext >&5
6427 eval "$as_ac_Header=no"
6429 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6431 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6432 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6434 cat >>confdefs.h <<_ACEOF
6435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6444 for ac_header in dlfcn.h
6446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6447 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6448 echo "$as_me:$LINENO: checking for $ac_header" >&5
6449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6451 echo $ECHO_N "(cached) $ECHO_C" >&6
6453 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6454 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6456 # Is the header compilable?
6457 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6458 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6459 cat >conftest.$ac_ext <<_ACEOF
6462 cat confdefs.h >>conftest.$ac_ext
6463 cat >>conftest.$ac_ext <<_ACEOF
6464 /* end confdefs.h. */
6465 $ac_includes_default
6466 #include <$ac_header>
6468 rm -f conftest.$ac_objext
6469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6470 (eval $ac_compile) 2>conftest.er1
6472 grep -v '^ *+' conftest.er1 >conftest.err
6474 cat conftest.err >&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); } &&
6477 { ac_try='test -z "$ac_c_werror_flag"
6478 || test ! -s conftest.err'
6479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); }; } &&
6484 { ac_try='test -s conftest.$ac_objext'
6485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); }; }; then
6490 ac_header_compiler=yes
6492 echo "$as_me: failed program was:" >&5
6493 sed 's/^/| /' conftest.$ac_ext >&5
6495 ac_header_compiler=no
6497 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6498 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6499 echo "${ECHO_T}$ac_header_compiler" >&6
6501 # Is the header present?
6502 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6503 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6504 cat >conftest.$ac_ext <<_ACEOF
6507 cat confdefs.h >>conftest.$ac_ext
6508 cat >>conftest.$ac_ext <<_ACEOF
6509 /* end confdefs.h. */
6510 #include <$ac_header>
6512 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6513 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6515 grep -v '^ *+' conftest.er1 >conftest.err
6517 cat conftest.err >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } >/dev/null; then
6520 if test -s conftest.err; then
6521 ac_cpp_err=$ac_c_preproc_warn_flag
6522 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6529 if test -z "$ac_cpp_err"; then
6530 ac_header_preproc=yes
6532 echo "$as_me: failed program was:" >&5
6533 sed 's/^/| /' conftest.$ac_ext >&5
6535 ac_header_preproc=no
6537 rm -f conftest.err conftest.$ac_ext
6538 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6539 echo "${ECHO_T}$ac_header_preproc" >&6
6541 # So? What about this header?
6542 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6544 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6545 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6547 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6548 ac_header_preproc=yes
6551 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6552 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6553 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6554 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6555 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6556 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6557 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6558 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6560 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6561 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6562 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6565 ## ------------------------------------------ ##
6566 ## Report this to the AC_PACKAGE_NAME lists. ##
6567 ## ------------------------------------------ ##
6570 sed "s/^/$as_me: WARNING: /" >&2
6573 echo "$as_me:$LINENO: checking for $ac_header" >&5
6574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6575 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6578 eval "$as_ac_Header=\$ac_header_preproc"
6580 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6581 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6585 cat >>confdefs.h <<_ACEOF
6586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6594 ac_cpp='$CXXCPP $CPPFLAGS'
6595 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6596 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6597 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6598 if test -n "$ac_tool_prefix"; then
6599 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6601 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6602 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6603 echo "$as_me:$LINENO: checking for $ac_word" >&5
6604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6605 if test "${ac_cv_prog_CXX+set}" = set; then
6606 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 if test -n "$CXX"; then
6609 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6618 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6628 if test -n "$CXX"; then
6629 echo "$as_me:$LINENO: result: $CXX" >&5
6630 echo "${ECHO_T}$CXX" >&6
6632 echo "$as_me:$LINENO: result: no" >&5
6633 echo "${ECHO_T}no" >&6
6636 test -n "$CXX" && break
6639 if test -z "$CXX"; then
6641 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6643 # Extract the first word of "$ac_prog", so it can be a program name with args.
6644 set dummy $ac_prog; ac_word=$2
6645 echo "$as_me:$LINENO: checking for $ac_word" >&5
6646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6647 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 if test -n "$ac_ct_CXX"; then
6651 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 test -z "$as_dir" && as_dir=.
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6660 ac_cv_prog_ac_ct_CXX="$ac_prog"
6661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6669 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6670 if test -n "$ac_ct_CXX"; then
6671 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6672 echo "${ECHO_T}$ac_ct_CXX" >&6
6674 echo "$as_me:$LINENO: result: no" >&5
6675 echo "${ECHO_T}no" >&6
6678 test -n "$ac_ct_CXX" && break
6680 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6686 # Provide some information about the compiler.
6687 echo "$as_me:$LINENO:" \
6688 "checking for C++ compiler version" >&5
6689 ac_compiler=`set X $ac_compile; echo $2`
6690 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6691 (eval $ac_compiler --version </dev/null >&5) 2>&5
6693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694 (exit $ac_status); }
6695 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6696 (eval $ac_compiler -v </dev/null >&5) 2>&5
6698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6699 (exit $ac_status); }
6700 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6701 (eval $ac_compiler -V </dev/null >&5) 2>&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); }
6706 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6707 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6708 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6711 cat >conftest.$ac_ext <<_ACEOF
6714 cat confdefs.h >>conftest.$ac_ext
6715 cat >>conftest.$ac_ext <<_ACEOF
6716 /* end confdefs.h. */
6729 rm -f conftest.$ac_objext
6730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6731 (eval $ac_compile) 2>conftest.er1
6733 grep -v '^ *+' conftest.er1 >conftest.err
6735 cat conftest.err >&5
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); } &&
6738 { ac_try='test -z "$ac_cxx_werror_flag"
6739 || test ! -s conftest.err'
6740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); }; } &&
6745 { ac_try='test -s conftest.$ac_objext'
6746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); }; }; then
6753 echo "$as_me: failed program was:" >&5
6754 sed 's/^/| /' conftest.$ac_ext >&5
6758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6759 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6762 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6763 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6764 GXX=`test $ac_compiler_gnu = yes && echo yes`
6765 ac_test_CXXFLAGS=${CXXFLAGS+set}
6766 ac_save_CXXFLAGS=$CXXFLAGS
6768 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6769 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6770 if test "${ac_cv_prog_cxx_g+set}" = set; then
6771 echo $ECHO_N "(cached) $ECHO_C" >&6
6773 cat >conftest.$ac_ext <<_ACEOF
6776 cat confdefs.h >>conftest.$ac_ext
6777 cat >>conftest.$ac_ext <<_ACEOF
6778 /* end confdefs.h. */
6788 rm -f conftest.$ac_objext
6789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6790 (eval $ac_compile) 2>conftest.er1
6792 grep -v '^ *+' conftest.er1 >conftest.err
6794 cat conftest.err >&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); } &&
6797 { ac_try='test -z "$ac_cxx_werror_flag"
6798 || test ! -s conftest.err'
6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }; } &&
6804 { ac_try='test -s conftest.$ac_objext'
6805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6809 (exit $ac_status); }; }; then
6810 ac_cv_prog_cxx_g=yes
6812 echo "$as_me: failed program was:" >&5
6813 sed 's/^/| /' conftest.$ac_ext >&5
6817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6819 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6820 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6821 if test "$ac_test_CXXFLAGS" = set; then
6822 CXXFLAGS=$ac_save_CXXFLAGS
6823 elif test $ac_cv_prog_cxx_g = yes; then
6824 if test "$GXX" = yes; then
6830 if test "$GXX" = yes; then
6836 for ac_declaration in \
6838 'extern "C" void std::exit (int) throw (); using std::exit;' \
6839 'extern "C" void std::exit (int); using std::exit;' \
6840 'extern "C" void exit (int) throw ();' \
6841 'extern "C" void exit (int);' \
6844 cat >conftest.$ac_ext <<_ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6860 rm -f conftest.$ac_objext
6861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6862 (eval $ac_compile) 2>conftest.er1
6864 grep -v '^ *+' conftest.er1 >conftest.err
6866 cat conftest.err >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } &&
6869 { ac_try='test -z "$ac_cxx_werror_flag"
6870 || test ! -s conftest.err'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; } &&
6876 { ac_try='test -s conftest.$ac_objext'
6877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
6884 echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.$ac_ext >&5
6889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6890 cat >conftest.$ac_ext <<_ACEOF
6893 cat confdefs.h >>conftest.$ac_ext
6894 cat >>conftest.$ac_ext <<_ACEOF
6895 /* end confdefs.h. */
6905 rm -f conftest.$ac_objext
6906 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6907 (eval $ac_compile) 2>conftest.er1
6909 grep -v '^ *+' conftest.er1 >conftest.err
6911 cat conftest.err >&5
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); } &&
6914 { ac_try='test -z "$ac_cxx_werror_flag"
6915 || test ! -s conftest.err'
6916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); }; } &&
6921 { ac_try='test -s conftest.$ac_objext'
6922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); }; }; then
6929 echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.$ac_ext >&5
6933 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6936 if test -n "$ac_declaration"; then
6937 echo '#ifdef __cplusplus' >>confdefs.h
6938 echo $ac_declaration >>confdefs.h
6939 echo '#endif' >>confdefs.h
6943 ac_cpp='$CXXCPP $CPPFLAGS'
6944 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6945 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6946 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6948 depcc="$CXX" am_compiler_list=
6950 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6951 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6952 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6956 # We make a subdir and do the tests there. Otherwise we can end up
6957 # making bogus files that we don't know about and never remove. For
6958 # instance it was reported that on HP-UX the gcc test will end up
6959 # making a dummy file named `D' -- because `-MD' means `put the output
6962 # Copy depcomp to subdir because otherwise we won't find it if we're
6963 # using a relative directory.
6964 cp "$am_depcomp" conftest.dir
6966 # We will build objects and dependencies in a subdirectory because
6967 # it helps to detect inapplicable dependency modes. For instance
6968 # both Tru64's cc and ICC support -MD to output dependencies as a
6969 # side effect of compilation, but ICC will put the dependencies in
6970 # the current directory while Tru64 will put them in the object
6974 am_cv_CXX_dependencies_compiler_type=none
6975 if test "$am_compiler_list" = ""; then
6976 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6978 for depmode in $am_compiler_list; do
6979 # Setup a source with many dependencies, because some compilers
6980 # like to wrap large dependency lists on column 80 (with \), and
6981 # we should not choose a depcomp mode which is confused by this.
6983 # We need to recreate these files for each test, as the compiler may
6984 # overwrite some of them when testing with obscure command lines.
6985 # This happens at least with the AIX C compiler.
6987 for i in 1 2 3 4 5 6; do
6988 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6989 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6990 # Solaris 8's {/usr,}/bin/sh.
6991 touch sub/conftst$i.h
6993 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6997 # after this tag, mechanisms are not by side-effect, so they'll
6998 # only be used when explicitly requested
6999 if test "x$enable_dependency_tracking" = xyes; then
7007 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7008 # mode. It turns out that the SunPro C++ compiler does not properly
7009 # handle `-M -o', and we need to detect this.
7010 if depmode=$depmode \
7011 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7012 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7013 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7014 >/dev/null 2>conftest.err &&
7015 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7016 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7017 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7018 # icc doesn't choke on unknown options, it will just issue warnings
7019 # or remarks (even with -Werror). So we grep stderr for any message
7020 # that says an option was ignored or not supported.
7021 # When given -MP, icc 7.0 and 7.1 complain thusly:
7022 # icc: Command line warning: ignoring option '-M'; no argument required
7023 # The diagnosis changed in icc 8.0:
7024 # icc: Command line remark: option '-MP' not supported
7025 if (grep 'ignoring option' conftest.err ||
7026 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7027 am_cv_CXX_dependencies_compiler_type=$depmode
7036 am_cv_CXX_dependencies_compiler_type=none
7040 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
7041 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
7042 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7047 test "x$enable_dependency_tracking" != xno \
7048 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7049 am__fastdepCXX_TRUE=
7050 am__fastdepCXX_FALSE='#'
7052 am__fastdepCXX_TRUE='#'
7053 am__fastdepCXX_FALSE=
7059 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
7060 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
7061 (test "X$CXX" != "Xg++"))) ; then
7063 ac_cpp='$CXXCPP $CPPFLAGS'
7064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7067 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7068 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
7069 if test -z "$CXXCPP"; then
7070 if test "${ac_cv_prog_CXXCPP+set}" = set; then
7071 echo $ECHO_N "(cached) $ECHO_C" >&6
7073 # Double quotes because CXXCPP needs to be expanded
7074 for CXXCPP in "$CXX -E" "/lib/cpp"
7077 for ac_cxx_preproc_warn_flag in '' yes
7079 # Use a header file that comes with gcc, so configuring glibc
7080 # with a fresh cross-compiler works.
7081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7082 # <limits.h> exists even on freestanding compilers.
7083 # On the NeXT, cc -E runs the code through the compiler's parser,
7084 # not just through cpp. "Syntax error" is here to catch this case.
7085 cat >conftest.$ac_ext <<_ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h. */
7092 # include <limits.h>
7094 # include <assert.h>
7098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7101 grep -v '^ *+' conftest.er1 >conftest.err
7103 cat conftest.err >&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); } >/dev/null; then
7106 if test -s conftest.err; then
7107 ac_cpp_err=$ac_cxx_preproc_warn_flag
7108 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7115 if test -z "$ac_cpp_err"; then
7118 echo "$as_me: failed program was:" >&5
7119 sed 's/^/| /' conftest.$ac_ext >&5
7121 # Broken: fails on valid input.
7124 rm -f conftest.err conftest.$ac_ext
7126 # OK, works on sane cases. Now check whether non-existent headers
7127 # can be detected and how.
7128 cat >conftest.$ac_ext <<_ACEOF
7131 cat confdefs.h >>conftest.$ac_ext
7132 cat >>conftest.$ac_ext <<_ACEOF
7133 /* end confdefs.h. */
7134 #include <ac_nonexistent.h>
7136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7139 grep -v '^ *+' conftest.er1 >conftest.err
7141 cat conftest.err >&5
7142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7143 (exit $ac_status); } >/dev/null; then
7144 if test -s conftest.err; then
7145 ac_cpp_err=$ac_cxx_preproc_warn_flag
7146 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7153 if test -z "$ac_cpp_err"; then
7154 # Broken: success on invalid input.
7157 echo "$as_me: failed program was:" >&5
7158 sed 's/^/| /' conftest.$ac_ext >&5
7160 # Passes both tests.
7164 rm -f conftest.err conftest.$ac_ext
7167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7168 rm -f conftest.err conftest.$ac_ext
7169 if $ac_preproc_ok; then
7174 ac_cv_prog_CXXCPP=$CXXCPP
7177 CXXCPP=$ac_cv_prog_CXXCPP
7179 ac_cv_prog_CXXCPP=$CXXCPP
7181 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7182 echo "${ECHO_T}$CXXCPP" >&6
7184 for ac_cxx_preproc_warn_flag in '' yes
7186 # Use a header file that comes with gcc, so configuring glibc
7187 # with a fresh cross-compiler works.
7188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7189 # <limits.h> exists even on freestanding compilers.
7190 # On the NeXT, cc -E runs the code through the compiler's parser,
7191 # not just through cpp. "Syntax error" is here to catch this case.
7192 cat >conftest.$ac_ext <<_ACEOF
7195 cat confdefs.h >>conftest.$ac_ext
7196 cat >>conftest.$ac_ext <<_ACEOF
7197 /* end confdefs.h. */
7199 # include <limits.h>
7201 # include <assert.h>
7205 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7206 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7208 grep -v '^ *+' conftest.er1 >conftest.err
7210 cat conftest.err >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } >/dev/null; then
7213 if test -s conftest.err; then
7214 ac_cpp_err=$ac_cxx_preproc_warn_flag
7215 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7222 if test -z "$ac_cpp_err"; then
7225 echo "$as_me: failed program was:" >&5
7226 sed 's/^/| /' conftest.$ac_ext >&5
7228 # Broken: fails on valid input.
7231 rm -f conftest.err conftest.$ac_ext
7233 # OK, works on sane cases. Now check whether non-existent headers
7234 # can be detected and how.
7235 cat >conftest.$ac_ext <<_ACEOF
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h. */
7241 #include <ac_nonexistent.h>
7243 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7244 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7246 grep -v '^ *+' conftest.er1 >conftest.err
7248 cat conftest.err >&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); } >/dev/null; then
7251 if test -s conftest.err; then
7252 ac_cpp_err=$ac_cxx_preproc_warn_flag
7253 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7260 if test -z "$ac_cpp_err"; then
7261 # Broken: success on invalid input.
7264 echo "$as_me: failed program was:" >&5
7265 sed 's/^/| /' conftest.$ac_ext >&5
7267 # Passes both tests.
7271 rm -f conftest.err conftest.$ac_ext
7274 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7275 rm -f conftest.err conftest.$ac_ext
7276 if $ac_preproc_ok; then
7279 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7280 See \`config.log' for more details." >&5
7281 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7282 See \`config.log' for more details." >&2;}
7283 { (exit 1); exit 1; }; }
7287 ac_cpp='$CXXCPP $CPPFLAGS'
7288 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7289 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7290 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7296 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7297 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7298 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7299 if test -n "$ac_tool_prefix"; then
7300 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7302 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7303 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7304 echo "$as_me:$LINENO: checking for $ac_word" >&5
7305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7306 if test "${ac_cv_prog_F77+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 if test -n "$F77"; then
7310 ac_cv_prog_F77="$F77" # Let the user override the test.
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 test -z "$as_dir" && as_dir=.
7317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7319 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 if test -n "$F77"; then
7330 echo "$as_me:$LINENO: result: $F77" >&5
7331 echo "${ECHO_T}$F77" >&6
7333 echo "$as_me:$LINENO: result: no" >&5
7334 echo "${ECHO_T}no" >&6
7337 test -n "$F77" && break
7340 if test -z "$F77"; then
7342 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7344 # Extract the first word of "$ac_prog", so it can be a program name with args.
7345 set dummy $ac_prog; ac_word=$2
7346 echo "$as_me:$LINENO: checking for $ac_word" >&5
7347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7348 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 if test -n "$ac_ct_F77"; then
7352 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7361 ac_cv_prog_ac_ct_F77="$ac_prog"
7362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7370 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7371 if test -n "$ac_ct_F77"; then
7372 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7373 echo "${ECHO_T}$ac_ct_F77" >&6
7375 echo "$as_me:$LINENO: result: no" >&5
7376 echo "${ECHO_T}no" >&6
7379 test -n "$ac_ct_F77" && break
7386 # Provide some information about the compiler.
7387 echo "$as_me:7387:" \
7388 "checking for Fortran 77 compiler version" >&5
7389 ac_compiler=`set X $ac_compile; echo $2`
7390 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7391 (eval $ac_compiler --version </dev/null >&5) 2>&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); }
7395 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7396 (eval $ac_compiler -v </dev/null >&5) 2>&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); }
7400 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7401 (eval $ac_compiler -V </dev/null >&5) 2>&5
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); }
7407 # If we don't use `.F' as extension, the preprocessor is not run on the
7408 # input file. (Note that this only needs to work for GNU compilers.)
7411 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7412 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7413 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7414 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 cat >conftest.$ac_ext <<_ACEOF
7424 rm -f conftest.$ac_objext
7425 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7426 (eval $ac_compile) 2>conftest.er1
7428 grep -v '^ *+' conftest.er1 >conftest.err
7430 cat conftest.err >&5
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); } &&
7433 { ac_try='test -z "$ac_f77_werror_flag"
7434 || test ! -s conftest.err'
7435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); }; } &&
7440 { ac_try='test -s conftest.$ac_objext'
7441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); }; }; then
7448 echo "$as_me: failed program was:" >&5
7449 sed 's/^/| /' conftest.$ac_ext >&5
7453 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7454 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7457 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7458 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7460 ac_test_FFLAGS=${FFLAGS+set}
7461 ac_save_FFLAGS=$FFLAGS
7463 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7464 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7465 if test "${ac_cv_prog_f77_g+set}" = set; then
7466 echo $ECHO_N "(cached) $ECHO_C" >&6
7469 cat >conftest.$ac_ext <<_ACEOF
7474 rm -f conftest.$ac_objext
7475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7476 (eval $ac_compile) 2>conftest.er1
7478 grep -v '^ *+' conftest.er1 >conftest.err
7480 cat conftest.err >&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } &&
7483 { ac_try='test -z "$ac_f77_werror_flag"
7484 || test ! -s conftest.err'
7485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7489 (exit $ac_status); }; } &&
7490 { ac_try='test -s conftest.$ac_objext'
7491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7495 (exit $ac_status); }; }; then
7496 ac_cv_prog_f77_g=yes
7498 echo "$as_me: failed program was:" >&5
7499 sed 's/^/| /' conftest.$ac_ext >&5
7503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7506 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7507 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7508 if test "$ac_test_FFLAGS" = set; then
7509 FFLAGS=$ac_save_FFLAGS
7510 elif test $ac_cv_prog_f77_g = yes; then
7511 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7517 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7524 G77=`test $ac_compiler_gnu = yes && echo yes`
7526 ac_cpp='$CPP $CPPFLAGS'
7527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7533 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7535 # find the maximum length of command line arguments
7536 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7537 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7538 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7546 # On DJGPP, this test can blow up pretty badly due to problems in libc
7547 # (any single argument exceeding 2000 bytes causes a buffer overrun
7548 # during glob expansion). Even if it were fixed, the result of this
7549 # check would be larger than it should be.
7550 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7554 # Under GNU Hurd, this test is not required because there is
7555 # no limit to the length of command line arguments.
7556 # Libtool will interpret -1 as no limit whatsoever
7557 lt_cv_sys_max_cmd_len=-1;
7561 # On Win9x/ME, this test blows up -- it succeeds, but takes
7562 # about 5 minutes as the teststring grows exponentially.
7563 # Worse, since 9x/ME are not pre-emptively multitasking,
7564 # you end up with a "frozen" computer, even though with patience
7565 # the test eventually succeeds (with a max line length of 256k).
7566 # Instead, let's just punt: use the minimum linelength reported by
7567 # all of the supported platforms: 8192 (on NT/2K/XP).
7568 lt_cv_sys_max_cmd_len=8192;
7572 # On AmigaOS with pdksh, this test takes hours, literally.
7573 # So we just punt and use a minimum line length of 8192.
7574 lt_cv_sys_max_cmd_len=8192;
7577 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7578 # This has been around since 386BSD, at least. Likely further.
7579 if test -x /sbin/sysctl; then
7580 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7581 elif test -x /usr/sbin/sysctl; then
7582 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7584 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
7586 # And add a safety zone
7587 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7588 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7591 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7592 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7593 # nice to cause kernel panics so lets avoid the loop below.
7594 # First set a reasonable default.
7595 lt_cv_sys_max_cmd_len=16384
7597 if test -x /sbin/sysconfig; then
7598 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7599 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7604 # If test is not a shell built-in, we'll probably end up computing a
7605 # maximum length that is only half of the actual maximum length, but
7607 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7608 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7609 = "XX$teststring") >/dev/null 2>&1 &&
7610 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7611 lt_cv_sys_max_cmd_len=$new_result &&
7612 test $i != 17 # 1/2 MB should be enough
7615 teststring=$teststring$teststring
7618 # Add a significant safety factor because C++ compilers can tack on massive
7619 # amounts of additional arguments before passing them to the linker.
7620 # It appears as though 1/2 is a usable value.
7621 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7627 if test -n $lt_cv_sys_max_cmd_len ; then
7628 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7629 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7631 echo "$as_me:$LINENO: result: none" >&5
7632 echo "${ECHO_T}none" >&6
7638 # Check for command to grab the raw symbol name followed by C symbol from nm.
7639 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7640 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7641 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7645 # These are sane defaults that work on at least a few old systems.
7646 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7648 # Character class describing NM global symbol codes.
7649 symcode='[BCDEGRST]'
7651 # Regexp to match symbols that can be accessed directly from C.
7652 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7654 # Transform an extracted symbol line into a proper C declaration
7655 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7657 # Transform an extracted symbol line into symbol name and symbol address
7658 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'"
7660 # Define system-specific variables.
7665 cygwin* | mingw* | pw32*)
7666 symcode='[ABCDGISTW]'
7668 hpux*) # Its linker distinguishes data from code symbols
7669 if test "$host_cpu" = ia64; then
7670 symcode='[ABCDEGRST]'
7672 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7673 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'"
7676 if test "$host_cpu" = ia64; then
7677 symcode='[ABCDGIRSTW]'
7678 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7679 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'"
7683 symcode='[BCDEGRST]'
7686 symcode='[BCDEGQRST]'
7696 # Handle CRLF in mingw tool chain
7700 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7704 # If we're using GNU nm, then use its standard symbol codes.
7705 case `$NM -V 2>&1` in
7706 *GNU* | *'with BFD'*)
7707 symcode='[ABCDGIRSTW]' ;;
7710 # Try without a prefix undercore, then with it.
7711 for ac_symprfx in "" "_"; do
7713 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7714 symxfrm="\\1 $ac_symprfx\\2 \\2"
7716 # Write the raw and C identifiers.
7717 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7719 # Check to see that the pipe works correctly.
7723 cat > conftest.$ac_ext <<EOF
7728 void nm_test_func(){}
7732 int main(){nm_test_var='a';nm_test_func();return(0);}
7735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7736 (eval $ac_compile) 2>&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); }; then
7740 # Now try to grab the symbols.
7742 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7743 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746 (exit $ac_status); } && test -s "$nlist"; then
7747 # Try sorting and uniquifying the output.
7748 if sort "$nlist" | uniq > "$nlist"T; then
7749 mv -f "$nlist"T "$nlist"
7754 # Make sure that we snagged all the symbols we need.
7755 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7756 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7757 cat <<EOF > conftest.$ac_ext
7763 # Now generate the symbol file.
7764 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7766 cat <<EOF >> conftest.$ac_ext
7767 #if defined (__STDC__) && __STDC__
7768 # define lt_ptr_t void *
7770 # define lt_ptr_t char *
7774 /* The mapping between symbol names and symbols. */
7779 lt_preloaded_symbols[] =
7782 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7783 cat <<\EOF >> conftest.$ac_ext
7791 # Now try linking the two files.
7792 mv conftest.$ac_objext conftstm.$ac_objext
7793 lt_save_LIBS="$LIBS"
7794 lt_save_CFLAGS="$CFLAGS"
7795 LIBS="conftstm.$ac_objext"
7796 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7798 (eval $ac_link) 2>&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7804 LIBS="$lt_save_LIBS"
7805 CFLAGS="$lt_save_CFLAGS"
7807 echo "cannot find nm_test_func in $nlist" >&5
7810 echo "cannot find nm_test_var in $nlist" >&5
7813 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7816 echo "$progname: failed program was:" >&5
7817 cat conftest.$ac_ext >&5
7819 rm -f conftest* conftst*
7821 # Do not use the global_symbol_pipe unless it works.
7822 if test "$pipe_works" = yes; then
7825 lt_cv_sys_global_symbol_pipe=
7831 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7832 lt_cv_sys_global_symbol_to_cdecl=
7834 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7835 echo "$as_me:$LINENO: result: failed" >&5
7836 echo "${ECHO_T}failed" >&6
7838 echo "$as_me:$LINENO: result: ok" >&5
7839 echo "${ECHO_T}ok" >&6
7842 echo "$as_me:$LINENO: checking for objdir" >&5
7843 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7844 if test "${lt_cv_objdir+set}" = set; then
7845 echo $ECHO_N "(cached) $ECHO_C" >&6
7847 rm -f .libs 2>/dev/null
7848 mkdir .libs 2>/dev/null
7849 if test -d .libs; then
7852 # MS-DOS does not allow filenames that begin with a dot.
7855 rmdir .libs 2>/dev/null
7857 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7858 echo "${ECHO_T}$lt_cv_objdir" >&6
7859 objdir=$lt_cv_objdir
7867 # AIX sometimes has problems with the GCC collect2 program. For some
7868 # reason, if we set the COLLECT_NAMES environment variable, the problems
7869 # vanish in a puff of smoke.
7870 if test "X${COLLECT_NAMES+set}" != Xset; then
7872 export COLLECT_NAMES
7877 # Sed substitution that helps us do robust quoting. It backslashifies
7878 # metacharacters that are still active within double-quoted strings.
7879 Xsed='sed -e 1s/^X//'
7880 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7882 # Same as above, but do not quote variable references.
7883 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7885 # Sed substitution to delay expansion of an escaped shell variable in a
7886 # double_quote_subst'ed string.
7887 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7889 # Sed substitution to avoid accidental globbing in evaled expressions
7890 no_glob_subst='s/\*/\\\*/g'
7896 default_ofile=libtool
7897 can_build_shared=yes
7899 # All known linkers require a `.a' archive for static linking (except M$VC,
7900 # which needs '.lib').
7902 ltmain="$ac_aux_dir/ltmain.sh"
7903 ofile="$default_ofile"
7904 with_gnu_ld="$lt_cv_prog_gnu_ld"
7906 if test -n "$ac_tool_prefix"; then
7907 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7908 set dummy ${ac_tool_prefix}ar; ac_word=$2
7909 echo "$as_me:$LINENO: checking for $ac_word" >&5
7910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7911 if test "${ac_cv_prog_AR+set}" = set; then
7912 echo $ECHO_N "(cached) $ECHO_C" >&6
7914 if test -n "$AR"; then
7915 ac_cv_prog_AR="$AR" # Let the user override the test.
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921 test -z "$as_dir" && as_dir=.
7922 for ac_exec_ext in '' $ac_executable_extensions; do
7923 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7924 ac_cv_prog_AR="${ac_tool_prefix}ar"
7925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7934 if test -n "$AR"; then
7935 echo "$as_me:$LINENO: result: $AR" >&5
7936 echo "${ECHO_T}$AR" >&6
7938 echo "$as_me:$LINENO: result: no" >&5
7939 echo "${ECHO_T}no" >&6
7943 if test -z "$ac_cv_prog_AR"; then
7945 # Extract the first word of "ar", so it can be a program name with args.
7946 set dummy ar; ac_word=$2
7947 echo "$as_me:$LINENO: checking for $ac_word" >&5
7948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7949 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 if test -n "$ac_ct_AR"; then
7953 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 test -z "$as_dir" && as_dir=.
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7962 ac_cv_prog_ac_ct_AR="ar"
7963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7969 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7972 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7973 if test -n "$ac_ct_AR"; then
7974 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7975 echo "${ECHO_T}$ac_ct_AR" >&6
7977 echo "$as_me:$LINENO: result: no" >&5
7978 echo "${ECHO_T}no" >&6
7986 if test -n "$ac_tool_prefix"; then
7987 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7988 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7989 echo "$as_me:$LINENO: checking for $ac_word" >&5
7990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7991 if test "${ac_cv_prog_RANLIB+set}" = set; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7994 if test -n "$RANLIB"; then
7995 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8001 test -z "$as_dir" && as_dir=.
8002 for ac_exec_ext in '' $ac_executable_extensions; do
8003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8004 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8013 RANLIB=$ac_cv_prog_RANLIB
8014 if test -n "$RANLIB"; then
8015 echo "$as_me:$LINENO: result: $RANLIB" >&5
8016 echo "${ECHO_T}$RANLIB" >&6
8018 echo "$as_me:$LINENO: result: no" >&5
8019 echo "${ECHO_T}no" >&6
8023 if test -z "$ac_cv_prog_RANLIB"; then
8024 ac_ct_RANLIB=$RANLIB
8025 # Extract the first word of "ranlib", so it can be a program name with args.
8026 set dummy ranlib; ac_word=$2
8027 echo "$as_me:$LINENO: checking for $ac_word" >&5
8028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8029 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8030 echo $ECHO_N "(cached) $ECHO_C" >&6
8032 if test -n "$ac_ct_RANLIB"; then
8033 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8039 test -z "$as_dir" && as_dir=.
8040 for ac_exec_ext in '' $ac_executable_extensions; do
8041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8042 ac_cv_prog_ac_ct_RANLIB="ranlib"
8043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8049 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
8052 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8053 if test -n "$ac_ct_RANLIB"; then
8054 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8055 echo "${ECHO_T}$ac_ct_RANLIB" >&6
8057 echo "$as_me:$LINENO: result: no" >&5
8058 echo "${ECHO_T}no" >&6
8061 RANLIB=$ac_ct_RANLIB
8063 RANLIB="$ac_cv_prog_RANLIB"
8066 if test -n "$ac_tool_prefix"; then
8067 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8068 set dummy ${ac_tool_prefix}strip; ac_word=$2
8069 echo "$as_me:$LINENO: checking for $ac_word" >&5
8070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8071 if test "${ac_cv_prog_STRIP+set}" = set; then
8072 echo $ECHO_N "(cached) $ECHO_C" >&6
8074 if test -n "$STRIP"; then
8075 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8081 test -z "$as_dir" && as_dir=.
8082 for ac_exec_ext in '' $ac_executable_extensions; do
8083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8084 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8093 STRIP=$ac_cv_prog_STRIP
8094 if test -n "$STRIP"; then
8095 echo "$as_me:$LINENO: result: $STRIP" >&5
8096 echo "${ECHO_T}$STRIP" >&6
8098 echo "$as_me:$LINENO: result: no" >&5
8099 echo "${ECHO_T}no" >&6
8103 if test -z "$ac_cv_prog_STRIP"; then
8105 # Extract the first word of "strip", so it can be a program name with args.
8106 set dummy strip; ac_word=$2
8107 echo "$as_me:$LINENO: checking for $ac_word" >&5
8108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8109 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8110 echo $ECHO_N "(cached) $ECHO_C" >&6
8112 if test -n "$ac_ct_STRIP"; then
8113 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119 test -z "$as_dir" && as_dir=.
8120 for ac_exec_ext in '' $ac_executable_extensions; do
8121 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8122 ac_cv_prog_ac_ct_STRIP="strip"
8123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8129 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
8132 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8133 if test -n "$ac_ct_STRIP"; then
8134 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8135 echo "${ECHO_T}$ac_ct_STRIP" >&6
8137 echo "$as_me:$LINENO: result: no" >&5
8138 echo "${ECHO_T}no" >&6
8143 STRIP="$ac_cv_prog_STRIP"
8148 old_CFLAGS="$CFLAGS"
8150 # Set sane defaults for various variables
8151 test -z "$AR" && AR=ar
8152 test -z "$AR_FLAGS" && AR_FLAGS=cru
8153 test -z "$AS" && AS=as
8154 test -z "$CC" && CC=cc
8155 test -z "$LTCC" && LTCC=$CC
8156 test -z "$DLLTOOL" && DLLTOOL=dlltool
8157 test -z "$LD" && LD=ld
8158 test -z "$LN_S" && LN_S="ln -s"
8159 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8160 test -z "$NM" && NM=nm
8161 test -z "$SED" && SED=sed
8162 test -z "$OBJDUMP" && OBJDUMP=objdump
8163 test -z "$RANLIB" && RANLIB=:
8164 test -z "$STRIP" && STRIP=:
8165 test -z "$ac_objext" && ac_objext=o
8167 # Determine commands to create old-style static archives.
8168 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8169 old_postinstall_cmds='chmod 644 $oldlib'
8170 old_postuninstall_cmds=
8172 if test -n "$RANLIB"; then
8175 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8178 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8181 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8184 for cc_temp in $compiler""; do
8186 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8187 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8192 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8195 # Only perform the check for file, if the check method requires it
8196 case $deplibs_check_method in
8198 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8199 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8200 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8201 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8206 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8209 lt_save_MAGIC_CMD="$MAGIC_CMD"
8210 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8211 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8212 for ac_dir in $ac_dummy; do
8214 test -z "$ac_dir" && ac_dir=.
8215 if test -f $ac_dir/${ac_tool_prefix}file; then
8216 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8217 if test -n "$file_magic_test_file"; then
8218 case $deplibs_check_method in
8220 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8221 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8222 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8223 $EGREP "$file_magic_regex" > /dev/null; then
8228 *** Warning: the command libtool uses to detect shared libraries,
8229 *** $file_magic_cmd, produces output that libtool cannot recognize.
8230 *** The result is that libtool may fail to recognize shared libraries
8231 *** as such. This will affect the creation of libtool libraries that
8232 *** depend on shared libraries, but programs linked with such libtool
8233 *** libraries will work regardless of this problem. Nevertheless, you
8234 *** may want to report the problem to your system manager and/or to
8235 *** bug-libtool@gnu.org
8245 MAGIC_CMD="$lt_save_MAGIC_CMD"
8250 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8251 if test -n "$MAGIC_CMD"; then
8252 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8253 echo "${ECHO_T}$MAGIC_CMD" >&6
8255 echo "$as_me:$LINENO: result: no" >&5
8256 echo "${ECHO_T}no" >&6
8259 if test -z "$lt_cv_path_MAGIC_CMD"; then
8260 if test -n "$ac_tool_prefix"; then
8261 echo "$as_me:$LINENO: checking for file" >&5
8262 echo $ECHO_N "checking for file... $ECHO_C" >&6
8263 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
8268 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8271 lt_save_MAGIC_CMD="$MAGIC_CMD"
8272 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8273 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8274 for ac_dir in $ac_dummy; do
8276 test -z "$ac_dir" && ac_dir=.
8277 if test -f $ac_dir/file; then
8278 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8279 if test -n "$file_magic_test_file"; then
8280 case $deplibs_check_method in
8282 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8283 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8284 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8285 $EGREP "$file_magic_regex" > /dev/null; then
8290 *** Warning: the command libtool uses to detect shared libraries,
8291 *** $file_magic_cmd, produces output that libtool cannot recognize.
8292 *** The result is that libtool may fail to recognize shared libraries
8293 *** as such. This will affect the creation of libtool libraries that
8294 *** depend on shared libraries, but programs linked with such libtool
8295 *** libraries will work regardless of this problem. Nevertheless, you
8296 *** may want to report the problem to your system manager and/or to
8297 *** bug-libtool@gnu.org
8307 MAGIC_CMD="$lt_save_MAGIC_CMD"
8312 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8313 if test -n "$MAGIC_CMD"; then
8314 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8315 echo "${ECHO_T}$MAGIC_CMD" >&6
8317 echo "$as_me:$LINENO: result: no" >&5
8318 echo "${ECHO_T}no" >&6
8331 enable_win32_dll=yes
8333 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8334 if test "${enable_libtool_lock+set}" = set; then
8335 enableval="$enable_libtool_lock"
8338 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8341 # Check whether --with-pic or --without-pic was given.
8342 if test "${with_pic+set}" = set; then
8348 test -z "$pic_mode" && pic_mode=default
8350 # Use C for the default configuration in the libtool script
8354 ac_cpp='$CPP $CPPFLAGS'
8355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8360 # Source file extension for C test sources.
8363 # Object file extension for compiled C test sources.
8367 # Code to be used in simple compile tests
8368 lt_simple_compile_test_code="int some_variable = 0;\n"
8370 # Code to be used in simple link tests
8371 lt_simple_link_test_code='int main(){return(0);}\n'
8374 # If no C compiler was specified, use CC.
8377 # Allow CC to be a program name with arguments.
8381 # save warnings/boilerplate of simple test code
8382 ac_outfile=conftest.$ac_objext
8383 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8384 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8385 _lt_compiler_boilerplate=`cat conftest.err`
8388 ac_outfile=conftest.$ac_objext
8389 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8390 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8391 _lt_linker_boilerplate=`cat conftest.err`
8396 # Check for any special shared library compilation flags.
8399 if test "$GCC" = no; then
8402 lt_prog_cc_shlib='-belf'
8406 if test -n "$lt_prog_cc_shlib"; then
8407 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8408 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8409 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8411 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8412 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8413 lt_cv_prog_cc_can_build_shared=no
8419 # Check to make sure the static flag actually works.
8421 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8422 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8423 if test "${lt_prog_compiler_static_works+set}" = set; then
8424 echo $ECHO_N "(cached) $ECHO_C" >&6
8426 lt_prog_compiler_static_works=no
8427 save_LDFLAGS="$LDFLAGS"
8428 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8429 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8430 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8431 # The compiler can only warn and ignore the option if not recognized
8432 # So say no if there are warnings
8433 if test -s conftest.err; then
8434 # Append any errors to the config.log.
8435 cat conftest.err 1>&5
8436 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8437 $SED '/^$/d' conftest.err >conftest.er2
8438 if diff conftest.exp conftest.er2 >/dev/null; then
8439 lt_prog_compiler_static_works=yes
8442 lt_prog_compiler_static_works=yes
8446 LDFLAGS="$save_LDFLAGS"
8449 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8450 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8452 if test x"$lt_prog_compiler_static_works" = xyes; then
8455 lt_prog_compiler_static=
8461 lt_prog_compiler_no_builtin_flag=
8463 if test "$GCC" = yes; then
8464 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8467 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8468 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8469 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8470 echo $ECHO_N "(cached) $ECHO_C" >&6
8472 lt_cv_prog_compiler_rtti_exceptions=no
8473 ac_outfile=conftest.$ac_objext
8474 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8475 lt_compiler_flag="-fno-rtti -fno-exceptions"
8476 # Insert the option either (1) after the last *FLAGS variable, or
8477 # (2) before a word containing "conftest.", or (3) at the end.
8478 # Note that $ac_compile itself does not contain backslashes and begins
8479 # with a dollar sign (not a hyphen), so the echo should work correctly.
8480 # The option is referenced via a variable to avoid confusing sed.
8481 lt_compile=`echo "$ac_compile" | $SED \
8482 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8483 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8484 -e 's:$: $lt_compiler_flag:'`
8485 (eval echo "\"\$as_me:8485: $lt_compile\"" >&5)
8486 (eval "$lt_compile" 2>conftest.err)
8488 cat conftest.err >&5
8489 echo "$as_me:8489: \$? = $ac_status" >&5
8490 if (exit $ac_status) && test -s "$ac_outfile"; then
8491 # The compiler can only warn and ignore the option if not recognized
8492 # So say no if there are warnings other than the usual output.
8493 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8494 $SED '/^$/d' conftest.err >conftest.er2
8495 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8496 lt_cv_prog_compiler_rtti_exceptions=yes
8502 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8503 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8505 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8506 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8513 lt_prog_compiler_wl=
8514 lt_prog_compiler_pic=
8515 lt_prog_compiler_static=
8517 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8518 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8520 if test "$GCC" = yes; then
8521 lt_prog_compiler_wl='-Wl,'
8522 lt_prog_compiler_static='-static'
8526 # All AIX code is PIC.
8527 if test "$host_cpu" = ia64; then
8528 # AIX 5 now supports IA64 processor
8529 lt_prog_compiler_static='-Bstatic'
8534 # FIXME: we need at least 68020 code to build shared libraries, but
8535 # adding the `-m68020' flag to GCC prevents building anything better,
8537 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8540 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8541 # PIC is the default for these OSes.
8544 mingw* | pw32* | os2*)
8545 # This hack is so that the source file can tell whether it is being
8546 # built for inclusion in a dll (and should export symbols for example).
8547 lt_prog_compiler_pic='-DDLL_EXPORT'
8550 darwin* | rhapsody*)
8551 # PIC is the default on this platform
8552 # Common symbols not allowed in MH_DYLIB files
8553 lt_prog_compiler_pic='-fno-common'
8557 # Just because we use GCC doesn't mean we suddenly get shared libraries
8558 # on systems that don't support them.
8559 lt_prog_compiler_can_build_shared=no
8564 if test -d /usr/nec; then
8565 lt_prog_compiler_pic=-Kconform_pic
8570 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8577 lt_prog_compiler_pic='-fPIC'
8583 lt_prog_compiler_pic='-fPIC'
8587 # PORTME Check for flag to pass linker flags through the system compiler.
8590 lt_prog_compiler_wl='-Wl,'
8591 if test "$host_cpu" = ia64; then
8592 # AIX 5 now supports IA64 processor
8593 lt_prog_compiler_static='-Bstatic'
8595 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8599 # PIC is the default on this platform
8600 # Common symbols not allowed in MH_DYLIB files
8601 case $cc_basename in
8603 lt_prog_compiler_pic='-qnocommon'
8604 lt_prog_compiler_wl='-Wl,'
8609 mingw* | pw32* | os2*)
8610 # This hack is so that the source file can tell whether it is being
8611 # built for inclusion in a dll (and should export symbols for example).
8612 lt_prog_compiler_pic='-DDLL_EXPORT'
8615 hpux9* | hpux10* | hpux11*)
8616 lt_prog_compiler_wl='-Wl,'
8617 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8624 lt_prog_compiler_pic='+Z'
8627 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8628 lt_prog_compiler_static='${wl}-a ${wl}archive'
8631 irix5* | irix6* | nonstopux*)
8632 lt_prog_compiler_wl='-Wl,'
8633 # PIC (with -KPIC) is the default.
8634 lt_prog_compiler_static='-non_shared'
8638 lt_prog_compiler_pic='-KPIC'
8639 lt_prog_compiler_static='-Bstatic'
8643 case $cc_basename in
8645 lt_prog_compiler_wl='-Wl,'
8646 lt_prog_compiler_pic='-KPIC'
8647 lt_prog_compiler_static='-static'
8649 pgcc* | pgf77* | pgf90*)
8650 # Portland Group compilers (*not* the Pentium gcc compiler,
8651 # which looks to be a dead project)
8652 lt_prog_compiler_wl='-Wl,'
8653 lt_prog_compiler_pic='-fpic'
8654 lt_prog_compiler_static='-static'
8657 lt_prog_compiler_wl='-Wl,'
8658 # All Alpha code is PIC.
8659 lt_prog_compiler_static='-non_shared'
8664 osf3* | osf4* | osf5*)
8665 lt_prog_compiler_wl='-Wl,'
8666 # All OSF/1 code is PIC.
8667 lt_prog_compiler_static='-non_shared'
8671 lt_prog_compiler_pic='-Kpic'
8672 lt_prog_compiler_static='-dn'
8676 lt_prog_compiler_pic='-KPIC'
8677 lt_prog_compiler_static='-Bstatic'
8678 case $cc_basename in
8680 lt_prog_compiler_wl='-Qoption ld ';;
8682 lt_prog_compiler_wl='-Wl,';;
8687 lt_prog_compiler_wl='-Qoption ld '
8688 lt_prog_compiler_pic='-PIC'
8689 lt_prog_compiler_static='-Bstatic'
8692 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8693 lt_prog_compiler_wl='-Wl,'
8694 lt_prog_compiler_pic='-KPIC'
8695 lt_prog_compiler_static='-Bstatic'
8699 if test -d /usr/nec ;then
8700 lt_prog_compiler_pic='-Kconform_pic'
8701 lt_prog_compiler_static='-Bstatic'
8706 lt_prog_compiler_wl='-Wl,'
8707 lt_prog_compiler_can_build_shared=no
8711 lt_prog_compiler_pic='-pic'
8712 lt_prog_compiler_static='-Bstatic'
8716 lt_prog_compiler_can_build_shared=no
8721 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8722 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8725 # Check to make sure the PIC flag actually works.
8727 if test -n "$lt_prog_compiler_pic"; then
8729 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8730 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8731 if test "${lt_prog_compiler_pic_works+set}" = set; then
8732 echo $ECHO_N "(cached) $ECHO_C" >&6
8734 lt_prog_compiler_pic_works=no
8735 ac_outfile=conftest.$ac_objext
8736 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8737 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8738 # Insert the option either (1) after the last *FLAGS variable, or
8739 # (2) before a word containing "conftest.", or (3) at the end.
8740 # Note that $ac_compile itself does not contain backslashes and begins
8741 # with a dollar sign (not a hyphen), so the echo should work correctly.
8742 # The option is referenced via a variable to avoid confusing sed.
8743 lt_compile=`echo "$ac_compile" | $SED \
8744 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8746 -e 's:$: $lt_compiler_flag:'`
8747 (eval echo "\"\$as_me:8747: $lt_compile\"" >&5)
8748 (eval "$lt_compile" 2>conftest.err)
8750 cat conftest.err >&5
8751 echo "$as_me:8751: \$? = $ac_status" >&5
8752 if (exit $ac_status) && test -s "$ac_outfile"; then
8753 # The compiler can only warn and ignore the option if not recognized
8754 # So say no if there are warnings other than the usual output.
8755 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8756 $SED '/^$/d' conftest.err >conftest.er2
8757 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8758 lt_prog_compiler_pic_works=yes
8764 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8765 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8767 if test x"$lt_prog_compiler_pic_works" = xyes; then
8768 case $lt_prog_compiler_pic in
8770 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8773 lt_prog_compiler_pic=
8774 lt_prog_compiler_can_build_shared=no
8779 # For platforms which do not support PIC, -DPIC is meaningless:
8781 lt_prog_compiler_pic=
8784 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8788 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8789 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8790 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 lt_cv_prog_compiler_c_o=no
8794 $rm -r conftest 2>/dev/null
8798 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8800 lt_compiler_flag="-o out/conftest2.$ac_objext"
8801 # Insert the option either (1) after the last *FLAGS variable, or
8802 # (2) before a word containing "conftest.", or (3) at the end.
8803 # Note that $ac_compile itself does not contain backslashes and begins
8804 # with a dollar sign (not a hyphen), so the echo should work correctly.
8805 lt_compile=`echo "$ac_compile" | $SED \
8806 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8808 -e 's:$: $lt_compiler_flag:'`
8809 (eval echo "\"\$as_me:8809: $lt_compile\"" >&5)
8810 (eval "$lt_compile" 2>out/conftest.err)
8812 cat out/conftest.err >&5
8813 echo "$as_me:8813: \$? = $ac_status" >&5
8814 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8816 # The compiler can only warn and ignore the option if not recognized
8817 # So say no if there are warnings
8818 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8819 $SED '/^$/d' out/conftest.err >out/conftest.er2
8820 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8821 lt_cv_prog_compiler_c_o=yes
8826 # SGI C++ compiler will create directory out/ii_files/ for
8827 # template instantiation
8828 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8829 $rm out/* && rmdir out
8835 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8836 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8839 hard_links="nottested"
8840 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8841 # do not overwrite the value of need_locks provided by the user
8842 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8843 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8846 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8848 ln conftest.a conftest.b 2>&5 || hard_links=no
8849 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8850 echo "$as_me:$LINENO: result: $hard_links" >&5
8851 echo "${ECHO_T}$hard_links" >&6
8852 if test "$hard_links" = no; then
8853 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8854 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8861 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8862 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8865 allow_undefined_flag=
8866 enable_shared_with_static_runtimes=no
8868 archive_expsym_cmds=
8869 old_archive_From_new_cmds=
8870 old_archive_from_expsyms_cmds=
8871 export_dynamic_flag_spec=
8872 whole_archive_flag_spec=
8873 thread_safe_flag_spec=
8874 hardcode_libdir_flag_spec=
8875 hardcode_libdir_flag_spec_ld=
8876 hardcode_libdir_separator=
8879 hardcode_shlibpath_var=unsupported
8880 link_all_deplibs=unknown
8881 hardcode_automatic=no
8884 always_export_symbols=no
8885 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8886 # include_expsyms should be a list of space-separated symbols to be *always*
8887 # included in the symbol list
8889 # exclude_expsyms can be an extended regexp of symbols to exclude
8890 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8891 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8892 # as well as any symbol that contains `d'.
8893 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8894 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8895 # platforms (ab)use it in PIC code, but their linkers get confused if
8896 # the symbol is explicitly referenced. Since portable code cannot
8897 # rely on this symbol name, it's probably fine to never include it in
8898 # preloaded symbol tables.
8899 extract_expsyms_cmds=
8900 # Just being paranoid about ensuring that cc_basename is set.
8901 for cc_temp in $compiler""; do
8903 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8904 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8909 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8912 cygwin* | mingw* | pw32*)
8913 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8914 # When not using gcc, we currently assume that we are using
8915 # Microsoft Visual C++.
8916 if test "$GCC" != yes; then
8926 if test "$with_gnu_ld" = yes; then
8927 # If archive_cmds runs LD, not CC, wlarc should be empty
8930 # Set some defaults for GNU ld with shared library support. These
8931 # are reset later if shared libraries are not supported. Putting them
8932 # here allows them to be overridden if necessary.
8933 runpath_var=LD_RUN_PATH
8934 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8935 export_dynamic_flag_spec='${wl}--export-dynamic'
8936 # ancient GNU ld didn't support --whole-archive et. al.
8937 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8938 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8940 whole_archive_flag_spec=
8942 supports_anon_versioning=no
8943 case `$LD -v 2>/dev/null` in
8944 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8945 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8946 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8947 *\ 2.11.*) ;; # other 2.11 versions
8948 *) supports_anon_versioning=yes ;;
8951 # See if GNU ld supports shared libraries.
8953 aix3* | aix4* | aix5*)
8954 # On AIX/PPC, the GNU linker is very broken
8955 if test "$host_cpu" != ia64; then
8959 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8960 *** to be unable to reliably create shared libraries on AIX.
8961 *** Therefore, libtool is disabling shared libraries support. If you
8962 *** really care for shared libraries, you may want to modify your PATH
8963 *** so that a non-GNU linker is found, and then restart.
8970 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)'
8971 hardcode_libdir_flag_spec='-L$libdir'
8972 hardcode_minus_L=yes
8974 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8975 # that the semantics of dynamic libraries on AmigaOS, at least up
8976 # to version 4, is to share data among multiple programs linked
8977 # with the same dynamic library. Since this doesn't match the
8978 # behavior of shared libraries on other platforms, we can't use
8984 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8985 allow_undefined_flag=unsupported
8986 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8987 # support --undefined. This deserves some investigation. FIXME
8988 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8994 cygwin* | mingw* | pw32*)
8995 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8996 # as there is no search path for DLLs.
8997 hardcode_libdir_flag_spec='-L$libdir'
8998 allow_undefined_flag=unsupported
8999 always_export_symbols=no
9000 enable_shared_with_static_runtimes=yes
9001 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9003 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9004 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9005 # If the export-symbols file already is a .def file (1st line
9006 # is EXPORTS), use it as is; otherwise, prepend...
9007 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9008 cp $export_symbols $output_objdir/$soname.def;
9010 echo EXPORTS > $output_objdir/$soname.def;
9011 cat $export_symbols >> $output_objdir/$soname.def;
9013 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9020 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9022 case $cc_basename,$host_cpu in
9023 pgcc*) # Portland Group C compiler
9024 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'
9025 tmp_addflag=' $pic_flag'
9027 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
9028 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'
9029 tmp_addflag=' $pic_flag -Mnomain' ;;
9030 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9031 tmp_addflag=' -i_dynamic' ;;
9032 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9033 tmp_addflag=' -i_dynamic -nofor_main' ;;
9034 ifc* | ifort*) # Intel Fortran compiler
9035 tmp_addflag=' -nofor_main' ;;
9037 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9039 if test $supports_anon_versioning = yes; then
9040 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9041 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9042 $echo "local: *; };" >> $output_objdir/$libname.ver~
9043 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9051 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9052 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9056 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9061 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9065 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9066 *** create shared libraries on Solaris systems. Therefore, libtool
9067 *** is disabling shared libraries support. We urge you to upgrade GNU
9068 *** binutils to release 2.9.1 or newer. Another option is to modify
9069 *** your PATH or compiler configuration so that the native linker is
9070 *** used, and then restart.
9073 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9074 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9075 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9082 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9085 hardcode_shlibpath_var=no
9089 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9091 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9098 if test "$ld_shlibs" = no; then
9100 hardcode_libdir_flag_spec=
9101 export_dynamic_flag_spec=
9102 whole_archive_flag_spec=
9105 # PORTME fill in a description of your system's linker (not GNU ld)
9108 allow_undefined_flag=unsupported
9109 always_export_symbols=yes
9110 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'
9111 # Note: this linker hardcodes the directories in LIBPATH if there
9112 # are no directories specified by -L.
9113 hardcode_minus_L=yes
9114 if test "$GCC" = yes && test -z "$link_static_flag"; then
9115 # Neither direct hardcoding nor static linking is supported with a
9117 hardcode_direct=unsupported
9122 if test "$host_cpu" = ia64; then
9123 # On IA64, the linker does run time linking by default, so we don't
9124 # have to do anything special.
9125 aix_use_runtimelinking=no
9126 exp_sym_flag='-Bexport'
9129 # If we're using GNU nm, then we don't want the "-C" option.
9130 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9131 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9132 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'
9134 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'
9136 aix_use_runtimelinking=no
9138 # Test if we are trying to use run time linking or normal
9139 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9140 # need to do runtime linking.
9141 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9142 for ld_flag in $LDFLAGS; do
9143 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9144 aix_use_runtimelinking=yes
9150 exp_sym_flag='-bexport'
9151 no_entry_flag='-bnoentry'
9154 # When large executables or shared objects are built, AIX ld can
9155 # have problems creating the table of contents. If linking a library
9156 # or program results in "error TOC overflow" add -mminimal-toc to
9157 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9158 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9162 hardcode_libdir_separator=':'
9163 link_all_deplibs=yes
9165 if test "$GCC" = yes; then
9166 case $host_os in aix4.[012]|aix4.[012].*)
9167 # We only want to do this on AIX 4.2 and lower, the check
9168 # below for broken collect2 doesn't work under 4.3+
9169 collect2name=`${CC} -print-prog-name=collect2`
9170 if test -f "$collect2name" && \
9171 strings "$collect2name" | grep resolve_lib_name >/dev/null
9173 # We have reworked collect2
9176 # We have old collect2
9177 hardcode_direct=unsupported
9178 # It fails to find uninstalled libraries when the uninstalled
9179 # path is not listed in the libpath. Setting hardcode_minus_L
9180 # to unsupported forces relinking
9181 hardcode_minus_L=yes
9182 hardcode_libdir_flag_spec='-L$libdir'
9183 hardcode_libdir_separator=
9186 shared_flag='-shared'
9187 if test "$aix_use_runtimelinking" = yes; then
9188 shared_flag="$shared_flag "'${wl}-G'
9192 if test "$host_cpu" = ia64; then
9193 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9194 # chokes on -Wl,-G. The following line is correct:
9197 if test "$aix_use_runtimelinking" = yes; then
9198 shared_flag='${wl}-G'
9200 shared_flag='${wl}-bM:SRE'
9205 # It seems that -bexpall does not export symbols beginning with
9206 # underscore (_), so it is better to generate a list of symbols to export.
9207 always_export_symbols=yes
9208 if test "$aix_use_runtimelinking" = yes; then
9209 # Warning - without using the other runtime loading flags (-brtl),
9210 # -berok will link without error, but may produce a broken library.
9211 allow_undefined_flag='-berok'
9212 # Determine the default libpath from the value encoded in an empty executable.
9213 cat >conftest.$ac_ext <<_ACEOF
9216 cat confdefs.h >>conftest.$ac_ext
9217 cat >>conftest.$ac_ext <<_ACEOF
9218 /* end confdefs.h. */
9228 rm -f conftest.$ac_objext conftest$ac_exeext
9229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9230 (eval $ac_link) 2>conftest.er1
9232 grep -v '^ *+' conftest.er1 >conftest.err
9234 cat conftest.err >&5
9235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9236 (exit $ac_status); } &&
9237 { ac_try='test -z "$ac_c_werror_flag"
9238 || test ! -s conftest.err'
9239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); }; } &&
9244 { ac_try='test -s conftest$ac_exeext'
9245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; }; then
9251 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9253 # Check for a 64-bit object if we didn't find anything.
9254 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; }
9257 echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.$ac_ext >&5
9261 rm -f conftest.err conftest.$ac_objext \
9262 conftest$ac_exeext conftest.$ac_ext
9263 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9265 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9266 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"
9268 if test "$host_cpu" = ia64; then
9269 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9270 allow_undefined_flag="-z nodefs"
9271 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"
9273 # Determine the default libpath from the value encoded in an empty executable.
9274 cat >conftest.$ac_ext <<_ACEOF
9277 cat confdefs.h >>conftest.$ac_ext
9278 cat >>conftest.$ac_ext <<_ACEOF
9279 /* end confdefs.h. */
9289 rm -f conftest.$ac_objext conftest$ac_exeext
9290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9291 (eval $ac_link) 2>conftest.er1
9293 grep -v '^ *+' conftest.er1 >conftest.err
9295 cat conftest.err >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); } &&
9298 { ac_try='test -z "$ac_c_werror_flag"
9299 || test ! -s conftest.err'
9300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9304 (exit $ac_status); }; } &&
9305 { ac_try='test -s conftest$ac_exeext'
9306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9310 (exit $ac_status); }; }; then
9312 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9314 # Check for a 64-bit object if we didn't find anything.
9315 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; }
9318 echo "$as_me: failed program was:" >&5
9319 sed 's/^/| /' conftest.$ac_ext >&5
9322 rm -f conftest.err conftest.$ac_objext \
9323 conftest$ac_exeext conftest.$ac_ext
9324 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9326 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9327 # Warning - without using the other run time loading flags,
9328 # -berok will link without error, but may produce a broken library.
9329 no_undefined_flag=' ${wl}-bernotok'
9330 allow_undefined_flag=' ${wl}-berok'
9331 # -bexpall does not export symbols beginning with underscore (_)
9332 always_export_symbols=yes
9333 # Exported symbols can be pulled into shared objects from archives
9334 whole_archive_flag_spec=' '
9335 archive_cmds_need_lc=yes
9336 # This is similar to how AIX traditionally builds it's shared libraries.
9337 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'
9343 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)'
9344 hardcode_libdir_flag_spec='-L$libdir'
9345 hardcode_minus_L=yes
9346 # see comment about different semantics on the GNU ld section
9351 export_dynamic_flag_spec=-rdynamic
9354 cygwin* | mingw* | pw32*)
9355 # When not using gcc, we currently assume that we are using
9356 # Microsoft Visual C++.
9357 # hardcode_libdir_flag_spec is actually meaningless, as there is
9358 # no search path for DLLs.
9359 hardcode_libdir_flag_spec=' '
9360 allow_undefined_flag=unsupported
9361 # Tell ltmain to make .lib files, not .a files.
9363 # Tell ltmain to make .dll files, not .so files.
9365 # FIXME: Setting linknames here is a bad hack.
9366 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9367 # The linker will automatically build a .lib file if we build a DLL.
9368 old_archive_From_new_cmds='true'
9369 # FIXME: Should let the user specify the lib program.
9370 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9371 fix_srcfile_path='`cygpath -w "$srcfile"`'
9372 enable_shared_with_static_runtimes=yes
9375 darwin* | rhapsody*)
9377 rhapsody* | darwin1.[012])
9378 allow_undefined_flag='${wl}-undefined ${wl}suppress'
9381 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9382 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9384 case ${MACOSX_DEPLOYMENT_TARGET} in
9386 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9389 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9395 archive_cmds_need_lc=no
9397 hardcode_automatic=yes
9398 hardcode_shlibpath_var=unsupported
9399 whole_archive_flag_spec=''
9400 link_all_deplibs=yes
9401 if test "$GCC" = yes ; then
9402 output_verbose_link_cmd='echo'
9403 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9404 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9405 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9406 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}'
9407 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}'
9409 case $cc_basename in
9411 output_verbose_link_cmd='echo'
9412 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9413 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9414 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9415 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}'
9416 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}'
9426 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9427 hardcode_libdir_flag_spec='-L$libdir'
9428 hardcode_shlibpath_var=no
9435 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9436 # support. Future versions do this automatically, but an explicit c++rt0.o
9437 # does not break anything, and helps significantly (at the cost of a little
9440 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9441 hardcode_libdir_flag_spec='-R$libdir'
9443 hardcode_shlibpath_var=no
9446 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9448 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9450 hardcode_minus_L=yes
9451 hardcode_shlibpath_var=no
9454 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9455 freebsd* | kfreebsd*-gnu | dragonfly*)
9456 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9457 hardcode_libdir_flag_spec='-R$libdir'
9459 hardcode_shlibpath_var=no
9463 if test "$GCC" = yes; then
9464 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'
9466 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'
9468 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9469 hardcode_libdir_separator=:
9472 # hardcode_minus_L: Not really in the search PATH,
9473 # but as the default location of the library.
9474 hardcode_minus_L=yes
9475 export_dynamic_flag_spec='${wl}-E'
9479 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9482 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9485 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9491 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9494 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9498 if test "$with_gnu_ld" = no; then
9501 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9502 hardcode_libdir_flag_spec_ld='+b $libdir'
9503 hardcode_libdir_separator=:
9505 hardcode_shlibpath_var=no
9508 hardcode_libdir_flag_spec='-L$libdir'
9510 hardcode_shlibpath_var=no
9512 # hardcode_minus_L: Not really in the search PATH,
9513 # but as the default location of the library.
9514 hardcode_minus_L=yes
9517 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9518 hardcode_libdir_separator=:
9520 export_dynamic_flag_spec='${wl}-E'
9522 # hardcode_minus_L: Not really in the search PATH,
9523 # but as the default location of the library.
9524 hardcode_minus_L=yes
9530 irix5* | irix6* | nonstopux*)
9531 if test "$GCC" = yes; then
9532 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'
9534 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'
9535 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9537 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9538 hardcode_libdir_separator=:
9539 link_all_deplibs=yes
9543 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9544 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9546 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9548 hardcode_libdir_flag_spec='-R$libdir'
9550 hardcode_shlibpath_var=no
9554 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9556 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9557 hardcode_libdir_separator=:
9558 hardcode_shlibpath_var=no
9563 hardcode_shlibpath_var=no
9564 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9565 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9566 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9567 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9568 export_dynamic_flag_spec='${wl}-E'
9571 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9572 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9573 hardcode_libdir_flag_spec='-R$libdir'
9576 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9577 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9584 hardcode_libdir_flag_spec='-L$libdir'
9585 hardcode_minus_L=yes
9586 allow_undefined_flag=unsupported
9587 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'
9588 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9592 if test "$GCC" = yes; then
9593 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9594 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'
9596 allow_undefined_flag=' -expect_unresolved \*'
9597 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'
9599 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9600 hardcode_libdir_separator=:
9603 osf4* | osf5*) # as osf3* with the addition of -msym flag
9604 if test "$GCC" = yes; then
9605 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9606 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'
9607 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9609 allow_undefined_flag=' -expect_unresolved \*'
9610 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'
9611 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9612 $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'
9614 # Both c and cxx compiler support -rpath directly
9615 hardcode_libdir_flag_spec='-rpath $libdir'
9617 hardcode_libdir_separator=:
9621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9622 hardcode_shlibpath_var=no
9623 export_dynamic_flag_spec='${wl}-Bexport'
9624 runpath_var=LD_RUN_PATH
9625 hardcode_runpath_var=yes
9629 no_undefined_flag=' -z text'
9630 if test "$GCC" = yes; then
9632 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9633 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9634 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9637 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9638 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9639 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9641 hardcode_libdir_flag_spec='-R$libdir'
9642 hardcode_shlibpath_var=no
9644 solaris2.[0-5] | solaris2.[0-5].*) ;;
9646 # The compiler driver will combine linker options so we
9647 # cannot just pass the convience library names through
9648 # without $wl, iff we do not link with $LD.
9649 # Luckily, gcc supports the same syntax we need for Sun Studio.
9650 # Supported since Solaris 2.6 (maybe 2.5.1?)
9653 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9655 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' ;;
9658 link_all_deplibs=yes
9662 if test "x$host_vendor" = xsequent; then
9663 # Use $CC to link under sequent, because it throws in some extra .o
9664 # files that make .init and .fini sections work.
9665 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9667 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9669 hardcode_libdir_flag_spec='-L$libdir'
9671 hardcode_minus_L=yes
9672 hardcode_shlibpath_var=no
9676 case $host_vendor in
9678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9679 hardcode_direct=yes # is this really true???
9682 ## LD is ld it makes a PLAMLIB
9683 ## CC just makes a GrossModule.
9684 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9685 reload_cmds='$CC -r -o $output$reload_objs'
9689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9690 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9693 runpath_var='LD_RUN_PATH'
9694 hardcode_shlibpath_var=no
9698 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9699 hardcode_shlibpath_var=no
9700 export_dynamic_flag_spec='-Bexport'
9704 if test -d /usr/nec; then
9705 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9706 hardcode_shlibpath_var=no
9707 runpath_var=LD_RUN_PATH
9708 hardcode_runpath_var=yes
9714 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9717 hardcode_shlibpath_var=no
9718 hardcode_runpath_var=yes
9719 runpath_var=LD_RUN_PATH
9722 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9723 no_undefined_flag='${wl}-z ${wl}text'
9724 if test "$GCC" = yes; then
9725 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9727 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9729 runpath_var='LD_RUN_PATH'
9730 hardcode_shlibpath_var=no
9734 no_undefined_flag=' -z text'
9735 # $CC -shared without GNU ld will not create a library from C++
9736 # object files and a static libstdc++, better avoid it by now
9737 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9738 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9739 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9740 hardcode_libdir_flag_spec=
9741 hardcode_shlibpath_var=no
9742 runpath_var='LD_RUN_PATH'
9746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9747 hardcode_libdir_flag_spec='-L$libdir'
9748 hardcode_shlibpath_var=no
9757 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9758 echo "${ECHO_T}$ld_shlibs" >&6
9759 test "$ld_shlibs" = no && can_build_shared=no
9761 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9762 if test "$GCC" = yes; then
9763 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9767 # Do we need to explicitly link libc?
9769 case "x$archive_cmds_need_lc" in
9771 # Assume -lc should be added
9772 archive_cmds_need_lc=yes
9774 if test "$enable_shared" = yes && test "$GCC" = yes; then
9775 case $archive_cmds in
9777 # FIXME: we may have to deal with multi-command sequences.
9780 # Test whether the compiler implicitly links with -lc since on some
9781 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9782 # to ld, don't add -lc before -lgcc.
9783 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9784 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9786 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9789 (eval $ac_compile) 2>&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } 2>conftest.err; then
9795 libobjs=conftest.$ac_objext
9797 wl=$lt_prog_compiler_wl
9803 lt_save_allow_undefined_flag=$allow_undefined_flag
9804 allow_undefined_flag=
9805 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9806 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); }
9811 archive_cmds_need_lc=no
9813 archive_cmds_need_lc=yes
9815 allow_undefined_flag=$lt_save_allow_undefined_flag
9817 cat conftest.err 1>&5
9820 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9821 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9828 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9829 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9831 libname_spec='lib$name'
9839 shlibpath_overrides_runpath=unknown
9841 dynamic_linker="$host_os ld.so"
9842 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9843 if test "$GCC" = yes; then
9844 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9845 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9846 # if the path contains ";" then we assume it to be the separator
9847 # otherwise default to the standard path separator (i.e. ":") - it is
9848 # assumed that no part of a normal pathname contains ";" but that should
9849 # okay in the real world where ";" in dirpaths is itself problematic.
9850 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9852 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9855 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9857 need_lib_prefix=unknown
9858 hardcode_into_libs=no
9860 # when you set need_version to no, make sure it does not cause -set_version
9861 # flags to be left without arguments
9862 need_version=unknown
9867 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9868 shlibpath_var=LIBPATH
9870 # AIX 3 has no versioning support, so we append a major version to the name.
9871 soname_spec='${libname}${release}${shared_ext}$major'
9878 hardcode_into_libs=yes
9879 if test "$host_cpu" = ia64; then
9880 # AIX 5 supports IA64
9881 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9882 shlibpath_var=LD_LIBRARY_PATH
9884 # With GCC up to 2.95.x, collect2 would create an import file
9885 # for dependence libraries. The import file would start with
9886 # the line `#! .'. This would cause the generated library to
9887 # depend on `.', always an invalid library. This was fixed in
9888 # development snapshots of GCC prior to 3.0.
9890 aix4 | aix4.[01] | aix4.[01].*)
9891 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9893 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9900 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9901 # soname into executable. Probably we can add versioning support to
9902 # collect2, so additional links can be useful in future.
9903 if test "$aix_use_runtimelinking" = yes; then
9904 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9905 # instead of lib<name>.a to let people know that these are not
9906 # typical AIX shared libraries.
9907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9909 # We preserve .a as extension for shared libraries through AIX4.2
9910 # and later when we are not doing run time linking.
9911 library_names_spec='${libname}${release}.a $libname.a'
9912 soname_spec='${libname}${release}${shared_ext}$major'
9914 shlibpath_var=LIBPATH
9919 library_names_spec='$libname.ixlibrary $libname.a'
9920 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9921 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'
9925 library_names_spec='${libname}${shared_ext}'
9926 dynamic_linker="$host_os ld.so"
9927 shlibpath_var=LIBRARY_PATH
9933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9934 soname_spec='${libname}${release}${shared_ext}$major'
9935 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9936 shlibpath_var=LD_LIBRARY_PATH
9937 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9938 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9939 # the default ld.so.conf also contains /usr/contrib/lib and
9940 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9941 # libtool to hard-code these into programs
9944 cygwin* | mingw* | pw32*)
9945 version_type=windows
9950 case $GCC,$host_os in
9951 yes,cygwin* | yes,mingw* | yes,pw32*)
9952 library_names_spec='$libname.dll.a'
9953 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9954 postinstall_cmds='base_file=`basename \${file}`~
9955 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9956 dldir=$destdir/`dirname \$dlpath`~
9957 test -d \$dldir || mkdir -p \$dldir~
9958 $install_prog $dir/$dlname \$dldir/$dlname'
9959 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9960 dlpath=$dir/\$dldll~
9962 shlibpath_overrides_runpath=yes
9966 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9967 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9968 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9971 # MinGW DLLs use traditional 'lib' prefix
9972 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9973 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9974 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9975 # It is most probably a Windows format PATH printed by
9976 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9977 # path with ; separators, and with drive letters. We can handle the
9978 # drive letters (cygwin fileutils understands them), so leave them,
9979 # especially as we might pass files found there to a mingw objdump,
9980 # which wouldn't understand a cygwinified path. Ahh.
9981 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9983 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9987 # pw32 DLLs use 'pw' prefix rather than 'lib'
9988 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9994 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9997 dynamic_linker='Win32 ld.exe'
9998 # FIXME: first we should search . and the directory the executable is in
10002 darwin* | rhapsody*)
10003 dynamic_linker="$host_os dyld"
10004 version_type=darwin
10007 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10008 soname_spec='${libname}${release}${major}$shared_ext'
10009 shlibpath_overrides_runpath=yes
10010 shlibpath_var=DYLD_LIBRARY_PATH
10011 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10012 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10013 if test "$GCC" = yes; then
10014 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"`
10016 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10018 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10026 soname_spec='${libname}${release}${shared_ext}$major'
10027 shlibpath_var=LD_LIBRARY_PATH
10038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10039 soname_spec='${libname}${release}${shared_ext}$major'
10040 shlibpath_var=LD_LIBRARY_PATH
10041 shlibpath_overrides_runpath=no
10042 hardcode_into_libs=yes
10043 dynamic_linker='GNU ld.so'
10046 freebsd* | dragonfly*)
10047 # DragonFly does not have aout. When/if they implement a new
10048 # versioning mechanism, adjust this.
10049 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10050 version_type=freebsd-$objformat
10051 case $version_type in
10053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10058 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10062 shlibpath_var=LD_LIBRARY_PATH
10065 shlibpath_overrides_runpath=yes
10067 freebsd3.[01]* | freebsdelf3.[01]*)
10068 shlibpath_overrides_runpath=yes
10069 hardcode_into_libs=yes
10072 shlibpath_overrides_runpath=no
10073 hardcode_into_libs=yes
10082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10083 soname_spec='${libname}${release}${shared_ext}$major'
10084 shlibpath_var=LD_LIBRARY_PATH
10085 hardcode_into_libs=yes
10088 hpux9* | hpux10* | hpux11*)
10089 # Give a soname corresponding to the major version so that dld.sl refuses to
10090 # link against other versions.
10094 case "$host_cpu" in
10097 hardcode_into_libs=yes
10098 dynamic_linker="$host_os dld.so"
10099 shlibpath_var=LD_LIBRARY_PATH
10100 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10102 soname_spec='${libname}${release}${shared_ext}$major'
10103 if test "X$HPUX_IA64_MODE" = X32; then
10104 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10106 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10108 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10112 hardcode_into_libs=yes
10113 dynamic_linker="$host_os dld.sl"
10114 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10115 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117 soname_spec='${libname}${release}${shared_ext}$major'
10118 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10119 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10123 dynamic_linker="$host_os dld.sl"
10124 shlibpath_var=SHLIB_PATH
10125 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10127 soname_spec='${libname}${release}${shared_ext}$major'
10130 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10131 postinstall_cmds='chmod 555 $lib'
10134 irix5* | irix6* | nonstopux*)
10136 nonstopux*) version_type=nonstopux ;;
10138 if test "$lt_cv_prog_gnu_ld" = yes; then
10146 soname_spec='${libname}${release}${shared_ext}$major'
10147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10149 irix5* | nonstopux*)
10150 libsuff= shlibsuff=
10153 case $LD in # libtool.m4 will add one of these switches to LD
10154 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10155 libsuff= shlibsuff= libmagic=32-bit;;
10156 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10157 libsuff=32 shlibsuff=N32 libmagic=N32;;
10158 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10159 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10160 *) libsuff= shlibsuff= libmagic=never-match;;
10164 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10165 shlibpath_overrides_runpath=no
10166 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10167 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10168 hardcode_into_libs=yes
10171 # No shared lib support for Linux oldld, aout, or coff.
10172 linux*oldld* | linux*aout* | linux*coff*)
10176 # This must be Linux ELF.
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182 soname_spec='${libname}${release}${shared_ext}$major'
10183 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10184 shlibpath_var=LD_LIBRARY_PATH
10185 shlibpath_overrides_runpath=no
10186 # This implies no fast_install, which is unacceptable.
10187 # Some rework will be needed to allow for fast_install
10188 # before this can be enabled.
10189 hardcode_into_libs=yes
10191 # Append ld.so.conf contents to the search path
10192 if test -f /etc/ld.so.conf; then
10193 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' ' '`
10194 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10197 # We used to test for /lib/ld.so.1 and disable shared libraries on
10198 # powerpc, because MkLinux only supported shared libraries with the
10199 # GNU dynamic linker. Since this was broken with cross compilers,
10200 # most powerpc-linux boxes support dynamic linking these days and
10201 # people can always --disable-shared, the test was removed, and we
10202 # assume the GNU/Linux dynamic linker is in use.
10203 dynamic_linker='GNU/Linux ld.so'
10210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10211 soname_spec='${libname}${release}${shared_ext}$major'
10212 shlibpath_var=LD_LIBRARY_PATH
10213 shlibpath_overrides_runpath=no
10214 hardcode_into_libs=yes
10215 dynamic_linker='GNU ld.so'
10222 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10224 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10225 dynamic_linker='NetBSD (a.out) ld.so'
10227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10228 soname_spec='${libname}${release}${shared_ext}$major'
10229 dynamic_linker='NetBSD ld.elf_so'
10231 shlibpath_var=LD_LIBRARY_PATH
10232 shlibpath_overrides_runpath=yes
10233 hardcode_into_libs=yes
10238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10239 shlibpath_var=LD_LIBRARY_PATH
10240 shlibpath_overrides_runpath=yes
10247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10248 soname_spec='${libname}${release}${shared_ext}$major'
10249 shlibpath_var=LD_LIBRARY_PATH
10250 shlibpath_overrides_runpath=yes
10256 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10258 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10259 *) need_version=no ;;
10261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10263 shlibpath_var=LD_LIBRARY_PATH
10264 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10266 openbsd2.[89] | openbsd2.[89].*)
10267 shlibpath_overrides_runpath=no
10270 shlibpath_overrides_runpath=yes
10274 shlibpath_overrides_runpath=yes
10279 libname_spec='$name'
10282 library_names_spec='$libname${shared_ext} $libname.a'
10283 dynamic_linker='OS/2 ld.exe'
10284 shlibpath_var=LIBPATH
10287 osf3* | osf4* | osf5*)
10291 soname_spec='${libname}${release}${shared_ext}$major'
10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10293 shlibpath_var=LD_LIBRARY_PATH
10294 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10295 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10300 soname_spec='${libname}${release}${shared_ext}$major'
10301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10302 shlibpath_var=LD_LIBRARY_PATH
10309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10310 soname_spec='${libname}${release}${shared_ext}$major'
10311 shlibpath_var=LD_LIBRARY_PATH
10312 shlibpath_overrides_runpath=yes
10313 hardcode_into_libs=yes
10314 # ldd complains unless libraries are executable
10315 postinstall_cmds='chmod +x $lib'
10320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10321 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10322 shlibpath_var=LD_LIBRARY_PATH
10323 shlibpath_overrides_runpath=yes
10324 if test "$with_gnu_ld" = yes; then
10330 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10333 soname_spec='${libname}${release}${shared_ext}$major'
10334 shlibpath_var=LD_LIBRARY_PATH
10335 case $host_vendor in
10337 shlibpath_overrides_runpath=no
10339 export_dynamic_flag_spec='${wl}-Blargedynsym'
10340 runpath_var=LD_RUN_PATH
10348 shlibpath_overrides_runpath=no
10349 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10355 if test -d /usr/nec ;then
10357 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10358 soname_spec='$libname${shared_ext}.$major'
10359 shlibpath_var=LD_LIBRARY_PATH
10365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10366 soname_spec='${libname}${release}${shared_ext}$major'
10367 shlibpath_var=LD_LIBRARY_PATH
10374 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10375 echo "${ECHO_T}$dynamic_linker" >&6
10376 test "$dynamic_linker" = no && can_build_shared=no
10378 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10379 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10381 if test -n "$hardcode_libdir_flag_spec" || \
10382 test -n "$runpath_var" || \
10383 test "X$hardcode_automatic" = "Xyes" ; then
10385 # We can hardcode non-existant directories.
10386 if test "$hardcode_direct" != no &&
10387 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10388 # have to relink, otherwise we might link with an installed library
10389 # when we should be linking with a yet-to-be-installed one
10390 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10391 test "$hardcode_minus_L" != no; then
10392 # Linking always hardcodes the temporary library directory.
10393 hardcode_action=relink
10395 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10396 hardcode_action=immediate
10399 # We cannot hardcode anything, or else we can only hardcode existing
10401 hardcode_action=unsupported
10403 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10404 echo "${ECHO_T}$hardcode_action" >&6
10406 if test "$hardcode_action" = relink; then
10407 # Fast installation is not supported
10408 enable_fast_install=no
10409 elif test "$shlibpath_overrides_runpath" = yes ||
10410 test "$enable_shared" = no; then
10411 # Fast installation is not necessary
10412 enable_fast_install=needless
10417 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10418 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10419 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10420 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10421 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10422 echo "$as_me:$LINENO: result: yes" >&5
10423 echo "${ECHO_T}yes" >&6
10425 # FIXME - insert some real tests, host_os isn't really good enough
10428 if test -n "$STRIP" ; then
10429 striplib="$STRIP -x"
10430 echo "$as_me:$LINENO: result: yes" >&5
10431 echo "${ECHO_T}yes" >&6
10433 echo "$as_me:$LINENO: result: no" >&5
10434 echo "${ECHO_T}no" >&6
10438 echo "$as_me:$LINENO: result: no" >&5
10439 echo "${ECHO_T}no" >&6
10444 if test "x$enable_dlopen" != xyes; then
10445 enable_dlopen=unknown
10446 enable_dlopen_self=unknown
10447 enable_dlopen_self_static=unknown
10454 lt_cv_dlopen="load_add_on"
10456 lt_cv_dlopen_self=yes
10460 lt_cv_dlopen="LoadLibrary"
10465 lt_cv_dlopen="dlopen"
10470 # if libdl is installed we need to link against it
10471 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10472 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10473 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10476 ac_check_lib_save_LIBS=$LIBS
10478 cat >conftest.$ac_ext <<_ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10485 /* Override any gcc2 internal prototype to avoid an error. */
10489 /* We use char because int might match the return type of a gcc2
10490 builtin and then its argument prototype would still apply. */
10500 rm -f conftest.$ac_objext conftest$ac_exeext
10501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10502 (eval $ac_link) 2>conftest.er1
10504 grep -v '^ *+' conftest.er1 >conftest.err
10506 cat conftest.err >&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); } &&
10509 { ac_try='test -z "$ac_c_werror_flag"
10510 || test ! -s conftest.err'
10511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10512 (eval $ac_try) 2>&5
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); }; } &&
10516 { ac_try='test -s conftest$ac_exeext'
10517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518 (eval $ac_try) 2>&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; }; then
10522 ac_cv_lib_dl_dlopen=yes
10524 echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10527 ac_cv_lib_dl_dlopen=no
10529 rm -f conftest.err conftest.$ac_objext \
10530 conftest$ac_exeext conftest.$ac_ext
10531 LIBS=$ac_check_lib_save_LIBS
10533 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10534 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10535 if test $ac_cv_lib_dl_dlopen = yes; then
10536 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10539 lt_cv_dlopen="dyld"
10541 lt_cv_dlopen_self=yes
10548 echo "$as_me:$LINENO: checking for shl_load" >&5
10549 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10550 if test "${ac_cv_func_shl_load+set}" = set; then
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
10553 cat >conftest.$ac_ext <<_ACEOF
10556 cat confdefs.h >>conftest.$ac_ext
10557 cat >>conftest.$ac_ext <<_ACEOF
10558 /* end confdefs.h. */
10559 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10561 #define shl_load innocuous_shl_load
10563 /* System header to define __stub macros and hopefully few prototypes,
10564 which can conflict with char shl_load (); below.
10565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10566 <limits.h> exists even on freestanding compilers. */
10569 # include <limits.h>
10571 # include <assert.h>
10576 /* Override any gcc2 internal prototype to avoid an error. */
10581 /* We use char because int might match the return type of a gcc2
10582 builtin and then its argument prototype would still apply. */
10584 /* The GNU C library defines this for functions which it implements
10585 to always fail with ENOSYS. Some functions are actually named
10586 something starting with __ and the normal name is an alias. */
10587 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10590 char (*f) () = shl_load;
10599 return f != shl_load;
10604 rm -f conftest.$ac_objext conftest$ac_exeext
10605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10606 (eval $ac_link) 2>conftest.er1
10608 grep -v '^ *+' conftest.er1 >conftest.err
10610 cat conftest.err >&5
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } &&
10613 { ac_try='test -z "$ac_c_werror_flag"
10614 || test ! -s conftest.err'
10615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10616 (eval $ac_try) 2>&5
10618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619 (exit $ac_status); }; } &&
10620 { ac_try='test -s conftest$ac_exeext'
10621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10622 (eval $ac_try) 2>&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); }; }; then
10626 ac_cv_func_shl_load=yes
10628 echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.$ac_ext >&5
10631 ac_cv_func_shl_load=no
10633 rm -f conftest.err conftest.$ac_objext \
10634 conftest$ac_exeext conftest.$ac_ext
10636 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10637 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10638 if test $ac_cv_func_shl_load = yes; then
10639 lt_cv_dlopen="shl_load"
10641 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10642 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10643 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10646 ac_check_lib_save_LIBS=$LIBS
10648 cat >conftest.$ac_ext <<_ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h. */
10655 /* Override any gcc2 internal prototype to avoid an error. */
10659 /* We use char because int might match the return type of a gcc2
10660 builtin and then its argument prototype would still apply. */
10670 rm -f conftest.$ac_objext conftest$ac_exeext
10671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10672 (eval $ac_link) 2>conftest.er1
10674 grep -v '^ *+' conftest.er1 >conftest.err
10676 cat conftest.err >&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); } &&
10679 { ac_try='test -z "$ac_c_werror_flag"
10680 || test ! -s conftest.err'
10681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682 (eval $ac_try) 2>&5
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); }; } &&
10686 { ac_try='test -s conftest$ac_exeext'
10687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10688 (eval $ac_try) 2>&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); }; }; then
10692 ac_cv_lib_dld_shl_load=yes
10694 echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10697 ac_cv_lib_dld_shl_load=no
10699 rm -f conftest.err conftest.$ac_objext \
10700 conftest$ac_exeext conftest.$ac_ext
10701 LIBS=$ac_check_lib_save_LIBS
10703 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10704 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10705 if test $ac_cv_lib_dld_shl_load = yes; then
10706 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10708 echo "$as_me:$LINENO: checking for dlopen" >&5
10709 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10710 if test "${ac_cv_func_dlopen+set}" = set; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10713 cat >conftest.$ac_ext <<_ACEOF
10716 cat confdefs.h >>conftest.$ac_ext
10717 cat >>conftest.$ac_ext <<_ACEOF
10718 /* end confdefs.h. */
10719 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10720 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10721 #define dlopen innocuous_dlopen
10723 /* System header to define __stub macros and hopefully few prototypes,
10724 which can conflict with char dlopen (); below.
10725 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10726 <limits.h> exists even on freestanding compilers. */
10729 # include <limits.h>
10731 # include <assert.h>
10736 /* Override any gcc2 internal prototype to avoid an error. */
10741 /* We use char because int might match the return type of a gcc2
10742 builtin and then its argument prototype would still apply. */
10744 /* The GNU C library defines this for functions which it implements
10745 to always fail with ENOSYS. Some functions are actually named
10746 something starting with __ and the normal name is an alias. */
10747 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10750 char (*f) () = dlopen;
10759 return f != dlopen;
10764 rm -f conftest.$ac_objext conftest$ac_exeext
10765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10766 (eval $ac_link) 2>conftest.er1
10768 grep -v '^ *+' conftest.er1 >conftest.err
10770 cat conftest.err >&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); } &&
10773 { ac_try='test -z "$ac_c_werror_flag"
10774 || test ! -s conftest.err'
10775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10776 (eval $ac_try) 2>&5
10778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10779 (exit $ac_status); }; } &&
10780 { ac_try='test -s conftest$ac_exeext'
10781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10782 (eval $ac_try) 2>&5
10784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785 (exit $ac_status); }; }; then
10786 ac_cv_func_dlopen=yes
10788 echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10791 ac_cv_func_dlopen=no
10793 rm -f conftest.err conftest.$ac_objext \
10794 conftest$ac_exeext conftest.$ac_ext
10796 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10797 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10798 if test $ac_cv_func_dlopen = yes; then
10799 lt_cv_dlopen="dlopen"
10801 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10802 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10803 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10804 echo $ECHO_N "(cached) $ECHO_C" >&6
10806 ac_check_lib_save_LIBS=$LIBS
10808 cat >conftest.$ac_ext <<_ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10815 /* Override any gcc2 internal prototype to avoid an error. */
10819 /* We use char because int might match the return type of a gcc2
10820 builtin and then its argument prototype would still apply. */
10830 rm -f conftest.$ac_objext conftest$ac_exeext
10831 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10832 (eval $ac_link) 2>conftest.er1
10834 grep -v '^ *+' conftest.er1 >conftest.err
10836 cat conftest.err >&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } &&
10839 { ac_try='test -z "$ac_c_werror_flag"
10840 || test ! -s conftest.err'
10841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10842 (eval $ac_try) 2>&5
10844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10845 (exit $ac_status); }; } &&
10846 { ac_try='test -s conftest$ac_exeext'
10847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10848 (eval $ac_try) 2>&5
10850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10851 (exit $ac_status); }; }; then
10852 ac_cv_lib_dl_dlopen=yes
10854 echo "$as_me: failed program was:" >&5
10855 sed 's/^/| /' conftest.$ac_ext >&5
10857 ac_cv_lib_dl_dlopen=no
10859 rm -f conftest.err conftest.$ac_objext \
10860 conftest$ac_exeext conftest.$ac_ext
10861 LIBS=$ac_check_lib_save_LIBS
10863 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10864 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10865 if test $ac_cv_lib_dl_dlopen = yes; then
10866 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10868 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10869 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10870 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10871 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 ac_check_lib_save_LIBS=$LIBS
10874 LIBS="-lsvld $LIBS"
10875 cat >conftest.$ac_ext <<_ACEOF
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h. */
10882 /* Override any gcc2 internal prototype to avoid an error. */
10886 /* We use char because int might match the return type of a gcc2
10887 builtin and then its argument prototype would still apply. */
10897 rm -f conftest.$ac_objext conftest$ac_exeext
10898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10899 (eval $ac_link) 2>conftest.er1
10901 grep -v '^ *+' conftest.er1 >conftest.err
10903 cat conftest.err >&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } &&
10906 { ac_try='test -z "$ac_c_werror_flag"
10907 || test ! -s conftest.err'
10908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10909 (eval $ac_try) 2>&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; } &&
10913 { ac_try='test -s conftest$ac_exeext'
10914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10915 (eval $ac_try) 2>&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; }; then
10919 ac_cv_lib_svld_dlopen=yes
10921 echo "$as_me: failed program was:" >&5
10922 sed 's/^/| /' conftest.$ac_ext >&5
10924 ac_cv_lib_svld_dlopen=no
10926 rm -f conftest.err conftest.$ac_objext \
10927 conftest$ac_exeext conftest.$ac_ext
10928 LIBS=$ac_check_lib_save_LIBS
10930 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10931 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10932 if test $ac_cv_lib_svld_dlopen = yes; then
10933 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10935 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10936 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10937 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
10940 ac_check_lib_save_LIBS=$LIBS
10942 cat >conftest.$ac_ext <<_ACEOF
10945 cat confdefs.h >>conftest.$ac_ext
10946 cat >>conftest.$ac_ext <<_ACEOF
10947 /* end confdefs.h. */
10949 /* Override any gcc2 internal prototype to avoid an error. */
10953 /* We use char because int might match the return type of a gcc2
10954 builtin and then its argument prototype would still apply. */
10964 rm -f conftest.$ac_objext conftest$ac_exeext
10965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10966 (eval $ac_link) 2>conftest.er1
10968 grep -v '^ *+' conftest.er1 >conftest.err
10970 cat conftest.err >&5
10971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10972 (exit $ac_status); } &&
10973 { ac_try='test -z "$ac_c_werror_flag"
10974 || test ! -s conftest.err'
10975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10976 (eval $ac_try) 2>&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); }; } &&
10980 { ac_try='test -s conftest$ac_exeext'
10981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10982 (eval $ac_try) 2>&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); }; }; then
10986 ac_cv_lib_dld_dld_link=yes
10988 echo "$as_me: failed program was:" >&5
10989 sed 's/^/| /' conftest.$ac_ext >&5
10991 ac_cv_lib_dld_dld_link=no
10993 rm -f conftest.err conftest.$ac_objext \
10994 conftest$ac_exeext conftest.$ac_ext
10995 LIBS=$ac_check_lib_save_LIBS
10997 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10998 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10999 if test $ac_cv_lib_dld_dld_link = yes; then
11000 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11021 if test "x$lt_cv_dlopen" != xno; then
11027 case $lt_cv_dlopen in
11029 save_CPPFLAGS="$CPPFLAGS"
11030 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11032 save_LDFLAGS="$LDFLAGS"
11033 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11036 LIBS="$lt_cv_dlopen_libs $LIBS"
11038 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11039 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11040 if test "${lt_cv_dlopen_self+set}" = set; then
11041 echo $ECHO_N "(cached) $ECHO_C" >&6
11043 if test "$cross_compiling" = yes; then :
11044 lt_cv_dlopen_self=cross
11046 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11047 lt_status=$lt_dlunknown
11048 cat > conftest.$ac_ext <<EOF
11049 #line 11049 "configure"
11050 #include "confdefs.h"
11059 # define LT_DLGLOBAL RTLD_GLOBAL
11062 # define LT_DLGLOBAL DL_GLOBAL
11064 # define LT_DLGLOBAL 0
11068 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11069 find out it does not work in some platform. */
11070 #ifndef LT_DLLAZY_OR_NOW
11072 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11075 # define LT_DLLAZY_OR_NOW DL_LAZY
11078 # define LT_DLLAZY_OR_NOW RTLD_NOW
11081 # define LT_DLLAZY_OR_NOW DL_NOW
11083 # define LT_DLLAZY_OR_NOW 0
11091 extern "C" void exit (int);
11094 void fnord() { int i=42;}
11097 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11098 int status = $lt_dlunknown;
11102 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11103 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11104 /* dlclose (self); */
11110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11111 (eval $ac_link) 2>&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11115 (./conftest; exit; ) 2>/dev/null
11117 case x$lt_status in
11118 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11119 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11120 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11123 # compilation failed
11124 lt_cv_dlopen_self=no
11131 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11132 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11134 if test "x$lt_cv_dlopen_self" = xyes; then
11135 LDFLAGS="$LDFLAGS $link_static_flag"
11136 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11137 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11138 if test "${lt_cv_dlopen_self_static+set}" = set; then
11139 echo $ECHO_N "(cached) $ECHO_C" >&6
11141 if test "$cross_compiling" = yes; then :
11142 lt_cv_dlopen_self_static=cross
11144 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11145 lt_status=$lt_dlunknown
11146 cat > conftest.$ac_ext <<EOF
11147 #line 11147 "configure"
11148 #include "confdefs.h"
11157 # define LT_DLGLOBAL RTLD_GLOBAL
11160 # define LT_DLGLOBAL DL_GLOBAL
11162 # define LT_DLGLOBAL 0
11166 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11167 find out it does not work in some platform. */
11168 #ifndef LT_DLLAZY_OR_NOW
11170 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11173 # define LT_DLLAZY_OR_NOW DL_LAZY
11176 # define LT_DLLAZY_OR_NOW RTLD_NOW
11179 # define LT_DLLAZY_OR_NOW DL_NOW
11181 # define LT_DLLAZY_OR_NOW 0
11189 extern "C" void exit (int);
11192 void fnord() { int i=42;}
11195 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11196 int status = $lt_dlunknown;
11200 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11201 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11202 /* dlclose (self); */
11208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11209 (eval $ac_link) 2>&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11213 (./conftest; exit; ) 2>/dev/null
11215 case x$lt_status in
11216 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11217 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11218 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11221 # compilation failed
11222 lt_cv_dlopen_self_static=no
11229 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11230 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11233 CPPFLAGS="$save_CPPFLAGS"
11234 LDFLAGS="$save_LDFLAGS"
11239 case $lt_cv_dlopen_self in
11240 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11241 *) enable_dlopen_self=unknown ;;
11244 case $lt_cv_dlopen_self_static in
11245 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11246 *) enable_dlopen_self_static=unknown ;;
11251 # Report which librarie types wil actually be built
11252 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11253 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
11254 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11255 echo "${ECHO_T}$can_build_shared" >&6
11257 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11258 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11259 test "$can_build_shared" = "no" && enable_shared=no
11261 # On AIX, shared libraries and static libraries use the same namespace, and
11262 # are all built from PIC.
11265 test "$enable_shared" = yes && enable_static=no
11266 if test -n "$RANLIB"; then
11267 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11268 postinstall_cmds='$RANLIB $lib'
11273 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11274 test "$enable_shared" = yes && enable_static=no
11278 echo "$as_me:$LINENO: result: $enable_shared" >&5
11279 echo "${ECHO_T}$enable_shared" >&6
11281 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11282 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11283 # Make sure either enable_shared or enable_static is yes.
11284 test "$enable_shared" = yes || enable_static=yes
11285 echo "$as_me:$LINENO: result: $enable_static" >&5
11286 echo "${ECHO_T}$enable_static" >&6
11288 # The else clause should only fire when bootstrapping the
11289 # libtool distribution, otherwise you forgot to ship ltmain.sh
11290 # with your package, and you will get complaints that there are
11291 # no rules to generate ltmain.sh.
11292 if test -f "$ltmain"; then
11293 # See if we are running on zsh, and set the options which allow our commands through
11294 # without removal of \ escapes.
11295 if test -n "${ZSH_VERSION+set}" ; then
11296 setopt NO_GLOB_SUBST
11298 # Now quote all the things that may contain metacharacters while being
11299 # careful not to overquote the AC_SUBSTed values. We take copies of the
11300 # variables and quote the copies for generation of the libtool script.
11301 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11303 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11304 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11305 deplibs_check_method reload_flag reload_cmds need_locks \
11306 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11307 lt_cv_sys_global_symbol_to_c_name_address \
11308 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11309 old_postinstall_cmds old_postuninstall_cmds \
11313 lt_prog_compiler_wl \
11314 lt_prog_compiler_pic \
11315 lt_prog_compiler_static \
11316 lt_prog_compiler_no_builtin_flag \
11317 export_dynamic_flag_spec \
11318 thread_safe_flag_spec \
11319 whole_archive_flag_spec \
11320 enable_shared_with_static_runtimes \
11322 old_archive_from_new_cmds \
11327 compiler_lib_search_path \
11329 archive_expsym_cmds \
11331 postuninstall_cmds \
11332 old_archive_from_expsyms_cmds \
11333 allow_undefined_flag \
11334 no_undefined_flag \
11335 export_symbols_cmds \
11336 hardcode_libdir_flag_spec \
11337 hardcode_libdir_flag_spec_ld \
11338 hardcode_libdir_separator \
11339 hardcode_automatic \
11341 module_expsym_cmds \
11342 lt_cv_prog_compiler_c_o \
11344 include_expsyms; do
11347 old_archive_cmds | \
11348 old_archive_from_new_cmds | \
11350 archive_expsym_cmds | \
11352 module_expsym_cmds | \
11353 old_archive_from_expsyms_cmds | \
11354 export_symbols_cmds | \
11355 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11356 postinstall_cmds | postuninstall_cmds | \
11357 old_postinstall_cmds | old_postuninstall_cmds | \
11358 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11359 # Double-quote double-evaled strings.
11360 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11363 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11369 *'\$0 --fallback-echo"')
11370 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11374 cfgfile="${ofile}T"
11375 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11377 { echo "$as_me:$LINENO: creating $ofile" >&5
11378 echo "$as_me: creating $ofile" >&6;}
11380 cat <<__EOF__ >> "$cfgfile"
11383 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11384 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11385 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11387 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11388 # Free Software Foundation, Inc.
11390 # This file is part of GNU Libtool:
11391 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11393 # This program is free software; you can redistribute it and/or modify
11394 # it under the terms of the GNU General Public License as published by
11395 # the Free Software Foundation; either version 2 of the License, or
11396 # (at your option) any later version.
11398 # This program is distributed in the hope that it will be useful, but
11399 # WITHOUT ANY WARRANTY; without even the implied warranty of
11400 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11401 # General Public License for more details.
11403 # You should have received a copy of the GNU General Public License
11404 # along with this program; if not, write to the Free Software
11405 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11407 # As a special exception to the GNU General Public License, if you
11408 # distribute this file as part of a program that contains a
11409 # configuration script generated by Autoconf, you may include it under
11410 # the same distribution terms that you use for the rest of that program.
11412 # A sed program that does not truncate output.
11415 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11416 Xsed="$SED -e 1s/^X//"
11418 # The HP-UX ksh and POSIX shell print the target directory to stdout
11419 # if CDPATH is set.
11420 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11422 # The names of the tagged configurations supported by this script.
11425 # ### BEGIN LIBTOOL CONFIG
11427 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11429 # Shell to use when invoking shell scripts.
11432 # Whether or not to build shared libraries.
11433 build_libtool_libs=$enable_shared
11435 # Whether or not to build static libraries.
11436 build_old_libs=$enable_static
11438 # Whether or not to add -lc for building shared libraries.
11439 build_libtool_need_lc=$archive_cmds_need_lc
11441 # Whether or not to disallow shared libs when runtime libs are static
11442 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11444 # Whether or not to optimize for fast installation.
11445 fast_install=$enable_fast_install
11448 host_alias=$host_alias
11452 # The build system.
11453 build_alias=$build_alias
11457 # An echo program that does not interpret backslashes.
11462 AR_FLAGS=$lt_AR_FLAGS
11467 # A language-specific compiler.
11470 # Is the compiler the GNU C compiler?
11476 # The linker used to build libraries.
11479 # Whether we need hard or soft links.
11482 # A BSD-compatible nm program.
11485 # A symbol stripping program
11488 # Used to examine libraries when file_magic_cmd begins "file"
11489 MAGIC_CMD=$MAGIC_CMD
11491 # Used on cygwin: DLL creation program.
11494 # Used on cygwin: object dumper.
11497 # Used on cygwin: assembler.
11500 # The name of the directory that contains temporary libtool files.
11503 # How to create reloadable object files.
11504 reload_flag=$lt_reload_flag
11505 reload_cmds=$lt_reload_cmds
11507 # How to pass a linker flag through the compiler.
11508 wl=$lt_lt_prog_compiler_wl
11510 # Object file suffix (normally "o").
11511 objext="$ac_objext"
11513 # Old archive suffix (normally "a").
11516 # Shared library suffix (normally ".so").
11517 shrext_cmds='$shrext_cmds'
11519 # Executable file suffix (normally "").
11522 # Additional compiler flags for building library objects.
11523 pic_flag=$lt_lt_prog_compiler_pic
11526 # What is the maximum length of a command?
11527 max_cmd_len=$lt_cv_sys_max_cmd_len
11529 # Does compiler simultaneously support -c and -o options?
11530 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11532 # Must we lock files when doing compilation?
11533 need_locks=$lt_need_locks
11535 # Do we need the lib prefix for modules?
11536 need_lib_prefix=$need_lib_prefix
11538 # Do we need a version for libraries?
11539 need_version=$need_version
11541 # Whether dlopen is supported.
11542 dlopen_support=$enable_dlopen
11544 # Whether dlopen of programs is supported.
11545 dlopen_self=$enable_dlopen_self
11547 # Whether dlopen of statically linked programs is supported.
11548 dlopen_self_static=$enable_dlopen_self_static
11550 # Compiler flag to prevent dynamic linking.
11551 link_static_flag=$lt_lt_prog_compiler_static
11553 # Compiler flag to turn off builtin functions.
11554 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11556 # Compiler flag to allow reflexive dlopens.
11557 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11559 # Compiler flag to generate shared objects directly from archives.
11560 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11562 # Compiler flag to generate thread-safe objects.
11563 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11565 # Library versioning type.
11566 version_type=$version_type
11568 # Format of library name prefix.
11569 libname_spec=$lt_libname_spec
11571 # List of archive names. First name is the real one, the rest are links.
11572 # The last name is the one that the linker finds with -lNAME.
11573 library_names_spec=$lt_library_names_spec
11575 # The coded name of the library, if different from the real name.
11576 soname_spec=$lt_soname_spec
11578 # Commands used to build and install an old-style archive.
11580 old_archive_cmds=$lt_old_archive_cmds
11581 old_postinstall_cmds=$lt_old_postinstall_cmds
11582 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11584 # Create an old-style archive from a shared archive.
11585 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11587 # Create a temporary old-style archive to link instead of a shared archive.
11588 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11590 # Commands used to build and install a shared archive.
11591 archive_cmds=$lt_archive_cmds
11592 archive_expsym_cmds=$lt_archive_expsym_cmds
11593 postinstall_cmds=$lt_postinstall_cmds
11594 postuninstall_cmds=$lt_postuninstall_cmds
11596 # Commands used to build a loadable module (assumed same as above if empty)
11597 module_cmds=$lt_module_cmds
11598 module_expsym_cmds=$lt_module_expsym_cmds
11600 # Commands to strip libraries.
11601 old_striplib=$lt_old_striplib
11602 striplib=$lt_striplib
11604 # Dependencies to place before the objects being linked to create a
11606 predep_objects=$lt_predep_objects
11608 # Dependencies to place after the objects being linked to create a
11610 postdep_objects=$lt_postdep_objects
11612 # Dependencies to place before the objects being linked to create a
11614 predeps=$lt_predeps
11616 # Dependencies to place after the objects being linked to create a
11618 postdeps=$lt_postdeps
11620 # The library search path used internally by the compiler when linking
11621 # a shared library.
11622 compiler_lib_search_path=$lt_compiler_lib_search_path
11624 # Method to check whether dependent libraries are shared objects.
11625 deplibs_check_method=$lt_deplibs_check_method
11627 # Command to use when deplibs_check_method == file_magic.
11628 file_magic_cmd=$lt_file_magic_cmd
11630 # Flag that allows shared libraries with undefined symbols to be built.
11631 allow_undefined_flag=$lt_allow_undefined_flag
11633 # Flag that forces no undefined symbols.
11634 no_undefined_flag=$lt_no_undefined_flag
11636 # Commands used to finish a libtool library installation in a directory.
11637 finish_cmds=$lt_finish_cmds
11639 # Same as above, but a single script fragment to be evaled but not shown.
11640 finish_eval=$lt_finish_eval
11642 # Take the output of nm and produce a listing of raw symbols and C names.
11643 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11645 # Transform the output of nm in a proper C declaration
11646 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11648 # Transform the output of nm in a C name address pair
11649 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11651 # This is the shared library runtime path variable.
11652 runpath_var=$runpath_var
11654 # This is the shared library path variable.
11655 shlibpath_var=$shlibpath_var
11657 # Is shlibpath searched before the hard-coded library search path?
11658 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11660 # How to hardcode a shared library path into an executable.
11661 hardcode_action=$hardcode_action
11663 # Whether we should hardcode library paths into libraries.
11664 hardcode_into_libs=$hardcode_into_libs
11666 # Flag to hardcode \$libdir into a binary during linking.
11667 # This must work even if \$libdir does not exist.
11668 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11670 # If ld is used when linking, flag to hardcode \$libdir into
11671 # a binary during linking. This must work even if \$libdir does
11673 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11675 # Whether we need a single -rpath flag with a separated argument.
11676 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11678 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11679 # resulting binary.
11680 hardcode_direct=$hardcode_direct
11682 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11683 # resulting binary.
11684 hardcode_minus_L=$hardcode_minus_L
11686 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11687 # the resulting binary.
11688 hardcode_shlibpath_var=$hardcode_shlibpath_var
11690 # Set to yes if building a shared library automatically hardcodes DIR into the library
11691 # and all subsequent libraries and executables linked against it.
11692 hardcode_automatic=$hardcode_automatic
11694 # Variables whose values should be saved in libtool wrapper scripts and
11695 # restored at relink time.
11696 variables_saved_for_relink="$variables_saved_for_relink"
11698 # Whether libtool must link a program against all its dependency libraries.
11699 link_all_deplibs=$link_all_deplibs
11701 # Compile-time system search path for libraries
11702 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11704 # Run-time system search path for libraries
11705 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11707 # Fix the shell variable \$srcfile for the compiler.
11708 fix_srcfile_path="$fix_srcfile_path"
11710 # Set to yes if exported symbols are required.
11711 always_export_symbols=$always_export_symbols
11713 # The commands to list exported symbols.
11714 export_symbols_cmds=$lt_export_symbols_cmds
11716 # The commands to extract the exported symbol list from a shared archive.
11717 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11719 # Symbols that should not be listed in the preloaded symbols.
11720 exclude_expsyms=$lt_exclude_expsyms
11722 # Symbols that must always be exported.
11723 include_expsyms=$lt_include_expsyms
11725 # ### END LIBTOOL CONFIG
11732 cat <<\EOF >> "$cfgfile"
11734 # AIX sometimes has problems with the GCC collect2 program. For some
11735 # reason, if we set the COLLECT_NAMES environment variable, the problems
11736 # vanish in a puff of smoke.
11737 if test "X${COLLECT_NAMES+set}" != Xset; then
11739 export COLLECT_NAMES
11745 # We use sed instead of cat because bash on DJGPP gets confused if
11746 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11747 # text mode, it properly converts lines to CR/LF. This bash problem
11748 # is reportedly fixed, but why not run on old versions too?
11749 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11751 mv -f "$cfgfile" "$ofile" || \
11752 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11756 # If there is no Makefile yet, we rely on a make rule to execute
11757 # `config.status --recheck' to rerun these tests and create the
11758 # libtool script then.
11759 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11760 if test -f "$ltmain_in"; then
11761 test -f Makefile && make "$ltmain"
11767 ac_cpp='$CPP $CPPFLAGS'
11768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11775 # Check whether --with-tags or --without-tags was given.
11776 if test "${with_tags+set}" = set; then
11777 withval="$with_tags"
11778 tagnames="$withval"
11781 if test -f "$ltmain" && test -n "$tagnames"; then
11782 if test ! -f "${ofile}"; then
11783 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11784 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11787 if test -z "$LTCC"; then
11788 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11789 if test -z "$LTCC"; then
11790 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11791 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11793 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11794 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11798 # Extract list of available tagged configurations in $ofile.
11799 # Note that this assumes the entire list is on one line.
11800 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11802 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11803 for tagname in $tagnames; do
11805 # Check whether tagname contains only valid characters
11806 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11808 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11809 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11810 { (exit 1); exit 1; }; }
11814 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11816 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11817 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11818 { (exit 1); exit 1; }; }
11821 # Update the list of available tags.
11822 if test -n "$tagname"; then
11823 echo appending configuration tag \"$tagname\" to $ofile
11827 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11828 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11829 (test "X$CXX" != "Xg++"))) ; then
11831 ac_cpp='$CXXCPP $CPPFLAGS'
11832 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11833 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11834 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11839 archive_cmds_need_lc_CXX=no
11840 allow_undefined_flag_CXX=
11841 always_export_symbols_CXX=no
11842 archive_expsym_cmds_CXX=
11843 export_dynamic_flag_spec_CXX=
11844 hardcode_direct_CXX=no
11845 hardcode_libdir_flag_spec_CXX=
11846 hardcode_libdir_flag_spec_ld_CXX=
11847 hardcode_libdir_separator_CXX=
11848 hardcode_minus_L_CXX=no
11849 hardcode_automatic_CXX=no
11851 module_expsym_cmds_CXX=
11852 link_all_deplibs_CXX=unknown
11853 old_archive_cmds_CXX=$old_archive_cmds
11854 no_undefined_flag_CXX=
11855 whole_archive_flag_spec_CXX=
11856 enable_shared_with_static_runtimes_CXX=no
11858 # Dependencies to place before and after the object being linked:
11859 predep_objects_CXX=
11860 postdep_objects_CXX=
11863 compiler_lib_search_path_CXX=
11865 # Source file extension for C++ test sources.
11868 # Object file extension for compiled C++ test sources.
11872 # Code to be used in simple compile tests
11873 lt_simple_compile_test_code="int some_variable = 0;\n"
11875 # Code to be used in simple link tests
11876 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11878 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11880 # If no C compiler was specified, use CC.
11883 # Allow CC to be a program name with arguments.
11887 # save warnings/boilerplate of simple test code
11888 ac_outfile=conftest.$ac_objext
11889 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11890 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11891 _lt_compiler_boilerplate=`cat conftest.err`
11894 ac_outfile=conftest.$ac_objext
11895 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11896 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11897 _lt_linker_boilerplate=`cat conftest.err`
11901 # Allow CC to be a program name with arguments.
11906 lt_save_with_gnu_ld=$with_gnu_ld
11907 lt_save_path_LD=$lt_cv_path_LD
11908 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11909 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11911 unset lt_cv_prog_gnu_ld
11913 if test -n "${lt_cv_path_LDCXX+set}"; then
11914 lt_cv_path_LD=$lt_cv_path_LDCXX
11916 unset lt_cv_path_LD
11918 test -z "${LDCXX+set}" || LD=$LDCXX
11922 for cc_temp in $compiler""; do
11924 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11925 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11930 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11933 # We don't want -fno-exception wen compiling C++ code, so set the
11934 # no_builtin_flag separately
11935 if test "$GXX" = yes; then
11936 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11938 lt_prog_compiler_no_builtin_flag_CXX=
11941 if test "$GXX" = yes; then
11942 # Set up default GNU C++ configuration
11945 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11946 if test "${with_gnu_ld+set}" = set; then
11947 withval="$with_gnu_ld"
11948 test "$withval" = no || with_gnu_ld=yes
11953 if test "$GCC" = yes; then
11954 # Check if gcc -print-prog-name=ld gives a path.
11955 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11956 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11959 # gcc leaves a trailing carriage return which upsets mingw
11960 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11962 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11965 # Accept absolute paths.
11967 re_direlt='/[^/][^/]*/\.\./'
11968 # Canonicalize the pathname of ld
11969 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11970 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11971 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11973 test -z "$LD" && LD="$ac_prog"
11976 # If it fails, then pretend we aren't using GCC.
11980 # If it is relative, then search for the first ld in PATH.
11981 with_gnu_ld=unknown
11984 elif test "$with_gnu_ld" = yes; then
11985 echo "$as_me:$LINENO: checking for GNU ld" >&5
11986 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11988 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11989 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11991 if test "${lt_cv_path_LD+set}" = set; then
11992 echo $ECHO_N "(cached) $ECHO_C" >&6
11994 if test -z "$LD"; then
11995 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11996 for ac_dir in $PATH; do
11998 test -z "$ac_dir" && ac_dir=.
11999 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12000 lt_cv_path_LD="$ac_dir/$ac_prog"
12001 # Check to see if the program is GNU ld. I'd rather use --version,
12002 # but apparently some GNU ld's only accept -v.
12003 # Break only if it was the GNU/non-GNU ld that we prefer.
12004 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12005 *GNU* | *'with BFD'*)
12006 test "$with_gnu_ld" != no && break
12009 test "$with_gnu_ld" != yes && break
12016 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12020 LD="$lt_cv_path_LD"
12021 if test -n "$LD"; then
12022 echo "$as_me:$LINENO: result: $LD" >&5
12023 echo "${ECHO_T}$LD" >&6
12025 echo "$as_me:$LINENO: result: no" >&5
12026 echo "${ECHO_T}no" >&6
12028 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
12029 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
12030 { (exit 1); exit 1; }; }
12031 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
12032 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
12033 if test "${lt_cv_prog_gnu_ld+set}" = set; then
12034 echo $ECHO_N "(cached) $ECHO_C" >&6
12036 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
12037 case `$LD -v 2>&1 </dev/null` in
12038 *GNU* | *'with BFD'*)
12039 lt_cv_prog_gnu_ld=yes
12042 lt_cv_prog_gnu_ld=no
12046 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
12047 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
12048 with_gnu_ld=$lt_cv_prog_gnu_ld
12052 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12053 # archiving commands below assume that GNU ld is being used.
12054 if test "$with_gnu_ld" = yes; then
12055 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12056 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'
12058 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12059 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12061 # If archive_cmds runs LD, not CC, wlarc should be empty
12062 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12063 # investigate it a little bit more. (MM)
12066 # ancient GNU ld didn't support --whole-archive et. al.
12067 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
12068 grep 'no-whole-archive' > /dev/null; then
12069 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12071 whole_archive_flag_spec_CXX=
12077 # A generic and very simple default shared library creation
12078 # command for GNU C++ for the case where it uses the native
12079 # linker, instead of GNU ld. If possible, this setting should
12080 # overridden to take advantage of the native linker features on
12081 # the platform it is being used on.
12082 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12085 # Commands to make compiler produce verbose output that lists
12086 # what "hidden" libraries, object files and flags are used when
12087 # linking a shared library.
12088 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12096 # PORTME: fill in a description of your system's C++ link characteristics
12097 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12098 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12102 # FIXME: insert proper C++ library support
12106 if test "$host_cpu" = ia64; then
12107 # On IA64, the linker does run time linking by default, so we don't
12108 # have to do anything special.
12109 aix_use_runtimelinking=no
12110 exp_sym_flag='-Bexport'
12113 aix_use_runtimelinking=no
12115 # Test if we are trying to use run time linking or normal
12116 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12117 # need to do runtime linking.
12118 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12119 for ld_flag in $LDFLAGS; do
12122 aix_use_runtimelinking=yes
12129 exp_sym_flag='-bexport'
12130 no_entry_flag='-bnoentry'
12133 # When large executables or shared objects are built, AIX ld can
12134 # have problems creating the table of contents. If linking a library
12135 # or program results in "error TOC overflow" add -mminimal-toc to
12136 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12137 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12139 archive_cmds_CXX=''
12140 hardcode_direct_CXX=yes
12141 hardcode_libdir_separator_CXX=':'
12142 link_all_deplibs_CXX=yes
12144 if test "$GXX" = yes; then
12145 case $host_os in aix4.[012]|aix4.[012].*)
12146 # We only want to do this on AIX 4.2 and lower, the check
12147 # below for broken collect2 doesn't work under 4.3+
12148 collect2name=`${CC} -print-prog-name=collect2`
12149 if test -f "$collect2name" && \
12150 strings "$collect2name" | grep resolve_lib_name >/dev/null
12152 # We have reworked collect2
12153 hardcode_direct_CXX=yes
12155 # We have old collect2
12156 hardcode_direct_CXX=unsupported
12157 # It fails to find uninstalled libraries when the uninstalled
12158 # path is not listed in the libpath. Setting hardcode_minus_L
12159 # to unsupported forces relinking
12160 hardcode_minus_L_CXX=yes
12161 hardcode_libdir_flag_spec_CXX='-L$libdir'
12162 hardcode_libdir_separator_CXX=
12165 shared_flag='-shared'
12166 if test "$aix_use_runtimelinking" = yes; then
12167 shared_flag="$shared_flag "'${wl}-G'
12171 if test "$host_cpu" = ia64; then
12172 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12173 # chokes on -Wl,-G. The following line is correct:
12176 if test "$aix_use_runtimelinking" = yes; then
12177 shared_flag='${wl}-G'
12179 shared_flag='${wl}-bM:SRE'
12184 # It seems that -bexpall does not export symbols beginning with
12185 # underscore (_), so it is better to generate a list of symbols to export.
12186 always_export_symbols_CXX=yes
12187 if test "$aix_use_runtimelinking" = yes; then
12188 # Warning - without using the other runtime loading flags (-brtl),
12189 # -berok will link without error, but may produce a broken library.
12190 allow_undefined_flag_CXX='-berok'
12191 # Determine the default libpath from the value encoded in an empty executable.
12192 cat >conftest.$ac_ext <<_ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h. */
12207 rm -f conftest.$ac_objext conftest$ac_exeext
12208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12209 (eval $ac_link) 2>conftest.er1
12211 grep -v '^ *+' conftest.er1 >conftest.err
12213 cat conftest.err >&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); } &&
12216 { ac_try='test -z "$ac_cxx_werror_flag"
12217 || test ! -s conftest.err'
12218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12219 (eval $ac_try) 2>&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); }; } &&
12223 { ac_try='test -s conftest$ac_exeext'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12230 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12232 # Check for a 64-bit object if we didn't find anything.
12233 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; }
12236 echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12240 rm -f conftest.err conftest.$ac_objext \
12241 conftest$ac_exeext conftest.$ac_ext
12242 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12244 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12246 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"
12248 if test "$host_cpu" = ia64; then
12249 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12250 allow_undefined_flag_CXX="-z nodefs"
12251 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"
12253 # Determine the default libpath from the value encoded in an empty executable.
12254 cat >conftest.$ac_ext <<_ACEOF
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h. */
12269 rm -f conftest.$ac_objext conftest$ac_exeext
12270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12271 (eval $ac_link) 2>conftest.er1
12273 grep -v '^ *+' conftest.er1 >conftest.err
12275 cat conftest.err >&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } &&
12278 { ac_try='test -z "$ac_cxx_werror_flag"
12279 || test ! -s conftest.err'
12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281 (eval $ac_try) 2>&5
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; } &&
12285 { ac_try='test -s conftest$ac_exeext'
12286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; }; then
12292 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12294 # Check for a 64-bit object if we didn't find anything.
12295 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; }
12298 echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12302 rm -f conftest.err conftest.$ac_objext \
12303 conftest$ac_exeext conftest.$ac_ext
12304 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12306 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12307 # Warning - without using the other run time loading flags,
12308 # -berok will link without error, but may produce a broken library.
12309 no_undefined_flag_CXX=' ${wl}-bernotok'
12310 allow_undefined_flag_CXX=' ${wl}-berok'
12311 # -bexpall does not export symbols beginning with underscore (_)
12312 always_export_symbols_CXX=yes
12313 # Exported symbols can be pulled into shared objects from archives
12314 whole_archive_flag_spec_CXX=' '
12315 archive_cmds_need_lc_CXX=yes
12316 # This is similar to how AIX traditionally builds it's shared libraries.
12317 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'
12322 case $cc_basename in
12324 # FIXME: insert proper C++ library support
12331 cygwin* | mingw* | pw32*)
12332 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12333 # as there is no search path for DLLs.
12334 hardcode_libdir_flag_spec_CXX='-L$libdir'
12335 allow_undefined_flag_CXX=unsupported
12336 always_export_symbols_CXX=no
12337 enable_shared_with_static_runtimes_CXX=yes
12339 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12340 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'
12341 # If the export-symbols file already is a .def file (1st line
12342 # is EXPORTS), use it as is; otherwise, prepend...
12343 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12344 cp $export_symbols $output_objdir/$soname.def;
12346 echo EXPORTS > $output_objdir/$soname.def;
12347 cat $export_symbols >> $output_objdir/$soname.def;
12349 $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'
12354 darwin* | rhapsody*)
12356 rhapsody* | darwin1.[012])
12357 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12360 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12361 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12363 case ${MACOSX_DEPLOYMENT_TARGET} in
12365 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12368 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12374 archive_cmds_need_lc_CXX=no
12375 hardcode_direct_CXX=no
12376 hardcode_automatic_CXX=yes
12377 hardcode_shlibpath_var_CXX=unsupported
12378 whole_archive_flag_spec_CXX=''
12379 link_all_deplibs_CXX=yes
12381 if test "$GXX" = yes ; then
12382 lt_int_apple_cc_single_mod=no
12383 output_verbose_link_cmd='echo'
12384 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12385 lt_int_apple_cc_single_mod=yes
12387 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12388 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12390 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'
12392 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12393 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12394 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12395 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}'
12397 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}'
12399 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}'
12401 case $cc_basename in
12403 output_verbose_link_cmd='echo'
12404 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'
12405 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12406 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12407 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}'
12408 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}'
12418 case $cc_basename in
12420 # FIXME: insert proper C++ library support
12424 # Green Hills C++ Compiler
12425 # FIXME: insert proper C++ library support
12429 # FIXME: insert proper C++ library support
12435 # C++ shared libraries reported to be fairly broken before switch to ELF
12439 archive_cmds_need_lc_CXX=no
12441 freebsd* | kfreebsd*-gnu | dragonfly*)
12442 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12449 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12450 hardcode_libdir_separator_CXX=:
12451 export_dynamic_flag_spec_CXX='${wl}-E'
12452 hardcode_direct_CXX=yes
12453 hardcode_minus_L_CXX=yes # Not in the search PATH,
12454 # but as the default
12455 # location of the library.
12457 case $cc_basename in
12459 # FIXME: insert proper C++ library support
12463 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'
12464 # Commands to make compiler produce verbose output that lists
12465 # what "hidden" libraries, object files and flags are used when
12466 # linking a shared library.
12468 # There doesn't appear to be a way to prevent this compiler from
12469 # explicitly linking system object files so we need to strip them
12470 # from the output so that they don't get included in the library
12472 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'
12475 if test "$GXX" = yes; then
12476 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'
12478 # FIXME: insert proper C++ library support
12485 if test $with_gnu_ld = no; then
12486 case "$host_cpu" in
12488 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12489 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12490 hardcode_libdir_separator_CXX=:
12493 hardcode_libdir_flag_spec_CXX='-L$libdir'
12496 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12497 hardcode_libdir_separator_CXX=:
12498 export_dynamic_flag_spec_CXX='${wl}-E'
12502 case "$host_cpu" in
12504 hardcode_direct_CXX=no
12505 hardcode_shlibpath_var_CXX=no
12508 hardcode_direct_CXX=no
12509 hardcode_shlibpath_var_CXX=no
12510 hardcode_minus_L_CXX=yes # Not in the search PATH,
12511 # but as the default
12512 # location of the library.
12515 hardcode_direct_CXX=yes
12516 hardcode_minus_L_CXX=yes # Not in the search PATH,
12517 # but as the default
12518 # location of the library.
12522 case $cc_basename in
12524 # FIXME: insert proper C++ library support
12528 case "$host_cpu" in
12530 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12533 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12536 # Commands to make compiler produce verbose output that lists
12537 # what "hidden" libraries, object files and flags are used when
12538 # linking a shared library.
12540 # There doesn't appear to be a way to prevent this compiler from
12541 # explicitly linking system object files so we need to strip them
12542 # from the output so that they don't get included in the library
12544 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'
12547 if test "$GXX" = yes; then
12548 if test $with_gnu_ld = no; then
12549 case "$host_cpu" in
12551 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12554 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'
12559 # FIXME: insert proper C++ library support
12566 case $cc_basename in
12569 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'
12571 # Archives containing C++ object files must be created using
12572 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12573 # necessary to make sure instantiated templates are included
12575 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12578 if test "$GXX" = yes; then
12579 if test "$with_gnu_ld" = no; then
12580 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'
12582 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'
12585 link_all_deplibs_CXX=yes
12588 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12589 hardcode_libdir_separator_CXX=:
12592 case $cc_basename in
12594 # Kuck and Associates, Inc. (KAI) C++ Compiler
12596 # KCC will only create a shared library if the output file
12597 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12598 # to its proper name (with version) after linking.
12599 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'
12600 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'
12601 # Commands to make compiler produce verbose output that lists
12602 # what "hidden" libraries, object files and flags are used when
12603 # linking a shared library.
12605 # There doesn't appear to be a way to prevent this compiler from
12606 # explicitly linking system object files so we need to strip them
12607 # from the output so that they don't get included in the library
12609 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'
12611 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12612 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12614 # Archives containing C++ object files must be created using
12615 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12616 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12621 # version 8.0 and above of icpc choke on multiply defined symbols
12622 # if we add $predep_objects and $postdep_objects, however 7.1 and
12623 # earlier do not add the objects themselves.
12624 case `$CC -V 2>&1` in
12626 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12627 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'
12629 *) # Version 8.0 or newer
12632 ia64*) tmp_idyn=' -i_dynamic';;
12634 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12635 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'
12638 archive_cmds_need_lc_CXX=no
12639 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12640 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12641 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12644 # Portland Group C++ compiler
12645 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12646 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'
12648 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12649 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12650 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'
12654 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12655 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'
12657 runpath_var=LD_RUN_PATH
12658 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12659 hardcode_libdir_separator_CXX=:
12661 # Commands to make compiler produce verbose output that lists
12662 # what "hidden" libraries, object files and flags are used when
12663 # linking a shared library.
12665 # There doesn't appear to be a way to prevent this compiler from
12666 # explicitly linking system object files so we need to strip them
12667 # from the output so that they don't get included in the library
12669 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'
12674 # FIXME: insert proper C++ library support
12678 # FIXME: insert proper C++ library support
12682 case $cc_basename in
12684 # FIXME: insert proper C++ library support
12688 # FIXME: insert proper C++ library support
12694 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12695 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12697 hardcode_libdir_flag_spec_CXX='-R$libdir'
12698 hardcode_direct_CXX=yes
12699 hardcode_shlibpath_var_CXX=no
12701 # Workaround some broken pre-1.5 toolchains
12702 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12705 # C++ shared libraries are fairly broken
12709 hardcode_direct_CXX=yes
12710 hardcode_shlibpath_var_CXX=no
12711 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12712 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12713 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12714 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12715 export_dynamic_flag_spec_CXX='${wl}-E'
12716 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12718 output_verbose_link_cmd='echo'
12721 case $cc_basename in
12723 # Kuck and Associates, Inc. (KAI) C++ Compiler
12725 # KCC will only create a shared library if the output file
12726 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12727 # to its proper name (with version) after linking.
12728 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'
12730 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12731 hardcode_libdir_separator_CXX=:
12733 # Archives containing C++ object files must be created using
12734 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12735 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12739 # Rational C++ 2.4.1
12740 # FIXME: insert proper C++ library support
12744 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12745 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'
12747 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12748 hardcode_libdir_separator_CXX=:
12750 # Commands to make compiler produce verbose output that lists
12751 # what "hidden" libraries, object files and flags are used when
12752 # linking a shared library.
12754 # There doesn't appear to be a way to prevent this compiler from
12755 # explicitly linking system object files so we need to strip them
12756 # from the output so that they don't get included in the library
12758 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'
12761 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12762 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12763 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'
12765 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12766 hardcode_libdir_separator_CXX=:
12768 # Commands to make compiler produce verbose output that lists
12769 # what "hidden" libraries, object files and flags are used when
12770 # linking a shared library.
12771 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12774 # FIXME: insert proper C++ library support
12781 case $cc_basename in
12783 # Kuck and Associates, Inc. (KAI) C++ Compiler
12785 # KCC will only create a shared library if the output file
12786 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12787 # to its proper name (with version) after linking.
12788 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'
12790 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12791 hardcode_libdir_separator_CXX=:
12793 # Archives containing C++ object files must be created using
12794 # the KAI C++ compiler.
12795 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12798 # Rational C++ 2.4.1
12799 # FIXME: insert proper C++ library support
12803 allow_undefined_flag_CXX=' -expect_unresolved \*'
12804 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'
12805 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12806 echo "-hidden">> $lib.exp~
12807 $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~
12810 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12811 hardcode_libdir_separator_CXX=:
12813 # Commands to make compiler produce verbose output that lists
12814 # what "hidden" libraries, object files and flags are used when
12815 # linking a shared library.
12817 # There doesn't appear to be a way to prevent this compiler from
12818 # explicitly linking system object files so we need to strip them
12819 # from the output so that they don't get included in the library
12821 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'
12824 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12825 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12826 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'
12828 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12829 hardcode_libdir_separator_CXX=:
12831 # Commands to make compiler produce verbose output that lists
12832 # what "hidden" libraries, object files and flags are used when
12833 # linking a shared library.
12834 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12837 # FIXME: insert proper C++ library support
12844 # FIXME: insert proper C++ library support
12848 archive_cmds_need_lc_CXX=no
12849 case $cc_basename in
12851 # FIXME: insert proper C++ library support
12855 # FIXME: insert proper C++ library support
12861 case $cc_basename in
12864 # FIXME: insert proper C++ library support
12869 # FIXME: insert proper C++ library support
12873 # FIXME: insert proper C++ library support
12879 case $cc_basename in
12881 # Sun C++ 4.2, 5.x and Centerline C++
12882 no_undefined_flag_CXX=' -zdefs'
12883 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12884 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12885 $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'
12887 hardcode_libdir_flag_spec_CXX='-R$libdir'
12888 hardcode_shlibpath_var_CXX=no
12890 solaris2.[0-5] | solaris2.[0-5].*) ;;
12892 # The C++ compiler is used as linker so we must use $wl
12893 # flag to pass the commands to the underlying system
12894 # linker. We must also pass each convience library through
12895 # to the system linker between allextract/defaultextract.
12896 # The C++ compiler will combine linker options so we
12897 # cannot just pass the convience library names through
12899 # Supported since Solaris 2.6 (maybe 2.5.1?)
12900 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'
12903 link_all_deplibs_CXX=yes
12905 # Commands to make compiler produce verbose output that lists
12906 # what "hidden" libraries, object files and flags are used when
12907 # linking a shared library.
12909 # There doesn't appear to be a way to prevent this compiler from
12910 # explicitly linking system object files so we need to strip them
12911 # from the output so that they don't get included in the library
12913 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'
12915 # Archives containing C++ object files must be created using
12916 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12917 # necessary to make sure instantiated templates are included
12919 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12922 # Green Hills C++ Compiler
12923 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12925 # The C++ compiler must be used to create the archive.
12926 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12929 # GNU C++ compiler with Solaris linker
12930 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12931 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12932 if $CC --version | grep -v '^2\.7' > /dev/null; then
12933 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12934 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12935 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12937 # Commands to make compiler produce verbose output that lists
12938 # what "hidden" libraries, object files and flags are used when
12939 # linking a shared library.
12940 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12942 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12944 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12945 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12946 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12948 # Commands to make compiler produce verbose output that lists
12949 # what "hidden" libraries, object files and flags are used when
12950 # linking a shared library.
12951 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12954 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12959 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12960 archive_cmds_need_lc_CXX=no
12963 case $cc_basename in
12965 # NonStop-UX NCC 3.20
12966 # FIXME: insert proper C++ library support
12970 # FIXME: insert proper C++ library support
12976 # FIXME: insert proper C++ library support
12980 # FIXME: insert proper C++ library support
12984 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12985 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12986 test "$ld_shlibs_CXX" = no && can_build_shared=no
12992 cat > conftest.$ac_ext <<EOF
12996 Foo (void) { a = 0; }
13002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13003 (eval $ac_compile) 2>&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; then
13007 # Parse the compiler output and extract the necessary
13008 # objects, libraries and library flags.
13010 # Sentinel used to keep track of whether or not we are before
13011 # the conftest object file.
13012 pre_test_object_deps_done=no
13014 # The `*' in the case matches for architectures that use `case' in
13015 # $output_verbose_cmd can trigger glob expansion during the loop
13016 # eval without this substitution.
13017 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
13019 for p in `eval $output_verbose_link_cmd`; do
13023 # Some compilers place space between "-{L,R}" and the path.
13024 # Remove the space.
13025 if test $p = "-L" \
13026 || test $p = "-R"; then
13033 if test "$pre_test_object_deps_done" = no; then
13036 # Internal compiler library paths should come after those
13037 # provided the user. The postdeps already come after the
13038 # user supplied libs so there is no need to process them.
13039 if test -z "$compiler_lib_search_path_CXX"; then
13040 compiler_lib_search_path_CXX="${prev}${p}"
13042 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13045 # The "-l" case would never come before the object being
13046 # linked, so don't bother handling this case.
13049 if test -z "$postdeps_CXX"; then
13050 postdeps_CXX="${prev}${p}"
13052 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13058 # This assumes that the test object file only shows up
13059 # once in the compiler output.
13060 if test "$p" = "conftest.$objext"; then
13061 pre_test_object_deps_done=yes
13065 if test "$pre_test_object_deps_done" = no; then
13066 if test -z "$predep_objects_CXX"; then
13067 predep_objects_CXX="$p"
13069 predep_objects_CXX="$predep_objects_CXX $p"
13072 if test -z "$postdep_objects_CXX"; then
13073 postdep_objects_CXX="$p"
13075 postdep_objects_CXX="$postdep_objects_CXX $p"
13080 *) ;; # Ignore the rest.
13088 echo "libtool.m4: error: problem compiling CXX test program"
13091 $rm -f confest.$objext
13093 case " $postdeps_CXX " in
13094 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13097 lt_prog_compiler_wl_CXX=
13098 lt_prog_compiler_pic_CXX=
13099 lt_prog_compiler_static_CXX=
13101 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13102 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13104 # C++ specific cases for pic, static, wl, etc.
13105 if test "$GXX" = yes; then
13106 lt_prog_compiler_wl_CXX='-Wl,'
13107 lt_prog_compiler_static_CXX='-static'
13111 # All AIX code is PIC.
13112 if test "$host_cpu" = ia64; then
13113 # AIX 5 now supports IA64 processor
13114 lt_prog_compiler_static_CXX='-Bstatic'
13118 # FIXME: we need at least 68020 code to build shared libraries, but
13119 # adding the `-m68020' flag to GCC prevents building anything better,
13121 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13123 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13124 # PIC is the default for these OSes.
13126 mingw* | os2* | pw32*)
13127 # This hack is so that the source file can tell whether it is being
13128 # built for inclusion in a dll (and should export symbols for example).
13129 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13131 darwin* | rhapsody*)
13132 # PIC is the default on this platform
13133 # Common symbols not allowed in MH_DYLIB files
13134 lt_prog_compiler_pic_CXX='-fno-common'
13137 # DJGPP does not support shared libraries at all
13138 lt_prog_compiler_pic_CXX=
13141 if test -d /usr/nec; then
13142 lt_prog_compiler_pic_CXX=-Kconform_pic
13146 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13147 # not for PA HP-UX.
13148 case "$host_cpu" in
13152 lt_prog_compiler_pic_CXX='-fPIC'
13157 lt_prog_compiler_pic_CXX='-fPIC'
13163 # All AIX code is PIC.
13164 if test "$host_cpu" = ia64; then
13165 # AIX 5 now supports IA64 processor
13166 lt_prog_compiler_static_CXX='-Bstatic'
13168 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13172 case $cc_basename in
13174 # Green Hills C++ Compiler
13175 # _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"
13180 # PIC is the default on this platform
13181 # Common symbols not allowed in MH_DYLIB files
13182 case $cc_basename in
13184 lt_prog_compiler_pic_CXX='-qnocommon'
13185 lt_prog_compiler_wl_CXX='-Wl,'
13190 case $cc_basename in
13192 lt_prog_compiler_pic_CXX='-KPIC'
13195 # Green Hills C++ Compiler
13196 lt_prog_compiler_pic_CXX='-pic'
13202 freebsd* | kfreebsd*-gnu | dragonfly*)
13203 # FreeBSD uses GNU C++
13205 hpux9* | hpux10* | hpux11*)
13206 case $cc_basename in
13208 lt_prog_compiler_wl_CXX='-Wl,'
13209 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13210 if test "$host_cpu" != ia64; then
13211 lt_prog_compiler_pic_CXX='+Z'
13215 lt_prog_compiler_wl_CXX='-Wl,'
13216 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
13217 case "$host_cpu" in
13222 lt_prog_compiler_pic_CXX='+Z'
13230 irix5* | irix6* | nonstopux*)
13231 case $cc_basename in
13233 lt_prog_compiler_wl_CXX='-Wl,'
13234 lt_prog_compiler_static_CXX='-non_shared'
13235 # CC pic flag -KPIC is the default.
13242 case $cc_basename in
13245 lt_prog_compiler_wl_CXX='--backend -Wl,'
13246 lt_prog_compiler_pic_CXX='-fPIC'
13250 lt_prog_compiler_wl_CXX='-Wl,'
13251 lt_prog_compiler_pic_CXX='-KPIC'
13252 lt_prog_compiler_static_CXX='-static'
13255 # Portland Group C++ compiler.
13256 lt_prog_compiler_wl_CXX='-Wl,'
13257 lt_prog_compiler_pic_CXX='-fpic'
13258 lt_prog_compiler_static_CXX='-static'
13262 # Make sure the PIC flag is empty. It appears that all Alpha
13263 # Linux and Compaq Tru64 Unix objects are PIC.
13264 lt_prog_compiler_pic_CXX=
13265 lt_prog_compiler_static_CXX='-non_shared'
13276 case $cc_basename in
13278 lt_prog_compiler_pic_CXX='-W c,exportall'
13286 osf3* | osf4* | osf5*)
13287 case $cc_basename in
13289 lt_prog_compiler_wl_CXX='--backend -Wl,'
13292 # Rational C++ 2.4.1
13293 lt_prog_compiler_pic_CXX='-pic'
13296 # Digital/Compaq C++
13297 lt_prog_compiler_wl_CXX='-Wl,'
13298 # Make sure the PIC flag is empty. It appears that all Alpha
13299 # Linux and Compaq Tru64 Unix objects are PIC.
13300 lt_prog_compiler_pic_CXX=
13301 lt_prog_compiler_static_CXX='-non_shared'
13310 case $cc_basename in
13312 lt_prog_compiler_pic_CXX='-fPIC'
13319 case $cc_basename in
13321 # Sun C++ 4.2, 5.x and Centerline C++
13322 lt_prog_compiler_pic_CXX='-KPIC'
13323 lt_prog_compiler_static_CXX='-Bstatic'
13324 lt_prog_compiler_wl_CXX='-Qoption ld '
13327 # Green Hills C++ Compiler
13328 lt_prog_compiler_pic_CXX='-PIC'
13335 case $cc_basename in
13338 lt_prog_compiler_pic_CXX='-pic'
13339 lt_prog_compiler_static_CXX='-Bstatic'
13343 lt_prog_compiler_pic_CXX='-pic'
13350 case $cc_basename in
13352 # NonStop-UX NCC 3.20
13353 lt_prog_compiler_pic_CXX='-KPIC'
13364 lt_prog_compiler_can_build_shared_CXX=no
13369 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13370 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13373 # Check to make sure the PIC flag actually works.
13375 if test -n "$lt_prog_compiler_pic_CXX"; then
13377 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13378 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13379 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13380 echo $ECHO_N "(cached) $ECHO_C" >&6
13382 lt_prog_compiler_pic_works_CXX=no
13383 ac_outfile=conftest.$ac_objext
13384 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13385 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13386 # Insert the option either (1) after the last *FLAGS variable, or
13387 # (2) before a word containing "conftest.", or (3) at the end.
13388 # Note that $ac_compile itself does not contain backslashes and begins
13389 # with a dollar sign (not a hyphen), so the echo should work correctly.
13390 # The option is referenced via a variable to avoid confusing sed.
13391 lt_compile=`echo "$ac_compile" | $SED \
13392 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13393 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13394 -e 's:$: $lt_compiler_flag:'`
13395 (eval echo "\"\$as_me:13395: $lt_compile\"" >&5)
13396 (eval "$lt_compile" 2>conftest.err)
13398 cat conftest.err >&5
13399 echo "$as_me:13399: \$? = $ac_status" >&5
13400 if (exit $ac_status) && test -s "$ac_outfile"; then
13401 # The compiler can only warn and ignore the option if not recognized
13402 # So say no if there are warnings other than the usual output.
13403 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
13404 $SED '/^$/d' conftest.err >conftest.er2
13405 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
13406 lt_prog_compiler_pic_works_CXX=yes
13412 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13413 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13415 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13416 case $lt_prog_compiler_pic_CXX in
13418 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13421 lt_prog_compiler_pic_CXX=
13422 lt_prog_compiler_can_build_shared_CXX=no
13427 # For platforms which do not support PIC, -DPIC is meaningless:
13429 lt_prog_compiler_pic_CXX=
13432 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13436 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13437 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13438 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13439 echo $ECHO_N "(cached) $ECHO_C" >&6
13441 lt_cv_prog_compiler_c_o_CXX=no
13442 $rm -r conftest 2>/dev/null
13446 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13448 lt_compiler_flag="-o out/conftest2.$ac_objext"
13449 # Insert the option either (1) after the last *FLAGS variable, or
13450 # (2) before a word containing "conftest.", or (3) at the end.
13451 # Note that $ac_compile itself does not contain backslashes and begins
13452 # with a dollar sign (not a hyphen), so the echo should work correctly.
13453 lt_compile=`echo "$ac_compile" | $SED \
13454 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13456 -e 's:$: $lt_compiler_flag:'`
13457 (eval echo "\"\$as_me:13457: $lt_compile\"" >&5)
13458 (eval "$lt_compile" 2>out/conftest.err)
13460 cat out/conftest.err >&5
13461 echo "$as_me:13461: \$? = $ac_status" >&5
13462 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13464 # The compiler can only warn and ignore the option if not recognized
13465 # So say no if there are warnings
13466 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
13467 $SED '/^$/d' out/conftest.err >out/conftest.er2
13468 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13469 lt_cv_prog_compiler_c_o_CXX=yes
13474 # SGI C++ compiler will create directory out/ii_files/ for
13475 # template instantiation
13476 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13477 $rm out/* && rmdir out
13483 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13484 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13487 hard_links="nottested"
13488 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13489 # do not overwrite the value of need_locks provided by the user
13490 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13491 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13494 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13496 ln conftest.a conftest.b 2>&5 || hard_links=no
13497 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13498 echo "$as_me:$LINENO: result: $hard_links" >&5
13499 echo "${ECHO_T}$hard_links" >&6
13500 if test "$hard_links" = no; then
13501 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13502 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13509 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13510 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13512 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13515 # If we're using GNU nm, then we don't want the "-C" option.
13516 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13517 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13518 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'
13520 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'
13524 export_symbols_cmds_CXX="$ltdll_cmds"
13527 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'
13530 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13534 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13535 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13536 test "$ld_shlibs_CXX" = no && can_build_shared=no
13538 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13539 if test "$GCC" = yes; then
13540 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13544 # Do we need to explicitly link libc?
13546 case "x$archive_cmds_need_lc_CXX" in
13548 # Assume -lc should be added
13549 archive_cmds_need_lc_CXX=yes
13551 if test "$enable_shared" = yes && test "$GCC" = yes; then
13552 case $archive_cmds_CXX in
13554 # FIXME: we may have to deal with multi-command sequences.
13557 # Test whether the compiler implicitly links with -lc since on some
13558 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13559 # to ld, don't add -lc before -lgcc.
13560 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13561 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13563 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13566 (eval $ac_compile) 2>&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); } 2>conftest.err; then
13572 libobjs=conftest.$ac_objext
13574 wl=$lt_prog_compiler_wl_CXX
13580 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13581 allow_undefined_flag_CXX=
13582 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13583 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }
13588 archive_cmds_need_lc_CXX=no
13590 archive_cmds_need_lc_CXX=yes
13592 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13594 cat conftest.err 1>&5
13597 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13598 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13605 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13606 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13607 library_names_spec=
13608 libname_spec='lib$name'
13612 postuninstall_cmds=
13616 shlibpath_overrides_runpath=unknown
13618 dynamic_linker="$host_os ld.so"
13619 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13620 if test "$GCC" = yes; then
13621 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13622 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13623 # if the path contains ";" then we assume it to be the separator
13624 # otherwise default to the standard path separator (i.e. ":") - it is
13625 # assumed that no part of a normal pathname contains ";" but that should
13626 # okay in the real world where ";" in dirpaths is itself problematic.
13627 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13629 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13632 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13634 need_lib_prefix=unknown
13635 hardcode_into_libs=no
13637 # when you set need_version to no, make sure it does not cause -set_version
13638 # flags to be left without arguments
13639 need_version=unknown
13644 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13645 shlibpath_var=LIBPATH
13647 # AIX 3 has no versioning support, so we append a major version to the name.
13648 soname_spec='${libname}${release}${shared_ext}$major'
13655 hardcode_into_libs=yes
13656 if test "$host_cpu" = ia64; then
13657 # AIX 5 supports IA64
13658 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13659 shlibpath_var=LD_LIBRARY_PATH
13661 # With GCC up to 2.95.x, collect2 would create an import file
13662 # for dependence libraries. The import file would start with
13663 # the line `#! .'. This would cause the generated library to
13664 # depend on `.', always an invalid library. This was fixed in
13665 # development snapshots of GCC prior to 3.0.
13667 aix4 | aix4.[01] | aix4.[01].*)
13668 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13670 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13673 can_build_shared=no
13677 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13678 # soname into executable. Probably we can add versioning support to
13679 # collect2, so additional links can be useful in future.
13680 if test "$aix_use_runtimelinking" = yes; then
13681 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13682 # instead of lib<name>.a to let people know that these are not
13683 # typical AIX shared libraries.
13684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13686 # We preserve .a as extension for shared libraries through AIX4.2
13687 # and later when we are not doing run time linking.
13688 library_names_spec='${libname}${release}.a $libname.a'
13689 soname_spec='${libname}${release}${shared_ext}$major'
13691 shlibpath_var=LIBPATH
13696 library_names_spec='$libname.ixlibrary $libname.a'
13697 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13698 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'
13702 library_names_spec='${libname}${shared_ext}'
13703 dynamic_linker="$host_os ld.so"
13704 shlibpath_var=LIBRARY_PATH
13710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13711 soname_spec='${libname}${release}${shared_ext}$major'
13712 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13713 shlibpath_var=LD_LIBRARY_PATH
13714 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13715 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13716 # the default ld.so.conf also contains /usr/contrib/lib and
13717 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13718 # libtool to hard-code these into programs
13721 cygwin* | mingw* | pw32*)
13722 version_type=windows
13727 case $GCC,$host_os in
13728 yes,cygwin* | yes,mingw* | yes,pw32*)
13729 library_names_spec='$libname.dll.a'
13730 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13731 postinstall_cmds='base_file=`basename \${file}`~
13732 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13733 dldir=$destdir/`dirname \$dlpath`~
13734 test -d \$dldir || mkdir -p \$dldir~
13735 $install_prog $dir/$dlname \$dldir/$dlname'
13736 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13737 dlpath=$dir/\$dldll~
13739 shlibpath_overrides_runpath=yes
13743 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13744 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13745 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13748 # MinGW DLLs use traditional 'lib' prefix
13749 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13750 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13751 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13752 # It is most probably a Windows format PATH printed by
13753 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13754 # path with ; separators, and with drive letters. We can handle the
13755 # drive letters (cygwin fileutils understands them), so leave them,
13756 # especially as we might pass files found there to a mingw objdump,
13757 # which wouldn't understand a cygwinified path. Ahh.
13758 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13760 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13764 # pw32 DLLs use 'pw' prefix rather than 'lib'
13765 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13771 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13774 dynamic_linker='Win32 ld.exe'
13775 # FIXME: first we should search . and the directory the executable is in
13779 darwin* | rhapsody*)
13780 dynamic_linker="$host_os dyld"
13781 version_type=darwin
13784 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13785 soname_spec='${libname}${release}${major}$shared_ext'
13786 shlibpath_overrides_runpath=yes
13787 shlibpath_var=DYLD_LIBRARY_PATH
13788 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13789 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13790 if test "$GCC" = yes; then
13791 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"`
13793 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13795 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13803 soname_spec='${libname}${release}${shared_ext}$major'
13804 shlibpath_var=LD_LIBRARY_PATH
13815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13816 soname_spec='${libname}${release}${shared_ext}$major'
13817 shlibpath_var=LD_LIBRARY_PATH
13818 shlibpath_overrides_runpath=no
13819 hardcode_into_libs=yes
13820 dynamic_linker='GNU ld.so'
13823 freebsd* | dragonfly*)
13824 # DragonFly does not have aout. When/if they implement a new
13825 # versioning mechanism, adjust this.
13826 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13827 version_type=freebsd-$objformat
13828 case $version_type in
13830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13835 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13839 shlibpath_var=LD_LIBRARY_PATH
13842 shlibpath_overrides_runpath=yes
13844 freebsd3.[01]* | freebsdelf3.[01]*)
13845 shlibpath_overrides_runpath=yes
13846 hardcode_into_libs=yes
13849 shlibpath_overrides_runpath=no
13850 hardcode_into_libs=yes
13859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13860 soname_spec='${libname}${release}${shared_ext}$major'
13861 shlibpath_var=LD_LIBRARY_PATH
13862 hardcode_into_libs=yes
13865 hpux9* | hpux10* | hpux11*)
13866 # Give a soname corresponding to the major version so that dld.sl refuses to
13867 # link against other versions.
13871 case "$host_cpu" in
13874 hardcode_into_libs=yes
13875 dynamic_linker="$host_os dld.so"
13876 shlibpath_var=LD_LIBRARY_PATH
13877 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13879 soname_spec='${libname}${release}${shared_ext}$major'
13880 if test "X$HPUX_IA64_MODE" = X32; then
13881 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13883 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13885 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13889 hardcode_into_libs=yes
13890 dynamic_linker="$host_os dld.sl"
13891 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13892 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13894 soname_spec='${libname}${release}${shared_ext}$major'
13895 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13896 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13900 dynamic_linker="$host_os dld.sl"
13901 shlibpath_var=SHLIB_PATH
13902 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13904 soname_spec='${libname}${release}${shared_ext}$major'
13907 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13908 postinstall_cmds='chmod 555 $lib'
13911 irix5* | irix6* | nonstopux*)
13913 nonstopux*) version_type=nonstopux ;;
13915 if test "$lt_cv_prog_gnu_ld" = yes; then
13923 soname_spec='${libname}${release}${shared_ext}$major'
13924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13926 irix5* | nonstopux*)
13927 libsuff= shlibsuff=
13930 case $LD in # libtool.m4 will add one of these switches to LD
13931 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13932 libsuff= shlibsuff= libmagic=32-bit;;
13933 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13934 libsuff=32 shlibsuff=N32 libmagic=N32;;
13935 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13936 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13937 *) libsuff= shlibsuff= libmagic=never-match;;
13941 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13942 shlibpath_overrides_runpath=no
13943 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13944 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13945 hardcode_into_libs=yes
13948 # No shared lib support for Linux oldld, aout, or coff.
13949 linux*oldld* | linux*aout* | linux*coff*)
13953 # This must be Linux ELF.
13958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13959 soname_spec='${libname}${release}${shared_ext}$major'
13960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13961 shlibpath_var=LD_LIBRARY_PATH
13962 shlibpath_overrides_runpath=no
13963 # This implies no fast_install, which is unacceptable.
13964 # Some rework will be needed to allow for fast_install
13965 # before this can be enabled.
13966 hardcode_into_libs=yes
13968 # Append ld.so.conf contents to the search path
13969 if test -f /etc/ld.so.conf; then
13970 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' ' '`
13971 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13974 # We used to test for /lib/ld.so.1 and disable shared libraries on
13975 # powerpc, because MkLinux only supported shared libraries with the
13976 # GNU dynamic linker. Since this was broken with cross compilers,
13977 # most powerpc-linux boxes support dynamic linking these days and
13978 # people can always --disable-shared, the test was removed, and we
13979 # assume the GNU/Linux dynamic linker is in use.
13980 dynamic_linker='GNU/Linux ld.so'
13987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13988 soname_spec='${libname}${release}${shared_ext}$major'
13989 shlibpath_var=LD_LIBRARY_PATH
13990 shlibpath_overrides_runpath=no
13991 hardcode_into_libs=yes
13992 dynamic_linker='GNU ld.so'
13999 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14001 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14002 dynamic_linker='NetBSD (a.out) ld.so'
14004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14005 soname_spec='${libname}${release}${shared_ext}$major'
14006 dynamic_linker='NetBSD ld.elf_so'
14008 shlibpath_var=LD_LIBRARY_PATH
14009 shlibpath_overrides_runpath=yes
14010 hardcode_into_libs=yes
14015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14016 shlibpath_var=LD_LIBRARY_PATH
14017 shlibpath_overrides_runpath=yes
14024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14025 soname_spec='${libname}${release}${shared_ext}$major'
14026 shlibpath_var=LD_LIBRARY_PATH
14027 shlibpath_overrides_runpath=yes
14033 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14035 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14036 *) need_version=no ;;
14038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14039 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14040 shlibpath_var=LD_LIBRARY_PATH
14041 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14043 openbsd2.[89] | openbsd2.[89].*)
14044 shlibpath_overrides_runpath=no
14047 shlibpath_overrides_runpath=yes
14051 shlibpath_overrides_runpath=yes
14056 libname_spec='$name'
14059 library_names_spec='$libname${shared_ext} $libname.a'
14060 dynamic_linker='OS/2 ld.exe'
14061 shlibpath_var=LIBPATH
14064 osf3* | osf4* | osf5*)
14068 soname_spec='${libname}${release}${shared_ext}$major'
14069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14070 shlibpath_var=LD_LIBRARY_PATH
14071 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14072 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14077 soname_spec='${libname}${release}${shared_ext}$major'
14078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14079 shlibpath_var=LD_LIBRARY_PATH
14086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14087 soname_spec='${libname}${release}${shared_ext}$major'
14088 shlibpath_var=LD_LIBRARY_PATH
14089 shlibpath_overrides_runpath=yes
14090 hardcode_into_libs=yes
14091 # ldd complains unless libraries are executable
14092 postinstall_cmds='chmod +x $lib'
14097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14098 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14099 shlibpath_var=LD_LIBRARY_PATH
14100 shlibpath_overrides_runpath=yes
14101 if test "$with_gnu_ld" = yes; then
14107 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14110 soname_spec='${libname}${release}${shared_ext}$major'
14111 shlibpath_var=LD_LIBRARY_PATH
14112 case $host_vendor in
14114 shlibpath_overrides_runpath=no
14116 export_dynamic_flag_spec='${wl}-Blargedynsym'
14117 runpath_var=LD_RUN_PATH
14125 shlibpath_overrides_runpath=no
14126 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14132 if test -d /usr/nec ;then
14134 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14135 soname_spec='$libname${shared_ext}.$major'
14136 shlibpath_var=LD_LIBRARY_PATH
14142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14143 soname_spec='${libname}${release}${shared_ext}$major'
14144 shlibpath_var=LD_LIBRARY_PATH
14151 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14152 echo "${ECHO_T}$dynamic_linker" >&6
14153 test "$dynamic_linker" = no && can_build_shared=no
14155 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14156 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14157 hardcode_action_CXX=
14158 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14159 test -n "$runpath_var_CXX" || \
14160 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14162 # We can hardcode non-existant directories.
14163 if test "$hardcode_direct_CXX" != no &&
14164 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14165 # have to relink, otherwise we might link with an installed library
14166 # when we should be linking with a yet-to-be-installed one
14167 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14168 test "$hardcode_minus_L_CXX" != no; then
14169 # Linking always hardcodes the temporary library directory.
14170 hardcode_action_CXX=relink
14172 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14173 hardcode_action_CXX=immediate
14176 # We cannot hardcode anything, or else we can only hardcode existing
14178 hardcode_action_CXX=unsupported
14180 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14181 echo "${ECHO_T}$hardcode_action_CXX" >&6
14183 if test "$hardcode_action_CXX" = relink; then
14184 # Fast installation is not supported
14185 enable_fast_install=no
14186 elif test "$shlibpath_overrides_runpath" = yes ||
14187 test "$enable_shared" = no; then
14188 # Fast installation is not necessary
14189 enable_fast_install=needless
14194 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14195 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14196 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14197 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14198 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14199 echo "$as_me:$LINENO: result: yes" >&5
14200 echo "${ECHO_T}yes" >&6
14202 # FIXME - insert some real tests, host_os isn't really good enough
14205 if test -n "$STRIP" ; then
14206 striplib="$STRIP -x"
14207 echo "$as_me:$LINENO: result: yes" >&5
14208 echo "${ECHO_T}yes" >&6
14210 echo "$as_me:$LINENO: result: no" >&5
14211 echo "${ECHO_T}no" >&6
14215 echo "$as_me:$LINENO: result: no" >&5
14216 echo "${ECHO_T}no" >&6
14221 if test "x$enable_dlopen" != xyes; then
14222 enable_dlopen=unknown
14223 enable_dlopen_self=unknown
14224 enable_dlopen_self_static=unknown
14231 lt_cv_dlopen="load_add_on"
14233 lt_cv_dlopen_self=yes
14237 lt_cv_dlopen="LoadLibrary"
14242 lt_cv_dlopen="dlopen"
14247 # if libdl is installed we need to link against it
14248 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14249 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14250 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14251 echo $ECHO_N "(cached) $ECHO_C" >&6
14253 ac_check_lib_save_LIBS=$LIBS
14255 cat >conftest.$ac_ext <<_ACEOF
14258 cat confdefs.h >>conftest.$ac_ext
14259 cat >>conftest.$ac_ext <<_ACEOF
14260 /* end confdefs.h. */
14262 /* Override any gcc2 internal prototype to avoid an error. */
14266 /* We use char because int might match the return type of a gcc2
14267 builtin and then its argument prototype would still apply. */
14277 rm -f conftest.$ac_objext conftest$ac_exeext
14278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14279 (eval $ac_link) 2>conftest.er1
14281 grep -v '^ *+' conftest.er1 >conftest.err
14283 cat conftest.err >&5
14284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14285 (exit $ac_status); } &&
14286 { ac_try='test -z "$ac_cxx_werror_flag"
14287 || test ! -s conftest.err'
14288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14289 (eval $ac_try) 2>&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); }; } &&
14293 { ac_try='test -s conftest$ac_exeext'
14294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295 (eval $ac_try) 2>&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; }; then
14299 ac_cv_lib_dl_dlopen=yes
14301 echo "$as_me: failed program was:" >&5
14302 sed 's/^/| /' conftest.$ac_ext >&5
14304 ac_cv_lib_dl_dlopen=no
14306 rm -f conftest.err conftest.$ac_objext \
14307 conftest$ac_exeext conftest.$ac_ext
14308 LIBS=$ac_check_lib_save_LIBS
14310 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14311 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14312 if test $ac_cv_lib_dl_dlopen = yes; then
14313 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14316 lt_cv_dlopen="dyld"
14318 lt_cv_dlopen_self=yes
14325 echo "$as_me:$LINENO: checking for shl_load" >&5
14326 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14327 if test "${ac_cv_func_shl_load+set}" = set; then
14328 echo $ECHO_N "(cached) $ECHO_C" >&6
14330 cat >conftest.$ac_ext <<_ACEOF
14333 cat confdefs.h >>conftest.$ac_ext
14334 cat >>conftest.$ac_ext <<_ACEOF
14335 /* end confdefs.h. */
14336 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14338 #define shl_load innocuous_shl_load
14340 /* System header to define __stub macros and hopefully few prototypes,
14341 which can conflict with char shl_load (); below.
14342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14343 <limits.h> exists even on freestanding compilers. */
14346 # include <limits.h>
14348 # include <assert.h>
14353 /* Override any gcc2 internal prototype to avoid an error. */
14358 /* We use char because int might match the return type of a gcc2
14359 builtin and then its argument prototype would still apply. */
14361 /* The GNU C library defines this for functions which it implements
14362 to always fail with ENOSYS. Some functions are actually named
14363 something starting with __ and the normal name is an alias. */
14364 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14367 char (*f) () = shl_load;
14376 return f != shl_load;
14381 rm -f conftest.$ac_objext conftest$ac_exeext
14382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14383 (eval $ac_link) 2>conftest.er1
14385 grep -v '^ *+' conftest.er1 >conftest.err
14387 cat conftest.err >&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); } &&
14390 { ac_try='test -z "$ac_cxx_werror_flag"
14391 || test ! -s conftest.err'
14392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14393 (eval $ac_try) 2>&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); }; } &&
14397 { ac_try='test -s conftest$ac_exeext'
14398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399 (eval $ac_try) 2>&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; }; then
14403 ac_cv_func_shl_load=yes
14405 echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.$ac_ext >&5
14408 ac_cv_func_shl_load=no
14410 rm -f conftest.err conftest.$ac_objext \
14411 conftest$ac_exeext conftest.$ac_ext
14413 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14414 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14415 if test $ac_cv_func_shl_load = yes; then
14416 lt_cv_dlopen="shl_load"
14418 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14419 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14420 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14423 ac_check_lib_save_LIBS=$LIBS
14425 cat >conftest.$ac_ext <<_ACEOF
14428 cat confdefs.h >>conftest.$ac_ext
14429 cat >>conftest.$ac_ext <<_ACEOF
14430 /* end confdefs.h. */
14432 /* Override any gcc2 internal prototype to avoid an error. */
14436 /* We use char because int might match the return type of a gcc2
14437 builtin and then its argument prototype would still apply. */
14447 rm -f conftest.$ac_objext conftest$ac_exeext
14448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14449 (eval $ac_link) 2>conftest.er1
14451 grep -v '^ *+' conftest.er1 >conftest.err
14453 cat conftest.err >&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); } &&
14456 { ac_try='test -z "$ac_cxx_werror_flag"
14457 || test ! -s conftest.err'
14458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14459 (eval $ac_try) 2>&5
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); }; } &&
14463 { ac_try='test -s conftest$ac_exeext'
14464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14465 (eval $ac_try) 2>&5
14467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14468 (exit $ac_status); }; }; then
14469 ac_cv_lib_dld_shl_load=yes
14471 echo "$as_me: failed program was:" >&5
14472 sed 's/^/| /' conftest.$ac_ext >&5
14474 ac_cv_lib_dld_shl_load=no
14476 rm -f conftest.err conftest.$ac_objext \
14477 conftest$ac_exeext conftest.$ac_ext
14478 LIBS=$ac_check_lib_save_LIBS
14480 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14481 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14482 if test $ac_cv_lib_dld_shl_load = yes; then
14483 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14485 echo "$as_me:$LINENO: checking for dlopen" >&5
14486 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14487 if test "${ac_cv_func_dlopen+set}" = set; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
14490 cat >conftest.$ac_ext <<_ACEOF
14493 cat confdefs.h >>conftest.$ac_ext
14494 cat >>conftest.$ac_ext <<_ACEOF
14495 /* end confdefs.h. */
14496 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14498 #define dlopen innocuous_dlopen
14500 /* System header to define __stub macros and hopefully few prototypes,
14501 which can conflict with char dlopen (); below.
14502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14503 <limits.h> exists even on freestanding compilers. */
14506 # include <limits.h>
14508 # include <assert.h>
14513 /* Override any gcc2 internal prototype to avoid an error. */
14518 /* We use char because int might match the return type of a gcc2
14519 builtin and then its argument prototype would still apply. */
14521 /* The GNU C library defines this for functions which it implements
14522 to always fail with ENOSYS. Some functions are actually named
14523 something starting with __ and the normal name is an alias. */
14524 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14527 char (*f) () = dlopen;
14536 return f != dlopen;
14541 rm -f conftest.$ac_objext conftest$ac_exeext
14542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14543 (eval $ac_link) 2>conftest.er1
14545 grep -v '^ *+' conftest.er1 >conftest.err
14547 cat conftest.err >&5
14548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14549 (exit $ac_status); } &&
14550 { ac_try='test -z "$ac_cxx_werror_flag"
14551 || test ! -s conftest.err'
14552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14553 (eval $ac_try) 2>&5
14555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556 (exit $ac_status); }; } &&
14557 { ac_try='test -s conftest$ac_exeext'
14558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14559 (eval $ac_try) 2>&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; }; then
14563 ac_cv_func_dlopen=yes
14565 echo "$as_me: failed program was:" >&5
14566 sed 's/^/| /' conftest.$ac_ext >&5
14568 ac_cv_func_dlopen=no
14570 rm -f conftest.err conftest.$ac_objext \
14571 conftest$ac_exeext conftest.$ac_ext
14573 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14574 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14575 if test $ac_cv_func_dlopen = yes; then
14576 lt_cv_dlopen="dlopen"
14578 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14579 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14580 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14581 echo $ECHO_N "(cached) $ECHO_C" >&6
14583 ac_check_lib_save_LIBS=$LIBS
14585 cat >conftest.$ac_ext <<_ACEOF
14588 cat confdefs.h >>conftest.$ac_ext
14589 cat >>conftest.$ac_ext <<_ACEOF
14590 /* end confdefs.h. */
14592 /* Override any gcc2 internal prototype to avoid an error. */
14596 /* We use char because int might match the return type of a gcc2
14597 builtin and then its argument prototype would still apply. */
14607 rm -f conftest.$ac_objext conftest$ac_exeext
14608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14609 (eval $ac_link) 2>conftest.er1
14611 grep -v '^ *+' conftest.er1 >conftest.err
14613 cat conftest.err >&5
14614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615 (exit $ac_status); } &&
14616 { ac_try='test -z "$ac_cxx_werror_flag"
14617 || test ! -s conftest.err'
14618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14619 (eval $ac_try) 2>&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); }; } &&
14623 { ac_try='test -s conftest$ac_exeext'
14624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14625 (eval $ac_try) 2>&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); }; }; then
14629 ac_cv_lib_dl_dlopen=yes
14631 echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14634 ac_cv_lib_dl_dlopen=no
14636 rm -f conftest.err conftest.$ac_objext \
14637 conftest$ac_exeext conftest.$ac_ext
14638 LIBS=$ac_check_lib_save_LIBS
14640 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14641 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14642 if test $ac_cv_lib_dl_dlopen = yes; then
14643 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14645 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14646 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14647 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14648 echo $ECHO_N "(cached) $ECHO_C" >&6
14650 ac_check_lib_save_LIBS=$LIBS
14651 LIBS="-lsvld $LIBS"
14652 cat >conftest.$ac_ext <<_ACEOF
14655 cat confdefs.h >>conftest.$ac_ext
14656 cat >>conftest.$ac_ext <<_ACEOF
14657 /* end confdefs.h. */
14659 /* Override any gcc2 internal prototype to avoid an error. */
14663 /* We use char because int might match the return type of a gcc2
14664 builtin and then its argument prototype would still apply. */
14674 rm -f conftest.$ac_objext conftest$ac_exeext
14675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14676 (eval $ac_link) 2>conftest.er1
14678 grep -v '^ *+' conftest.er1 >conftest.err
14680 cat conftest.err >&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); } &&
14683 { ac_try='test -z "$ac_cxx_werror_flag"
14684 || test ! -s conftest.err'
14685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14686 (eval $ac_try) 2>&5
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); }; } &&
14690 { ac_try='test -s conftest$ac_exeext'
14691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14692 (eval $ac_try) 2>&5
14694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695 (exit $ac_status); }; }; then
14696 ac_cv_lib_svld_dlopen=yes
14698 echo "$as_me: failed program was:" >&5
14699 sed 's/^/| /' conftest.$ac_ext >&5
14701 ac_cv_lib_svld_dlopen=no
14703 rm -f conftest.err conftest.$ac_objext \
14704 conftest$ac_exeext conftest.$ac_ext
14705 LIBS=$ac_check_lib_save_LIBS
14707 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14708 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14709 if test $ac_cv_lib_svld_dlopen = yes; then
14710 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14712 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14713 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14714 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14715 echo $ECHO_N "(cached) $ECHO_C" >&6
14717 ac_check_lib_save_LIBS=$LIBS
14719 cat >conftest.$ac_ext <<_ACEOF
14722 cat confdefs.h >>conftest.$ac_ext
14723 cat >>conftest.$ac_ext <<_ACEOF
14724 /* end confdefs.h. */
14726 /* Override any gcc2 internal prototype to avoid an error. */
14730 /* We use char because int might match the return type of a gcc2
14731 builtin and then its argument prototype would still apply. */
14741 rm -f conftest.$ac_objext conftest$ac_exeext
14742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14743 (eval $ac_link) 2>conftest.er1
14745 grep -v '^ *+' conftest.er1 >conftest.err
14747 cat conftest.err >&5
14748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14749 (exit $ac_status); } &&
14750 { ac_try='test -z "$ac_cxx_werror_flag"
14751 || test ! -s conftest.err'
14752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14753 (eval $ac_try) 2>&5
14755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14756 (exit $ac_status); }; } &&
14757 { ac_try='test -s conftest$ac_exeext'
14758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14759 (eval $ac_try) 2>&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); }; }; then
14763 ac_cv_lib_dld_dld_link=yes
14765 echo "$as_me: failed program was:" >&5
14766 sed 's/^/| /' conftest.$ac_ext >&5
14768 ac_cv_lib_dld_dld_link=no
14770 rm -f conftest.err conftest.$ac_objext \
14771 conftest$ac_exeext conftest.$ac_ext
14772 LIBS=$ac_check_lib_save_LIBS
14774 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14775 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14776 if test $ac_cv_lib_dld_dld_link = yes; then
14777 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14798 if test "x$lt_cv_dlopen" != xno; then
14804 case $lt_cv_dlopen in
14806 save_CPPFLAGS="$CPPFLAGS"
14807 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14809 save_LDFLAGS="$LDFLAGS"
14810 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14813 LIBS="$lt_cv_dlopen_libs $LIBS"
14815 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14816 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14817 if test "${lt_cv_dlopen_self+set}" = set; then
14818 echo $ECHO_N "(cached) $ECHO_C" >&6
14820 if test "$cross_compiling" = yes; then :
14821 lt_cv_dlopen_self=cross
14823 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14824 lt_status=$lt_dlunknown
14825 cat > conftest.$ac_ext <<EOF
14826 #line 14826 "configure"
14827 #include "confdefs.h"
14836 # define LT_DLGLOBAL RTLD_GLOBAL
14839 # define LT_DLGLOBAL DL_GLOBAL
14841 # define LT_DLGLOBAL 0
14845 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14846 find out it does not work in some platform. */
14847 #ifndef LT_DLLAZY_OR_NOW
14849 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14852 # define LT_DLLAZY_OR_NOW DL_LAZY
14855 # define LT_DLLAZY_OR_NOW RTLD_NOW
14858 # define LT_DLLAZY_OR_NOW DL_NOW
14860 # define LT_DLLAZY_OR_NOW 0
14868 extern "C" void exit (int);
14871 void fnord() { int i=42;}
14874 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14875 int status = $lt_dlunknown;
14879 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14880 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14881 /* dlclose (self); */
14887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14888 (eval $ac_link) 2>&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14892 (./conftest; exit; ) 2>/dev/null
14894 case x$lt_status in
14895 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14896 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14897 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14900 # compilation failed
14901 lt_cv_dlopen_self=no
14908 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14909 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14911 if test "x$lt_cv_dlopen_self" = xyes; then
14912 LDFLAGS="$LDFLAGS $link_static_flag"
14913 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14914 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14915 if test "${lt_cv_dlopen_self_static+set}" = set; then
14916 echo $ECHO_N "(cached) $ECHO_C" >&6
14918 if test "$cross_compiling" = yes; then :
14919 lt_cv_dlopen_self_static=cross
14921 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14922 lt_status=$lt_dlunknown
14923 cat > conftest.$ac_ext <<EOF
14924 #line 14924 "configure"
14925 #include "confdefs.h"
14934 # define LT_DLGLOBAL RTLD_GLOBAL
14937 # define LT_DLGLOBAL DL_GLOBAL
14939 # define LT_DLGLOBAL 0
14943 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14944 find out it does not work in some platform. */
14945 #ifndef LT_DLLAZY_OR_NOW
14947 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14950 # define LT_DLLAZY_OR_NOW DL_LAZY
14953 # define LT_DLLAZY_OR_NOW RTLD_NOW
14956 # define LT_DLLAZY_OR_NOW DL_NOW
14958 # define LT_DLLAZY_OR_NOW 0
14966 extern "C" void exit (int);
14969 void fnord() { int i=42;}
14972 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14973 int status = $lt_dlunknown;
14977 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14978 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14979 /* dlclose (self); */
14985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14986 (eval $ac_link) 2>&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14990 (./conftest; exit; ) 2>/dev/null
14992 case x$lt_status in
14993 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14994 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14995 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14998 # compilation failed
14999 lt_cv_dlopen_self_static=no
15006 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15007 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15010 CPPFLAGS="$save_CPPFLAGS"
15011 LDFLAGS="$save_LDFLAGS"
15016 case $lt_cv_dlopen_self in
15017 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15018 *) enable_dlopen_self=unknown ;;
15021 case $lt_cv_dlopen_self_static in
15022 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15023 *) enable_dlopen_self_static=unknown ;;
15028 # The else clause should only fire when bootstrapping the
15029 # libtool distribution, otherwise you forgot to ship ltmain.sh
15030 # with your package, and you will get complaints that there are
15031 # no rules to generate ltmain.sh.
15032 if test -f "$ltmain"; then
15033 # See if we are running on zsh, and set the options which allow our commands through
15034 # without removal of \ escapes.
15035 if test -n "${ZSH_VERSION+set}" ; then
15036 setopt NO_GLOB_SUBST
15038 # Now quote all the things that may contain metacharacters while being
15039 # careful not to overquote the AC_SUBSTed values. We take copies of the
15040 # variables and quote the copies for generation of the libtool script.
15041 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15043 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15044 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15045 deplibs_check_method reload_flag reload_cmds need_locks \
15046 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15047 lt_cv_sys_global_symbol_to_c_name_address \
15048 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15049 old_postinstall_cmds old_postuninstall_cmds \
15053 lt_prog_compiler_wl_CXX \
15054 lt_prog_compiler_pic_CXX \
15055 lt_prog_compiler_static_CXX \
15056 lt_prog_compiler_no_builtin_flag_CXX \
15057 export_dynamic_flag_spec_CXX \
15058 thread_safe_flag_spec_CXX \
15059 whole_archive_flag_spec_CXX \
15060 enable_shared_with_static_runtimes_CXX \
15061 old_archive_cmds_CXX \
15062 old_archive_from_new_cmds_CXX \
15063 predep_objects_CXX \
15064 postdep_objects_CXX \
15067 compiler_lib_search_path_CXX \
15069 archive_expsym_cmds_CXX \
15070 postinstall_cmds_CXX \
15071 postuninstall_cmds_CXX \
15072 old_archive_from_expsyms_cmds_CXX \
15073 allow_undefined_flag_CXX \
15074 no_undefined_flag_CXX \
15075 export_symbols_cmds_CXX \
15076 hardcode_libdir_flag_spec_CXX \
15077 hardcode_libdir_flag_spec_ld_CXX \
15078 hardcode_libdir_separator_CXX \
15079 hardcode_automatic_CXX \
15081 module_expsym_cmds_CXX \
15082 lt_cv_prog_compiler_c_o_CXX \
15083 exclude_expsyms_CXX \
15084 include_expsyms_CXX; do
15087 old_archive_cmds_CXX | \
15088 old_archive_from_new_cmds_CXX | \
15089 archive_cmds_CXX | \
15090 archive_expsym_cmds_CXX | \
15091 module_cmds_CXX | \
15092 module_expsym_cmds_CXX | \
15093 old_archive_from_expsyms_cmds_CXX | \
15094 export_symbols_cmds_CXX | \
15095 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15096 postinstall_cmds | postuninstall_cmds | \
15097 old_postinstall_cmds | old_postuninstall_cmds | \
15098 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15099 # Double-quote double-evaled strings.
15100 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15103 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15109 *'\$0 --fallback-echo"')
15110 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15116 cat <<__EOF__ >> "$cfgfile"
15117 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15119 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15121 # Shell to use when invoking shell scripts.
15124 # Whether or not to build shared libraries.
15125 build_libtool_libs=$enable_shared
15127 # Whether or not to build static libraries.
15128 build_old_libs=$enable_static
15130 # Whether or not to add -lc for building shared libraries.
15131 build_libtool_need_lc=$archive_cmds_need_lc_CXX
15133 # Whether or not to disallow shared libs when runtime libs are static
15134 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
15136 # Whether or not to optimize for fast installation.
15137 fast_install=$enable_fast_install
15140 host_alias=$host_alias
15144 # The build system.
15145 build_alias=$build_alias
15149 # An echo program that does not interpret backslashes.
15154 AR_FLAGS=$lt_AR_FLAGS
15159 # A language-specific compiler.
15160 CC=$lt_compiler_CXX
15162 # Is the compiler the GNU C compiler?
15168 # The linker used to build libraries.
15171 # Whether we need hard or soft links.
15174 # A BSD-compatible nm program.
15177 # A symbol stripping program
15180 # Used to examine libraries when file_magic_cmd begins "file"
15181 MAGIC_CMD=$MAGIC_CMD
15183 # Used on cygwin: DLL creation program.
15186 # Used on cygwin: object dumper.
15189 # Used on cygwin: assembler.
15192 # The name of the directory that contains temporary libtool files.
15195 # How to create reloadable object files.
15196 reload_flag=$lt_reload_flag
15197 reload_cmds=$lt_reload_cmds
15199 # How to pass a linker flag through the compiler.
15200 wl=$lt_lt_prog_compiler_wl_CXX
15202 # Object file suffix (normally "o").
15203 objext="$ac_objext"
15205 # Old archive suffix (normally "a").
15208 # Shared library suffix (normally ".so").
15209 shrext_cmds='$shrext_cmds'
15211 # Executable file suffix (normally "").
15214 # Additional compiler flags for building library objects.
15215 pic_flag=$lt_lt_prog_compiler_pic_CXX
15218 # What is the maximum length of a command?
15219 max_cmd_len=$lt_cv_sys_max_cmd_len
15221 # Does compiler simultaneously support -c and -o options?
15222 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
15224 # Must we lock files when doing compilation?
15225 need_locks=$lt_need_locks
15227 # Do we need the lib prefix for modules?
15228 need_lib_prefix=$need_lib_prefix
15230 # Do we need a version for libraries?
15231 need_version=$need_version
15233 # Whether dlopen is supported.
15234 dlopen_support=$enable_dlopen
15236 # Whether dlopen of programs is supported.
15237 dlopen_self=$enable_dlopen_self
15239 # Whether dlopen of statically linked programs is supported.
15240 dlopen_self_static=$enable_dlopen_self_static
15242 # Compiler flag to prevent dynamic linking.
15243 link_static_flag=$lt_lt_prog_compiler_static_CXX
15245 # Compiler flag to turn off builtin functions.
15246 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
15248 # Compiler flag to allow reflexive dlopens.
15249 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
15251 # Compiler flag to generate shared objects directly from archives.
15252 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
15254 # Compiler flag to generate thread-safe objects.
15255 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
15257 # Library versioning type.
15258 version_type=$version_type
15260 # Format of library name prefix.
15261 libname_spec=$lt_libname_spec
15263 # List of archive names. First name is the real one, the rest are links.
15264 # The last name is the one that the linker finds with -lNAME.
15265 library_names_spec=$lt_library_names_spec
15267 # The coded name of the library, if different from the real name.
15268 soname_spec=$lt_soname_spec
15270 # Commands used to build and install an old-style archive.
15272 old_archive_cmds=$lt_old_archive_cmds_CXX
15273 old_postinstall_cmds=$lt_old_postinstall_cmds
15274 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15276 # Create an old-style archive from a shared archive.
15277 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
15279 # Create a temporary old-style archive to link instead of a shared archive.
15280 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
15282 # Commands used to build and install a shared archive.
15283 archive_cmds=$lt_archive_cmds_CXX
15284 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
15285 postinstall_cmds=$lt_postinstall_cmds
15286 postuninstall_cmds=$lt_postuninstall_cmds
15288 # Commands used to build a loadable module (assumed same as above if empty)
15289 module_cmds=$lt_module_cmds_CXX
15290 module_expsym_cmds=$lt_module_expsym_cmds_CXX
15292 # Commands to strip libraries.
15293 old_striplib=$lt_old_striplib
15294 striplib=$lt_striplib
15296 # Dependencies to place before the objects being linked to create a
15298 predep_objects=$lt_predep_objects_CXX
15300 # Dependencies to place after the objects being linked to create a
15302 postdep_objects=$lt_postdep_objects_CXX
15304 # Dependencies to place before the objects being linked to create a
15306 predeps=$lt_predeps_CXX
15308 # Dependencies to place after the objects being linked to create a
15310 postdeps=$lt_postdeps_CXX
15312 # The library search path used internally by the compiler when linking
15313 # a shared library.
15314 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
15316 # Method to check whether dependent libraries are shared objects.
15317 deplibs_check_method=$lt_deplibs_check_method
15319 # Command to use when deplibs_check_method == file_magic.
15320 file_magic_cmd=$lt_file_magic_cmd
15322 # Flag that allows shared libraries with undefined symbols to be built.
15323 allow_undefined_flag=$lt_allow_undefined_flag_CXX
15325 # Flag that forces no undefined symbols.
15326 no_undefined_flag=$lt_no_undefined_flag_CXX
15328 # Commands used to finish a libtool library installation in a directory.
15329 finish_cmds=$lt_finish_cmds
15331 # Same as above, but a single script fragment to be evaled but not shown.
15332 finish_eval=$lt_finish_eval
15334 # Take the output of nm and produce a listing of raw symbols and C names.
15335 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15337 # Transform the output of nm in a proper C declaration
15338 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15340 # Transform the output of nm in a C name address pair
15341 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15343 # This is the shared library runtime path variable.
15344 runpath_var=$runpath_var
15346 # This is the shared library path variable.
15347 shlibpath_var=$shlibpath_var
15349 # Is shlibpath searched before the hard-coded library search path?
15350 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15352 # How to hardcode a shared library path into an executable.
15353 hardcode_action=$hardcode_action_CXX
15355 # Whether we should hardcode library paths into libraries.
15356 hardcode_into_libs=$hardcode_into_libs
15358 # Flag to hardcode \$libdir into a binary during linking.
15359 # This must work even if \$libdir does not exist.
15360 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15362 # If ld is used when linking, flag to hardcode \$libdir into
15363 # a binary during linking. This must work even if \$libdir does
15365 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15367 # Whether we need a single -rpath flag with a separated argument.
15368 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15370 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15371 # resulting binary.
15372 hardcode_direct=$hardcode_direct_CXX
15374 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15375 # resulting binary.
15376 hardcode_minus_L=$hardcode_minus_L_CXX
15378 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15379 # the resulting binary.
15380 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15382 # Set to yes if building a shared library automatically hardcodes DIR into the library
15383 # and all subsequent libraries and executables linked against it.
15384 hardcode_automatic=$hardcode_automatic_CXX
15386 # Variables whose values should be saved in libtool wrapper scripts and
15387 # restored at relink time.
15388 variables_saved_for_relink="$variables_saved_for_relink"
15390 # Whether libtool must link a program against all its dependency libraries.
15391 link_all_deplibs=$link_all_deplibs_CXX
15393 # Compile-time system search path for libraries
15394 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15396 # Run-time system search path for libraries
15397 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15399 # Fix the shell variable \$srcfile for the compiler.
15400 fix_srcfile_path="$fix_srcfile_path_CXX"
15402 # Set to yes if exported symbols are required.
15403 always_export_symbols=$always_export_symbols_CXX
15405 # The commands to list exported symbols.
15406 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15408 # The commands to extract the exported symbol list from a shared archive.
15409 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15411 # Symbols that should not be listed in the preloaded symbols.
15412 exclude_expsyms=$lt_exclude_expsyms_CXX
15414 # Symbols that must always be exported.
15415 include_expsyms=$lt_include_expsyms_CXX
15417 # ### END LIBTOOL TAG CONFIG: $tagname
15423 # If there is no Makefile yet, we rely on a make rule to execute
15424 # `config.status --recheck' to rerun these tests and create the
15425 # libtool script then.
15426 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15427 if test -f "$ltmain_in"; then
15428 test -f Makefile && make "$ltmain"
15434 ac_cpp='$CPP $CPPFLAGS'
15435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15443 with_gnu_ldcxx=$with_gnu_ld
15444 with_gnu_ld=$lt_save_with_gnu_ld
15445 lt_cv_path_LDCXX=$lt_cv_path_LD
15446 lt_cv_path_LD=$lt_save_path_LD
15447 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15448 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15456 if test -n "$F77" && test "X$F77" != "Xno"; then
15459 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15460 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15461 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15464 archive_cmds_need_lc_F77=no
15465 allow_undefined_flag_F77=
15466 always_export_symbols_F77=no
15467 archive_expsym_cmds_F77=
15468 export_dynamic_flag_spec_F77=
15469 hardcode_direct_F77=no
15470 hardcode_libdir_flag_spec_F77=
15471 hardcode_libdir_flag_spec_ld_F77=
15472 hardcode_libdir_separator_F77=
15473 hardcode_minus_L_F77=no
15474 hardcode_automatic_F77=no
15476 module_expsym_cmds_F77=
15477 link_all_deplibs_F77=unknown
15478 old_archive_cmds_F77=$old_archive_cmds
15479 no_undefined_flag_F77=
15480 whole_archive_flag_spec_F77=
15481 enable_shared_with_static_runtimes_F77=no
15483 # Source file extension for f77 test sources.
15486 # Object file extension for compiled f77 test sources.
15490 # Code to be used in simple compile tests
15491 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15493 # Code to be used in simple link tests
15494 lt_simple_link_test_code=" program t\n end\n"
15496 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15498 # If no C compiler was specified, use CC.
15501 # Allow CC to be a program name with arguments.
15505 # save warnings/boilerplate of simple test code
15506 ac_outfile=conftest.$ac_objext
15507 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15508 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15509 _lt_compiler_boilerplate=`cat conftest.err`
15512 ac_outfile=conftest.$ac_objext
15513 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15514 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
15515 _lt_linker_boilerplate=`cat conftest.err`
15519 # Allow CC to be a program name with arguments.
15524 for cc_temp in $compiler""; do
15526 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15527 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15532 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15535 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15536 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15537 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15538 echo "${ECHO_T}$can_build_shared" >&6
15540 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15541 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15542 test "$can_build_shared" = "no" && enable_shared=no
15544 # On AIX, shared libraries and static libraries use the same namespace, and
15545 # are all built from PIC.
15548 test "$enable_shared" = yes && enable_static=no
15549 if test -n "$RANLIB"; then
15550 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15551 postinstall_cmds='$RANLIB $lib'
15555 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15556 test "$enable_shared" = yes && enable_static=no
15560 echo "$as_me:$LINENO: result: $enable_shared" >&5
15561 echo "${ECHO_T}$enable_shared" >&6
15563 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15564 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15565 # Make sure either enable_shared or enable_static is yes.
15566 test "$enable_shared" = yes || enable_static=yes
15567 echo "$as_me:$LINENO: result: $enable_static" >&5
15568 echo "${ECHO_T}$enable_static" >&6
15570 test "$ld_shlibs_F77" = no && can_build_shared=no
15575 lt_prog_compiler_wl_F77=
15576 lt_prog_compiler_pic_F77=
15577 lt_prog_compiler_static_F77=
15579 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15580 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15582 if test "$GCC" = yes; then
15583 lt_prog_compiler_wl_F77='-Wl,'
15584 lt_prog_compiler_static_F77='-static'
15588 # All AIX code is PIC.
15589 if test "$host_cpu" = ia64; then
15590 # AIX 5 now supports IA64 processor
15591 lt_prog_compiler_static_F77='-Bstatic'
15596 # FIXME: we need at least 68020 code to build shared libraries, but
15597 # adding the `-m68020' flag to GCC prevents building anything better,
15599 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15602 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15603 # PIC is the default for these OSes.
15606 mingw* | pw32* | os2*)
15607 # This hack is so that the source file can tell whether it is being
15608 # built for inclusion in a dll (and should export symbols for example).
15609 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15612 darwin* | rhapsody*)
15613 # PIC is the default on this platform
15614 # Common symbols not allowed in MH_DYLIB files
15615 lt_prog_compiler_pic_F77='-fno-common'
15619 # Just because we use GCC doesn't mean we suddenly get shared libraries
15620 # on systems that don't support them.
15621 lt_prog_compiler_can_build_shared_F77=no
15626 if test -d /usr/nec; then
15627 lt_prog_compiler_pic_F77=-Kconform_pic
15632 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15633 # not for PA HP-UX.
15634 case "$host_cpu" in
15639 lt_prog_compiler_pic_F77='-fPIC'
15645 lt_prog_compiler_pic_F77='-fPIC'
15649 # PORTME Check for flag to pass linker flags through the system compiler.
15652 lt_prog_compiler_wl_F77='-Wl,'
15653 if test "$host_cpu" = ia64; then
15654 # AIX 5 now supports IA64 processor
15655 lt_prog_compiler_static_F77='-Bstatic'
15657 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15661 # PIC is the default on this platform
15662 # Common symbols not allowed in MH_DYLIB files
15663 case $cc_basename in
15665 lt_prog_compiler_pic_F77='-qnocommon'
15666 lt_prog_compiler_wl_F77='-Wl,'
15671 mingw* | pw32* | os2*)
15672 # This hack is so that the source file can tell whether it is being
15673 # built for inclusion in a dll (and should export symbols for example).
15674 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15677 hpux9* | hpux10* | hpux11*)
15678 lt_prog_compiler_wl_F77='-Wl,'
15679 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15680 # not for PA HP-UX.
15681 case "$host_cpu" in
15686 lt_prog_compiler_pic_F77='+Z'
15689 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15690 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15693 irix5* | irix6* | nonstopux*)
15694 lt_prog_compiler_wl_F77='-Wl,'
15695 # PIC (with -KPIC) is the default.
15696 lt_prog_compiler_static_F77='-non_shared'
15700 lt_prog_compiler_pic_F77='-KPIC'
15701 lt_prog_compiler_static_F77='-Bstatic'
15705 case $cc_basename in
15707 lt_prog_compiler_wl_F77='-Wl,'
15708 lt_prog_compiler_pic_F77='-KPIC'
15709 lt_prog_compiler_static_F77='-static'
15711 pgcc* | pgf77* | pgf90*)
15712 # Portland Group compilers (*not* the Pentium gcc compiler,
15713 # which looks to be a dead project)
15714 lt_prog_compiler_wl_F77='-Wl,'
15715 lt_prog_compiler_pic_F77='-fpic'
15716 lt_prog_compiler_static_F77='-static'
15719 lt_prog_compiler_wl_F77='-Wl,'
15720 # All Alpha code is PIC.
15721 lt_prog_compiler_static_F77='-non_shared'
15726 osf3* | osf4* | osf5*)
15727 lt_prog_compiler_wl_F77='-Wl,'
15728 # All OSF/1 code is PIC.
15729 lt_prog_compiler_static_F77='-non_shared'
15733 lt_prog_compiler_pic_F77='-Kpic'
15734 lt_prog_compiler_static_F77='-dn'
15738 lt_prog_compiler_pic_F77='-KPIC'
15739 lt_prog_compiler_static_F77='-Bstatic'
15740 case $cc_basename in
15741 f77* | f90* | f95*)
15742 lt_prog_compiler_wl_F77='-Qoption ld ';;
15744 lt_prog_compiler_wl_F77='-Wl,';;
15749 lt_prog_compiler_wl_F77='-Qoption ld '
15750 lt_prog_compiler_pic_F77='-PIC'
15751 lt_prog_compiler_static_F77='-Bstatic'
15754 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15755 lt_prog_compiler_wl_F77='-Wl,'
15756 lt_prog_compiler_pic_F77='-KPIC'
15757 lt_prog_compiler_static_F77='-Bstatic'
15761 if test -d /usr/nec ;then
15762 lt_prog_compiler_pic_F77='-Kconform_pic'
15763 lt_prog_compiler_static_F77='-Bstatic'
15768 lt_prog_compiler_wl_F77='-Wl,'
15769 lt_prog_compiler_can_build_shared_F77=no
15773 lt_prog_compiler_pic_F77='-pic'
15774 lt_prog_compiler_static_F77='-Bstatic'
15778 lt_prog_compiler_can_build_shared_F77=no
15783 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15784 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15787 # Check to make sure the PIC flag actually works.
15789 if test -n "$lt_prog_compiler_pic_F77"; then
15791 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15792 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15793 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15794 echo $ECHO_N "(cached) $ECHO_C" >&6
15796 lt_prog_compiler_pic_works_F77=no
15797 ac_outfile=conftest.$ac_objext
15798 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15799 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15800 # Insert the option either (1) after the last *FLAGS variable, or
15801 # (2) before a word containing "conftest.", or (3) at the end.
15802 # Note that $ac_compile itself does not contain backslashes and begins
15803 # with a dollar sign (not a hyphen), so the echo should work correctly.
15804 # The option is referenced via a variable to avoid confusing sed.
15805 lt_compile=`echo "$ac_compile" | $SED \
15806 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15808 -e 's:$: $lt_compiler_flag:'`
15809 (eval echo "\"\$as_me:15809: $lt_compile\"" >&5)
15810 (eval "$lt_compile" 2>conftest.err)
15812 cat conftest.err >&5
15813 echo "$as_me:15813: \$? = $ac_status" >&5
15814 if (exit $ac_status) && test -s "$ac_outfile"; then
15815 # The compiler can only warn and ignore the option if not recognized
15816 # So say no if there are warnings other than the usual output.
15817 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
15818 $SED '/^$/d' conftest.err >conftest.er2
15819 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
15820 lt_prog_compiler_pic_works_F77=yes
15826 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15827 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15829 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15830 case $lt_prog_compiler_pic_F77 in
15832 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15835 lt_prog_compiler_pic_F77=
15836 lt_prog_compiler_can_build_shared_F77=no
15841 # For platforms which do not support PIC, -DPIC is meaningless:
15843 lt_prog_compiler_pic_F77=
15846 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15850 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15851 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15852 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15853 echo $ECHO_N "(cached) $ECHO_C" >&6
15855 lt_cv_prog_compiler_c_o_F77=no
15856 $rm -r conftest 2>/dev/null
15860 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15862 lt_compiler_flag="-o out/conftest2.$ac_objext"
15863 # Insert the option either (1) after the last *FLAGS variable, or
15864 # (2) before a word containing "conftest.", or (3) at the end.
15865 # Note that $ac_compile itself does not contain backslashes and begins
15866 # with a dollar sign (not a hyphen), so the echo should work correctly.
15867 lt_compile=`echo "$ac_compile" | $SED \
15868 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15869 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15870 -e 's:$: $lt_compiler_flag:'`
15871 (eval echo "\"\$as_me:15871: $lt_compile\"" >&5)
15872 (eval "$lt_compile" 2>out/conftest.err)
15874 cat out/conftest.err >&5
15875 echo "$as_me:15875: \$? = $ac_status" >&5
15876 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15878 # The compiler can only warn and ignore the option if not recognized
15879 # So say no if there are warnings
15880 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
15881 $SED '/^$/d' out/conftest.err >out/conftest.er2
15882 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15883 lt_cv_prog_compiler_c_o_F77=yes
15888 # SGI C++ compiler will create directory out/ii_files/ for
15889 # template instantiation
15890 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15891 $rm out/* && rmdir out
15897 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15898 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15901 hard_links="nottested"
15902 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15903 # do not overwrite the value of need_locks provided by the user
15904 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15905 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15908 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15910 ln conftest.a conftest.b 2>&5 || hard_links=no
15911 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15912 echo "$as_me:$LINENO: result: $hard_links" >&5
15913 echo "${ECHO_T}$hard_links" >&6
15914 if test "$hard_links" = no; then
15915 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15916 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15923 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15924 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15927 allow_undefined_flag_F77=
15928 enable_shared_with_static_runtimes_F77=no
15930 archive_expsym_cmds_F77=
15931 old_archive_From_new_cmds_F77=
15932 old_archive_from_expsyms_cmds_F77=
15933 export_dynamic_flag_spec_F77=
15934 whole_archive_flag_spec_F77=
15935 thread_safe_flag_spec_F77=
15936 hardcode_libdir_flag_spec_F77=
15937 hardcode_libdir_flag_spec_ld_F77=
15938 hardcode_libdir_separator_F77=
15939 hardcode_direct_F77=no
15940 hardcode_minus_L_F77=no
15941 hardcode_shlibpath_var_F77=unsupported
15942 link_all_deplibs_F77=unknown
15943 hardcode_automatic_F77=no
15945 module_expsym_cmds_F77=
15946 always_export_symbols_F77=no
15947 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15948 # include_expsyms should be a list of space-separated symbols to be *always*
15949 # included in the symbol list
15950 include_expsyms_F77=
15951 # exclude_expsyms can be an extended regexp of symbols to exclude
15952 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15953 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15954 # as well as any symbol that contains `d'.
15955 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15956 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15957 # platforms (ab)use it in PIC code, but their linkers get confused if
15958 # the symbol is explicitly referenced. Since portable code cannot
15959 # rely on this symbol name, it's probably fine to never include it in
15960 # preloaded symbol tables.
15961 extract_expsyms_cmds=
15962 # Just being paranoid about ensuring that cc_basename is set.
15963 for cc_temp in $compiler""; do
15965 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15966 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15971 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15974 cygwin* | mingw* | pw32*)
15975 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15976 # When not using gcc, we currently assume that we are using
15977 # Microsoft Visual C++.
15978 if test "$GCC" != yes; then
15988 if test "$with_gnu_ld" = yes; then
15989 # If archive_cmds runs LD, not CC, wlarc should be empty
15992 # Set some defaults for GNU ld with shared library support. These
15993 # are reset later if shared libraries are not supported. Putting them
15994 # here allows them to be overridden if necessary.
15995 runpath_var=LD_RUN_PATH
15996 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15997 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15998 # ancient GNU ld didn't support --whole-archive et. al.
15999 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16000 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16002 whole_archive_flag_spec_F77=
16004 supports_anon_versioning=no
16005 case `$LD -v 2>/dev/null` in
16006 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16007 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16008 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16009 *\ 2.11.*) ;; # other 2.11 versions
16010 *) supports_anon_versioning=yes ;;
16013 # See if GNU ld supports shared libraries.
16015 aix3* | aix4* | aix5*)
16016 # On AIX/PPC, the GNU linker is very broken
16017 if test "$host_cpu" != ia64; then
16021 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16022 *** to be unable to reliably create shared libraries on AIX.
16023 *** Therefore, libtool is disabling shared libraries support. If you
16024 *** really care for shared libraries, you may want to modify your PATH
16025 *** so that a non-GNU linker is found, and then restart.
16032 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)'
16033 hardcode_libdir_flag_spec_F77='-L$libdir'
16034 hardcode_minus_L_F77=yes
16036 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16037 # that the semantics of dynamic libraries on AmigaOS, at least up
16038 # to version 4, is to share data among multiple programs linked
16039 # with the same dynamic library. Since this doesn't match the
16040 # behavior of shared libraries on other platforms, we can't use
16046 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16047 allow_undefined_flag_F77=unsupported
16048 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16049 # support --undefined. This deserves some investigation. FIXME
16050 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16056 cygwin* | mingw* | pw32*)
16057 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
16058 # as there is no search path for DLLs.
16059 hardcode_libdir_flag_spec_F77='-L$libdir'
16060 allow_undefined_flag_F77=unsupported
16061 always_export_symbols_F77=no
16062 enable_shared_with_static_runtimes_F77=yes
16063 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16065 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16066 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16067 # If the export-symbols file already is a .def file (1st line
16068 # is EXPORTS), use it as is; otherwise, prepend...
16069 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16070 cp $export_symbols $output_objdir/$soname.def;
16072 echo EXPORTS > $output_objdir/$soname.def;
16073 cat $export_symbols >> $output_objdir/$soname.def;
16075 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16082 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16084 case $cc_basename,$host_cpu in
16085 pgcc*) # Portland Group C compiler
16086 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'
16087 tmp_addflag=' $pic_flag'
16089 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
16090 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'
16091 tmp_addflag=' $pic_flag -Mnomain' ;;
16092 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16093 tmp_addflag=' -i_dynamic' ;;
16094 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16095 tmp_addflag=' -i_dynamic -nofor_main' ;;
16096 ifc* | ifort*) # Intel Fortran compiler
16097 tmp_addflag=' -nofor_main' ;;
16099 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16101 if test $supports_anon_versioning = yes; then
16102 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
16103 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16104 $echo "local: *; };" >> $output_objdir/$libname.ver~
16105 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16113 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16114 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16117 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16118 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16123 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16127 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16128 *** create shared libraries on Solaris systems. Therefore, libtool
16129 *** is disabling shared libraries support. We urge you to upgrade GNU
16130 *** binutils to release 2.9.1 or newer. Another option is to modify
16131 *** your PATH or compiler configuration so that the native linker is
16132 *** used, and then restart.
16135 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16136 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16137 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16144 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16146 hardcode_direct_F77=yes
16147 hardcode_shlibpath_var_F77=no
16151 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16152 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16153 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16160 if test "$ld_shlibs_F77" = no; then
16162 hardcode_libdir_flag_spec_F77=
16163 export_dynamic_flag_spec_F77=
16164 whole_archive_flag_spec_F77=
16167 # PORTME fill in a description of your system's linker (not GNU ld)
16170 allow_undefined_flag_F77=unsupported
16171 always_export_symbols_F77=yes
16172 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'
16173 # Note: this linker hardcodes the directories in LIBPATH if there
16174 # are no directories specified by -L.
16175 hardcode_minus_L_F77=yes
16176 if test "$GCC" = yes && test -z "$link_static_flag"; then
16177 # Neither direct hardcoding nor static linking is supported with a
16179 hardcode_direct_F77=unsupported
16184 if test "$host_cpu" = ia64; then
16185 # On IA64, the linker does run time linking by default, so we don't
16186 # have to do anything special.
16187 aix_use_runtimelinking=no
16188 exp_sym_flag='-Bexport'
16191 # If we're using GNU nm, then we don't want the "-C" option.
16192 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16193 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16194 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'
16196 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'
16198 aix_use_runtimelinking=no
16200 # Test if we are trying to use run time linking or normal
16201 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16202 # need to do runtime linking.
16203 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16204 for ld_flag in $LDFLAGS; do
16205 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16206 aix_use_runtimelinking=yes
16212 exp_sym_flag='-bexport'
16213 no_entry_flag='-bnoentry'
16216 # When large executables or shared objects are built, AIX ld can
16217 # have problems creating the table of contents. If linking a library
16218 # or program results in "error TOC overflow" add -mminimal-toc to
16219 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16220 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16222 archive_cmds_F77=''
16223 hardcode_direct_F77=yes
16224 hardcode_libdir_separator_F77=':'
16225 link_all_deplibs_F77=yes
16227 if test "$GCC" = yes; then
16228 case $host_os in aix4.[012]|aix4.[012].*)
16229 # We only want to do this on AIX 4.2 and lower, the check
16230 # below for broken collect2 doesn't work under 4.3+
16231 collect2name=`${CC} -print-prog-name=collect2`
16232 if test -f "$collect2name" && \
16233 strings "$collect2name" | grep resolve_lib_name >/dev/null
16235 # We have reworked collect2
16236 hardcode_direct_F77=yes
16238 # We have old collect2
16239 hardcode_direct_F77=unsupported
16240 # It fails to find uninstalled libraries when the uninstalled
16241 # path is not listed in the libpath. Setting hardcode_minus_L
16242 # to unsupported forces relinking
16243 hardcode_minus_L_F77=yes
16244 hardcode_libdir_flag_spec_F77='-L$libdir'
16245 hardcode_libdir_separator_F77=
16248 shared_flag='-shared'
16249 if test "$aix_use_runtimelinking" = yes; then
16250 shared_flag="$shared_flag "'${wl}-G'
16254 if test "$host_cpu" = ia64; then
16255 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16256 # chokes on -Wl,-G. The following line is correct:
16259 if test "$aix_use_runtimelinking" = yes; then
16260 shared_flag='${wl}-G'
16262 shared_flag='${wl}-bM:SRE'
16267 # It seems that -bexpall does not export symbols beginning with
16268 # underscore (_), so it is better to generate a list of symbols to export.
16269 always_export_symbols_F77=yes
16270 if test "$aix_use_runtimelinking" = yes; then
16271 # Warning - without using the other runtime loading flags (-brtl),
16272 # -berok will link without error, but may produce a broken library.
16273 allow_undefined_flag_F77='-berok'
16274 # Determine the default libpath from the value encoded in an empty executable.
16275 cat >conftest.$ac_ext <<_ACEOF
16280 rm -f conftest.$ac_objext conftest$ac_exeext
16281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16282 (eval $ac_link) 2>conftest.er1
16284 grep -v '^ *+' conftest.er1 >conftest.err
16286 cat conftest.err >&5
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); } &&
16289 { ac_try='test -z "$ac_f77_werror_flag"
16290 || test ! -s conftest.err'
16291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16292 (eval $ac_try) 2>&5
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); }; } &&
16296 { ac_try='test -s conftest$ac_exeext'
16297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16298 (eval $ac_try) 2>&5
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); }; }; then
16303 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16305 # Check for a 64-bit object if we didn't find anything.
16306 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; }
16309 echo "$as_me: failed program was:" >&5
16310 sed 's/^/| /' conftest.$ac_ext >&5
16313 rm -f conftest.err conftest.$ac_objext \
16314 conftest$ac_exeext conftest.$ac_ext
16315 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16317 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16318 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"
16320 if test "$host_cpu" = ia64; then
16321 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
16322 allow_undefined_flag_F77="-z nodefs"
16323 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"
16325 # Determine the default libpath from the value encoded in an empty executable.
16326 cat >conftest.$ac_ext <<_ACEOF
16331 rm -f conftest.$ac_objext conftest$ac_exeext
16332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16333 (eval $ac_link) 2>conftest.er1
16335 grep -v '^ *+' conftest.er1 >conftest.err
16337 cat conftest.err >&5
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); } &&
16340 { ac_try='test -z "$ac_f77_werror_flag"
16341 || test ! -s conftest.err'
16342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16343 (eval $ac_try) 2>&5
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); }; } &&
16347 { ac_try='test -s conftest$ac_exeext'
16348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16349 (eval $ac_try) 2>&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); }; }; then
16354 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16356 # Check for a 64-bit object if we didn't find anything.
16357 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; }
16360 echo "$as_me: failed program was:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16364 rm -f conftest.err conftest.$ac_objext \
16365 conftest$ac_exeext conftest.$ac_ext
16366 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16368 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
16369 # Warning - without using the other run time loading flags,
16370 # -berok will link without error, but may produce a broken library.
16371 no_undefined_flag_F77=' ${wl}-bernotok'
16372 allow_undefined_flag_F77=' ${wl}-berok'
16373 # -bexpall does not export symbols beginning with underscore (_)
16374 always_export_symbols_F77=yes
16375 # Exported symbols can be pulled into shared objects from archives
16376 whole_archive_flag_spec_F77=' '
16377 archive_cmds_need_lc_F77=yes
16378 # This is similar to how AIX traditionally builds it's shared libraries.
16379 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'
16385 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)'
16386 hardcode_libdir_flag_spec_F77='-L$libdir'
16387 hardcode_minus_L_F77=yes
16388 # see comment about different semantics on the GNU ld section
16393 export_dynamic_flag_spec_F77=-rdynamic
16396 cygwin* | mingw* | pw32*)
16397 # When not using gcc, we currently assume that we are using
16398 # Microsoft Visual C++.
16399 # hardcode_libdir_flag_spec is actually meaningless, as there is
16400 # no search path for DLLs.
16401 hardcode_libdir_flag_spec_F77=' '
16402 allow_undefined_flag_F77=unsupported
16403 # Tell ltmain to make .lib files, not .a files.
16405 # Tell ltmain to make .dll files, not .so files.
16407 # FIXME: Setting linknames here is a bad hack.
16408 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16409 # The linker will automatically build a .lib file if we build a DLL.
16410 old_archive_From_new_cmds_F77='true'
16411 # FIXME: Should let the user specify the lib program.
16412 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
16413 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
16414 enable_shared_with_static_runtimes_F77=yes
16417 darwin* | rhapsody*)
16419 rhapsody* | darwin1.[012])
16420 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
16423 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16424 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16426 case ${MACOSX_DEPLOYMENT_TARGET} in
16428 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16431 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
16437 archive_cmds_need_lc_F77=no
16438 hardcode_direct_F77=no
16439 hardcode_automatic_F77=yes
16440 hardcode_shlibpath_var_F77=unsupported
16441 whole_archive_flag_spec_F77=''
16442 link_all_deplibs_F77=yes
16443 if test "$GCC" = yes ; then
16444 output_verbose_link_cmd='echo'
16445 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16446 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16447 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16448 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}'
16449 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}'
16451 case $cc_basename in
16453 output_verbose_link_cmd='echo'
16454 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16455 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16456 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16457 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}'
16458 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}'
16468 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16469 hardcode_libdir_flag_spec_F77='-L$libdir'
16470 hardcode_shlibpath_var_F77=no
16477 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16478 # support. Future versions do this automatically, but an explicit c++rt0.o
16479 # does not break anything, and helps significantly (at the cost of a little
16482 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16483 hardcode_libdir_flag_spec_F77='-R$libdir'
16484 hardcode_direct_F77=yes
16485 hardcode_shlibpath_var_F77=no
16488 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16490 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16491 hardcode_direct_F77=yes
16492 hardcode_minus_L_F77=yes
16493 hardcode_shlibpath_var_F77=no
16496 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16497 freebsd* | kfreebsd*-gnu | dragonfly*)
16498 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16499 hardcode_libdir_flag_spec_F77='-R$libdir'
16500 hardcode_direct_F77=yes
16501 hardcode_shlibpath_var_F77=no
16505 if test "$GCC" = yes; then
16506 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'
16508 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'
16510 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16511 hardcode_libdir_separator_F77=:
16512 hardcode_direct_F77=yes
16514 # hardcode_minus_L: Not really in the search PATH,
16515 # but as the default location of the library.
16516 hardcode_minus_L_F77=yes
16517 export_dynamic_flag_spec_F77='${wl}-E'
16521 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16522 case "$host_cpu" in
16524 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16527 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16531 case "$host_cpu" in
16533 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16536 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16540 if test "$with_gnu_ld" = no; then
16541 case "$host_cpu" in
16543 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16544 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16545 hardcode_libdir_separator_F77=:
16546 hardcode_direct_F77=no
16547 hardcode_shlibpath_var_F77=no
16550 hardcode_libdir_flag_spec_F77='-L$libdir'
16551 hardcode_direct_F77=no
16552 hardcode_shlibpath_var_F77=no
16554 # hardcode_minus_L: Not really in the search PATH,
16555 # but as the default location of the library.
16556 hardcode_minus_L_F77=yes
16559 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16560 hardcode_libdir_separator_F77=:
16561 hardcode_direct_F77=yes
16562 export_dynamic_flag_spec_F77='${wl}-E'
16564 # hardcode_minus_L: Not really in the search PATH,
16565 # but as the default location of the library.
16566 hardcode_minus_L_F77=yes
16572 irix5* | irix6* | nonstopux*)
16573 if test "$GCC" = yes; then
16574 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'
16576 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'
16577 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16579 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16580 hardcode_libdir_separator_F77=:
16581 link_all_deplibs_F77=yes
16585 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16586 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16588 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16590 hardcode_libdir_flag_spec_F77='-R$libdir'
16591 hardcode_direct_F77=yes
16592 hardcode_shlibpath_var_F77=no
16596 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16597 hardcode_direct_F77=yes
16598 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16599 hardcode_libdir_separator_F77=:
16600 hardcode_shlibpath_var_F77=no
16604 hardcode_direct_F77=yes
16605 hardcode_shlibpath_var_F77=no
16606 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16607 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16608 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16609 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16610 export_dynamic_flag_spec_F77='${wl}-E'
16613 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16614 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16615 hardcode_libdir_flag_spec_F77='-R$libdir'
16618 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16619 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16626 hardcode_libdir_flag_spec_F77='-L$libdir'
16627 hardcode_minus_L_F77=yes
16628 allow_undefined_flag_F77=unsupported
16629 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'
16630 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16634 if test "$GCC" = yes; then
16635 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16636 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'
16638 allow_undefined_flag_F77=' -expect_unresolved \*'
16639 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'
16641 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16642 hardcode_libdir_separator_F77=:
16645 osf4* | osf5*) # as osf3* with the addition of -msym flag
16646 if test "$GCC" = yes; then
16647 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16648 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'
16649 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16651 allow_undefined_flag_F77=' -expect_unresolved \*'
16652 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'
16653 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~
16654 $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'
16656 # Both c and cxx compiler support -rpath directly
16657 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16659 hardcode_libdir_separator_F77=:
16663 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16664 hardcode_shlibpath_var_F77=no
16665 export_dynamic_flag_spec_F77='${wl}-Bexport'
16666 runpath_var=LD_RUN_PATH
16667 hardcode_runpath_var=yes
16671 no_undefined_flag_F77=' -z text'
16672 if test "$GCC" = yes; then
16674 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16675 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16676 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16679 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16680 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16681 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16683 hardcode_libdir_flag_spec_F77='-R$libdir'
16684 hardcode_shlibpath_var_F77=no
16686 solaris2.[0-5] | solaris2.[0-5].*) ;;
16688 # The compiler driver will combine linker options so we
16689 # cannot just pass the convience library names through
16690 # without $wl, iff we do not link with $LD.
16691 # Luckily, gcc supports the same syntax we need for Sun Studio.
16692 # Supported since Solaris 2.6 (maybe 2.5.1?)
16695 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16697 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' ;;
16700 link_all_deplibs_F77=yes
16704 if test "x$host_vendor" = xsequent; then
16705 # Use $CC to link under sequent, because it throws in some extra .o
16706 # files that make .init and .fini sections work.
16707 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16709 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16711 hardcode_libdir_flag_spec_F77='-L$libdir'
16712 hardcode_direct_F77=yes
16713 hardcode_minus_L_F77=yes
16714 hardcode_shlibpath_var_F77=no
16718 case $host_vendor in
16720 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16721 hardcode_direct_F77=yes # is this really true???
16724 ## LD is ld it makes a PLAMLIB
16725 ## CC just makes a GrossModule.
16726 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16727 reload_cmds_F77='$CC -r -o $output$reload_objs'
16728 hardcode_direct_F77=no
16731 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16732 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16735 runpath_var='LD_RUN_PATH'
16736 hardcode_shlibpath_var_F77=no
16740 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16741 hardcode_shlibpath_var_F77=no
16742 export_dynamic_flag_spec_F77='-Bexport'
16746 if test -d /usr/nec; then
16747 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16748 hardcode_shlibpath_var_F77=no
16749 runpath_var=LD_RUN_PATH
16750 hardcode_runpath_var=yes
16756 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16757 hardcode_direct_F77=yes
16758 hardcode_minus_L_F77=no
16759 hardcode_shlibpath_var_F77=no
16760 hardcode_runpath_var=yes
16761 runpath_var=LD_RUN_PATH
16764 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16765 no_undefined_flag_F77='${wl}-z ${wl}text'
16766 if test "$GCC" = yes; then
16767 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16769 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16771 runpath_var='LD_RUN_PATH'
16772 hardcode_shlibpath_var_F77=no
16776 no_undefined_flag_F77=' -z text'
16777 # $CC -shared without GNU ld will not create a library from C++
16778 # object files and a static libstdc++, better avoid it by now
16779 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16780 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16781 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16782 hardcode_libdir_flag_spec_F77=
16783 hardcode_shlibpath_var_F77=no
16784 runpath_var='LD_RUN_PATH'
16788 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16789 hardcode_libdir_flag_spec_F77='-L$libdir'
16790 hardcode_shlibpath_var_F77=no
16799 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16800 echo "${ECHO_T}$ld_shlibs_F77" >&6
16801 test "$ld_shlibs_F77" = no && can_build_shared=no
16803 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16804 if test "$GCC" = yes; then
16805 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16809 # Do we need to explicitly link libc?
16811 case "x$archive_cmds_need_lc_F77" in
16813 # Assume -lc should be added
16814 archive_cmds_need_lc_F77=yes
16816 if test "$enable_shared" = yes && test "$GCC" = yes; then
16817 case $archive_cmds_F77 in
16819 # FIXME: we may have to deal with multi-command sequences.
16822 # Test whether the compiler implicitly links with -lc since on some
16823 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16824 # to ld, don't add -lc before -lgcc.
16825 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16826 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16828 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16831 (eval $ac_compile) 2>&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); } 2>conftest.err; then
16837 libobjs=conftest.$ac_objext
16839 wl=$lt_prog_compiler_wl_F77
16845 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16846 allow_undefined_flag_F77=
16847 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16848 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); }
16853 archive_cmds_need_lc_F77=no
16855 archive_cmds_need_lc_F77=yes
16857 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16859 cat conftest.err 1>&5
16862 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16863 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16870 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16871 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16872 library_names_spec=
16873 libname_spec='lib$name'
16877 postuninstall_cmds=
16881 shlibpath_overrides_runpath=unknown
16883 dynamic_linker="$host_os ld.so"
16884 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16885 if test "$GCC" = yes; then
16886 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16887 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16888 # if the path contains ";" then we assume it to be the separator
16889 # otherwise default to the standard path separator (i.e. ":") - it is
16890 # assumed that no part of a normal pathname contains ";" but that should
16891 # okay in the real world where ";" in dirpaths is itself problematic.
16892 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16894 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16897 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16899 need_lib_prefix=unknown
16900 hardcode_into_libs=no
16902 # when you set need_version to no, make sure it does not cause -set_version
16903 # flags to be left without arguments
16904 need_version=unknown
16909 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16910 shlibpath_var=LIBPATH
16912 # AIX 3 has no versioning support, so we append a major version to the name.
16913 soname_spec='${libname}${release}${shared_ext}$major'
16920 hardcode_into_libs=yes
16921 if test "$host_cpu" = ia64; then
16922 # AIX 5 supports IA64
16923 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16924 shlibpath_var=LD_LIBRARY_PATH
16926 # With GCC up to 2.95.x, collect2 would create an import file
16927 # for dependence libraries. The import file would start with
16928 # the line `#! .'. This would cause the generated library to
16929 # depend on `.', always an invalid library. This was fixed in
16930 # development snapshots of GCC prior to 3.0.
16932 aix4 | aix4.[01] | aix4.[01].*)
16933 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16935 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16938 can_build_shared=no
16942 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16943 # soname into executable. Probably we can add versioning support to
16944 # collect2, so additional links can be useful in future.
16945 if test "$aix_use_runtimelinking" = yes; then
16946 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16947 # instead of lib<name>.a to let people know that these are not
16948 # typical AIX shared libraries.
16949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16951 # We preserve .a as extension for shared libraries through AIX4.2
16952 # and later when we are not doing run time linking.
16953 library_names_spec='${libname}${release}.a $libname.a'
16954 soname_spec='${libname}${release}${shared_ext}$major'
16956 shlibpath_var=LIBPATH
16961 library_names_spec='$libname.ixlibrary $libname.a'
16962 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16963 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'
16967 library_names_spec='${libname}${shared_ext}'
16968 dynamic_linker="$host_os ld.so"
16969 shlibpath_var=LIBRARY_PATH
16975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16976 soname_spec='${libname}${release}${shared_ext}$major'
16977 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16978 shlibpath_var=LD_LIBRARY_PATH
16979 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16980 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16981 # the default ld.so.conf also contains /usr/contrib/lib and
16982 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16983 # libtool to hard-code these into programs
16986 cygwin* | mingw* | pw32*)
16987 version_type=windows
16992 case $GCC,$host_os in
16993 yes,cygwin* | yes,mingw* | yes,pw32*)
16994 library_names_spec='$libname.dll.a'
16995 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16996 postinstall_cmds='base_file=`basename \${file}`~
16997 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16998 dldir=$destdir/`dirname \$dlpath`~
16999 test -d \$dldir || mkdir -p \$dldir~
17000 $install_prog $dir/$dlname \$dldir/$dlname'
17001 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17002 dlpath=$dir/\$dldll~
17004 shlibpath_overrides_runpath=yes
17008 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17009 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17010 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17013 # MinGW DLLs use traditional 'lib' prefix
17014 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17015 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17016 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17017 # It is most probably a Windows format PATH printed by
17018 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17019 # path with ; separators, and with drive letters. We can handle the
17020 # drive letters (cygwin fileutils understands them), so leave them,
17021 # especially as we might pass files found there to a mingw objdump,
17022 # which wouldn't understand a cygwinified path. Ahh.
17023 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17025 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17029 # pw32 DLLs use 'pw' prefix rather than 'lib'
17030 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17036 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17039 dynamic_linker='Win32 ld.exe'
17040 # FIXME: first we should search . and the directory the executable is in
17044 darwin* | rhapsody*)
17045 dynamic_linker="$host_os dyld"
17046 version_type=darwin
17049 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17050 soname_spec='${libname}${release}${major}$shared_ext'
17051 shlibpath_overrides_runpath=yes
17052 shlibpath_var=DYLD_LIBRARY_PATH
17053 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17054 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17055 if test "$GCC" = yes; then
17056 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"`
17058 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17060 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17068 soname_spec='${libname}${release}${shared_ext}$major'
17069 shlibpath_var=LD_LIBRARY_PATH
17080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17081 soname_spec='${libname}${release}${shared_ext}$major'
17082 shlibpath_var=LD_LIBRARY_PATH
17083 shlibpath_overrides_runpath=no
17084 hardcode_into_libs=yes
17085 dynamic_linker='GNU ld.so'
17088 freebsd* | dragonfly*)
17089 # DragonFly does not have aout. When/if they implement a new
17090 # versioning mechanism, adjust this.
17091 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17092 version_type=freebsd-$objformat
17093 case $version_type in
17095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17100 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17104 shlibpath_var=LD_LIBRARY_PATH
17107 shlibpath_overrides_runpath=yes
17109 freebsd3.[01]* | freebsdelf3.[01]*)
17110 shlibpath_overrides_runpath=yes
17111 hardcode_into_libs=yes
17114 shlibpath_overrides_runpath=no
17115 hardcode_into_libs=yes
17124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17125 soname_spec='${libname}${release}${shared_ext}$major'
17126 shlibpath_var=LD_LIBRARY_PATH
17127 hardcode_into_libs=yes
17130 hpux9* | hpux10* | hpux11*)
17131 # Give a soname corresponding to the major version so that dld.sl refuses to
17132 # link against other versions.
17136 case "$host_cpu" in
17139 hardcode_into_libs=yes
17140 dynamic_linker="$host_os dld.so"
17141 shlibpath_var=LD_LIBRARY_PATH
17142 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17144 soname_spec='${libname}${release}${shared_ext}$major'
17145 if test "X$HPUX_IA64_MODE" = X32; then
17146 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17148 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17150 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17154 hardcode_into_libs=yes
17155 dynamic_linker="$host_os dld.sl"
17156 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17157 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17159 soname_spec='${libname}${release}${shared_ext}$major'
17160 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17161 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17165 dynamic_linker="$host_os dld.sl"
17166 shlibpath_var=SHLIB_PATH
17167 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17169 soname_spec='${libname}${release}${shared_ext}$major'
17172 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17173 postinstall_cmds='chmod 555 $lib'
17176 irix5* | irix6* | nonstopux*)
17178 nonstopux*) version_type=nonstopux ;;
17180 if test "$lt_cv_prog_gnu_ld" = yes; then
17188 soname_spec='${libname}${release}${shared_ext}$major'
17189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17191 irix5* | nonstopux*)
17192 libsuff= shlibsuff=
17195 case $LD in # libtool.m4 will add one of these switches to LD
17196 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17197 libsuff= shlibsuff= libmagic=32-bit;;
17198 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17199 libsuff=32 shlibsuff=N32 libmagic=N32;;
17200 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17201 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17202 *) libsuff= shlibsuff= libmagic=never-match;;
17206 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17207 shlibpath_overrides_runpath=no
17208 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17209 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17210 hardcode_into_libs=yes
17213 # No shared lib support for Linux oldld, aout, or coff.
17214 linux*oldld* | linux*aout* | linux*coff*)
17218 # This must be Linux ELF.
17223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17224 soname_spec='${libname}${release}${shared_ext}$major'
17225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17226 shlibpath_var=LD_LIBRARY_PATH
17227 shlibpath_overrides_runpath=no
17228 # This implies no fast_install, which is unacceptable.
17229 # Some rework will be needed to allow for fast_install
17230 # before this can be enabled.
17231 hardcode_into_libs=yes
17233 # Append ld.so.conf contents to the search path
17234 if test -f /etc/ld.so.conf; then
17235 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' ' '`
17236 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17239 # We used to test for /lib/ld.so.1 and disable shared libraries on
17240 # powerpc, because MkLinux only supported shared libraries with the
17241 # GNU dynamic linker. Since this was broken with cross compilers,
17242 # most powerpc-linux boxes support dynamic linking these days and
17243 # people can always --disable-shared, the test was removed, and we
17244 # assume the GNU/Linux dynamic linker is in use.
17245 dynamic_linker='GNU/Linux ld.so'
17252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17253 soname_spec='${libname}${release}${shared_ext}$major'
17254 shlibpath_var=LD_LIBRARY_PATH
17255 shlibpath_overrides_runpath=no
17256 hardcode_into_libs=yes
17257 dynamic_linker='GNU ld.so'
17264 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17266 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17267 dynamic_linker='NetBSD (a.out) ld.so'
17269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17270 soname_spec='${libname}${release}${shared_ext}$major'
17271 dynamic_linker='NetBSD ld.elf_so'
17273 shlibpath_var=LD_LIBRARY_PATH
17274 shlibpath_overrides_runpath=yes
17275 hardcode_into_libs=yes
17280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17281 shlibpath_var=LD_LIBRARY_PATH
17282 shlibpath_overrides_runpath=yes
17289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17290 soname_spec='${libname}${release}${shared_ext}$major'
17291 shlibpath_var=LD_LIBRARY_PATH
17292 shlibpath_overrides_runpath=yes
17298 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17300 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17301 *) need_version=no ;;
17303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17304 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17305 shlibpath_var=LD_LIBRARY_PATH
17306 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17308 openbsd2.[89] | openbsd2.[89].*)
17309 shlibpath_overrides_runpath=no
17312 shlibpath_overrides_runpath=yes
17316 shlibpath_overrides_runpath=yes
17321 libname_spec='$name'
17324 library_names_spec='$libname${shared_ext} $libname.a'
17325 dynamic_linker='OS/2 ld.exe'
17326 shlibpath_var=LIBPATH
17329 osf3* | osf4* | osf5*)
17333 soname_spec='${libname}${release}${shared_ext}$major'
17334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17335 shlibpath_var=LD_LIBRARY_PATH
17336 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17337 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17342 soname_spec='${libname}${release}${shared_ext}$major'
17343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17344 shlibpath_var=LD_LIBRARY_PATH
17351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17352 soname_spec='${libname}${release}${shared_ext}$major'
17353 shlibpath_var=LD_LIBRARY_PATH
17354 shlibpath_overrides_runpath=yes
17355 hardcode_into_libs=yes
17356 # ldd complains unless libraries are executable
17357 postinstall_cmds='chmod +x $lib'
17362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17363 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17364 shlibpath_var=LD_LIBRARY_PATH
17365 shlibpath_overrides_runpath=yes
17366 if test "$with_gnu_ld" = yes; then
17372 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17375 soname_spec='${libname}${release}${shared_ext}$major'
17376 shlibpath_var=LD_LIBRARY_PATH
17377 case $host_vendor in
17379 shlibpath_overrides_runpath=no
17381 export_dynamic_flag_spec='${wl}-Blargedynsym'
17382 runpath_var=LD_RUN_PATH
17390 shlibpath_overrides_runpath=no
17391 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17397 if test -d /usr/nec ;then
17399 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17400 soname_spec='$libname${shared_ext}.$major'
17401 shlibpath_var=LD_LIBRARY_PATH
17407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17408 soname_spec='${libname}${release}${shared_ext}$major'
17409 shlibpath_var=LD_LIBRARY_PATH
17416 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17417 echo "${ECHO_T}$dynamic_linker" >&6
17418 test "$dynamic_linker" = no && can_build_shared=no
17420 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17421 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17422 hardcode_action_F77=
17423 if test -n "$hardcode_libdir_flag_spec_F77" || \
17424 test -n "$runpath_var_F77" || \
17425 test "X$hardcode_automatic_F77" = "Xyes" ; then
17427 # We can hardcode non-existant directories.
17428 if test "$hardcode_direct_F77" != no &&
17429 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17430 # have to relink, otherwise we might link with an installed library
17431 # when we should be linking with a yet-to-be-installed one
17432 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
17433 test "$hardcode_minus_L_F77" != no; then
17434 # Linking always hardcodes the temporary library directory.
17435 hardcode_action_F77=relink
17437 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17438 hardcode_action_F77=immediate
17441 # We cannot hardcode anything, or else we can only hardcode existing
17443 hardcode_action_F77=unsupported
17445 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
17446 echo "${ECHO_T}$hardcode_action_F77" >&6
17448 if test "$hardcode_action_F77" = relink; then
17449 # Fast installation is not supported
17450 enable_fast_install=no
17451 elif test "$shlibpath_overrides_runpath" = yes ||
17452 test "$enable_shared" = no; then
17453 # Fast installation is not necessary
17454 enable_fast_install=needless
17459 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17460 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17461 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17462 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17463 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17464 echo "$as_me:$LINENO: result: yes" >&5
17465 echo "${ECHO_T}yes" >&6
17467 # FIXME - insert some real tests, host_os isn't really good enough
17470 if test -n "$STRIP" ; then
17471 striplib="$STRIP -x"
17472 echo "$as_me:$LINENO: result: yes" >&5
17473 echo "${ECHO_T}yes" >&6
17475 echo "$as_me:$LINENO: result: no" >&5
17476 echo "${ECHO_T}no" >&6
17480 echo "$as_me:$LINENO: result: no" >&5
17481 echo "${ECHO_T}no" >&6
17488 # The else clause should only fire when bootstrapping the
17489 # libtool distribution, otherwise you forgot to ship ltmain.sh
17490 # with your package, and you will get complaints that there are
17491 # no rules to generate ltmain.sh.
17492 if test -f "$ltmain"; then
17493 # See if we are running on zsh, and set the options which allow our commands through
17494 # without removal of \ escapes.
17495 if test -n "${ZSH_VERSION+set}" ; then
17496 setopt NO_GLOB_SUBST
17498 # Now quote all the things that may contain metacharacters while being
17499 # careful not to overquote the AC_SUBSTed values. We take copies of the
17500 # variables and quote the copies for generation of the libtool script.
17501 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17503 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17504 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17505 deplibs_check_method reload_flag reload_cmds need_locks \
17506 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17507 lt_cv_sys_global_symbol_to_c_name_address \
17508 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17509 old_postinstall_cmds old_postuninstall_cmds \
17513 lt_prog_compiler_wl_F77 \
17514 lt_prog_compiler_pic_F77 \
17515 lt_prog_compiler_static_F77 \
17516 lt_prog_compiler_no_builtin_flag_F77 \
17517 export_dynamic_flag_spec_F77 \
17518 thread_safe_flag_spec_F77 \
17519 whole_archive_flag_spec_F77 \
17520 enable_shared_with_static_runtimes_F77 \
17521 old_archive_cmds_F77 \
17522 old_archive_from_new_cmds_F77 \
17523 predep_objects_F77 \
17524 postdep_objects_F77 \
17527 compiler_lib_search_path_F77 \
17529 archive_expsym_cmds_F77 \
17530 postinstall_cmds_F77 \
17531 postuninstall_cmds_F77 \
17532 old_archive_from_expsyms_cmds_F77 \
17533 allow_undefined_flag_F77 \
17534 no_undefined_flag_F77 \
17535 export_symbols_cmds_F77 \
17536 hardcode_libdir_flag_spec_F77 \
17537 hardcode_libdir_flag_spec_ld_F77 \
17538 hardcode_libdir_separator_F77 \
17539 hardcode_automatic_F77 \
17541 module_expsym_cmds_F77 \
17542 lt_cv_prog_compiler_c_o_F77 \
17543 exclude_expsyms_F77 \
17544 include_expsyms_F77; do
17547 old_archive_cmds_F77 | \
17548 old_archive_from_new_cmds_F77 | \
17549 archive_cmds_F77 | \
17550 archive_expsym_cmds_F77 | \
17551 module_cmds_F77 | \
17552 module_expsym_cmds_F77 | \
17553 old_archive_from_expsyms_cmds_F77 | \
17554 export_symbols_cmds_F77 | \
17555 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17556 postinstall_cmds | postuninstall_cmds | \
17557 old_postinstall_cmds | old_postuninstall_cmds | \
17558 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17559 # Double-quote double-evaled strings.
17560 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17563 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17569 *'\$0 --fallback-echo"')
17570 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17576 cat <<__EOF__ >> "$cfgfile"
17577 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17579 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17581 # Shell to use when invoking shell scripts.
17584 # Whether or not to build shared libraries.
17585 build_libtool_libs=$enable_shared
17587 # Whether or not to build static libraries.
17588 build_old_libs=$enable_static
17590 # Whether or not to add -lc for building shared libraries.
17591 build_libtool_need_lc=$archive_cmds_need_lc_F77
17593 # Whether or not to disallow shared libs when runtime libs are static
17594 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17596 # Whether or not to optimize for fast installation.
17597 fast_install=$enable_fast_install
17600 host_alias=$host_alias
17604 # The build system.
17605 build_alias=$build_alias
17609 # An echo program that does not interpret backslashes.
17614 AR_FLAGS=$lt_AR_FLAGS
17619 # A language-specific compiler.
17620 CC=$lt_compiler_F77
17622 # Is the compiler the GNU C compiler?
17628 # The linker used to build libraries.
17631 # Whether we need hard or soft links.
17634 # A BSD-compatible nm program.
17637 # A symbol stripping program
17640 # Used to examine libraries when file_magic_cmd begins "file"
17641 MAGIC_CMD=$MAGIC_CMD
17643 # Used on cygwin: DLL creation program.
17646 # Used on cygwin: object dumper.
17649 # Used on cygwin: assembler.
17652 # The name of the directory that contains temporary libtool files.
17655 # How to create reloadable object files.
17656 reload_flag=$lt_reload_flag
17657 reload_cmds=$lt_reload_cmds
17659 # How to pass a linker flag through the compiler.
17660 wl=$lt_lt_prog_compiler_wl_F77
17662 # Object file suffix (normally "o").
17663 objext="$ac_objext"
17665 # Old archive suffix (normally "a").
17668 # Shared library suffix (normally ".so").
17669 shrext_cmds='$shrext_cmds'
17671 # Executable file suffix (normally "").
17674 # Additional compiler flags for building library objects.
17675 pic_flag=$lt_lt_prog_compiler_pic_F77
17678 # What is the maximum length of a command?
17679 max_cmd_len=$lt_cv_sys_max_cmd_len
17681 # Does compiler simultaneously support -c and -o options?
17682 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17684 # Must we lock files when doing compilation?
17685 need_locks=$lt_need_locks
17687 # Do we need the lib prefix for modules?
17688 need_lib_prefix=$need_lib_prefix
17690 # Do we need a version for libraries?
17691 need_version=$need_version
17693 # Whether dlopen is supported.
17694 dlopen_support=$enable_dlopen
17696 # Whether dlopen of programs is supported.
17697 dlopen_self=$enable_dlopen_self
17699 # Whether dlopen of statically linked programs is supported.
17700 dlopen_self_static=$enable_dlopen_self_static
17702 # Compiler flag to prevent dynamic linking.
17703 link_static_flag=$lt_lt_prog_compiler_static_F77
17705 # Compiler flag to turn off builtin functions.
17706 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17708 # Compiler flag to allow reflexive dlopens.
17709 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17711 # Compiler flag to generate shared objects directly from archives.
17712 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17714 # Compiler flag to generate thread-safe objects.
17715 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17717 # Library versioning type.
17718 version_type=$version_type
17720 # Format of library name prefix.
17721 libname_spec=$lt_libname_spec
17723 # List of archive names. First name is the real one, the rest are links.
17724 # The last name is the one that the linker finds with -lNAME.
17725 library_names_spec=$lt_library_names_spec
17727 # The coded name of the library, if different from the real name.
17728 soname_spec=$lt_soname_spec
17730 # Commands used to build and install an old-style archive.
17732 old_archive_cmds=$lt_old_archive_cmds_F77
17733 old_postinstall_cmds=$lt_old_postinstall_cmds
17734 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17736 # Create an old-style archive from a shared archive.
17737 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17739 # Create a temporary old-style archive to link instead of a shared archive.
17740 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17742 # Commands used to build and install a shared archive.
17743 archive_cmds=$lt_archive_cmds_F77
17744 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17745 postinstall_cmds=$lt_postinstall_cmds
17746 postuninstall_cmds=$lt_postuninstall_cmds
17748 # Commands used to build a loadable module (assumed same as above if empty)
17749 module_cmds=$lt_module_cmds_F77
17750 module_expsym_cmds=$lt_module_expsym_cmds_F77
17752 # Commands to strip libraries.
17753 old_striplib=$lt_old_striplib
17754 striplib=$lt_striplib
17756 # Dependencies to place before the objects being linked to create a
17758 predep_objects=$lt_predep_objects_F77
17760 # Dependencies to place after the objects being linked to create a
17762 postdep_objects=$lt_postdep_objects_F77
17764 # Dependencies to place before the objects being linked to create a
17766 predeps=$lt_predeps_F77
17768 # Dependencies to place after the objects being linked to create a
17770 postdeps=$lt_postdeps_F77
17772 # The library search path used internally by the compiler when linking
17773 # a shared library.
17774 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17776 # Method to check whether dependent libraries are shared objects.
17777 deplibs_check_method=$lt_deplibs_check_method
17779 # Command to use when deplibs_check_method == file_magic.
17780 file_magic_cmd=$lt_file_magic_cmd
17782 # Flag that allows shared libraries with undefined symbols to be built.
17783 allow_undefined_flag=$lt_allow_undefined_flag_F77
17785 # Flag that forces no undefined symbols.
17786 no_undefined_flag=$lt_no_undefined_flag_F77
17788 # Commands used to finish a libtool library installation in a directory.
17789 finish_cmds=$lt_finish_cmds
17791 # Same as above, but a single script fragment to be evaled but not shown.
17792 finish_eval=$lt_finish_eval
17794 # Take the output of nm and produce a listing of raw symbols and C names.
17795 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17797 # Transform the output of nm in a proper C declaration
17798 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17800 # Transform the output of nm in a C name address pair
17801 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17803 # This is the shared library runtime path variable.
17804 runpath_var=$runpath_var
17806 # This is the shared library path variable.
17807 shlibpath_var=$shlibpath_var
17809 # Is shlibpath searched before the hard-coded library search path?
17810 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17812 # How to hardcode a shared library path into an executable.
17813 hardcode_action=$hardcode_action_F77
17815 # Whether we should hardcode library paths into libraries.
17816 hardcode_into_libs=$hardcode_into_libs
17818 # Flag to hardcode \$libdir into a binary during linking.
17819 # This must work even if \$libdir does not exist.
17820 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17822 # If ld is used when linking, flag to hardcode \$libdir into
17823 # a binary during linking. This must work even if \$libdir does
17825 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17827 # Whether we need a single -rpath flag with a separated argument.
17828 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17830 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17831 # resulting binary.
17832 hardcode_direct=$hardcode_direct_F77
17834 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17835 # resulting binary.
17836 hardcode_minus_L=$hardcode_minus_L_F77
17838 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17839 # the resulting binary.
17840 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17842 # Set to yes if building a shared library automatically hardcodes DIR into the library
17843 # and all subsequent libraries and executables linked against it.
17844 hardcode_automatic=$hardcode_automatic_F77
17846 # Variables whose values should be saved in libtool wrapper scripts and
17847 # restored at relink time.
17848 variables_saved_for_relink="$variables_saved_for_relink"
17850 # Whether libtool must link a program against all its dependency libraries.
17851 link_all_deplibs=$link_all_deplibs_F77
17853 # Compile-time system search path for libraries
17854 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17856 # Run-time system search path for libraries
17857 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17859 # Fix the shell variable \$srcfile for the compiler.
17860 fix_srcfile_path="$fix_srcfile_path_F77"
17862 # Set to yes if exported symbols are required.
17863 always_export_symbols=$always_export_symbols_F77
17865 # The commands to list exported symbols.
17866 export_symbols_cmds=$lt_export_symbols_cmds_F77
17868 # The commands to extract the exported symbol list from a shared archive.
17869 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17871 # Symbols that should not be listed in the preloaded symbols.
17872 exclude_expsyms=$lt_exclude_expsyms_F77
17874 # Symbols that must always be exported.
17875 include_expsyms=$lt_include_expsyms_F77
17877 # ### END LIBTOOL TAG CONFIG: $tagname
17883 # If there is no Makefile yet, we rely on a make rule to execute
17884 # `config.status --recheck' to rerun these tests and create the
17885 # libtool script then.
17886 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17887 if test -f "$ltmain_in"; then
17888 test -f Makefile && make "$ltmain"
17894 ac_cpp='$CPP $CPPFLAGS'
17895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17907 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17911 # Source file extension for Java test sources.
17914 # Object file extension for compiled Java test sources.
17918 # Code to be used in simple compile tests
17919 lt_simple_compile_test_code="class foo {}\n"
17921 # Code to be used in simple link tests
17922 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17924 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17926 # If no C compiler was specified, use CC.
17929 # Allow CC to be a program name with arguments.
17933 # save warnings/boilerplate of simple test code
17934 ac_outfile=conftest.$ac_objext
17935 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17936 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17937 _lt_compiler_boilerplate=`cat conftest.err`
17940 ac_outfile=conftest.$ac_objext
17941 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17942 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
17943 _lt_linker_boilerplate=`cat conftest.err`
17947 # Allow CC to be a program name with arguments.
17952 for cc_temp in $compiler""; do
17954 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17955 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17960 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17963 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17964 archive_cmds_need_lc_GCJ=no
17966 old_archive_cmds_GCJ=$old_archive_cmds
17969 lt_prog_compiler_no_builtin_flag_GCJ=
17971 if test "$GCC" = yes; then
17972 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17975 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17976 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17977 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17978 echo $ECHO_N "(cached) $ECHO_C" >&6
17980 lt_cv_prog_compiler_rtti_exceptions=no
17981 ac_outfile=conftest.$ac_objext
17982 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17983 lt_compiler_flag="-fno-rtti -fno-exceptions"
17984 # Insert the option either (1) after the last *FLAGS variable, or
17985 # (2) before a word containing "conftest.", or (3) at the end.
17986 # Note that $ac_compile itself does not contain backslashes and begins
17987 # with a dollar sign (not a hyphen), so the echo should work correctly.
17988 # The option is referenced via a variable to avoid confusing sed.
17989 lt_compile=`echo "$ac_compile" | $SED \
17990 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17992 -e 's:$: $lt_compiler_flag:'`
17993 (eval echo "\"\$as_me:17993: $lt_compile\"" >&5)
17994 (eval "$lt_compile" 2>conftest.err)
17996 cat conftest.err >&5
17997 echo "$as_me:17997: \$? = $ac_status" >&5
17998 if (exit $ac_status) && test -s "$ac_outfile"; then
17999 # The compiler can only warn and ignore the option if not recognized
18000 # So say no if there are warnings other than the usual output.
18001 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18002 $SED '/^$/d' conftest.err >conftest.er2
18003 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18004 lt_cv_prog_compiler_rtti_exceptions=yes
18010 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
18011 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
18013 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
18014 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
18021 lt_prog_compiler_wl_GCJ=
18022 lt_prog_compiler_pic_GCJ=
18023 lt_prog_compiler_static_GCJ=
18025 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18026 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18028 if test "$GCC" = yes; then
18029 lt_prog_compiler_wl_GCJ='-Wl,'
18030 lt_prog_compiler_static_GCJ='-static'
18034 # All AIX code is PIC.
18035 if test "$host_cpu" = ia64; then
18036 # AIX 5 now supports IA64 processor
18037 lt_prog_compiler_static_GCJ='-Bstatic'
18042 # FIXME: we need at least 68020 code to build shared libraries, but
18043 # adding the `-m68020' flag to GCC prevents building anything better,
18045 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
18048 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18049 # PIC is the default for these OSes.
18052 mingw* | pw32* | os2*)
18053 # This hack is so that the source file can tell whether it is being
18054 # built for inclusion in a dll (and should export symbols for example).
18055 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18058 darwin* | rhapsody*)
18059 # PIC is the default on this platform
18060 # Common symbols not allowed in MH_DYLIB files
18061 lt_prog_compiler_pic_GCJ='-fno-common'
18065 # Just because we use GCC doesn't mean we suddenly get shared libraries
18066 # on systems that don't support them.
18067 lt_prog_compiler_can_build_shared_GCJ=no
18072 if test -d /usr/nec; then
18073 lt_prog_compiler_pic_GCJ=-Kconform_pic
18078 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18079 # not for PA HP-UX.
18080 case "$host_cpu" in
18085 lt_prog_compiler_pic_GCJ='-fPIC'
18091 lt_prog_compiler_pic_GCJ='-fPIC'
18095 # PORTME Check for flag to pass linker flags through the system compiler.
18098 lt_prog_compiler_wl_GCJ='-Wl,'
18099 if test "$host_cpu" = ia64; then
18100 # AIX 5 now supports IA64 processor
18101 lt_prog_compiler_static_GCJ='-Bstatic'
18103 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
18107 # PIC is the default on this platform
18108 # Common symbols not allowed in MH_DYLIB files
18109 case $cc_basename in
18111 lt_prog_compiler_pic_GCJ='-qnocommon'
18112 lt_prog_compiler_wl_GCJ='-Wl,'
18117 mingw* | pw32* | os2*)
18118 # This hack is so that the source file can tell whether it is being
18119 # built for inclusion in a dll (and should export symbols for example).
18120 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
18123 hpux9* | hpux10* | hpux11*)
18124 lt_prog_compiler_wl_GCJ='-Wl,'
18125 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18126 # not for PA HP-UX.
18127 case "$host_cpu" in
18132 lt_prog_compiler_pic_GCJ='+Z'
18135 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18136 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
18139 irix5* | irix6* | nonstopux*)
18140 lt_prog_compiler_wl_GCJ='-Wl,'
18141 # PIC (with -KPIC) is the default.
18142 lt_prog_compiler_static_GCJ='-non_shared'
18146 lt_prog_compiler_pic_GCJ='-KPIC'
18147 lt_prog_compiler_static_GCJ='-Bstatic'
18151 case $cc_basename in
18153 lt_prog_compiler_wl_GCJ='-Wl,'
18154 lt_prog_compiler_pic_GCJ='-KPIC'
18155 lt_prog_compiler_static_GCJ='-static'
18157 pgcc* | pgf77* | pgf90*)
18158 # Portland Group compilers (*not* the Pentium gcc compiler,
18159 # which looks to be a dead project)
18160 lt_prog_compiler_wl_GCJ='-Wl,'
18161 lt_prog_compiler_pic_GCJ='-fpic'
18162 lt_prog_compiler_static_GCJ='-static'
18165 lt_prog_compiler_wl_GCJ='-Wl,'
18166 # All Alpha code is PIC.
18167 lt_prog_compiler_static_GCJ='-non_shared'
18172 osf3* | osf4* | osf5*)
18173 lt_prog_compiler_wl_GCJ='-Wl,'
18174 # All OSF/1 code is PIC.
18175 lt_prog_compiler_static_GCJ='-non_shared'
18179 lt_prog_compiler_pic_GCJ='-Kpic'
18180 lt_prog_compiler_static_GCJ='-dn'
18184 lt_prog_compiler_pic_GCJ='-KPIC'
18185 lt_prog_compiler_static_GCJ='-Bstatic'
18186 case $cc_basename in
18187 f77* | f90* | f95*)
18188 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
18190 lt_prog_compiler_wl_GCJ='-Wl,';;
18195 lt_prog_compiler_wl_GCJ='-Qoption ld '
18196 lt_prog_compiler_pic_GCJ='-PIC'
18197 lt_prog_compiler_static_GCJ='-Bstatic'
18200 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18201 lt_prog_compiler_wl_GCJ='-Wl,'
18202 lt_prog_compiler_pic_GCJ='-KPIC'
18203 lt_prog_compiler_static_GCJ='-Bstatic'
18207 if test -d /usr/nec ;then
18208 lt_prog_compiler_pic_GCJ='-Kconform_pic'
18209 lt_prog_compiler_static_GCJ='-Bstatic'
18214 lt_prog_compiler_wl_GCJ='-Wl,'
18215 lt_prog_compiler_can_build_shared_GCJ=no
18219 lt_prog_compiler_pic_GCJ='-pic'
18220 lt_prog_compiler_static_GCJ='-Bstatic'
18224 lt_prog_compiler_can_build_shared_GCJ=no
18229 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
18230 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
18233 # Check to make sure the PIC flag actually works.
18235 if test -n "$lt_prog_compiler_pic_GCJ"; then
18237 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
18238 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
18239 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
18240 echo $ECHO_N "(cached) $ECHO_C" >&6
18242 lt_prog_compiler_pic_works_GCJ=no
18243 ac_outfile=conftest.$ac_objext
18244 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18245 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
18246 # Insert the option either (1) after the last *FLAGS variable, or
18247 # (2) before a word containing "conftest.", or (3) at the end.
18248 # Note that $ac_compile itself does not contain backslashes and begins
18249 # with a dollar sign (not a hyphen), so the echo should work correctly.
18250 # The option is referenced via a variable to avoid confusing sed.
18251 lt_compile=`echo "$ac_compile" | $SED \
18252 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18254 -e 's:$: $lt_compiler_flag:'`
18255 (eval echo "\"\$as_me:18255: $lt_compile\"" >&5)
18256 (eval "$lt_compile" 2>conftest.err)
18258 cat conftest.err >&5
18259 echo "$as_me:18259: \$? = $ac_status" >&5
18260 if (exit $ac_status) && test -s "$ac_outfile"; then
18261 # The compiler can only warn and ignore the option if not recognized
18262 # So say no if there are warnings other than the usual output.
18263 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
18264 $SED '/^$/d' conftest.err >conftest.er2
18265 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
18266 lt_prog_compiler_pic_works_GCJ=yes
18272 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
18273 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
18275 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
18276 case $lt_prog_compiler_pic_GCJ in
18278 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
18281 lt_prog_compiler_pic_GCJ=
18282 lt_prog_compiler_can_build_shared_GCJ=no
18287 # For platforms which do not support PIC, -DPIC is meaningless:
18289 lt_prog_compiler_pic_GCJ=
18292 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
18296 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18297 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18298 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
18299 echo $ECHO_N "(cached) $ECHO_C" >&6
18301 lt_cv_prog_compiler_c_o_GCJ=no
18302 $rm -r conftest 2>/dev/null
18306 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18308 lt_compiler_flag="-o out/conftest2.$ac_objext"
18309 # Insert the option either (1) after the last *FLAGS variable, or
18310 # (2) before a word containing "conftest.", or (3) at the end.
18311 # Note that $ac_compile itself does not contain backslashes and begins
18312 # with a dollar sign (not a hyphen), so the echo should work correctly.
18313 lt_compile=`echo "$ac_compile" | $SED \
18314 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18315 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18316 -e 's:$: $lt_compiler_flag:'`
18317 (eval echo "\"\$as_me:18317: $lt_compile\"" >&5)
18318 (eval "$lt_compile" 2>out/conftest.err)
18320 cat out/conftest.err >&5
18321 echo "$as_me:18321: \$? = $ac_status" >&5
18322 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18324 # The compiler can only warn and ignore the option if not recognized
18325 # So say no if there are warnings
18326 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
18327 $SED '/^$/d' out/conftest.err >out/conftest.er2
18328 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18329 lt_cv_prog_compiler_c_o_GCJ=yes
18334 # SGI C++ compiler will create directory out/ii_files/ for
18335 # template instantiation
18336 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18337 $rm out/* && rmdir out
18343 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
18344 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
18347 hard_links="nottested"
18348 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
18349 # do not overwrite the value of need_locks provided by the user
18350 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18351 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18354 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18356 ln conftest.a conftest.b 2>&5 || hard_links=no
18357 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18358 echo "$as_me:$LINENO: result: $hard_links" >&5
18359 echo "${ECHO_T}$hard_links" >&6
18360 if test "$hard_links" = no; then
18361 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18362 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18369 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18370 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18373 allow_undefined_flag_GCJ=
18374 enable_shared_with_static_runtimes_GCJ=no
18376 archive_expsym_cmds_GCJ=
18377 old_archive_From_new_cmds_GCJ=
18378 old_archive_from_expsyms_cmds_GCJ=
18379 export_dynamic_flag_spec_GCJ=
18380 whole_archive_flag_spec_GCJ=
18381 thread_safe_flag_spec_GCJ=
18382 hardcode_libdir_flag_spec_GCJ=
18383 hardcode_libdir_flag_spec_ld_GCJ=
18384 hardcode_libdir_separator_GCJ=
18385 hardcode_direct_GCJ=no
18386 hardcode_minus_L_GCJ=no
18387 hardcode_shlibpath_var_GCJ=unsupported
18388 link_all_deplibs_GCJ=unknown
18389 hardcode_automatic_GCJ=no
18391 module_expsym_cmds_GCJ=
18392 always_export_symbols_GCJ=no
18393 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18394 # include_expsyms should be a list of space-separated symbols to be *always*
18395 # included in the symbol list
18396 include_expsyms_GCJ=
18397 # exclude_expsyms can be an extended regexp of symbols to exclude
18398 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18399 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18400 # as well as any symbol that contains `d'.
18401 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
18402 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18403 # platforms (ab)use it in PIC code, but their linkers get confused if
18404 # the symbol is explicitly referenced. Since portable code cannot
18405 # rely on this symbol name, it's probably fine to never include it in
18406 # preloaded symbol tables.
18407 extract_expsyms_cmds=
18408 # Just being paranoid about ensuring that cc_basename is set.
18409 for cc_temp in $compiler""; do
18411 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18412 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18417 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18420 cygwin* | mingw* | pw32*)
18421 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18422 # When not using gcc, we currently assume that we are using
18423 # Microsoft Visual C++.
18424 if test "$GCC" != yes; then
18434 if test "$with_gnu_ld" = yes; then
18435 # If archive_cmds runs LD, not CC, wlarc should be empty
18438 # Set some defaults for GNU ld with shared library support. These
18439 # are reset later if shared libraries are not supported. Putting them
18440 # here allows them to be overridden if necessary.
18441 runpath_var=LD_RUN_PATH
18442 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18443 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18444 # ancient GNU ld didn't support --whole-archive et. al.
18445 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18446 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18448 whole_archive_flag_spec_GCJ=
18450 supports_anon_versioning=no
18451 case `$LD -v 2>/dev/null` in
18452 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18453 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18454 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18455 *\ 2.11.*) ;; # other 2.11 versions
18456 *) supports_anon_versioning=yes ;;
18459 # See if GNU ld supports shared libraries.
18461 aix3* | aix4* | aix5*)
18462 # On AIX/PPC, the GNU linker is very broken
18463 if test "$host_cpu" != ia64; then
18467 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18468 *** to be unable to reliably create shared libraries on AIX.
18469 *** Therefore, libtool is disabling shared libraries support. If you
18470 *** really care for shared libraries, you may want to modify your PATH
18471 *** so that a non-GNU linker is found, and then restart.
18478 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)'
18479 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18480 hardcode_minus_L_GCJ=yes
18482 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18483 # that the semantics of dynamic libraries on AmigaOS, at least up
18484 # to version 4, is to share data among multiple programs linked
18485 # with the same dynamic library. Since this doesn't match the
18486 # behavior of shared libraries on other platforms, we can't use
18492 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18493 allow_undefined_flag_GCJ=unsupported
18494 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18495 # support --undefined. This deserves some investigation. FIXME
18496 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18502 cygwin* | mingw* | pw32*)
18503 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18504 # as there is no search path for DLLs.
18505 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18506 allow_undefined_flag_GCJ=unsupported
18507 always_export_symbols_GCJ=no
18508 enable_shared_with_static_runtimes_GCJ=yes
18509 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18511 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18512 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18513 # If the export-symbols file already is a .def file (1st line
18514 # is EXPORTS), use it as is; otherwise, prepend...
18515 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18516 cp $export_symbols $output_objdir/$soname.def;
18518 echo EXPORTS > $output_objdir/$soname.def;
18519 cat $export_symbols >> $output_objdir/$soname.def;
18521 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18528 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18530 case $cc_basename,$host_cpu in
18531 pgcc*) # Portland Group C compiler
18532 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'
18533 tmp_addflag=' $pic_flag'
18535 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
18536 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'
18537 tmp_addflag=' $pic_flag -Mnomain' ;;
18538 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18539 tmp_addflag=' -i_dynamic' ;;
18540 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18541 tmp_addflag=' -i_dynamic -nofor_main' ;;
18542 ifc* | ifort*) # Intel Fortran compiler
18543 tmp_addflag=' -nofor_main' ;;
18545 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18547 if test $supports_anon_versioning = yes; then
18548 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18549 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18550 $echo "local: *; };" >> $output_objdir/$libname.ver~
18551 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18559 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18560 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18563 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18564 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18569 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18573 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18574 *** create shared libraries on Solaris systems. Therefore, libtool
18575 *** is disabling shared libraries support. We urge you to upgrade GNU
18576 *** binutils to release 2.9.1 or newer. Another option is to modify
18577 *** your PATH or compiler configuration so that the native linker is
18578 *** used, and then restart.
18581 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18582 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18583 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18590 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18592 hardcode_direct_GCJ=yes
18593 hardcode_shlibpath_var_GCJ=no
18597 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18598 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18599 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18606 if test "$ld_shlibs_GCJ" = no; then
18608 hardcode_libdir_flag_spec_GCJ=
18609 export_dynamic_flag_spec_GCJ=
18610 whole_archive_flag_spec_GCJ=
18613 # PORTME fill in a description of your system's linker (not GNU ld)
18616 allow_undefined_flag_GCJ=unsupported
18617 always_export_symbols_GCJ=yes
18618 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'
18619 # Note: this linker hardcodes the directories in LIBPATH if there
18620 # are no directories specified by -L.
18621 hardcode_minus_L_GCJ=yes
18622 if test "$GCC" = yes && test -z "$link_static_flag"; then
18623 # Neither direct hardcoding nor static linking is supported with a
18625 hardcode_direct_GCJ=unsupported
18630 if test "$host_cpu" = ia64; then
18631 # On IA64, the linker does run time linking by default, so we don't
18632 # have to do anything special.
18633 aix_use_runtimelinking=no
18634 exp_sym_flag='-Bexport'
18637 # If we're using GNU nm, then we don't want the "-C" option.
18638 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18639 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18640 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'
18642 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'
18644 aix_use_runtimelinking=no
18646 # Test if we are trying to use run time linking or normal
18647 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18648 # need to do runtime linking.
18649 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18650 for ld_flag in $LDFLAGS; do
18651 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18652 aix_use_runtimelinking=yes
18658 exp_sym_flag='-bexport'
18659 no_entry_flag='-bnoentry'
18662 # When large executables or shared objects are built, AIX ld can
18663 # have problems creating the table of contents. If linking a library
18664 # or program results in "error TOC overflow" add -mminimal-toc to
18665 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18666 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18668 archive_cmds_GCJ=''
18669 hardcode_direct_GCJ=yes
18670 hardcode_libdir_separator_GCJ=':'
18671 link_all_deplibs_GCJ=yes
18673 if test "$GCC" = yes; then
18674 case $host_os in aix4.[012]|aix4.[012].*)
18675 # We only want to do this on AIX 4.2 and lower, the check
18676 # below for broken collect2 doesn't work under 4.3+
18677 collect2name=`${CC} -print-prog-name=collect2`
18678 if test -f "$collect2name" && \
18679 strings "$collect2name" | grep resolve_lib_name >/dev/null
18681 # We have reworked collect2
18682 hardcode_direct_GCJ=yes
18684 # We have old collect2
18685 hardcode_direct_GCJ=unsupported
18686 # It fails to find uninstalled libraries when the uninstalled
18687 # path is not listed in the libpath. Setting hardcode_minus_L
18688 # to unsupported forces relinking
18689 hardcode_minus_L_GCJ=yes
18690 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18691 hardcode_libdir_separator_GCJ=
18694 shared_flag='-shared'
18695 if test "$aix_use_runtimelinking" = yes; then
18696 shared_flag="$shared_flag "'${wl}-G'
18700 if test "$host_cpu" = ia64; then
18701 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18702 # chokes on -Wl,-G. The following line is correct:
18705 if test "$aix_use_runtimelinking" = yes; then
18706 shared_flag='${wl}-G'
18708 shared_flag='${wl}-bM:SRE'
18713 # It seems that -bexpall does not export symbols beginning with
18714 # underscore (_), so it is better to generate a list of symbols to export.
18715 always_export_symbols_GCJ=yes
18716 if test "$aix_use_runtimelinking" = yes; then
18717 # Warning - without using the other runtime loading flags (-brtl),
18718 # -berok will link without error, but may produce a broken library.
18719 allow_undefined_flag_GCJ='-berok'
18720 # Determine the default libpath from the value encoded in an empty executable.
18721 cat >conftest.$ac_ext <<_ACEOF
18724 cat confdefs.h >>conftest.$ac_ext
18725 cat >>conftest.$ac_ext <<_ACEOF
18726 /* end confdefs.h. */
18736 rm -f conftest.$ac_objext conftest$ac_exeext
18737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18738 (eval $ac_link) 2>conftest.er1
18740 grep -v '^ *+' conftest.er1 >conftest.err
18742 cat conftest.err >&5
18743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); } &&
18745 { ac_try='test -z "$ac_c_werror_flag"
18746 || test ! -s conftest.err'
18747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18748 (eval $ac_try) 2>&5
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); }; } &&
18752 { ac_try='test -s conftest$ac_exeext'
18753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18754 (eval $ac_try) 2>&5
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); }; }; then
18759 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18761 # Check for a 64-bit object if we didn't find anything.
18762 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; }
18765 echo "$as_me: failed program was:" >&5
18766 sed 's/^/| /' conftest.$ac_ext >&5
18769 rm -f conftest.err conftest.$ac_objext \
18770 conftest$ac_exeext conftest.$ac_ext
18771 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18773 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18774 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"
18776 if test "$host_cpu" = ia64; then
18777 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18778 allow_undefined_flag_GCJ="-z nodefs"
18779 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"
18781 # Determine the default libpath from the value encoded in an empty executable.
18782 cat >conftest.$ac_ext <<_ACEOF
18785 cat confdefs.h >>conftest.$ac_ext
18786 cat >>conftest.$ac_ext <<_ACEOF
18787 /* end confdefs.h. */
18797 rm -f conftest.$ac_objext conftest$ac_exeext
18798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18799 (eval $ac_link) 2>conftest.er1
18801 grep -v '^ *+' conftest.er1 >conftest.err
18803 cat conftest.err >&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); } &&
18806 { ac_try='test -z "$ac_c_werror_flag"
18807 || test ! -s conftest.err'
18808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18809 (eval $ac_try) 2>&5
18811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812 (exit $ac_status); }; } &&
18813 { ac_try='test -s conftest$ac_exeext'
18814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18815 (eval $ac_try) 2>&5
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); }; }; then
18820 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18822 # Check for a 64-bit object if we didn't find anything.
18823 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; }
18826 echo "$as_me: failed program was:" >&5
18827 sed 's/^/| /' conftest.$ac_ext >&5
18830 rm -f conftest.err conftest.$ac_objext \
18831 conftest$ac_exeext conftest.$ac_ext
18832 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18834 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18835 # Warning - without using the other run time loading flags,
18836 # -berok will link without error, but may produce a broken library.
18837 no_undefined_flag_GCJ=' ${wl}-bernotok'
18838 allow_undefined_flag_GCJ=' ${wl}-berok'
18839 # -bexpall does not export symbols beginning with underscore (_)
18840 always_export_symbols_GCJ=yes
18841 # Exported symbols can be pulled into shared objects from archives
18842 whole_archive_flag_spec_GCJ=' '
18843 archive_cmds_need_lc_GCJ=yes
18844 # This is similar to how AIX traditionally builds it's shared libraries.
18845 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'
18851 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)'
18852 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18853 hardcode_minus_L_GCJ=yes
18854 # see comment about different semantics on the GNU ld section
18859 export_dynamic_flag_spec_GCJ=-rdynamic
18862 cygwin* | mingw* | pw32*)
18863 # When not using gcc, we currently assume that we are using
18864 # Microsoft Visual C++.
18865 # hardcode_libdir_flag_spec is actually meaningless, as there is
18866 # no search path for DLLs.
18867 hardcode_libdir_flag_spec_GCJ=' '
18868 allow_undefined_flag_GCJ=unsupported
18869 # Tell ltmain to make .lib files, not .a files.
18871 # Tell ltmain to make .dll files, not .so files.
18873 # FIXME: Setting linknames here is a bad hack.
18874 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18875 # The linker will automatically build a .lib file if we build a DLL.
18876 old_archive_From_new_cmds_GCJ='true'
18877 # FIXME: Should let the user specify the lib program.
18878 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18879 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18880 enable_shared_with_static_runtimes_GCJ=yes
18883 darwin* | rhapsody*)
18885 rhapsody* | darwin1.[012])
18886 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18889 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18890 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18892 case ${MACOSX_DEPLOYMENT_TARGET} in
18894 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18897 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18903 archive_cmds_need_lc_GCJ=no
18904 hardcode_direct_GCJ=no
18905 hardcode_automatic_GCJ=yes
18906 hardcode_shlibpath_var_GCJ=unsupported
18907 whole_archive_flag_spec_GCJ=''
18908 link_all_deplibs_GCJ=yes
18909 if test "$GCC" = yes ; then
18910 output_verbose_link_cmd='echo'
18911 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18912 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18913 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18914 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}'
18915 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}'
18917 case $cc_basename in
18919 output_verbose_link_cmd='echo'
18920 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18921 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18922 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18923 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}'
18924 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}'
18934 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18935 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18936 hardcode_shlibpath_var_GCJ=no
18943 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18944 # support. Future versions do this automatically, but an explicit c++rt0.o
18945 # does not break anything, and helps significantly (at the cost of a little
18948 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18949 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18950 hardcode_direct_GCJ=yes
18951 hardcode_shlibpath_var_GCJ=no
18954 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18956 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18957 hardcode_direct_GCJ=yes
18958 hardcode_minus_L_GCJ=yes
18959 hardcode_shlibpath_var_GCJ=no
18962 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18963 freebsd* | kfreebsd*-gnu | dragonfly*)
18964 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18965 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18966 hardcode_direct_GCJ=yes
18967 hardcode_shlibpath_var_GCJ=no
18971 if test "$GCC" = yes; then
18972 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'
18974 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'
18976 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18977 hardcode_libdir_separator_GCJ=:
18978 hardcode_direct_GCJ=yes
18980 # hardcode_minus_L: Not really in the search PATH,
18981 # but as the default location of the library.
18982 hardcode_minus_L_GCJ=yes
18983 export_dynamic_flag_spec_GCJ='${wl}-E'
18987 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18988 case "$host_cpu" in
18990 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18993 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18997 case "$host_cpu" in
18999 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19002 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19006 if test "$with_gnu_ld" = no; then
19007 case "$host_cpu" in
19009 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19010 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
19011 hardcode_libdir_separator_GCJ=:
19012 hardcode_direct_GCJ=no
19013 hardcode_shlibpath_var_GCJ=no
19016 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19017 hardcode_direct_GCJ=no
19018 hardcode_shlibpath_var_GCJ=no
19020 # hardcode_minus_L: Not really in the search PATH,
19021 # but as the default location of the library.
19022 hardcode_minus_L_GCJ=yes
19025 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19026 hardcode_libdir_separator_GCJ=:
19027 hardcode_direct_GCJ=yes
19028 export_dynamic_flag_spec_GCJ='${wl}-E'
19030 # hardcode_minus_L: Not really in the search PATH,
19031 # but as the default location of the library.
19032 hardcode_minus_L_GCJ=yes
19038 irix5* | irix6* | nonstopux*)
19039 if test "$GCC" = yes; then
19040 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'
19042 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'
19043 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
19045 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19046 hardcode_libdir_separator_GCJ=:
19047 link_all_deplibs_GCJ=yes
19051 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19052 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19054 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19056 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19057 hardcode_direct_GCJ=yes
19058 hardcode_shlibpath_var_GCJ=no
19062 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19063 hardcode_direct_GCJ=yes
19064 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19065 hardcode_libdir_separator_GCJ=:
19066 hardcode_shlibpath_var_GCJ=no
19070 hardcode_direct_GCJ=yes
19071 hardcode_shlibpath_var_GCJ=no
19072 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19073 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19074 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19075 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19076 export_dynamic_flag_spec_GCJ='${wl}-E'
19079 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19080 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19081 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19084 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19085 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
19092 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19093 hardcode_minus_L_GCJ=yes
19094 allow_undefined_flag_GCJ=unsupported
19095 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'
19096 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19100 if test "$GCC" = yes; then
19101 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19102 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'
19104 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19105 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'
19107 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19108 hardcode_libdir_separator_GCJ=:
19111 osf4* | osf5*) # as osf3* with the addition of -msym flag
19112 if test "$GCC" = yes; then
19113 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
19114 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'
19115 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
19117 allow_undefined_flag_GCJ=' -expect_unresolved \*'
19118 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'
19119 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~
19120 $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'
19122 # Both c and cxx compiler support -rpath directly
19123 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
19125 hardcode_libdir_separator_GCJ=:
19129 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19130 hardcode_shlibpath_var_GCJ=no
19131 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
19132 runpath_var=LD_RUN_PATH
19133 hardcode_runpath_var=yes
19137 no_undefined_flag_GCJ=' -z text'
19138 if test "$GCC" = yes; then
19140 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19141 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19142 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19145 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19146 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19147 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19149 hardcode_libdir_flag_spec_GCJ='-R$libdir'
19150 hardcode_shlibpath_var_GCJ=no
19152 solaris2.[0-5] | solaris2.[0-5].*) ;;
19154 # The compiler driver will combine linker options so we
19155 # cannot just pass the convience library names through
19156 # without $wl, iff we do not link with $LD.
19157 # Luckily, gcc supports the same syntax we need for Sun Studio.
19158 # Supported since Solaris 2.6 (maybe 2.5.1?)
19161 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
19163 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' ;;
19166 link_all_deplibs_GCJ=yes
19170 if test "x$host_vendor" = xsequent; then
19171 # Use $CC to link under sequent, because it throws in some extra .o
19172 # files that make .init and .fini sections work.
19173 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19175 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19177 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19178 hardcode_direct_GCJ=yes
19179 hardcode_minus_L_GCJ=yes
19180 hardcode_shlibpath_var_GCJ=no
19184 case $host_vendor in
19186 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19187 hardcode_direct_GCJ=yes # is this really true???
19190 ## LD is ld it makes a PLAMLIB
19191 ## CC just makes a GrossModule.
19192 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19193 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
19194 hardcode_direct_GCJ=no
19197 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19198 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
19201 runpath_var='LD_RUN_PATH'
19202 hardcode_shlibpath_var_GCJ=no
19206 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19207 hardcode_shlibpath_var_GCJ=no
19208 export_dynamic_flag_spec_GCJ='-Bexport'
19212 if test -d /usr/nec; then
19213 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19214 hardcode_shlibpath_var_GCJ=no
19215 runpath_var=LD_RUN_PATH
19216 hardcode_runpath_var=yes
19222 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19223 hardcode_direct_GCJ=yes
19224 hardcode_minus_L_GCJ=no
19225 hardcode_shlibpath_var_GCJ=no
19226 hardcode_runpath_var=yes
19227 runpath_var=LD_RUN_PATH
19230 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19231 no_undefined_flag_GCJ='${wl}-z ${wl}text'
19232 if test "$GCC" = yes; then
19233 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19235 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19237 runpath_var='LD_RUN_PATH'
19238 hardcode_shlibpath_var_GCJ=no
19242 no_undefined_flag_GCJ=' -z text'
19243 # $CC -shared without GNU ld will not create a library from C++
19244 # object files and a static libstdc++, better avoid it by now
19245 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19246 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19247 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19248 hardcode_libdir_flag_spec_GCJ=
19249 hardcode_shlibpath_var_GCJ=no
19250 runpath_var='LD_RUN_PATH'
19254 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19255 hardcode_libdir_flag_spec_GCJ='-L$libdir'
19256 hardcode_shlibpath_var_GCJ=no
19265 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
19266 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
19267 test "$ld_shlibs_GCJ" = no && can_build_shared=no
19269 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19270 if test "$GCC" = yes; then
19271 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19275 # Do we need to explicitly link libc?
19277 case "x$archive_cmds_need_lc_GCJ" in
19279 # Assume -lc should be added
19280 archive_cmds_need_lc_GCJ=yes
19282 if test "$enable_shared" = yes && test "$GCC" = yes; then
19283 case $archive_cmds_GCJ in
19285 # FIXME: we may have to deal with multi-command sequences.
19288 # Test whether the compiler implicitly links with -lc since on some
19289 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19290 # to ld, don't add -lc before -lgcc.
19291 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19292 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19294 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19297 (eval $ac_compile) 2>&5
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); } 2>conftest.err; then
19303 libobjs=conftest.$ac_objext
19305 wl=$lt_prog_compiler_wl_GCJ
19311 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
19312 allow_undefined_flag_GCJ=
19313 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19314 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); }
19319 archive_cmds_need_lc_GCJ=no
19321 archive_cmds_need_lc_GCJ=yes
19323 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
19325 cat conftest.err 1>&5
19328 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
19329 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
19336 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19337 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19338 library_names_spec=
19339 libname_spec='lib$name'
19343 postuninstall_cmds=
19347 shlibpath_overrides_runpath=unknown
19349 dynamic_linker="$host_os ld.so"
19350 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19351 if test "$GCC" = yes; then
19352 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19353 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19354 # if the path contains ";" then we assume it to be the separator
19355 # otherwise default to the standard path separator (i.e. ":") - it is
19356 # assumed that no part of a normal pathname contains ";" but that should
19357 # okay in the real world where ";" in dirpaths is itself problematic.
19358 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19360 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19363 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19365 need_lib_prefix=unknown
19366 hardcode_into_libs=no
19368 # when you set need_version to no, make sure it does not cause -set_version
19369 # flags to be left without arguments
19370 need_version=unknown
19375 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19376 shlibpath_var=LIBPATH
19378 # AIX 3 has no versioning support, so we append a major version to the name.
19379 soname_spec='${libname}${release}${shared_ext}$major'
19386 hardcode_into_libs=yes
19387 if test "$host_cpu" = ia64; then
19388 # AIX 5 supports IA64
19389 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19390 shlibpath_var=LD_LIBRARY_PATH
19392 # With GCC up to 2.95.x, collect2 would create an import file
19393 # for dependence libraries. The import file would start with
19394 # the line `#! .'. This would cause the generated library to
19395 # depend on `.', always an invalid library. This was fixed in
19396 # development snapshots of GCC prior to 3.0.
19398 aix4 | aix4.[01] | aix4.[01].*)
19399 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19401 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19404 can_build_shared=no
19408 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19409 # soname into executable. Probably we can add versioning support to
19410 # collect2, so additional links can be useful in future.
19411 if test "$aix_use_runtimelinking" = yes; then
19412 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19413 # instead of lib<name>.a to let people know that these are not
19414 # typical AIX shared libraries.
19415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19417 # We preserve .a as extension for shared libraries through AIX4.2
19418 # and later when we are not doing run time linking.
19419 library_names_spec='${libname}${release}.a $libname.a'
19420 soname_spec='${libname}${release}${shared_ext}$major'
19422 shlibpath_var=LIBPATH
19427 library_names_spec='$libname.ixlibrary $libname.a'
19428 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19429 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'
19433 library_names_spec='${libname}${shared_ext}'
19434 dynamic_linker="$host_os ld.so"
19435 shlibpath_var=LIBRARY_PATH
19441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19442 soname_spec='${libname}${release}${shared_ext}$major'
19443 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19444 shlibpath_var=LD_LIBRARY_PATH
19445 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19446 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19447 # the default ld.so.conf also contains /usr/contrib/lib and
19448 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19449 # libtool to hard-code these into programs
19452 cygwin* | mingw* | pw32*)
19453 version_type=windows
19458 case $GCC,$host_os in
19459 yes,cygwin* | yes,mingw* | yes,pw32*)
19460 library_names_spec='$libname.dll.a'
19461 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19462 postinstall_cmds='base_file=`basename \${file}`~
19463 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19464 dldir=$destdir/`dirname \$dlpath`~
19465 test -d \$dldir || mkdir -p \$dldir~
19466 $install_prog $dir/$dlname \$dldir/$dlname'
19467 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19468 dlpath=$dir/\$dldll~
19470 shlibpath_overrides_runpath=yes
19474 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19475 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19476 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19479 # MinGW DLLs use traditional 'lib' prefix
19480 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19481 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19482 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19483 # It is most probably a Windows format PATH printed by
19484 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19485 # path with ; separators, and with drive letters. We can handle the
19486 # drive letters (cygwin fileutils understands them), so leave them,
19487 # especially as we might pass files found there to a mingw objdump,
19488 # which wouldn't understand a cygwinified path. Ahh.
19489 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19491 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19495 # pw32 DLLs use 'pw' prefix rather than 'lib'
19496 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19502 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19505 dynamic_linker='Win32 ld.exe'
19506 # FIXME: first we should search . and the directory the executable is in
19510 darwin* | rhapsody*)
19511 dynamic_linker="$host_os dyld"
19512 version_type=darwin
19515 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19516 soname_spec='${libname}${release}${major}$shared_ext'
19517 shlibpath_overrides_runpath=yes
19518 shlibpath_var=DYLD_LIBRARY_PATH
19519 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
19520 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
19521 if test "$GCC" = yes; then
19522 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"`
19524 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
19526 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19534 soname_spec='${libname}${release}${shared_ext}$major'
19535 shlibpath_var=LD_LIBRARY_PATH
19546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19547 soname_spec='${libname}${release}${shared_ext}$major'
19548 shlibpath_var=LD_LIBRARY_PATH
19549 shlibpath_overrides_runpath=no
19550 hardcode_into_libs=yes
19551 dynamic_linker='GNU ld.so'
19554 freebsd* | dragonfly*)
19555 # DragonFly does not have aout. When/if they implement a new
19556 # versioning mechanism, adjust this.
19557 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
19558 version_type=freebsd-$objformat
19559 case $version_type in
19561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19566 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19570 shlibpath_var=LD_LIBRARY_PATH
19573 shlibpath_overrides_runpath=yes
19575 freebsd3.[01]* | freebsdelf3.[01]*)
19576 shlibpath_overrides_runpath=yes
19577 hardcode_into_libs=yes
19580 shlibpath_overrides_runpath=no
19581 hardcode_into_libs=yes
19590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19591 soname_spec='${libname}${release}${shared_ext}$major'
19592 shlibpath_var=LD_LIBRARY_PATH
19593 hardcode_into_libs=yes
19596 hpux9* | hpux10* | hpux11*)
19597 # Give a soname corresponding to the major version so that dld.sl refuses to
19598 # link against other versions.
19602 case "$host_cpu" in
19605 hardcode_into_libs=yes
19606 dynamic_linker="$host_os dld.so"
19607 shlibpath_var=LD_LIBRARY_PATH
19608 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19610 soname_spec='${libname}${release}${shared_ext}$major'
19611 if test "X$HPUX_IA64_MODE" = X32; then
19612 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19614 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19616 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19620 hardcode_into_libs=yes
19621 dynamic_linker="$host_os dld.sl"
19622 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19623 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19625 soname_spec='${libname}${release}${shared_ext}$major'
19626 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19627 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19631 dynamic_linker="$host_os dld.sl"
19632 shlibpath_var=SHLIB_PATH
19633 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19635 soname_spec='${libname}${release}${shared_ext}$major'
19638 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19639 postinstall_cmds='chmod 555 $lib'
19642 irix5* | irix6* | nonstopux*)
19644 nonstopux*) version_type=nonstopux ;;
19646 if test "$lt_cv_prog_gnu_ld" = yes; then
19654 soname_spec='${libname}${release}${shared_ext}$major'
19655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19657 irix5* | nonstopux*)
19658 libsuff= shlibsuff=
19661 case $LD in # libtool.m4 will add one of these switches to LD
19662 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19663 libsuff= shlibsuff= libmagic=32-bit;;
19664 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19665 libsuff=32 shlibsuff=N32 libmagic=N32;;
19666 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19667 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19668 *) libsuff= shlibsuff= libmagic=never-match;;
19672 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19673 shlibpath_overrides_runpath=no
19674 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19675 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19676 hardcode_into_libs=yes
19679 # No shared lib support for Linux oldld, aout, or coff.
19680 linux*oldld* | linux*aout* | linux*coff*)
19684 # This must be Linux ELF.
19689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19690 soname_spec='${libname}${release}${shared_ext}$major'
19691 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19692 shlibpath_var=LD_LIBRARY_PATH
19693 shlibpath_overrides_runpath=no
19694 # This implies no fast_install, which is unacceptable.
19695 # Some rework will be needed to allow for fast_install
19696 # before this can be enabled.
19697 hardcode_into_libs=yes
19699 # Append ld.so.conf contents to the search path
19700 if test -f /etc/ld.so.conf; then
19701 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' ' '`
19702 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19705 # We used to test for /lib/ld.so.1 and disable shared libraries on
19706 # powerpc, because MkLinux only supported shared libraries with the
19707 # GNU dynamic linker. Since this was broken with cross compilers,
19708 # most powerpc-linux boxes support dynamic linking these days and
19709 # people can always --disable-shared, the test was removed, and we
19710 # assume the GNU/Linux dynamic linker is in use.
19711 dynamic_linker='GNU/Linux ld.so'
19718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19719 soname_spec='${libname}${release}${shared_ext}$major'
19720 shlibpath_var=LD_LIBRARY_PATH
19721 shlibpath_overrides_runpath=no
19722 hardcode_into_libs=yes
19723 dynamic_linker='GNU ld.so'
19730 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19732 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19733 dynamic_linker='NetBSD (a.out) ld.so'
19735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19736 soname_spec='${libname}${release}${shared_ext}$major'
19737 dynamic_linker='NetBSD ld.elf_so'
19739 shlibpath_var=LD_LIBRARY_PATH
19740 shlibpath_overrides_runpath=yes
19741 hardcode_into_libs=yes
19746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19747 shlibpath_var=LD_LIBRARY_PATH
19748 shlibpath_overrides_runpath=yes
19755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19756 soname_spec='${libname}${release}${shared_ext}$major'
19757 shlibpath_var=LD_LIBRARY_PATH
19758 shlibpath_overrides_runpath=yes
19764 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19766 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19767 *) need_version=no ;;
19769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19770 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19771 shlibpath_var=LD_LIBRARY_PATH
19772 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19774 openbsd2.[89] | openbsd2.[89].*)
19775 shlibpath_overrides_runpath=no
19778 shlibpath_overrides_runpath=yes
19782 shlibpath_overrides_runpath=yes
19787 libname_spec='$name'
19790 library_names_spec='$libname${shared_ext} $libname.a'
19791 dynamic_linker='OS/2 ld.exe'
19792 shlibpath_var=LIBPATH
19795 osf3* | osf4* | osf5*)
19799 soname_spec='${libname}${release}${shared_ext}$major'
19800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19801 shlibpath_var=LD_LIBRARY_PATH
19802 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19803 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19808 soname_spec='${libname}${release}${shared_ext}$major'
19809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19810 shlibpath_var=LD_LIBRARY_PATH
19817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19818 soname_spec='${libname}${release}${shared_ext}$major'
19819 shlibpath_var=LD_LIBRARY_PATH
19820 shlibpath_overrides_runpath=yes
19821 hardcode_into_libs=yes
19822 # ldd complains unless libraries are executable
19823 postinstall_cmds='chmod +x $lib'
19828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19829 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19830 shlibpath_var=LD_LIBRARY_PATH
19831 shlibpath_overrides_runpath=yes
19832 if test "$with_gnu_ld" = yes; then
19838 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19841 soname_spec='${libname}${release}${shared_ext}$major'
19842 shlibpath_var=LD_LIBRARY_PATH
19843 case $host_vendor in
19845 shlibpath_overrides_runpath=no
19847 export_dynamic_flag_spec='${wl}-Blargedynsym'
19848 runpath_var=LD_RUN_PATH
19856 shlibpath_overrides_runpath=no
19857 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19863 if test -d /usr/nec ;then
19865 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19866 soname_spec='$libname${shared_ext}.$major'
19867 shlibpath_var=LD_LIBRARY_PATH
19873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19874 soname_spec='${libname}${release}${shared_ext}$major'
19875 shlibpath_var=LD_LIBRARY_PATH
19882 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19883 echo "${ECHO_T}$dynamic_linker" >&6
19884 test "$dynamic_linker" = no && can_build_shared=no
19886 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19887 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19888 hardcode_action_GCJ=
19889 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19890 test -n "$runpath_var_GCJ" || \
19891 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19893 # We can hardcode non-existant directories.
19894 if test "$hardcode_direct_GCJ" != no &&
19895 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19896 # have to relink, otherwise we might link with an installed library
19897 # when we should be linking with a yet-to-be-installed one
19898 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19899 test "$hardcode_minus_L_GCJ" != no; then
19900 # Linking always hardcodes the temporary library directory.
19901 hardcode_action_GCJ=relink
19903 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19904 hardcode_action_GCJ=immediate
19907 # We cannot hardcode anything, or else we can only hardcode existing
19909 hardcode_action_GCJ=unsupported
19911 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19912 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19914 if test "$hardcode_action_GCJ" = relink; then
19915 # Fast installation is not supported
19916 enable_fast_install=no
19917 elif test "$shlibpath_overrides_runpath" = yes ||
19918 test "$enable_shared" = no; then
19919 # Fast installation is not necessary
19920 enable_fast_install=needless
19925 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19926 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19927 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19928 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19929 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19930 echo "$as_me:$LINENO: result: yes" >&5
19931 echo "${ECHO_T}yes" >&6
19933 # FIXME - insert some real tests, host_os isn't really good enough
19936 if test -n "$STRIP" ; then
19937 striplib="$STRIP -x"
19938 echo "$as_me:$LINENO: result: yes" >&5
19939 echo "${ECHO_T}yes" >&6
19941 echo "$as_me:$LINENO: result: no" >&5
19942 echo "${ECHO_T}no" >&6
19946 echo "$as_me:$LINENO: result: no" >&5
19947 echo "${ECHO_T}no" >&6
19952 if test "x$enable_dlopen" != xyes; then
19953 enable_dlopen=unknown
19954 enable_dlopen_self=unknown
19955 enable_dlopen_self_static=unknown
19962 lt_cv_dlopen="load_add_on"
19964 lt_cv_dlopen_self=yes
19968 lt_cv_dlopen="LoadLibrary"
19973 lt_cv_dlopen="dlopen"
19978 # if libdl is installed we need to link against it
19979 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19980 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19981 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19982 echo $ECHO_N "(cached) $ECHO_C" >&6
19984 ac_check_lib_save_LIBS=$LIBS
19986 cat >conftest.$ac_ext <<_ACEOF
19989 cat confdefs.h >>conftest.$ac_ext
19990 cat >>conftest.$ac_ext <<_ACEOF
19991 /* end confdefs.h. */
19993 /* Override any gcc2 internal prototype to avoid an error. */
19997 /* We use char because int might match the return type of a gcc2
19998 builtin and then its argument prototype would still apply. */
20008 rm -f conftest.$ac_objext conftest$ac_exeext
20009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20010 (eval $ac_link) 2>conftest.er1
20012 grep -v '^ *+' conftest.er1 >conftest.err
20014 cat conftest.err >&5
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); } &&
20017 { ac_try='test -z "$ac_c_werror_flag"
20018 || test ! -s conftest.err'
20019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20020 (eval $ac_try) 2>&5
20022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20023 (exit $ac_status); }; } &&
20024 { ac_try='test -s conftest$ac_exeext'
20025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20026 (eval $ac_try) 2>&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); }; }; then
20030 ac_cv_lib_dl_dlopen=yes
20032 echo "$as_me: failed program was:" >&5
20033 sed 's/^/| /' conftest.$ac_ext >&5
20035 ac_cv_lib_dl_dlopen=no
20037 rm -f conftest.err conftest.$ac_objext \
20038 conftest$ac_exeext conftest.$ac_ext
20039 LIBS=$ac_check_lib_save_LIBS
20041 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20042 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20043 if test $ac_cv_lib_dl_dlopen = yes; then
20044 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20047 lt_cv_dlopen="dyld"
20049 lt_cv_dlopen_self=yes
20056 echo "$as_me:$LINENO: checking for shl_load" >&5
20057 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
20058 if test "${ac_cv_func_shl_load+set}" = set; then
20059 echo $ECHO_N "(cached) $ECHO_C" >&6
20061 cat >conftest.$ac_ext <<_ACEOF
20064 cat confdefs.h >>conftest.$ac_ext
20065 cat >>conftest.$ac_ext <<_ACEOF
20066 /* end confdefs.h. */
20067 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
20068 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20069 #define shl_load innocuous_shl_load
20071 /* System header to define __stub macros and hopefully few prototypes,
20072 which can conflict with char shl_load (); below.
20073 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20074 <limits.h> exists even on freestanding compilers. */
20077 # include <limits.h>
20079 # include <assert.h>
20084 /* Override any gcc2 internal prototype to avoid an error. */
20089 /* We use char because int might match the return type of a gcc2
20090 builtin and then its argument prototype would still apply. */
20092 /* The GNU C library defines this for functions which it implements
20093 to always fail with ENOSYS. Some functions are actually named
20094 something starting with __ and the normal name is an alias. */
20095 #if defined (__stub_shl_load) || defined (__stub___shl_load)
20098 char (*f) () = shl_load;
20107 return f != shl_load;
20112 rm -f conftest.$ac_objext conftest$ac_exeext
20113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20114 (eval $ac_link) 2>conftest.er1
20116 grep -v '^ *+' conftest.er1 >conftest.err
20118 cat conftest.err >&5
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); } &&
20121 { ac_try='test -z "$ac_c_werror_flag"
20122 || test ! -s conftest.err'
20123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20124 (eval $ac_try) 2>&5
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); }; } &&
20128 { ac_try='test -s conftest$ac_exeext'
20129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20130 (eval $ac_try) 2>&5
20132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20133 (exit $ac_status); }; }; then
20134 ac_cv_func_shl_load=yes
20136 echo "$as_me: failed program was:" >&5
20137 sed 's/^/| /' conftest.$ac_ext >&5
20139 ac_cv_func_shl_load=no
20141 rm -f conftest.err conftest.$ac_objext \
20142 conftest$ac_exeext conftest.$ac_ext
20144 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
20145 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
20146 if test $ac_cv_func_shl_load = yes; then
20147 lt_cv_dlopen="shl_load"
20149 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
20150 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
20151 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
20152 echo $ECHO_N "(cached) $ECHO_C" >&6
20154 ac_check_lib_save_LIBS=$LIBS
20156 cat >conftest.$ac_ext <<_ACEOF
20159 cat confdefs.h >>conftest.$ac_ext
20160 cat >>conftest.$ac_ext <<_ACEOF
20161 /* end confdefs.h. */
20163 /* Override any gcc2 internal prototype to avoid an error. */
20167 /* We use char because int might match the return type of a gcc2
20168 builtin and then its argument prototype would still apply. */
20178 rm -f conftest.$ac_objext conftest$ac_exeext
20179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20180 (eval $ac_link) 2>conftest.er1
20182 grep -v '^ *+' conftest.er1 >conftest.err
20184 cat conftest.err >&5
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); } &&
20187 { ac_try='test -z "$ac_c_werror_flag"
20188 || test ! -s conftest.err'
20189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20190 (eval $ac_try) 2>&5
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); }; } &&
20194 { ac_try='test -s conftest$ac_exeext'
20195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20196 (eval $ac_try) 2>&5
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); }; }; then
20200 ac_cv_lib_dld_shl_load=yes
20202 echo "$as_me: failed program was:" >&5
20203 sed 's/^/| /' conftest.$ac_ext >&5
20205 ac_cv_lib_dld_shl_load=no
20207 rm -f conftest.err conftest.$ac_objext \
20208 conftest$ac_exeext conftest.$ac_ext
20209 LIBS=$ac_check_lib_save_LIBS
20211 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
20212 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
20213 if test $ac_cv_lib_dld_shl_load = yes; then
20214 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
20216 echo "$as_me:$LINENO: checking for dlopen" >&5
20217 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
20218 if test "${ac_cv_func_dlopen+set}" = set; then
20219 echo $ECHO_N "(cached) $ECHO_C" >&6
20221 cat >conftest.$ac_ext <<_ACEOF
20224 cat confdefs.h >>conftest.$ac_ext
20225 cat >>conftest.$ac_ext <<_ACEOF
20226 /* end confdefs.h. */
20227 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
20228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20229 #define dlopen innocuous_dlopen
20231 /* System header to define __stub macros and hopefully few prototypes,
20232 which can conflict with char dlopen (); below.
20233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20234 <limits.h> exists even on freestanding compilers. */
20237 # include <limits.h>
20239 # include <assert.h>
20244 /* Override any gcc2 internal prototype to avoid an error. */
20249 /* We use char because int might match the return type of a gcc2
20250 builtin and then its argument prototype would still apply. */
20252 /* The GNU C library defines this for functions which it implements
20253 to always fail with ENOSYS. Some functions are actually named
20254 something starting with __ and the normal name is an alias. */
20255 #if defined (__stub_dlopen) || defined (__stub___dlopen)
20258 char (*f) () = dlopen;
20267 return f != dlopen;
20272 rm -f conftest.$ac_objext conftest$ac_exeext
20273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20274 (eval $ac_link) 2>conftest.er1
20276 grep -v '^ *+' conftest.er1 >conftest.err
20278 cat conftest.err >&5
20279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20280 (exit $ac_status); } &&
20281 { ac_try='test -z "$ac_c_werror_flag"
20282 || test ! -s conftest.err'
20283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284 (eval $ac_try) 2>&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); }; } &&
20288 { ac_try='test -s conftest$ac_exeext'
20289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20290 (eval $ac_try) 2>&5
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); }; }; then
20294 ac_cv_func_dlopen=yes
20296 echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20299 ac_cv_func_dlopen=no
20301 rm -f conftest.err conftest.$ac_objext \
20302 conftest$ac_exeext conftest.$ac_ext
20304 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
20305 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
20306 if test $ac_cv_func_dlopen = yes; then
20307 lt_cv_dlopen="dlopen"
20309 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20310 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
20311 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20312 echo $ECHO_N "(cached) $ECHO_C" >&6
20314 ac_check_lib_save_LIBS=$LIBS
20316 cat >conftest.$ac_ext <<_ACEOF
20319 cat confdefs.h >>conftest.$ac_ext
20320 cat >>conftest.$ac_ext <<_ACEOF
20321 /* end confdefs.h. */
20323 /* Override any gcc2 internal prototype to avoid an error. */
20327 /* We use char because int might match the return type of a gcc2
20328 builtin and then its argument prototype would still apply. */
20338 rm -f conftest.$ac_objext conftest$ac_exeext
20339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20340 (eval $ac_link) 2>conftest.er1
20342 grep -v '^ *+' conftest.er1 >conftest.err
20344 cat conftest.err >&5
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); } &&
20347 { ac_try='test -z "$ac_c_werror_flag"
20348 || test ! -s conftest.err'
20349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20350 (eval $ac_try) 2>&5
20352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20353 (exit $ac_status); }; } &&
20354 { ac_try='test -s conftest$ac_exeext'
20355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20356 (eval $ac_try) 2>&5
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); }; }; then
20360 ac_cv_lib_dl_dlopen=yes
20362 echo "$as_me: failed program was:" >&5
20363 sed 's/^/| /' conftest.$ac_ext >&5
20365 ac_cv_lib_dl_dlopen=no
20367 rm -f conftest.err conftest.$ac_objext \
20368 conftest$ac_exeext conftest.$ac_ext
20369 LIBS=$ac_check_lib_save_LIBS
20371 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
20372 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
20373 if test $ac_cv_lib_dl_dlopen = yes; then
20374 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
20376 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
20377 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
20378 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
20379 echo $ECHO_N "(cached) $ECHO_C" >&6
20381 ac_check_lib_save_LIBS=$LIBS
20382 LIBS="-lsvld $LIBS"
20383 cat >conftest.$ac_ext <<_ACEOF
20386 cat confdefs.h >>conftest.$ac_ext
20387 cat >>conftest.$ac_ext <<_ACEOF
20388 /* end confdefs.h. */
20390 /* Override any gcc2 internal prototype to avoid an error. */
20394 /* We use char because int might match the return type of a gcc2
20395 builtin and then its argument prototype would still apply. */
20405 rm -f conftest.$ac_objext conftest$ac_exeext
20406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20407 (eval $ac_link) 2>conftest.er1
20409 grep -v '^ *+' conftest.er1 >conftest.err
20411 cat conftest.err >&5
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); } &&
20414 { ac_try='test -z "$ac_c_werror_flag"
20415 || test ! -s conftest.err'
20416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20417 (eval $ac_try) 2>&5
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); }; } &&
20421 { ac_try='test -s conftest$ac_exeext'
20422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20423 (eval $ac_try) 2>&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); }; }; then
20427 ac_cv_lib_svld_dlopen=yes
20429 echo "$as_me: failed program was:" >&5
20430 sed 's/^/| /' conftest.$ac_ext >&5
20432 ac_cv_lib_svld_dlopen=no
20434 rm -f conftest.err conftest.$ac_objext \
20435 conftest$ac_exeext conftest.$ac_ext
20436 LIBS=$ac_check_lib_save_LIBS
20438 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
20439 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
20440 if test $ac_cv_lib_svld_dlopen = yes; then
20441 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
20443 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20444 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
20445 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20446 echo $ECHO_N "(cached) $ECHO_C" >&6
20448 ac_check_lib_save_LIBS=$LIBS
20450 cat >conftest.$ac_ext <<_ACEOF
20453 cat confdefs.h >>conftest.$ac_ext
20454 cat >>conftest.$ac_ext <<_ACEOF
20455 /* end confdefs.h. */
20457 /* Override any gcc2 internal prototype to avoid an error. */
20461 /* We use char because int might match the return type of a gcc2
20462 builtin and then its argument prototype would still apply. */
20472 rm -f conftest.$ac_objext conftest$ac_exeext
20473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20474 (eval $ac_link) 2>conftest.er1
20476 grep -v '^ *+' conftest.er1 >conftest.err
20478 cat conftest.err >&5
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); } &&
20481 { ac_try='test -z "$ac_c_werror_flag"
20482 || test ! -s conftest.err'
20483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20484 (eval $ac_try) 2>&5
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); }; } &&
20488 { ac_try='test -s conftest$ac_exeext'
20489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490 (eval $ac_try) 2>&5
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); }; }; then
20494 ac_cv_lib_dld_dld_link=yes
20496 echo "$as_me: failed program was:" >&5
20497 sed 's/^/| /' conftest.$ac_ext >&5
20499 ac_cv_lib_dld_dld_link=no
20501 rm -f conftest.err conftest.$ac_objext \
20502 conftest$ac_exeext conftest.$ac_ext
20503 LIBS=$ac_check_lib_save_LIBS
20505 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20506 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
20507 if test $ac_cv_lib_dld_dld_link = yes; then
20508 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
20529 if test "x$lt_cv_dlopen" != xno; then
20535 case $lt_cv_dlopen in
20537 save_CPPFLAGS="$CPPFLAGS"
20538 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
20540 save_LDFLAGS="$LDFLAGS"
20541 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20544 LIBS="$lt_cv_dlopen_libs $LIBS"
20546 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20547 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20548 if test "${lt_cv_dlopen_self+set}" = set; then
20549 echo $ECHO_N "(cached) $ECHO_C" >&6
20551 if test "$cross_compiling" = yes; then :
20552 lt_cv_dlopen_self=cross
20554 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20555 lt_status=$lt_dlunknown
20556 cat > conftest.$ac_ext <<EOF
20557 #line 20557 "configure"
20558 #include "confdefs.h"
20567 # define LT_DLGLOBAL RTLD_GLOBAL
20570 # define LT_DLGLOBAL DL_GLOBAL
20572 # define LT_DLGLOBAL 0
20576 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20577 find out it does not work in some platform. */
20578 #ifndef LT_DLLAZY_OR_NOW
20580 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20583 # define LT_DLLAZY_OR_NOW DL_LAZY
20586 # define LT_DLLAZY_OR_NOW RTLD_NOW
20589 # define LT_DLLAZY_OR_NOW DL_NOW
20591 # define LT_DLLAZY_OR_NOW 0
20599 extern "C" void exit (int);
20602 void fnord() { int i=42;}
20605 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20606 int status = $lt_dlunknown;
20610 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20611 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20612 /* dlclose (self); */
20618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20619 (eval $ac_link) 2>&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20623 (./conftest; exit; ) 2>/dev/null
20625 case x$lt_status in
20626 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20627 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20628 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20631 # compilation failed
20632 lt_cv_dlopen_self=no
20639 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20640 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20642 if test "x$lt_cv_dlopen_self" = xyes; then
20643 LDFLAGS="$LDFLAGS $link_static_flag"
20644 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20645 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20646 if test "${lt_cv_dlopen_self_static+set}" = set; then
20647 echo $ECHO_N "(cached) $ECHO_C" >&6
20649 if test "$cross_compiling" = yes; then :
20650 lt_cv_dlopen_self_static=cross
20652 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20653 lt_status=$lt_dlunknown
20654 cat > conftest.$ac_ext <<EOF
20655 #line 20655 "configure"
20656 #include "confdefs.h"
20665 # define LT_DLGLOBAL RTLD_GLOBAL
20668 # define LT_DLGLOBAL DL_GLOBAL
20670 # define LT_DLGLOBAL 0
20674 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20675 find out it does not work in some platform. */
20676 #ifndef LT_DLLAZY_OR_NOW
20678 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20681 # define LT_DLLAZY_OR_NOW DL_LAZY
20684 # define LT_DLLAZY_OR_NOW RTLD_NOW
20687 # define LT_DLLAZY_OR_NOW DL_NOW
20689 # define LT_DLLAZY_OR_NOW 0
20697 extern "C" void exit (int);
20700 void fnord() { int i=42;}
20703 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20704 int status = $lt_dlunknown;
20708 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20709 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20710 /* dlclose (self); */
20716 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20717 (eval $ac_link) 2>&5
20719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20720 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20721 (./conftest; exit; ) 2>/dev/null
20723 case x$lt_status in
20724 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20725 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20726 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20729 # compilation failed
20730 lt_cv_dlopen_self_static=no
20737 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20738 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20741 CPPFLAGS="$save_CPPFLAGS"
20742 LDFLAGS="$save_LDFLAGS"
20747 case $lt_cv_dlopen_self in
20748 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20749 *) enable_dlopen_self=unknown ;;
20752 case $lt_cv_dlopen_self_static in
20753 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20754 *) enable_dlopen_self_static=unknown ;;
20759 # The else clause should only fire when bootstrapping the
20760 # libtool distribution, otherwise you forgot to ship ltmain.sh
20761 # with your package, and you will get complaints that there are
20762 # no rules to generate ltmain.sh.
20763 if test -f "$ltmain"; then
20764 # See if we are running on zsh, and set the options which allow our commands through
20765 # without removal of \ escapes.
20766 if test -n "${ZSH_VERSION+set}" ; then
20767 setopt NO_GLOB_SUBST
20769 # Now quote all the things that may contain metacharacters while being
20770 # careful not to overquote the AC_SUBSTed values. We take copies of the
20771 # variables and quote the copies for generation of the libtool script.
20772 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20774 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20775 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20776 deplibs_check_method reload_flag reload_cmds need_locks \
20777 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20778 lt_cv_sys_global_symbol_to_c_name_address \
20779 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20780 old_postinstall_cmds old_postuninstall_cmds \
20784 lt_prog_compiler_wl_GCJ \
20785 lt_prog_compiler_pic_GCJ \
20786 lt_prog_compiler_static_GCJ \
20787 lt_prog_compiler_no_builtin_flag_GCJ \
20788 export_dynamic_flag_spec_GCJ \
20789 thread_safe_flag_spec_GCJ \
20790 whole_archive_flag_spec_GCJ \
20791 enable_shared_with_static_runtimes_GCJ \
20792 old_archive_cmds_GCJ \
20793 old_archive_from_new_cmds_GCJ \
20794 predep_objects_GCJ \
20795 postdep_objects_GCJ \
20798 compiler_lib_search_path_GCJ \
20800 archive_expsym_cmds_GCJ \
20801 postinstall_cmds_GCJ \
20802 postuninstall_cmds_GCJ \
20803 old_archive_from_expsyms_cmds_GCJ \
20804 allow_undefined_flag_GCJ \
20805 no_undefined_flag_GCJ \
20806 export_symbols_cmds_GCJ \
20807 hardcode_libdir_flag_spec_GCJ \
20808 hardcode_libdir_flag_spec_ld_GCJ \
20809 hardcode_libdir_separator_GCJ \
20810 hardcode_automatic_GCJ \
20812 module_expsym_cmds_GCJ \
20813 lt_cv_prog_compiler_c_o_GCJ \
20814 exclude_expsyms_GCJ \
20815 include_expsyms_GCJ; do
20818 old_archive_cmds_GCJ | \
20819 old_archive_from_new_cmds_GCJ | \
20820 archive_cmds_GCJ | \
20821 archive_expsym_cmds_GCJ | \
20822 module_cmds_GCJ | \
20823 module_expsym_cmds_GCJ | \
20824 old_archive_from_expsyms_cmds_GCJ | \
20825 export_symbols_cmds_GCJ | \
20826 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20827 postinstall_cmds | postuninstall_cmds | \
20828 old_postinstall_cmds | old_postuninstall_cmds | \
20829 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20830 # Double-quote double-evaled strings.
20831 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20834 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20840 *'\$0 --fallback-echo"')
20841 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20847 cat <<__EOF__ >> "$cfgfile"
20848 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20850 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20852 # Shell to use when invoking shell scripts.
20855 # Whether or not to build shared libraries.
20856 build_libtool_libs=$enable_shared
20858 # Whether or not to build static libraries.
20859 build_old_libs=$enable_static
20861 # Whether or not to add -lc for building shared libraries.
20862 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20864 # Whether or not to disallow shared libs when runtime libs are static
20865 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20867 # Whether or not to optimize for fast installation.
20868 fast_install=$enable_fast_install
20871 host_alias=$host_alias
20875 # The build system.
20876 build_alias=$build_alias
20880 # An echo program that does not interpret backslashes.
20885 AR_FLAGS=$lt_AR_FLAGS
20890 # A language-specific compiler.
20891 CC=$lt_compiler_GCJ
20893 # Is the compiler the GNU C compiler?
20899 # The linker used to build libraries.
20902 # Whether we need hard or soft links.
20905 # A BSD-compatible nm program.
20908 # A symbol stripping program
20911 # Used to examine libraries when file_magic_cmd begins "file"
20912 MAGIC_CMD=$MAGIC_CMD
20914 # Used on cygwin: DLL creation program.
20917 # Used on cygwin: object dumper.
20920 # Used on cygwin: assembler.
20923 # The name of the directory that contains temporary libtool files.
20926 # How to create reloadable object files.
20927 reload_flag=$lt_reload_flag
20928 reload_cmds=$lt_reload_cmds
20930 # How to pass a linker flag through the compiler.
20931 wl=$lt_lt_prog_compiler_wl_GCJ
20933 # Object file suffix (normally "o").
20934 objext="$ac_objext"
20936 # Old archive suffix (normally "a").
20939 # Shared library suffix (normally ".so").
20940 shrext_cmds='$shrext_cmds'
20942 # Executable file suffix (normally "").
20945 # Additional compiler flags for building library objects.
20946 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20949 # What is the maximum length of a command?
20950 max_cmd_len=$lt_cv_sys_max_cmd_len
20952 # Does compiler simultaneously support -c and -o options?
20953 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20955 # Must we lock files when doing compilation?
20956 need_locks=$lt_need_locks
20958 # Do we need the lib prefix for modules?
20959 need_lib_prefix=$need_lib_prefix
20961 # Do we need a version for libraries?
20962 need_version=$need_version
20964 # Whether dlopen is supported.
20965 dlopen_support=$enable_dlopen
20967 # Whether dlopen of programs is supported.
20968 dlopen_self=$enable_dlopen_self
20970 # Whether dlopen of statically linked programs is supported.
20971 dlopen_self_static=$enable_dlopen_self_static
20973 # Compiler flag to prevent dynamic linking.
20974 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20976 # Compiler flag to turn off builtin functions.
20977 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20979 # Compiler flag to allow reflexive dlopens.
20980 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20982 # Compiler flag to generate shared objects directly from archives.
20983 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20985 # Compiler flag to generate thread-safe objects.
20986 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20988 # Library versioning type.
20989 version_type=$version_type
20991 # Format of library name prefix.
20992 libname_spec=$lt_libname_spec
20994 # List of archive names. First name is the real one, the rest are links.
20995 # The last name is the one that the linker finds with -lNAME.
20996 library_names_spec=$lt_library_names_spec
20998 # The coded name of the library, if different from the real name.
20999 soname_spec=$lt_soname_spec
21001 # Commands used to build and install an old-style archive.
21003 old_archive_cmds=$lt_old_archive_cmds_GCJ
21004 old_postinstall_cmds=$lt_old_postinstall_cmds
21005 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21007 # Create an old-style archive from a shared archive.
21008 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21010 # Create a temporary old-style archive to link instead of a shared archive.
21011 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21013 # Commands used to build and install a shared archive.
21014 archive_cmds=$lt_archive_cmds_GCJ
21015 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21016 postinstall_cmds=$lt_postinstall_cmds
21017 postuninstall_cmds=$lt_postuninstall_cmds
21019 # Commands used to build a loadable module (assumed same as above if empty)
21020 module_cmds=$lt_module_cmds_GCJ
21021 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21023 # Commands to strip libraries.
21024 old_striplib=$lt_old_striplib
21025 striplib=$lt_striplib
21027 # Dependencies to place before the objects being linked to create a
21029 predep_objects=$lt_predep_objects_GCJ
21031 # Dependencies to place after the objects being linked to create a
21033 postdep_objects=$lt_postdep_objects_GCJ
21035 # Dependencies to place before the objects being linked to create a
21037 predeps=$lt_predeps_GCJ
21039 # Dependencies to place after the objects being linked to create a
21041 postdeps=$lt_postdeps_GCJ
21043 # The library search path used internally by the compiler when linking
21044 # a shared library.
21045 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21047 # Method to check whether dependent libraries are shared objects.
21048 deplibs_check_method=$lt_deplibs_check_method
21050 # Command to use when deplibs_check_method == file_magic.
21051 file_magic_cmd=$lt_file_magic_cmd
21053 # Flag that allows shared libraries with undefined symbols to be built.
21054 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21056 # Flag that forces no undefined symbols.
21057 no_undefined_flag=$lt_no_undefined_flag_GCJ
21059 # Commands used to finish a libtool library installation in a directory.
21060 finish_cmds=$lt_finish_cmds
21062 # Same as above, but a single script fragment to be evaled but not shown.
21063 finish_eval=$lt_finish_eval
21065 # Take the output of nm and produce a listing of raw symbols and C names.
21066 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21068 # Transform the output of nm in a proper C declaration
21069 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21071 # Transform the output of nm in a C name address pair
21072 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21074 # This is the shared library runtime path variable.
21075 runpath_var=$runpath_var
21077 # This is the shared library path variable.
21078 shlibpath_var=$shlibpath_var
21080 # Is shlibpath searched before the hard-coded library search path?
21081 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21083 # How to hardcode a shared library path into an executable.
21084 hardcode_action=$hardcode_action_GCJ
21086 # Whether we should hardcode library paths into libraries.
21087 hardcode_into_libs=$hardcode_into_libs
21089 # Flag to hardcode \$libdir into a binary during linking.
21090 # This must work even if \$libdir does not exist.
21091 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
21093 # If ld is used when linking, flag to hardcode \$libdir into
21094 # a binary during linking. This must work even if \$libdir does
21096 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
21098 # Whether we need a single -rpath flag with a separated argument.
21099 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
21101 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21102 # resulting binary.
21103 hardcode_direct=$hardcode_direct_GCJ
21105 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21106 # resulting binary.
21107 hardcode_minus_L=$hardcode_minus_L_GCJ
21109 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21110 # the resulting binary.
21111 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
21113 # Set to yes if building a shared library automatically hardcodes DIR into the library
21114 # and all subsequent libraries and executables linked against it.
21115 hardcode_automatic=$hardcode_automatic_GCJ
21117 # Variables whose values should be saved in libtool wrapper scripts and
21118 # restored at relink time.
21119 variables_saved_for_relink="$variables_saved_for_relink"
21121 # Whether libtool must link a program against all its dependency libraries.
21122 link_all_deplibs=$link_all_deplibs_GCJ
21124 # Compile-time system search path for libraries
21125 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21127 # Run-time system search path for libraries
21128 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21130 # Fix the shell variable \$srcfile for the compiler.
21131 fix_srcfile_path="$fix_srcfile_path_GCJ"
21133 # Set to yes if exported symbols are required.
21134 always_export_symbols=$always_export_symbols_GCJ
21136 # The commands to list exported symbols.
21137 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
21139 # The commands to extract the exported symbol list from a shared archive.
21140 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21142 # Symbols that should not be listed in the preloaded symbols.
21143 exclude_expsyms=$lt_exclude_expsyms_GCJ
21145 # Symbols that must always be exported.
21146 include_expsyms=$lt_include_expsyms_GCJ
21148 # ### END LIBTOOL TAG CONFIG: $tagname
21154 # If there is no Makefile yet, we rely on a make rule to execute
21155 # `config.status --recheck' to rerun these tests and create the
21156 # libtool script then.
21157 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21158 if test -f "$ltmain_in"; then
21159 test -f Makefile && make "$ltmain"
21165 ac_cpp='$CPP $CPPFLAGS'
21166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21181 # Source file extension for RC test sources.
21184 # Object file extension for compiled RC test sources.
21188 # Code to be used in simple compile tests
21189 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
21191 # Code to be used in simple link tests
21192 lt_simple_link_test_code="$lt_simple_compile_test_code"
21194 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21196 # If no C compiler was specified, use CC.
21199 # Allow CC to be a program name with arguments.
21203 # save warnings/boilerplate of simple test code
21204 ac_outfile=conftest.$ac_objext
21205 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
21206 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21207 _lt_compiler_boilerplate=`cat conftest.err`
21210 ac_outfile=conftest.$ac_objext
21211 printf "$lt_simple_link_test_code" >conftest.$ac_ext
21212 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
21213 _lt_linker_boilerplate=`cat conftest.err`
21217 # Allow CC to be a program name with arguments.
21222 for cc_temp in $compiler""; do
21224 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21225 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21230 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21232 lt_cv_prog_compiler_c_o_RC=yes
21234 # The else clause should only fire when bootstrapping the
21235 # libtool distribution, otherwise you forgot to ship ltmain.sh
21236 # with your package, and you will get complaints that there are
21237 # no rules to generate ltmain.sh.
21238 if test -f "$ltmain"; then
21239 # See if we are running on zsh, and set the options which allow our commands through
21240 # without removal of \ escapes.
21241 if test -n "${ZSH_VERSION+set}" ; then
21242 setopt NO_GLOB_SUBST
21244 # Now quote all the things that may contain metacharacters while being
21245 # careful not to overquote the AC_SUBSTed values. We take copies of the
21246 # variables and quote the copies for generation of the libtool script.
21247 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
21249 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21250 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21251 deplibs_check_method reload_flag reload_cmds need_locks \
21252 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21253 lt_cv_sys_global_symbol_to_c_name_address \
21254 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21255 old_postinstall_cmds old_postuninstall_cmds \
21259 lt_prog_compiler_wl_RC \
21260 lt_prog_compiler_pic_RC \
21261 lt_prog_compiler_static_RC \
21262 lt_prog_compiler_no_builtin_flag_RC \
21263 export_dynamic_flag_spec_RC \
21264 thread_safe_flag_spec_RC \
21265 whole_archive_flag_spec_RC \
21266 enable_shared_with_static_runtimes_RC \
21267 old_archive_cmds_RC \
21268 old_archive_from_new_cmds_RC \
21269 predep_objects_RC \
21270 postdep_objects_RC \
21273 compiler_lib_search_path_RC \
21275 archive_expsym_cmds_RC \
21276 postinstall_cmds_RC \
21277 postuninstall_cmds_RC \
21278 old_archive_from_expsyms_cmds_RC \
21279 allow_undefined_flag_RC \
21280 no_undefined_flag_RC \
21281 export_symbols_cmds_RC \
21282 hardcode_libdir_flag_spec_RC \
21283 hardcode_libdir_flag_spec_ld_RC \
21284 hardcode_libdir_separator_RC \
21285 hardcode_automatic_RC \
21287 module_expsym_cmds_RC \
21288 lt_cv_prog_compiler_c_o_RC \
21289 exclude_expsyms_RC \
21290 include_expsyms_RC; do
21293 old_archive_cmds_RC | \
21294 old_archive_from_new_cmds_RC | \
21295 archive_cmds_RC | \
21296 archive_expsym_cmds_RC | \
21298 module_expsym_cmds_RC | \
21299 old_archive_from_expsyms_cmds_RC | \
21300 export_symbols_cmds_RC | \
21301 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21302 postinstall_cmds | postuninstall_cmds | \
21303 old_postinstall_cmds | old_postuninstall_cmds | \
21304 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21305 # Double-quote double-evaled strings.
21306 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21309 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21315 *'\$0 --fallback-echo"')
21316 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21322 cat <<__EOF__ >> "$cfgfile"
21323 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21325 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21327 # Shell to use when invoking shell scripts.
21330 # Whether or not to build shared libraries.
21331 build_libtool_libs=$enable_shared
21333 # Whether or not to build static libraries.
21334 build_old_libs=$enable_static
21336 # Whether or not to add -lc for building shared libraries.
21337 build_libtool_need_lc=$archive_cmds_need_lc_RC
21339 # Whether or not to disallow shared libs when runtime libs are static
21340 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
21342 # Whether or not to optimize for fast installation.
21343 fast_install=$enable_fast_install
21346 host_alias=$host_alias
21350 # The build system.
21351 build_alias=$build_alias
21355 # An echo program that does not interpret backslashes.
21360 AR_FLAGS=$lt_AR_FLAGS
21365 # A language-specific compiler.
21368 # Is the compiler the GNU C compiler?
21374 # The linker used to build libraries.
21377 # Whether we need hard or soft links.
21380 # A BSD-compatible nm program.
21383 # A symbol stripping program
21386 # Used to examine libraries when file_magic_cmd begins "file"
21387 MAGIC_CMD=$MAGIC_CMD
21389 # Used on cygwin: DLL creation program.
21392 # Used on cygwin: object dumper.
21395 # Used on cygwin: assembler.
21398 # The name of the directory that contains temporary libtool files.
21401 # How to create reloadable object files.
21402 reload_flag=$lt_reload_flag
21403 reload_cmds=$lt_reload_cmds
21405 # How to pass a linker flag through the compiler.
21406 wl=$lt_lt_prog_compiler_wl_RC
21408 # Object file suffix (normally "o").
21409 objext="$ac_objext"
21411 # Old archive suffix (normally "a").
21414 # Shared library suffix (normally ".so").
21415 shrext_cmds='$shrext_cmds'
21417 # Executable file suffix (normally "").
21420 # Additional compiler flags for building library objects.
21421 pic_flag=$lt_lt_prog_compiler_pic_RC
21424 # What is the maximum length of a command?
21425 max_cmd_len=$lt_cv_sys_max_cmd_len
21427 # Does compiler simultaneously support -c and -o options?
21428 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
21430 # Must we lock files when doing compilation?
21431 need_locks=$lt_need_locks
21433 # Do we need the lib prefix for modules?
21434 need_lib_prefix=$need_lib_prefix
21436 # Do we need a version for libraries?
21437 need_version=$need_version
21439 # Whether dlopen is supported.
21440 dlopen_support=$enable_dlopen
21442 # Whether dlopen of programs is supported.
21443 dlopen_self=$enable_dlopen_self
21445 # Whether dlopen of statically linked programs is supported.
21446 dlopen_self_static=$enable_dlopen_self_static
21448 # Compiler flag to prevent dynamic linking.
21449 link_static_flag=$lt_lt_prog_compiler_static_RC
21451 # Compiler flag to turn off builtin functions.
21452 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
21454 # Compiler flag to allow reflexive dlopens.
21455 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
21457 # Compiler flag to generate shared objects directly from archives.
21458 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
21460 # Compiler flag to generate thread-safe objects.
21461 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
21463 # Library versioning type.
21464 version_type=$version_type
21466 # Format of library name prefix.
21467 libname_spec=$lt_libname_spec
21469 # List of archive names. First name is the real one, the rest are links.
21470 # The last name is the one that the linker finds with -lNAME.
21471 library_names_spec=$lt_library_names_spec
21473 # The coded name of the library, if different from the real name.
21474 soname_spec=$lt_soname_spec
21476 # Commands used to build and install an old-style archive.
21478 old_archive_cmds=$lt_old_archive_cmds_RC
21479 old_postinstall_cmds=$lt_old_postinstall_cmds
21480 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21482 # Create an old-style archive from a shared archive.
21483 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
21485 # Create a temporary old-style archive to link instead of a shared archive.
21486 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
21488 # Commands used to build and install a shared archive.
21489 archive_cmds=$lt_archive_cmds_RC
21490 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
21491 postinstall_cmds=$lt_postinstall_cmds
21492 postuninstall_cmds=$lt_postuninstall_cmds
21494 # Commands used to build a loadable module (assumed same as above if empty)
21495 module_cmds=$lt_module_cmds_RC
21496 module_expsym_cmds=$lt_module_expsym_cmds_RC
21498 # Commands to strip libraries.
21499 old_striplib=$lt_old_striplib
21500 striplib=$lt_striplib
21502 # Dependencies to place before the objects being linked to create a
21504 predep_objects=$lt_predep_objects_RC
21506 # Dependencies to place after the objects being linked to create a
21508 postdep_objects=$lt_postdep_objects_RC
21510 # Dependencies to place before the objects being linked to create a
21512 predeps=$lt_predeps_RC
21514 # Dependencies to place after the objects being linked to create a
21516 postdeps=$lt_postdeps_RC
21518 # The library search path used internally by the compiler when linking
21519 # a shared library.
21520 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
21522 # Method to check whether dependent libraries are shared objects.
21523 deplibs_check_method=$lt_deplibs_check_method
21525 # Command to use when deplibs_check_method == file_magic.
21526 file_magic_cmd=$lt_file_magic_cmd
21528 # Flag that allows shared libraries with undefined symbols to be built.
21529 allow_undefined_flag=$lt_allow_undefined_flag_RC
21531 # Flag that forces no undefined symbols.
21532 no_undefined_flag=$lt_no_undefined_flag_RC
21534 # Commands used to finish a libtool library installation in a directory.
21535 finish_cmds=$lt_finish_cmds
21537 # Same as above, but a single script fragment to be evaled but not shown.
21538 finish_eval=$lt_finish_eval
21540 # Take the output of nm and produce a listing of raw symbols and C names.
21541 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21543 # Transform the output of nm in a proper C declaration
21544 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21546 # Transform the output of nm in a C name address pair
21547 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21549 # This is the shared library runtime path variable.
21550 runpath_var=$runpath_var
21552 # This is the shared library path variable.
21553 shlibpath_var=$shlibpath_var
21555 # Is shlibpath searched before the hard-coded library search path?
21556 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21558 # How to hardcode a shared library path into an executable.
21559 hardcode_action=$hardcode_action_RC
21561 # Whether we should hardcode library paths into libraries.
21562 hardcode_into_libs=$hardcode_into_libs
21564 # Flag to hardcode \$libdir into a binary during linking.
21565 # This must work even if \$libdir does not exist.
21566 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
21568 # If ld is used when linking, flag to hardcode \$libdir into
21569 # a binary during linking. This must work even if \$libdir does
21571 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
21573 # Whether we need a single -rpath flag with a separated argument.
21574 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
21576 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21577 # resulting binary.
21578 hardcode_direct=$hardcode_direct_RC
21580 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21581 # resulting binary.
21582 hardcode_minus_L=$hardcode_minus_L_RC
21584 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21585 # the resulting binary.
21586 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21588 # Set to yes if building a shared library automatically hardcodes DIR into the library
21589 # and all subsequent libraries and executables linked against it.
21590 hardcode_automatic=$hardcode_automatic_RC
21592 # Variables whose values should be saved in libtool wrapper scripts and
21593 # restored at relink time.
21594 variables_saved_for_relink="$variables_saved_for_relink"
21596 # Whether libtool must link a program against all its dependency libraries.
21597 link_all_deplibs=$link_all_deplibs_RC
21599 # Compile-time system search path for libraries
21600 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21602 # Run-time system search path for libraries
21603 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21605 # Fix the shell variable \$srcfile for the compiler.
21606 fix_srcfile_path="$fix_srcfile_path_RC"
21608 # Set to yes if exported symbols are required.
21609 always_export_symbols=$always_export_symbols_RC
21611 # The commands to list exported symbols.
21612 export_symbols_cmds=$lt_export_symbols_cmds_RC
21614 # The commands to extract the exported symbol list from a shared archive.
21615 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21617 # Symbols that should not be listed in the preloaded symbols.
21618 exclude_expsyms=$lt_exclude_expsyms_RC
21620 # Symbols that must always be exported.
21621 include_expsyms=$lt_include_expsyms_RC
21623 # ### END LIBTOOL TAG CONFIG: $tagname
21629 # If there is no Makefile yet, we rely on a make rule to execute
21630 # `config.status --recheck' to rerun these tests and create the
21631 # libtool script then.
21632 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21633 if test -f "$ltmain_in"; then
21634 test -f Makefile && make "$ltmain"
21640 ac_cpp='$CPP $CPPFLAGS'
21641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21650 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21651 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21652 { (exit 1); exit 1; }; }
21656 # Append the new tag name to the list of available tags.
21657 if test -n "$tagname" ; then
21658 available_tags="$available_tags $tagname"
21664 # Now substitute the updated list of available tags.
21665 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21666 mv "${ofile}T" "$ofile"
21670 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21671 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21672 { (exit 1); exit 1; }; }
21678 # This can be used to rebuild libtool when needed
21679 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21681 # Always use our own libtool.
21682 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21684 # Prevent multiple expansion
21707 if test $ol_enable_perl != no ; then
21708 # Extract the first word of "perl", so it can be a program name with args.
21709 set dummy perl; ac_word=$2
21710 echo "$as_me:$LINENO: checking for $ac_word" >&5
21711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21712 if test "${ac_cv_path_PERLBIN+set}" = set; then
21713 echo $ECHO_N "(cached) $ECHO_C" >&6
21717 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
21720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21721 for as_dir in $PATH
21724 test -z "$as_dir" && as_dir=.
21725 for ac_exec_ext in '' $ac_executable_extensions; do
21726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21727 ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
21728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21734 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
21738 PERLBIN=$ac_cv_path_PERLBIN
21740 if test -n "$PERLBIN"; then
21741 echo "$as_me:$LINENO: result: $PERLBIN" >&5
21742 echo "${ECHO_T}$PERLBIN" >&6
21744 echo "$as_me:$LINENO: result: no" >&5
21745 echo "${ECHO_T}no" >&6
21749 if test "no$PERLBIN" = "no" ; then
21750 if test $ol_enable_perl = yes ; then
21751 { { echo "$as_me:$LINENO: error: could not locate perl" >&5
21752 echo "$as_me: error: could not locate perl" >&2;}
21753 { (exit 1); exit 1; }; }
21757 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
21758 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
21760 if test x"$ol_enable_perl" = "xyes" ; then
21761 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
21763 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
21770 ac_cpp='$CPP $CPPFLAGS'
21771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21774 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
21775 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
21776 # On Suns, sometimes $CPP names a directory.
21777 if test -n "$CPP" && test -d "$CPP"; then
21780 if test -z "$CPP"; then
21781 if test "${ac_cv_prog_CPP+set}" = set; then
21782 echo $ECHO_N "(cached) $ECHO_C" >&6
21784 # Double quotes because CPP needs to be expanded
21785 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
21787 ac_preproc_ok=false
21788 for ac_c_preproc_warn_flag in '' yes
21790 # Use a header file that comes with gcc, so configuring glibc
21791 # with a fresh cross-compiler works.
21792 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21793 # <limits.h> exists even on freestanding compilers.
21794 # On the NeXT, cc -E runs the code through the compiler's parser,
21795 # not just through cpp. "Syntax error" is here to catch this case.
21796 cat >conftest.$ac_ext <<_ACEOF
21799 cat confdefs.h >>conftest.$ac_ext
21800 cat >>conftest.$ac_ext <<_ACEOF
21801 /* end confdefs.h. */
21803 # include <limits.h>
21805 # include <assert.h>
21809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21812 grep -v '^ *+' conftest.er1 >conftest.err
21814 cat conftest.err >&5
21815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21816 (exit $ac_status); } >/dev/null; then
21817 if test -s conftest.err; then
21818 ac_cpp_err=$ac_c_preproc_warn_flag
21819 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21826 if test -z "$ac_cpp_err"; then
21829 echo "$as_me: failed program was:" >&5
21830 sed 's/^/| /' conftest.$ac_ext >&5
21832 # Broken: fails on valid input.
21835 rm -f conftest.err conftest.$ac_ext
21837 # OK, works on sane cases. Now check whether non-existent headers
21838 # can be detected and how.
21839 cat >conftest.$ac_ext <<_ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h. */
21845 #include <ac_nonexistent.h>
21847 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21848 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21850 grep -v '^ *+' conftest.er1 >conftest.err
21852 cat conftest.err >&5
21853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21854 (exit $ac_status); } >/dev/null; then
21855 if test -s conftest.err; then
21856 ac_cpp_err=$ac_c_preproc_warn_flag
21857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21864 if test -z "$ac_cpp_err"; then
21865 # Broken: success on invalid input.
21868 echo "$as_me: failed program was:" >&5
21869 sed 's/^/| /' conftest.$ac_ext >&5
21871 # Passes both tests.
21875 rm -f conftest.err conftest.$ac_ext
21878 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21879 rm -f conftest.err conftest.$ac_ext
21880 if $ac_preproc_ok; then
21885 ac_cv_prog_CPP=$CPP
21888 CPP=$ac_cv_prog_CPP
21890 ac_cv_prog_CPP=$CPP
21892 echo "$as_me:$LINENO: result: $CPP" >&5
21893 echo "${ECHO_T}$CPP" >&6
21894 ac_preproc_ok=false
21895 for ac_c_preproc_warn_flag in '' yes
21897 # Use a header file that comes with gcc, so configuring glibc
21898 # with a fresh cross-compiler works.
21899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21900 # <limits.h> exists even on freestanding compilers.
21901 # On the NeXT, cc -E runs the code through the compiler's parser,
21902 # not just through cpp. "Syntax error" is here to catch this case.
21903 cat >conftest.$ac_ext <<_ACEOF
21906 cat confdefs.h >>conftest.$ac_ext
21907 cat >>conftest.$ac_ext <<_ACEOF
21908 /* end confdefs.h. */
21910 # include <limits.h>
21912 # include <assert.h>
21916 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21919 grep -v '^ *+' conftest.er1 >conftest.err
21921 cat conftest.err >&5
21922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21923 (exit $ac_status); } >/dev/null; then
21924 if test -s conftest.err; then
21925 ac_cpp_err=$ac_c_preproc_warn_flag
21926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21933 if test -z "$ac_cpp_err"; then
21936 echo "$as_me: failed program was:" >&5
21937 sed 's/^/| /' conftest.$ac_ext >&5
21939 # Broken: fails on valid input.
21942 rm -f conftest.err conftest.$ac_ext
21944 # OK, works on sane cases. Now check whether non-existent headers
21945 # can be detected and how.
21946 cat >conftest.$ac_ext <<_ACEOF
21949 cat confdefs.h >>conftest.$ac_ext
21950 cat >>conftest.$ac_ext <<_ACEOF
21951 /* end confdefs.h. */
21952 #include <ac_nonexistent.h>
21954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21957 grep -v '^ *+' conftest.er1 >conftest.err
21959 cat conftest.err >&5
21960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961 (exit $ac_status); } >/dev/null; then
21962 if test -s conftest.err; then
21963 ac_cpp_err=$ac_c_preproc_warn_flag
21964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21971 if test -z "$ac_cpp_err"; then
21972 # Broken: success on invalid input.
21975 echo "$as_me: failed program was:" >&5
21976 sed 's/^/| /' conftest.$ac_ext >&5
21978 # Passes both tests.
21982 rm -f conftest.err conftest.$ac_ext
21985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
21986 rm -f conftest.err conftest.$ac_ext
21987 if $ac_preproc_ok; then
21990 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
21991 See \`config.log' for more details." >&5
21992 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
21993 See \`config.log' for more details." >&2;}
21994 { (exit 1); exit 1; }; }
21998 ac_cpp='$CPP $CPPFLAGS'
21999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22008 cat >>confdefs.h <<_ACEOF
22009 #define EXEEXT "${EXEEXT}"
22013 echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
22014 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6
22015 if test "${ac_cv_lib_be_be_app+set}" = set; then
22016 echo $ECHO_N "(cached) $ECHO_C" >&6
22018 ac_check_lib_save_LIBS=$LIBS
22019 LIBS="-lbe -lroot -lnet $LIBS"
22020 cat >conftest.$ac_ext <<_ACEOF
22023 cat confdefs.h >>conftest.$ac_ext
22024 cat >>conftest.$ac_ext <<_ACEOF
22025 /* end confdefs.h. */
22027 /* Override any gcc2 internal prototype to avoid an error. */
22031 /* We use char because int might match the return type of a gcc2
22032 builtin and then its argument prototype would still apply. */
22042 rm -f conftest.$ac_objext conftest$ac_exeext
22043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22044 (eval $ac_link) 2>conftest.er1
22046 grep -v '^ *+' conftest.er1 >conftest.err
22048 cat conftest.err >&5
22049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22050 (exit $ac_status); } &&
22051 { ac_try='test -z "$ac_c_werror_flag"
22052 || test ! -s conftest.err'
22053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22054 (eval $ac_try) 2>&5
22056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22057 (exit $ac_status); }; } &&
22058 { ac_try='test -s conftest$ac_exeext'
22059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22060 (eval $ac_try) 2>&5
22062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22063 (exit $ac_status); }; }; then
22064 ac_cv_lib_be_be_app=yes
22066 echo "$as_me: failed program was:" >&5
22067 sed 's/^/| /' conftest.$ac_ext >&5
22069 ac_cv_lib_be_be_app=no
22071 rm -f conftest.err conftest.$ac_objext \
22072 conftest$ac_exeext conftest.$ac_ext
22073 LIBS=$ac_check_lib_save_LIBS
22075 echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
22076 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6
22077 if test $ac_cv_lib_be_be_app = yes; then
22078 LIBS="$LIBS -lbe -lroot -lnet"
22085 ac_cpp='$CPP $CPPFLAGS'
22086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22089 if test -n "$ac_tool_prefix"; then
22090 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
22091 set dummy ${ac_tool_prefix}gcc; ac_word=$2
22092 echo "$as_me:$LINENO: checking for $ac_word" >&5
22093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22094 if test "${ac_cv_prog_CC+set}" = set; then
22095 echo $ECHO_N "(cached) $ECHO_C" >&6
22097 if test -n "$CC"; then
22098 ac_cv_prog_CC="$CC" # Let the user override the test.
22100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22101 for as_dir in $PATH
22104 test -z "$as_dir" && as_dir=.
22105 for ac_exec_ext in '' $ac_executable_extensions; do
22106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22107 ac_cv_prog_CC="${ac_tool_prefix}gcc"
22108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22117 if test -n "$CC"; then
22118 echo "$as_me:$LINENO: result: $CC" >&5
22119 echo "${ECHO_T}$CC" >&6
22121 echo "$as_me:$LINENO: result: no" >&5
22122 echo "${ECHO_T}no" >&6
22126 if test -z "$ac_cv_prog_CC"; then
22128 # Extract the first word of "gcc", so it can be a program name with args.
22129 set dummy gcc; ac_word=$2
22130 echo "$as_me:$LINENO: checking for $ac_word" >&5
22131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22132 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22133 echo $ECHO_N "(cached) $ECHO_C" >&6
22135 if test -n "$ac_ct_CC"; then
22136 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22139 for as_dir in $PATH
22142 test -z "$as_dir" && as_dir=.
22143 for ac_exec_ext in '' $ac_executable_extensions; do
22144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22145 ac_cv_prog_ac_ct_CC="gcc"
22146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22154 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22155 if test -n "$ac_ct_CC"; then
22156 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22157 echo "${ECHO_T}$ac_ct_CC" >&6
22159 echo "$as_me:$LINENO: result: no" >&5
22160 echo "${ECHO_T}no" >&6
22165 CC="$ac_cv_prog_CC"
22168 if test -z "$CC"; then
22169 if test -n "$ac_tool_prefix"; then
22170 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
22171 set dummy ${ac_tool_prefix}cc; ac_word=$2
22172 echo "$as_me:$LINENO: checking for $ac_word" >&5
22173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22174 if test "${ac_cv_prog_CC+set}" = set; then
22175 echo $ECHO_N "(cached) $ECHO_C" >&6
22177 if test -n "$CC"; then
22178 ac_cv_prog_CC="$CC" # Let the user override the test.
22180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22181 for as_dir in $PATH
22184 test -z "$as_dir" && as_dir=.
22185 for ac_exec_ext in '' $ac_executable_extensions; do
22186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22187 ac_cv_prog_CC="${ac_tool_prefix}cc"
22188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22197 if test -n "$CC"; then
22198 echo "$as_me:$LINENO: result: $CC" >&5
22199 echo "${ECHO_T}$CC" >&6
22201 echo "$as_me:$LINENO: result: no" >&5
22202 echo "${ECHO_T}no" >&6
22206 if test -z "$ac_cv_prog_CC"; then
22208 # Extract the first word of "cc", so it can be a program name with args.
22209 set dummy cc; ac_word=$2
22210 echo "$as_me:$LINENO: checking for $ac_word" >&5
22211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22212 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22213 echo $ECHO_N "(cached) $ECHO_C" >&6
22215 if test -n "$ac_ct_CC"; then
22216 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22219 for as_dir in $PATH
22222 test -z "$as_dir" && as_dir=.
22223 for ac_exec_ext in '' $ac_executable_extensions; do
22224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22225 ac_cv_prog_ac_ct_CC="cc"
22226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22234 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22235 if test -n "$ac_ct_CC"; then
22236 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22237 echo "${ECHO_T}$ac_ct_CC" >&6
22239 echo "$as_me:$LINENO: result: no" >&5
22240 echo "${ECHO_T}no" >&6
22245 CC="$ac_cv_prog_CC"
22249 if test -z "$CC"; then
22250 # Extract the first word of "cc", so it can be a program name with args.
22251 set dummy cc; ac_word=$2
22252 echo "$as_me:$LINENO: checking for $ac_word" >&5
22253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22254 if test "${ac_cv_prog_CC+set}" = set; then
22255 echo $ECHO_N "(cached) $ECHO_C" >&6
22257 if test -n "$CC"; then
22258 ac_cv_prog_CC="$CC" # Let the user override the test.
22260 ac_prog_rejected=no
22261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22262 for as_dir in $PATH
22265 test -z "$as_dir" && as_dir=.
22266 for ac_exec_ext in '' $ac_executable_extensions; do
22267 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22268 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
22269 ac_prog_rejected=yes
22273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22279 if test $ac_prog_rejected = yes; then
22280 # We found a bogon in the path, so make sure we never use it.
22281 set dummy $ac_cv_prog_CC
22283 if test $# != 0; then
22284 # We chose a different compiler from the bogus one.
22285 # However, it has the same basename, so the bogon will be chosen
22286 # first if we set CC to just the basename; use the full file name.
22288 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
22294 if test -n "$CC"; then
22295 echo "$as_me:$LINENO: result: $CC" >&5
22296 echo "${ECHO_T}$CC" >&6
22298 echo "$as_me:$LINENO: result: no" >&5
22299 echo "${ECHO_T}no" >&6
22303 if test -z "$CC"; then
22304 if test -n "$ac_tool_prefix"; then
22307 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22308 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22309 echo "$as_me:$LINENO: checking for $ac_word" >&5
22310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22311 if test "${ac_cv_prog_CC+set}" = set; then
22312 echo $ECHO_N "(cached) $ECHO_C" >&6
22314 if test -n "$CC"; then
22315 ac_cv_prog_CC="$CC" # Let the user override the test.
22317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22318 for as_dir in $PATH
22321 test -z "$as_dir" && as_dir=.
22322 for ac_exec_ext in '' $ac_executable_extensions; do
22323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22324 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
22325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22334 if test -n "$CC"; then
22335 echo "$as_me:$LINENO: result: $CC" >&5
22336 echo "${ECHO_T}$CC" >&6
22338 echo "$as_me:$LINENO: result: no" >&5
22339 echo "${ECHO_T}no" >&6
22342 test -n "$CC" && break
22345 if test -z "$CC"; then
22349 # Extract the first word of "$ac_prog", so it can be a program name with args.
22350 set dummy $ac_prog; ac_word=$2
22351 echo "$as_me:$LINENO: checking for $ac_word" >&5
22352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22353 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
22354 echo $ECHO_N "(cached) $ECHO_C" >&6
22356 if test -n "$ac_ct_CC"; then
22357 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
22359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22360 for as_dir in $PATH
22363 test -z "$as_dir" && as_dir=.
22364 for ac_exec_ext in '' $ac_executable_extensions; do
22365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22366 ac_cv_prog_ac_ct_CC="$ac_prog"
22367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22375 ac_ct_CC=$ac_cv_prog_ac_ct_CC
22376 if test -n "$ac_ct_CC"; then
22377 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
22378 echo "${ECHO_T}$ac_ct_CC" >&6
22380 echo "$as_me:$LINENO: result: no" >&5
22381 echo "${ECHO_T}no" >&6
22384 test -n "$ac_ct_CC" && break
22393 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
22394 See \`config.log' for more details." >&5
22395 echo "$as_me: error: no acceptable C compiler found in \$PATH
22396 See \`config.log' for more details." >&2;}
22397 { (exit 1); exit 1; }; }
22399 # Provide some information about the compiler.
22400 echo "$as_me:$LINENO:" \
22401 "checking for C compiler version" >&5
22402 ac_compiler=`set X $ac_compile; echo $2`
22403 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
22404 (eval $ac_compiler --version </dev/null >&5) 2>&5
22406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); }
22408 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
22409 (eval $ac_compiler -v </dev/null >&5) 2>&5
22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); }
22413 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
22414 (eval $ac_compiler -V </dev/null >&5) 2>&5
22416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22417 (exit $ac_status); }
22419 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
22420 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
22421 if test "${ac_cv_c_compiler_gnu+set}" = set; then
22422 echo $ECHO_N "(cached) $ECHO_C" >&6
22424 cat >conftest.$ac_ext <<_ACEOF
22427 cat confdefs.h >>conftest.$ac_ext
22428 cat >>conftest.$ac_ext <<_ACEOF
22429 /* end confdefs.h. */
22442 rm -f conftest.$ac_objext
22443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22444 (eval $ac_compile) 2>conftest.er1
22446 grep -v '^ *+' conftest.er1 >conftest.err
22448 cat conftest.err >&5
22449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22450 (exit $ac_status); } &&
22451 { ac_try='test -z "$ac_c_werror_flag"
22452 || test ! -s conftest.err'
22453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22454 (eval $ac_try) 2>&5
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); }; } &&
22458 { ac_try='test -s conftest.$ac_objext'
22459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22460 (eval $ac_try) 2>&5
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); }; }; then
22464 ac_compiler_gnu=yes
22466 echo "$as_me: failed program was:" >&5
22467 sed 's/^/| /' conftest.$ac_ext >&5
22471 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22472 ac_cv_c_compiler_gnu=$ac_compiler_gnu
22475 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
22476 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
22477 GCC=`test $ac_compiler_gnu = yes && echo yes`
22478 ac_test_CFLAGS=${CFLAGS+set}
22479 ac_save_CFLAGS=$CFLAGS
22481 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
22482 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
22483 if test "${ac_cv_prog_cc_g+set}" = set; then
22484 echo $ECHO_N "(cached) $ECHO_C" >&6
22486 cat >conftest.$ac_ext <<_ACEOF
22489 cat confdefs.h >>conftest.$ac_ext
22490 cat >>conftest.$ac_ext <<_ACEOF
22491 /* end confdefs.h. */
22501 rm -f conftest.$ac_objext
22502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22503 (eval $ac_compile) 2>conftest.er1
22505 grep -v '^ *+' conftest.er1 >conftest.err
22507 cat conftest.err >&5
22508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509 (exit $ac_status); } &&
22510 { ac_try='test -z "$ac_c_werror_flag"
22511 || test ! -s conftest.err'
22512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22513 (eval $ac_try) 2>&5
22515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22516 (exit $ac_status); }; } &&
22517 { ac_try='test -s conftest.$ac_objext'
22518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22519 (eval $ac_try) 2>&5
22521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22522 (exit $ac_status); }; }; then
22523 ac_cv_prog_cc_g=yes
22525 echo "$as_me: failed program was:" >&5
22526 sed 's/^/| /' conftest.$ac_ext >&5
22530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22532 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
22533 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
22534 if test "$ac_test_CFLAGS" = set; then
22535 CFLAGS=$ac_save_CFLAGS
22536 elif test $ac_cv_prog_cc_g = yes; then
22537 if test "$GCC" = yes; then
22543 if test "$GCC" = yes; then
22549 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
22550 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
22551 if test "${ac_cv_prog_cc_stdc+set}" = set; then
22552 echo $ECHO_N "(cached) $ECHO_C" >&6
22554 ac_cv_prog_cc_stdc=no
22556 cat >conftest.$ac_ext <<_ACEOF
22559 cat confdefs.h >>conftest.$ac_ext
22560 cat >>conftest.$ac_ext <<_ACEOF
22561 /* end confdefs.h. */
22562 #include <stdarg.h>
22564 #include <sys/types.h>
22565 #include <sys/stat.h>
22566 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
22567 struct buf { int x; };
22568 FILE * (*rcsopen) (struct buf *, struct stat *, int);
22569 static char *e (p, i)
22575 static char *f (char * (*g) (char **, int), char **p, ...)
22580 s = g (p, va_arg (v,int));
22585 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
22586 function prototypes and stuff, but not '\xHH' hex character constants.
22587 These don't provoke an error unfortunately, instead are silently treated
22588 as 'x'. The following induces an error, until -std1 is added to get
22589 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
22590 array size at least. It's necessary to write '\x00'==0 to get something
22591 that's true only with -std1. */
22592 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
22594 int test (int i, double x);
22595 struct s1 {int (*f) (int a);};
22596 struct s2 {int (*f) (double a);};
22597 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
22603 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
22608 # Don't try gcc -ansi; that turns off useful extensions and
22609 # breaks some systems' header files.
22610 # AIX -qlanglvl=ansi
22611 # Ultrix and OSF/1 -std1
22612 # HP-UX 10.20 and later -Ae
22613 # HP-UX older versions -Aa -D_HPUX_SOURCE
22614 # SVR4 -Xc -D__EXTENSIONS__
22615 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
22617 CC="$ac_save_CC $ac_arg"
22618 rm -f conftest.$ac_objext
22619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22620 (eval $ac_compile) 2>conftest.er1
22622 grep -v '^ *+' conftest.er1 >conftest.err
22624 cat conftest.err >&5
22625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22626 (exit $ac_status); } &&
22627 { ac_try='test -z "$ac_c_werror_flag"
22628 || test ! -s conftest.err'
22629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22630 (eval $ac_try) 2>&5
22632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22633 (exit $ac_status); }; } &&
22634 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
22640 ac_cv_prog_cc_stdc=$ac_arg
22643 echo "$as_me: failed program was:" >&5
22644 sed 's/^/| /' conftest.$ac_ext >&5
22647 rm -f conftest.err conftest.$ac_objext
22649 rm -f conftest.$ac_ext conftest.$ac_objext
22654 case "x$ac_cv_prog_cc_stdc" in
22656 echo "$as_me:$LINENO: result: none needed" >&5
22657 echo "${ECHO_T}none needed" >&6 ;;
22659 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
22660 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
22661 CC="$CC $ac_cv_prog_cc_stdc" ;;
22664 # Some people use a C++ compiler to compile C. Since we use `exit',
22665 # in C++ we need to declare it. In case someone uses the same compiler
22666 # for both compiling C and C++ we need to have the C++ compiler decide
22667 # the declaration of exit, since it's the most demanding environment.
22668 cat >conftest.$ac_ext <<_ACEOF
22669 #ifndef __cplusplus
22673 rm -f conftest.$ac_objext
22674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22675 (eval $ac_compile) 2>conftest.er1
22677 grep -v '^ *+' conftest.er1 >conftest.err
22679 cat conftest.err >&5
22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); } &&
22682 { ac_try='test -z "$ac_c_werror_flag"
22683 || test ! -s conftest.err'
22684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22685 (eval $ac_try) 2>&5
22687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22688 (exit $ac_status); }; } &&
22689 { ac_try='test -s conftest.$ac_objext'
22690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22691 (eval $ac_try) 2>&5
22693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694 (exit $ac_status); }; }; then
22695 for ac_declaration in \
22697 'extern "C" void std::exit (int) throw (); using std::exit;' \
22698 'extern "C" void std::exit (int); using std::exit;' \
22699 'extern "C" void exit (int) throw ();' \
22700 'extern "C" void exit (int);' \
22703 cat >conftest.$ac_ext <<_ACEOF
22706 cat confdefs.h >>conftest.$ac_ext
22707 cat >>conftest.$ac_ext <<_ACEOF
22708 /* end confdefs.h. */
22710 #include <stdlib.h>
22719 rm -f conftest.$ac_objext
22720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22721 (eval $ac_compile) 2>conftest.er1
22723 grep -v '^ *+' conftest.er1 >conftest.err
22725 cat conftest.err >&5
22726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727 (exit $ac_status); } &&
22728 { ac_try='test -z "$ac_c_werror_flag"
22729 || test ! -s conftest.err'
22730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22731 (eval $ac_try) 2>&5
22733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22734 (exit $ac_status); }; } &&
22735 { ac_try='test -s conftest.$ac_objext'
22736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22737 (eval $ac_try) 2>&5
22739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740 (exit $ac_status); }; }; then
22743 echo "$as_me: failed program was:" >&5
22744 sed 's/^/| /' conftest.$ac_ext >&5
22748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22749 cat >conftest.$ac_ext <<_ACEOF
22752 cat confdefs.h >>conftest.$ac_ext
22753 cat >>conftest.$ac_ext <<_ACEOF
22754 /* end confdefs.h. */
22764 rm -f conftest.$ac_objext
22765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22766 (eval $ac_compile) 2>conftest.er1
22768 grep -v '^ *+' conftest.er1 >conftest.err
22770 cat conftest.err >&5
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); } &&
22773 { ac_try='test -z "$ac_c_werror_flag"
22774 || test ! -s conftest.err'
22775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22776 (eval $ac_try) 2>&5
22778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22779 (exit $ac_status); }; } &&
22780 { ac_try='test -s conftest.$ac_objext'
22781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22782 (eval $ac_try) 2>&5
22784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22785 (exit $ac_status); }; }; then
22788 echo "$as_me: failed program was:" >&5
22789 sed 's/^/| /' conftest.$ac_ext >&5
22792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22795 if test -n "$ac_declaration"; then
22796 echo '#ifdef __cplusplus' >>confdefs.h
22797 echo $ac_declaration >>confdefs.h
22798 echo '#endif' >>confdefs.h
22802 echo "$as_me: failed program was:" >&5
22803 sed 's/^/| /' conftest.$ac_ext >&5
22806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22808 ac_cpp='$CPP $CPPFLAGS'
22809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22813 depcc="$CC" am_compiler_list=
22815 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
22816 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
22817 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
22818 echo $ECHO_N "(cached) $ECHO_C" >&6
22820 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22821 # We make a subdir and do the tests there. Otherwise we can end up
22822 # making bogus files that we don't know about and never remove. For
22823 # instance it was reported that on HP-UX the gcc test will end up
22824 # making a dummy file named `D' -- because `-MD' means `put the output
22827 # Copy depcomp to subdir because otherwise we won't find it if we're
22828 # using a relative directory.
22829 cp "$am_depcomp" conftest.dir
22831 # We will build objects and dependencies in a subdirectory because
22832 # it helps to detect inapplicable dependency modes. For instance
22833 # both Tru64's cc and ICC support -MD to output dependencies as a
22834 # side effect of compilation, but ICC will put the dependencies in
22835 # the current directory while Tru64 will put them in the object
22839 am_cv_CC_dependencies_compiler_type=none
22840 if test "$am_compiler_list" = ""; then
22841 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22843 for depmode in $am_compiler_list; do
22844 # Setup a source with many dependencies, because some compilers
22845 # like to wrap large dependency lists on column 80 (with \), and
22846 # we should not choose a depcomp mode which is confused by this.
22848 # We need to recreate these files for each test, as the compiler may
22849 # overwrite some of them when testing with obscure command lines.
22850 # This happens at least with the AIX C compiler.
22852 for i in 1 2 3 4 5 6; do
22853 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22854 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22855 # Solaris 8's {/usr,}/bin/sh.
22856 touch sub/conftst$i.h
22858 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22862 # after this tag, mechanisms are not by side-effect, so they'll
22863 # only be used when explicitly requested
22864 if test "x$enable_dependency_tracking" = xyes; then
22872 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22873 # mode. It turns out that the SunPro C++ compiler does not properly
22874 # handle `-M -o', and we need to detect this.
22875 if depmode=$depmode \
22876 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
22877 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22878 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
22879 >/dev/null 2>conftest.err &&
22880 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22881 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
22882 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22883 # icc doesn't choke on unknown options, it will just issue warnings
22884 # or remarks (even with -Werror). So we grep stderr for any message
22885 # that says an option was ignored or not supported.
22886 # When given -MP, icc 7.0 and 7.1 complain thusly:
22887 # icc: Command line warning: ignoring option '-M'; no argument required
22888 # The diagnosis changed in icc 8.0:
22889 # icc: Command line remark: option '-MP' not supported
22890 if (grep 'ignoring option' conftest.err ||
22891 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22892 am_cv_CC_dependencies_compiler_type=$depmode
22899 rm -rf conftest.dir
22901 am_cv_CC_dependencies_compiler_type=none
22905 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
22906 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
22907 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
22912 test "x$enable_dependency_tracking" != xno \
22913 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
22914 am__fastdepCC_TRUE=
22915 am__fastdepCC_FALSE='#'
22917 am__fastdepCC_TRUE='#'
22918 am__fastdepCC_FALSE=
22922 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
22923 { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
22924 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
22925 { (exit 1); exit 1; }; }
22928 # test for make depend flag
22931 if test -z "${MKDEP}"; then
22932 OL_MKDEP="${CC-cc}"
22933 if test -z "${MKDEP_FLAGS}"; then
22934 echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
22935 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6
22936 if test "${ol_cv_mkdep+set}" = set; then
22937 echo $ECHO_N "(cached) $ECHO_C" >&6
22941 for flag in "-M" "-xM"; do
22942 cat > conftest.c <<EOF
22945 if { ac_try='$OL_MKDEP $flag conftest.c'
22946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22947 (eval $ac_try) 2>&5
22949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22950 (exit $ac_status); }; } \
22951 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
22953 if test ! -f conftest."${ac_object}" ; then
22955 OL_MKDEP_FLAGS="$flag"
22963 echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
22964 echo "${ECHO_T}$ol_cv_mkdep" >&6
22967 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
22971 OL_MKDEP="${MKDEP}"
22972 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
22977 if test "${ol_cv_mkdep}" = no ; then
22978 # this will soon become an error
22979 { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
22980 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
22983 echo "$as_me:$LINENO: checking for afopen in -ls" >&5
22984 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6
22985 if test "${ac_cv_lib_s_afopen+set}" = set; then
22986 echo $ECHO_N "(cached) $ECHO_C" >&6
22988 ac_check_lib_save_LIBS=$LIBS
22990 cat >conftest.$ac_ext <<_ACEOF
22993 cat confdefs.h >>conftest.$ac_ext
22994 cat >>conftest.$ac_ext <<_ACEOF
22995 /* end confdefs.h. */
22997 /* Override any gcc2 internal prototype to avoid an error. */
23001 /* We use char because int might match the return type of a gcc2
23002 builtin and then its argument prototype would still apply. */
23012 rm -f conftest.$ac_objext conftest$ac_exeext
23013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23014 (eval $ac_link) 2>conftest.er1
23016 grep -v '^ *+' conftest.er1 >conftest.err
23018 cat conftest.err >&5
23019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020 (exit $ac_status); } &&
23021 { ac_try='test -z "$ac_c_werror_flag"
23022 || test ! -s conftest.err'
23023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23024 (eval $ac_try) 2>&5
23026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027 (exit $ac_status); }; } &&
23028 { ac_try='test -s conftest$ac_exeext'
23029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23030 (eval $ac_try) 2>&5
23032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23033 (exit $ac_status); }; }; then
23034 ac_cv_lib_s_afopen=yes
23036 echo "$as_me: failed program was:" >&5
23037 sed 's/^/| /' conftest.$ac_ext >&5
23039 ac_cv_lib_s_afopen=no
23041 rm -f conftest.err conftest.$ac_objext \
23042 conftest$ac_exeext conftest.$ac_ext
23043 LIBS=$ac_check_lib_save_LIBS
23045 echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
23046 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6
23047 if test $ac_cv_lib_s_afopen = yes; then
23051 cat >>confdefs.h <<\_ACEOF
23052 #define HAVE_AIX_SECURITY 1
23061 ac_cv_func_getopt=no
23063 cat >>confdefs.h <<\_ACEOF
23064 #define BOTH_STRINGS_H 1
23071 WITH_MODULES_ENABLED=no
23072 if test $ol_enable_modules != no ; then
23074 for ac_header in ltdl.h
23076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23078 echo "$as_me:$LINENO: checking for $ac_header" >&5
23079 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23081 echo $ECHO_N "(cached) $ECHO_C" >&6
23083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23086 # Is the header compilable?
23087 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23089 cat >conftest.$ac_ext <<_ACEOF
23092 cat confdefs.h >>conftest.$ac_ext
23093 cat >>conftest.$ac_ext <<_ACEOF
23094 /* end confdefs.h. */
23095 $ac_includes_default
23096 #include <$ac_header>
23098 rm -f conftest.$ac_objext
23099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23100 (eval $ac_compile) 2>conftest.er1
23102 grep -v '^ *+' conftest.er1 >conftest.err
23104 cat conftest.err >&5
23105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106 (exit $ac_status); } &&
23107 { ac_try='test -z "$ac_c_werror_flag"
23108 || test ! -s conftest.err'
23109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23110 (eval $ac_try) 2>&5
23112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113 (exit $ac_status); }; } &&
23114 { ac_try='test -s conftest.$ac_objext'
23115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23116 (eval $ac_try) 2>&5
23118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119 (exit $ac_status); }; }; then
23120 ac_header_compiler=yes
23122 echo "$as_me: failed program was:" >&5
23123 sed 's/^/| /' conftest.$ac_ext >&5
23125 ac_header_compiler=no
23127 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23128 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23129 echo "${ECHO_T}$ac_header_compiler" >&6
23131 # Is the header present?
23132 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23133 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23134 cat >conftest.$ac_ext <<_ACEOF
23137 cat confdefs.h >>conftest.$ac_ext
23138 cat >>conftest.$ac_ext <<_ACEOF
23139 /* end confdefs.h. */
23140 #include <$ac_header>
23142 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23143 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23145 grep -v '^ *+' conftest.er1 >conftest.err
23147 cat conftest.err >&5
23148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23149 (exit $ac_status); } >/dev/null; then
23150 if test -s conftest.err; then
23151 ac_cpp_err=$ac_c_preproc_warn_flag
23152 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23159 if test -z "$ac_cpp_err"; then
23160 ac_header_preproc=yes
23162 echo "$as_me: failed program was:" >&5
23163 sed 's/^/| /' conftest.$ac_ext >&5
23165 ac_header_preproc=no
23167 rm -f conftest.err conftest.$ac_ext
23168 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23169 echo "${ECHO_T}$ac_header_preproc" >&6
23171 # So? What about this header?
23172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23178 ac_header_preproc=yes
23181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23188 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23195 ## ------------------------------------------ ##
23196 ## Report this to the AC_PACKAGE_NAME lists. ##
23197 ## ------------------------------------------ ##
23200 sed "s/^/$as_me: WARNING: /" >&2
23203 echo "$as_me:$LINENO: checking for $ac_header" >&5
23204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23206 echo $ECHO_N "(cached) $ECHO_C" >&6
23208 eval "$as_ac_Header=\$ac_header_preproc"
23210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23211 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23215 cat >>confdefs.h <<_ACEOF
23216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23224 if test $ac_cv_header_ltdl_h = no ; then
23225 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
23226 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
23227 { (exit 1); exit 1; }; }
23230 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
23231 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
23232 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
23233 echo $ECHO_N "(cached) $ECHO_C" >&6
23235 ac_check_lib_save_LIBS=$LIBS
23236 LIBS="-lltdl $LIBS"
23237 cat >conftest.$ac_ext <<_ACEOF
23240 cat confdefs.h >>conftest.$ac_ext
23241 cat >>conftest.$ac_ext <<_ACEOF
23242 /* end confdefs.h. */
23244 /* Override any gcc2 internal prototype to avoid an error. */
23248 /* We use char because int might match the return type of a gcc2
23249 builtin and then its argument prototype would still apply. */
23259 rm -f conftest.$ac_objext conftest$ac_exeext
23260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23261 (eval $ac_link) 2>conftest.er1
23263 grep -v '^ *+' conftest.er1 >conftest.err
23265 cat conftest.err >&5
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); } &&
23268 { ac_try='test -z "$ac_c_werror_flag"
23269 || test ! -s conftest.err'
23270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23271 (eval $ac_try) 2>&5
23273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274 (exit $ac_status); }; } &&
23275 { ac_try='test -s conftest$ac_exeext'
23276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277 (eval $ac_try) 2>&5
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); }; }; then
23281 ac_cv_lib_ltdl_lt_dlinit=yes
23283 echo "$as_me: failed program was:" >&5
23284 sed 's/^/| /' conftest.$ac_ext >&5
23286 ac_cv_lib_ltdl_lt_dlinit=no
23288 rm -f conftest.err conftest.$ac_objext \
23289 conftest$ac_exeext conftest.$ac_ext
23290 LIBS=$ac_check_lib_save_LIBS
23292 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
23293 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
23294 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
23296 MODULES_LIBS=-lltdl
23298 cat >>confdefs.h <<\_ACEOF
23299 #define HAVE_LIBLTDL 1
23306 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
23307 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
23308 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
23309 { (exit 1); exit 1; }; }
23311 ol_link_modules=yes
23312 WITH_MODULES_ENABLED=yes
23315 for i in $Backends; do
23316 eval "ol_tmp=\$ol_enable_$i"
23317 if test $ol_tmp = mod ; then
23318 { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
23319 echo "$as_me: WARNING: building static $i backend" >&2;}
23320 eval "ol_enable_$i=yes"
23323 for i in $Overlays; do
23324 eval "ol_tmp=\$ol_enable_$i"
23325 if test $ol_tmp = mod ; then
23326 { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
23327 echo "$as_me: WARNING: building static $i overlay" >&2;}
23328 eval "ol_enable_$i=yes"
23334 echo "$as_me:$LINENO: checking for EBCDIC" >&5
23335 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6
23336 if test "${ol_cv_cpp_ebcdic+set}" = set; then
23337 echo $ECHO_N "(cached) $ECHO_C" >&6
23340 cat >conftest.$ac_ext <<_ACEOF
23343 cat confdefs.h >>conftest.$ac_ext
23344 cat >>conftest.$ac_ext <<_ACEOF
23345 /* end confdefs.h. */
23348 #include <__ASCII__/generate_error.h>
23352 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23353 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23355 grep -v '^ *+' conftest.er1 >conftest.err
23357 cat conftest.err >&5
23358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359 (exit $ac_status); } >/dev/null; then
23360 if test -s conftest.err; then
23361 ac_cpp_err=$ac_c_preproc_warn_flag
23362 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23369 if test -z "$ac_cpp_err"; then
23370 ol_cv_cpp_ebcdic=yes
23372 echo "$as_me: failed program was:" >&5
23373 sed 's/^/| /' conftest.$ac_ext >&5
23375 ol_cv_cpp_ebcdic=no
23377 rm -f conftest.err conftest.$ac_ext
23379 echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
23380 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6
23381 if test $ol_cv_cpp_ebcdic = yes ; then
23383 cat >>confdefs.h <<\_ACEOF
23384 #define HAVE_EBCDIC 1
23389 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23390 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23391 if test "${ol_cv_header_stdc+set}" = set; then
23392 echo $ECHO_N "(cached) $ECHO_C" >&6
23394 cat >conftest.$ac_ext <<_ACEOF
23397 cat confdefs.h >>conftest.$ac_ext
23398 cat >>conftest.$ac_ext <<_ACEOF
23399 /* end confdefs.h. */
23400 #include <stdlib.h>
23401 #include <stdarg.h>
23402 #include <string.h>
23405 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23406 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23408 grep -v '^ *+' conftest.er1 >conftest.err
23410 cat conftest.err >&5
23411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412 (exit $ac_status); } >/dev/null; then
23413 if test -s conftest.err; then
23414 ac_cpp_err=$ac_c_preproc_warn_flag
23415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23422 if test -z "$ac_cpp_err"; then
23423 ol_cv_header_stdc=yes
23425 echo "$as_me: failed program was:" >&5
23426 sed 's/^/| /' conftest.$ac_ext >&5
23428 ol_cv_header_stdc=no
23430 rm -f conftest.err conftest.$ac_ext
23432 if test $ol_cv_header_stdc = yes; then
23433 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23434 cat >conftest.$ac_ext <<_ACEOF
23437 cat confdefs.h >>conftest.$ac_ext
23438 cat >>conftest.$ac_ext <<_ACEOF
23439 /* end confdefs.h. */
23440 #include <string.h>
23443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23444 $EGREP "memchr" >/dev/null 2>&1; then
23447 ol_cv_header_stdc=no
23453 if test $ol_cv_header_stdc = yes; then
23454 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23455 cat >conftest.$ac_ext <<_ACEOF
23458 cat confdefs.h >>conftest.$ac_ext
23459 cat >>conftest.$ac_ext <<_ACEOF
23460 /* end confdefs.h. */
23461 #include <stdlib.h>
23464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23465 $EGREP "free" >/dev/null 2>&1; then
23468 ol_cv_header_stdc=no
23474 if test $ol_cv_header_stdc = yes; then
23475 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23476 if test "$cross_compiling" = yes; then
23479 cat >conftest.$ac_ext <<_ACEOF
23482 cat confdefs.h >>conftest.$ac_ext
23483 cat >>conftest.$ac_ext <<_ACEOF
23484 /* end confdefs.h. */
23486 #ifndef HAVE_EBCDIC
23487 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23488 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23490 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
23491 || ('j' <= (c) && (c) <= 'r') \
23492 || ('s' <= (c) && (c) <= 'z'))
23493 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23495 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23496 int main () { int i; for (i = 0; i < 256; i++)
23497 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
23501 rm -f conftest$ac_exeext
23502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23503 (eval $ac_link) 2>&5
23505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23508 (eval $ac_try) 2>&5
23510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23511 (exit $ac_status); }; }; then
23514 echo "$as_me: program exited with status $ac_status" >&5
23515 echo "$as_me: failed program was:" >&5
23516 sed 's/^/| /' conftest.$ac_ext >&5
23518 ( exit $ac_status )
23519 ol_cv_header_stdc=no
23521 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23525 echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
23526 echo "${ECHO_T}$ol_cv_header_stdc" >&6
23527 if test $ol_cv_header_stdc = yes; then
23528 cat >>confdefs.h <<\_ACEOF
23529 #define STDC_HEADERS 1
23533 ac_cv_header_stdc=disable
23536 if test $ol_cv_header_stdc != yes; then
23537 { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
23538 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
23546 ac_header_dirent=no
23547 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
23548 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
23549 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
23550 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
23551 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23552 echo $ECHO_N "(cached) $ECHO_C" >&6
23554 cat >conftest.$ac_ext <<_ACEOF
23557 cat confdefs.h >>conftest.$ac_ext
23558 cat >>conftest.$ac_ext <<_ACEOF
23559 /* end confdefs.h. */
23560 #include <sys/types.h>
23572 rm -f conftest.$ac_objext
23573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23574 (eval $ac_compile) 2>conftest.er1
23576 grep -v '^ *+' conftest.er1 >conftest.err
23578 cat conftest.err >&5
23579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23580 (exit $ac_status); } &&
23581 { ac_try='test -z "$ac_c_werror_flag"
23582 || test ! -s conftest.err'
23583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23584 (eval $ac_try) 2>&5
23586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23587 (exit $ac_status); }; } &&
23588 { ac_try='test -s conftest.$ac_objext'
23589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23590 (eval $ac_try) 2>&5
23592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593 (exit $ac_status); }; }; then
23594 eval "$as_ac_Header=yes"
23596 echo "$as_me: failed program was:" >&5
23597 sed 's/^/| /' conftest.$ac_ext >&5
23599 eval "$as_ac_Header=no"
23601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23606 cat >>confdefs.h <<_ACEOF
23607 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
23610 ac_header_dirent=$ac_hdr; break
23614 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
23615 if test $ac_header_dirent = dirent.h; then
23616 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23617 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23618 if test "${ac_cv_search_opendir+set}" = set; then
23619 echo $ECHO_N "(cached) $ECHO_C" >&6
23621 ac_func_search_save_LIBS=$LIBS
23622 ac_cv_search_opendir=no
23623 cat >conftest.$ac_ext <<_ACEOF
23626 cat confdefs.h >>conftest.$ac_ext
23627 cat >>conftest.$ac_ext <<_ACEOF
23628 /* end confdefs.h. */
23630 /* Override any gcc2 internal prototype to avoid an error. */
23634 /* We use char because int might match the return type of a gcc2
23635 builtin and then its argument prototype would still apply. */
23645 rm -f conftest.$ac_objext conftest$ac_exeext
23646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23647 (eval $ac_link) 2>conftest.er1
23649 grep -v '^ *+' conftest.er1 >conftest.err
23651 cat conftest.err >&5
23652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23653 (exit $ac_status); } &&
23654 { ac_try='test -z "$ac_c_werror_flag"
23655 || test ! -s conftest.err'
23656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23657 (eval $ac_try) 2>&5
23659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23660 (exit $ac_status); }; } &&
23661 { ac_try='test -s conftest$ac_exeext'
23662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23663 (eval $ac_try) 2>&5
23665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23666 (exit $ac_status); }; }; then
23667 ac_cv_search_opendir="none required"
23669 echo "$as_me: failed program was:" >&5
23670 sed 's/^/| /' conftest.$ac_ext >&5
23673 rm -f conftest.err conftest.$ac_objext \
23674 conftest$ac_exeext conftest.$ac_ext
23675 if test "$ac_cv_search_opendir" = no; then
23676 for ac_lib in dir; do
23677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23678 cat >conftest.$ac_ext <<_ACEOF
23681 cat confdefs.h >>conftest.$ac_ext
23682 cat >>conftest.$ac_ext <<_ACEOF
23683 /* end confdefs.h. */
23685 /* Override any gcc2 internal prototype to avoid an error. */
23689 /* We use char because int might match the return type of a gcc2
23690 builtin and then its argument prototype would still apply. */
23700 rm -f conftest.$ac_objext conftest$ac_exeext
23701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23702 (eval $ac_link) 2>conftest.er1
23704 grep -v '^ *+' conftest.er1 >conftest.err
23706 cat conftest.err >&5
23707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23708 (exit $ac_status); } &&
23709 { ac_try='test -z "$ac_c_werror_flag"
23710 || test ! -s conftest.err'
23711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23712 (eval $ac_try) 2>&5
23714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715 (exit $ac_status); }; } &&
23716 { ac_try='test -s conftest$ac_exeext'
23717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23718 (eval $ac_try) 2>&5
23720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721 (exit $ac_status); }; }; then
23722 ac_cv_search_opendir="-l$ac_lib"
23725 echo "$as_me: failed program was:" >&5
23726 sed 's/^/| /' conftest.$ac_ext >&5
23729 rm -f conftest.err conftest.$ac_objext \
23730 conftest$ac_exeext conftest.$ac_ext
23733 LIBS=$ac_func_search_save_LIBS
23735 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23736 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23737 if test "$ac_cv_search_opendir" != no; then
23738 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23743 echo "$as_me:$LINENO: checking for library containing opendir" >&5
23744 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
23745 if test "${ac_cv_search_opendir+set}" = set; then
23746 echo $ECHO_N "(cached) $ECHO_C" >&6
23748 ac_func_search_save_LIBS=$LIBS
23749 ac_cv_search_opendir=no
23750 cat >conftest.$ac_ext <<_ACEOF
23753 cat confdefs.h >>conftest.$ac_ext
23754 cat >>conftest.$ac_ext <<_ACEOF
23755 /* end confdefs.h. */
23757 /* Override any gcc2 internal prototype to avoid an error. */
23761 /* We use char because int might match the return type of a gcc2
23762 builtin and then its argument prototype would still apply. */
23772 rm -f conftest.$ac_objext conftest$ac_exeext
23773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23774 (eval $ac_link) 2>conftest.er1
23776 grep -v '^ *+' conftest.er1 >conftest.err
23778 cat conftest.err >&5
23779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23780 (exit $ac_status); } &&
23781 { ac_try='test -z "$ac_c_werror_flag"
23782 || test ! -s conftest.err'
23783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23784 (eval $ac_try) 2>&5
23786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23787 (exit $ac_status); }; } &&
23788 { ac_try='test -s conftest$ac_exeext'
23789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23790 (eval $ac_try) 2>&5
23792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793 (exit $ac_status); }; }; then
23794 ac_cv_search_opendir="none required"
23796 echo "$as_me: failed program was:" >&5
23797 sed 's/^/| /' conftest.$ac_ext >&5
23800 rm -f conftest.err conftest.$ac_objext \
23801 conftest$ac_exeext conftest.$ac_ext
23802 if test "$ac_cv_search_opendir" = no; then
23803 for ac_lib in x; do
23804 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
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="-l$ac_lib"
23852 echo "$as_me: failed program was:" >&5
23853 sed 's/^/| /' conftest.$ac_ext >&5
23856 rm -f conftest.err conftest.$ac_objext \
23857 conftest$ac_exeext conftest.$ac_ext
23860 LIBS=$ac_func_search_save_LIBS
23862 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
23863 echo "${ECHO_T}$ac_cv_search_opendir" >&6
23864 if test "$ac_cv_search_opendir" != no; then
23865 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
23871 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
23872 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
23873 if test "${ac_cv_header_sys_wait_h+set}" = set; then
23874 echo $ECHO_N "(cached) $ECHO_C" >&6
23876 cat >conftest.$ac_ext <<_ACEOF
23879 cat confdefs.h >>conftest.$ac_ext
23880 cat >>conftest.$ac_ext <<_ACEOF
23881 /* end confdefs.h. */
23882 #include <sys/types.h>
23883 #include <sys/wait.h>
23884 #ifndef WEXITSTATUS
23885 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
23888 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23896 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23901 rm -f conftest.$ac_objext
23902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23903 (eval $ac_compile) 2>conftest.er1
23905 grep -v '^ *+' conftest.er1 >conftest.err
23907 cat conftest.err >&5
23908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909 (exit $ac_status); } &&
23910 { ac_try='test -z "$ac_c_werror_flag"
23911 || test ! -s conftest.err'
23912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23913 (eval $ac_try) 2>&5
23915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23916 (exit $ac_status); }; } &&
23917 { ac_try='test -s conftest.$ac_objext'
23918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23919 (eval $ac_try) 2>&5
23921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23922 (exit $ac_status); }; }; then
23923 ac_cv_header_sys_wait_h=yes
23925 echo "$as_me: failed program was:" >&5
23926 sed 's/^/| /' conftest.$ac_ext >&5
23928 ac_cv_header_sys_wait_h=no
23930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23932 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
23933 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
23934 if test $ac_cv_header_sys_wait_h = yes; then
23936 cat >>confdefs.h <<\_ACEOF
23937 #define HAVE_SYS_WAIT_H 1
23942 echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
23943 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6
23944 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
23945 echo $ECHO_N "(cached) $ECHO_C" >&6
23947 cat >conftest.$ac_ext <<_ACEOF
23950 cat confdefs.h >>conftest.$ac_ext
23951 cat >>conftest.$ac_ext <<_ACEOF
23952 /* end confdefs.h. */
23953 #include <sys/types.h>
23954 #include <termios.h>
23960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23961 $EGREP "yes" >/dev/null 2>&1; then
23962 ac_cv_sys_tiocgwinsz_in_termios_h=yes
23964 ac_cv_sys_tiocgwinsz_in_termios_h=no
23969 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
23970 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6
23972 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
23973 echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
23974 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6
23975 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
23976 echo $ECHO_N "(cached) $ECHO_C" >&6
23978 cat >conftest.$ac_ext <<_ACEOF
23981 cat confdefs.h >>conftest.$ac_ext
23982 cat >>conftest.$ac_ext <<_ACEOF
23983 /* end confdefs.h. */
23984 #include <sys/types.h>
23985 #include <sys/ioctl.h>
23991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23992 $EGREP "yes" >/dev/null 2>&1; then
23993 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
23995 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
24000 echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
24001 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6
24003 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
24005 cat >>confdefs.h <<\_ACEOF
24006 #define GWINSZ_IN_SYS_IOCTL 1
24114 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24115 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24116 echo "$as_me:$LINENO: checking for $ac_header" >&5
24117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24118 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24119 echo $ECHO_N "(cached) $ECHO_C" >&6
24121 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24122 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24124 # Is the header compilable?
24125 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24126 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24127 cat >conftest.$ac_ext <<_ACEOF
24130 cat confdefs.h >>conftest.$ac_ext
24131 cat >>conftest.$ac_ext <<_ACEOF
24132 /* end confdefs.h. */
24133 $ac_includes_default
24134 #include <$ac_header>
24136 rm -f conftest.$ac_objext
24137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24138 (eval $ac_compile) 2>conftest.er1
24140 grep -v '^ *+' conftest.er1 >conftest.err
24142 cat conftest.err >&5
24143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24144 (exit $ac_status); } &&
24145 { ac_try='test -z "$ac_c_werror_flag"
24146 || test ! -s conftest.err'
24147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24148 (eval $ac_try) 2>&5
24150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151 (exit $ac_status); }; } &&
24152 { ac_try='test -s conftest.$ac_objext'
24153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24154 (eval $ac_try) 2>&5
24156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24157 (exit $ac_status); }; }; then
24158 ac_header_compiler=yes
24160 echo "$as_me: failed program was:" >&5
24161 sed 's/^/| /' conftest.$ac_ext >&5
24163 ac_header_compiler=no
24165 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24166 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24167 echo "${ECHO_T}$ac_header_compiler" >&6
24169 # Is the header present?
24170 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24172 cat >conftest.$ac_ext <<_ACEOF
24175 cat confdefs.h >>conftest.$ac_ext
24176 cat >>conftest.$ac_ext <<_ACEOF
24177 /* end confdefs.h. */
24178 #include <$ac_header>
24180 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24181 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24183 grep -v '^ *+' conftest.er1 >conftest.err
24185 cat conftest.err >&5
24186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187 (exit $ac_status); } >/dev/null; then
24188 if test -s conftest.err; then
24189 ac_cpp_err=$ac_c_preproc_warn_flag
24190 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24197 if test -z "$ac_cpp_err"; then
24198 ac_header_preproc=yes
24200 echo "$as_me: failed program was:" >&5
24201 sed 's/^/| /' conftest.$ac_ext >&5
24203 ac_header_preproc=no
24205 rm -f conftest.err conftest.$ac_ext
24206 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24207 echo "${ECHO_T}$ac_header_preproc" >&6
24209 # So? What about this header?
24210 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24212 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24213 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24215 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24216 ac_header_preproc=yes
24219 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24220 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24221 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24222 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24223 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24224 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24225 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24226 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24228 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24229 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24230 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24233 ## ------------------------------------------ ##
24234 ## Report this to the AC_PACKAGE_NAME lists. ##
24235 ## ------------------------------------------ ##
24238 sed "s/^/$as_me: WARNING: /" >&2
24241 echo "$as_me:$LINENO: checking for $ac_header" >&5
24242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24243 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24244 echo $ECHO_N "(cached) $ECHO_C" >&6
24246 eval "$as_ac_Header=\$ac_header_preproc"
24248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24253 cat >>confdefs.h <<_ACEOF
24254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24265 for ac_func in sigaction sigset
24267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24268 echo "$as_me:$LINENO: checking for $ac_func" >&5
24269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24270 if eval "test \"\${$as_ac_var+set}\" = set"; then
24271 echo $ECHO_N "(cached) $ECHO_C" >&6
24273 cat >conftest.$ac_ext <<_ACEOF
24276 cat confdefs.h >>conftest.$ac_ext
24277 cat >>conftest.$ac_ext <<_ACEOF
24278 /* end confdefs.h. */
24279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24281 #define $ac_func innocuous_$ac_func
24283 /* System header to define __stub macros and hopefully few prototypes,
24284 which can conflict with char $ac_func (); below.
24285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24286 <limits.h> exists even on freestanding compilers. */
24289 # include <limits.h>
24291 # include <assert.h>
24296 /* Override any gcc2 internal prototype to avoid an error. */
24301 /* We use char because int might match the return type of a gcc2
24302 builtin and then its argument prototype would still apply. */
24304 /* The GNU C library defines this for functions which it implements
24305 to always fail with ENOSYS. Some functions are actually named
24306 something starting with __ and the normal name is an alias. */
24307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24310 char (*f) () = $ac_func;
24319 return f != $ac_func;
24324 rm -f conftest.$ac_objext conftest$ac_exeext
24325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24326 (eval $ac_link) 2>conftest.er1
24328 grep -v '^ *+' conftest.er1 >conftest.err
24330 cat conftest.err >&5
24331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24332 (exit $ac_status); } &&
24333 { ac_try='test -z "$ac_c_werror_flag"
24334 || test ! -s conftest.err'
24335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24336 (eval $ac_try) 2>&5
24338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24339 (exit $ac_status); }; } &&
24340 { ac_try='test -s conftest$ac_exeext'
24341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24342 (eval $ac_try) 2>&5
24344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24345 (exit $ac_status); }; }; then
24346 eval "$as_ac_var=yes"
24348 echo "$as_me: failed program was:" >&5
24349 sed 's/^/| /' conftest.$ac_ext >&5
24351 eval "$as_ac_var=no"
24353 rm -f conftest.err conftest.$ac_objext \
24354 conftest$ac_exeext conftest.$ac_ext
24356 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24357 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24358 if test `eval echo '${'$as_ac_var'}'` = yes; then
24359 cat >>confdefs.h <<_ACEOF
24360 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24367 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
24369 echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
24370 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6
24371 if test "${ac_cv_lib_V3_sigset+set}" = set; then
24372 echo $ECHO_N "(cached) $ECHO_C" >&6
24374 ac_check_lib_save_LIBS=$LIBS
24376 cat >conftest.$ac_ext <<_ACEOF
24379 cat confdefs.h >>conftest.$ac_ext
24380 cat >>conftest.$ac_ext <<_ACEOF
24381 /* end confdefs.h. */
24383 /* Override any gcc2 internal prototype to avoid an error. */
24387 /* We use char because int might match the return type of a gcc2
24388 builtin and then its argument prototype would still apply. */
24398 rm -f conftest.$ac_objext conftest$ac_exeext
24399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24400 (eval $ac_link) 2>conftest.er1
24402 grep -v '^ *+' conftest.er1 >conftest.err
24404 cat conftest.err >&5
24405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406 (exit $ac_status); } &&
24407 { ac_try='test -z "$ac_c_werror_flag"
24408 || test ! -s conftest.err'
24409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24410 (eval $ac_try) 2>&5
24412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413 (exit $ac_status); }; } &&
24414 { ac_try='test -s conftest$ac_exeext'
24415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24416 (eval $ac_try) 2>&5
24418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24419 (exit $ac_status); }; }; then
24420 ac_cv_lib_V3_sigset=yes
24422 echo "$as_me: failed program was:" >&5
24423 sed 's/^/| /' conftest.$ac_ext >&5
24425 ac_cv_lib_V3_sigset=no
24427 rm -f conftest.err conftest.$ac_objext \
24428 conftest$ac_exeext conftest.$ac_ext
24429 LIBS=$ac_check_lib_save_LIBS
24431 echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
24432 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6
24433 if test $ac_cv_lib_V3_sigset = yes; then
24434 cat >>confdefs.h <<_ACEOF
24435 #define HAVE_LIBV3 1
24444 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
24445 echo "$as_me:$LINENO: checking for winsock" >&5
24446 echo $ECHO_N "checking for winsock... $ECHO_C" >&6
24447 if test "${ol_cv_winsock+set}" = set; then
24448 echo $ECHO_N "(cached) $ECHO_C" >&6
24451 for curlib in ws2_32 wsock32; do
24452 LIBS="$LIBS -l$curlib"
24453 cat >conftest.$ac_ext <<_ACEOF
24456 cat confdefs.h >>conftest.$ac_ext
24457 cat >>conftest.$ac_ext <<_ACEOF
24458 /* end confdefs.h. */
24459 #include <winsock.h>
24466 select(0,NULL,NULL,NULL,NULL);
24468 gethostname(NULL,0);
24474 rm -f conftest.$ac_objext conftest$ac_exeext
24475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24476 (eval $ac_link) 2>conftest.er1
24478 grep -v '^ *+' conftest.er1 >conftest.err
24480 cat conftest.err >&5
24481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 (exit $ac_status); } &&
24483 { ac_try='test -z "$ac_c_werror_flag"
24484 || test ! -s conftest.err'
24485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24486 (eval $ac_try) 2>&5
24488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24489 (exit $ac_status); }; } &&
24490 { ac_try='test -s conftest$ac_exeext'
24491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24492 (eval $ac_try) 2>&5
24494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24495 (exit $ac_status); }; }; then
24498 echo "$as_me: failed program was:" >&5
24499 sed 's/^/| /' conftest.$ac_ext >&5
24503 rm -f conftest.err conftest.$ac_objext \
24504 conftest$ac_exeext conftest.$ac_ext
24506 if test $ol_cv_winsock = yes; then
24508 cat >>confdefs.h <<\_ACEOF
24509 #define HAVE_WINSOCK 1
24512 ac_cv_func_socket=yes
24513 ac_cv_func_select=yes
24514 ac_cv_func_closesocket=yes
24515 ac_cv_func_gethostname=yes
24516 if test $curlib = ws2_32; then
24517 ol_cv_winsock=winsock2
24519 cat >>confdefs.h <<\_ACEOF
24520 #define HAVE_WINSOCK2 1
24529 echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
24530 echo "${ECHO_T}$ol_cv_winsock" >&6
24534 echo "$as_me:$LINENO: checking for socket" >&5
24535 echo $ECHO_N "checking for socket... $ECHO_C" >&6
24536 if test "${ac_cv_func_socket+set}" = set; then
24537 echo $ECHO_N "(cached) $ECHO_C" >&6
24539 cat >conftest.$ac_ext <<_ACEOF
24542 cat confdefs.h >>conftest.$ac_ext
24543 cat >>conftest.$ac_ext <<_ACEOF
24544 /* end confdefs.h. */
24545 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24547 #define socket innocuous_socket
24549 /* System header to define __stub macros and hopefully few prototypes,
24550 which can conflict with char socket (); below.
24551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24552 <limits.h> exists even on freestanding compilers. */
24555 # include <limits.h>
24557 # include <assert.h>
24562 /* Override any gcc2 internal prototype to avoid an error. */
24567 /* We use char because int might match the return type of a gcc2
24568 builtin and then its argument prototype would still apply. */
24570 /* The GNU C library defines this for functions which it implements
24571 to always fail with ENOSYS. Some functions are actually named
24572 something starting with __ and the normal name is an alias. */
24573 #if defined (__stub_socket) || defined (__stub___socket)
24576 char (*f) () = socket;
24585 return f != socket;
24590 rm -f conftest.$ac_objext conftest$ac_exeext
24591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24592 (eval $ac_link) 2>conftest.er1
24594 grep -v '^ *+' conftest.er1 >conftest.err
24596 cat conftest.err >&5
24597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24598 (exit $ac_status); } &&
24599 { ac_try='test -z "$ac_c_werror_flag"
24600 || test ! -s conftest.err'
24601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24602 (eval $ac_try) 2>&5
24604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605 (exit $ac_status); }; } &&
24606 { ac_try='test -s conftest$ac_exeext'
24607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24608 (eval $ac_try) 2>&5
24610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24611 (exit $ac_status); }; }; then
24612 ac_cv_func_socket=yes
24614 echo "$as_me: failed program was:" >&5
24615 sed 's/^/| /' conftest.$ac_ext >&5
24617 ac_cv_func_socket=no
24619 rm -f conftest.err conftest.$ac_objext \
24620 conftest$ac_exeext conftest.$ac_ext
24622 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24623 echo "${ECHO_T}$ac_cv_func_socket" >&6
24624 if test $ac_cv_func_socket = yes; then
24629 echo "$as_me:$LINENO: checking for main in -lsocket" >&5
24630 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
24631 if test "${ac_cv_lib_socket_main+set}" = set; then
24632 echo $ECHO_N "(cached) $ECHO_C" >&6
24634 ac_check_lib_save_LIBS=$LIBS
24635 LIBS="-lsocket $LIBS"
24636 cat >conftest.$ac_ext <<_ACEOF
24639 cat confdefs.h >>conftest.$ac_ext
24640 cat >>conftest.$ac_ext <<_ACEOF
24641 /* end confdefs.h. */
24652 rm -f conftest.$ac_objext conftest$ac_exeext
24653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24654 (eval $ac_link) 2>conftest.er1
24656 grep -v '^ *+' conftest.er1 >conftest.err
24658 cat conftest.err >&5
24659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660 (exit $ac_status); } &&
24661 { ac_try='test -z "$ac_c_werror_flag"
24662 || test ! -s conftest.err'
24663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24664 (eval $ac_try) 2>&5
24666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24667 (exit $ac_status); }; } &&
24668 { ac_try='test -s conftest$ac_exeext'
24669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24670 (eval $ac_try) 2>&5
24672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24673 (exit $ac_status); }; }; then
24674 ac_cv_lib_socket_main=yes
24676 echo "$as_me: failed program was:" >&5
24677 sed 's/^/| /' conftest.$ac_ext >&5
24679 ac_cv_lib_socket_main=no
24681 rm -f conftest.err conftest.$ac_objext \
24682 conftest$ac_exeext conftest.$ac_ext
24683 LIBS=$ac_check_lib_save_LIBS
24685 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
24686 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
24687 if test $ac_cv_lib_socket_main = yes; then
24688 cat >>confdefs.h <<_ACEOF
24689 #define HAVE_LIBSOCKET 1
24692 LIBS="-lsocket $LIBS"
24697 echo "$as_me:$LINENO: checking for main in -lnet" >&5
24698 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6
24699 if test "${ac_cv_lib_net_main+set}" = set; then
24700 echo $ECHO_N "(cached) $ECHO_C" >&6
24702 ac_check_lib_save_LIBS=$LIBS
24704 cat >conftest.$ac_ext <<_ACEOF
24707 cat confdefs.h >>conftest.$ac_ext
24708 cat >>conftest.$ac_ext <<_ACEOF
24709 /* end confdefs.h. */
24720 rm -f conftest.$ac_objext conftest$ac_exeext
24721 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24722 (eval $ac_link) 2>conftest.er1
24724 grep -v '^ *+' conftest.er1 >conftest.err
24726 cat conftest.err >&5
24727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24728 (exit $ac_status); } &&
24729 { ac_try='test -z "$ac_c_werror_flag"
24730 || test ! -s conftest.err'
24731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24732 (eval $ac_try) 2>&5
24734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735 (exit $ac_status); }; } &&
24736 { ac_try='test -s conftest$ac_exeext'
24737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24738 (eval $ac_try) 2>&5
24740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24741 (exit $ac_status); }; }; then
24742 ac_cv_lib_net_main=yes
24744 echo "$as_me: failed program was:" >&5
24745 sed 's/^/| /' conftest.$ac_ext >&5
24747 ac_cv_lib_net_main=no
24749 rm -f conftest.err conftest.$ac_objext \
24750 conftest$ac_exeext conftest.$ac_ext
24751 LIBS=$ac_check_lib_save_LIBS
24753 echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
24754 echo "${ECHO_T}$ac_cv_lib_net_main" >&6
24755 if test $ac_cv_lib_net_main = yes; then
24756 cat >>confdefs.h <<_ACEOF
24757 #define HAVE_LIBNET 1
24765 echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
24766 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6
24767 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
24768 echo $ECHO_N "(cached) $ECHO_C" >&6
24770 ac_check_lib_save_LIBS=$LIBS
24771 LIBS="-lnsl_s $LIBS"
24772 cat >conftest.$ac_ext <<_ACEOF
24775 cat confdefs.h >>conftest.$ac_ext
24776 cat >>conftest.$ac_ext <<_ACEOF
24777 /* end confdefs.h. */
24788 rm -f conftest.$ac_objext conftest$ac_exeext
24789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24790 (eval $ac_link) 2>conftest.er1
24792 grep -v '^ *+' conftest.er1 >conftest.err
24794 cat conftest.err >&5
24795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24796 (exit $ac_status); } &&
24797 { ac_try='test -z "$ac_c_werror_flag"
24798 || test ! -s conftest.err'
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); }; } &&
24804 { ac_try='test -s conftest$ac_exeext'
24805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24806 (eval $ac_try) 2>&5
24808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24809 (exit $ac_status); }; }; then
24810 ac_cv_lib_nsl_s_main=yes
24812 echo "$as_me: failed program was:" >&5
24813 sed 's/^/| /' conftest.$ac_ext >&5
24815 ac_cv_lib_nsl_s_main=no
24817 rm -f conftest.err conftest.$ac_objext \
24818 conftest$ac_exeext conftest.$ac_ext
24819 LIBS=$ac_check_lib_save_LIBS
24821 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
24822 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6
24823 if test $ac_cv_lib_nsl_s_main = yes; then
24824 cat >>confdefs.h <<_ACEOF
24825 #define HAVE_LIBNSL_S 1
24828 LIBS="-lnsl_s $LIBS"
24833 echo "$as_me:$LINENO: checking for main in -lnsl" >&5
24834 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6
24835 if test "${ac_cv_lib_nsl_main+set}" = set; then
24836 echo $ECHO_N "(cached) $ECHO_C" >&6
24838 ac_check_lib_save_LIBS=$LIBS
24840 cat >conftest.$ac_ext <<_ACEOF
24843 cat confdefs.h >>conftest.$ac_ext
24844 cat >>conftest.$ac_ext <<_ACEOF
24845 /* end confdefs.h. */
24856 rm -f conftest.$ac_objext conftest$ac_exeext
24857 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24858 (eval $ac_link) 2>conftest.er1
24860 grep -v '^ *+' conftest.er1 >conftest.err
24862 cat conftest.err >&5
24863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864 (exit $ac_status); } &&
24865 { ac_try='test -z "$ac_c_werror_flag"
24866 || test ! -s conftest.err'
24867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24868 (eval $ac_try) 2>&5
24870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24871 (exit $ac_status); }; } &&
24872 { ac_try='test -s conftest$ac_exeext'
24873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24874 (eval $ac_try) 2>&5
24876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877 (exit $ac_status); }; }; then
24878 ac_cv_lib_nsl_main=yes
24880 echo "$as_me: failed program was:" >&5
24881 sed 's/^/| /' conftest.$ac_ext >&5
24883 ac_cv_lib_nsl_main=no
24885 rm -f conftest.err conftest.$ac_objext \
24886 conftest$ac_exeext conftest.$ac_ext
24887 LIBS=$ac_check_lib_save_LIBS
24889 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
24890 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6
24891 if test $ac_cv_lib_nsl_main = yes; then
24892 cat >>confdefs.h <<_ACEOF
24893 #define HAVE_LIBNSL 1
24901 echo "$as_me:$LINENO: checking for socket in -linet" >&5
24902 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
24903 if test "${ac_cv_lib_inet_socket+set}" = set; then
24904 echo $ECHO_N "(cached) $ECHO_C" >&6
24906 ac_check_lib_save_LIBS=$LIBS
24907 LIBS="-linet $LIBS"
24908 cat >conftest.$ac_ext <<_ACEOF
24911 cat confdefs.h >>conftest.$ac_ext
24912 cat >>conftest.$ac_ext <<_ACEOF
24913 /* end confdefs.h. */
24915 /* Override any gcc2 internal prototype to avoid an error. */
24919 /* We use char because int might match the return type of a gcc2
24920 builtin and then its argument prototype would still apply. */
24930 rm -f conftest.$ac_objext conftest$ac_exeext
24931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24932 (eval $ac_link) 2>conftest.er1
24934 grep -v '^ *+' conftest.er1 >conftest.err
24936 cat conftest.err >&5
24937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938 (exit $ac_status); } &&
24939 { ac_try='test -z "$ac_c_werror_flag"
24940 || test ! -s conftest.err'
24941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24942 (eval $ac_try) 2>&5
24944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24945 (exit $ac_status); }; } &&
24946 { ac_try='test -s conftest$ac_exeext'
24947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24948 (eval $ac_try) 2>&5
24950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24951 (exit $ac_status); }; }; then
24952 ac_cv_lib_inet_socket=yes
24954 echo "$as_me: failed program was:" >&5
24955 sed 's/^/| /' conftest.$ac_ext >&5
24957 ac_cv_lib_inet_socket=no
24959 rm -f conftest.err conftest.$ac_objext \
24960 conftest$ac_exeext conftest.$ac_ext
24961 LIBS=$ac_check_lib_save_LIBS
24963 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
24964 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
24965 if test $ac_cv_lib_inet_socket = yes; then
24966 cat >>confdefs.h <<_ACEOF
24967 #define HAVE_LIBINET 1
24970 LIBS="-linet $LIBS"
24975 echo "$as_me:$LINENO: checking for main in -lgen" >&5
24976 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6
24977 if test "${ac_cv_lib_gen_main+set}" = set; then
24978 echo $ECHO_N "(cached) $ECHO_C" >&6
24980 ac_check_lib_save_LIBS=$LIBS
24982 cat >conftest.$ac_ext <<_ACEOF
24985 cat confdefs.h >>conftest.$ac_ext
24986 cat >>conftest.$ac_ext <<_ACEOF
24987 /* end confdefs.h. */
24998 rm -f conftest.$ac_objext conftest$ac_exeext
24999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25000 (eval $ac_link) 2>conftest.er1
25002 grep -v '^ *+' conftest.er1 >conftest.err
25004 cat conftest.err >&5
25005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006 (exit $ac_status); } &&
25007 { ac_try='test -z "$ac_c_werror_flag"
25008 || test ! -s conftest.err'
25009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25010 (eval $ac_try) 2>&5
25012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25013 (exit $ac_status); }; } &&
25014 { ac_try='test -s conftest$ac_exeext'
25015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25016 (eval $ac_try) 2>&5
25018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); }; }; then
25020 ac_cv_lib_gen_main=yes
25022 echo "$as_me: failed program was:" >&5
25023 sed 's/^/| /' conftest.$ac_ext >&5
25025 ac_cv_lib_gen_main=no
25027 rm -f conftest.err conftest.$ac_objext \
25028 conftest$ac_exeext conftest.$ac_ext
25029 LIBS=$ac_check_lib_save_LIBS
25031 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
25032 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6
25033 if test $ac_cv_lib_gen_main = yes; then
25034 cat >>confdefs.h <<_ACEOF
25035 #define HAVE_LIBGEN 1
25046 echo "$as_me:$LINENO: checking for select" >&5
25047 echo $ECHO_N "checking for select... $ECHO_C" >&6
25048 if test "${ac_cv_func_select+set}" = set; then
25049 echo $ECHO_N "(cached) $ECHO_C" >&6
25051 cat >conftest.$ac_ext <<_ACEOF
25054 cat confdefs.h >>conftest.$ac_ext
25055 cat >>conftest.$ac_ext <<_ACEOF
25056 /* end confdefs.h. */
25057 /* Define select to an innocuous variant, in case <limits.h> declares select.
25058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25059 #define select innocuous_select
25061 /* System header to define __stub macros and hopefully few prototypes,
25062 which can conflict with char select (); below.
25063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25064 <limits.h> exists even on freestanding compilers. */
25067 # include <limits.h>
25069 # include <assert.h>
25074 /* Override any gcc2 internal prototype to avoid an error. */
25079 /* We use char because int might match the return type of a gcc2
25080 builtin and then its argument prototype would still apply. */
25082 /* The GNU C library defines this for functions which it implements
25083 to always fail with ENOSYS. Some functions are actually named
25084 something starting with __ and the normal name is an alias. */
25085 #if defined (__stub_select) || defined (__stub___select)
25088 char (*f) () = select;
25097 return f != select;
25102 rm -f conftest.$ac_objext conftest$ac_exeext
25103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25104 (eval $ac_link) 2>conftest.er1
25106 grep -v '^ *+' conftest.er1 >conftest.err
25108 cat conftest.err >&5
25109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25110 (exit $ac_status); } &&
25111 { ac_try='test -z "$ac_c_werror_flag"
25112 || test ! -s conftest.err'
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); }; } &&
25118 { ac_try='test -s conftest$ac_exeext'
25119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25120 (eval $ac_try) 2>&5
25122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25123 (exit $ac_status); }; }; then
25124 ac_cv_func_select=yes
25126 echo "$as_me: failed program was:" >&5
25127 sed 's/^/| /' conftest.$ac_ext >&5
25129 ac_cv_func_select=no
25131 rm -f conftest.err conftest.$ac_objext \
25132 conftest$ac_exeext conftest.$ac_ext
25134 echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
25135 echo "${ECHO_T}$ac_cv_func_select" >&6
25136 if test $ac_cv_func_select = yes; then
25139 { { echo "$as_me:$LINENO: error: select() required." >&5
25140 echo "$as_me: error: select() required." >&2;}
25141 { (exit 1); exit 1; }; }
25145 if test "${ac_cv_header_winsock_h}" != yes; then
25148 for ac_header in sys/select.h sys/socket.h
25150 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25151 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25152 echo "$as_me:$LINENO: checking for $ac_header" >&5
25153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25155 echo $ECHO_N "(cached) $ECHO_C" >&6
25157 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25158 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25160 # Is the header compilable?
25161 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25163 cat >conftest.$ac_ext <<_ACEOF
25166 cat confdefs.h >>conftest.$ac_ext
25167 cat >>conftest.$ac_ext <<_ACEOF
25168 /* end confdefs.h. */
25169 $ac_includes_default
25170 #include <$ac_header>
25172 rm -f conftest.$ac_objext
25173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25174 (eval $ac_compile) 2>conftest.er1
25176 grep -v '^ *+' conftest.er1 >conftest.err
25178 cat conftest.err >&5
25179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180 (exit $ac_status); } &&
25181 { ac_try='test -z "$ac_c_werror_flag"
25182 || test ! -s conftest.err'
25183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25184 (eval $ac_try) 2>&5
25186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25187 (exit $ac_status); }; } &&
25188 { ac_try='test -s conftest.$ac_objext'
25189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25190 (eval $ac_try) 2>&5
25192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25193 (exit $ac_status); }; }; then
25194 ac_header_compiler=yes
25196 echo "$as_me: failed program was:" >&5
25197 sed 's/^/| /' conftest.$ac_ext >&5
25199 ac_header_compiler=no
25201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25202 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25203 echo "${ECHO_T}$ac_header_compiler" >&6
25205 # Is the header present?
25206 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25207 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25208 cat >conftest.$ac_ext <<_ACEOF
25211 cat confdefs.h >>conftest.$ac_ext
25212 cat >>conftest.$ac_ext <<_ACEOF
25213 /* end confdefs.h. */
25214 #include <$ac_header>
25216 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25217 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25219 grep -v '^ *+' conftest.er1 >conftest.err
25221 cat conftest.err >&5
25222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25223 (exit $ac_status); } >/dev/null; then
25224 if test -s conftest.err; then
25225 ac_cpp_err=$ac_c_preproc_warn_flag
25226 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25233 if test -z "$ac_cpp_err"; then
25234 ac_header_preproc=yes
25236 echo "$as_me: failed program was:" >&5
25237 sed 's/^/| /' conftest.$ac_ext >&5
25239 ac_header_preproc=no
25241 rm -f conftest.err conftest.$ac_ext
25242 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25243 echo "${ECHO_T}$ac_header_preproc" >&6
25245 # So? What about this header?
25246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25248 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25252 ac_header_preproc=yes
25255 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25257 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25258 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25259 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25261 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25262 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25265 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25269 ## ------------------------------------------ ##
25270 ## Report this to the AC_PACKAGE_NAME lists. ##
25271 ## ------------------------------------------ ##
25274 sed "s/^/$as_me: WARNING: /" >&2
25277 echo "$as_me:$LINENO: checking for $ac_header" >&5
25278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25279 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25280 echo $ECHO_N "(cached) $ECHO_C" >&6
25282 eval "$as_ac_Header=\$ac_header_preproc"
25284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25285 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25288 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25289 cat >>confdefs.h <<_ACEOF
25290 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25297 echo "$as_me:$LINENO: checking types of arguments for select" >&5
25298 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
25299 if test "${ac_cv_func_select_args+set}" = set; then
25300 echo $ECHO_N "(cached) $ECHO_C" >&6
25302 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25303 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
25304 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
25305 cat >conftest.$ac_ext <<_ACEOF
25308 cat confdefs.h >>conftest.$ac_ext
25309 cat >>conftest.$ac_ext <<_ACEOF
25310 /* end confdefs.h. */
25311 $ac_includes_default
25312 #if HAVE_SYS_SELECT_H
25313 # include <sys/select.h>
25315 #if HAVE_SYS_SOCKET_H
25316 # include <sys/socket.h>
25322 extern int select ($ac_arg1,
25323 $ac_arg234, $ac_arg234, $ac_arg234,
25329 rm -f conftest.$ac_objext
25330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25331 (eval $ac_compile) 2>conftest.er1
25333 grep -v '^ *+' conftest.er1 >conftest.err
25335 cat conftest.err >&5
25336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25337 (exit $ac_status); } &&
25338 { ac_try='test -z "$ac_c_werror_flag"
25339 || test ! -s conftest.err'
25340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25341 (eval $ac_try) 2>&5
25343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344 (exit $ac_status); }; } &&
25345 { ac_try='test -s conftest.$ac_objext'
25346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25347 (eval $ac_try) 2>&5
25349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25350 (exit $ac_status); }; }; then
25351 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
25353 echo "$as_me: failed program was:" >&5
25354 sed 's/^/| /' conftest.$ac_ext >&5
25357 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25361 # Provide a safe default value.
25362 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
25365 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
25366 echo "${ECHO_T}$ac_cv_func_select_args" >&6
25367 ac_save_IFS=$IFS; IFS=','
25368 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25372 cat >>confdefs.h <<_ACEOF
25373 #define SELECT_TYPE_ARG1 $1
25377 cat >>confdefs.h <<_ACEOF
25378 #define SELECT_TYPE_ARG234 ($2)
25382 cat >>confdefs.h <<_ACEOF
25383 #define SELECT_TYPE_ARG5 ($3)
25392 for ac_func in poll
25394 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25395 echo "$as_me:$LINENO: checking for $ac_func" >&5
25396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25397 if eval "test \"\${$as_ac_var+set}\" = set"; then
25398 echo $ECHO_N "(cached) $ECHO_C" >&6
25400 cat >conftest.$ac_ext <<_ACEOF
25403 cat confdefs.h >>conftest.$ac_ext
25404 cat >>conftest.$ac_ext <<_ACEOF
25405 /* end confdefs.h. */
25406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25408 #define $ac_func innocuous_$ac_func
25410 /* System header to define __stub macros and hopefully few prototypes,
25411 which can conflict with char $ac_func (); below.
25412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25413 <limits.h> exists even on freestanding compilers. */
25416 # include <limits.h>
25418 # include <assert.h>
25423 /* Override any gcc2 internal prototype to avoid an error. */
25428 /* We use char because int might match the return type of a gcc2
25429 builtin and then its argument prototype would still apply. */
25431 /* The GNU C library defines this for functions which it implements
25432 to always fail with ENOSYS. Some functions are actually named
25433 something starting with __ and the normal name is an alias. */
25434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25437 char (*f) () = $ac_func;
25446 return f != $ac_func;
25451 rm -f conftest.$ac_objext conftest$ac_exeext
25452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25453 (eval $ac_link) 2>conftest.er1
25455 grep -v '^ *+' conftest.er1 >conftest.err
25457 cat conftest.err >&5
25458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25459 (exit $ac_status); } &&
25460 { ac_try='test -z "$ac_c_werror_flag"
25461 || test ! -s conftest.err'
25462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25463 (eval $ac_try) 2>&5
25465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25466 (exit $ac_status); }; } &&
25467 { ac_try='test -s conftest$ac_exeext'
25468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25469 (eval $ac_try) 2>&5
25471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472 (exit $ac_status); }; }; then
25473 eval "$as_ac_var=yes"
25475 echo "$as_me: failed program was:" >&5
25476 sed 's/^/| /' conftest.$ac_ext >&5
25478 eval "$as_ac_var=no"
25480 rm -f conftest.err conftest.$ac_objext \
25481 conftest$ac_exeext conftest.$ac_ext
25483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25485 if test `eval echo '${'$as_ac_var'}'` = yes; then
25486 cat >>confdefs.h <<_ACEOF
25487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25494 for ac_header in poll.h
25496 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25497 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25498 echo "$as_me:$LINENO: checking for $ac_header" >&5
25499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25501 echo $ECHO_N "(cached) $ECHO_C" >&6
25503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25506 # Is the header compilable?
25507 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25509 cat >conftest.$ac_ext <<_ACEOF
25512 cat confdefs.h >>conftest.$ac_ext
25513 cat >>conftest.$ac_ext <<_ACEOF
25514 /* end confdefs.h. */
25515 $ac_includes_default
25516 #include <$ac_header>
25518 rm -f conftest.$ac_objext
25519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25520 (eval $ac_compile) 2>conftest.er1
25522 grep -v '^ *+' conftest.er1 >conftest.err
25524 cat conftest.err >&5
25525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25526 (exit $ac_status); } &&
25527 { ac_try='test -z "$ac_c_werror_flag"
25528 || test ! -s conftest.err'
25529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25530 (eval $ac_try) 2>&5
25532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25533 (exit $ac_status); }; } &&
25534 { ac_try='test -s conftest.$ac_objext'
25535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25536 (eval $ac_try) 2>&5
25538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25539 (exit $ac_status); }; }; then
25540 ac_header_compiler=yes
25542 echo "$as_me: failed program was:" >&5
25543 sed 's/^/| /' conftest.$ac_ext >&5
25545 ac_header_compiler=no
25547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25548 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25549 echo "${ECHO_T}$ac_header_compiler" >&6
25551 # Is the header present?
25552 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25553 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25554 cat >conftest.$ac_ext <<_ACEOF
25557 cat confdefs.h >>conftest.$ac_ext
25558 cat >>conftest.$ac_ext <<_ACEOF
25559 /* end confdefs.h. */
25560 #include <$ac_header>
25562 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25563 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25565 grep -v '^ *+' conftest.er1 >conftest.err
25567 cat conftest.err >&5
25568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25569 (exit $ac_status); } >/dev/null; then
25570 if test -s conftest.err; then
25571 ac_cpp_err=$ac_c_preproc_warn_flag
25572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25579 if test -z "$ac_cpp_err"; then
25580 ac_header_preproc=yes
25582 echo "$as_me: failed program was:" >&5
25583 sed 's/^/| /' conftest.$ac_ext >&5
25585 ac_header_preproc=no
25587 rm -f conftest.err conftest.$ac_ext
25588 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25589 echo "${ECHO_T}$ac_header_preproc" >&6
25591 # So? What about this header?
25592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25594 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25595 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25596 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25598 ac_header_preproc=yes
25601 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25603 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25604 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25605 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25606 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25607 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25608 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25611 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25612 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25615 ## ------------------------------------------ ##
25616 ## Report this to the AC_PACKAGE_NAME lists. ##
25617 ## ------------------------------------------ ##
25620 sed "s/^/$as_me: WARNING: /" >&2
25623 echo "$as_me:$LINENO: checking for $ac_header" >&5
25624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25625 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25626 echo $ECHO_N "(cached) $ECHO_C" >&6
25628 eval "$as_ac_Header=\$ac_header_preproc"
25630 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25631 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25634 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25635 cat >>confdefs.h <<_ACEOF
25636 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25645 for ac_header in sys/epoll.h
25647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25649 echo "$as_me:$LINENO: checking for $ac_header" >&5
25650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25652 echo $ECHO_N "(cached) $ECHO_C" >&6
25654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25657 # Is the header compilable?
25658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25660 cat >conftest.$ac_ext <<_ACEOF
25663 cat confdefs.h >>conftest.$ac_ext
25664 cat >>conftest.$ac_ext <<_ACEOF
25665 /* end confdefs.h. */
25666 $ac_includes_default
25667 #include <$ac_header>
25669 rm -f conftest.$ac_objext
25670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25671 (eval $ac_compile) 2>conftest.er1
25673 grep -v '^ *+' conftest.er1 >conftest.err
25675 cat conftest.err >&5
25676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677 (exit $ac_status); } &&
25678 { ac_try='test -z "$ac_c_werror_flag"
25679 || test ! -s conftest.err'
25680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25681 (eval $ac_try) 2>&5
25683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25684 (exit $ac_status); }; } &&
25685 { ac_try='test -s conftest.$ac_objext'
25686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25687 (eval $ac_try) 2>&5
25689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25690 (exit $ac_status); }; }; then
25691 ac_header_compiler=yes
25693 echo "$as_me: failed program was:" >&5
25694 sed 's/^/| /' conftest.$ac_ext >&5
25696 ac_header_compiler=no
25698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25699 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25700 echo "${ECHO_T}$ac_header_compiler" >&6
25702 # Is the header present?
25703 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25704 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25705 cat >conftest.$ac_ext <<_ACEOF
25708 cat confdefs.h >>conftest.$ac_ext
25709 cat >>conftest.$ac_ext <<_ACEOF
25710 /* end confdefs.h. */
25711 #include <$ac_header>
25713 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25716 grep -v '^ *+' conftest.er1 >conftest.err
25718 cat conftest.err >&5
25719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25720 (exit $ac_status); } >/dev/null; then
25721 if test -s conftest.err; then
25722 ac_cpp_err=$ac_c_preproc_warn_flag
25723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25730 if test -z "$ac_cpp_err"; then
25731 ac_header_preproc=yes
25733 echo "$as_me: failed program was:" >&5
25734 sed 's/^/| /' conftest.$ac_ext >&5
25736 ac_header_preproc=no
25738 rm -f conftest.err conftest.$ac_ext
25739 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25740 echo "${ECHO_T}$ac_header_preproc" >&6
25742 # So? What about this header?
25743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25749 ac_header_preproc=yes
25752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25759 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25766 ## ------------------------------------------ ##
25767 ## Report this to the AC_PACKAGE_NAME lists. ##
25768 ## ------------------------------------------ ##
25771 sed "s/^/$as_me: WARNING: /" >&2
25774 echo "$as_me:$LINENO: checking for $ac_header" >&5
25775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25777 echo $ECHO_N "(cached) $ECHO_C" >&6
25779 eval "$as_ac_Header=\$ac_header_preproc"
25781 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25782 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25786 cat >>confdefs.h <<_ACEOF
25787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25794 if test "${ac_cv_header_sys_epoll_h}" = yes; then
25795 echo "$as_me:$LINENO: checking for epoll system call" >&5
25796 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6
25797 if test "$cross_compiling" = yes; then
25798 echo "$as_me:$LINENO: result: no" >&5
25799 echo "${ECHO_T}no" >&6
25801 cat >conftest.$ac_ext <<_ACEOF
25804 cat confdefs.h >>conftest.$ac_ext
25805 cat >>conftest.$ac_ext <<_ACEOF
25806 /* end confdefs.h. */
25807 int main(int argc, char *argv)
25809 int epfd = epoll_create(256);
25810 exit (epfd == -1 ? 1 : 0);
25813 rm -f conftest$ac_exeext
25814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25815 (eval $ac_link) 2>&5
25817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25818 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25820 (eval $ac_try) 2>&5
25822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25823 (exit $ac_status); }; }; then
25824 echo "$as_me:$LINENO: result: yes" >&5
25825 echo "${ECHO_T}yes" >&6
25827 cat >>confdefs.h <<\_ACEOF
25828 #define HAVE_EPOLL 1
25832 echo "$as_me: program exited with status $ac_status" >&5
25833 echo "$as_me: failed program was:" >&5
25834 sed 's/^/| /' conftest.$ac_ext >&5
25836 ( exit $ac_status )
25837 echo "$as_me:$LINENO: result: no" >&5
25838 echo "${ECHO_T}no" >&6
25840 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25845 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
25846 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
25847 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
25848 echo $ECHO_N "(cached) $ECHO_C" >&6
25851 cat >conftest.$ac_ext <<_ACEOF
25854 cat confdefs.h >>conftest.$ac_ext
25855 cat >>conftest.$ac_ext <<_ACEOF
25856 /* end confdefs.h. */
25859 #include <sys/types.h>
25862 #include <stdlib.h>
25867 char *c = (char *) *sys_errlist
25872 rm -f conftest.$ac_objext
25873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25874 (eval $ac_compile) 2>conftest.er1
25876 grep -v '^ *+' conftest.er1 >conftest.err
25878 cat conftest.err >&5
25879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25880 (exit $ac_status); } &&
25881 { ac_try='test -z "$ac_c_werror_flag"
25882 || test ! -s conftest.err'
25883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25884 (eval $ac_try) 2>&5
25886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887 (exit $ac_status); }; } &&
25888 { ac_try='test -s conftest.$ac_objext'
25889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25890 (eval $ac_try) 2>&5
25892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25893 (exit $ac_status); }; }; then
25894 ol_cv_dcl_sys_errlist=yes
25895 ol_cv_have_sys_errlist=yes
25897 echo "$as_me: failed program was:" >&5
25898 sed 's/^/| /' conftest.$ac_ext >&5
25900 ol_cv_dcl_sys_errlist=no
25902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25904 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
25905 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
25907 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
25908 if test $ol_cv_dcl_sys_errlist = no ; then
25910 cat >>confdefs.h <<\_ACEOF
25911 #define DECL_SYS_ERRLIST 1
25915 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
25916 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
25917 if test "${ol_cv_have_sys_errlist+set}" = set; then
25918 echo $ECHO_N "(cached) $ECHO_C" >&6
25921 cat >conftest.$ac_ext <<_ACEOF
25924 cat confdefs.h >>conftest.$ac_ext
25925 cat >>conftest.$ac_ext <<_ACEOF
25926 /* end confdefs.h. */
25931 char *c = (char *) *sys_errlist
25936 rm -f conftest.$ac_objext conftest$ac_exeext
25937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25938 (eval $ac_link) 2>conftest.er1
25940 grep -v '^ *+' conftest.er1 >conftest.err
25942 cat conftest.err >&5
25943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944 (exit $ac_status); } &&
25945 { ac_try='test -z "$ac_c_werror_flag"
25946 || test ! -s conftest.err'
25947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25948 (eval $ac_try) 2>&5
25950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25951 (exit $ac_status); }; } &&
25952 { ac_try='test -s conftest$ac_exeext'
25953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25954 (eval $ac_try) 2>&5
25956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25957 (exit $ac_status); }; }; then
25958 ol_cv_have_sys_errlist=yes
25960 echo "$as_me: failed program was:" >&5
25961 sed 's/^/| /' conftest.$ac_ext >&5
25963 ol_cv_have_sys_errlist=no
25965 rm -f conftest.err conftest.$ac_objext \
25966 conftest$ac_exeext conftest.$ac_ext
25968 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
25969 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
25971 if test $ol_cv_have_sys_errlist = yes ; then
25973 cat >>confdefs.h <<\_ACEOF
25974 #define HAVE_SYS_ERRLIST 1
25980 for ac_func in strerror strerror_r
25982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25983 echo "$as_me:$LINENO: checking for $ac_func" >&5
25984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25985 if eval "test \"\${$as_ac_var+set}\" = set"; then
25986 echo $ECHO_N "(cached) $ECHO_C" >&6
25988 cat >conftest.$ac_ext <<_ACEOF
25991 cat confdefs.h >>conftest.$ac_ext
25992 cat >>conftest.$ac_ext <<_ACEOF
25993 /* end confdefs.h. */
25994 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25995 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25996 #define $ac_func innocuous_$ac_func
25998 /* System header to define __stub macros and hopefully few prototypes,
25999 which can conflict with char $ac_func (); below.
26000 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26001 <limits.h> exists even on freestanding compilers. */
26004 # include <limits.h>
26006 # include <assert.h>
26011 /* Override any gcc2 internal prototype to avoid an error. */
26016 /* We use char because int might match the return type of a gcc2
26017 builtin and then its argument prototype would still apply. */
26019 /* The GNU C library defines this for functions which it implements
26020 to always fail with ENOSYS. Some functions are actually named
26021 something starting with __ and the normal name is an alias. */
26022 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26025 char (*f) () = $ac_func;
26034 return f != $ac_func;
26039 rm -f conftest.$ac_objext conftest$ac_exeext
26040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26041 (eval $ac_link) 2>conftest.er1
26043 grep -v '^ *+' conftest.er1 >conftest.err
26045 cat conftest.err >&5
26046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047 (exit $ac_status); } &&
26048 { ac_try='test -z "$ac_c_werror_flag"
26049 || test ! -s conftest.err'
26050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26051 (eval $ac_try) 2>&5
26053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26054 (exit $ac_status); }; } &&
26055 { ac_try='test -s conftest$ac_exeext'
26056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26057 (eval $ac_try) 2>&5
26059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26060 (exit $ac_status); }; }; then
26061 eval "$as_ac_var=yes"
26063 echo "$as_me: failed program was:" >&5
26064 sed 's/^/| /' conftest.$ac_ext >&5
26066 eval "$as_ac_var=no"
26068 rm -f conftest.err conftest.$ac_objext \
26069 conftest$ac_exeext conftest.$ac_ext
26071 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26072 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26073 if test `eval echo '${'$as_ac_var'}'` = yes; then
26074 cat >>confdefs.h <<_ACEOF
26075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26081 ol_cv_func_strerror_r=no
26082 if test "${ac_cv_func_strerror_r}" = yes ; then
26083 echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
26084 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6
26085 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
26086 echo $ECHO_N "(cached) $ECHO_C" >&6
26089 cat >conftest.$ac_ext <<_ACEOF
26092 cat confdefs.h >>conftest.$ac_ext
26093 cat >>conftest.$ac_ext <<_ACEOF
26094 /* end confdefs.h. */
26095 #include <string.h>
26097 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26098 $EGREP "strerror_r" >/dev/null 2>&1; then
26099 ol_decl_strerror_r=yes
26101 ol_decl_strerror_r=no
26105 if test $ol_decl_strerror_r = yes ; then
26106 cat >conftest.$ac_ext <<_ACEOF
26109 cat confdefs.h >>conftest.$ac_ext
26110 cat >>conftest.$ac_ext <<_ACEOF
26111 /* end confdefs.h. */
26112 #include <string.h>
26116 /* from autoconf 2.59 */
26118 char x = *strerror_r (0, buf, sizeof buf);
26119 char *p = strerror_r (0, buf, sizeof buf);
26125 rm -f conftest.$ac_objext
26126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26127 (eval $ac_compile) 2>conftest.er1
26129 grep -v '^ *+' conftest.er1 >conftest.err
26131 cat conftest.err >&5
26132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26133 (exit $ac_status); } &&
26134 { ac_try='test -z "$ac_c_werror_flag"
26135 || test ! -s conftest.err'
26136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26137 (eval $ac_try) 2>&5
26139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26140 (exit $ac_status); }; } &&
26141 { ac_try='test -s conftest.$ac_objext'
26142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26143 (eval $ac_try) 2>&5
26145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26146 (exit $ac_status); }; }; then
26147 ol_cv_nonposix_strerror_r=yes
26149 echo "$as_me: failed program was:" >&5
26150 sed 's/^/| /' conftest.$ac_ext >&5
26152 ol_cv_nonposix_strerror_r=no
26154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26156 if test "$cross_compiling" = yes; then
26157 ol_cv_nonposix_strerror=no
26159 cat >conftest.$ac_ext <<_ACEOF
26162 cat confdefs.h >>conftest.$ac_ext
26163 cat >>conftest.$ac_ext <<_ACEOF
26164 /* end confdefs.h. */
26169 strerror_r( 1, buf, sizeof buf );
26170 exit( buf[0] == 0 );
26174 rm -f conftest$ac_exeext
26175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26176 (eval $ac_link) 2>&5
26178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26181 (eval $ac_try) 2>&5
26183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26184 (exit $ac_status); }; }; then
26185 ol_cv_nonposix_strerror_r=yes
26187 echo "$as_me: program exited with status $ac_status" >&5
26188 echo "$as_me: failed program was:" >&5
26189 sed 's/^/| /' conftest.$ac_ext >&5
26191 ( exit $ac_status )
26192 ol_cv_nonposix_strerror=no
26194 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26199 echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
26200 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6
26201 if test $ol_cv_nonposix_strerror_r = yes ; then
26203 cat >>confdefs.h <<\_ACEOF
26204 #define HAVE_NONPOSIX_STRERROR_R 1
26209 elif test "${ac_cv_func_strerror}" = no ; then
26210 echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
26211 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6
26212 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
26213 echo $ECHO_N "(cached) $ECHO_C" >&6
26216 cat >conftest.$ac_ext <<_ACEOF
26219 cat confdefs.h >>conftest.$ac_ext
26220 cat >>conftest.$ac_ext <<_ACEOF
26221 /* end confdefs.h. */
26224 #include <sys/types.h>
26227 #include <stdlib.h>
26232 char *c = (char *) *sys_errlist
26237 rm -f conftest.$ac_objext
26238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26239 (eval $ac_compile) 2>conftest.er1
26241 grep -v '^ *+' conftest.er1 >conftest.err
26243 cat conftest.err >&5
26244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26245 (exit $ac_status); } &&
26246 { ac_try='test -z "$ac_c_werror_flag"
26247 || test ! -s conftest.err'
26248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26249 (eval $ac_try) 2>&5
26251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26252 (exit $ac_status); }; } &&
26253 { ac_try='test -s conftest.$ac_objext'
26254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26255 (eval $ac_try) 2>&5
26257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26258 (exit $ac_status); }; }; then
26259 ol_cv_dcl_sys_errlist=yes
26260 ol_cv_have_sys_errlist=yes
26262 echo "$as_me: failed program was:" >&5
26263 sed 's/^/| /' conftest.$ac_ext >&5
26265 ol_cv_dcl_sys_errlist=no
26267 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26269 echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
26270 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6
26272 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
26273 if test $ol_cv_dcl_sys_errlist = no ; then
26275 cat >>confdefs.h <<\_ACEOF
26276 #define DECL_SYS_ERRLIST 1
26280 echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
26281 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6
26282 if test "${ol_cv_have_sys_errlist+set}" = set; then
26283 echo $ECHO_N "(cached) $ECHO_C" >&6
26286 cat >conftest.$ac_ext <<_ACEOF
26289 cat confdefs.h >>conftest.$ac_ext
26290 cat >>conftest.$ac_ext <<_ACEOF
26291 /* end confdefs.h. */
26296 char *c = (char *) *sys_errlist
26301 rm -f conftest.$ac_objext conftest$ac_exeext
26302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26303 (eval $ac_link) 2>conftest.er1
26305 grep -v '^ *+' conftest.er1 >conftest.err
26307 cat conftest.err >&5
26308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309 (exit $ac_status); } &&
26310 { ac_try='test -z "$ac_c_werror_flag"
26311 || test ! -s conftest.err'
26312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26313 (eval $ac_try) 2>&5
26315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26316 (exit $ac_status); }; } &&
26317 { ac_try='test -s conftest$ac_exeext'
26318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26319 (eval $ac_try) 2>&5
26321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26322 (exit $ac_status); }; }; then
26323 ol_cv_have_sys_errlist=yes
26325 echo "$as_me: failed program was:" >&5
26326 sed 's/^/| /' conftest.$ac_ext >&5
26328 ol_cv_have_sys_errlist=no
26330 rm -f conftest.err conftest.$ac_objext \
26331 conftest$ac_exeext conftest.$ac_ext
26333 echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
26334 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6
26336 if test $ol_cv_have_sys_errlist = yes ; then
26338 cat >>confdefs.h <<\_ACEOF
26339 #define HAVE_SYS_ERRLIST 1
26348 for ac_header in regex.h
26350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26352 echo "$as_me:$LINENO: checking for $ac_header" >&5
26353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26354 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26355 echo $ECHO_N "(cached) $ECHO_C" >&6
26357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26360 # Is the header compilable?
26361 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26363 cat >conftest.$ac_ext <<_ACEOF
26366 cat confdefs.h >>conftest.$ac_ext
26367 cat >>conftest.$ac_ext <<_ACEOF
26368 /* end confdefs.h. */
26369 $ac_includes_default
26370 #include <$ac_header>
26372 rm -f conftest.$ac_objext
26373 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26374 (eval $ac_compile) 2>conftest.er1
26376 grep -v '^ *+' conftest.er1 >conftest.err
26378 cat conftest.err >&5
26379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26380 (exit $ac_status); } &&
26381 { ac_try='test -z "$ac_c_werror_flag"
26382 || test ! -s conftest.err'
26383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26384 (eval $ac_try) 2>&5
26386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26387 (exit $ac_status); }; } &&
26388 { ac_try='test -s conftest.$ac_objext'
26389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26390 (eval $ac_try) 2>&5
26392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393 (exit $ac_status); }; }; then
26394 ac_header_compiler=yes
26396 echo "$as_me: failed program was:" >&5
26397 sed 's/^/| /' conftest.$ac_ext >&5
26399 ac_header_compiler=no
26401 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26402 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26403 echo "${ECHO_T}$ac_header_compiler" >&6
26405 # Is the header present?
26406 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26408 cat >conftest.$ac_ext <<_ACEOF
26411 cat confdefs.h >>conftest.$ac_ext
26412 cat >>conftest.$ac_ext <<_ACEOF
26413 /* end confdefs.h. */
26414 #include <$ac_header>
26416 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26419 grep -v '^ *+' conftest.er1 >conftest.err
26421 cat conftest.err >&5
26422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26423 (exit $ac_status); } >/dev/null; then
26424 if test -s conftest.err; then
26425 ac_cpp_err=$ac_c_preproc_warn_flag
26426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26433 if test -z "$ac_cpp_err"; then
26434 ac_header_preproc=yes
26436 echo "$as_me: failed program was:" >&5
26437 sed 's/^/| /' conftest.$ac_ext >&5
26439 ac_header_preproc=no
26441 rm -f conftest.err conftest.$ac_ext
26442 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26443 echo "${ECHO_T}$ac_header_preproc" >&6
26445 # So? What about this header?
26446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26452 ac_header_preproc=yes
26455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26469 ## ------------------------------------------ ##
26470 ## Report this to the AC_PACKAGE_NAME lists. ##
26471 ## ------------------------------------------ ##
26474 sed "s/^/$as_me: WARNING: /" >&2
26477 echo "$as_me:$LINENO: checking for $ac_header" >&5
26478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26479 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26480 echo $ECHO_N "(cached) $ECHO_C" >&6
26482 eval "$as_ac_Header=\$ac_header_preproc"
26484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26489 cat >>confdefs.h <<_ACEOF
26490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26497 if test "$ac_cv_header_regex_h" != yes ; then
26498 { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
26499 echo "$as_me: error: POSIX regex.h required." >&2;}
26500 { (exit 1); exit 1; }; }
26502 echo "$as_me:$LINENO: checking for library containing regfree" >&5
26503 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6
26504 if test "${ac_cv_search_regfree+set}" = set; then
26505 echo $ECHO_N "(cached) $ECHO_C" >&6
26507 ac_func_search_save_LIBS=$LIBS
26508 ac_cv_search_regfree=no
26509 cat >conftest.$ac_ext <<_ACEOF
26512 cat confdefs.h >>conftest.$ac_ext
26513 cat >>conftest.$ac_ext <<_ACEOF
26514 /* end confdefs.h. */
26516 /* Override any gcc2 internal prototype to avoid an error. */
26520 /* We use char because int might match the return type of a gcc2
26521 builtin and then its argument prototype would still apply. */
26531 rm -f conftest.$ac_objext conftest$ac_exeext
26532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26533 (eval $ac_link) 2>conftest.er1
26535 grep -v '^ *+' conftest.er1 >conftest.err
26537 cat conftest.err >&5
26538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539 (exit $ac_status); } &&
26540 { ac_try='test -z "$ac_c_werror_flag"
26541 || test ! -s conftest.err'
26542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26543 (eval $ac_try) 2>&5
26545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26546 (exit $ac_status); }; } &&
26547 { ac_try='test -s conftest$ac_exeext'
26548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26549 (eval $ac_try) 2>&5
26551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26552 (exit $ac_status); }; }; then
26553 ac_cv_search_regfree="none required"
26555 echo "$as_me: failed program was:" >&5
26556 sed 's/^/| /' conftest.$ac_ext >&5
26559 rm -f conftest.err conftest.$ac_objext \
26560 conftest$ac_exeext conftest.$ac_ext
26561 if test "$ac_cv_search_regfree" = no; then
26562 for ac_lib in regex gnuregex; do
26563 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26564 cat >conftest.$ac_ext <<_ACEOF
26567 cat confdefs.h >>conftest.$ac_ext
26568 cat >>conftest.$ac_ext <<_ACEOF
26569 /* end confdefs.h. */
26571 /* Override any gcc2 internal prototype to avoid an error. */
26575 /* We use char because int might match the return type of a gcc2
26576 builtin and then its argument prototype would still apply. */
26586 rm -f conftest.$ac_objext conftest$ac_exeext
26587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26588 (eval $ac_link) 2>conftest.er1
26590 grep -v '^ *+' conftest.er1 >conftest.err
26592 cat conftest.err >&5
26593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594 (exit $ac_status); } &&
26595 { ac_try='test -z "$ac_c_werror_flag"
26596 || test ! -s conftest.err'
26597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26598 (eval $ac_try) 2>&5
26600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26601 (exit $ac_status); }; } &&
26602 { ac_try='test -s conftest$ac_exeext'
26603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26604 (eval $ac_try) 2>&5
26606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26607 (exit $ac_status); }; }; then
26608 ac_cv_search_regfree="-l$ac_lib"
26611 echo "$as_me: failed program was:" >&5
26612 sed 's/^/| /' conftest.$ac_ext >&5
26615 rm -f conftest.err conftest.$ac_objext \
26616 conftest$ac_exeext conftest.$ac_ext
26619 LIBS=$ac_func_search_save_LIBS
26621 echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
26622 echo "${ECHO_T}$ac_cv_search_regfree" >&6
26623 if test "$ac_cv_search_regfree" != no; then
26624 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
26627 { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
26628 echo "$as_me: error: POSIX regex required." >&2;}
26629 { (exit 1); exit 1; }; }
26634 echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
26635 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6
26636 if test "${ol_cv_c_posix_regex+set}" = set; then
26637 echo $ECHO_N "(cached) $ECHO_C" >&6
26640 if test "$cross_compiling" = yes; then
26641 ol_cv_c_posix_regex=cross
26643 cat >conftest.$ac_ext <<_ACEOF
26646 cat confdefs.h >>conftest.$ac_ext
26647 cat >>conftest.$ac_ext <<_ACEOF
26648 /* end confdefs.h. */
26650 #include <sys/types.h>
26652 static char *pattern, *string;
26660 if(regcomp(&re, pattern, 0)) {
26664 string = "ALL MATCH";
26666 rc = regexec(&re, string, 0, (void*)0, 0);
26673 rm -f conftest$ac_exeext
26674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26675 (eval $ac_link) 2>&5
26677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26680 (eval $ac_try) 2>&5
26682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26683 (exit $ac_status); }; }; then
26684 ol_cv_c_posix_regex=yes
26686 echo "$as_me: program exited with status $ac_status" >&5
26687 echo "$as_me: failed program was:" >&5
26688 sed 's/^/| /' conftest.$ac_ext >&5
26690 ( exit $ac_status )
26691 ol_cv_c_posix_regex=no
26693 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26696 echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
26697 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6
26699 if test "$ol_cv_c_posix_regex" = no ; then
26700 { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
26701 echo "$as_me: error: broken POSIX regex!" >&2;}
26702 { (exit 1); exit 1; }; }
26708 for ac_header in sys/uuid.h
26710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26711 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26712 echo "$as_me:$LINENO: checking for $ac_header" >&5
26713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26715 echo $ECHO_N "(cached) $ECHO_C" >&6
26717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26720 # Is the header compilable?
26721 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26722 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26723 cat >conftest.$ac_ext <<_ACEOF
26726 cat confdefs.h >>conftest.$ac_ext
26727 cat >>conftest.$ac_ext <<_ACEOF
26728 /* end confdefs.h. */
26729 $ac_includes_default
26730 #include <$ac_header>
26732 rm -f conftest.$ac_objext
26733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26734 (eval $ac_compile) 2>conftest.er1
26736 grep -v '^ *+' conftest.er1 >conftest.err
26738 cat conftest.err >&5
26739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740 (exit $ac_status); } &&
26741 { ac_try='test -z "$ac_c_werror_flag"
26742 || test ! -s conftest.err'
26743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26744 (eval $ac_try) 2>&5
26746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26747 (exit $ac_status); }; } &&
26748 { ac_try='test -s conftest.$ac_objext'
26749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26750 (eval $ac_try) 2>&5
26752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26753 (exit $ac_status); }; }; then
26754 ac_header_compiler=yes
26756 echo "$as_me: failed program was:" >&5
26757 sed 's/^/| /' conftest.$ac_ext >&5
26759 ac_header_compiler=no
26761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26762 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26763 echo "${ECHO_T}$ac_header_compiler" >&6
26765 # Is the header present?
26766 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26768 cat >conftest.$ac_ext <<_ACEOF
26771 cat confdefs.h >>conftest.$ac_ext
26772 cat >>conftest.$ac_ext <<_ACEOF
26773 /* end confdefs.h. */
26774 #include <$ac_header>
26776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26777 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26779 grep -v '^ *+' conftest.er1 >conftest.err
26781 cat conftest.err >&5
26782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783 (exit $ac_status); } >/dev/null; then
26784 if test -s conftest.err; then
26785 ac_cpp_err=$ac_c_preproc_warn_flag
26786 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26793 if test -z "$ac_cpp_err"; then
26794 ac_header_preproc=yes
26796 echo "$as_me: failed program was:" >&5
26797 sed 's/^/| /' conftest.$ac_ext >&5
26799 ac_header_preproc=no
26801 rm -f conftest.err conftest.$ac_ext
26802 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26803 echo "${ECHO_T}$ac_header_preproc" >&6
26805 # So? What about this header?
26806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26808 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26812 ac_header_preproc=yes
26815 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26817 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26818 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26819 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26821 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26822 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26823 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26825 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26829 ## ------------------------------------------ ##
26830 ## Report this to the AC_PACKAGE_NAME lists. ##
26831 ## ------------------------------------------ ##
26834 sed "s/^/$as_me: WARNING: /" >&2
26837 echo "$as_me:$LINENO: checking for $ac_header" >&5
26838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26839 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26840 echo $ECHO_N "(cached) $ECHO_C" >&6
26842 eval "$as_ac_Header=\$ac_header_preproc"
26844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26845 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26848 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26849 cat >>confdefs.h <<_ACEOF
26850 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26857 if test $ac_cv_header_sys_uuid_h = yes ; then
26859 echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
26860 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6
26861 if test "${ac_cv_search_uuid_to_str+set}" = set; then
26862 echo $ECHO_N "(cached) $ECHO_C" >&6
26864 ac_func_search_save_LIBS=$LIBS
26865 ac_cv_search_uuid_to_str=no
26866 cat >conftest.$ac_ext <<_ACEOF
26869 cat confdefs.h >>conftest.$ac_ext
26870 cat >>conftest.$ac_ext <<_ACEOF
26871 /* end confdefs.h. */
26873 /* Override any gcc2 internal prototype to avoid an error. */
26877 /* We use char because int might match the return type of a gcc2
26878 builtin and then its argument prototype would still apply. */
26879 char uuid_to_str ();
26888 rm -f conftest.$ac_objext conftest$ac_exeext
26889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26890 (eval $ac_link) 2>conftest.er1
26892 grep -v '^ *+' conftest.er1 >conftest.err
26894 cat conftest.err >&5
26895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26896 (exit $ac_status); } &&
26897 { ac_try='test -z "$ac_c_werror_flag"
26898 || test ! -s conftest.err'
26899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26900 (eval $ac_try) 2>&5
26902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26903 (exit $ac_status); }; } &&
26904 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
26910 ac_cv_search_uuid_to_str="none required"
26912 echo "$as_me: failed program was:" >&5
26913 sed 's/^/| /' conftest.$ac_ext >&5
26916 rm -f conftest.err conftest.$ac_objext \
26917 conftest$ac_exeext conftest.$ac_ext
26918 if test "$ac_cv_search_uuid_to_str" = no; then
26919 for ac_lib in uuid; do
26920 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
26921 cat >conftest.$ac_ext <<_ACEOF
26924 cat confdefs.h >>conftest.$ac_ext
26925 cat >>conftest.$ac_ext <<_ACEOF
26926 /* end confdefs.h. */
26928 /* Override any gcc2 internal prototype to avoid an error. */
26932 /* We use char because int might match the return type of a gcc2
26933 builtin and then its argument prototype would still apply. */
26934 char uuid_to_str ();
26943 rm -f conftest.$ac_objext conftest$ac_exeext
26944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26945 (eval $ac_link) 2>conftest.er1
26947 grep -v '^ *+' conftest.er1 >conftest.err
26949 cat conftest.err >&5
26950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951 (exit $ac_status); } &&
26952 { ac_try='test -z "$ac_c_werror_flag"
26953 || test ! -s conftest.err'
26954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26955 (eval $ac_try) 2>&5
26957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26958 (exit $ac_status); }; } &&
26959 { ac_try='test -s conftest$ac_exeext'
26960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26961 (eval $ac_try) 2>&5
26963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26964 (exit $ac_status); }; }; then
26965 ac_cv_search_uuid_to_str="-l$ac_lib"
26968 echo "$as_me: failed program was:" >&5
26969 sed 's/^/| /' conftest.$ac_ext >&5
26972 rm -f conftest.err conftest.$ac_objext \
26973 conftest$ac_exeext conftest.$ac_ext
26976 LIBS=$ac_func_search_save_LIBS
26978 echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
26979 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6
26980 if test "$ac_cv_search_uuid_to_str" != no; then
26981 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
26989 if test have_uuid = yes ; then
26991 cat >>confdefs.h <<\_ACEOF
26992 #define HAVE_UUID_TO_STR 1
26996 test "$ac_cv_search_uuid_to_str" = "none required" || \
26997 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
27001 if test $have_uuid = no ; then
27002 echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
27003 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6
27005 LIBS="$LIBS -lrpcrt4"
27006 cat >conftest.$ac_ext <<_ACEOF
27009 cat confdefs.h >>conftest.$ac_ext
27010 cat >>conftest.$ac_ext <<_ACEOF
27011 /* end confdefs.h. */
27013 int __stdcall UuidCreate(void *);
27014 int __stdcall UuidToStringA(void *,void **);
27021 UuidToStringA(0,0);
27027 rm -f conftest.$ac_objext conftest$ac_exeext
27028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27029 (eval $ac_link) 2>conftest.er1
27031 grep -v '^ *+' conftest.er1 >conftest.err
27033 cat conftest.err >&5
27034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27035 (exit $ac_status); } &&
27036 { ac_try='test -z "$ac_c_werror_flag"
27037 || test ! -s conftest.err'
27038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27039 (eval $ac_try) 2>&5
27041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27042 (exit $ac_status); }; } &&
27043 { ac_try='test -s conftest$ac_exeext'
27044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27045 (eval $ac_try) 2>&5
27047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048 (exit $ac_status); }; }; then
27051 echo "$as_me: failed program was:" >&5
27052 sed 's/^/| /' conftest.$ac_ext >&5
27056 rm -f conftest.err conftest.$ac_objext \
27057 conftest$ac_exeext conftest.$ac_ext
27058 if test $need_rpcrt = yes; then
27059 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
27062 echo "$as_me:$LINENO: result: $need_rpcrt" >&5
27063 echo "${ECHO_T}$need_rpcrt" >&6
27066 ol_cv_lib_resolver=no
27067 if test $ol_cv_lib_resolver = no ; then
27068 echo "$as_me:$LINENO: checking for resolver link (default)" >&5
27069 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6
27070 if test "${ol_cv_resolver_none+set}" = set; then
27071 echo $ECHO_N "(cached) $ECHO_C" >&6
27076 LIBS="$ol_RESOLVER_LIB $LIBS"
27078 cat >conftest.$ac_ext <<_ACEOF
27081 cat confdefs.h >>conftest.$ac_ext
27082 cat >>conftest.$ac_ext <<_ACEOF
27083 /* end confdefs.h. */
27085 #ifdef HAVE_SYS_TYPES_H
27086 # include <sys/types.h>
27088 #include <netinet/in.h>
27089 #ifdef HAVE_ARPA_NAMESER_H
27090 # include <arpa/nameser.h>
27092 #ifdef HAVE_RESOLV_H
27093 # include <resolv.h>
27101 char *request = NULL;
27102 unsigned char reply[64*1024];
27103 unsigned char host[64*1024];
27107 /* Bind 8/9 interface */
27108 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27110 /* Bind 4 interface */
27114 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27118 /* Bind 8/9 interface */
27120 #elif defined(HFIXEDSZ)
27121 /* Bind 4 interface w/ HFIXEDSZ */
27124 /* Bind 4 interface w/o HFIXEDSZ */
27125 p += sizeof(HEADER);
27127 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27133 rm -f conftest.$ac_objext conftest$ac_exeext
27134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27135 (eval $ac_link) 2>conftest.er1
27137 grep -v '^ *+' conftest.er1 >conftest.err
27139 cat conftest.err >&5
27140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27141 (exit $ac_status); } &&
27142 { ac_try='test -z "$ac_c_werror_flag"
27143 || test ! -s conftest.err'
27144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27145 (eval $ac_try) 2>&5
27147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27148 (exit $ac_status); }; } &&
27149 { ac_try='test -s conftest$ac_exeext'
27150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27151 (eval $ac_try) 2>&5
27153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27154 (exit $ac_status); }; }; then
27155 ol_cv_resolver_none=yes
27157 echo "$as_me: failed program was:" >&5
27158 sed 's/^/| /' conftest.$ac_ext >&5
27160 ol_cv_resolver_none=no
27162 rm -f conftest.err conftest.$ac_objext \
27163 conftest$ac_exeext conftest.$ac_ext
27168 echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
27169 echo "${ECHO_T}$ol_cv_resolver_none" >&6
27171 if test $ol_cv_resolver_none = yes ; then
27172 ol_cv_lib_resolver=yes
27176 if test $ol_cv_lib_resolver = no ; then
27177 echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
27178 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6
27179 if test "${ol_cv_resolver_resolv+set}" = set; then
27180 echo $ECHO_N "(cached) $ECHO_C" >&6
27183 ol_RESOLVER_LIB=-lresolv
27185 LIBS="$ol_RESOLVER_LIB $LIBS"
27187 cat >conftest.$ac_ext <<_ACEOF
27190 cat confdefs.h >>conftest.$ac_ext
27191 cat >>conftest.$ac_ext <<_ACEOF
27192 /* end confdefs.h. */
27194 #ifdef HAVE_SYS_TYPES_H
27195 # include <sys/types.h>
27197 #include <netinet/in.h>
27198 #ifdef HAVE_ARPA_NAMESER_H
27199 # include <arpa/nameser.h>
27201 #ifdef HAVE_RESOLV_H
27202 # include <resolv.h>
27210 char *request = NULL;
27211 unsigned char reply[64*1024];
27212 unsigned char host[64*1024];
27216 /* Bind 8/9 interface */
27217 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27219 /* Bind 4 interface */
27223 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27227 /* Bind 8/9 interface */
27229 #elif defined(HFIXEDSZ)
27230 /* Bind 4 interface w/ HFIXEDSZ */
27233 /* Bind 4 interface w/o HFIXEDSZ */
27234 p += sizeof(HEADER);
27236 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27242 rm -f conftest.$ac_objext conftest$ac_exeext
27243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27244 (eval $ac_link) 2>conftest.er1
27246 grep -v '^ *+' conftest.er1 >conftest.err
27248 cat conftest.err >&5
27249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250 (exit $ac_status); } &&
27251 { ac_try='test -z "$ac_c_werror_flag"
27252 || test ! -s conftest.err'
27253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27254 (eval $ac_try) 2>&5
27256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257 (exit $ac_status); }; } &&
27258 { ac_try='test -s conftest$ac_exeext'
27259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27260 (eval $ac_try) 2>&5
27262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263 (exit $ac_status); }; }; then
27264 ol_cv_resolver_resolv=yes
27266 echo "$as_me: failed program was:" >&5
27267 sed 's/^/| /' conftest.$ac_ext >&5
27269 ol_cv_resolver_resolv=no
27271 rm -f conftest.err conftest.$ac_objext \
27272 conftest$ac_exeext conftest.$ac_ext
27277 echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
27278 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6
27280 if test $ol_cv_resolver_resolv = yes ; then
27281 ol_cv_lib_resolver=-lresolv
27285 if test $ol_cv_lib_resolver = no ; then
27286 echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
27287 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6
27288 if test "${ol_cv_resolver_bind+set}" = set; then
27289 echo $ECHO_N "(cached) $ECHO_C" >&6
27292 ol_RESOLVER_LIB=-lbind
27294 LIBS="$ol_RESOLVER_LIB $LIBS"
27296 cat >conftest.$ac_ext <<_ACEOF
27299 cat confdefs.h >>conftest.$ac_ext
27300 cat >>conftest.$ac_ext <<_ACEOF
27301 /* end confdefs.h. */
27303 #ifdef HAVE_SYS_TYPES_H
27304 # include <sys/types.h>
27306 #include <netinet/in.h>
27307 #ifdef HAVE_ARPA_NAMESER_H
27308 # include <arpa/nameser.h>
27310 #ifdef HAVE_RESOLV_H
27311 # include <resolv.h>
27319 char *request = NULL;
27320 unsigned char reply[64*1024];
27321 unsigned char host[64*1024];
27325 /* Bind 8/9 interface */
27326 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
27328 /* Bind 4 interface */
27332 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
27336 /* Bind 8/9 interface */
27338 #elif defined(HFIXEDSZ)
27339 /* Bind 4 interface w/ HFIXEDSZ */
27342 /* Bind 4 interface w/o HFIXEDSZ */
27343 p += sizeof(HEADER);
27345 status = dn_expand( reply, reply+len, p, host, sizeof(host));
27351 rm -f conftest.$ac_objext conftest$ac_exeext
27352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27353 (eval $ac_link) 2>conftest.er1
27355 grep -v '^ *+' conftest.er1 >conftest.err
27357 cat conftest.err >&5
27358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359 (exit $ac_status); } &&
27360 { ac_try='test -z "$ac_c_werror_flag"
27361 || test ! -s conftest.err'
27362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27363 (eval $ac_try) 2>&5
27365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27366 (exit $ac_status); }; } &&
27367 { ac_try='test -s conftest$ac_exeext'
27368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27369 (eval $ac_try) 2>&5
27371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27372 (exit $ac_status); }; }; then
27373 ol_cv_resolver_bind=yes
27375 echo "$as_me: failed program was:" >&5
27376 sed 's/^/| /' conftest.$ac_ext >&5
27378 ol_cv_resolver_bind=no
27380 rm -f conftest.err conftest.$ac_objext \
27381 conftest$ac_exeext conftest.$ac_ext
27386 echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
27387 echo "${ECHO_T}$ol_cv_resolver_bind" >&6
27389 if test $ol_cv_resolver_bind = yes ; then
27390 ol_cv_lib_resolver=-lbind
27397 if test "$ol_cv_lib_resolver" != no ; then
27399 cat >>confdefs.h <<\_ACEOF
27400 #define HAVE_RES_QUERY 1
27404 if test "$ol_enable_dnssrv" != no ; then
27408 if test "$ol_cv_lib_resolver" != yes ; then
27409 LIBS="$ol_cv_lib_resolver $LIBS"
27413 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
27414 if test "$ol_link_dnssrv" = no ; then
27415 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
27416 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
27417 { (exit 1); exit 1; }; }
27420 ol_enable_dnssrv=no
27424 for ac_func in hstrerror
27426 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27427 echo "$as_me:$LINENO: checking for $ac_func" >&5
27428 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27429 if eval "test \"\${$as_ac_var+set}\" = set"; then
27430 echo $ECHO_N "(cached) $ECHO_C" >&6
27432 cat >conftest.$ac_ext <<_ACEOF
27435 cat confdefs.h >>conftest.$ac_ext
27436 cat >>conftest.$ac_ext <<_ACEOF
27437 /* end confdefs.h. */
27438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27440 #define $ac_func innocuous_$ac_func
27442 /* System header to define __stub macros and hopefully few prototypes,
27443 which can conflict with char $ac_func (); below.
27444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27445 <limits.h> exists even on freestanding compilers. */
27448 # include <limits.h>
27450 # include <assert.h>
27455 /* Override any gcc2 internal prototype to avoid an error. */
27460 /* We use char because int might match the return type of a gcc2
27461 builtin and then its argument prototype would still apply. */
27463 /* The GNU C library defines this for functions which it implements
27464 to always fail with ENOSYS. Some functions are actually named
27465 something starting with __ and the normal name is an alias. */
27466 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27469 char (*f) () = $ac_func;
27478 return f != $ac_func;
27483 rm -f conftest.$ac_objext conftest$ac_exeext
27484 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27485 (eval $ac_link) 2>conftest.er1
27487 grep -v '^ *+' conftest.er1 >conftest.err
27489 cat conftest.err >&5
27490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27491 (exit $ac_status); } &&
27492 { ac_try='test -z "$ac_c_werror_flag"
27493 || test ! -s conftest.err'
27494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27495 (eval $ac_try) 2>&5
27497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498 (exit $ac_status); }; } &&
27499 { ac_try='test -s conftest$ac_exeext'
27500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27501 (eval $ac_try) 2>&5
27503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27504 (exit $ac_status); }; }; then
27505 eval "$as_ac_var=yes"
27507 echo "$as_me: failed program was:" >&5
27508 sed 's/^/| /' conftest.$ac_ext >&5
27510 eval "$as_ac_var=no"
27512 rm -f conftest.err conftest.$ac_objext \
27513 conftest$ac_exeext conftest.$ac_ext
27515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27516 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27517 if test `eval echo '${'$as_ac_var'}'` = yes; then
27518 cat >>confdefs.h <<_ACEOF
27519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27530 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
27532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27533 echo "$as_me:$LINENO: checking for $ac_func" >&5
27534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27535 if eval "test \"\${$as_ac_var+set}\" = set"; then
27536 echo $ECHO_N "(cached) $ECHO_C" >&6
27538 cat >conftest.$ac_ext <<_ACEOF
27541 cat confdefs.h >>conftest.$ac_ext
27542 cat >>conftest.$ac_ext <<_ACEOF
27543 /* end confdefs.h. */
27544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27546 #define $ac_func innocuous_$ac_func
27548 /* System header to define __stub macros and hopefully few prototypes,
27549 which can conflict with char $ac_func (); below.
27550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27551 <limits.h> exists even on freestanding compilers. */
27554 # include <limits.h>
27556 # include <assert.h>
27561 /* Override any gcc2 internal prototype to avoid an error. */
27566 /* We use char because int might match the return type of a gcc2
27567 builtin and then its argument prototype would still apply. */
27569 /* The GNU C library defines this for functions which it implements
27570 to always fail with ENOSYS. Some functions are actually named
27571 something starting with __ and the normal name is an alias. */
27572 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27575 char (*f) () = $ac_func;
27584 return f != $ac_func;
27589 rm -f conftest.$ac_objext conftest$ac_exeext
27590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27591 (eval $ac_link) 2>conftest.er1
27593 grep -v '^ *+' conftest.er1 >conftest.err
27595 cat conftest.err >&5
27596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27597 (exit $ac_status); } &&
27598 { ac_try='test -z "$ac_c_werror_flag"
27599 || test ! -s conftest.err'
27600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27601 (eval $ac_try) 2>&5
27603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604 (exit $ac_status); }; } &&
27605 { ac_try='test -s conftest$ac_exeext'
27606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27607 (eval $ac_try) 2>&5
27609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27610 (exit $ac_status); }; }; then
27611 eval "$as_ac_var=yes"
27613 echo "$as_me: failed program was:" >&5
27614 sed 's/^/| /' conftest.$ac_ext >&5
27616 eval "$as_ac_var=no"
27618 rm -f conftest.err conftest.$ac_objext \
27619 conftest$ac_exeext conftest.$ac_ext
27621 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27622 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27623 if test `eval echo '${'$as_ac_var'}'` = yes; then
27624 cat >>confdefs.h <<_ACEOF
27625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27633 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
27634 if test $ol_enable_ipv6 = yes ; then
27635 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
27636 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
27637 { (exit 1); exit 1; }; }
27639 elif test $ol_enable_ipv6 != no ; then
27640 echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
27641 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6
27642 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
27643 echo $ECHO_N "(cached) $ECHO_C" >&6
27646 cat >conftest.$ac_ext <<_ACEOF
27649 cat confdefs.h >>conftest.$ac_ext
27650 cat >>conftest.$ac_ext <<_ACEOF
27651 /* end confdefs.h. */
27653 # include <netinet/in.h>
27654 # ifdef INET6_ADDRSTRLEN
27655 __has_inet6_addrstrlen__;
27659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27660 $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
27661 ol_cv_inet6_addrstrlen=yes
27663 ol_cv_inet6_addrstrlen=no
27668 echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
27669 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6
27672 echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
27673 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6
27674 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
27675 echo $ECHO_N "(cached) $ECHO_C" >&6
27678 cat >conftest.$ac_ext <<_ACEOF
27681 cat confdefs.h >>conftest.$ac_ext
27682 cat >>conftest.$ac_ext <<_ACEOF
27683 /* end confdefs.h. */
27685 #include <sys/types.h>
27686 #include <sys/socket.h>
27692 struct sockaddr_storage ss;
27698 rm -f conftest.$ac_objext
27699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27700 (eval $ac_compile) 2>conftest.er1
27702 grep -v '^ *+' conftest.er1 >conftest.err
27704 cat conftest.err >&5
27705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27706 (exit $ac_status); } &&
27707 { ac_try='test -z "$ac_c_werror_flag"
27708 || test ! -s conftest.err'
27709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27710 (eval $ac_try) 2>&5
27712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27713 (exit $ac_status); }; } &&
27714 { ac_try='test -s conftest.$ac_objext'
27715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27716 (eval $ac_try) 2>&5
27718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27719 (exit $ac_status); }; }; then
27720 ol_cv_struct_sockaddr_storage=yes
27722 echo "$as_me: failed program was:" >&5
27723 sed 's/^/| /' conftest.$ac_ext >&5
27725 ol_cv_struct_sockaddr_storage=no
27727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27729 echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
27730 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6
27732 if test $ol_cv_inet6_addrstrlen = yes \
27733 -a $ol_cv_struct_sockaddr_storage = yes ; then
27735 elif test $ol_enable_ipv6 = yes \
27736 -a $ol_cv_inet6_addrstrlen = no ; then
27737 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
27738 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
27739 { (exit 1); exit 1; }; }
27740 elif test $ol_enable_ipv6 = yes \
27741 -a $ol_cv_struct_sockaddr_storage = no ; then
27742 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
27743 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
27744 { (exit 1); exit 1; }; }
27748 if test $ol_enable_local != no ; then
27750 for ac_header in sys/un.h
27752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27754 echo "$as_me:$LINENO: checking for $ac_header" >&5
27755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27757 echo $ECHO_N "(cached) $ECHO_C" >&6
27759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27762 # Is the header compilable?
27763 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27765 cat >conftest.$ac_ext <<_ACEOF
27768 cat confdefs.h >>conftest.$ac_ext
27769 cat >>conftest.$ac_ext <<_ACEOF
27770 /* end confdefs.h. */
27771 $ac_includes_default
27772 #include <$ac_header>
27774 rm -f conftest.$ac_objext
27775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27776 (eval $ac_compile) 2>conftest.er1
27778 grep -v '^ *+' conftest.er1 >conftest.err
27780 cat conftest.err >&5
27781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27782 (exit $ac_status); } &&
27783 { ac_try='test -z "$ac_c_werror_flag"
27784 || test ! -s conftest.err'
27785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27786 (eval $ac_try) 2>&5
27788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789 (exit $ac_status); }; } &&
27790 { ac_try='test -s conftest.$ac_objext'
27791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27792 (eval $ac_try) 2>&5
27794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27795 (exit $ac_status); }; }; then
27796 ac_header_compiler=yes
27798 echo "$as_me: failed program was:" >&5
27799 sed 's/^/| /' conftest.$ac_ext >&5
27801 ac_header_compiler=no
27803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27805 echo "${ECHO_T}$ac_header_compiler" >&6
27807 # Is the header present?
27808 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27810 cat >conftest.$ac_ext <<_ACEOF
27813 cat confdefs.h >>conftest.$ac_ext
27814 cat >>conftest.$ac_ext <<_ACEOF
27815 /* end confdefs.h. */
27816 #include <$ac_header>
27818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27821 grep -v '^ *+' conftest.er1 >conftest.err
27823 cat conftest.err >&5
27824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27825 (exit $ac_status); } >/dev/null; then
27826 if test -s conftest.err; then
27827 ac_cpp_err=$ac_c_preproc_warn_flag
27828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27835 if test -z "$ac_cpp_err"; then
27836 ac_header_preproc=yes
27838 echo "$as_me: failed program was:" >&5
27839 sed 's/^/| /' conftest.$ac_ext >&5
27841 ac_header_preproc=no
27843 rm -f conftest.err conftest.$ac_ext
27844 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27845 echo "${ECHO_T}$ac_header_preproc" >&6
27847 # So? What about this header?
27848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27854 ac_header_preproc=yes
27857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27860 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27864 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27871 ## ------------------------------------------ ##
27872 ## Report this to the AC_PACKAGE_NAME lists. ##
27873 ## ------------------------------------------ ##
27876 sed "s/^/$as_me: WARNING: /" >&2
27879 echo "$as_me:$LINENO: checking for $ac_header" >&5
27880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27882 echo $ECHO_N "(cached) $ECHO_C" >&6
27884 eval "$as_ac_Header=\$ac_header_preproc"
27886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27891 cat >>confdefs.h <<_ACEOF
27892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27900 if test $ol_enable_local = auto ; then
27901 ol_enable_local=$ac_cv_header_sys_un_h
27902 elif test $ac_cv_header_sys_un_h = no ; then
27903 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
27904 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
27905 { (exit 1); exit 1; }; }
27913 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
27914 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
27915 -o $ol_with_kerberos = k425 ; then
27918 for ac_header in krb5.h
27920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27922 echo "$as_me:$LINENO: checking for $ac_header" >&5
27923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27925 echo $ECHO_N "(cached) $ECHO_C" >&6
27927 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27928 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27930 # Is the header compilable?
27931 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27933 cat >conftest.$ac_ext <<_ACEOF
27936 cat confdefs.h >>conftest.$ac_ext
27937 cat >>conftest.$ac_ext <<_ACEOF
27938 /* end confdefs.h. */
27939 $ac_includes_default
27940 #include <$ac_header>
27942 rm -f conftest.$ac_objext
27943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27944 (eval $ac_compile) 2>conftest.er1
27946 grep -v '^ *+' conftest.er1 >conftest.err
27948 cat conftest.err >&5
27949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27950 (exit $ac_status); } &&
27951 { ac_try='test -z "$ac_c_werror_flag"
27952 || test ! -s conftest.err'
27953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27954 (eval $ac_try) 2>&5
27956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957 (exit $ac_status); }; } &&
27958 { ac_try='test -s conftest.$ac_objext'
27959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27960 (eval $ac_try) 2>&5
27962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27963 (exit $ac_status); }; }; then
27964 ac_header_compiler=yes
27966 echo "$as_me: failed program was:" >&5
27967 sed 's/^/| /' conftest.$ac_ext >&5
27969 ac_header_compiler=no
27971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27972 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27973 echo "${ECHO_T}$ac_header_compiler" >&6
27975 # Is the header present?
27976 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27978 cat >conftest.$ac_ext <<_ACEOF
27981 cat confdefs.h >>conftest.$ac_ext
27982 cat >>conftest.$ac_ext <<_ACEOF
27983 /* end confdefs.h. */
27984 #include <$ac_header>
27986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27989 grep -v '^ *+' conftest.er1 >conftest.err
27991 cat conftest.err >&5
27992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27993 (exit $ac_status); } >/dev/null; then
27994 if test -s conftest.err; then
27995 ac_cpp_err=$ac_c_preproc_warn_flag
27996 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28003 if test -z "$ac_cpp_err"; then
28004 ac_header_preproc=yes
28006 echo "$as_me: failed program was:" >&5
28007 sed 's/^/| /' conftest.$ac_ext >&5
28009 ac_header_preproc=no
28011 rm -f conftest.err conftest.$ac_ext
28012 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28013 echo "${ECHO_T}$ac_header_preproc" >&6
28015 # So? What about this header?
28016 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28018 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28019 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28021 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28022 ac_header_preproc=yes
28025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28029 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28030 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28031 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28032 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28033 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28034 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28035 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28036 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28039 ## ------------------------------------------ ##
28040 ## Report this to the AC_PACKAGE_NAME lists. ##
28041 ## ------------------------------------------ ##
28044 sed "s/^/$as_me: WARNING: /" >&2
28047 echo "$as_me:$LINENO: checking for $ac_header" >&5
28048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28049 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28050 echo $ECHO_N "(cached) $ECHO_C" >&6
28052 eval "$as_ac_Header=\$ac_header_preproc"
28054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28058 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28059 cat >>confdefs.h <<_ACEOF
28060 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28068 if test $ac_cv_header_krb5_h = yes ; then
28070 for ac_header in heim_err.h
28072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28074 echo "$as_me:$LINENO: checking for $ac_header" >&5
28075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28076 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28077 echo $ECHO_N "(cached) $ECHO_C" >&6
28079 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28080 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28082 # Is the header compilable?
28083 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28085 cat >conftest.$ac_ext <<_ACEOF
28088 cat confdefs.h >>conftest.$ac_ext
28089 cat >>conftest.$ac_ext <<_ACEOF
28090 /* end confdefs.h. */
28091 $ac_includes_default
28092 #include <$ac_header>
28094 rm -f conftest.$ac_objext
28095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28096 (eval $ac_compile) 2>conftest.er1
28098 grep -v '^ *+' conftest.er1 >conftest.err
28100 cat conftest.err >&5
28101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28102 (exit $ac_status); } &&
28103 { ac_try='test -z "$ac_c_werror_flag"
28104 || test ! -s conftest.err'
28105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28106 (eval $ac_try) 2>&5
28108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28109 (exit $ac_status); }; } &&
28110 { ac_try='test -s conftest.$ac_objext'
28111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28112 (eval $ac_try) 2>&5
28114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28115 (exit $ac_status); }; }; then
28116 ac_header_compiler=yes
28118 echo "$as_me: failed program was:" >&5
28119 sed 's/^/| /' conftest.$ac_ext >&5
28121 ac_header_compiler=no
28123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28124 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28125 echo "${ECHO_T}$ac_header_compiler" >&6
28127 # Is the header present?
28128 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28130 cat >conftest.$ac_ext <<_ACEOF
28133 cat confdefs.h >>conftest.$ac_ext
28134 cat >>conftest.$ac_ext <<_ACEOF
28135 /* end confdefs.h. */
28136 #include <$ac_header>
28138 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28139 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28141 grep -v '^ *+' conftest.er1 >conftest.err
28143 cat conftest.err >&5
28144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28145 (exit $ac_status); } >/dev/null; then
28146 if test -s conftest.err; then
28147 ac_cpp_err=$ac_c_preproc_warn_flag
28148 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28155 if test -z "$ac_cpp_err"; then
28156 ac_header_preproc=yes
28158 echo "$as_me: failed program was:" >&5
28159 sed 's/^/| /' conftest.$ac_ext >&5
28161 ac_header_preproc=no
28163 rm -f conftest.err conftest.$ac_ext
28164 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28165 echo "${ECHO_T}$ac_header_preproc" >&6
28167 # So? What about this header?
28168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28174 ac_header_preproc=yes
28177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28184 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28191 ## ------------------------------------------ ##
28192 ## Report this to the AC_PACKAGE_NAME lists. ##
28193 ## ------------------------------------------ ##
28196 sed "s/^/$as_me: WARNING: /" >&2
28199 echo "$as_me:$LINENO: checking for $ac_header" >&5
28200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28201 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28202 echo $ECHO_N "(cached) $ECHO_C" >&6
28204 eval "$as_ac_Header=\$ac_header_preproc"
28206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28207 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28211 cat >>confdefs.h <<_ACEOF
28212 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28219 if test $ac_cv_header_heim_err_h = yes ; then
28225 if test $krb5_impl = mit; then
28226 echo "$as_me:$LINENO: checking for main in -lk5crypto" >&5
28227 echo $ECHO_N "checking for main in -lk5crypto... $ECHO_C" >&6
28228 if test "${ac_cv_lib_k5crypto_main+set}" = set; then
28229 echo $ECHO_N "(cached) $ECHO_C" >&6
28231 ac_check_lib_save_LIBS=$LIBS
28232 LIBS="-lk5crypto $LIBS"
28233 cat >conftest.$ac_ext <<_ACEOF
28236 cat confdefs.h >>conftest.$ac_ext
28237 cat >>conftest.$ac_ext <<_ACEOF
28238 /* end confdefs.h. */
28249 rm -f conftest.$ac_objext conftest$ac_exeext
28250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28251 (eval $ac_link) 2>conftest.er1
28253 grep -v '^ *+' conftest.er1 >conftest.err
28255 cat conftest.err >&5
28256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28257 (exit $ac_status); } &&
28258 { ac_try='test -z "$ac_c_werror_flag"
28259 || test ! -s conftest.err'
28260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28261 (eval $ac_try) 2>&5
28263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28264 (exit $ac_status); }; } &&
28265 { ac_try='test -s conftest$ac_exeext'
28266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28267 (eval $ac_try) 2>&5
28269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28270 (exit $ac_status); }; }; then
28271 ac_cv_lib_k5crypto_main=yes
28273 echo "$as_me: failed program was:" >&5
28274 sed 's/^/| /' conftest.$ac_ext >&5
28276 ac_cv_lib_k5crypto_main=no
28278 rm -f conftest.err conftest.$ac_objext \
28279 conftest$ac_exeext conftest.$ac_ext
28280 LIBS=$ac_check_lib_save_LIBS
28282 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_main" >&5
28283 echo "${ECHO_T}$ac_cv_lib_k5crypto_main" >&6
28284 if test $ac_cv_lib_k5crypto_main = yes; then
28285 krb5crypto=k5crypto
28291 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28292 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28293 if test "${ac_cv_lib_krb5_main+set}" = set; then
28294 echo $ECHO_N "(cached) $ECHO_C" >&6
28296 ac_check_lib_save_LIBS=$LIBS
28297 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
28298 cat >conftest.$ac_ext <<_ACEOF
28301 cat confdefs.h >>conftest.$ac_ext
28302 cat >>conftest.$ac_ext <<_ACEOF
28303 /* end confdefs.h. */
28314 rm -f conftest.$ac_objext conftest$ac_exeext
28315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28316 (eval $ac_link) 2>conftest.er1
28318 grep -v '^ *+' conftest.er1 >conftest.err
28320 cat conftest.err >&5
28321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28322 (exit $ac_status); } &&
28323 { ac_try='test -z "$ac_c_werror_flag"
28324 || test ! -s conftest.err'
28325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28326 (eval $ac_try) 2>&5
28328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28329 (exit $ac_status); }; } &&
28330 { ac_try='test -s conftest$ac_exeext'
28331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28332 (eval $ac_try) 2>&5
28334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28335 (exit $ac_status); }; }; then
28336 ac_cv_lib_krb5_main=yes
28338 echo "$as_me: failed program was:" >&5
28339 sed 's/^/| /' conftest.$ac_ext >&5
28341 ac_cv_lib_krb5_main=no
28343 rm -f conftest.err conftest.$ac_objext \
28344 conftest$ac_exeext conftest.$ac_ext
28345 LIBS=$ac_check_lib_save_LIBS
28347 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28348 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28349 if test $ac_cv_lib_krb5_main = yes; then
28351 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
28357 elif test $krb5_impl = heimdal; then
28358 echo "$as_me:$LINENO: checking for main in -ldes" >&5
28359 echo $ECHO_N "checking for main in -ldes... $ECHO_C" >&6
28360 if test "${ac_cv_lib_des_main+set}" = set; then
28361 echo $ECHO_N "(cached) $ECHO_C" >&6
28363 ac_check_lib_save_LIBS=$LIBS
28365 cat >conftest.$ac_ext <<_ACEOF
28368 cat confdefs.h >>conftest.$ac_ext
28369 cat >>conftest.$ac_ext <<_ACEOF
28370 /* end confdefs.h. */
28381 rm -f conftest.$ac_objext conftest$ac_exeext
28382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28383 (eval $ac_link) 2>conftest.er1
28385 grep -v '^ *+' conftest.er1 >conftest.err
28387 cat conftest.err >&5
28388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28389 (exit $ac_status); } &&
28390 { ac_try='test -z "$ac_c_werror_flag"
28391 || test ! -s conftest.err'
28392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28393 (eval $ac_try) 2>&5
28395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28396 (exit $ac_status); }; } &&
28397 { ac_try='test -s conftest$ac_exeext'
28398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28399 (eval $ac_try) 2>&5
28401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28402 (exit $ac_status); }; }; then
28403 ac_cv_lib_des_main=yes
28405 echo "$as_me: failed program was:" >&5
28406 sed 's/^/| /' conftest.$ac_ext >&5
28408 ac_cv_lib_des_main=no
28410 rm -f conftest.err conftest.$ac_objext \
28411 conftest$ac_exeext conftest.$ac_ext
28412 LIBS=$ac_check_lib_save_LIBS
28414 echo "$as_me:$LINENO: result: $ac_cv_lib_des_main" >&5
28415 echo "${ECHO_T}$ac_cv_lib_des_main" >&6
28416 if test $ac_cv_lib_des_main = yes; then
28423 echo "$as_me:$LINENO: checking for main in -lkrb5" >&5
28424 echo $ECHO_N "checking for main in -lkrb5... $ECHO_C" >&6
28425 if test "${ac_cv_lib_krb5_main+set}" = set; then
28426 echo $ECHO_N "(cached) $ECHO_C" >&6
28428 ac_check_lib_save_LIBS=$LIBS
28429 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28430 cat >conftest.$ac_ext <<_ACEOF
28433 cat confdefs.h >>conftest.$ac_ext
28434 cat >>conftest.$ac_ext <<_ACEOF
28435 /* end confdefs.h. */
28446 rm -f conftest.$ac_objext conftest$ac_exeext
28447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28448 (eval $ac_link) 2>conftest.er1
28450 grep -v '^ *+' conftest.er1 >conftest.err
28452 cat conftest.err >&5
28453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454 (exit $ac_status); } &&
28455 { ac_try='test -z "$ac_c_werror_flag"
28456 || test ! -s conftest.err'
28457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28458 (eval $ac_try) 2>&5
28460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28461 (exit $ac_status); }; } &&
28462 { ac_try='test -s conftest$ac_exeext'
28463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28464 (eval $ac_try) 2>&5
28466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28467 (exit $ac_status); }; }; then
28468 ac_cv_lib_krb5_main=yes
28470 echo "$as_me: failed program was:" >&5
28471 sed 's/^/| /' conftest.$ac_ext >&5
28473 ac_cv_lib_krb5_main=no
28475 rm -f conftest.err conftest.$ac_objext \
28476 conftest$ac_exeext conftest.$ac_ext
28477 LIBS=$ac_check_lib_save_LIBS
28479 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_main" >&5
28480 echo "${ECHO_T}$ac_cv_lib_krb5_main" >&6
28481 if test $ac_cv_lib_krb5_main = yes; then
28483 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
28490 cat >>confdefs.h <<\_ACEOF
28491 #define HAVE_HEIMDAL_KERBEROS 1
28497 { echo "$as_me:$LINENO: WARNING: Unrecognized Kerberos5 Implementation" >&5
28498 echo "$as_me: WARNING: Unrecognized Kerberos5 Implementation" >&2;}
28501 if test $have_krb5 = yes ; then
28505 cat >>confdefs.h <<\_ACEOF
28506 #define HAVE_KRB5 1
28510 if test $ol_with_kerberos = k5only ; then
28511 ol_with_kerberos=found
28514 elif test $ol_with_kerberos != auto ; then
28515 { { echo "$as_me:$LINENO: error: Required Kerberos 5 support not available" >&5
28516 echo "$as_me: error: Required Kerberos 5 support not available" >&2;}
28517 { (exit 1); exit 1; }; }
28523 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
28524 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
28528 for ac_header in kerberosIV/krb.h kerberosIV/des.h
28530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28531 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28532 echo "$as_me:$LINENO: checking for $ac_header" >&5
28533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28535 echo $ECHO_N "(cached) $ECHO_C" >&6
28537 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28538 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28540 # Is the header compilable?
28541 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28543 cat >conftest.$ac_ext <<_ACEOF
28546 cat confdefs.h >>conftest.$ac_ext
28547 cat >>conftest.$ac_ext <<_ACEOF
28548 /* end confdefs.h. */
28549 $ac_includes_default
28550 #include <$ac_header>
28552 rm -f conftest.$ac_objext
28553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28554 (eval $ac_compile) 2>conftest.er1
28556 grep -v '^ *+' conftest.er1 >conftest.err
28558 cat conftest.err >&5
28559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28560 (exit $ac_status); } &&
28561 { ac_try='test -z "$ac_c_werror_flag"
28562 || test ! -s conftest.err'
28563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28564 (eval $ac_try) 2>&5
28566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567 (exit $ac_status); }; } &&
28568 { ac_try='test -s conftest.$ac_objext'
28569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28570 (eval $ac_try) 2>&5
28572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28573 (exit $ac_status); }; }; then
28574 ac_header_compiler=yes
28576 echo "$as_me: failed program was:" >&5
28577 sed 's/^/| /' conftest.$ac_ext >&5
28579 ac_header_compiler=no
28581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28582 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28583 echo "${ECHO_T}$ac_header_compiler" >&6
28585 # Is the header present?
28586 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28588 cat >conftest.$ac_ext <<_ACEOF
28591 cat confdefs.h >>conftest.$ac_ext
28592 cat >>conftest.$ac_ext <<_ACEOF
28593 /* end confdefs.h. */
28594 #include <$ac_header>
28596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28597 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28599 grep -v '^ *+' conftest.er1 >conftest.err
28601 cat conftest.err >&5
28602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28603 (exit $ac_status); } >/dev/null; then
28604 if test -s conftest.err; then
28605 ac_cpp_err=$ac_c_preproc_warn_flag
28606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28613 if test -z "$ac_cpp_err"; then
28614 ac_header_preproc=yes
28616 echo "$as_me: failed program was:" >&5
28617 sed 's/^/| /' conftest.$ac_ext >&5
28619 ac_header_preproc=no
28621 rm -f conftest.err conftest.$ac_ext
28622 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28623 echo "${ECHO_T}$ac_header_preproc" >&6
28625 # So? What about this header?
28626 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28628 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28629 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28631 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28632 ac_header_preproc=yes
28635 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28636 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28637 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28638 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28639 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28640 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28641 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28642 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28643 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28644 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28645 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28646 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28649 ## ------------------------------------------ ##
28650 ## Report this to the AC_PACKAGE_NAME lists. ##
28651 ## ------------------------------------------ ##
28654 sed "s/^/$as_me: WARNING: /" >&2
28657 echo "$as_me:$LINENO: checking for $ac_header" >&5
28658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28659 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28660 echo $ECHO_N "(cached) $ECHO_C" >&6
28662 eval "$as_ac_Header=\$ac_header_preproc"
28664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28669 cat >>confdefs.h <<_ACEOF
28670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28678 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
28679 if test $krb5_impl = mit; then
28680 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28681 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28682 if test "${ac_cv_lib_krb4_main+set}" = set; then
28683 echo $ECHO_N "(cached) $ECHO_C" >&6
28685 ac_check_lib_save_LIBS=$LIBS
28686 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
28687 cat >conftest.$ac_ext <<_ACEOF
28690 cat confdefs.h >>conftest.$ac_ext
28691 cat >>conftest.$ac_ext <<_ACEOF
28692 /* end confdefs.h. */
28703 rm -f conftest.$ac_objext conftest$ac_exeext
28704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28705 (eval $ac_link) 2>conftest.er1
28707 grep -v '^ *+' conftest.er1 >conftest.err
28709 cat conftest.err >&5
28710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28711 (exit $ac_status); } &&
28712 { ac_try='test -z "$ac_c_werror_flag"
28713 || test ! -s conftest.err'
28714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28715 (eval $ac_try) 2>&5
28717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28718 (exit $ac_status); }; } &&
28719 { ac_try='test -s conftest$ac_exeext'
28720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28721 (eval $ac_try) 2>&5
28723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28724 (exit $ac_status); }; }; then
28725 ac_cv_lib_krb4_main=yes
28727 echo "$as_me: failed program was:" >&5
28728 sed 's/^/| /' conftest.$ac_ext >&5
28730 ac_cv_lib_krb4_main=no
28732 rm -f conftest.err conftest.$ac_objext \
28733 conftest$ac_exeext conftest.$ac_ext
28734 LIBS=$ac_check_lib_save_LIBS
28736 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28737 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28738 if test $ac_cv_lib_krb4_main = yes; then
28740 KRB4_LIBS="-lkrb4 -ldes425"
28746 elif test $krb5_impl = heimdal; then
28747 echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
28748 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6
28749 if test "${ac_cv_lib_krb4_main+set}" = set; then
28750 echo $ECHO_N "(cached) $ECHO_C" >&6
28752 ac_check_lib_save_LIBS=$LIBS
28753 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
28754 cat >conftest.$ac_ext <<_ACEOF
28757 cat confdefs.h >>conftest.$ac_ext
28758 cat >>conftest.$ac_ext <<_ACEOF
28759 /* end confdefs.h. */
28770 rm -f conftest.$ac_objext conftest$ac_exeext
28771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28772 (eval $ac_link) 2>conftest.er1
28774 grep -v '^ *+' conftest.er1 >conftest.err
28776 cat conftest.err >&5
28777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28778 (exit $ac_status); } &&
28779 { ac_try='test -z "$ac_c_werror_flag"
28780 || test ! -s conftest.err'
28781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28782 (eval $ac_try) 2>&5
28784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28785 (exit $ac_status); }; } &&
28786 { ac_try='test -s conftest$ac_exeext'
28787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28788 (eval $ac_try) 2>&5
28790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28791 (exit $ac_status); }; }; then
28792 ac_cv_lib_krb4_main=yes
28794 echo "$as_me: failed program was:" >&5
28795 sed 's/^/| /' conftest.$ac_ext >&5
28797 ac_cv_lib_krb4_main=no
28799 rm -f conftest.err conftest.$ac_objext \
28800 conftest$ac_exeext conftest.$ac_ext
28801 LIBS=$ac_check_lib_save_LIBS
28803 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_main" >&5
28804 echo "${ECHO_T}$ac_cv_lib_krb4_main" >&6
28805 if test $ac_cv_lib_krb4_main = yes; then
28815 { echo "$as_me:$LINENO: WARNING: Unrecongized Kerberos V Implementation" >&5
28816 echo "$as_me: WARNING: Unrecongized Kerberos V Implementation" >&2;}
28819 if test $have_k425 = yes ; then
28820 ol_with_kerberos=found
28824 cat >>confdefs.h <<\_ACEOF
28825 #define HAVE_KRB425 1
28829 cat >>confdefs.h <<\_ACEOF
28830 #define HAVE_KRB4 1
28834 echo "$as_me:$LINENO: checking for des_debug in Kerberos libraries" >&5
28835 echo $ECHO_N "checking for des_debug in Kerberos libraries... $ECHO_C" >&6
28836 if test "${ol_cv_var_des_debug+set}" = set; then
28837 echo $ECHO_N "(cached) $ECHO_C" >&6
28841 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
28842 cat >conftest.$ac_ext <<_ACEOF
28845 cat confdefs.h >>conftest.$ac_ext
28846 cat >>conftest.$ac_ext <<_ACEOF
28847 /* end confdefs.h. */
28849 #include <kerberosIV/krb.h>
28850 #include <kerberosIV/des.h>
28851 extern int des_debug;
28863 rm -f conftest.$ac_objext conftest$ac_exeext
28864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28865 (eval $ac_link) 2>conftest.er1
28867 grep -v '^ *+' conftest.er1 >conftest.err
28869 cat conftest.err >&5
28870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28871 (exit $ac_status); } &&
28872 { ac_try='test -z "$ac_c_werror_flag"
28873 || test ! -s conftest.err'
28874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28875 (eval $ac_try) 2>&5
28877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28878 (exit $ac_status); }; } &&
28879 { ac_try='test -s conftest$ac_exeext'
28880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28881 (eval $ac_try) 2>&5
28883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28884 (exit $ac_status); }; }; then
28885 ol_cv_var_des_debug=yes
28887 echo "$as_me: failed program was:" >&5
28888 sed 's/^/| /' conftest.$ac_ext >&5
28890 ol_cv_var_des_debug=no
28892 rm -f conftest.err conftest.$ac_objext \
28893 conftest$ac_exeext conftest.$ac_ext
28897 echo "$as_me:$LINENO: result: $ol_cv_var_des_debug" >&5
28898 echo "${ECHO_T}$ol_cv_var_des_debug" >&6
28900 if test $ol_cv_var_des_debug = yes ; then
28902 cat >>confdefs.h <<\_ACEOF
28903 #define HAVE_DES_DEBUG 1
28913 if test $ol_link_krb5 = yes ; then
28914 ol_with_kerberos=found
28917 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
28918 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
28923 for ac_header in krb.h des.h krb-archaeology.h
28925 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28927 echo "$as_me:$LINENO: checking for $ac_header" >&5
28928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28929 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28930 echo $ECHO_N "(cached) $ECHO_C" >&6
28932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28935 # Is the header compilable?
28936 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28937 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28938 cat >conftest.$ac_ext <<_ACEOF
28941 cat confdefs.h >>conftest.$ac_ext
28942 cat >>conftest.$ac_ext <<_ACEOF
28943 /* end confdefs.h. */
28944 $ac_includes_default
28945 #include <$ac_header>
28947 rm -f conftest.$ac_objext
28948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28949 (eval $ac_compile) 2>conftest.er1
28951 grep -v '^ *+' conftest.er1 >conftest.err
28953 cat conftest.err >&5
28954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28955 (exit $ac_status); } &&
28956 { ac_try='test -z "$ac_c_werror_flag"
28957 || test ! -s conftest.err'
28958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28959 (eval $ac_try) 2>&5
28961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962 (exit $ac_status); }; } &&
28963 { ac_try='test -s conftest.$ac_objext'
28964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28965 (eval $ac_try) 2>&5
28967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968 (exit $ac_status); }; }; then
28969 ac_header_compiler=yes
28971 echo "$as_me: failed program was:" >&5
28972 sed 's/^/| /' conftest.$ac_ext >&5
28974 ac_header_compiler=no
28976 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28977 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28978 echo "${ECHO_T}$ac_header_compiler" >&6
28980 # Is the header present?
28981 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28983 cat >conftest.$ac_ext <<_ACEOF
28986 cat confdefs.h >>conftest.$ac_ext
28987 cat >>conftest.$ac_ext <<_ACEOF
28988 /* end confdefs.h. */
28989 #include <$ac_header>
28991 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28992 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28994 grep -v '^ *+' conftest.er1 >conftest.err
28996 cat conftest.err >&5
28997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998 (exit $ac_status); } >/dev/null; then
28999 if test -s conftest.err; then
29000 ac_cpp_err=$ac_c_preproc_warn_flag
29001 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29008 if test -z "$ac_cpp_err"; then
29009 ac_header_preproc=yes
29011 echo "$as_me: failed program was:" >&5
29012 sed 's/^/| /' conftest.$ac_ext >&5
29014 ac_header_preproc=no
29016 rm -f conftest.err conftest.$ac_ext
29017 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29018 echo "${ECHO_T}$ac_header_preproc" >&6
29020 # So? What about this header?
29021 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29023 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29024 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29025 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29026 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29027 ac_header_preproc=yes
29030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29034 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29035 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29036 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29037 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29039 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29040 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29041 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29044 ## ------------------------------------------ ##
29045 ## Report this to the AC_PACKAGE_NAME lists. ##
29046 ## ------------------------------------------ ##
29049 sed "s/^/$as_me: WARNING: /" >&2
29052 echo "$as_me:$LINENO: checking for $ac_header" >&5
29053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29054 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29055 echo $ECHO_N "(cached) $ECHO_C" >&6
29057 eval "$as_ac_Header=\$ac_header_preproc"
29059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29064 cat >>confdefs.h <<_ACEOF
29065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29073 if test $ac_cv_header_krb_h = yes ; then
29074 echo "$as_me:$LINENO: checking for main in -lkrb" >&5
29075 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6
29076 if test "${ac_cv_lib_krb_main+set}" = set; then
29077 echo $ECHO_N "(cached) $ECHO_C" >&6
29079 ac_check_lib_save_LIBS=$LIBS
29080 LIBS="-lkrb -ldes $LIBS"
29081 cat >conftest.$ac_ext <<_ACEOF
29084 cat confdefs.h >>conftest.$ac_ext
29085 cat >>conftest.$ac_ext <<_ACEOF
29086 /* end confdefs.h. */
29097 rm -f conftest.$ac_objext conftest$ac_exeext
29098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29099 (eval $ac_link) 2>conftest.er1
29101 grep -v '^ *+' conftest.er1 >conftest.err
29103 cat conftest.err >&5
29104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105 (exit $ac_status); } &&
29106 { ac_try='test -z "$ac_c_werror_flag"
29107 || test ! -s conftest.err'
29108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29109 (eval $ac_try) 2>&5
29111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29112 (exit $ac_status); }; } &&
29113 { ac_try='test -s conftest$ac_exeext'
29114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29115 (eval $ac_try) 2>&5
29117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29118 (exit $ac_status); }; }; then
29119 ac_cv_lib_krb_main=yes
29121 echo "$as_me: failed program was:" >&5
29122 sed 's/^/| /' conftest.$ac_ext >&5
29124 ac_cv_lib_krb_main=no
29126 rm -f conftest.err conftest.$ac_objext \
29127 conftest$ac_exeext conftest.$ac_ext
29128 LIBS=$ac_check_lib_save_LIBS
29130 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_main" >&5
29131 echo "${ECHO_T}$ac_cv_lib_krb_main" >&6
29132 if test $ac_cv_lib_krb_main = yes; then
29139 if test $have_k4 = yes ; then
29140 ol_with_kerberos=found
29144 cat >>confdefs.h <<\_ACEOF
29145 #define HAVE_KRB4 1
29149 KRB4_LIBS="-lkrb -ldes"
29151 if test $ac_cv_header_krb_archaeology_h = yes ; then
29153 cat >>confdefs.h <<\_ACEOF
29154 #define HAVE_KTH_KERBEROS 1
29162 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
29165 elif test $ol_enable_kbind = yes ; then
29166 { { echo "$as_me:$LINENO: error: Kerberos IV detection failed" >&5
29167 echo "$as_me: error: Kerberos IV detection failed" >&2;}
29168 { (exit 1); exit 1; }; }
29171 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
29173 cat >>confdefs.h <<\_ACEOF
29174 #define HAVE_KERBEROS 1
29178 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
29179 { { echo "$as_me:$LINENO: error: Kerberos detection failed" >&5
29180 echo "$as_me: error: Kerberos detection failed" >&2;}
29181 { (exit 1); exit 1; }; }
29186 if test $ol_with_tls != no ; then
29189 for ac_header in openssl/ssl.h ssl.h
29191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29193 echo "$as_me:$LINENO: checking for $ac_header" >&5
29194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29196 echo $ECHO_N "(cached) $ECHO_C" >&6
29198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29199 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29201 # Is the header compilable?
29202 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29203 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29204 cat >conftest.$ac_ext <<_ACEOF
29207 cat confdefs.h >>conftest.$ac_ext
29208 cat >>conftest.$ac_ext <<_ACEOF
29209 /* end confdefs.h. */
29210 $ac_includes_default
29211 #include <$ac_header>
29213 rm -f conftest.$ac_objext
29214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29215 (eval $ac_compile) 2>conftest.er1
29217 grep -v '^ *+' conftest.er1 >conftest.err
29219 cat conftest.err >&5
29220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221 (exit $ac_status); } &&
29222 { ac_try='test -z "$ac_c_werror_flag"
29223 || test ! -s conftest.err'
29224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29225 (eval $ac_try) 2>&5
29227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228 (exit $ac_status); }; } &&
29229 { ac_try='test -s conftest.$ac_objext'
29230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29231 (eval $ac_try) 2>&5
29233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234 (exit $ac_status); }; }; then
29235 ac_header_compiler=yes
29237 echo "$as_me: failed program was:" >&5
29238 sed 's/^/| /' conftest.$ac_ext >&5
29240 ac_header_compiler=no
29242 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29243 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29244 echo "${ECHO_T}$ac_header_compiler" >&6
29246 # Is the header present?
29247 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29248 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29249 cat >conftest.$ac_ext <<_ACEOF
29252 cat confdefs.h >>conftest.$ac_ext
29253 cat >>conftest.$ac_ext <<_ACEOF
29254 /* end confdefs.h. */
29255 #include <$ac_header>
29257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29260 grep -v '^ *+' conftest.er1 >conftest.err
29262 cat conftest.err >&5
29263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29264 (exit $ac_status); } >/dev/null; then
29265 if test -s conftest.err; then
29266 ac_cpp_err=$ac_c_preproc_warn_flag
29267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29274 if test -z "$ac_cpp_err"; then
29275 ac_header_preproc=yes
29277 echo "$as_me: failed program was:" >&5
29278 sed 's/^/| /' conftest.$ac_ext >&5
29280 ac_header_preproc=no
29282 rm -f conftest.err conftest.$ac_ext
29283 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29284 echo "${ECHO_T}$ac_header_preproc" >&6
29286 # So? What about this header?
29287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29293 ac_header_preproc=yes
29296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29303 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29310 ## ------------------------------------------ ##
29311 ## Report this to the AC_PACKAGE_NAME lists. ##
29312 ## ------------------------------------------ ##
29315 sed "s/^/$as_me: WARNING: /" >&2
29318 echo "$as_me:$LINENO: checking for $ac_header" >&5
29319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29321 echo $ECHO_N "(cached) $ECHO_C" >&6
29323 eval "$as_ac_Header=\$ac_header_preproc"
29325 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29326 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29330 cat >>confdefs.h <<_ACEOF
29331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29339 if test $ac_cv_header_openssl_ssl_h = yes \
29340 -o $ac_cv_header_ssl_h = yes ; then
29341 echo "$as_me:$LINENO: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
29342 echo $ECHO_N "checking for SSLeay_add_ssl_algorithms in -lssl... $ECHO_C" >&6
29343 if test "${ac_cv_lib_ssl_SSLeay_add_ssl_algorithms+set}" = set; then
29344 echo $ECHO_N "(cached) $ECHO_C" >&6
29346 ac_check_lib_save_LIBS=$LIBS
29347 LIBS="-lssl -lcrypto $LIBS"
29348 cat >conftest.$ac_ext <<_ACEOF
29351 cat confdefs.h >>conftest.$ac_ext
29352 cat >>conftest.$ac_ext <<_ACEOF
29353 /* end confdefs.h. */
29355 /* Override any gcc2 internal prototype to avoid an error. */
29359 /* We use char because int might match the return type of a gcc2
29360 builtin and then its argument prototype would still apply. */
29361 char SSLeay_add_ssl_algorithms ();
29365 SSLeay_add_ssl_algorithms ();
29370 rm -f conftest.$ac_objext conftest$ac_exeext
29371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29372 (eval $ac_link) 2>conftest.er1
29374 grep -v '^ *+' conftest.er1 >conftest.err
29376 cat conftest.err >&5
29377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29378 (exit $ac_status); } &&
29379 { ac_try='test -z "$ac_c_werror_flag"
29380 || test ! -s conftest.err'
29381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29382 (eval $ac_try) 2>&5
29384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29385 (exit $ac_status); }; } &&
29386 { ac_try='test -s conftest$ac_exeext'
29387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29388 (eval $ac_try) 2>&5
29390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29391 (exit $ac_status); }; }; then
29392 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=yes
29394 echo "$as_me: failed program was:" >&5
29395 sed 's/^/| /' conftest.$ac_ext >&5
29397 ac_cv_lib_ssl_SSLeay_add_ssl_algorithms=no
29399 rm -f conftest.err conftest.$ac_objext \
29400 conftest$ac_exeext conftest.$ac_ext
29401 LIBS=$ac_check_lib_save_LIBS
29403 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&5
29404 echo "${ECHO_T}$ac_cv_lib_ssl_SSLeay_add_ssl_algorithms" >&6
29405 if test $ac_cv_lib_ssl_SSLeay_add_ssl_algorithms = yes; then
29413 if test $have_ssleay = no ; then
29414 echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
29415 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6
29416 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
29417 echo $ECHO_N "(cached) $ECHO_C" >&6
29419 ac_check_lib_save_LIBS=$LIBS
29420 LIBS="-lssl -lcrypto $LIBS"
29421 cat >conftest.$ac_ext <<_ACEOF
29424 cat confdefs.h >>conftest.$ac_ext
29425 cat >>conftest.$ac_ext <<_ACEOF
29426 /* end confdefs.h. */
29428 /* Override any gcc2 internal prototype to avoid an error. */
29432 /* We use char because int might match the return type of a gcc2
29433 builtin and then its argument prototype would still apply. */
29434 char SSL_library_init ();
29438 SSL_library_init ();
29443 rm -f conftest.$ac_objext conftest$ac_exeext
29444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29445 (eval $ac_link) 2>conftest.er1
29447 grep -v '^ *+' conftest.er1 >conftest.err
29449 cat conftest.err >&5
29450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29451 (exit $ac_status); } &&
29452 { ac_try='test -z "$ac_c_werror_flag"
29453 || test ! -s conftest.err'
29454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29455 (eval $ac_try) 2>&5
29457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29458 (exit $ac_status); }; } &&
29459 { ac_try='test -s conftest$ac_exeext'
29460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29461 (eval $ac_try) 2>&5
29463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464 (exit $ac_status); }; }; then
29465 ac_cv_lib_ssl_SSL_library_init=yes
29467 echo "$as_me: failed program was:" >&5
29468 sed 's/^/| /' conftest.$ac_ext >&5
29470 ac_cv_lib_ssl_SSL_library_init=no
29472 rm -f conftest.err conftest.$ac_objext \
29473 conftest$ac_exeext conftest.$ac_ext
29474 LIBS=$ac_check_lib_save_LIBS
29476 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
29477 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6
29478 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
29487 if test $have_ssleay = no ; then
29488 echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
29489 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6
29490 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
29491 echo $ECHO_N "(cached) $ECHO_C" >&6
29493 ac_check_lib_save_LIBS=$LIBS
29494 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
29495 cat >conftest.$ac_ext <<_ACEOF
29498 cat confdefs.h >>conftest.$ac_ext
29499 cat >>conftest.$ac_ext <<_ACEOF
29500 /* end confdefs.h. */
29502 /* Override any gcc2 internal prototype to avoid an error. */
29506 /* We use char because int might match the return type of a gcc2
29507 builtin and then its argument prototype would still apply. */
29508 char ssl3_accept ();
29517 rm -f conftest.$ac_objext conftest$ac_exeext
29518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29519 (eval $ac_link) 2>conftest.er1
29521 grep -v '^ *+' conftest.er1 >conftest.err
29523 cat conftest.err >&5
29524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29525 (exit $ac_status); } &&
29526 { ac_try='test -z "$ac_c_werror_flag"
29527 || test ! -s conftest.err'
29528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29529 (eval $ac_try) 2>&5
29531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29532 (exit $ac_status); }; } &&
29533 { ac_try='test -s conftest$ac_exeext'
29534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29535 (eval $ac_try) 2>&5
29537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29538 (exit $ac_status); }; }; then
29539 ac_cv_lib_ssl_ssl3_accept=yes
29541 echo "$as_me: failed program was:" >&5
29542 sed 's/^/| /' conftest.$ac_ext >&5
29544 ac_cv_lib_ssl_ssl3_accept=no
29546 rm -f conftest.err conftest.$ac_objext \
29547 conftest$ac_exeext conftest.$ac_ext
29548 LIBS=$ac_check_lib_save_LIBS
29550 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
29551 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6
29552 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
29561 if test $have_ssleay = yes ; then
29566 cat >>confdefs.h <<\_ACEOF
29567 #define HAVE_SSLEAY 1
29571 if test $need_rsaref = yes; then
29573 cat >>confdefs.h <<\_ACEOF
29574 #define HAVE_RSAREF 1
29578 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
29580 TLS_LIBS="-lssl -lcrypto"
29583 echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
29584 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6
29585 if test "${ol_cv_ssl_crl_compat+set}" = set; then
29586 echo $ECHO_N "(cached) $ECHO_C" >&6
29589 cat >conftest.$ac_ext <<_ACEOF
29592 cat confdefs.h >>conftest.$ac_ext
29593 cat >>conftest.$ac_ext <<_ACEOF
29594 /* end confdefs.h. */
29596 #ifdef HAVE_OPENSSL_SSL_H
29597 #include <openssl/ssl.h>
29602 /* Require 0.9.7d+ */
29603 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
29604 char *__ssl_compat = "0.9.7d";
29608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29609 $EGREP "__ssl_compat" >/dev/null 2>&1; then
29610 ol_cv_ssl_crl_compat=yes
29612 ol_cv_ssl_crl_compat=no
29617 echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
29618 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6
29620 if test $ol_cv_ssl_crl_compat = no ; then
29624 cat >>confdefs.h <<\_ACEOF
29625 #define HAVE_OPENSSL_CRL 1
29632 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29633 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29637 if test $ol_link_tls = yes ; then
29639 cat >>confdefs.h <<\_ACEOF
29645 elif test $ol_with_tls = auto ; then
29646 { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
29647 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
29648 { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
29649 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
29651 elif test $ol_with_tls != no ; then
29652 { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
29653 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
29654 { (exit 1); exit 1; }; }
29657 if test $ol_enable_lmpasswd != no; then
29658 if test $ol_link_tls != yes ; then
29659 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
29660 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
29661 { (exit 1); exit 1; }; }
29665 cat >>confdefs.h <<\_ACEOF
29666 #define SLAPD_LMHASH 1
29673 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29674 -o $ol_with_threads = nt ; then
29677 echo "$as_me:$LINENO: checking for _beginthread" >&5
29678 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6
29679 if test "${ac_cv_func__beginthread+set}" = set; then
29680 echo $ECHO_N "(cached) $ECHO_C" >&6
29682 cat >conftest.$ac_ext <<_ACEOF
29685 cat confdefs.h >>conftest.$ac_ext
29686 cat >>conftest.$ac_ext <<_ACEOF
29687 /* end confdefs.h. */
29688 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
29689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29690 #define _beginthread innocuous__beginthread
29692 /* System header to define __stub macros and hopefully few prototypes,
29693 which can conflict with char _beginthread (); below.
29694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29695 <limits.h> exists even on freestanding compilers. */
29698 # include <limits.h>
29700 # include <assert.h>
29703 #undef _beginthread
29705 /* Override any gcc2 internal prototype to avoid an error. */
29710 /* We use char because int might match the return type of a gcc2
29711 builtin and then its argument prototype would still apply. */
29712 char _beginthread ();
29713 /* The GNU C library defines this for functions which it implements
29714 to always fail with ENOSYS. Some functions are actually named
29715 something starting with __ and the normal name is an alias. */
29716 #if defined (__stub__beginthread) || defined (__stub____beginthread)
29719 char (*f) () = _beginthread;
29728 return f != _beginthread;
29733 rm -f conftest.$ac_objext conftest$ac_exeext
29734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29735 (eval $ac_link) 2>conftest.er1
29737 grep -v '^ *+' conftest.er1 >conftest.err
29739 cat conftest.err >&5
29740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741 (exit $ac_status); } &&
29742 { ac_try='test -z "$ac_c_werror_flag"
29743 || test ! -s conftest.err'
29744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29745 (eval $ac_try) 2>&5
29747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29748 (exit $ac_status); }; } &&
29749 { ac_try='test -s conftest$ac_exeext'
29750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29751 (eval $ac_try) 2>&5
29753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29754 (exit $ac_status); }; }; then
29755 ac_cv_func__beginthread=yes
29757 echo "$as_me: failed program was:" >&5
29758 sed 's/^/| /' conftest.$ac_ext >&5
29760 ac_cv_func__beginthread=no
29762 rm -f conftest.err conftest.$ac_objext \
29763 conftest$ac_exeext conftest.$ac_ext
29765 echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
29766 echo "${ECHO_T}$ac_cv_func__beginthread" >&6
29769 if test $ac_cv_func__beginthread = yes ; then
29771 cat >>confdefs.h <<\_ACEOF
29772 #define HAVE_NT_THREADS 1
29775 ol_cv_nt_threads=yes
29779 if test "$ol_cv_nt_threads" = yes ; then
29781 ol_with_threads=found
29782 ol_with_yielding_select=yes
29785 cat >>confdefs.h <<\_ACEOF
29786 #define HAVE_NT_SERVICE_MANAGER 1
29790 cat >>confdefs.h <<\_ACEOF
29791 #define HAVE_NT_EVENT_LOG 1
29796 if test $ol_with_threads = nt ; then
29797 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
29798 echo "$as_me: error: could not locate NT Threads" >&2;}
29799 { (exit 1); exit 1; }; }
29803 if test $ol_with_threads = auto -o $ol_with_threads = yes \
29804 -o $ol_with_threads = posix ; then
29807 for ac_header in pthread.h
29809 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29810 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29811 echo "$as_me:$LINENO: checking for $ac_header" >&5
29812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29813 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29814 echo $ECHO_N "(cached) $ECHO_C" >&6
29816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29819 # Is the header compilable?
29820 echo "$as_me:$LINENO: checking $ac_header usability" >&5
29821 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
29822 cat >conftest.$ac_ext <<_ACEOF
29825 cat confdefs.h >>conftest.$ac_ext
29826 cat >>conftest.$ac_ext <<_ACEOF
29827 /* end confdefs.h. */
29828 $ac_includes_default
29829 #include <$ac_header>
29831 rm -f conftest.$ac_objext
29832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29833 (eval $ac_compile) 2>conftest.er1
29835 grep -v '^ *+' conftest.er1 >conftest.err
29837 cat conftest.err >&5
29838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29839 (exit $ac_status); } &&
29840 { ac_try='test -z "$ac_c_werror_flag"
29841 || test ! -s conftest.err'
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); }; } &&
29847 { ac_try='test -s conftest.$ac_objext'
29848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29849 (eval $ac_try) 2>&5
29851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29852 (exit $ac_status); }; }; then
29853 ac_header_compiler=yes
29855 echo "$as_me: failed program was:" >&5
29856 sed 's/^/| /' conftest.$ac_ext >&5
29858 ac_header_compiler=no
29860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29861 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29862 echo "${ECHO_T}$ac_header_compiler" >&6
29864 # Is the header present?
29865 echo "$as_me:$LINENO: checking $ac_header presence" >&5
29866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
29867 cat >conftest.$ac_ext <<_ACEOF
29870 cat confdefs.h >>conftest.$ac_ext
29871 cat >>conftest.$ac_ext <<_ACEOF
29872 /* end confdefs.h. */
29873 #include <$ac_header>
29875 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29878 grep -v '^ *+' conftest.er1 >conftest.err
29880 cat conftest.err >&5
29881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29882 (exit $ac_status); } >/dev/null; then
29883 if test -s conftest.err; then
29884 ac_cpp_err=$ac_c_preproc_warn_flag
29885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29892 if test -z "$ac_cpp_err"; then
29893 ac_header_preproc=yes
29895 echo "$as_me: failed program was:" >&5
29896 sed 's/^/| /' conftest.$ac_ext >&5
29898 ac_header_preproc=no
29900 rm -f conftest.err conftest.$ac_ext
29901 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29902 echo "${ECHO_T}$ac_header_preproc" >&6
29904 # So? What about this header?
29905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29911 ac_header_preproc=yes
29914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29921 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29928 ## ------------------------------------------ ##
29929 ## Report this to the AC_PACKAGE_NAME lists. ##
29930 ## ------------------------------------------ ##
29933 sed "s/^/$as_me: WARNING: /" >&2
29936 echo "$as_me:$LINENO: checking for $ac_header" >&5
29937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
29938 if eval "test \"\${$as_ac_Header+set}\" = set"; then
29939 echo $ECHO_N "(cached) $ECHO_C" >&6
29941 eval "$as_ac_Header=\$ac_header_preproc"
29943 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
29944 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
29947 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29948 cat >>confdefs.h <<_ACEOF
29949 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29957 if test $ac_cv_header_pthread_h = yes ; then
29958 echo "$as_me:$LINENO: checking POSIX thread version" >&5
29959 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6
29960 if test "${ol_cv_pthread_version+set}" = set; then
29961 echo $ECHO_N "(cached) $ECHO_C" >&6
29964 cat >conftest.$ac_ext <<_ACEOF
29967 cat confdefs.h >>conftest.$ac_ext
29968 cat >>conftest.$ac_ext <<_ACEOF
29969 /* end confdefs.h. */
29971 # include <pthread.h>
29977 int i = PTHREAD_CREATE_JOINABLE;
29983 rm -f conftest.$ac_objext
29984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29985 (eval $ac_compile) 2>conftest.er1
29987 grep -v '^ *+' conftest.er1 >conftest.err
29989 cat conftest.err >&5
29990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29991 (exit $ac_status); } &&
29992 { ac_try='test -z "$ac_c_werror_flag"
29993 || test ! -s conftest.err'
29994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29995 (eval $ac_try) 2>&5
29997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29998 (exit $ac_status); }; } &&
29999 { ac_try='test -s conftest.$ac_objext'
30000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30001 (eval $ac_try) 2>&5
30003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30004 (exit $ac_status); }; }; then
30006 cat >conftest.$ac_ext <<_ACEOF
30009 cat confdefs.h >>conftest.$ac_ext
30010 cat >>conftest.$ac_ext <<_ACEOF
30011 /* end confdefs.h. */
30012 #include <pthread.h>
30015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30016 $EGREP "pthread_detach" >/dev/null 2>&1; then
30017 ol_cv_pthread_version=10
30019 ol_cv_pthread_version=8
30024 echo "$as_me: failed program was:" >&5
30025 sed 's/^/| /' conftest.$ac_ext >&5
30028 cat >conftest.$ac_ext <<_ACEOF
30031 cat confdefs.h >>conftest.$ac_ext
30032 cat >>conftest.$ac_ext <<_ACEOF
30033 /* end confdefs.h. */
30035 # include <pthread.h>
30036 # ifdef PTHREAD_CREATE_UNDETACHED
30041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30042 $EGREP "draft7" >/dev/null 2>&1; then
30043 ol_cv_pthread_version=7
30046 cat >conftest.$ac_ext <<_ACEOF
30049 cat confdefs.h >>conftest.$ac_ext
30050 cat >>conftest.$ac_ext <<_ACEOF
30051 /* end confdefs.h. */
30052 #include <pthread.h>
30055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30056 $EGREP "pthread_attr_init" >/dev/null 2>&1; then
30057 ol_cv_pthread_version=6
30060 cat >conftest.$ac_ext <<_ACEOF
30063 cat confdefs.h >>conftest.$ac_ext
30064 cat >>conftest.$ac_ext <<_ACEOF
30065 /* end confdefs.h. */
30067 # include <pthread.h>
30068 #ifdef PTHREAD_MUTEX_INITIALIZER
30073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30074 $EGREP "draft5" >/dev/null 2>&1; then
30075 ol_cv_pthread_version=5
30077 ol_cv_pthread_version=4
30088 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30091 echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
30092 echo "${ECHO_T}$ol_cv_pthread_version" >&6
30095 if test $ol_cv_pthread_version != 0 ; then
30097 cat >>confdefs.h <<_ACEOF
30098 #define HAVE_PTHREADS $ol_cv_pthread_version
30102 { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
30103 echo "$as_me: error: unknown pthread version" >&2;}
30104 { (exit 1); exit 1; }; }
30107 # consider threads found
30108 ol_with_threads=found
30111 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
30112 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
30113 if test "${ol_cv_header_linux_threads+set}" = set; then
30114 echo $ECHO_N "(cached) $ECHO_C" >&6
30116 cat >conftest.$ac_ext <<_ACEOF
30119 cat confdefs.h >>conftest.$ac_ext
30120 cat >>conftest.$ac_ext <<_ACEOF
30121 /* end confdefs.h. */
30122 #include <pthread.h>
30124 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30125 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
30126 ol_cv_header_linux_threads=yes
30128 ol_cv_header_linux_threads=no
30134 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
30135 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
30136 if test $ol_cv_header_linux_threads = yes; then
30138 cat >>confdefs.h <<\_ACEOF
30139 #define HAVE_LINUX_THREADS 1
30145 echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
30146 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6
30147 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
30148 echo $ECHO_N "(cached) $ECHO_C" >&6
30150 cat >conftest.$ac_ext <<_ACEOF
30153 cat confdefs.h >>conftest.$ac_ext
30154 cat >>conftest.$ac_ext <<_ACEOF
30155 /* end confdefs.h. */
30156 #include <pthread.h>
30157 #ifdef _POSIX_THREAD_IS_GNU_PTH
30162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30163 $EGREP "__gnu_pth__" >/dev/null 2>&1; then
30164 ol_cv_header_gnu_pth_pthread_h=yes
30166 ol_cv_header_gnu_pth_pthread_h=no
30172 echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
30173 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6
30176 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
30178 for ac_header in sched.h
30180 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30181 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30182 echo "$as_me:$LINENO: checking for $ac_header" >&5
30183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30185 echo $ECHO_N "(cached) $ECHO_C" >&6
30187 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30188 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30190 # Is the header compilable?
30191 echo "$as_me:$LINENO: checking $ac_header usability" >&5
30192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
30193 cat >conftest.$ac_ext <<_ACEOF
30196 cat confdefs.h >>conftest.$ac_ext
30197 cat >>conftest.$ac_ext <<_ACEOF
30198 /* end confdefs.h. */
30199 $ac_includes_default
30200 #include <$ac_header>
30202 rm -f conftest.$ac_objext
30203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30204 (eval $ac_compile) 2>conftest.er1
30206 grep -v '^ *+' conftest.er1 >conftest.err
30208 cat conftest.err >&5
30209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30210 (exit $ac_status); } &&
30211 { ac_try='test -z "$ac_c_werror_flag"
30212 || test ! -s conftest.err'
30213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30214 (eval $ac_try) 2>&5
30216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30217 (exit $ac_status); }; } &&
30218 { ac_try='test -s conftest.$ac_objext'
30219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30220 (eval $ac_try) 2>&5
30222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30223 (exit $ac_status); }; }; then
30224 ac_header_compiler=yes
30226 echo "$as_me: failed program was:" >&5
30227 sed 's/^/| /' conftest.$ac_ext >&5
30229 ac_header_compiler=no
30231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30232 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30233 echo "${ECHO_T}$ac_header_compiler" >&6
30235 # Is the header present?
30236 echo "$as_me:$LINENO: checking $ac_header presence" >&5
30237 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
30238 cat >conftest.$ac_ext <<_ACEOF
30241 cat confdefs.h >>conftest.$ac_ext
30242 cat >>conftest.$ac_ext <<_ACEOF
30243 /* end confdefs.h. */
30244 #include <$ac_header>
30246 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
30247 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
30249 grep -v '^ *+' conftest.er1 >conftest.err
30251 cat conftest.err >&5
30252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30253 (exit $ac_status); } >/dev/null; then
30254 if test -s conftest.err; then
30255 ac_cpp_err=$ac_c_preproc_warn_flag
30256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
30263 if test -z "$ac_cpp_err"; then
30264 ac_header_preproc=yes
30266 echo "$as_me: failed program was:" >&5
30267 sed 's/^/| /' conftest.$ac_ext >&5
30269 ac_header_preproc=no
30271 rm -f conftest.err conftest.$ac_ext
30272 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30273 echo "${ECHO_T}$ac_header_preproc" >&6
30275 # So? What about this header?
30276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30278 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30279 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30280 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30281 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30282 ac_header_preproc=yes
30285 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30286 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30287 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30288 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30289 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30290 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30291 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30292 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30294 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30295 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30296 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30299 ## ------------------------------------------ ##
30300 ## Report this to the AC_PACKAGE_NAME lists. ##
30301 ## ------------------------------------------ ##
30304 sed "s/^/$as_me: WARNING: /" >&2
30307 echo "$as_me:$LINENO: checking for $ac_header" >&5
30308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
30309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
30310 echo $ECHO_N "(cached) $ECHO_C" >&6
30312 eval "$as_ac_Header=\$ac_header_preproc"
30314 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
30315 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
30318 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30319 cat >>confdefs.h <<_ACEOF
30320 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30330 echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
30331 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6
30332 if test "${ol_cv_pthread_create+set}" = set; then
30333 echo $ECHO_N "(cached) $ECHO_C" >&6
30336 if test "$cross_compiling" = yes; then
30337 cat >conftest.$ac_ext <<_ACEOF
30340 cat confdefs.h >>conftest.$ac_ext
30341 cat >>conftest.$ac_ext <<_ACEOF
30342 /* end confdefs.h. */
30343 /* pthread test headers */
30344 #include <pthread.h>
30345 #if HAVE_PTHREADS < 7
30349 #define NULL (void*)0
30352 static void *task(p)
30355 return (void *) (p == NULL);
30362 /* pthread test function */
30363 #ifndef PTHREAD_CREATE_DETACHED
30364 #define PTHREAD_CREATE_DETACHED 1
30368 int detach = PTHREAD_CREATE_DETACHED;
30370 #if HAVE_PTHREADS > 4
30371 /* Final pthreads */
30372 pthread_attr_t attr;
30374 status = pthread_attr_init(&attr);
30375 if( status ) return status;
30377 #if HAVE_PTHREADS < 7
30378 status = pthread_attr_setdetachstate(&attr, &detach);
30379 if( status < 0 ) status = errno;
30381 status = pthread_attr_setdetachstate(&attr, detach);
30383 if( status ) return status;
30384 status = pthread_create( &t, &attr, task, NULL );
30385 #if HAVE_PTHREADS < 7
30386 if( status < 0 ) status = errno;
30388 if( status ) return status;
30390 /* Draft 4 pthreads */
30391 status = pthread_create( &t, pthread_attr_default, task, NULL );
30392 if( status ) return errno;
30394 /* give thread a chance to complete */
30395 /* it should remain joinable and hence detachable */
30398 status = pthread_detach( &t );
30399 if( status ) return errno;
30402 #ifdef HAVE_LINUX_THREADS
30403 pthread_kill_other_threads_np();
30412 rm -f conftest.$ac_objext conftest$ac_exeext
30413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30414 (eval $ac_link) 2>conftest.er1
30416 grep -v '^ *+' conftest.er1 >conftest.err
30418 cat conftest.err >&5
30419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30420 (exit $ac_status); } &&
30421 { ac_try='test -z "$ac_c_werror_flag"
30422 || test ! -s conftest.err'
30423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30424 (eval $ac_try) 2>&5
30426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30427 (exit $ac_status); }; } &&
30428 { ac_try='test -s conftest$ac_exeext'
30429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30430 (eval $ac_try) 2>&5
30432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30433 (exit $ac_status); }; }; then
30434 ol_cv_pthread_create=yes
30436 echo "$as_me: failed program was:" >&5
30437 sed 's/^/| /' conftest.$ac_ext >&5
30439 ol_cv_pthread_create=no
30441 rm -f conftest.err conftest.$ac_objext \
30442 conftest$ac_exeext conftest.$ac_ext
30444 cat >conftest.$ac_ext <<_ACEOF
30447 cat confdefs.h >>conftest.$ac_ext
30448 cat >>conftest.$ac_ext <<_ACEOF
30449 /* end confdefs.h. */
30450 /* pthread test headers */
30451 #include <pthread.h>
30452 #if HAVE_PTHREADS < 7
30456 #define NULL (void*)0
30459 static void *task(p)
30462 return (void *) (p == NULL);
30466 int main(argc, argv)
30471 /* pthread test function */
30472 #ifndef PTHREAD_CREATE_DETACHED
30473 #define PTHREAD_CREATE_DETACHED 1
30477 int detach = PTHREAD_CREATE_DETACHED;
30479 #if HAVE_PTHREADS > 4
30480 /* Final pthreads */
30481 pthread_attr_t attr;
30483 status = pthread_attr_init(&attr);
30484 if( status ) return status;
30486 #if HAVE_PTHREADS < 7
30487 status = pthread_attr_setdetachstate(&attr, &detach);
30488 if( status < 0 ) status = errno;
30490 status = pthread_attr_setdetachstate(&attr, detach);
30492 if( status ) return status;
30493 status = pthread_create( &t, &attr, task, NULL );
30494 #if HAVE_PTHREADS < 7
30495 if( status < 0 ) status = errno;
30497 if( status ) return status;
30499 /* Draft 4 pthreads */
30500 status = pthread_create( &t, pthread_attr_default, task, NULL );
30501 if( status ) return errno;
30503 /* give thread a chance to complete */
30504 /* it should remain joinable and hence detachable */
30507 status = pthread_detach( &t );
30508 if( status ) return errno;
30511 #ifdef HAVE_LINUX_THREADS
30512 pthread_kill_other_threads_np();
30520 rm -f conftest$ac_exeext
30521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30522 (eval $ac_link) 2>&5
30524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30527 (eval $ac_try) 2>&5
30529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30530 (exit $ac_status); }; }; then
30531 ol_cv_pthread_create=yes
30533 echo "$as_me: program exited with status $ac_status" >&5
30534 echo "$as_me: failed program was:" >&5
30535 sed 's/^/| /' conftest.$ac_ext >&5
30537 ( exit $ac_status )
30538 ol_cv_pthread_create=no
30540 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30543 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
30544 echo "${ECHO_T}$ol_cv_pthread_create" >&6
30546 if test $ol_cv_pthread_create != no ; then
30547 ol_link_threads=posix
30548 ol_link_pthreads=""
30551 # Pthread try link: -kthread (ol_cv_pthread_kthread)
30552 if test "$ol_link_threads" = no ; then
30554 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
30555 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
30556 if test "${ol_cv_pthread_kthread+set}" = set; then
30557 echo $ECHO_N "(cached) $ECHO_C" >&6
30562 LIBS="-kthread $LIBS"
30564 if test "$cross_compiling" = yes; then
30565 cat >conftest.$ac_ext <<_ACEOF
30568 cat confdefs.h >>conftest.$ac_ext
30569 cat >>conftest.$ac_ext <<_ACEOF
30570 /* end confdefs.h. */
30571 /* pthread test headers */
30572 #include <pthread.h>
30573 #if HAVE_PTHREADS < 7
30577 #define NULL (void*)0
30580 static void *task(p)
30583 return (void *) (p == NULL);
30590 /* pthread test function */
30591 #ifndef PTHREAD_CREATE_DETACHED
30592 #define PTHREAD_CREATE_DETACHED 1
30596 int detach = PTHREAD_CREATE_DETACHED;
30598 #if HAVE_PTHREADS > 4
30599 /* Final pthreads */
30600 pthread_attr_t attr;
30602 status = pthread_attr_init(&attr);
30603 if( status ) return status;
30605 #if HAVE_PTHREADS < 7
30606 status = pthread_attr_setdetachstate(&attr, &detach);
30607 if( status < 0 ) status = errno;
30609 status = pthread_attr_setdetachstate(&attr, detach);
30611 if( status ) return status;
30612 status = pthread_create( &t, &attr, task, NULL );
30613 #if HAVE_PTHREADS < 7
30614 if( status < 0 ) status = errno;
30616 if( status ) return status;
30618 /* Draft 4 pthreads */
30619 status = pthread_create( &t, pthread_attr_default, task, NULL );
30620 if( status ) return errno;
30622 /* give thread a chance to complete */
30623 /* it should remain joinable and hence detachable */
30626 status = pthread_detach( &t );
30627 if( status ) return errno;
30630 #ifdef HAVE_LINUX_THREADS
30631 pthread_kill_other_threads_np();
30640 rm -f conftest.$ac_objext conftest$ac_exeext
30641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30642 (eval $ac_link) 2>conftest.er1
30644 grep -v '^ *+' conftest.er1 >conftest.err
30646 cat conftest.err >&5
30647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30648 (exit $ac_status); } &&
30649 { ac_try='test -z "$ac_c_werror_flag"
30650 || test ! -s conftest.err'
30651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30652 (eval $ac_try) 2>&5
30654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30655 (exit $ac_status); }; } &&
30656 { ac_try='test -s conftest$ac_exeext'
30657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30658 (eval $ac_try) 2>&5
30660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30661 (exit $ac_status); }; }; then
30662 ol_cv_pthread_kthread=yes
30664 echo "$as_me: failed program was:" >&5
30665 sed 's/^/| /' conftest.$ac_ext >&5
30667 ol_cv_pthread_kthread=no
30669 rm -f conftest.err conftest.$ac_objext \
30670 conftest$ac_exeext conftest.$ac_ext
30672 cat >conftest.$ac_ext <<_ACEOF
30675 cat confdefs.h >>conftest.$ac_ext
30676 cat >>conftest.$ac_ext <<_ACEOF
30677 /* end confdefs.h. */
30678 /* pthread test headers */
30679 #include <pthread.h>
30680 #if HAVE_PTHREADS < 7
30684 #define NULL (void*)0
30687 static void *task(p)
30690 return (void *) (p == NULL);
30694 int main(argc, argv)
30699 /* pthread test function */
30700 #ifndef PTHREAD_CREATE_DETACHED
30701 #define PTHREAD_CREATE_DETACHED 1
30705 int detach = PTHREAD_CREATE_DETACHED;
30707 #if HAVE_PTHREADS > 4
30708 /* Final pthreads */
30709 pthread_attr_t attr;
30711 status = pthread_attr_init(&attr);
30712 if( status ) return status;
30714 #if HAVE_PTHREADS < 7
30715 status = pthread_attr_setdetachstate(&attr, &detach);
30716 if( status < 0 ) status = errno;
30718 status = pthread_attr_setdetachstate(&attr, detach);
30720 if( status ) return status;
30721 status = pthread_create( &t, &attr, task, NULL );
30722 #if HAVE_PTHREADS < 7
30723 if( status < 0 ) status = errno;
30725 if( status ) return status;
30727 /* Draft 4 pthreads */
30728 status = pthread_create( &t, pthread_attr_default, task, NULL );
30729 if( status ) return errno;
30731 /* give thread a chance to complete */
30732 /* it should remain joinable and hence detachable */
30735 status = pthread_detach( &t );
30736 if( status ) return errno;
30739 #ifdef HAVE_LINUX_THREADS
30740 pthread_kill_other_threads_np();
30748 rm -f conftest$ac_exeext
30749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30750 (eval $ac_link) 2>&5
30752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30755 (eval $ac_try) 2>&5
30757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30758 (exit $ac_status); }; }; then
30759 ol_cv_pthread_kthread=yes
30761 echo "$as_me: program exited with status $ac_status" >&5
30762 echo "$as_me: failed program was:" >&5
30763 sed 's/^/| /' conftest.$ac_ext >&5
30765 ( exit $ac_status )
30766 ol_cv_pthread_kthread=no
30768 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30775 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
30776 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
30778 if test $ol_cv_pthread_kthread = yes ; then
30779 ol_link_pthreads="-kthread"
30780 ol_link_threads=posix
30784 # Pthread try link: -pthread (ol_cv_pthread_pthread)
30785 if test "$ol_link_threads" = no ; then
30787 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
30788 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
30789 if test "${ol_cv_pthread_pthread+set}" = set; then
30790 echo $ECHO_N "(cached) $ECHO_C" >&6
30795 LIBS="-pthread $LIBS"
30797 if test "$cross_compiling" = yes; then
30798 cat >conftest.$ac_ext <<_ACEOF
30801 cat confdefs.h >>conftest.$ac_ext
30802 cat >>conftest.$ac_ext <<_ACEOF
30803 /* end confdefs.h. */
30804 /* pthread test headers */
30805 #include <pthread.h>
30806 #if HAVE_PTHREADS < 7
30810 #define NULL (void*)0
30813 static void *task(p)
30816 return (void *) (p == NULL);
30823 /* pthread test function */
30824 #ifndef PTHREAD_CREATE_DETACHED
30825 #define PTHREAD_CREATE_DETACHED 1
30829 int detach = PTHREAD_CREATE_DETACHED;
30831 #if HAVE_PTHREADS > 4
30832 /* Final pthreads */
30833 pthread_attr_t attr;
30835 status = pthread_attr_init(&attr);
30836 if( status ) return status;
30838 #if HAVE_PTHREADS < 7
30839 status = pthread_attr_setdetachstate(&attr, &detach);
30840 if( status < 0 ) status = errno;
30842 status = pthread_attr_setdetachstate(&attr, detach);
30844 if( status ) return status;
30845 status = pthread_create( &t, &attr, task, NULL );
30846 #if HAVE_PTHREADS < 7
30847 if( status < 0 ) status = errno;
30849 if( status ) return status;
30851 /* Draft 4 pthreads */
30852 status = pthread_create( &t, pthread_attr_default, task, NULL );
30853 if( status ) return errno;
30855 /* give thread a chance to complete */
30856 /* it should remain joinable and hence detachable */
30859 status = pthread_detach( &t );
30860 if( status ) return errno;
30863 #ifdef HAVE_LINUX_THREADS
30864 pthread_kill_other_threads_np();
30873 rm -f conftest.$ac_objext conftest$ac_exeext
30874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30875 (eval $ac_link) 2>conftest.er1
30877 grep -v '^ *+' conftest.er1 >conftest.err
30879 cat conftest.err >&5
30880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30881 (exit $ac_status); } &&
30882 { ac_try='test -z "$ac_c_werror_flag"
30883 || test ! -s conftest.err'
30884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30885 (eval $ac_try) 2>&5
30887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30888 (exit $ac_status); }; } &&
30889 { ac_try='test -s conftest$ac_exeext'
30890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30891 (eval $ac_try) 2>&5
30893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30894 (exit $ac_status); }; }; then
30895 ol_cv_pthread_pthread=yes
30897 echo "$as_me: failed program was:" >&5
30898 sed 's/^/| /' conftest.$ac_ext >&5
30900 ol_cv_pthread_pthread=no
30902 rm -f conftest.err conftest.$ac_objext \
30903 conftest$ac_exeext conftest.$ac_ext
30905 cat >conftest.$ac_ext <<_ACEOF
30908 cat confdefs.h >>conftest.$ac_ext
30909 cat >>conftest.$ac_ext <<_ACEOF
30910 /* end confdefs.h. */
30911 /* pthread test headers */
30912 #include <pthread.h>
30913 #if HAVE_PTHREADS < 7
30917 #define NULL (void*)0
30920 static void *task(p)
30923 return (void *) (p == NULL);
30927 int main(argc, argv)
30932 /* pthread test function */
30933 #ifndef PTHREAD_CREATE_DETACHED
30934 #define PTHREAD_CREATE_DETACHED 1
30938 int detach = PTHREAD_CREATE_DETACHED;
30940 #if HAVE_PTHREADS > 4
30941 /* Final pthreads */
30942 pthread_attr_t attr;
30944 status = pthread_attr_init(&attr);
30945 if( status ) return status;
30947 #if HAVE_PTHREADS < 7
30948 status = pthread_attr_setdetachstate(&attr, &detach);
30949 if( status < 0 ) status = errno;
30951 status = pthread_attr_setdetachstate(&attr, detach);
30953 if( status ) return status;
30954 status = pthread_create( &t, &attr, task, NULL );
30955 #if HAVE_PTHREADS < 7
30956 if( status < 0 ) status = errno;
30958 if( status ) return status;
30960 /* Draft 4 pthreads */
30961 status = pthread_create( &t, pthread_attr_default, task, NULL );
30962 if( status ) return errno;
30964 /* give thread a chance to complete */
30965 /* it should remain joinable and hence detachable */
30968 status = pthread_detach( &t );
30969 if( status ) return errno;
30972 #ifdef HAVE_LINUX_THREADS
30973 pthread_kill_other_threads_np();
30981 rm -f conftest$ac_exeext
30982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30983 (eval $ac_link) 2>&5
30985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30986 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30988 (eval $ac_try) 2>&5
30990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30991 (exit $ac_status); }; }; then
30992 ol_cv_pthread_pthread=yes
30994 echo "$as_me: program exited with status $ac_status" >&5
30995 echo "$as_me: failed program was:" >&5
30996 sed 's/^/| /' conftest.$ac_ext >&5
30998 ( exit $ac_status )
30999 ol_cv_pthread_pthread=no
31001 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31008 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
31009 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
31011 if test $ol_cv_pthread_pthread = yes ; then
31012 ol_link_pthreads="-pthread"
31013 ol_link_threads=posix
31017 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
31018 if test "$ol_link_threads" = no ; then
31020 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
31021 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
31022 if test "${ol_cv_pthread_pthreads+set}" = set; then
31023 echo $ECHO_N "(cached) $ECHO_C" >&6
31028 LIBS="-pthreads $LIBS"
31030 if test "$cross_compiling" = yes; then
31031 cat >conftest.$ac_ext <<_ACEOF
31034 cat confdefs.h >>conftest.$ac_ext
31035 cat >>conftest.$ac_ext <<_ACEOF
31036 /* end confdefs.h. */
31037 /* pthread test headers */
31038 #include <pthread.h>
31039 #if HAVE_PTHREADS < 7
31043 #define NULL (void*)0
31046 static void *task(p)
31049 return (void *) (p == NULL);
31056 /* pthread test function */
31057 #ifndef PTHREAD_CREATE_DETACHED
31058 #define PTHREAD_CREATE_DETACHED 1
31062 int detach = PTHREAD_CREATE_DETACHED;
31064 #if HAVE_PTHREADS > 4
31065 /* Final pthreads */
31066 pthread_attr_t attr;
31068 status = pthread_attr_init(&attr);
31069 if( status ) return status;
31071 #if HAVE_PTHREADS < 7
31072 status = pthread_attr_setdetachstate(&attr, &detach);
31073 if( status < 0 ) status = errno;
31075 status = pthread_attr_setdetachstate(&attr, detach);
31077 if( status ) return status;
31078 status = pthread_create( &t, &attr, task, NULL );
31079 #if HAVE_PTHREADS < 7
31080 if( status < 0 ) status = errno;
31082 if( status ) return status;
31084 /* Draft 4 pthreads */
31085 status = pthread_create( &t, pthread_attr_default, task, NULL );
31086 if( status ) return errno;
31088 /* give thread a chance to complete */
31089 /* it should remain joinable and hence detachable */
31092 status = pthread_detach( &t );
31093 if( status ) return errno;
31096 #ifdef HAVE_LINUX_THREADS
31097 pthread_kill_other_threads_np();
31106 rm -f conftest.$ac_objext conftest$ac_exeext
31107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31108 (eval $ac_link) 2>conftest.er1
31110 grep -v '^ *+' conftest.er1 >conftest.err
31112 cat conftest.err >&5
31113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31114 (exit $ac_status); } &&
31115 { ac_try='test -z "$ac_c_werror_flag"
31116 || test ! -s conftest.err'
31117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31118 (eval $ac_try) 2>&5
31120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31121 (exit $ac_status); }; } &&
31122 { ac_try='test -s conftest$ac_exeext'
31123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31124 (eval $ac_try) 2>&5
31126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31127 (exit $ac_status); }; }; then
31128 ol_cv_pthread_pthreads=yes
31130 echo "$as_me: failed program was:" >&5
31131 sed 's/^/| /' conftest.$ac_ext >&5
31133 ol_cv_pthread_pthreads=no
31135 rm -f conftest.err conftest.$ac_objext \
31136 conftest$ac_exeext conftest.$ac_ext
31138 cat >conftest.$ac_ext <<_ACEOF
31141 cat confdefs.h >>conftest.$ac_ext
31142 cat >>conftest.$ac_ext <<_ACEOF
31143 /* end confdefs.h. */
31144 /* pthread test headers */
31145 #include <pthread.h>
31146 #if HAVE_PTHREADS < 7
31150 #define NULL (void*)0
31153 static void *task(p)
31156 return (void *) (p == NULL);
31160 int main(argc, argv)
31165 /* pthread test function */
31166 #ifndef PTHREAD_CREATE_DETACHED
31167 #define PTHREAD_CREATE_DETACHED 1
31171 int detach = PTHREAD_CREATE_DETACHED;
31173 #if HAVE_PTHREADS > 4
31174 /* Final pthreads */
31175 pthread_attr_t attr;
31177 status = pthread_attr_init(&attr);
31178 if( status ) return status;
31180 #if HAVE_PTHREADS < 7
31181 status = pthread_attr_setdetachstate(&attr, &detach);
31182 if( status < 0 ) status = errno;
31184 status = pthread_attr_setdetachstate(&attr, detach);
31186 if( status ) return status;
31187 status = pthread_create( &t, &attr, task, NULL );
31188 #if HAVE_PTHREADS < 7
31189 if( status < 0 ) status = errno;
31191 if( status ) return status;
31193 /* Draft 4 pthreads */
31194 status = pthread_create( &t, pthread_attr_default, task, NULL );
31195 if( status ) return errno;
31197 /* give thread a chance to complete */
31198 /* it should remain joinable and hence detachable */
31201 status = pthread_detach( &t );
31202 if( status ) return errno;
31205 #ifdef HAVE_LINUX_THREADS
31206 pthread_kill_other_threads_np();
31214 rm -f conftest$ac_exeext
31215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31216 (eval $ac_link) 2>&5
31218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31221 (eval $ac_try) 2>&5
31223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31224 (exit $ac_status); }; }; then
31225 ol_cv_pthread_pthreads=yes
31227 echo "$as_me: program exited with status $ac_status" >&5
31228 echo "$as_me: failed program was:" >&5
31229 sed 's/^/| /' conftest.$ac_ext >&5
31231 ( exit $ac_status )
31232 ol_cv_pthread_pthreads=no
31234 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31241 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
31242 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
31244 if test $ol_cv_pthread_pthreads = yes ; then
31245 ol_link_pthreads="-pthreads"
31246 ol_link_threads=posix
31250 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
31251 if test "$ol_link_threads" = no ; then
31253 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
31254 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
31255 if test "${ol_cv_pthread_mthreads+set}" = set; then
31256 echo $ECHO_N "(cached) $ECHO_C" >&6
31261 LIBS="-mthreads $LIBS"
31263 if test "$cross_compiling" = yes; then
31264 cat >conftest.$ac_ext <<_ACEOF
31267 cat confdefs.h >>conftest.$ac_ext
31268 cat >>conftest.$ac_ext <<_ACEOF
31269 /* end confdefs.h. */
31270 /* pthread test headers */
31271 #include <pthread.h>
31272 #if HAVE_PTHREADS < 7
31276 #define NULL (void*)0
31279 static void *task(p)
31282 return (void *) (p == NULL);
31289 /* pthread test function */
31290 #ifndef PTHREAD_CREATE_DETACHED
31291 #define PTHREAD_CREATE_DETACHED 1
31295 int detach = PTHREAD_CREATE_DETACHED;
31297 #if HAVE_PTHREADS > 4
31298 /* Final pthreads */
31299 pthread_attr_t attr;
31301 status = pthread_attr_init(&attr);
31302 if( status ) return status;
31304 #if HAVE_PTHREADS < 7
31305 status = pthread_attr_setdetachstate(&attr, &detach);
31306 if( status < 0 ) status = errno;
31308 status = pthread_attr_setdetachstate(&attr, detach);
31310 if( status ) return status;
31311 status = pthread_create( &t, &attr, task, NULL );
31312 #if HAVE_PTHREADS < 7
31313 if( status < 0 ) status = errno;
31315 if( status ) return status;
31317 /* Draft 4 pthreads */
31318 status = pthread_create( &t, pthread_attr_default, task, NULL );
31319 if( status ) return errno;
31321 /* give thread a chance to complete */
31322 /* it should remain joinable and hence detachable */
31325 status = pthread_detach( &t );
31326 if( status ) return errno;
31329 #ifdef HAVE_LINUX_THREADS
31330 pthread_kill_other_threads_np();
31339 rm -f conftest.$ac_objext conftest$ac_exeext
31340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31341 (eval $ac_link) 2>conftest.er1
31343 grep -v '^ *+' conftest.er1 >conftest.err
31345 cat conftest.err >&5
31346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31347 (exit $ac_status); } &&
31348 { ac_try='test -z "$ac_c_werror_flag"
31349 || test ! -s conftest.err'
31350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31351 (eval $ac_try) 2>&5
31353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31354 (exit $ac_status); }; } &&
31355 { ac_try='test -s conftest$ac_exeext'
31356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31357 (eval $ac_try) 2>&5
31359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31360 (exit $ac_status); }; }; then
31361 ol_cv_pthread_mthreads=yes
31363 echo "$as_me: failed program was:" >&5
31364 sed 's/^/| /' conftest.$ac_ext >&5
31366 ol_cv_pthread_mthreads=no
31368 rm -f conftest.err conftest.$ac_objext \
31369 conftest$ac_exeext conftest.$ac_ext
31371 cat >conftest.$ac_ext <<_ACEOF
31374 cat confdefs.h >>conftest.$ac_ext
31375 cat >>conftest.$ac_ext <<_ACEOF
31376 /* end confdefs.h. */
31377 /* pthread test headers */
31378 #include <pthread.h>
31379 #if HAVE_PTHREADS < 7
31383 #define NULL (void*)0
31386 static void *task(p)
31389 return (void *) (p == NULL);
31393 int main(argc, argv)
31398 /* pthread test function */
31399 #ifndef PTHREAD_CREATE_DETACHED
31400 #define PTHREAD_CREATE_DETACHED 1
31404 int detach = PTHREAD_CREATE_DETACHED;
31406 #if HAVE_PTHREADS > 4
31407 /* Final pthreads */
31408 pthread_attr_t attr;
31410 status = pthread_attr_init(&attr);
31411 if( status ) return status;
31413 #if HAVE_PTHREADS < 7
31414 status = pthread_attr_setdetachstate(&attr, &detach);
31415 if( status < 0 ) status = errno;
31417 status = pthread_attr_setdetachstate(&attr, detach);
31419 if( status ) return status;
31420 status = pthread_create( &t, &attr, task, NULL );
31421 #if HAVE_PTHREADS < 7
31422 if( status < 0 ) status = errno;
31424 if( status ) return status;
31426 /* Draft 4 pthreads */
31427 status = pthread_create( &t, pthread_attr_default, task, NULL );
31428 if( status ) return errno;
31430 /* give thread a chance to complete */
31431 /* it should remain joinable and hence detachable */
31434 status = pthread_detach( &t );
31435 if( status ) return errno;
31438 #ifdef HAVE_LINUX_THREADS
31439 pthread_kill_other_threads_np();
31447 rm -f conftest$ac_exeext
31448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31449 (eval $ac_link) 2>&5
31451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31454 (eval $ac_try) 2>&5
31456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31457 (exit $ac_status); }; }; then
31458 ol_cv_pthread_mthreads=yes
31460 echo "$as_me: program exited with status $ac_status" >&5
31461 echo "$as_me: failed program was:" >&5
31462 sed 's/^/| /' conftest.$ac_ext >&5
31464 ( exit $ac_status )
31465 ol_cv_pthread_mthreads=no
31467 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31474 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
31475 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
31477 if test $ol_cv_pthread_mthreads = yes ; then
31478 ol_link_pthreads="-mthreads"
31479 ol_link_threads=posix
31483 # Pthread try link: -thread (ol_cv_pthread_thread)
31484 if test "$ol_link_threads" = no ; then
31486 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
31487 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
31488 if test "${ol_cv_pthread_thread+set}" = set; then
31489 echo $ECHO_N "(cached) $ECHO_C" >&6
31494 LIBS="-thread $LIBS"
31496 if test "$cross_compiling" = yes; then
31497 cat >conftest.$ac_ext <<_ACEOF
31500 cat confdefs.h >>conftest.$ac_ext
31501 cat >>conftest.$ac_ext <<_ACEOF
31502 /* end confdefs.h. */
31503 /* pthread test headers */
31504 #include <pthread.h>
31505 #if HAVE_PTHREADS < 7
31509 #define NULL (void*)0
31512 static void *task(p)
31515 return (void *) (p == NULL);
31522 /* pthread test function */
31523 #ifndef PTHREAD_CREATE_DETACHED
31524 #define PTHREAD_CREATE_DETACHED 1
31528 int detach = PTHREAD_CREATE_DETACHED;
31530 #if HAVE_PTHREADS > 4
31531 /* Final pthreads */
31532 pthread_attr_t attr;
31534 status = pthread_attr_init(&attr);
31535 if( status ) return status;
31537 #if HAVE_PTHREADS < 7
31538 status = pthread_attr_setdetachstate(&attr, &detach);
31539 if( status < 0 ) status = errno;
31541 status = pthread_attr_setdetachstate(&attr, detach);
31543 if( status ) return status;
31544 status = pthread_create( &t, &attr, task, NULL );
31545 #if HAVE_PTHREADS < 7
31546 if( status < 0 ) status = errno;
31548 if( status ) return status;
31550 /* Draft 4 pthreads */
31551 status = pthread_create( &t, pthread_attr_default, task, NULL );
31552 if( status ) return errno;
31554 /* give thread a chance to complete */
31555 /* it should remain joinable and hence detachable */
31558 status = pthread_detach( &t );
31559 if( status ) return errno;
31562 #ifdef HAVE_LINUX_THREADS
31563 pthread_kill_other_threads_np();
31572 rm -f conftest.$ac_objext conftest$ac_exeext
31573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31574 (eval $ac_link) 2>conftest.er1
31576 grep -v '^ *+' conftest.er1 >conftest.err
31578 cat conftest.err >&5
31579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31580 (exit $ac_status); } &&
31581 { ac_try='test -z "$ac_c_werror_flag"
31582 || test ! -s conftest.err'
31583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31584 (eval $ac_try) 2>&5
31586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31587 (exit $ac_status); }; } &&
31588 { ac_try='test -s conftest$ac_exeext'
31589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31590 (eval $ac_try) 2>&5
31592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31593 (exit $ac_status); }; }; then
31594 ol_cv_pthread_thread=yes
31596 echo "$as_me: failed program was:" >&5
31597 sed 's/^/| /' conftest.$ac_ext >&5
31599 ol_cv_pthread_thread=no
31601 rm -f conftest.err conftest.$ac_objext \
31602 conftest$ac_exeext conftest.$ac_ext
31604 cat >conftest.$ac_ext <<_ACEOF
31607 cat confdefs.h >>conftest.$ac_ext
31608 cat >>conftest.$ac_ext <<_ACEOF
31609 /* end confdefs.h. */
31610 /* pthread test headers */
31611 #include <pthread.h>
31612 #if HAVE_PTHREADS < 7
31616 #define NULL (void*)0
31619 static void *task(p)
31622 return (void *) (p == NULL);
31626 int main(argc, argv)
31631 /* pthread test function */
31632 #ifndef PTHREAD_CREATE_DETACHED
31633 #define PTHREAD_CREATE_DETACHED 1
31637 int detach = PTHREAD_CREATE_DETACHED;
31639 #if HAVE_PTHREADS > 4
31640 /* Final pthreads */
31641 pthread_attr_t attr;
31643 status = pthread_attr_init(&attr);
31644 if( status ) return status;
31646 #if HAVE_PTHREADS < 7
31647 status = pthread_attr_setdetachstate(&attr, &detach);
31648 if( status < 0 ) status = errno;
31650 status = pthread_attr_setdetachstate(&attr, detach);
31652 if( status ) return status;
31653 status = pthread_create( &t, &attr, task, NULL );
31654 #if HAVE_PTHREADS < 7
31655 if( status < 0 ) status = errno;
31657 if( status ) return status;
31659 /* Draft 4 pthreads */
31660 status = pthread_create( &t, pthread_attr_default, task, NULL );
31661 if( status ) return errno;
31663 /* give thread a chance to complete */
31664 /* it should remain joinable and hence detachable */
31667 status = pthread_detach( &t );
31668 if( status ) return errno;
31671 #ifdef HAVE_LINUX_THREADS
31672 pthread_kill_other_threads_np();
31680 rm -f conftest$ac_exeext
31681 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31682 (eval $ac_link) 2>&5
31684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31687 (eval $ac_try) 2>&5
31689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31690 (exit $ac_status); }; }; then
31691 ol_cv_pthread_thread=yes
31693 echo "$as_me: program exited with status $ac_status" >&5
31694 echo "$as_me: failed program was:" >&5
31695 sed 's/^/| /' conftest.$ac_ext >&5
31697 ( exit $ac_status )
31698 ol_cv_pthread_thread=no
31700 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31707 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
31708 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
31710 if test $ol_cv_pthread_thread = yes ; then
31711 ol_link_pthreads="-thread"
31712 ol_link_threads=posix
31717 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
31718 if test "$ol_link_threads" = no ; then
31719 # try -lpthread -lmach -lexc -lc_r
31720 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
31721 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
31722 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
31723 echo $ECHO_N "(cached) $ECHO_C" >&6
31728 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
31730 if test "$cross_compiling" = yes; then
31731 cat >conftest.$ac_ext <<_ACEOF
31734 cat confdefs.h >>conftest.$ac_ext
31735 cat >>conftest.$ac_ext <<_ACEOF
31736 /* end confdefs.h. */
31737 /* pthread test headers */
31738 #include <pthread.h>
31739 #if HAVE_PTHREADS < 7
31743 #define NULL (void*)0
31746 static void *task(p)
31749 return (void *) (p == NULL);
31756 /* pthread test function */
31757 #ifndef PTHREAD_CREATE_DETACHED
31758 #define PTHREAD_CREATE_DETACHED 1
31762 int detach = PTHREAD_CREATE_DETACHED;
31764 #if HAVE_PTHREADS > 4
31765 /* Final pthreads */
31766 pthread_attr_t attr;
31768 status = pthread_attr_init(&attr);
31769 if( status ) return status;
31771 #if HAVE_PTHREADS < 7
31772 status = pthread_attr_setdetachstate(&attr, &detach);
31773 if( status < 0 ) status = errno;
31775 status = pthread_attr_setdetachstate(&attr, detach);
31777 if( status ) return status;
31778 status = pthread_create( &t, &attr, task, NULL );
31779 #if HAVE_PTHREADS < 7
31780 if( status < 0 ) status = errno;
31782 if( status ) return status;
31784 /* Draft 4 pthreads */
31785 status = pthread_create( &t, pthread_attr_default, task, NULL );
31786 if( status ) return errno;
31788 /* give thread a chance to complete */
31789 /* it should remain joinable and hence detachable */
31792 status = pthread_detach( &t );
31793 if( status ) return errno;
31796 #ifdef HAVE_LINUX_THREADS
31797 pthread_kill_other_threads_np();
31806 rm -f conftest.$ac_objext conftest$ac_exeext
31807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31808 (eval $ac_link) 2>conftest.er1
31810 grep -v '^ *+' conftest.er1 >conftest.err
31812 cat conftest.err >&5
31813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31814 (exit $ac_status); } &&
31815 { ac_try='test -z "$ac_c_werror_flag"
31816 || test ! -s conftest.err'
31817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31818 (eval $ac_try) 2>&5
31820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31821 (exit $ac_status); }; } &&
31822 { ac_try='test -s conftest$ac_exeext'
31823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31824 (eval $ac_try) 2>&5
31826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31827 (exit $ac_status); }; }; then
31828 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31830 echo "$as_me: failed program was:" >&5
31831 sed 's/^/| /' conftest.$ac_ext >&5
31833 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31835 rm -f conftest.err conftest.$ac_objext \
31836 conftest$ac_exeext conftest.$ac_ext
31838 cat >conftest.$ac_ext <<_ACEOF
31841 cat confdefs.h >>conftest.$ac_ext
31842 cat >>conftest.$ac_ext <<_ACEOF
31843 /* end confdefs.h. */
31844 /* pthread test headers */
31845 #include <pthread.h>
31846 #if HAVE_PTHREADS < 7
31850 #define NULL (void*)0
31853 static void *task(p)
31856 return (void *) (p == NULL);
31860 int main(argc, argv)
31865 /* pthread test function */
31866 #ifndef PTHREAD_CREATE_DETACHED
31867 #define PTHREAD_CREATE_DETACHED 1
31871 int detach = PTHREAD_CREATE_DETACHED;
31873 #if HAVE_PTHREADS > 4
31874 /* Final pthreads */
31875 pthread_attr_t attr;
31877 status = pthread_attr_init(&attr);
31878 if( status ) return status;
31880 #if HAVE_PTHREADS < 7
31881 status = pthread_attr_setdetachstate(&attr, &detach);
31882 if( status < 0 ) status = errno;
31884 status = pthread_attr_setdetachstate(&attr, detach);
31886 if( status ) return status;
31887 status = pthread_create( &t, &attr, task, NULL );
31888 #if HAVE_PTHREADS < 7
31889 if( status < 0 ) status = errno;
31891 if( status ) return status;
31893 /* Draft 4 pthreads */
31894 status = pthread_create( &t, pthread_attr_default, task, NULL );
31895 if( status ) return errno;
31897 /* give thread a chance to complete */
31898 /* it should remain joinable and hence detachable */
31901 status = pthread_detach( &t );
31902 if( status ) return errno;
31905 #ifdef HAVE_LINUX_THREADS
31906 pthread_kill_other_threads_np();
31914 rm -f conftest$ac_exeext
31915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31916 (eval $ac_link) 2>&5
31918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31919 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31921 (eval $ac_try) 2>&5
31923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31924 (exit $ac_status); }; }; then
31925 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31927 echo "$as_me: program exited with status $ac_status" >&5
31928 echo "$as_me: failed program was:" >&5
31929 sed 's/^/| /' conftest.$ac_ext >&5
31931 ( exit $ac_status )
31932 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31934 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31941 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
31942 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
31944 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
31945 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
31946 ol_link_threads=posix
31950 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
31951 if test "$ol_link_threads" = no ; then
31952 # try -lpthread -lmach -lexc
31953 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
31954 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
31955 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
31956 echo $ECHO_N "(cached) $ECHO_C" >&6
31961 LIBS="-lpthread -lmach -lexc $LIBS"
31963 if test "$cross_compiling" = yes; then
31964 cat >conftest.$ac_ext <<_ACEOF
31967 cat confdefs.h >>conftest.$ac_ext
31968 cat >>conftest.$ac_ext <<_ACEOF
31969 /* end confdefs.h. */
31970 /* pthread test headers */
31971 #include <pthread.h>
31972 #if HAVE_PTHREADS < 7
31976 #define NULL (void*)0
31979 static void *task(p)
31982 return (void *) (p == NULL);
31989 /* pthread test function */
31990 #ifndef PTHREAD_CREATE_DETACHED
31991 #define PTHREAD_CREATE_DETACHED 1
31995 int detach = PTHREAD_CREATE_DETACHED;
31997 #if HAVE_PTHREADS > 4
31998 /* Final pthreads */
31999 pthread_attr_t attr;
32001 status = pthread_attr_init(&attr);
32002 if( status ) return status;
32004 #if HAVE_PTHREADS < 7
32005 status = pthread_attr_setdetachstate(&attr, &detach);
32006 if( status < 0 ) status = errno;
32008 status = pthread_attr_setdetachstate(&attr, detach);
32010 if( status ) return status;
32011 status = pthread_create( &t, &attr, task, NULL );
32012 #if HAVE_PTHREADS < 7
32013 if( status < 0 ) status = errno;
32015 if( status ) return status;
32017 /* Draft 4 pthreads */
32018 status = pthread_create( &t, pthread_attr_default, task, NULL );
32019 if( status ) return errno;
32021 /* give thread a chance to complete */
32022 /* it should remain joinable and hence detachable */
32025 status = pthread_detach( &t );
32026 if( status ) return errno;
32029 #ifdef HAVE_LINUX_THREADS
32030 pthread_kill_other_threads_np();
32039 rm -f conftest.$ac_objext conftest$ac_exeext
32040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32041 (eval $ac_link) 2>conftest.er1
32043 grep -v '^ *+' conftest.er1 >conftest.err
32045 cat conftest.err >&5
32046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32047 (exit $ac_status); } &&
32048 { ac_try='test -z "$ac_c_werror_flag"
32049 || test ! -s conftest.err'
32050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32051 (eval $ac_try) 2>&5
32053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32054 (exit $ac_status); }; } &&
32055 { ac_try='test -s conftest$ac_exeext'
32056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32057 (eval $ac_try) 2>&5
32059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060 (exit $ac_status); }; }; then
32061 ol_cv_pthread_lpthread_lmach_lexc=yes
32063 echo "$as_me: failed program was:" >&5
32064 sed 's/^/| /' conftest.$ac_ext >&5
32066 ol_cv_pthread_lpthread_lmach_lexc=no
32068 rm -f conftest.err conftest.$ac_objext \
32069 conftest$ac_exeext conftest.$ac_ext
32071 cat >conftest.$ac_ext <<_ACEOF
32074 cat confdefs.h >>conftest.$ac_ext
32075 cat >>conftest.$ac_ext <<_ACEOF
32076 /* end confdefs.h. */
32077 /* pthread test headers */
32078 #include <pthread.h>
32079 #if HAVE_PTHREADS < 7
32083 #define NULL (void*)0
32086 static void *task(p)
32089 return (void *) (p == NULL);
32093 int main(argc, argv)
32098 /* pthread test function */
32099 #ifndef PTHREAD_CREATE_DETACHED
32100 #define PTHREAD_CREATE_DETACHED 1
32104 int detach = PTHREAD_CREATE_DETACHED;
32106 #if HAVE_PTHREADS > 4
32107 /* Final pthreads */
32108 pthread_attr_t attr;
32110 status = pthread_attr_init(&attr);
32111 if( status ) return status;
32113 #if HAVE_PTHREADS < 7
32114 status = pthread_attr_setdetachstate(&attr, &detach);
32115 if( status < 0 ) status = errno;
32117 status = pthread_attr_setdetachstate(&attr, detach);
32119 if( status ) return status;
32120 status = pthread_create( &t, &attr, task, NULL );
32121 #if HAVE_PTHREADS < 7
32122 if( status < 0 ) status = errno;
32124 if( status ) return status;
32126 /* Draft 4 pthreads */
32127 status = pthread_create( &t, pthread_attr_default, task, NULL );
32128 if( status ) return errno;
32130 /* give thread a chance to complete */
32131 /* it should remain joinable and hence detachable */
32134 status = pthread_detach( &t );
32135 if( status ) return errno;
32138 #ifdef HAVE_LINUX_THREADS
32139 pthread_kill_other_threads_np();
32147 rm -f conftest$ac_exeext
32148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32149 (eval $ac_link) 2>&5
32151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32152 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32154 (eval $ac_try) 2>&5
32156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157 (exit $ac_status); }; }; then
32158 ol_cv_pthread_lpthread_lmach_lexc=yes
32160 echo "$as_me: program exited with status $ac_status" >&5
32161 echo "$as_me: failed program was:" >&5
32162 sed 's/^/| /' conftest.$ac_ext >&5
32164 ( exit $ac_status )
32165 ol_cv_pthread_lpthread_lmach_lexc=no
32167 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32174 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
32175 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
32177 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
32178 ol_link_pthreads="-lpthread -lmach -lexc"
32179 ol_link_threads=posix
32184 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
32185 if test "$ol_link_threads" = no ; then
32186 # try -lpthread -Wl,-woff,85
32187 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
32188 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
32189 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
32190 echo $ECHO_N "(cached) $ECHO_C" >&6
32195 LIBS="-lpthread -Wl,-woff,85 $LIBS"
32197 if test "$cross_compiling" = yes; then
32198 cat >conftest.$ac_ext <<_ACEOF
32201 cat confdefs.h >>conftest.$ac_ext
32202 cat >>conftest.$ac_ext <<_ACEOF
32203 /* end confdefs.h. */
32204 /* pthread test headers */
32205 #include <pthread.h>
32206 #if HAVE_PTHREADS < 7
32210 #define NULL (void*)0
32213 static void *task(p)
32216 return (void *) (p == NULL);
32223 /* pthread test function */
32224 #ifndef PTHREAD_CREATE_DETACHED
32225 #define PTHREAD_CREATE_DETACHED 1
32229 int detach = PTHREAD_CREATE_DETACHED;
32231 #if HAVE_PTHREADS > 4
32232 /* Final pthreads */
32233 pthread_attr_t attr;
32235 status = pthread_attr_init(&attr);
32236 if( status ) return status;
32238 #if HAVE_PTHREADS < 7
32239 status = pthread_attr_setdetachstate(&attr, &detach);
32240 if( status < 0 ) status = errno;
32242 status = pthread_attr_setdetachstate(&attr, detach);
32244 if( status ) return status;
32245 status = pthread_create( &t, &attr, task, NULL );
32246 #if HAVE_PTHREADS < 7
32247 if( status < 0 ) status = errno;
32249 if( status ) return status;
32251 /* Draft 4 pthreads */
32252 status = pthread_create( &t, pthread_attr_default, task, NULL );
32253 if( status ) return errno;
32255 /* give thread a chance to complete */
32256 /* it should remain joinable and hence detachable */
32259 status = pthread_detach( &t );
32260 if( status ) return errno;
32263 #ifdef HAVE_LINUX_THREADS
32264 pthread_kill_other_threads_np();
32273 rm -f conftest.$ac_objext conftest$ac_exeext
32274 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32275 (eval $ac_link) 2>conftest.er1
32277 grep -v '^ *+' conftest.er1 >conftest.err
32279 cat conftest.err >&5
32280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32281 (exit $ac_status); } &&
32282 { ac_try='test -z "$ac_c_werror_flag"
32283 || test ! -s conftest.err'
32284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32285 (eval $ac_try) 2>&5
32287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32288 (exit $ac_status); }; } &&
32289 { ac_try='test -s conftest$ac_exeext'
32290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32291 (eval $ac_try) 2>&5
32293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32294 (exit $ac_status); }; }; then
32295 ol_cv_pthread_lib_lpthread_woff=yes
32297 echo "$as_me: failed program was:" >&5
32298 sed 's/^/| /' conftest.$ac_ext >&5
32300 ol_cv_pthread_lib_lpthread_woff=no
32302 rm -f conftest.err conftest.$ac_objext \
32303 conftest$ac_exeext conftest.$ac_ext
32305 cat >conftest.$ac_ext <<_ACEOF
32308 cat confdefs.h >>conftest.$ac_ext
32309 cat >>conftest.$ac_ext <<_ACEOF
32310 /* end confdefs.h. */
32311 /* pthread test headers */
32312 #include <pthread.h>
32313 #if HAVE_PTHREADS < 7
32317 #define NULL (void*)0
32320 static void *task(p)
32323 return (void *) (p == NULL);
32327 int main(argc, argv)
32332 /* pthread test function */
32333 #ifndef PTHREAD_CREATE_DETACHED
32334 #define PTHREAD_CREATE_DETACHED 1
32338 int detach = PTHREAD_CREATE_DETACHED;
32340 #if HAVE_PTHREADS > 4
32341 /* Final pthreads */
32342 pthread_attr_t attr;
32344 status = pthread_attr_init(&attr);
32345 if( status ) return status;
32347 #if HAVE_PTHREADS < 7
32348 status = pthread_attr_setdetachstate(&attr, &detach);
32349 if( status < 0 ) status = errno;
32351 status = pthread_attr_setdetachstate(&attr, detach);
32353 if( status ) return status;
32354 status = pthread_create( &t, &attr, task, NULL );
32355 #if HAVE_PTHREADS < 7
32356 if( status < 0 ) status = errno;
32358 if( status ) return status;
32360 /* Draft 4 pthreads */
32361 status = pthread_create( &t, pthread_attr_default, task, NULL );
32362 if( status ) return errno;
32364 /* give thread a chance to complete */
32365 /* it should remain joinable and hence detachable */
32368 status = pthread_detach( &t );
32369 if( status ) return errno;
32372 #ifdef HAVE_LINUX_THREADS
32373 pthread_kill_other_threads_np();
32381 rm -f conftest$ac_exeext
32382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32383 (eval $ac_link) 2>&5
32385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32388 (eval $ac_try) 2>&5
32390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32391 (exit $ac_status); }; }; then
32392 ol_cv_pthread_lib_lpthread_woff=yes
32394 echo "$as_me: program exited with status $ac_status" >&5
32395 echo "$as_me: failed program was:" >&5
32396 sed 's/^/| /' conftest.$ac_ext >&5
32398 ( exit $ac_status )
32399 ol_cv_pthread_lib_lpthread_woff=no
32401 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32408 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
32409 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
32411 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
32412 ol_link_pthreads="-lpthread -Wl,-woff,85"
32413 ol_link_threads=posix
32418 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
32419 if test "$ol_link_threads" = no ; then
32421 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
32422 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
32423 if test "${ol_cv_pthread_lpthread+set}" = set; then
32424 echo $ECHO_N "(cached) $ECHO_C" >&6
32429 LIBS="-lpthread $LIBS"
32431 if test "$cross_compiling" = yes; then
32432 cat >conftest.$ac_ext <<_ACEOF
32435 cat confdefs.h >>conftest.$ac_ext
32436 cat >>conftest.$ac_ext <<_ACEOF
32437 /* end confdefs.h. */
32438 /* pthread test headers */
32439 #include <pthread.h>
32440 #if HAVE_PTHREADS < 7
32444 #define NULL (void*)0
32447 static void *task(p)
32450 return (void *) (p == NULL);
32457 /* pthread test function */
32458 #ifndef PTHREAD_CREATE_DETACHED
32459 #define PTHREAD_CREATE_DETACHED 1
32463 int detach = PTHREAD_CREATE_DETACHED;
32465 #if HAVE_PTHREADS > 4
32466 /* Final pthreads */
32467 pthread_attr_t attr;
32469 status = pthread_attr_init(&attr);
32470 if( status ) return status;
32472 #if HAVE_PTHREADS < 7
32473 status = pthread_attr_setdetachstate(&attr, &detach);
32474 if( status < 0 ) status = errno;
32476 status = pthread_attr_setdetachstate(&attr, detach);
32478 if( status ) return status;
32479 status = pthread_create( &t, &attr, task, NULL );
32480 #if HAVE_PTHREADS < 7
32481 if( status < 0 ) status = errno;
32483 if( status ) return status;
32485 /* Draft 4 pthreads */
32486 status = pthread_create( &t, pthread_attr_default, task, NULL );
32487 if( status ) return errno;
32489 /* give thread a chance to complete */
32490 /* it should remain joinable and hence detachable */
32493 status = pthread_detach( &t );
32494 if( status ) return errno;
32497 #ifdef HAVE_LINUX_THREADS
32498 pthread_kill_other_threads_np();
32507 rm -f conftest.$ac_objext conftest$ac_exeext
32508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32509 (eval $ac_link) 2>conftest.er1
32511 grep -v '^ *+' conftest.er1 >conftest.err
32513 cat conftest.err >&5
32514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32515 (exit $ac_status); } &&
32516 { ac_try='test -z "$ac_c_werror_flag"
32517 || test ! -s conftest.err'
32518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32519 (eval $ac_try) 2>&5
32521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32522 (exit $ac_status); }; } &&
32523 { ac_try='test -s conftest$ac_exeext'
32524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32525 (eval $ac_try) 2>&5
32527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32528 (exit $ac_status); }; }; then
32529 ol_cv_pthread_lpthread=yes
32531 echo "$as_me: failed program was:" >&5
32532 sed 's/^/| /' conftest.$ac_ext >&5
32534 ol_cv_pthread_lpthread=no
32536 rm -f conftest.err conftest.$ac_objext \
32537 conftest$ac_exeext conftest.$ac_ext
32539 cat >conftest.$ac_ext <<_ACEOF
32542 cat confdefs.h >>conftest.$ac_ext
32543 cat >>conftest.$ac_ext <<_ACEOF
32544 /* end confdefs.h. */
32545 /* pthread test headers */
32546 #include <pthread.h>
32547 #if HAVE_PTHREADS < 7
32551 #define NULL (void*)0
32554 static void *task(p)
32557 return (void *) (p == NULL);
32561 int main(argc, argv)
32566 /* pthread test function */
32567 #ifndef PTHREAD_CREATE_DETACHED
32568 #define PTHREAD_CREATE_DETACHED 1
32572 int detach = PTHREAD_CREATE_DETACHED;
32574 #if HAVE_PTHREADS > 4
32575 /* Final pthreads */
32576 pthread_attr_t attr;
32578 status = pthread_attr_init(&attr);
32579 if( status ) return status;
32581 #if HAVE_PTHREADS < 7
32582 status = pthread_attr_setdetachstate(&attr, &detach);
32583 if( status < 0 ) status = errno;
32585 status = pthread_attr_setdetachstate(&attr, detach);
32587 if( status ) return status;
32588 status = pthread_create( &t, &attr, task, NULL );
32589 #if HAVE_PTHREADS < 7
32590 if( status < 0 ) status = errno;
32592 if( status ) return status;
32594 /* Draft 4 pthreads */
32595 status = pthread_create( &t, pthread_attr_default, task, NULL );
32596 if( status ) return errno;
32598 /* give thread a chance to complete */
32599 /* it should remain joinable and hence detachable */
32602 status = pthread_detach( &t );
32603 if( status ) return errno;
32606 #ifdef HAVE_LINUX_THREADS
32607 pthread_kill_other_threads_np();
32615 rm -f conftest$ac_exeext
32616 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32617 (eval $ac_link) 2>&5
32619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32620 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32622 (eval $ac_try) 2>&5
32624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32625 (exit $ac_status); }; }; then
32626 ol_cv_pthread_lpthread=yes
32628 echo "$as_me: program exited with status $ac_status" >&5
32629 echo "$as_me: failed program was:" >&5
32630 sed 's/^/| /' conftest.$ac_ext >&5
32632 ( exit $ac_status )
32633 ol_cv_pthread_lpthread=no
32635 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32642 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
32643 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
32645 if test $ol_cv_pthread_lpthread = yes ; then
32646 ol_link_pthreads="-lpthread"
32647 ol_link_threads=posix
32651 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
32652 if test "$ol_link_threads" = no ; then
32654 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
32655 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
32656 if test "${ol_cv_pthread_lc_r+set}" = set; then
32657 echo $ECHO_N "(cached) $ECHO_C" >&6
32664 if test "$cross_compiling" = yes; then
32665 cat >conftest.$ac_ext <<_ACEOF
32668 cat confdefs.h >>conftest.$ac_ext
32669 cat >>conftest.$ac_ext <<_ACEOF
32670 /* end confdefs.h. */
32671 /* pthread test headers */
32672 #include <pthread.h>
32673 #if HAVE_PTHREADS < 7
32677 #define NULL (void*)0
32680 static void *task(p)
32683 return (void *) (p == NULL);
32690 /* pthread test function */
32691 #ifndef PTHREAD_CREATE_DETACHED
32692 #define PTHREAD_CREATE_DETACHED 1
32696 int detach = PTHREAD_CREATE_DETACHED;
32698 #if HAVE_PTHREADS > 4
32699 /* Final pthreads */
32700 pthread_attr_t attr;
32702 status = pthread_attr_init(&attr);
32703 if( status ) return status;
32705 #if HAVE_PTHREADS < 7
32706 status = pthread_attr_setdetachstate(&attr, &detach);
32707 if( status < 0 ) status = errno;
32709 status = pthread_attr_setdetachstate(&attr, detach);
32711 if( status ) return status;
32712 status = pthread_create( &t, &attr, task, NULL );
32713 #if HAVE_PTHREADS < 7
32714 if( status < 0 ) status = errno;
32716 if( status ) return status;
32718 /* Draft 4 pthreads */
32719 status = pthread_create( &t, pthread_attr_default, task, NULL );
32720 if( status ) return errno;
32722 /* give thread a chance to complete */
32723 /* it should remain joinable and hence detachable */
32726 status = pthread_detach( &t );
32727 if( status ) return errno;
32730 #ifdef HAVE_LINUX_THREADS
32731 pthread_kill_other_threads_np();
32740 rm -f conftest.$ac_objext conftest$ac_exeext
32741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32742 (eval $ac_link) 2>conftest.er1
32744 grep -v '^ *+' conftest.er1 >conftest.err
32746 cat conftest.err >&5
32747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32748 (exit $ac_status); } &&
32749 { ac_try='test -z "$ac_c_werror_flag"
32750 || test ! -s conftest.err'
32751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32752 (eval $ac_try) 2>&5
32754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32755 (exit $ac_status); }; } &&
32756 { ac_try='test -s conftest$ac_exeext'
32757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32758 (eval $ac_try) 2>&5
32760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32761 (exit $ac_status); }; }; then
32762 ol_cv_pthread_lc_r=yes
32764 echo "$as_me: failed program was:" >&5
32765 sed 's/^/| /' conftest.$ac_ext >&5
32767 ol_cv_pthread_lc_r=no
32769 rm -f conftest.err conftest.$ac_objext \
32770 conftest$ac_exeext conftest.$ac_ext
32772 cat >conftest.$ac_ext <<_ACEOF
32775 cat confdefs.h >>conftest.$ac_ext
32776 cat >>conftest.$ac_ext <<_ACEOF
32777 /* end confdefs.h. */
32778 /* pthread test headers */
32779 #include <pthread.h>
32780 #if HAVE_PTHREADS < 7
32784 #define NULL (void*)0
32787 static void *task(p)
32790 return (void *) (p == NULL);
32794 int main(argc, argv)
32799 /* pthread test function */
32800 #ifndef PTHREAD_CREATE_DETACHED
32801 #define PTHREAD_CREATE_DETACHED 1
32805 int detach = PTHREAD_CREATE_DETACHED;
32807 #if HAVE_PTHREADS > 4
32808 /* Final pthreads */
32809 pthread_attr_t attr;
32811 status = pthread_attr_init(&attr);
32812 if( status ) return status;
32814 #if HAVE_PTHREADS < 7
32815 status = pthread_attr_setdetachstate(&attr, &detach);
32816 if( status < 0 ) status = errno;
32818 status = pthread_attr_setdetachstate(&attr, detach);
32820 if( status ) return status;
32821 status = pthread_create( &t, &attr, task, NULL );
32822 #if HAVE_PTHREADS < 7
32823 if( status < 0 ) status = errno;
32825 if( status ) return status;
32827 /* Draft 4 pthreads */
32828 status = pthread_create( &t, pthread_attr_default, task, NULL );
32829 if( status ) return errno;
32831 /* give thread a chance to complete */
32832 /* it should remain joinable and hence detachable */
32835 status = pthread_detach( &t );
32836 if( status ) return errno;
32839 #ifdef HAVE_LINUX_THREADS
32840 pthread_kill_other_threads_np();
32848 rm -f conftest$ac_exeext
32849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32850 (eval $ac_link) 2>&5
32852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32853 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32855 (eval $ac_try) 2>&5
32857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32858 (exit $ac_status); }; }; then
32859 ol_cv_pthread_lc_r=yes
32861 echo "$as_me: program exited with status $ac_status" >&5
32862 echo "$as_me: failed program was:" >&5
32863 sed 's/^/| /' conftest.$ac_ext >&5
32865 ( exit $ac_status )
32866 ol_cv_pthread_lc_r=no
32868 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32875 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
32876 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
32878 if test $ol_cv_pthread_lc_r = yes ; then
32879 ol_link_pthreads="-lc_r"
32880 ol_link_threads=posix
32885 # Pthread try link: -threads (ol_cv_pthread_threads)
32886 if test "$ol_link_threads" = no ; then
32888 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
32889 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
32890 if test "${ol_cv_pthread_threads+set}" = set; then
32891 echo $ECHO_N "(cached) $ECHO_C" >&6
32896 LIBS="-threads $LIBS"
32898 if test "$cross_compiling" = yes; then
32899 cat >conftest.$ac_ext <<_ACEOF
32902 cat confdefs.h >>conftest.$ac_ext
32903 cat >>conftest.$ac_ext <<_ACEOF
32904 /* end confdefs.h. */
32905 /* pthread test headers */
32906 #include <pthread.h>
32907 #if HAVE_PTHREADS < 7
32911 #define NULL (void*)0
32914 static void *task(p)
32917 return (void *) (p == NULL);
32924 /* pthread test function */
32925 #ifndef PTHREAD_CREATE_DETACHED
32926 #define PTHREAD_CREATE_DETACHED 1
32930 int detach = PTHREAD_CREATE_DETACHED;
32932 #if HAVE_PTHREADS > 4
32933 /* Final pthreads */
32934 pthread_attr_t attr;
32936 status = pthread_attr_init(&attr);
32937 if( status ) return status;
32939 #if HAVE_PTHREADS < 7
32940 status = pthread_attr_setdetachstate(&attr, &detach);
32941 if( status < 0 ) status = errno;
32943 status = pthread_attr_setdetachstate(&attr, detach);
32945 if( status ) return status;
32946 status = pthread_create( &t, &attr, task, NULL );
32947 #if HAVE_PTHREADS < 7
32948 if( status < 0 ) status = errno;
32950 if( status ) return status;
32952 /* Draft 4 pthreads */
32953 status = pthread_create( &t, pthread_attr_default, task, NULL );
32954 if( status ) return errno;
32956 /* give thread a chance to complete */
32957 /* it should remain joinable and hence detachable */
32960 status = pthread_detach( &t );
32961 if( status ) return errno;
32964 #ifdef HAVE_LINUX_THREADS
32965 pthread_kill_other_threads_np();
32974 rm -f conftest.$ac_objext conftest$ac_exeext
32975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32976 (eval $ac_link) 2>conftest.er1
32978 grep -v '^ *+' conftest.er1 >conftest.err
32980 cat conftest.err >&5
32981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982 (exit $ac_status); } &&
32983 { ac_try='test -z "$ac_c_werror_flag"
32984 || test ! -s conftest.err'
32985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32986 (eval $ac_try) 2>&5
32988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32989 (exit $ac_status); }; } &&
32990 { ac_try='test -s conftest$ac_exeext'
32991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32992 (eval $ac_try) 2>&5
32994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32995 (exit $ac_status); }; }; then
32996 ol_cv_pthread_threads=yes
32998 echo "$as_me: failed program was:" >&5
32999 sed 's/^/| /' conftest.$ac_ext >&5
33001 ol_cv_pthread_threads=no
33003 rm -f conftest.err conftest.$ac_objext \
33004 conftest$ac_exeext conftest.$ac_ext
33006 cat >conftest.$ac_ext <<_ACEOF
33009 cat confdefs.h >>conftest.$ac_ext
33010 cat >>conftest.$ac_ext <<_ACEOF
33011 /* end confdefs.h. */
33012 /* pthread test headers */
33013 #include <pthread.h>
33014 #if HAVE_PTHREADS < 7
33018 #define NULL (void*)0
33021 static void *task(p)
33024 return (void *) (p == NULL);
33028 int main(argc, argv)
33033 /* pthread test function */
33034 #ifndef PTHREAD_CREATE_DETACHED
33035 #define PTHREAD_CREATE_DETACHED 1
33039 int detach = PTHREAD_CREATE_DETACHED;
33041 #if HAVE_PTHREADS > 4
33042 /* Final pthreads */
33043 pthread_attr_t attr;
33045 status = pthread_attr_init(&attr);
33046 if( status ) return status;
33048 #if HAVE_PTHREADS < 7
33049 status = pthread_attr_setdetachstate(&attr, &detach);
33050 if( status < 0 ) status = errno;
33052 status = pthread_attr_setdetachstate(&attr, detach);
33054 if( status ) return status;
33055 status = pthread_create( &t, &attr, task, NULL );
33056 #if HAVE_PTHREADS < 7
33057 if( status < 0 ) status = errno;
33059 if( status ) return status;
33061 /* Draft 4 pthreads */
33062 status = pthread_create( &t, pthread_attr_default, task, NULL );
33063 if( status ) return errno;
33065 /* give thread a chance to complete */
33066 /* it should remain joinable and hence detachable */
33069 status = pthread_detach( &t );
33070 if( status ) return errno;
33073 #ifdef HAVE_LINUX_THREADS
33074 pthread_kill_other_threads_np();
33082 rm -f conftest$ac_exeext
33083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33084 (eval $ac_link) 2>&5
33086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33089 (eval $ac_try) 2>&5
33091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33092 (exit $ac_status); }; }; then
33093 ol_cv_pthread_threads=yes
33095 echo "$as_me: program exited with status $ac_status" >&5
33096 echo "$as_me: failed program was:" >&5
33097 sed 's/^/| /' conftest.$ac_ext >&5
33099 ( exit $ac_status )
33100 ol_cv_pthread_threads=no
33102 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33109 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
33110 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
33112 if test $ol_cv_pthread_threads = yes ; then
33113 ol_link_pthreads="-threads"
33114 ol_link_threads=posix
33119 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
33120 if test "$ol_link_threads" = no ; then
33121 # try -lpthreads -lmach -lexc -lc_r
33122 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
33123 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
33124 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
33125 echo $ECHO_N "(cached) $ECHO_C" >&6
33130 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
33132 if test "$cross_compiling" = yes; then
33133 cat >conftest.$ac_ext <<_ACEOF
33136 cat confdefs.h >>conftest.$ac_ext
33137 cat >>conftest.$ac_ext <<_ACEOF
33138 /* end confdefs.h. */
33139 /* pthread test headers */
33140 #include <pthread.h>
33141 #if HAVE_PTHREADS < 7
33145 #define NULL (void*)0
33148 static void *task(p)
33151 return (void *) (p == NULL);
33158 /* pthread test function */
33159 #ifndef PTHREAD_CREATE_DETACHED
33160 #define PTHREAD_CREATE_DETACHED 1
33164 int detach = PTHREAD_CREATE_DETACHED;
33166 #if HAVE_PTHREADS > 4
33167 /* Final pthreads */
33168 pthread_attr_t attr;
33170 status = pthread_attr_init(&attr);
33171 if( status ) return status;
33173 #if HAVE_PTHREADS < 7
33174 status = pthread_attr_setdetachstate(&attr, &detach);
33175 if( status < 0 ) status = errno;
33177 status = pthread_attr_setdetachstate(&attr, detach);
33179 if( status ) return status;
33180 status = pthread_create( &t, &attr, task, NULL );
33181 #if HAVE_PTHREADS < 7
33182 if( status < 0 ) status = errno;
33184 if( status ) return status;
33186 /* Draft 4 pthreads */
33187 status = pthread_create( &t, pthread_attr_default, task, NULL );
33188 if( status ) return errno;
33190 /* give thread a chance to complete */
33191 /* it should remain joinable and hence detachable */
33194 status = pthread_detach( &t );
33195 if( status ) return errno;
33198 #ifdef HAVE_LINUX_THREADS
33199 pthread_kill_other_threads_np();
33208 rm -f conftest.$ac_objext conftest$ac_exeext
33209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33210 (eval $ac_link) 2>conftest.er1
33212 grep -v '^ *+' conftest.er1 >conftest.err
33214 cat conftest.err >&5
33215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33216 (exit $ac_status); } &&
33217 { ac_try='test -z "$ac_c_werror_flag"
33218 || test ! -s conftest.err'
33219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33220 (eval $ac_try) 2>&5
33222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33223 (exit $ac_status); }; } &&
33224 { ac_try='test -s conftest$ac_exeext'
33225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33226 (eval $ac_try) 2>&5
33228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33229 (exit $ac_status); }; }; then
33230 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33232 echo "$as_me: failed program was:" >&5
33233 sed 's/^/| /' conftest.$ac_ext >&5
33235 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33237 rm -f conftest.err conftest.$ac_objext \
33238 conftest$ac_exeext conftest.$ac_ext
33240 cat >conftest.$ac_ext <<_ACEOF
33243 cat confdefs.h >>conftest.$ac_ext
33244 cat >>conftest.$ac_ext <<_ACEOF
33245 /* end confdefs.h. */
33246 /* pthread test headers */
33247 #include <pthread.h>
33248 #if HAVE_PTHREADS < 7
33252 #define NULL (void*)0
33255 static void *task(p)
33258 return (void *) (p == NULL);
33262 int main(argc, argv)
33267 /* pthread test function */
33268 #ifndef PTHREAD_CREATE_DETACHED
33269 #define PTHREAD_CREATE_DETACHED 1
33273 int detach = PTHREAD_CREATE_DETACHED;
33275 #if HAVE_PTHREADS > 4
33276 /* Final pthreads */
33277 pthread_attr_t attr;
33279 status = pthread_attr_init(&attr);
33280 if( status ) return status;
33282 #if HAVE_PTHREADS < 7
33283 status = pthread_attr_setdetachstate(&attr, &detach);
33284 if( status < 0 ) status = errno;
33286 status = pthread_attr_setdetachstate(&attr, detach);
33288 if( status ) return status;
33289 status = pthread_create( &t, &attr, task, NULL );
33290 #if HAVE_PTHREADS < 7
33291 if( status < 0 ) status = errno;
33293 if( status ) return status;
33295 /* Draft 4 pthreads */
33296 status = pthread_create( &t, pthread_attr_default, task, NULL );
33297 if( status ) return errno;
33299 /* give thread a chance to complete */
33300 /* it should remain joinable and hence detachable */
33303 status = pthread_detach( &t );
33304 if( status ) return errno;
33307 #ifdef HAVE_LINUX_THREADS
33308 pthread_kill_other_threads_np();
33316 rm -f conftest$ac_exeext
33317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33318 (eval $ac_link) 2>&5
33320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33321 (exit $ac_status); } && { ac_try='./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_lpthreads_lmach_lexc_lc_r=yes
33329 echo "$as_me: program exited with status $ac_status" >&5
33330 echo "$as_me: failed program was:" >&5
33331 sed 's/^/| /' conftest.$ac_ext >&5
33333 ( exit $ac_status )
33334 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33336 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33343 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
33344 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
33346 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
33347 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
33348 ol_link_threads=posix
33352 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
33353 if test "$ol_link_threads" = no ; then
33354 # try -lpthreads -lmach -lexc
33355 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
33356 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
33357 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
33358 echo $ECHO_N "(cached) $ECHO_C" >&6
33363 LIBS="-lpthreads -lmach -lexc $LIBS"
33365 if test "$cross_compiling" = yes; then
33366 cat >conftest.$ac_ext <<_ACEOF
33369 cat confdefs.h >>conftest.$ac_ext
33370 cat >>conftest.$ac_ext <<_ACEOF
33371 /* end confdefs.h. */
33372 /* pthread test headers */
33373 #include <pthread.h>
33374 #if HAVE_PTHREADS < 7
33378 #define NULL (void*)0
33381 static void *task(p)
33384 return (void *) (p == NULL);
33391 /* pthread test function */
33392 #ifndef PTHREAD_CREATE_DETACHED
33393 #define PTHREAD_CREATE_DETACHED 1
33397 int detach = PTHREAD_CREATE_DETACHED;
33399 #if HAVE_PTHREADS > 4
33400 /* Final pthreads */
33401 pthread_attr_t attr;
33403 status = pthread_attr_init(&attr);
33404 if( status ) return status;
33406 #if HAVE_PTHREADS < 7
33407 status = pthread_attr_setdetachstate(&attr, &detach);
33408 if( status < 0 ) status = errno;
33410 status = pthread_attr_setdetachstate(&attr, detach);
33412 if( status ) return status;
33413 status = pthread_create( &t, &attr, task, NULL );
33414 #if HAVE_PTHREADS < 7
33415 if( status < 0 ) status = errno;
33417 if( status ) return status;
33419 /* Draft 4 pthreads */
33420 status = pthread_create( &t, pthread_attr_default, task, NULL );
33421 if( status ) return errno;
33423 /* give thread a chance to complete */
33424 /* it should remain joinable and hence detachable */
33427 status = pthread_detach( &t );
33428 if( status ) return errno;
33431 #ifdef HAVE_LINUX_THREADS
33432 pthread_kill_other_threads_np();
33441 rm -f conftest.$ac_objext conftest$ac_exeext
33442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33443 (eval $ac_link) 2>conftest.er1
33445 grep -v '^ *+' conftest.er1 >conftest.err
33447 cat conftest.err >&5
33448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33449 (exit $ac_status); } &&
33450 { ac_try='test -z "$ac_c_werror_flag"
33451 || test ! -s conftest.err'
33452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33453 (eval $ac_try) 2>&5
33455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33456 (exit $ac_status); }; } &&
33457 { ac_try='test -s conftest$ac_exeext'
33458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33459 (eval $ac_try) 2>&5
33461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33462 (exit $ac_status); }; }; then
33463 ol_cv_pthread_lpthreads_lmach_lexc=yes
33465 echo "$as_me: failed program was:" >&5
33466 sed 's/^/| /' conftest.$ac_ext >&5
33468 ol_cv_pthread_lpthreads_lmach_lexc=no
33470 rm -f conftest.err conftest.$ac_objext \
33471 conftest$ac_exeext conftest.$ac_ext
33473 cat >conftest.$ac_ext <<_ACEOF
33476 cat confdefs.h >>conftest.$ac_ext
33477 cat >>conftest.$ac_ext <<_ACEOF
33478 /* end confdefs.h. */
33479 /* pthread test headers */
33480 #include <pthread.h>
33481 #if HAVE_PTHREADS < 7
33485 #define NULL (void*)0
33488 static void *task(p)
33491 return (void *) (p == NULL);
33495 int main(argc, argv)
33500 /* pthread test function */
33501 #ifndef PTHREAD_CREATE_DETACHED
33502 #define PTHREAD_CREATE_DETACHED 1
33506 int detach = PTHREAD_CREATE_DETACHED;
33508 #if HAVE_PTHREADS > 4
33509 /* Final pthreads */
33510 pthread_attr_t attr;
33512 status = pthread_attr_init(&attr);
33513 if( status ) return status;
33515 #if HAVE_PTHREADS < 7
33516 status = pthread_attr_setdetachstate(&attr, &detach);
33517 if( status < 0 ) status = errno;
33519 status = pthread_attr_setdetachstate(&attr, detach);
33521 if( status ) return status;
33522 status = pthread_create( &t, &attr, task, NULL );
33523 #if HAVE_PTHREADS < 7
33524 if( status < 0 ) status = errno;
33526 if( status ) return status;
33528 /* Draft 4 pthreads */
33529 status = pthread_create( &t, pthread_attr_default, task, NULL );
33530 if( status ) return errno;
33532 /* give thread a chance to complete */
33533 /* it should remain joinable and hence detachable */
33536 status = pthread_detach( &t );
33537 if( status ) return errno;
33540 #ifdef HAVE_LINUX_THREADS
33541 pthread_kill_other_threads_np();
33549 rm -f conftest$ac_exeext
33550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33551 (eval $ac_link) 2>&5
33553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33554 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33556 (eval $ac_try) 2>&5
33558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33559 (exit $ac_status); }; }; then
33560 ol_cv_pthread_lpthreads_lmach_lexc=yes
33562 echo "$as_me: program exited with status $ac_status" >&5
33563 echo "$as_me: failed program was:" >&5
33564 sed 's/^/| /' conftest.$ac_ext >&5
33566 ( exit $ac_status )
33567 ol_cv_pthread_lpthreads_lmach_lexc=no
33569 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33576 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
33577 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
33579 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
33580 ol_link_pthreads="-lpthreads -lmach -lexc"
33581 ol_link_threads=posix
33585 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
33586 if test "$ol_link_threads" = no ; then
33587 # try -lpthreads -lexc
33588 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
33589 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
33590 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
33591 echo $ECHO_N "(cached) $ECHO_C" >&6
33596 LIBS="-lpthreads -lexc $LIBS"
33598 if test "$cross_compiling" = yes; then
33599 cat >conftest.$ac_ext <<_ACEOF
33602 cat confdefs.h >>conftest.$ac_ext
33603 cat >>conftest.$ac_ext <<_ACEOF
33604 /* end confdefs.h. */
33605 /* pthread test headers */
33606 #include <pthread.h>
33607 #if HAVE_PTHREADS < 7
33611 #define NULL (void*)0
33614 static void *task(p)
33617 return (void *) (p == NULL);
33624 /* pthread test function */
33625 #ifndef PTHREAD_CREATE_DETACHED
33626 #define PTHREAD_CREATE_DETACHED 1
33630 int detach = PTHREAD_CREATE_DETACHED;
33632 #if HAVE_PTHREADS > 4
33633 /* Final pthreads */
33634 pthread_attr_t attr;
33636 status = pthread_attr_init(&attr);
33637 if( status ) return status;
33639 #if HAVE_PTHREADS < 7
33640 status = pthread_attr_setdetachstate(&attr, &detach);
33641 if( status < 0 ) status = errno;
33643 status = pthread_attr_setdetachstate(&attr, detach);
33645 if( status ) return status;
33646 status = pthread_create( &t, &attr, task, NULL );
33647 #if HAVE_PTHREADS < 7
33648 if( status < 0 ) status = errno;
33650 if( status ) return status;
33652 /* Draft 4 pthreads */
33653 status = pthread_create( &t, pthread_attr_default, task, NULL );
33654 if( status ) return errno;
33656 /* give thread a chance to complete */
33657 /* it should remain joinable and hence detachable */
33660 status = pthread_detach( &t );
33661 if( status ) return errno;
33664 #ifdef HAVE_LINUX_THREADS
33665 pthread_kill_other_threads_np();
33674 rm -f conftest.$ac_objext conftest$ac_exeext
33675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33676 (eval $ac_link) 2>conftest.er1
33678 grep -v '^ *+' conftest.er1 >conftest.err
33680 cat conftest.err >&5
33681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33682 (exit $ac_status); } &&
33683 { ac_try='test -z "$ac_c_werror_flag"
33684 || test ! -s conftest.err'
33685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33686 (eval $ac_try) 2>&5
33688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33689 (exit $ac_status); }; } &&
33690 { ac_try='test -s conftest$ac_exeext'
33691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33692 (eval $ac_try) 2>&5
33694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33695 (exit $ac_status); }; }; then
33696 ol_cv_pthread_lpthreads_lexc=yes
33698 echo "$as_me: failed program was:" >&5
33699 sed 's/^/| /' conftest.$ac_ext >&5
33701 ol_cv_pthread_lpthreads_lexc=no
33703 rm -f conftest.err conftest.$ac_objext \
33704 conftest$ac_exeext conftest.$ac_ext
33706 cat >conftest.$ac_ext <<_ACEOF
33709 cat confdefs.h >>conftest.$ac_ext
33710 cat >>conftest.$ac_ext <<_ACEOF
33711 /* end confdefs.h. */
33712 /* pthread test headers */
33713 #include <pthread.h>
33714 #if HAVE_PTHREADS < 7
33718 #define NULL (void*)0
33721 static void *task(p)
33724 return (void *) (p == NULL);
33728 int main(argc, argv)
33733 /* pthread test function */
33734 #ifndef PTHREAD_CREATE_DETACHED
33735 #define PTHREAD_CREATE_DETACHED 1
33739 int detach = PTHREAD_CREATE_DETACHED;
33741 #if HAVE_PTHREADS > 4
33742 /* Final pthreads */
33743 pthread_attr_t attr;
33745 status = pthread_attr_init(&attr);
33746 if( status ) return status;
33748 #if HAVE_PTHREADS < 7
33749 status = pthread_attr_setdetachstate(&attr, &detach);
33750 if( status < 0 ) status = errno;
33752 status = pthread_attr_setdetachstate(&attr, detach);
33754 if( status ) return status;
33755 status = pthread_create( &t, &attr, task, NULL );
33756 #if HAVE_PTHREADS < 7
33757 if( status < 0 ) status = errno;
33759 if( status ) return status;
33761 /* Draft 4 pthreads */
33762 status = pthread_create( &t, pthread_attr_default, task, NULL );
33763 if( status ) return errno;
33765 /* give thread a chance to complete */
33766 /* it should remain joinable and hence detachable */
33769 status = pthread_detach( &t );
33770 if( status ) return errno;
33773 #ifdef HAVE_LINUX_THREADS
33774 pthread_kill_other_threads_np();
33782 rm -f conftest$ac_exeext
33783 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33784 (eval $ac_link) 2>&5
33786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33787 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33789 (eval $ac_try) 2>&5
33791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33792 (exit $ac_status); }; }; then
33793 ol_cv_pthread_lpthreads_lexc=yes
33795 echo "$as_me: program exited with status $ac_status" >&5
33796 echo "$as_me: failed program was:" >&5
33797 sed 's/^/| /' conftest.$ac_ext >&5
33799 ( exit $ac_status )
33800 ol_cv_pthread_lpthreads_lexc=no
33802 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33809 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
33810 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
33812 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
33813 ol_link_pthreads="-lpthreads -lexc"
33814 ol_link_threads=posix
33819 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
33820 if test "$ol_link_threads" = no ; then
33822 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
33823 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
33824 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
33825 echo $ECHO_N "(cached) $ECHO_C" >&6
33830 LIBS="-lpthreads $LIBS"
33832 if test "$cross_compiling" = yes; then
33833 cat >conftest.$ac_ext <<_ACEOF
33836 cat confdefs.h >>conftest.$ac_ext
33837 cat >>conftest.$ac_ext <<_ACEOF
33838 /* end confdefs.h. */
33839 /* pthread test headers */
33840 #include <pthread.h>
33841 #if HAVE_PTHREADS < 7
33845 #define NULL (void*)0
33848 static void *task(p)
33851 return (void *) (p == NULL);
33858 /* pthread test function */
33859 #ifndef PTHREAD_CREATE_DETACHED
33860 #define PTHREAD_CREATE_DETACHED 1
33864 int detach = PTHREAD_CREATE_DETACHED;
33866 #if HAVE_PTHREADS > 4
33867 /* Final pthreads */
33868 pthread_attr_t attr;
33870 status = pthread_attr_init(&attr);
33871 if( status ) return status;
33873 #if HAVE_PTHREADS < 7
33874 status = pthread_attr_setdetachstate(&attr, &detach);
33875 if( status < 0 ) status = errno;
33877 status = pthread_attr_setdetachstate(&attr, detach);
33879 if( status ) return status;
33880 status = pthread_create( &t, &attr, task, NULL );
33881 #if HAVE_PTHREADS < 7
33882 if( status < 0 ) status = errno;
33884 if( status ) return status;
33886 /* Draft 4 pthreads */
33887 status = pthread_create( &t, pthread_attr_default, task, NULL );
33888 if( status ) return errno;
33890 /* give thread a chance to complete */
33891 /* it should remain joinable and hence detachable */
33894 status = pthread_detach( &t );
33895 if( status ) return errno;
33898 #ifdef HAVE_LINUX_THREADS
33899 pthread_kill_other_threads_np();
33908 rm -f conftest.$ac_objext conftest$ac_exeext
33909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33910 (eval $ac_link) 2>conftest.er1
33912 grep -v '^ *+' conftest.er1 >conftest.err
33914 cat conftest.err >&5
33915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33916 (exit $ac_status); } &&
33917 { ac_try='test -z "$ac_c_werror_flag"
33918 || test ! -s conftest.err'
33919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33920 (eval $ac_try) 2>&5
33922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33923 (exit $ac_status); }; } &&
33924 { ac_try='test -s conftest$ac_exeext'
33925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33926 (eval $ac_try) 2>&5
33928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33929 (exit $ac_status); }; }; then
33930 ol_cv_pthread_lib_lpthreads=yes
33932 echo "$as_me: failed program was:" >&5
33933 sed 's/^/| /' conftest.$ac_ext >&5
33935 ol_cv_pthread_lib_lpthreads=no
33937 rm -f conftest.err conftest.$ac_objext \
33938 conftest$ac_exeext conftest.$ac_ext
33940 cat >conftest.$ac_ext <<_ACEOF
33943 cat confdefs.h >>conftest.$ac_ext
33944 cat >>conftest.$ac_ext <<_ACEOF
33945 /* end confdefs.h. */
33946 /* pthread test headers */
33947 #include <pthread.h>
33948 #if HAVE_PTHREADS < 7
33952 #define NULL (void*)0
33955 static void *task(p)
33958 return (void *) (p == NULL);
33962 int main(argc, argv)
33967 /* pthread test function */
33968 #ifndef PTHREAD_CREATE_DETACHED
33969 #define PTHREAD_CREATE_DETACHED 1
33973 int detach = PTHREAD_CREATE_DETACHED;
33975 #if HAVE_PTHREADS > 4
33976 /* Final pthreads */
33977 pthread_attr_t attr;
33979 status = pthread_attr_init(&attr);
33980 if( status ) return status;
33982 #if HAVE_PTHREADS < 7
33983 status = pthread_attr_setdetachstate(&attr, &detach);
33984 if( status < 0 ) status = errno;
33986 status = pthread_attr_setdetachstate(&attr, detach);
33988 if( status ) return status;
33989 status = pthread_create( &t, &attr, task, NULL );
33990 #if HAVE_PTHREADS < 7
33991 if( status < 0 ) status = errno;
33993 if( status ) return status;
33995 /* Draft 4 pthreads */
33996 status = pthread_create( &t, pthread_attr_default, task, NULL );
33997 if( status ) return errno;
33999 /* give thread a chance to complete */
34000 /* it should remain joinable and hence detachable */
34003 status = pthread_detach( &t );
34004 if( status ) return errno;
34007 #ifdef HAVE_LINUX_THREADS
34008 pthread_kill_other_threads_np();
34016 rm -f conftest$ac_exeext
34017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34018 (eval $ac_link) 2>&5
34020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34021 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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); }; }; then
34027 ol_cv_pthread_lib_lpthreads=yes
34029 echo "$as_me: program exited with status $ac_status" >&5
34030 echo "$as_me: failed program was:" >&5
34031 sed 's/^/| /' conftest.$ac_ext >&5
34033 ( exit $ac_status )
34034 ol_cv_pthread_lib_lpthreads=no
34036 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34043 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
34044 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
34046 if test $ol_cv_pthread_lib_lpthreads = yes ; then
34047 ol_link_pthreads="-lpthreads"
34048 ol_link_threads=posix
34053 if test $ol_link_threads != no ; then
34054 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
34056 save_CPPFLAGS="$CPPFLAGS"
34058 LIBS="$LTHREAD_LIBS $LIBS"
34063 for ac_func in sched_yield pthread_yield thr_yield
34065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34066 echo "$as_me:$LINENO: checking for $ac_func" >&5
34067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34068 if eval "test \"\${$as_ac_var+set}\" = set"; then
34069 echo $ECHO_N "(cached) $ECHO_C" >&6
34071 cat >conftest.$ac_ext <<_ACEOF
34074 cat confdefs.h >>conftest.$ac_ext
34075 cat >>conftest.$ac_ext <<_ACEOF
34076 /* end confdefs.h. */
34077 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34079 #define $ac_func innocuous_$ac_func
34081 /* System header to define __stub macros and hopefully few prototypes,
34082 which can conflict with char $ac_func (); below.
34083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34084 <limits.h> exists even on freestanding compilers. */
34087 # include <limits.h>
34089 # include <assert.h>
34094 /* Override any gcc2 internal prototype to avoid an error. */
34099 /* We use char because int might match the return type of a gcc2
34100 builtin and then its argument prototype would still apply. */
34102 /* The GNU C library defines this for functions which it implements
34103 to always fail with ENOSYS. Some functions are actually named
34104 something starting with __ and the normal name is an alias. */
34105 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34108 char (*f) () = $ac_func;
34117 return f != $ac_func;
34122 rm -f conftest.$ac_objext conftest$ac_exeext
34123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34124 (eval $ac_link) 2>conftest.er1
34126 grep -v '^ *+' conftest.er1 >conftest.err
34128 cat conftest.err >&5
34129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34130 (exit $ac_status); } &&
34131 { ac_try='test -z "$ac_c_werror_flag"
34132 || test ! -s conftest.err'
34133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34134 (eval $ac_try) 2>&5
34136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34137 (exit $ac_status); }; } &&
34138 { ac_try='test -s conftest$ac_exeext'
34139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34140 (eval $ac_try) 2>&5
34142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34143 (exit $ac_status); }; }; then
34144 eval "$as_ac_var=yes"
34146 echo "$as_me: failed program was:" >&5
34147 sed 's/^/| /' conftest.$ac_ext >&5
34149 eval "$as_ac_var=no"
34151 rm -f conftest.err conftest.$ac_objext \
34152 conftest$ac_exeext conftest.$ac_ext
34154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34155 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34156 if test `eval echo '${'$as_ac_var'}'` = yes; then
34157 cat >>confdefs.h <<_ACEOF
34158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34165 if test $ac_cv_func_sched_yield = no -a \
34166 $ac_cv_func_pthread_yield = no -a \
34167 $ac_cv_func_thr_yield = no ; then
34168 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
34169 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
34170 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
34171 echo $ECHO_N "(cached) $ECHO_C" >&6
34173 ac_check_lib_save_LIBS=$LIBS
34175 cat >conftest.$ac_ext <<_ACEOF
34178 cat confdefs.h >>conftest.$ac_ext
34179 cat >>conftest.$ac_ext <<_ACEOF
34180 /* end confdefs.h. */
34182 /* Override any gcc2 internal prototype to avoid an error. */
34186 /* We use char because int might match the return type of a gcc2
34187 builtin and then its argument prototype would still apply. */
34188 char sched_yield ();
34197 rm -f conftest.$ac_objext conftest$ac_exeext
34198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34199 (eval $ac_link) 2>conftest.er1
34201 grep -v '^ *+' conftest.er1 >conftest.err
34203 cat conftest.err >&5
34204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34205 (exit $ac_status); } &&
34206 { ac_try='test -z "$ac_c_werror_flag"
34207 || test ! -s conftest.err'
34208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34209 (eval $ac_try) 2>&5
34211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34212 (exit $ac_status); }; } &&
34213 { ac_try='test -s conftest$ac_exeext'
34214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34215 (eval $ac_try) 2>&5
34217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34218 (exit $ac_status); }; }; then
34219 ac_cv_lib_rt_sched_yield=yes
34221 echo "$as_me: failed program was:" >&5
34222 sed 's/^/| /' conftest.$ac_ext >&5
34224 ac_cv_lib_rt_sched_yield=no
34226 rm -f conftest.err conftest.$ac_objext \
34227 conftest$ac_exeext conftest.$ac_ext
34228 LIBS=$ac_check_lib_save_LIBS
34230 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
34231 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
34232 if test $ac_cv_lib_rt_sched_yield = yes; then
34233 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
34235 cat >>confdefs.h <<\_ACEOF
34236 #define HAVE_SCHED_YIELD 1
34239 ac_cv_func_sched_yield=yes
34241 ac_cv_func_sched_yield=no
34245 if test $ac_cv_func_sched_yield = no -a \
34246 $ac_cv_func_pthread_yield = no -a \
34247 "$ac_cv_func_thr_yield" = no ; then
34248 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
34249 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
34254 for ac_func in pthread_kill pthread_rwlock_destroy
34256 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34257 echo "$as_me:$LINENO: checking for $ac_func" >&5
34258 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34259 if eval "test \"\${$as_ac_var+set}\" = set"; then
34260 echo $ECHO_N "(cached) $ECHO_C" >&6
34262 cat >conftest.$ac_ext <<_ACEOF
34265 cat confdefs.h >>conftest.$ac_ext
34266 cat >>conftest.$ac_ext <<_ACEOF
34267 /* end confdefs.h. */
34268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34270 #define $ac_func innocuous_$ac_func
34272 /* System header to define __stub macros and hopefully few prototypes,
34273 which can conflict with char $ac_func (); below.
34274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34275 <limits.h> exists even on freestanding compilers. */
34278 # include <limits.h>
34280 # include <assert.h>
34285 /* Override any gcc2 internal prototype to avoid an error. */
34290 /* We use char because int might match the return type of a gcc2
34291 builtin and then its argument prototype would still apply. */
34293 /* The GNU C library defines this for functions which it implements
34294 to always fail with ENOSYS. Some functions are actually named
34295 something starting with __ and the normal name is an alias. */
34296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34299 char (*f) () = $ac_func;
34308 return f != $ac_func;
34313 rm -f conftest.$ac_objext conftest$ac_exeext
34314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34315 (eval $ac_link) 2>conftest.er1
34317 grep -v '^ *+' conftest.er1 >conftest.err
34319 cat conftest.err >&5
34320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34321 (exit $ac_status); } &&
34322 { ac_try='test -z "$ac_c_werror_flag"
34323 || test ! -s conftest.err'
34324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34325 (eval $ac_try) 2>&5
34327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34328 (exit $ac_status); }; } &&
34329 { ac_try='test -s conftest$ac_exeext'
34330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34331 (eval $ac_try) 2>&5
34333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34334 (exit $ac_status); }; }; then
34335 eval "$as_ac_var=yes"
34337 echo "$as_me: failed program was:" >&5
34338 sed 's/^/| /' conftest.$ac_ext >&5
34340 eval "$as_ac_var=no"
34342 rm -f conftest.err conftest.$ac_objext \
34343 conftest$ac_exeext conftest.$ac_ext
34345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34346 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34347 if test `eval echo '${'$as_ac_var'}'` = yes; then
34348 cat >>confdefs.h <<_ACEOF
34349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34356 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
34357 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
34358 if test "${ol_cv_func_pthread_detach+set}" = set; then
34359 echo $ECHO_N "(cached) $ECHO_C" >&6
34362 cat >conftest.$ac_ext <<_ACEOF
34365 cat confdefs.h >>conftest.$ac_ext
34366 cat >>conftest.$ac_ext <<_ACEOF
34367 /* end confdefs.h. */
34369 #include <pthread.h>
34371 #define NULL (void*)0
34377 pthread_detach(NULL);
34382 rm -f conftest.$ac_objext conftest$ac_exeext
34383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34384 (eval $ac_link) 2>conftest.er1
34386 grep -v '^ *+' conftest.er1 >conftest.err
34388 cat conftest.err >&5
34389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34390 (exit $ac_status); } &&
34391 { ac_try='test -z "$ac_c_werror_flag"
34392 || test ! -s conftest.err'
34393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34394 (eval $ac_try) 2>&5
34396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34397 (exit $ac_status); }; } &&
34398 { ac_try='test -s conftest$ac_exeext'
34399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34400 (eval $ac_try) 2>&5
34402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34403 (exit $ac_status); }; }; then
34404 ol_cv_func_pthread_detach=yes
34406 echo "$as_me: failed program was:" >&5
34407 sed 's/^/| /' conftest.$ac_ext >&5
34409 ol_cv_func_pthread_detach=no
34411 rm -f conftest.err conftest.$ac_objext \
34412 conftest$ac_exeext conftest.$ac_ext
34415 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
34416 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
34418 if test $ol_cv_func_pthread_detach = no ; then
34419 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
34420 echo "$as_me: error: could not locate pthread_detach()" >&2;}
34421 { (exit 1); exit 1; }; }
34425 cat >>confdefs.h <<\_ACEOF
34426 #define HAVE_PTHREAD_DETACH 1
34435 pthread_setconcurrency \
34436 pthread_getconcurrency \
34437 thr_setconcurrency \
34438 thr_getconcurrency \
34441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34442 echo "$as_me:$LINENO: checking for $ac_func" >&5
34443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34444 if eval "test \"\${$as_ac_var+set}\" = set"; then
34445 echo $ECHO_N "(cached) $ECHO_C" >&6
34447 cat >conftest.$ac_ext <<_ACEOF
34450 cat confdefs.h >>conftest.$ac_ext
34451 cat >>conftest.$ac_ext <<_ACEOF
34452 /* end confdefs.h. */
34453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34455 #define $ac_func innocuous_$ac_func
34457 /* System header to define __stub macros and hopefully few prototypes,
34458 which can conflict with char $ac_func (); below.
34459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34460 <limits.h> exists even on freestanding compilers. */
34463 # include <limits.h>
34465 # include <assert.h>
34470 /* Override any gcc2 internal prototype to avoid an error. */
34475 /* We use char because int might match the return type of a gcc2
34476 builtin and then its argument prototype would still apply. */
34478 /* The GNU C library defines this for functions which it implements
34479 to always fail with ENOSYS. Some functions are actually named
34480 something starting with __ and the normal name is an alias. */
34481 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34484 char (*f) () = $ac_func;
34493 return f != $ac_func;
34498 rm -f conftest.$ac_objext conftest$ac_exeext
34499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34500 (eval $ac_link) 2>conftest.er1
34502 grep -v '^ *+' conftest.er1 >conftest.err
34504 cat conftest.err >&5
34505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34506 (exit $ac_status); } &&
34507 { ac_try='test -z "$ac_c_werror_flag"
34508 || test ! -s conftest.err'
34509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34510 (eval $ac_try) 2>&5
34512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34513 (exit $ac_status); }; } &&
34514 { ac_try='test -s conftest$ac_exeext'
34515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34516 (eval $ac_try) 2>&5
34518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34519 (exit $ac_status); }; }; then
34520 eval "$as_ac_var=yes"
34522 echo "$as_me: failed program was:" >&5
34523 sed 's/^/| /' conftest.$ac_ext >&5
34525 eval "$as_ac_var=no"
34527 rm -f conftest.err conftest.$ac_objext \
34528 conftest$ac_exeext conftest.$ac_ext
34530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34531 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34532 if test `eval echo '${'$as_ac_var'}'` = yes; then
34533 cat >>confdefs.h <<_ACEOF
34534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34543 for ac_func in pthread_kill_other_threads_np
34545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34546 echo "$as_me:$LINENO: checking for $ac_func" >&5
34547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34548 if eval "test \"\${$as_ac_var+set}\" = set"; then
34549 echo $ECHO_N "(cached) $ECHO_C" >&6
34551 cat >conftest.$ac_ext <<_ACEOF
34554 cat confdefs.h >>conftest.$ac_ext
34555 cat >>conftest.$ac_ext <<_ACEOF
34556 /* end confdefs.h. */
34557 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34559 #define $ac_func innocuous_$ac_func
34561 /* System header to define __stub macros and hopefully few prototypes,
34562 which can conflict with char $ac_func (); below.
34563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34564 <limits.h> exists even on freestanding compilers. */
34567 # include <limits.h>
34569 # include <assert.h>
34574 /* Override any gcc2 internal prototype to avoid an error. */
34579 /* We use char because int might match the return type of a gcc2
34580 builtin and then its argument prototype would still apply. */
34582 /* The GNU C library defines this for functions which it implements
34583 to always fail with ENOSYS. Some functions are actually named
34584 something starting with __ and the normal name is an alias. */
34585 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34588 char (*f) () = $ac_func;
34597 return f != $ac_func;
34602 rm -f conftest.$ac_objext conftest$ac_exeext
34603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34604 (eval $ac_link) 2>conftest.er1
34606 grep -v '^ *+' conftest.er1 >conftest.err
34608 cat conftest.err >&5
34609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34610 (exit $ac_status); } &&
34611 { ac_try='test -z "$ac_c_werror_flag"
34612 || test ! -s conftest.err'
34613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34614 (eval $ac_try) 2>&5
34616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34617 (exit $ac_status); }; } &&
34618 { ac_try='test -s conftest$ac_exeext'
34619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34620 (eval $ac_try) 2>&5
34622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34623 (exit $ac_status); }; }; then
34624 eval "$as_ac_var=yes"
34626 echo "$as_me: failed program was:" >&5
34627 sed 's/^/| /' conftest.$ac_ext >&5
34629 eval "$as_ac_var=no"
34631 rm -f conftest.err conftest.$ac_objext \
34632 conftest$ac_exeext conftest.$ac_ext
34634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34635 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34636 if test `eval echo '${'$as_ac_var'}'` = yes; then
34637 cat >>confdefs.h <<_ACEOF
34638 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34644 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
34645 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
34646 if test "${ol_cv_sys_linux_threads+set}" = set; then
34647 echo $ECHO_N "(cached) $ECHO_C" >&6
34649 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
34651 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
34652 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
34657 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
34658 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
34659 if test "${ol_cv_linux_threads+set}" = set; then
34660 echo $ECHO_N "(cached) $ECHO_C" >&6
34663 if test $ol_cv_header_linux_threads = yes -a \
34664 $ol_cv_sys_linux_threads = yes; then
34665 ol_cv_linux_threads=yes
34666 elif test $ol_cv_header_linux_threads = no -a \
34667 $ol_cv_sys_linux_threads = no; then
34668 ol_cv_linux_threads=no
34670 ol_cv_linux_threads=error
34674 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
34675 echo "${ECHO_T}$ol_cv_linux_threads" >&6
34678 if test $ol_cv_linux_threads = error; then
34679 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
34680 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
34681 { (exit 1); exit 1; }; };
34684 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
34685 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
34686 if test "${ol_cv_pthread_create_works+set}" = set; then
34687 echo $ECHO_N "(cached) $ECHO_C" >&6
34690 if test "$cross_compiling" = yes; then
34691 ol_cv_pthread_create_works=yes
34693 cat >conftest.$ac_ext <<_ACEOF
34696 cat confdefs.h >>conftest.$ac_ext
34697 cat >>conftest.$ac_ext <<_ACEOF
34698 /* end confdefs.h. */
34699 /* pthread test headers */
34700 #include <pthread.h>
34701 #if HAVE_PTHREADS < 7
34705 #define NULL (void*)0
34708 static void *task(p)
34711 return (void *) (p == NULL);
34715 int main(argc, argv)
34720 /* pthread test function */
34721 #ifndef PTHREAD_CREATE_DETACHED
34722 #define PTHREAD_CREATE_DETACHED 1
34726 int detach = PTHREAD_CREATE_DETACHED;
34728 #if HAVE_PTHREADS > 4
34729 /* Final pthreads */
34730 pthread_attr_t attr;
34732 status = pthread_attr_init(&attr);
34733 if( status ) return status;
34735 #if HAVE_PTHREADS < 7
34736 status = pthread_attr_setdetachstate(&attr, &detach);
34737 if( status < 0 ) status = errno;
34739 status = pthread_attr_setdetachstate(&attr, detach);
34741 if( status ) return status;
34742 status = pthread_create( &t, &attr, task, NULL );
34743 #if HAVE_PTHREADS < 7
34744 if( status < 0 ) status = errno;
34746 if( status ) return status;
34748 /* Draft 4 pthreads */
34749 status = pthread_create( &t, pthread_attr_default, task, NULL );
34750 if( status ) return errno;
34752 /* give thread a chance to complete */
34753 /* it should remain joinable and hence detachable */
34756 status = pthread_detach( &t );
34757 if( status ) return errno;
34760 #ifdef HAVE_LINUX_THREADS
34761 pthread_kill_other_threads_np();
34769 rm -f conftest$ac_exeext
34770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34771 (eval $ac_link) 2>&5
34773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34774 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34776 (eval $ac_try) 2>&5
34778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34779 (exit $ac_status); }; }; then
34780 ol_cv_pthread_create_works=yes
34782 echo "$as_me: program exited with status $ac_status" >&5
34783 echo "$as_me: failed program was:" >&5
34784 sed 's/^/| /' conftest.$ac_ext >&5
34786 ( exit $ac_status )
34787 ol_cv_pthread_create_works=no
34789 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34792 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
34793 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
34795 if test $ol_cv_pthread_create_works = no ; then
34796 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
34797 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
34798 { (exit 1); exit 1; }; }
34801 if test $ol_with_yielding_select = auto ; then
34802 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
34803 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
34804 if test "${ol_cv_pthread_select_yields+set}" = set; then
34805 echo $ECHO_N "(cached) $ECHO_C" >&6
34808 if test "$cross_compiling" = yes; then
34809 ol_cv_pthread_select_yields=cross
34811 cat >conftest.$ac_ext <<_ACEOF
34814 cat confdefs.h >>conftest.$ac_ext
34815 cat >>conftest.$ac_ext <<_ACEOF
34816 /* end confdefs.h. */
34818 #include <sys/types.h>
34819 #include <sys/time.h>
34820 #include <unistd.h>
34821 #include <pthread.h>
34823 #define NULL (void*) 0
34826 static int fildes[2];
34828 static void *task(p)
34840 FD_SET(fildes[0], &rfds);
34842 /* we're not interested in any fds */
34843 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
34850 exit(0); /* if we exit here, the select blocked the whole process */
34853 int main(argc, argv)
34859 /* create a pipe to select */
34860 if(pipe(&fildes[0])) {
34865 #ifdef HAVE_PTHREAD_SETCONCURRENCY
34866 (void) pthread_setconcurrency(2);
34868 #ifdef HAVE_THR_SETCONCURRENCY
34869 /* Set Solaris LWP concurrency to 2 */
34870 thr_setconcurrency(2);
34874 #if HAVE_PTHREADS < 6
34875 pthread_create(&t, pthread_attr_default, task, NULL);
34877 pthread_create(&t, NULL, task, NULL);
34880 /* make sure task runs first */
34883 #elif defined( HAVE_SCHED_YIELD )
34885 #elif defined( HAVE_PTHREAD_YIELD )
34892 rm -f conftest$ac_exeext
34893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34894 (eval $ac_link) 2>&5
34896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34899 (eval $ac_try) 2>&5
34901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34902 (exit $ac_status); }; }; then
34903 ol_cv_pthread_select_yields=no
34905 echo "$as_me: program exited with status $ac_status" >&5
34906 echo "$as_me: failed program was:" >&5
34907 sed 's/^/| /' conftest.$ac_ext >&5
34909 ( exit $ac_status )
34910 ol_cv_pthread_select_yields=yes
34912 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34915 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
34916 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
34918 if test $ol_cv_pthread_select_yields = cross ; then
34919 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
34920 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
34921 { (exit 1); exit 1; }; }
34924 if test $ol_cv_pthread_select_yields = yes ; then
34925 ol_with_yielding_select=yes
34929 CPPFLAGS="$save_CPPFLAGS"
34932 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
34933 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
34934 { (exit 1); exit 1; }; }
34938 if test $ol_with_threads = posix ; then
34939 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
34940 echo "$as_me: error: could not locate POSIX Threads" >&2;}
34941 { (exit 1); exit 1; }; }
34945 if test $ol_with_threads = auto -o $ol_with_threads = yes \
34946 -o $ol_with_threads = mach ; then
34950 for ac_header in mach/cthreads.h cthreads.h
34952 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34953 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34954 echo "$as_me:$LINENO: checking for $ac_header" >&5
34955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34956 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34957 echo $ECHO_N "(cached) $ECHO_C" >&6
34959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34962 # Is the header compilable?
34963 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34964 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34965 cat >conftest.$ac_ext <<_ACEOF
34968 cat confdefs.h >>conftest.$ac_ext
34969 cat >>conftest.$ac_ext <<_ACEOF
34970 /* end confdefs.h. */
34971 $ac_includes_default
34972 #include <$ac_header>
34974 rm -f conftest.$ac_objext
34975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34976 (eval $ac_compile) 2>conftest.er1
34978 grep -v '^ *+' conftest.er1 >conftest.err
34980 cat conftest.err >&5
34981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34982 (exit $ac_status); } &&
34983 { ac_try='test -z "$ac_c_werror_flag"
34984 || test ! -s conftest.err'
34985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34986 (eval $ac_try) 2>&5
34988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34989 (exit $ac_status); }; } &&
34990 { ac_try='test -s conftest.$ac_objext'
34991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34992 (eval $ac_try) 2>&5
34994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34995 (exit $ac_status); }; }; then
34996 ac_header_compiler=yes
34998 echo "$as_me: failed program was:" >&5
34999 sed 's/^/| /' conftest.$ac_ext >&5
35001 ac_header_compiler=no
35003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35004 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35005 echo "${ECHO_T}$ac_header_compiler" >&6
35007 # Is the header present?
35008 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35010 cat >conftest.$ac_ext <<_ACEOF
35013 cat confdefs.h >>conftest.$ac_ext
35014 cat >>conftest.$ac_ext <<_ACEOF
35015 /* end confdefs.h. */
35016 #include <$ac_header>
35018 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35019 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35021 grep -v '^ *+' conftest.er1 >conftest.err
35023 cat conftest.err >&5
35024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35025 (exit $ac_status); } >/dev/null; then
35026 if test -s conftest.err; then
35027 ac_cpp_err=$ac_c_preproc_warn_flag
35028 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35035 if test -z "$ac_cpp_err"; then
35036 ac_header_preproc=yes
35038 echo "$as_me: failed program was:" >&5
35039 sed 's/^/| /' conftest.$ac_ext >&5
35041 ac_header_preproc=no
35043 rm -f conftest.err conftest.$ac_ext
35044 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35045 echo "${ECHO_T}$ac_header_preproc" >&6
35047 # So? What about this header?
35048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35050 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35051 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35053 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35054 ac_header_preproc=yes
35057 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35058 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35059 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35060 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35061 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35062 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35063 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35064 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35065 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35066 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35067 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35068 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35071 ## ------------------------------------------ ##
35072 ## Report this to the AC_PACKAGE_NAME lists. ##
35073 ## ------------------------------------------ ##
35076 sed "s/^/$as_me: WARNING: /" >&2
35079 echo "$as_me:$LINENO: checking for $ac_header" >&5
35080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35082 echo $ECHO_N "(cached) $ECHO_C" >&6
35084 eval "$as_ac_Header=\$ac_header_preproc"
35086 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35087 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35091 cat >>confdefs.h <<_ACEOF
35092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35099 if test $ac_cv_header_mach_cthreads_h = yes ; then
35100 ol_with_threads=found
35102 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35103 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35104 if test "${ac_cv_func_cthread_fork+set}" = set; then
35105 echo $ECHO_N "(cached) $ECHO_C" >&6
35107 cat >conftest.$ac_ext <<_ACEOF
35110 cat confdefs.h >>conftest.$ac_ext
35111 cat >>conftest.$ac_ext <<_ACEOF
35112 /* end confdefs.h. */
35113 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35115 #define cthread_fork innocuous_cthread_fork
35117 /* System header to define __stub macros and hopefully few prototypes,
35118 which can conflict with char cthread_fork (); below.
35119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35120 <limits.h> exists even on freestanding compilers. */
35123 # include <limits.h>
35125 # include <assert.h>
35128 #undef cthread_fork
35130 /* Override any gcc2 internal prototype to avoid an error. */
35135 /* We use char because int might match the return type of a gcc2
35136 builtin and then its argument prototype would still apply. */
35137 char cthread_fork ();
35138 /* The GNU C library defines this for functions which it implements
35139 to always fail with ENOSYS. Some functions are actually named
35140 something starting with __ and the normal name is an alias. */
35141 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35144 char (*f) () = cthread_fork;
35153 return f != cthread_fork;
35158 rm -f conftest.$ac_objext conftest$ac_exeext
35159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35160 (eval $ac_link) 2>conftest.er1
35162 grep -v '^ *+' conftest.er1 >conftest.err
35164 cat conftest.err >&5
35165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35166 (exit $ac_status); } &&
35167 { ac_try='test -z "$ac_c_werror_flag"
35168 || test ! -s conftest.err'
35169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35170 (eval $ac_try) 2>&5
35172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35173 (exit $ac_status); }; } &&
35174 { ac_try='test -s conftest$ac_exeext'
35175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35176 (eval $ac_try) 2>&5
35178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35179 (exit $ac_status); }; }; then
35180 ac_cv_func_cthread_fork=yes
35182 echo "$as_me: failed program was:" >&5
35183 sed 's/^/| /' conftest.$ac_ext >&5
35185 ac_cv_func_cthread_fork=no
35187 rm -f conftest.err conftest.$ac_objext \
35188 conftest$ac_exeext conftest.$ac_ext
35190 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35191 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35192 if test $ac_cv_func_cthread_fork = yes; then
35193 ol_link_threads=yes
35197 if test $ol_link_threads = no ; then
35198 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
35199 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
35200 if test "${ol_cv_cthread_all_load+set}" = set; then
35201 echo $ECHO_N "(cached) $ECHO_C" >&6
35205 LIBS="-all_load $LIBS"
35206 cat >conftest.$ac_ext <<_ACEOF
35209 cat confdefs.h >>conftest.$ac_ext
35210 cat >>conftest.$ac_ext <<_ACEOF
35211 /* end confdefs.h. */
35212 #include <mach/cthreads.h>
35217 cthread_fork((void *)0, (void *)0);
35223 rm -f conftest.$ac_objext conftest$ac_exeext
35224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35225 (eval $ac_link) 2>conftest.er1
35227 grep -v '^ *+' conftest.er1 >conftest.err
35229 cat conftest.err >&5
35230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35231 (exit $ac_status); } &&
35232 { ac_try='test -z "$ac_c_werror_flag"
35233 || test ! -s conftest.err'
35234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35235 (eval $ac_try) 2>&5
35237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35238 (exit $ac_status); }; } &&
35239 { ac_try='test -s conftest$ac_exeext'
35240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35241 (eval $ac_try) 2>&5
35243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35244 (exit $ac_status); }; }; then
35245 ol_cv_cthread_all_load=yes
35247 echo "$as_me: failed program was:" >&5
35248 sed 's/^/| /' conftest.$ac_ext >&5
35250 ol_cv_cthread_all_load=no
35252 rm -f conftest.err conftest.$ac_objext \
35253 conftest$ac_exeext conftest.$ac_ext
35257 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
35258 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
35260 if test $ol_cv_cthread_all_load = yes ; then
35261 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
35262 ol_link_threads=mach
35263 ol_with_threads=found
35267 elif test $ac_cv_header_cthreads_h = yes ; then
35269 ol_with_threads=found
35272 LIBS="$LIBS -lthreads"
35273 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35274 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35275 if test "${ac_cv_func_cthread_fork+set}" = set; then
35276 echo $ECHO_N "(cached) $ECHO_C" >&6
35278 cat >conftest.$ac_ext <<_ACEOF
35281 cat confdefs.h >>conftest.$ac_ext
35282 cat >>conftest.$ac_ext <<_ACEOF
35283 /* end confdefs.h. */
35284 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35286 #define cthread_fork innocuous_cthread_fork
35288 /* System header to define __stub macros and hopefully few prototypes,
35289 which can conflict with char cthread_fork (); below.
35290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35291 <limits.h> exists even on freestanding compilers. */
35294 # include <limits.h>
35296 # include <assert.h>
35299 #undef cthread_fork
35301 /* Override any gcc2 internal prototype to avoid an error. */
35306 /* We use char because int might match the return type of a gcc2
35307 builtin and then its argument prototype would still apply. */
35308 char cthread_fork ();
35309 /* The GNU C library defines this for functions which it implements
35310 to always fail with ENOSYS. Some functions are actually named
35311 something starting with __ and the normal name is an alias. */
35312 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35315 char (*f) () = cthread_fork;
35324 return f != cthread_fork;
35329 rm -f conftest.$ac_objext conftest$ac_exeext
35330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35331 (eval $ac_link) 2>conftest.er1
35333 grep -v '^ *+' conftest.er1 >conftest.err
35335 cat conftest.err >&5
35336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35337 (exit $ac_status); } &&
35338 { ac_try='test -z "$ac_c_werror_flag"
35339 || test ! -s conftest.err'
35340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35341 (eval $ac_try) 2>&5
35343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35344 (exit $ac_status); }; } &&
35345 { ac_try='test -s conftest$ac_exeext'
35346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35347 (eval $ac_try) 2>&5
35349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35350 (exit $ac_status); }; }; then
35351 ac_cv_func_cthread_fork=yes
35353 echo "$as_me: failed program was:" >&5
35354 sed 's/^/| /' conftest.$ac_ext >&5
35356 ac_cv_func_cthread_fork=no
35358 rm -f conftest.err conftest.$ac_objext \
35359 conftest$ac_exeext conftest.$ac_ext
35361 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35362 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35363 if test $ac_cv_func_cthread_fork = yes; then
35364 ol_link_threads=yes
35369 if test $ol_link_threads = yes ; then
35370 LTHREAD_LIBS="-lthreads"
35371 ol_link_threads=mach
35372 ol_with_threads=found
35374 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35375 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35376 { (exit 1); exit 1; }; }
35379 elif test $ol_with_threads = mach ; then
35380 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
35381 echo "$as_me: error: could not locate Mach CThreads" >&2;}
35382 { (exit 1); exit 1; }; }
35385 if test $ol_link_threads = mach ; then
35387 cat >>confdefs.h <<\_ACEOF
35388 #define HAVE_MACH_CTHREADS 1
35391 elif test $ol_with_threads = found ; then
35392 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35393 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35394 { (exit 1); exit 1; }; }
35398 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35399 -o $ol_with_threads = pth ; then
35402 for ac_header in pth.h
35404 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35405 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35406 echo "$as_me:$LINENO: checking for $ac_header" >&5
35407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35409 echo $ECHO_N "(cached) $ECHO_C" >&6
35411 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35412 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35414 # Is the header compilable?
35415 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35417 cat >conftest.$ac_ext <<_ACEOF
35420 cat confdefs.h >>conftest.$ac_ext
35421 cat >>conftest.$ac_ext <<_ACEOF
35422 /* end confdefs.h. */
35423 $ac_includes_default
35424 #include <$ac_header>
35426 rm -f conftest.$ac_objext
35427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35428 (eval $ac_compile) 2>conftest.er1
35430 grep -v '^ *+' conftest.er1 >conftest.err
35432 cat conftest.err >&5
35433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35434 (exit $ac_status); } &&
35435 { ac_try='test -z "$ac_c_werror_flag"
35436 || test ! -s conftest.err'
35437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35438 (eval $ac_try) 2>&5
35440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35441 (exit $ac_status); }; } &&
35442 { ac_try='test -s conftest.$ac_objext'
35443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35444 (eval $ac_try) 2>&5
35446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35447 (exit $ac_status); }; }; then
35448 ac_header_compiler=yes
35450 echo "$as_me: failed program was:" >&5
35451 sed 's/^/| /' conftest.$ac_ext >&5
35453 ac_header_compiler=no
35455 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35456 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35457 echo "${ECHO_T}$ac_header_compiler" >&6
35459 # Is the header present?
35460 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35462 cat >conftest.$ac_ext <<_ACEOF
35465 cat confdefs.h >>conftest.$ac_ext
35466 cat >>conftest.$ac_ext <<_ACEOF
35467 /* end confdefs.h. */
35468 #include <$ac_header>
35470 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35471 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35473 grep -v '^ *+' conftest.er1 >conftest.err
35475 cat conftest.err >&5
35476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35477 (exit $ac_status); } >/dev/null; then
35478 if test -s conftest.err; then
35479 ac_cpp_err=$ac_c_preproc_warn_flag
35480 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35487 if test -z "$ac_cpp_err"; then
35488 ac_header_preproc=yes
35490 echo "$as_me: failed program was:" >&5
35491 sed 's/^/| /' conftest.$ac_ext >&5
35493 ac_header_preproc=no
35495 rm -f conftest.err conftest.$ac_ext
35496 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35497 echo "${ECHO_T}$ac_header_preproc" >&6
35499 # So? What about this header?
35500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35503 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35506 ac_header_preproc=yes
35509 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35510 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35511 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35512 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35513 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35514 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35515 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35516 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35517 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35519 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35520 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35523 ## ------------------------------------------ ##
35524 ## Report this to the AC_PACKAGE_NAME lists. ##
35525 ## ------------------------------------------ ##
35528 sed "s/^/$as_me: WARNING: /" >&2
35531 echo "$as_me:$LINENO: checking for $ac_header" >&5
35532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35533 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35534 echo $ECHO_N "(cached) $ECHO_C" >&6
35536 eval "$as_ac_Header=\$ac_header_preproc"
35538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35539 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35542 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35543 cat >>confdefs.h <<_ACEOF
35544 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35552 if test $ac_cv_header_pth_h = yes ; then
35553 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
35554 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
35555 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
35556 echo $ECHO_N "(cached) $ECHO_C" >&6
35558 ac_check_lib_save_LIBS=$LIBS
35560 cat >conftest.$ac_ext <<_ACEOF
35563 cat confdefs.h >>conftest.$ac_ext
35564 cat >>conftest.$ac_ext <<_ACEOF
35565 /* end confdefs.h. */
35567 /* Override any gcc2 internal prototype to avoid an error. */
35571 /* We use char because int might match the return type of a gcc2
35572 builtin and then its argument prototype would still apply. */
35573 char pth_version ();
35582 rm -f conftest.$ac_objext conftest$ac_exeext
35583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35584 (eval $ac_link) 2>conftest.er1
35586 grep -v '^ *+' conftest.er1 >conftest.err
35588 cat conftest.err >&5
35589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35590 (exit $ac_status); } &&
35591 { ac_try='test -z "$ac_c_werror_flag"
35592 || test ! -s conftest.err'
35593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35594 (eval $ac_try) 2>&5
35596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35597 (exit $ac_status); }; } &&
35598 { ac_try='test -s conftest$ac_exeext'
35599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35600 (eval $ac_try) 2>&5
35602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35603 (exit $ac_status); }; }; then
35604 ac_cv_lib_pth_pth_version=yes
35606 echo "$as_me: failed program was:" >&5
35607 sed 's/^/| /' conftest.$ac_ext >&5
35609 ac_cv_lib_pth_pth_version=no
35611 rm -f conftest.err conftest.$ac_objext \
35612 conftest$ac_exeext conftest.$ac_ext
35613 LIBS=$ac_check_lib_save_LIBS
35615 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
35616 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
35617 if test $ac_cv_lib_pth_pth_version = yes; then
35624 if test $have_pth = yes ; then
35626 cat >>confdefs.h <<\_ACEOF
35627 #define HAVE_GNU_PTH 1
35630 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
35631 ol_link_threads=pth
35632 ol_with_threads=found
35634 if test $ol_with_yielding_select = auto ; then
35635 ol_with_yielding_select=yes
35641 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35642 -o $ol_with_threads = lwp ; then
35646 for ac_header in thread.h synch.h
35648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35650 echo "$as_me:$LINENO: checking for $ac_header" >&5
35651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35653 echo $ECHO_N "(cached) $ECHO_C" >&6
35655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35658 # Is the header compilable?
35659 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35661 cat >conftest.$ac_ext <<_ACEOF
35664 cat confdefs.h >>conftest.$ac_ext
35665 cat >>conftest.$ac_ext <<_ACEOF
35666 /* end confdefs.h. */
35667 $ac_includes_default
35668 #include <$ac_header>
35670 rm -f conftest.$ac_objext
35671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35672 (eval $ac_compile) 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_objext'
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_header_compiler=yes
35694 echo "$as_me: failed program was:" >&5
35695 sed 's/^/| /' conftest.$ac_ext >&5
35697 ac_header_compiler=no
35699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35700 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35701 echo "${ECHO_T}$ac_header_compiler" >&6
35703 # Is the header present?
35704 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35705 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35706 cat >conftest.$ac_ext <<_ACEOF
35709 cat confdefs.h >>conftest.$ac_ext
35710 cat >>conftest.$ac_ext <<_ACEOF
35711 /* end confdefs.h. */
35712 #include <$ac_header>
35714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35717 grep -v '^ *+' conftest.er1 >conftest.err
35719 cat conftest.err >&5
35720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35721 (exit $ac_status); } >/dev/null; then
35722 if test -s conftest.err; then
35723 ac_cpp_err=$ac_c_preproc_warn_flag
35724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35731 if test -z "$ac_cpp_err"; then
35732 ac_header_preproc=yes
35734 echo "$as_me: failed program was:" >&5
35735 sed 's/^/| /' conftest.$ac_ext >&5
35737 ac_header_preproc=no
35739 rm -f conftest.err conftest.$ac_ext
35740 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35741 echo "${ECHO_T}$ac_header_preproc" >&6
35743 # So? What about this header?
35744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35746 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35747 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35749 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35750 ac_header_preproc=yes
35753 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35754 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35755 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35756 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35757 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35758 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35759 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35760 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35763 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35764 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35767 ## ------------------------------------------ ##
35768 ## Report this to the AC_PACKAGE_NAME lists. ##
35769 ## ------------------------------------------ ##
35772 sed "s/^/$as_me: WARNING: /" >&2
35775 echo "$as_me:$LINENO: checking for $ac_header" >&5
35776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35778 echo $ECHO_N "(cached) $ECHO_C" >&6
35780 eval "$as_ac_Header=\$ac_header_preproc"
35782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35787 cat >>confdefs.h <<_ACEOF
35788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35795 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
35796 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
35797 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
35798 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
35799 echo $ECHO_N "(cached) $ECHO_C" >&6
35801 ac_check_lib_save_LIBS=$LIBS
35802 LIBS="-lthread $LIBS"
35803 cat >conftest.$ac_ext <<_ACEOF
35806 cat confdefs.h >>conftest.$ac_ext
35807 cat >>conftest.$ac_ext <<_ACEOF
35808 /* end confdefs.h. */
35810 /* Override any gcc2 internal prototype to avoid an error. */
35814 /* We use char because int might match the return type of a gcc2
35815 builtin and then its argument prototype would still apply. */
35816 char thr_create ();
35825 rm -f conftest.$ac_objext conftest$ac_exeext
35826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35827 (eval $ac_link) 2>conftest.er1
35829 grep -v '^ *+' conftest.er1 >conftest.err
35831 cat conftest.err >&5
35832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35833 (exit $ac_status); } &&
35834 { ac_try='test -z "$ac_c_werror_flag"
35835 || test ! -s conftest.err'
35836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35837 (eval $ac_try) 2>&5
35839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35840 (exit $ac_status); }; } &&
35841 { ac_try='test -s conftest$ac_exeext'
35842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35843 (eval $ac_try) 2>&5
35845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35846 (exit $ac_status); }; }; then
35847 ac_cv_lib_thread_thr_create=yes
35849 echo "$as_me: failed program was:" >&5
35850 sed 's/^/| /' conftest.$ac_ext >&5
35852 ac_cv_lib_thread_thr_create=no
35854 rm -f conftest.err conftest.$ac_objext \
35855 conftest$ac_exeext conftest.$ac_ext
35856 LIBS=$ac_check_lib_save_LIBS
35858 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
35859 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
35860 if test $ac_cv_lib_thread_thr_create = yes; then
35867 if test $have_thr = yes ; then
35869 cat >>confdefs.h <<\_ACEOF
35873 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
35874 ol_link_threads=thr
35876 if test $ol_with_yielding_select = auto ; then
35877 ol_with_yielding_select=yes
35883 thr_setconcurrency \
35884 thr_getconcurrency \
35887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35888 echo "$as_me:$LINENO: checking for $ac_func" >&5
35889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35890 if eval "test \"\${$as_ac_var+set}\" = set"; then
35891 echo $ECHO_N "(cached) $ECHO_C" >&6
35893 cat >conftest.$ac_ext <<_ACEOF
35896 cat confdefs.h >>conftest.$ac_ext
35897 cat >>conftest.$ac_ext <<_ACEOF
35898 /* end confdefs.h. */
35899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35901 #define $ac_func innocuous_$ac_func
35903 /* System header to define __stub macros and hopefully few prototypes,
35904 which can conflict with char $ac_func (); below.
35905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35906 <limits.h> exists even on freestanding compilers. */
35909 # include <limits.h>
35911 # include <assert.h>
35916 /* Override any gcc2 internal prototype to avoid an error. */
35921 /* We use char because int might match the return type of a gcc2
35922 builtin and then its argument prototype would still apply. */
35924 /* The GNU C library defines this for functions which it implements
35925 to always fail with ENOSYS. Some functions are actually named
35926 something starting with __ and the normal name is an alias. */
35927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35930 char (*f) () = $ac_func;
35939 return f != $ac_func;
35944 rm -f conftest.$ac_objext conftest$ac_exeext
35945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35946 (eval $ac_link) 2>conftest.er1
35948 grep -v '^ *+' conftest.er1 >conftest.err
35950 cat conftest.err >&5
35951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35952 (exit $ac_status); } &&
35953 { ac_try='test -z "$ac_c_werror_flag"
35954 || test ! -s conftest.err'
35955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35956 (eval $ac_try) 2>&5
35958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35959 (exit $ac_status); }; } &&
35960 { ac_try='test -s conftest$ac_exeext'
35961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35962 (eval $ac_try) 2>&5
35964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35965 (exit $ac_status); }; }; then
35966 eval "$as_ac_var=yes"
35968 echo "$as_me: failed program was:" >&5
35969 sed 's/^/| /' conftest.$ac_ext >&5
35971 eval "$as_ac_var=no"
35973 rm -f conftest.err conftest.$ac_objext \
35974 conftest$ac_exeext conftest.$ac_ext
35976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35977 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35978 if test `eval echo '${'$as_ac_var'}'` = yes; then
35979 cat >>confdefs.h <<_ACEOF
35980 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35990 for ac_header in lwp/lwp.h
35992 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35993 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35994 echo "$as_me:$LINENO: checking for $ac_header" >&5
35995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35997 echo $ECHO_N "(cached) $ECHO_C" >&6
35999 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36000 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36002 # Is the header compilable?
36003 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36005 cat >conftest.$ac_ext <<_ACEOF
36008 cat confdefs.h >>conftest.$ac_ext
36009 cat >>conftest.$ac_ext <<_ACEOF
36010 /* end confdefs.h. */
36011 $ac_includes_default
36012 #include <$ac_header>
36014 rm -f conftest.$ac_objext
36015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36016 (eval $ac_compile) 2>conftest.er1
36018 grep -v '^ *+' conftest.er1 >conftest.err
36020 cat conftest.err >&5
36021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36022 (exit $ac_status); } &&
36023 { ac_try='test -z "$ac_c_werror_flag"
36024 || test ! -s conftest.err'
36025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36026 (eval $ac_try) 2>&5
36028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36029 (exit $ac_status); }; } &&
36030 { ac_try='test -s conftest.$ac_objext'
36031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36032 (eval $ac_try) 2>&5
36034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36035 (exit $ac_status); }; }; then
36036 ac_header_compiler=yes
36038 echo "$as_me: failed program was:" >&5
36039 sed 's/^/| /' conftest.$ac_ext >&5
36041 ac_header_compiler=no
36043 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36045 echo "${ECHO_T}$ac_header_compiler" >&6
36047 # Is the header present?
36048 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36050 cat >conftest.$ac_ext <<_ACEOF
36053 cat confdefs.h >>conftest.$ac_ext
36054 cat >>conftest.$ac_ext <<_ACEOF
36055 /* end confdefs.h. */
36056 #include <$ac_header>
36058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36061 grep -v '^ *+' conftest.er1 >conftest.err
36063 cat conftest.err >&5
36064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36065 (exit $ac_status); } >/dev/null; then
36066 if test -s conftest.err; then
36067 ac_cpp_err=$ac_c_preproc_warn_flag
36068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36075 if test -z "$ac_cpp_err"; then
36076 ac_header_preproc=yes
36078 echo "$as_me: failed program was:" >&5
36079 sed 's/^/| /' conftest.$ac_ext >&5
36081 ac_header_preproc=no
36083 rm -f conftest.err conftest.$ac_ext
36084 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36085 echo "${ECHO_T}$ac_header_preproc" >&6
36087 # So? What about this header?
36088 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36090 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36093 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36094 ac_header_preproc=yes
36097 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36098 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36099 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36100 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36101 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36102 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36103 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36104 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36106 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36107 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36108 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36111 ## ------------------------------------------ ##
36112 ## Report this to the AC_PACKAGE_NAME lists. ##
36113 ## ------------------------------------------ ##
36116 sed "s/^/$as_me: WARNING: /" >&2
36119 echo "$as_me:$LINENO: checking for $ac_header" >&5
36120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36121 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36122 echo $ECHO_N "(cached) $ECHO_C" >&6
36124 eval "$as_ac_Header=\$ac_header_preproc"
36126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36131 cat >>confdefs.h <<_ACEOF
36132 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36139 if test $ac_cv_header_lwp_lwp_h = yes ; then
36140 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
36141 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
36142 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
36143 echo $ECHO_N "(cached) $ECHO_C" >&6
36145 ac_check_lib_save_LIBS=$LIBS
36147 cat >conftest.$ac_ext <<_ACEOF
36150 cat confdefs.h >>conftest.$ac_ext
36151 cat >>conftest.$ac_ext <<_ACEOF
36152 /* end confdefs.h. */
36154 /* Override any gcc2 internal prototype to avoid an error. */
36158 /* We use char because int might match the return type of a gcc2
36159 builtin and then its argument prototype would still apply. */
36160 char lwp_create ();
36169 rm -f conftest.$ac_objext conftest$ac_exeext
36170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36171 (eval $ac_link) 2>conftest.er1
36173 grep -v '^ *+' conftest.er1 >conftest.err
36175 cat conftest.err >&5
36176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36177 (exit $ac_status); } &&
36178 { ac_try='test -z "$ac_c_werror_flag"
36179 || test ! -s conftest.err'
36180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36181 (eval $ac_try) 2>&5
36183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36184 (exit $ac_status); }; } &&
36185 { ac_try='test -s conftest$ac_exeext'
36186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36187 (eval $ac_try) 2>&5
36189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36190 (exit $ac_status); }; }; then
36191 ac_cv_lib_lwp_lwp_create=yes
36193 echo "$as_me: failed program was:" >&5
36194 sed 's/^/| /' conftest.$ac_ext >&5
36196 ac_cv_lib_lwp_lwp_create=no
36198 rm -f conftest.err conftest.$ac_objext \
36199 conftest$ac_exeext conftest.$ac_ext
36200 LIBS=$ac_check_lib_save_LIBS
36202 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
36203 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
36204 if test $ac_cv_lib_lwp_lwp_create = yes; then
36211 if test $have_lwp = yes ; then
36213 cat >>confdefs.h <<\_ACEOF
36217 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
36218 ol_link_threads=lwp
36220 if test $ol_with_yielding_select = auto ; then
36221 ol_with_yielding_select=no
36227 if test $ol_with_yielding_select = yes ; then
36229 cat >>confdefs.h <<\_ACEOF
36230 #define HAVE_YIELDING_SELECT 1
36235 if test $ol_with_threads = manual ; then
36236 ol_link_threads=yes
36238 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
36239 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
36243 for ac_header in pthread.h sched.h
36245 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36247 echo "$as_me:$LINENO: checking for $ac_header" >&5
36248 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36249 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36250 echo $ECHO_N "(cached) $ECHO_C" >&6
36252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36255 # Is the header compilable?
36256 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36257 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36258 cat >conftest.$ac_ext <<_ACEOF
36261 cat confdefs.h >>conftest.$ac_ext
36262 cat >>conftest.$ac_ext <<_ACEOF
36263 /* end confdefs.h. */
36264 $ac_includes_default
36265 #include <$ac_header>
36267 rm -f conftest.$ac_objext
36268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36269 (eval $ac_compile) 2>conftest.er1
36271 grep -v '^ *+' conftest.er1 >conftest.err
36273 cat conftest.err >&5
36274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36275 (exit $ac_status); } &&
36276 { ac_try='test -z "$ac_c_werror_flag"
36277 || test ! -s conftest.err'
36278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36279 (eval $ac_try) 2>&5
36281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36282 (exit $ac_status); }; } &&
36283 { ac_try='test -s conftest.$ac_objext'
36284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36285 (eval $ac_try) 2>&5
36287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36288 (exit $ac_status); }; }; then
36289 ac_header_compiler=yes
36291 echo "$as_me: failed program was:" >&5
36292 sed 's/^/| /' conftest.$ac_ext >&5
36294 ac_header_compiler=no
36296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36298 echo "${ECHO_T}$ac_header_compiler" >&6
36300 # Is the header present?
36301 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36303 cat >conftest.$ac_ext <<_ACEOF
36306 cat confdefs.h >>conftest.$ac_ext
36307 cat >>conftest.$ac_ext <<_ACEOF
36308 /* end confdefs.h. */
36309 #include <$ac_header>
36311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36314 grep -v '^ *+' conftest.er1 >conftest.err
36316 cat conftest.err >&5
36317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36318 (exit $ac_status); } >/dev/null; then
36319 if test -s conftest.err; then
36320 ac_cpp_err=$ac_c_preproc_warn_flag
36321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36328 if test -z "$ac_cpp_err"; then
36329 ac_header_preproc=yes
36331 echo "$as_me: failed program was:" >&5
36332 sed 's/^/| /' conftest.$ac_ext >&5
36334 ac_header_preproc=no
36336 rm -f conftest.err conftest.$ac_ext
36337 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36338 echo "${ECHO_T}$ac_header_preproc" >&6
36340 # So? What about this header?
36341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36347 ac_header_preproc=yes
36350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36357 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36364 ## ------------------------------------------ ##
36365 ## Report this to the AC_PACKAGE_NAME lists. ##
36366 ## ------------------------------------------ ##
36369 sed "s/^/$as_me: WARNING: /" >&2
36372 echo "$as_me:$LINENO: checking for $ac_header" >&5
36373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36375 echo $ECHO_N "(cached) $ECHO_C" >&6
36377 eval "$as_ac_Header=\$ac_header_preproc"
36379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36384 cat >>confdefs.h <<_ACEOF
36385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36394 for ac_func in sched_yield pthread_yield
36396 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36397 echo "$as_me:$LINENO: checking for $ac_func" >&5
36398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36399 if eval "test \"\${$as_ac_var+set}\" = set"; then
36400 echo $ECHO_N "(cached) $ECHO_C" >&6
36402 cat >conftest.$ac_ext <<_ACEOF
36405 cat confdefs.h >>conftest.$ac_ext
36406 cat >>conftest.$ac_ext <<_ACEOF
36407 /* end confdefs.h. */
36408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36410 #define $ac_func innocuous_$ac_func
36412 /* System header to define __stub macros and hopefully few prototypes,
36413 which can conflict with char $ac_func (); below.
36414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36415 <limits.h> exists even on freestanding compilers. */
36418 # include <limits.h>
36420 # include <assert.h>
36425 /* Override any gcc2 internal prototype to avoid an error. */
36430 /* We use char because int might match the return type of a gcc2
36431 builtin and then its argument prototype would still apply. */
36433 /* The GNU C library defines this for functions which it implements
36434 to always fail with ENOSYS. Some functions are actually named
36435 something starting with __ and the normal name is an alias. */
36436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36439 char (*f) () = $ac_func;
36448 return f != $ac_func;
36453 rm -f conftest.$ac_objext conftest$ac_exeext
36454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36455 (eval $ac_link) 2>conftest.er1
36457 grep -v '^ *+' conftest.er1 >conftest.err
36459 cat conftest.err >&5
36460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36461 (exit $ac_status); } &&
36462 { ac_try='test -z "$ac_c_werror_flag"
36463 || test ! -s conftest.err'
36464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36465 (eval $ac_try) 2>&5
36467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36468 (exit $ac_status); }; } &&
36469 { ac_try='test -s conftest$ac_exeext'
36470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36471 (eval $ac_try) 2>&5
36473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36474 (exit $ac_status); }; }; then
36475 eval "$as_ac_var=yes"
36477 echo "$as_me: failed program was:" >&5
36478 sed 's/^/| /' conftest.$ac_ext >&5
36480 eval "$as_ac_var=no"
36482 rm -f conftest.err conftest.$ac_objext \
36483 conftest$ac_exeext conftest.$ac_ext
36485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36487 if test `eval echo '${'$as_ac_var'}'` = yes; then
36488 cat >>confdefs.h <<_ACEOF
36489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36496 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
36497 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
36498 if test "${ol_cv_header_linux_threads+set}" = set; then
36499 echo $ECHO_N "(cached) $ECHO_C" >&6
36501 cat >conftest.$ac_ext <<_ACEOF
36504 cat confdefs.h >>conftest.$ac_ext
36505 cat >>conftest.$ac_ext <<_ACEOF
36506 /* end confdefs.h. */
36507 #include <pthread.h>
36509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36510 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
36511 ol_cv_header_linux_threads=yes
36513 ol_cv_header_linux_threads=no
36519 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
36520 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
36521 if test $ol_cv_header_linux_threads = yes; then
36523 cat >>confdefs.h <<\_ACEOF
36524 #define HAVE_LINUX_THREADS 1
36531 for ac_header in mach/cthreads.h
36533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36535 echo "$as_me:$LINENO: checking for $ac_header" >&5
36536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36538 echo $ECHO_N "(cached) $ECHO_C" >&6
36540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36543 # Is the header compilable?
36544 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36545 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36546 cat >conftest.$ac_ext <<_ACEOF
36549 cat confdefs.h >>conftest.$ac_ext
36550 cat >>conftest.$ac_ext <<_ACEOF
36551 /* end confdefs.h. */
36552 $ac_includes_default
36553 #include <$ac_header>
36555 rm -f conftest.$ac_objext
36556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36557 (eval $ac_compile) 2>conftest.er1
36559 grep -v '^ *+' conftest.er1 >conftest.err
36561 cat conftest.err >&5
36562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36563 (exit $ac_status); } &&
36564 { ac_try='test -z "$ac_c_werror_flag"
36565 || test ! -s conftest.err'
36566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36567 (eval $ac_try) 2>&5
36569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36570 (exit $ac_status); }; } &&
36571 { ac_try='test -s conftest.$ac_objext'
36572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36573 (eval $ac_try) 2>&5
36575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36576 (exit $ac_status); }; }; then
36577 ac_header_compiler=yes
36579 echo "$as_me: failed program was:" >&5
36580 sed 's/^/| /' conftest.$ac_ext >&5
36582 ac_header_compiler=no
36584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36586 echo "${ECHO_T}$ac_header_compiler" >&6
36588 # Is the header present?
36589 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36591 cat >conftest.$ac_ext <<_ACEOF
36594 cat confdefs.h >>conftest.$ac_ext
36595 cat >>conftest.$ac_ext <<_ACEOF
36596 /* end confdefs.h. */
36597 #include <$ac_header>
36599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36602 grep -v '^ *+' conftest.er1 >conftest.err
36604 cat conftest.err >&5
36605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36606 (exit $ac_status); } >/dev/null; then
36607 if test -s conftest.err; then
36608 ac_cpp_err=$ac_c_preproc_warn_flag
36609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36616 if test -z "$ac_cpp_err"; then
36617 ac_header_preproc=yes
36619 echo "$as_me: failed program was:" >&5
36620 sed 's/^/| /' conftest.$ac_ext >&5
36622 ac_header_preproc=no
36624 rm -f conftest.err conftest.$ac_ext
36625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36626 echo "${ECHO_T}$ac_header_preproc" >&6
36628 # So? What about this header?
36629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36635 ac_header_preproc=yes
36638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36652 ## ------------------------------------------ ##
36653 ## Report this to the AC_PACKAGE_NAME lists. ##
36654 ## ------------------------------------------ ##
36657 sed "s/^/$as_me: WARNING: /" >&2
36660 echo "$as_me:$LINENO: checking for $ac_header" >&5
36661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36663 echo $ECHO_N "(cached) $ECHO_C" >&6
36665 eval "$as_ac_Header=\$ac_header_preproc"
36667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36672 cat >>confdefs.h <<_ACEOF
36673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36681 for ac_header in lwp/lwp.h
36683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36685 echo "$as_me:$LINENO: checking for $ac_header" >&5
36686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36688 echo $ECHO_N "(cached) $ECHO_C" >&6
36690 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36691 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36693 # Is the header compilable?
36694 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36695 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36696 cat >conftest.$ac_ext <<_ACEOF
36699 cat confdefs.h >>conftest.$ac_ext
36700 cat >>conftest.$ac_ext <<_ACEOF
36701 /* end confdefs.h. */
36702 $ac_includes_default
36703 #include <$ac_header>
36705 rm -f conftest.$ac_objext
36706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36707 (eval $ac_compile) 2>conftest.er1
36709 grep -v '^ *+' conftest.er1 >conftest.err
36711 cat conftest.err >&5
36712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36713 (exit $ac_status); } &&
36714 { ac_try='test -z "$ac_c_werror_flag"
36715 || test ! -s conftest.err'
36716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36717 (eval $ac_try) 2>&5
36719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36720 (exit $ac_status); }; } &&
36721 { ac_try='test -s conftest.$ac_objext'
36722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36723 (eval $ac_try) 2>&5
36725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36726 (exit $ac_status); }; }; then
36727 ac_header_compiler=yes
36729 echo "$as_me: failed program was:" >&5
36730 sed 's/^/| /' conftest.$ac_ext >&5
36732 ac_header_compiler=no
36734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36735 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36736 echo "${ECHO_T}$ac_header_compiler" >&6
36738 # Is the header present?
36739 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36740 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36741 cat >conftest.$ac_ext <<_ACEOF
36744 cat confdefs.h >>conftest.$ac_ext
36745 cat >>conftest.$ac_ext <<_ACEOF
36746 /* end confdefs.h. */
36747 #include <$ac_header>
36749 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36750 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36752 grep -v '^ *+' conftest.er1 >conftest.err
36754 cat conftest.err >&5
36755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36756 (exit $ac_status); } >/dev/null; then
36757 if test -s conftest.err; then
36758 ac_cpp_err=$ac_c_preproc_warn_flag
36759 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36766 if test -z "$ac_cpp_err"; then
36767 ac_header_preproc=yes
36769 echo "$as_me: failed program was:" >&5
36770 sed 's/^/| /' conftest.$ac_ext >&5
36772 ac_header_preproc=no
36774 rm -f conftest.err conftest.$ac_ext
36775 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36776 echo "${ECHO_T}$ac_header_preproc" >&6
36778 # So? What about this header?
36779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36781 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36785 ac_header_preproc=yes
36788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36791 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36792 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36793 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36794 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36795 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36798 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36799 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36802 ## ------------------------------------------ ##
36803 ## Report this to the AC_PACKAGE_NAME lists. ##
36804 ## ------------------------------------------ ##
36807 sed "s/^/$as_me: WARNING: /" >&2
36810 echo "$as_me:$LINENO: checking for $ac_header" >&5
36811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36812 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36813 echo $ECHO_N "(cached) $ECHO_C" >&6
36815 eval "$as_ac_Header=\$ac_header_preproc"
36817 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36818 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36822 cat >>confdefs.h <<_ACEOF
36823 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36832 for ac_header in thread.h synch.h
36834 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36835 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36836 echo "$as_me:$LINENO: checking for $ac_header" >&5
36837 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36838 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36839 echo $ECHO_N "(cached) $ECHO_C" >&6
36841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36842 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36844 # Is the header compilable?
36845 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36846 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36847 cat >conftest.$ac_ext <<_ACEOF
36850 cat confdefs.h >>conftest.$ac_ext
36851 cat >>conftest.$ac_ext <<_ACEOF
36852 /* end confdefs.h. */
36853 $ac_includes_default
36854 #include <$ac_header>
36856 rm -f conftest.$ac_objext
36857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36858 (eval $ac_compile) 2>conftest.er1
36860 grep -v '^ *+' conftest.er1 >conftest.err
36862 cat conftest.err >&5
36863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36864 (exit $ac_status); } &&
36865 { ac_try='test -z "$ac_c_werror_flag"
36866 || test ! -s conftest.err'
36867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36868 (eval $ac_try) 2>&5
36870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36871 (exit $ac_status); }; } &&
36872 { ac_try='test -s conftest.$ac_objext'
36873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36874 (eval $ac_try) 2>&5
36876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36877 (exit $ac_status); }; }; then
36878 ac_header_compiler=yes
36880 echo "$as_me: failed program was:" >&5
36881 sed 's/^/| /' conftest.$ac_ext >&5
36883 ac_header_compiler=no
36885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36887 echo "${ECHO_T}$ac_header_compiler" >&6
36889 # Is the header present?
36890 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36892 cat >conftest.$ac_ext <<_ACEOF
36895 cat confdefs.h >>conftest.$ac_ext
36896 cat >>conftest.$ac_ext <<_ACEOF
36897 /* end confdefs.h. */
36898 #include <$ac_header>
36900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36903 grep -v '^ *+' conftest.er1 >conftest.err
36905 cat conftest.err >&5
36906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36907 (exit $ac_status); } >/dev/null; then
36908 if test -s conftest.err; then
36909 ac_cpp_err=$ac_c_preproc_warn_flag
36910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36917 if test -z "$ac_cpp_err"; then
36918 ac_header_preproc=yes
36920 echo "$as_me: failed program was:" >&5
36921 sed 's/^/| /' conftest.$ac_ext >&5
36923 ac_header_preproc=no
36925 rm -f conftest.err conftest.$ac_ext
36926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36927 echo "${ECHO_T}$ac_header_preproc" >&6
36929 # So? What about this header?
36930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36936 ac_header_preproc=yes
36939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36946 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36953 ## ------------------------------------------ ##
36954 ## Report this to the AC_PACKAGE_NAME lists. ##
36955 ## ------------------------------------------ ##
36958 sed "s/^/$as_me: WARNING: /" >&2
36961 echo "$as_me:$LINENO: checking for $ac_header" >&5
36962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36964 echo $ECHO_N "(cached) $ECHO_C" >&6
36966 eval "$as_ac_Header=\$ac_header_preproc"
36968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36973 cat >>confdefs.h <<_ACEOF
36974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36983 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
36984 cat >>confdefs.h <<\_ACEOF
36985 #define REENTRANT 1
36988 cat >>confdefs.h <<\_ACEOF
36989 #define _REENTRANT 1
36992 cat >>confdefs.h <<\_ACEOF
36993 #define THREAD_SAFE 1
36996 cat >>confdefs.h <<\_ACEOF
36997 #define _THREAD_SAFE 1
37000 cat >>confdefs.h <<\_ACEOF
37001 #define THREADSAFE 1
37004 cat >>confdefs.h <<\_ACEOF
37005 #define _THREADSAFE 1
37008 cat >>confdefs.h <<\_ACEOF
37009 #define _SGI_MP_SOURCE 1
37013 echo "$as_me:$LINENO: checking for thread specific errno" >&5
37014 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
37015 if test "${ol_cv_errno_thread_specific+set}" = set; then
37016 echo $ECHO_N "(cached) $ECHO_C" >&6
37019 cat >conftest.$ac_ext <<_ACEOF
37022 cat confdefs.h >>conftest.$ac_ext
37023 cat >>conftest.$ac_ext <<_ACEOF
37024 /* end confdefs.h. */
37034 rm -f conftest.$ac_objext conftest$ac_exeext
37035 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37036 (eval $ac_link) 2>conftest.er1
37038 grep -v '^ *+' conftest.er1 >conftest.err
37040 cat conftest.err >&5
37041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37042 (exit $ac_status); } &&
37043 { ac_try='test -z "$ac_c_werror_flag"
37044 || test ! -s conftest.err'
37045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37046 (eval $ac_try) 2>&5
37048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37049 (exit $ac_status); }; } &&
37050 { ac_try='test -s conftest$ac_exeext'
37051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37052 (eval $ac_try) 2>&5
37054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37055 (exit $ac_status); }; }; then
37056 ol_cv_errno_thread_specific=yes
37058 echo "$as_me: failed program was:" >&5
37059 sed 's/^/| /' conftest.$ac_ext >&5
37061 ol_cv_errno_thread_specific=no
37063 rm -f conftest.err conftest.$ac_objext \
37064 conftest$ac_exeext conftest.$ac_ext
37067 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
37068 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
37070 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
37071 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
37072 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
37073 echo $ECHO_N "(cached) $ECHO_C" >&6
37076 cat >conftest.$ac_ext <<_ACEOF
37079 cat confdefs.h >>conftest.$ac_ext
37080 cat >>conftest.$ac_ext <<_ACEOF
37081 /* end confdefs.h. */
37091 rm -f conftest.$ac_objext conftest$ac_exeext
37092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37093 (eval $ac_link) 2>conftest.er1
37095 grep -v '^ *+' conftest.er1 >conftest.err
37097 cat conftest.err >&5
37098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37099 (exit $ac_status); } &&
37100 { ac_try='test -z "$ac_c_werror_flag"
37101 || test ! -s conftest.err'
37102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37103 (eval $ac_try) 2>&5
37105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37106 (exit $ac_status); }; } &&
37107 { ac_try='test -s conftest$ac_exeext'
37108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37109 (eval $ac_try) 2>&5
37111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37112 (exit $ac_status); }; }; then
37113 ol_cv_h_errno_thread_specific=yes
37115 echo "$as_me: failed program was:" >&5
37116 sed 's/^/| /' conftest.$ac_ext >&5
37118 ol_cv_h_errno_thread_specific=no
37120 rm -f conftest.err conftest.$ac_objext \
37121 conftest$ac_exeext conftest.$ac_ext
37124 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
37125 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
37127 if test $ol_cv_errno_thread_specific != yes \
37128 -o $ol_cv_h_errno_thread_specific != yes ; then
37129 LIBS="$LTHREAD_LIBS $LIBS"
37135 if test $ol_link_threads = no ; then
37136 if test $ol_with_threads = yes ; then
37137 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
37138 echo "$as_me: error: no suitable thread support" >&2;}
37139 { (exit 1); exit 1; }; }
37142 if test $ol_with_threads = auto ; then
37143 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
37144 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
37149 cat >>confdefs.h <<\_ACEOF
37150 #define NO_THREADS 1
37156 if test $ol_link_threads != no ; then
37157 cat >>confdefs.h <<\_ACEOF
37158 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
37168 gethostbyname_r gethostbyaddr_r \
37171 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37172 echo "$as_me:$LINENO: checking for $ac_func" >&5
37173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37174 if eval "test \"\${$as_ac_var+set}\" = set"; then
37175 echo $ECHO_N "(cached) $ECHO_C" >&6
37177 cat >conftest.$ac_ext <<_ACEOF
37180 cat confdefs.h >>conftest.$ac_ext
37181 cat >>conftest.$ac_ext <<_ACEOF
37182 /* end confdefs.h. */
37183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37185 #define $ac_func innocuous_$ac_func
37187 /* System header to define __stub macros and hopefully few prototypes,
37188 which can conflict with char $ac_func (); below.
37189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37190 <limits.h> exists even on freestanding compilers. */
37193 # include <limits.h>
37195 # include <assert.h>
37200 /* Override any gcc2 internal prototype to avoid an error. */
37205 /* We use char because int might match the return type of a gcc2
37206 builtin and then its argument prototype would still apply. */
37208 /* The GNU C library defines this for functions which it implements
37209 to always fail with ENOSYS. Some functions are actually named
37210 something starting with __ and the normal name is an alias. */
37211 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37214 char (*f) () = $ac_func;
37223 return f != $ac_func;
37228 rm -f conftest.$ac_objext conftest$ac_exeext
37229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37230 (eval $ac_link) 2>conftest.er1
37232 grep -v '^ *+' conftest.er1 >conftest.err
37234 cat conftest.err >&5
37235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37236 (exit $ac_status); } &&
37237 { ac_try='test -z "$ac_c_werror_flag"
37238 || test ! -s conftest.err'
37239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37240 (eval $ac_try) 2>&5
37242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37243 (exit $ac_status); }; } &&
37244 { ac_try='test -s conftest$ac_exeext'
37245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37246 (eval $ac_try) 2>&5
37248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37249 (exit $ac_status); }; }; then
37250 eval "$as_ac_var=yes"
37252 echo "$as_me: failed program was:" >&5
37253 sed 's/^/| /' conftest.$ac_ext >&5
37255 eval "$as_ac_var=no"
37257 rm -f conftest.err conftest.$ac_objext \
37258 conftest$ac_exeext conftest.$ac_ext
37260 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37261 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37262 if test `eval echo '${'$as_ac_var'}'` = yes; then
37263 cat >>confdefs.h <<_ACEOF
37264 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37271 if test "$ac_cv_func_ctime_r" = no ; then
37272 ol_cv_func_ctime_r_nargs=0
37274 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
37275 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
37276 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
37277 echo $ECHO_N "(cached) $ECHO_C" >&6
37279 cat >conftest.$ac_ext <<_ACEOF
37282 cat confdefs.h >>conftest.$ac_ext
37283 cat >>conftest.$ac_ext <<_ACEOF
37284 /* end confdefs.h. */
37289 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
37294 rm -f conftest.$ac_objext
37295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37296 (eval $ac_compile) 2>conftest.er1
37298 grep -v '^ *+' conftest.er1 >conftest.err
37300 cat conftest.err >&5
37301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37302 (exit $ac_status); } &&
37303 { ac_try='test -z "$ac_c_werror_flag"
37304 || test ! -s conftest.err'
37305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37306 (eval $ac_try) 2>&5
37308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37309 (exit $ac_status); }; } &&
37310 { ac_try='test -s conftest.$ac_objext'
37311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37312 (eval $ac_try) 2>&5
37314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37315 (exit $ac_status); }; }; then
37316 ol_cv_func_ctime_r_nargs3=yes
37318 echo "$as_me: failed program was:" >&5
37319 sed 's/^/| /' conftest.$ac_ext >&5
37321 ol_cv_func_ctime_r_nargs3=no
37323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37325 cat >conftest.$ac_ext <<_ACEOF
37328 cat confdefs.h >>conftest.$ac_ext
37329 cat >>conftest.$ac_ext <<_ACEOF
37330 /* end confdefs.h. */
37335 time_t ti; char *buffer; ctime_r(&ti,buffer);
37340 rm -f conftest.$ac_objext
37341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37342 (eval $ac_compile) 2>conftest.er1
37344 grep -v '^ *+' conftest.er1 >conftest.err
37346 cat conftest.err >&5
37347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37348 (exit $ac_status); } &&
37349 { ac_try='test -z "$ac_c_werror_flag"
37350 || test ! -s conftest.err'
37351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37352 (eval $ac_try) 2>&5
37354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37355 (exit $ac_status); }; } &&
37356 { ac_try='test -s conftest.$ac_objext'
37357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37358 (eval $ac_try) 2>&5
37360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37361 (exit $ac_status); }; }; then
37362 ol_cv_func_ctime_r_nargs2=yes
37364 echo "$as_me: failed program was:" >&5
37365 sed 's/^/| /' conftest.$ac_ext >&5
37367 ol_cv_func_ctime_r_nargs2=no
37369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37371 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
37372 $ol_cv_func_ctime_r_nargs2 = no ; then
37374 ol_cv_func_ctime_r_nargs=3
37376 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
37377 $ol_cv_func_ctime_r_nargs2 = yes ; then
37379 ol_cv_func_ctime_r_nargs=2
37382 ol_cv_func_ctime_r_nargs=0
37386 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
37387 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
37389 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
37391 cat >>confdefs.h <<_ACEOF
37392 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
37399 if test "$ac_cv_func_gethostbyname_r" = yes ; then
37400 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
37401 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
37402 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
37403 echo $ECHO_N "(cached) $ECHO_C" >&6
37405 cat >conftest.$ac_ext <<_ACEOF
37408 cat confdefs.h >>conftest.$ac_ext
37409 cat >>conftest.$ac_ext <<_ACEOF
37410 /* end confdefs.h. */
37411 #include <sys/types.h>
37412 #include <sys/socket.h>
37413 #include <netinet/in.h>
37415 #define BUFSIZE (sizeof(struct hostent)+10)
37419 struct hostent hent; char buffer[BUFSIZE];
37420 int bufsize=BUFSIZE;int h_errno;
37421 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
37422 buffer, bufsize, &h_errno);
37427 rm -f conftest.$ac_objext
37428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37429 (eval $ac_compile) 2>conftest.er1
37431 grep -v '^ *+' conftest.er1 >conftest.err
37433 cat conftest.err >&5
37434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37435 (exit $ac_status); } &&
37436 { ac_try='test -z "$ac_c_werror_flag"
37437 || test ! -s conftest.err'
37438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37439 (eval $ac_try) 2>&5
37441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37442 (exit $ac_status); }; } &&
37443 { ac_try='test -s conftest.$ac_objext'
37444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37445 (eval $ac_try) 2>&5
37447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37448 (exit $ac_status); }; }; then
37449 ol_cv_func_gethostbyname_r_nargs5=yes
37451 echo "$as_me: failed program was:" >&5
37452 sed 's/^/| /' conftest.$ac_ext >&5
37454 ol_cv_func_gethostbyname_r_nargs5=no
37456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37458 cat >conftest.$ac_ext <<_ACEOF
37461 cat confdefs.h >>conftest.$ac_ext
37462 cat >>conftest.$ac_ext <<_ACEOF
37463 /* end confdefs.h. */
37464 #include <sys/types.h>
37465 #include <sys/socket.h>
37466 #include <netinet/in.h>
37468 #define BUFSIZE (sizeof(struct hostent)+10)
37472 struct hostent hent;struct hostent *rhent;
37473 char buffer[BUFSIZE];
37474 int bufsize=BUFSIZE;int h_errno;
37475 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
37481 rm -f conftest.$ac_objext
37482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37483 (eval $ac_compile) 2>conftest.er1
37485 grep -v '^ *+' conftest.er1 >conftest.err
37487 cat conftest.err >&5
37488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37489 (exit $ac_status); } &&
37490 { ac_try='test -z "$ac_c_werror_flag"
37491 || test ! -s conftest.err'
37492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37493 (eval $ac_try) 2>&5
37495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37496 (exit $ac_status); }; } &&
37497 { ac_try='test -s conftest.$ac_objext'
37498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37499 (eval $ac_try) 2>&5
37501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37502 (exit $ac_status); }; }; then
37503 ol_cv_func_gethostbyname_r_nargs6=yes
37505 echo "$as_me: failed program was:" >&5
37506 sed 's/^/| /' conftest.$ac_ext >&5
37508 ol_cv_func_gethostbyname_r_nargs6=no
37510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37512 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
37513 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
37515 ol_cv_func_gethostbyname_r_nargs=5
37517 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
37518 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
37520 ol_cv_func_gethostbyname_r_nargs=6
37523 ol_cv_func_gethostbyname_r_nargs=0
37527 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
37528 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
37529 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
37531 cat >>confdefs.h <<_ACEOF
37532 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
37538 ol_cv_func_gethostbyname_r_nargs=0
37541 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
37542 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
37543 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
37544 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
37545 echo $ECHO_N "(cached) $ECHO_C" >&6
37547 cat >conftest.$ac_ext <<_ACEOF
37550 cat confdefs.h >>conftest.$ac_ext
37551 cat >>conftest.$ac_ext <<_ACEOF
37552 /* end confdefs.h. */
37553 #include <sys/types.h>
37554 #include <sys/socket.h>
37555 #include <netinet/in.h>
37557 #define BUFSIZE (sizeof(struct hostent)+10)
37561 struct hostent hent; char buffer[BUFSIZE];
37562 struct in_addr add;
37563 size_t alen=sizeof(struct in_addr);
37564 int bufsize=BUFSIZE;int h_errno;
37565 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37566 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
37571 rm -f conftest.$ac_objext
37572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37573 (eval $ac_compile) 2>conftest.er1
37575 grep -v '^ *+' conftest.er1 >conftest.err
37577 cat conftest.err >&5
37578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37579 (exit $ac_status); } &&
37580 { ac_try='test -z "$ac_c_werror_flag"
37581 || test ! -s conftest.err'
37582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37583 (eval $ac_try) 2>&5
37585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37586 (exit $ac_status); }; } &&
37587 { ac_try='test -s conftest.$ac_objext'
37588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37589 (eval $ac_try) 2>&5
37591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37592 (exit $ac_status); }; }; then
37593 ol_cv_func_gethostbyaddr_r_nargs7=yes
37595 echo "$as_me: failed program was:" >&5
37596 sed 's/^/| /' conftest.$ac_ext >&5
37598 ol_cv_func_gethostbyaddr_r_nargs7=no
37600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37602 cat >conftest.$ac_ext <<_ACEOF
37605 cat confdefs.h >>conftest.$ac_ext
37606 cat >>conftest.$ac_ext <<_ACEOF
37607 /* end confdefs.h. */
37608 #include <sys/types.h>
37609 #include <sys/socket.h>
37610 #include <netinet/in.h>
37612 #define BUFSIZE (sizeof(struct hostent)+10)
37616 struct hostent hent;
37617 struct hostent *rhent; char buffer[BUFSIZE];
37618 struct in_addr add;
37619 size_t alen=sizeof(struct in_addr);
37620 int bufsize=BUFSIZE;int h_errno;
37621 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37622 alen, AF_INET, &hent, buffer, bufsize,
37628 rm -f conftest.$ac_objext
37629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37630 (eval $ac_compile) 2>conftest.er1
37632 grep -v '^ *+' conftest.er1 >conftest.err
37634 cat conftest.err >&5
37635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37636 (exit $ac_status); } &&
37637 { ac_try='test -z "$ac_c_werror_flag"
37638 || test ! -s conftest.err'
37639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37640 (eval $ac_try) 2>&5
37642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37643 (exit $ac_status); }; } &&
37644 { ac_try='test -s conftest.$ac_objext'
37645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37646 (eval $ac_try) 2>&5
37648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37649 (exit $ac_status); }; }; then
37650 ol_cv_func_gethostbyaddr_r_nargs8=yes
37652 echo "$as_me: failed program was:" >&5
37653 sed 's/^/| /' conftest.$ac_ext >&5
37655 ol_cv_func_gethostbyaddr_r_nargs8=no
37657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37659 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
37660 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
37662 ol_cv_func_gethostbyaddr_r_nargs=7
37664 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
37665 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
37667 ol_cv_func_gethostbyaddr_r_nargs=8
37670 ol_cv_func_gethostbyaddr_r_nargs=0
37674 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
37675 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
37676 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
37678 cat >>confdefs.h <<_ACEOF
37679 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
37685 ol_cv_func_gethostbyaddr_r_nargs=0
37690 if test $ol_with_ldbm_api = auto \
37691 -o $ol_with_ldbm_api = berkeley \
37692 -o $ol_with_ldbm_api = bcompat ; then
37694 if test $ol_with_ldbm_api = bcompat; then \
37697 for ac_header in db_185.h db.h
37699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37700 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37701 echo "$as_me:$LINENO: checking for $ac_header" >&5
37702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37703 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37704 echo $ECHO_N "(cached) $ECHO_C" >&6
37706 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37707 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37709 # Is the header compilable?
37710 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37712 cat >conftest.$ac_ext <<_ACEOF
37715 cat confdefs.h >>conftest.$ac_ext
37716 cat >>conftest.$ac_ext <<_ACEOF
37717 /* end confdefs.h. */
37718 $ac_includes_default
37719 #include <$ac_header>
37721 rm -f conftest.$ac_objext
37722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37723 (eval $ac_compile) 2>conftest.er1
37725 grep -v '^ *+' conftest.er1 >conftest.err
37727 cat conftest.err >&5
37728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37729 (exit $ac_status); } &&
37730 { ac_try='test -z "$ac_c_werror_flag"
37731 || test ! -s conftest.err'
37732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37733 (eval $ac_try) 2>&5
37735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37736 (exit $ac_status); }; } &&
37737 { ac_try='test -s conftest.$ac_objext'
37738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37739 (eval $ac_try) 2>&5
37741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37742 (exit $ac_status); }; }; then
37743 ac_header_compiler=yes
37745 echo "$as_me: failed program was:" >&5
37746 sed 's/^/| /' conftest.$ac_ext >&5
37748 ac_header_compiler=no
37750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37751 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37752 echo "${ECHO_T}$ac_header_compiler" >&6
37754 # Is the header present?
37755 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37757 cat >conftest.$ac_ext <<_ACEOF
37760 cat confdefs.h >>conftest.$ac_ext
37761 cat >>conftest.$ac_ext <<_ACEOF
37762 /* end confdefs.h. */
37763 #include <$ac_header>
37765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37768 grep -v '^ *+' conftest.er1 >conftest.err
37770 cat conftest.err >&5
37771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37772 (exit $ac_status); } >/dev/null; then
37773 if test -s conftest.err; then
37774 ac_cpp_err=$ac_c_preproc_warn_flag
37775 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37782 if test -z "$ac_cpp_err"; then
37783 ac_header_preproc=yes
37785 echo "$as_me: failed program was:" >&5
37786 sed 's/^/| /' conftest.$ac_ext >&5
37788 ac_header_preproc=no
37790 rm -f conftest.err conftest.$ac_ext
37791 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37792 echo "${ECHO_T}$ac_header_preproc" >&6
37794 # So? What about this header?
37795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37797 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37801 ac_header_preproc=yes
37804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37807 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37808 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37810 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37811 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37812 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37814 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37818 ## ------------------------------------------ ##
37819 ## Report this to the AC_PACKAGE_NAME lists. ##
37820 ## ------------------------------------------ ##
37823 sed "s/^/$as_me: WARNING: /" >&2
37826 echo "$as_me:$LINENO: checking for $ac_header" >&5
37827 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37828 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37829 echo $ECHO_N "(cached) $ECHO_C" >&6
37831 eval "$as_ac_Header=\$ac_header_preproc"
37833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37838 cat >>confdefs.h <<_ACEOF
37839 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37846 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
37847 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
37848 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
37849 if test "${ol_cv_header_db1+set}" = set; then
37850 echo $ECHO_N "(cached) $ECHO_C" >&6
37853 cat >conftest.$ac_ext <<_ACEOF
37856 cat confdefs.h >>conftest.$ac_ext
37857 cat >>conftest.$ac_ext <<_ACEOF
37858 /* end confdefs.h. */
37861 # include <db_185.h>
37866 /* this check could be improved */
37867 #ifndef DB_VERSION_MAJOR
37868 # define DB_VERSION_MAJOR 1
37871 #if DB_VERSION_MAJOR == 1
37876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37877 $EGREP "__db_version_1" >/dev/null 2>&1; then
37878 ol_cv_header_db1=yes
37880 ol_cv_header_db1=no
37885 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
37886 echo "${ECHO_T}$ol_cv_header_db1" >&6
37888 if test $ol_cv_header_db1 = yes ; then
37890 if test $ol_cv_lib_db = no ; then
37891 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
37892 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
37893 if test "${ol_cv_db_none+set}" = set; then
37894 echo $ECHO_N "(cached) $ECHO_C" >&6
37899 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
37901 cat >conftest.$ac_ext <<_ACEOF
37904 cat confdefs.h >>conftest.$ac_ext
37905 cat >>conftest.$ac_ext <<_ACEOF
37906 /* end confdefs.h. */
37908 #ifdef HAVE_DB_185_H
37909 # include <db_185.h>
37914 #ifndef DB_VERSION_MAJOR
37915 # define DB_VERSION_MAJOR 1
37919 #define NULL ((void*)0)
37926 #if DB_VERSION_MAJOR > 1
37929 int major, minor, patch;
37931 version = db_version( &major, &minor, &patch );
37933 if( major != DB_VERSION_MAJOR ||
37934 minor < DB_VERSION_MINOR )
37936 printf("Berkeley DB version mismatch\n"
37937 "\theader: %s\n\tlibrary: %s\n",
37938 DB_VERSION_STRING, version);
37944 #if DB_VERSION_MAJOR > 2
37945 db_env_create( NULL, 0 );
37946 #elif DB_VERSION_MAJOR > 1
37947 db_appexit( NULL );
37949 (void) dbopen( NULL, 0, 0, 0, NULL);
37956 rm -f conftest.$ac_objext conftest$ac_exeext
37957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37958 (eval $ac_link) 2>conftest.er1
37960 grep -v '^ *+' conftest.er1 >conftest.err
37962 cat conftest.err >&5
37963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37964 (exit $ac_status); } &&
37965 { ac_try='test -z "$ac_c_werror_flag"
37966 || test ! -s conftest.err'
37967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37968 (eval $ac_try) 2>&5
37970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37971 (exit $ac_status); }; } &&
37972 { ac_try='test -s conftest$ac_exeext'
37973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37974 (eval $ac_try) 2>&5
37976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37977 (exit $ac_status); }; }; then
37980 echo "$as_me: failed program was:" >&5
37981 sed 's/^/| /' conftest.$ac_ext >&5
37985 rm -f conftest.err conftest.$ac_objext \
37986 conftest$ac_exeext conftest.$ac_ext
37991 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
37992 echo "${ECHO_T}$ol_cv_db_none" >&6
37994 if test $ol_cv_db_none = yes ; then
37999 if test $ol_cv_lib_db = no ; then
38000 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
38001 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
38002 if test "${ol_cv_db_db43+set}" = set; then
38003 echo $ECHO_N "(cached) $ECHO_C" >&6
38008 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38010 cat >conftest.$ac_ext <<_ACEOF
38013 cat confdefs.h >>conftest.$ac_ext
38014 cat >>conftest.$ac_ext <<_ACEOF
38015 /* end confdefs.h. */
38017 #ifdef HAVE_DB_185_H
38018 # include <db_185.h>
38023 #ifndef DB_VERSION_MAJOR
38024 # define DB_VERSION_MAJOR 1
38028 #define NULL ((void*)0)
38035 #if DB_VERSION_MAJOR > 1
38038 int major, minor, patch;
38040 version = db_version( &major, &minor, &patch );
38042 if( major != DB_VERSION_MAJOR ||
38043 minor < DB_VERSION_MINOR )
38045 printf("Berkeley DB version mismatch\n"
38046 "\theader: %s\n\tlibrary: %s\n",
38047 DB_VERSION_STRING, version);
38053 #if DB_VERSION_MAJOR > 2
38054 db_env_create( NULL, 0 );
38055 #elif DB_VERSION_MAJOR > 1
38056 db_appexit( NULL );
38058 (void) dbopen( NULL, 0, 0, 0, NULL);
38065 rm -f conftest.$ac_objext conftest$ac_exeext
38066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38067 (eval $ac_link) 2>conftest.er1
38069 grep -v '^ *+' conftest.er1 >conftest.err
38071 cat conftest.err >&5
38072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38073 (exit $ac_status); } &&
38074 { ac_try='test -z "$ac_c_werror_flag"
38075 || test ! -s conftest.err'
38076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38077 (eval $ac_try) 2>&5
38079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38080 (exit $ac_status); }; } &&
38081 { ac_try='test -s conftest$ac_exeext'
38082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38083 (eval $ac_try) 2>&5
38085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38086 (exit $ac_status); }; }; then
38089 echo "$as_me: failed program was:" >&5
38090 sed 's/^/| /' conftest.$ac_ext >&5
38094 rm -f conftest.err conftest.$ac_objext \
38095 conftest$ac_exeext conftest.$ac_ext
38100 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
38101 echo "${ECHO_T}$ol_cv_db_db43" >&6
38103 if test $ol_cv_db_db43 = yes ; then
38104 ol_cv_lib_db=-ldb43
38108 if test $ol_cv_lib_db = no ; then
38109 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
38110 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
38111 if test "${ol_cv_db_db_43+set}" = set; then
38112 echo $ECHO_N "(cached) $ECHO_C" >&6
38117 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38119 cat >conftest.$ac_ext <<_ACEOF
38122 cat confdefs.h >>conftest.$ac_ext
38123 cat >>conftest.$ac_ext <<_ACEOF
38124 /* end confdefs.h. */
38126 #ifdef HAVE_DB_185_H
38127 # include <db_185.h>
38132 #ifndef DB_VERSION_MAJOR
38133 # define DB_VERSION_MAJOR 1
38137 #define NULL ((void*)0)
38144 #if DB_VERSION_MAJOR > 1
38147 int major, minor, patch;
38149 version = db_version( &major, &minor, &patch );
38151 if( major != DB_VERSION_MAJOR ||
38152 minor < DB_VERSION_MINOR )
38154 printf("Berkeley DB version mismatch\n"
38155 "\theader: %s\n\tlibrary: %s\n",
38156 DB_VERSION_STRING, version);
38162 #if DB_VERSION_MAJOR > 2
38163 db_env_create( NULL, 0 );
38164 #elif DB_VERSION_MAJOR > 1
38165 db_appexit( NULL );
38167 (void) dbopen( NULL, 0, 0, 0, NULL);
38174 rm -f conftest.$ac_objext conftest$ac_exeext
38175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38176 (eval $ac_link) 2>conftest.er1
38178 grep -v '^ *+' conftest.er1 >conftest.err
38180 cat conftest.err >&5
38181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38182 (exit $ac_status); } &&
38183 { ac_try='test -z "$ac_c_werror_flag"
38184 || test ! -s conftest.err'
38185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38186 (eval $ac_try) 2>&5
38188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38189 (exit $ac_status); }; } &&
38190 { ac_try='test -s conftest$ac_exeext'
38191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38192 (eval $ac_try) 2>&5
38194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38195 (exit $ac_status); }; }; then
38198 echo "$as_me: failed program was:" >&5
38199 sed 's/^/| /' conftest.$ac_ext >&5
38203 rm -f conftest.err conftest.$ac_objext \
38204 conftest$ac_exeext conftest.$ac_ext
38209 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
38210 echo "${ECHO_T}$ol_cv_db_db_43" >&6
38212 if test $ol_cv_db_db_43 = yes ; then
38213 ol_cv_lib_db=-ldb-43
38217 if test $ol_cv_lib_db = no ; then
38218 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
38219 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
38220 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
38221 echo $ECHO_N "(cached) $ECHO_C" >&6
38226 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38228 cat >conftest.$ac_ext <<_ACEOF
38231 cat confdefs.h >>conftest.$ac_ext
38232 cat >>conftest.$ac_ext <<_ACEOF
38233 /* end confdefs.h. */
38235 #ifdef HAVE_DB_185_H
38236 # include <db_185.h>
38241 #ifndef DB_VERSION_MAJOR
38242 # define DB_VERSION_MAJOR 1
38246 #define NULL ((void*)0)
38253 #if DB_VERSION_MAJOR > 1
38256 int major, minor, patch;
38258 version = db_version( &major, &minor, &patch );
38260 if( major != DB_VERSION_MAJOR ||
38261 minor < DB_VERSION_MINOR )
38263 printf("Berkeley DB version mismatch\n"
38264 "\theader: %s\n\tlibrary: %s\n",
38265 DB_VERSION_STRING, version);
38271 #if DB_VERSION_MAJOR > 2
38272 db_env_create( NULL, 0 );
38273 #elif DB_VERSION_MAJOR > 1
38274 db_appexit( NULL );
38276 (void) dbopen( NULL, 0, 0, 0, NULL);
38283 rm -f conftest.$ac_objext conftest$ac_exeext
38284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38285 (eval $ac_link) 2>conftest.er1
38287 grep -v '^ *+' conftest.er1 >conftest.err
38289 cat conftest.err >&5
38290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38291 (exit $ac_status); } &&
38292 { ac_try='test -z "$ac_c_werror_flag"
38293 || test ! -s conftest.err'
38294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38295 (eval $ac_try) 2>&5
38297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38298 (exit $ac_status); }; } &&
38299 { ac_try='test -s conftest$ac_exeext'
38300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38301 (eval $ac_try) 2>&5
38303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38304 (exit $ac_status); }; }; then
38305 ol_cv_db_db_4_dot_3=yes
38307 echo "$as_me: failed program was:" >&5
38308 sed 's/^/| /' conftest.$ac_ext >&5
38310 ol_cv_db_db_4_dot_3=no
38312 rm -f conftest.err conftest.$ac_objext \
38313 conftest$ac_exeext conftest.$ac_ext
38318 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
38319 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
38321 if test $ol_cv_db_db_4_dot_3 = yes ; then
38322 ol_cv_lib_db=-ldb-4.3
38326 if test $ol_cv_lib_db = no ; then
38327 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
38328 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
38329 if test "${ol_cv_db_db_4_3+set}" = set; then
38330 echo $ECHO_N "(cached) $ECHO_C" >&6
38335 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38337 cat >conftest.$ac_ext <<_ACEOF
38340 cat confdefs.h >>conftest.$ac_ext
38341 cat >>conftest.$ac_ext <<_ACEOF
38342 /* end confdefs.h. */
38344 #ifdef HAVE_DB_185_H
38345 # include <db_185.h>
38350 #ifndef DB_VERSION_MAJOR
38351 # define DB_VERSION_MAJOR 1
38355 #define NULL ((void*)0)
38362 #if DB_VERSION_MAJOR > 1
38365 int major, minor, patch;
38367 version = db_version( &major, &minor, &patch );
38369 if( major != DB_VERSION_MAJOR ||
38370 minor < DB_VERSION_MINOR )
38372 printf("Berkeley DB version mismatch\n"
38373 "\theader: %s\n\tlibrary: %s\n",
38374 DB_VERSION_STRING, version);
38380 #if DB_VERSION_MAJOR > 2
38381 db_env_create( NULL, 0 );
38382 #elif DB_VERSION_MAJOR > 1
38383 db_appexit( NULL );
38385 (void) dbopen( NULL, 0, 0, 0, NULL);
38392 rm -f conftest.$ac_objext conftest$ac_exeext
38393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38394 (eval $ac_link) 2>conftest.er1
38396 grep -v '^ *+' conftest.er1 >conftest.err
38398 cat conftest.err >&5
38399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38400 (exit $ac_status); } &&
38401 { ac_try='test -z "$ac_c_werror_flag"
38402 || test ! -s conftest.err'
38403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38404 (eval $ac_try) 2>&5
38406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38407 (exit $ac_status); }; } &&
38408 { ac_try='test -s conftest$ac_exeext'
38409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38410 (eval $ac_try) 2>&5
38412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38413 (exit $ac_status); }; }; then
38414 ol_cv_db_db_4_3=yes
38416 echo "$as_me: failed program was:" >&5
38417 sed 's/^/| /' conftest.$ac_ext >&5
38421 rm -f conftest.err conftest.$ac_objext \
38422 conftest$ac_exeext conftest.$ac_ext
38427 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
38428 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
38430 if test $ol_cv_db_db_4_3 = yes ; then
38431 ol_cv_lib_db=-ldb-4-3
38435 if test $ol_cv_lib_db = no ; then
38436 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
38437 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
38438 if test "${ol_cv_db_db42+set}" = set; then
38439 echo $ECHO_N "(cached) $ECHO_C" >&6
38444 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38446 cat >conftest.$ac_ext <<_ACEOF
38449 cat confdefs.h >>conftest.$ac_ext
38450 cat >>conftest.$ac_ext <<_ACEOF
38451 /* end confdefs.h. */
38453 #ifdef HAVE_DB_185_H
38454 # include <db_185.h>
38459 #ifndef DB_VERSION_MAJOR
38460 # define DB_VERSION_MAJOR 1
38464 #define NULL ((void*)0)
38471 #if DB_VERSION_MAJOR > 1
38474 int major, minor, patch;
38476 version = db_version( &major, &minor, &patch );
38478 if( major != DB_VERSION_MAJOR ||
38479 minor < DB_VERSION_MINOR )
38481 printf("Berkeley DB version mismatch\n"
38482 "\theader: %s\n\tlibrary: %s\n",
38483 DB_VERSION_STRING, version);
38489 #if DB_VERSION_MAJOR > 2
38490 db_env_create( NULL, 0 );
38491 #elif DB_VERSION_MAJOR > 1
38492 db_appexit( NULL );
38494 (void) dbopen( NULL, 0, 0, 0, NULL);
38501 rm -f conftest.$ac_objext conftest$ac_exeext
38502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38503 (eval $ac_link) 2>conftest.er1
38505 grep -v '^ *+' conftest.er1 >conftest.err
38507 cat conftest.err >&5
38508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38509 (exit $ac_status); } &&
38510 { ac_try='test -z "$ac_c_werror_flag"
38511 || test ! -s conftest.err'
38512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38513 (eval $ac_try) 2>&5
38515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38516 (exit $ac_status); }; } &&
38517 { ac_try='test -s conftest$ac_exeext'
38518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38519 (eval $ac_try) 2>&5
38521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38522 (exit $ac_status); }; }; then
38525 echo "$as_me: failed program was:" >&5
38526 sed 's/^/| /' conftest.$ac_ext >&5
38530 rm -f conftest.err conftest.$ac_objext \
38531 conftest$ac_exeext conftest.$ac_ext
38536 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
38537 echo "${ECHO_T}$ol_cv_db_db42" >&6
38539 if test $ol_cv_db_db42 = yes ; then
38540 ol_cv_lib_db=-ldb42
38544 if test $ol_cv_lib_db = no ; then
38545 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
38546 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
38547 if test "${ol_cv_db_db_42+set}" = set; then
38548 echo $ECHO_N "(cached) $ECHO_C" >&6
38553 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38555 cat >conftest.$ac_ext <<_ACEOF
38558 cat confdefs.h >>conftest.$ac_ext
38559 cat >>conftest.$ac_ext <<_ACEOF
38560 /* end confdefs.h. */
38562 #ifdef HAVE_DB_185_H
38563 # include <db_185.h>
38568 #ifndef DB_VERSION_MAJOR
38569 # define DB_VERSION_MAJOR 1
38573 #define NULL ((void*)0)
38580 #if DB_VERSION_MAJOR > 1
38583 int major, minor, patch;
38585 version = db_version( &major, &minor, &patch );
38587 if( major != DB_VERSION_MAJOR ||
38588 minor < DB_VERSION_MINOR )
38590 printf("Berkeley DB version mismatch\n"
38591 "\theader: %s\n\tlibrary: %s\n",
38592 DB_VERSION_STRING, version);
38598 #if DB_VERSION_MAJOR > 2
38599 db_env_create( NULL, 0 );
38600 #elif DB_VERSION_MAJOR > 1
38601 db_appexit( NULL );
38603 (void) dbopen( NULL, 0, 0, 0, NULL);
38610 rm -f conftest.$ac_objext conftest$ac_exeext
38611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38612 (eval $ac_link) 2>conftest.er1
38614 grep -v '^ *+' conftest.er1 >conftest.err
38616 cat conftest.err >&5
38617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38618 (exit $ac_status); } &&
38619 { ac_try='test -z "$ac_c_werror_flag"
38620 || test ! -s conftest.err'
38621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38622 (eval $ac_try) 2>&5
38624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38625 (exit $ac_status); }; } &&
38626 { ac_try='test -s conftest$ac_exeext'
38627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38628 (eval $ac_try) 2>&5
38630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38631 (exit $ac_status); }; }; then
38634 echo "$as_me: failed program was:" >&5
38635 sed 's/^/| /' conftest.$ac_ext >&5
38639 rm -f conftest.err conftest.$ac_objext \
38640 conftest$ac_exeext conftest.$ac_ext
38645 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
38646 echo "${ECHO_T}$ol_cv_db_db_42" >&6
38648 if test $ol_cv_db_db_42 = yes ; then
38649 ol_cv_lib_db=-ldb-42
38653 if test $ol_cv_lib_db = no ; then
38654 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
38655 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
38656 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
38657 echo $ECHO_N "(cached) $ECHO_C" >&6
38662 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38664 cat >conftest.$ac_ext <<_ACEOF
38667 cat confdefs.h >>conftest.$ac_ext
38668 cat >>conftest.$ac_ext <<_ACEOF
38669 /* end confdefs.h. */
38671 #ifdef HAVE_DB_185_H
38672 # include <db_185.h>
38677 #ifndef DB_VERSION_MAJOR
38678 # define DB_VERSION_MAJOR 1
38682 #define NULL ((void*)0)
38689 #if DB_VERSION_MAJOR > 1
38692 int major, minor, patch;
38694 version = db_version( &major, &minor, &patch );
38696 if( major != DB_VERSION_MAJOR ||
38697 minor < DB_VERSION_MINOR )
38699 printf("Berkeley DB version mismatch\n"
38700 "\theader: %s\n\tlibrary: %s\n",
38701 DB_VERSION_STRING, version);
38707 #if DB_VERSION_MAJOR > 2
38708 db_env_create( NULL, 0 );
38709 #elif DB_VERSION_MAJOR > 1
38710 db_appexit( NULL );
38712 (void) dbopen( NULL, 0, 0, 0, NULL);
38719 rm -f conftest.$ac_objext conftest$ac_exeext
38720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38721 (eval $ac_link) 2>conftest.er1
38723 grep -v '^ *+' conftest.er1 >conftest.err
38725 cat conftest.err >&5
38726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38727 (exit $ac_status); } &&
38728 { ac_try='test -z "$ac_c_werror_flag"
38729 || test ! -s conftest.err'
38730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38731 (eval $ac_try) 2>&5
38733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38734 (exit $ac_status); }; } &&
38735 { ac_try='test -s conftest$ac_exeext'
38736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38737 (eval $ac_try) 2>&5
38739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38740 (exit $ac_status); }; }; then
38741 ol_cv_db_db_4_dot_2=yes
38743 echo "$as_me: failed program was:" >&5
38744 sed 's/^/| /' conftest.$ac_ext >&5
38746 ol_cv_db_db_4_dot_2=no
38748 rm -f conftest.err conftest.$ac_objext \
38749 conftest$ac_exeext conftest.$ac_ext
38754 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
38755 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
38757 if test $ol_cv_db_db_4_dot_2 = yes ; then
38758 ol_cv_lib_db=-ldb-4.2
38762 if test $ol_cv_lib_db = no ; then
38763 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
38764 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
38765 if test "${ol_cv_db_db_4_2+set}" = set; then
38766 echo $ECHO_N "(cached) $ECHO_C" >&6
38771 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38773 cat >conftest.$ac_ext <<_ACEOF
38776 cat confdefs.h >>conftest.$ac_ext
38777 cat >>conftest.$ac_ext <<_ACEOF
38778 /* end confdefs.h. */
38780 #ifdef HAVE_DB_185_H
38781 # include <db_185.h>
38786 #ifndef DB_VERSION_MAJOR
38787 # define DB_VERSION_MAJOR 1
38791 #define NULL ((void*)0)
38798 #if DB_VERSION_MAJOR > 1
38801 int major, minor, patch;
38803 version = db_version( &major, &minor, &patch );
38805 if( major != DB_VERSION_MAJOR ||
38806 minor < DB_VERSION_MINOR )
38808 printf("Berkeley DB version mismatch\n"
38809 "\theader: %s\n\tlibrary: %s\n",
38810 DB_VERSION_STRING, version);
38816 #if DB_VERSION_MAJOR > 2
38817 db_env_create( NULL, 0 );
38818 #elif DB_VERSION_MAJOR > 1
38819 db_appexit( NULL );
38821 (void) dbopen( NULL, 0, 0, 0, NULL);
38828 rm -f conftest.$ac_objext conftest$ac_exeext
38829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38830 (eval $ac_link) 2>conftest.er1
38832 grep -v '^ *+' conftest.er1 >conftest.err
38834 cat conftest.err >&5
38835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38836 (exit $ac_status); } &&
38837 { ac_try='test -z "$ac_c_werror_flag"
38838 || test ! -s conftest.err'
38839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38840 (eval $ac_try) 2>&5
38842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38843 (exit $ac_status); }; } &&
38844 { ac_try='test -s conftest$ac_exeext'
38845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38846 (eval $ac_try) 2>&5
38848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38849 (exit $ac_status); }; }; then
38850 ol_cv_db_db_4_2=yes
38852 echo "$as_me: failed program was:" >&5
38853 sed 's/^/| /' conftest.$ac_ext >&5
38857 rm -f conftest.err conftest.$ac_objext \
38858 conftest$ac_exeext conftest.$ac_ext
38863 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
38864 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
38866 if test $ol_cv_db_db_4_2 = yes ; then
38867 ol_cv_lib_db=-ldb-4-2
38871 if test $ol_cv_lib_db = no ; then
38872 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
38873 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
38874 if test "${ol_cv_db_db_4+set}" = set; then
38875 echo $ECHO_N "(cached) $ECHO_C" >&6
38880 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38882 cat >conftest.$ac_ext <<_ACEOF
38885 cat confdefs.h >>conftest.$ac_ext
38886 cat >>conftest.$ac_ext <<_ACEOF
38887 /* end confdefs.h. */
38889 #ifdef HAVE_DB_185_H
38890 # include <db_185.h>
38895 #ifndef DB_VERSION_MAJOR
38896 # define DB_VERSION_MAJOR 1
38900 #define NULL ((void*)0)
38907 #if DB_VERSION_MAJOR > 1
38910 int major, minor, patch;
38912 version = db_version( &major, &minor, &patch );
38914 if( major != DB_VERSION_MAJOR ||
38915 minor < DB_VERSION_MINOR )
38917 printf("Berkeley DB version mismatch\n"
38918 "\theader: %s\n\tlibrary: %s\n",
38919 DB_VERSION_STRING, version);
38925 #if DB_VERSION_MAJOR > 2
38926 db_env_create( NULL, 0 );
38927 #elif DB_VERSION_MAJOR > 1
38928 db_appexit( NULL );
38930 (void) dbopen( NULL, 0, 0, 0, NULL);
38937 rm -f conftest.$ac_objext conftest$ac_exeext
38938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38939 (eval $ac_link) 2>conftest.er1
38941 grep -v '^ *+' conftest.er1 >conftest.err
38943 cat conftest.err >&5
38944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38945 (exit $ac_status); } &&
38946 { ac_try='test -z "$ac_c_werror_flag"
38947 || test ! -s conftest.err'
38948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38949 (eval $ac_try) 2>&5
38951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38952 (exit $ac_status); }; } &&
38953 { ac_try='test -s conftest$ac_exeext'
38954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38955 (eval $ac_try) 2>&5
38957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38958 (exit $ac_status); }; }; then
38961 echo "$as_me: failed program was:" >&5
38962 sed 's/^/| /' conftest.$ac_ext >&5
38966 rm -f conftest.err conftest.$ac_objext \
38967 conftest$ac_exeext conftest.$ac_ext
38972 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
38973 echo "${ECHO_T}$ol_cv_db_db_4" >&6
38975 if test $ol_cv_db_db_4 = yes ; then
38976 ol_cv_lib_db=-ldb-4
38980 if test $ol_cv_lib_db = no ; then
38981 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
38982 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
38983 if test "${ol_cv_db_db4+set}" = set; then
38984 echo $ECHO_N "(cached) $ECHO_C" >&6
38989 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38991 cat >conftest.$ac_ext <<_ACEOF
38994 cat confdefs.h >>conftest.$ac_ext
38995 cat >>conftest.$ac_ext <<_ACEOF
38996 /* end confdefs.h. */
38998 #ifdef HAVE_DB_185_H
38999 # include <db_185.h>
39004 #ifndef DB_VERSION_MAJOR
39005 # define DB_VERSION_MAJOR 1
39009 #define NULL ((void*)0)
39016 #if DB_VERSION_MAJOR > 1
39019 int major, minor, patch;
39021 version = db_version( &major, &minor, &patch );
39023 if( major != DB_VERSION_MAJOR ||
39024 minor < DB_VERSION_MINOR )
39026 printf("Berkeley DB version mismatch\n"
39027 "\theader: %s\n\tlibrary: %s\n",
39028 DB_VERSION_STRING, version);
39034 #if DB_VERSION_MAJOR > 2
39035 db_env_create( NULL, 0 );
39036 #elif DB_VERSION_MAJOR > 1
39037 db_appexit( NULL );
39039 (void) dbopen( NULL, 0, 0, 0, NULL);
39046 rm -f conftest.$ac_objext conftest$ac_exeext
39047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39048 (eval $ac_link) 2>conftest.er1
39050 grep -v '^ *+' conftest.er1 >conftest.err
39052 cat conftest.err >&5
39053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39054 (exit $ac_status); } &&
39055 { ac_try='test -z "$ac_c_werror_flag"
39056 || test ! -s conftest.err'
39057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39058 (eval $ac_try) 2>&5
39060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39061 (exit $ac_status); }; } &&
39062 { ac_try='test -s conftest$ac_exeext'
39063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39064 (eval $ac_try) 2>&5
39066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39067 (exit $ac_status); }; }; then
39070 echo "$as_me: failed program was:" >&5
39071 sed 's/^/| /' conftest.$ac_ext >&5
39075 rm -f conftest.err conftest.$ac_objext \
39076 conftest$ac_exeext conftest.$ac_ext
39081 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
39082 echo "${ECHO_T}$ol_cv_db_db4" >&6
39084 if test $ol_cv_db_db4 = yes ; then
39089 if test $ol_cv_lib_db = no ; then
39090 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
39091 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
39092 if test "${ol_cv_db_db+set}" = set; then
39093 echo $ECHO_N "(cached) $ECHO_C" >&6
39098 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39100 cat >conftest.$ac_ext <<_ACEOF
39103 cat confdefs.h >>conftest.$ac_ext
39104 cat >>conftest.$ac_ext <<_ACEOF
39105 /* end confdefs.h. */
39107 #ifdef HAVE_DB_185_H
39108 # include <db_185.h>
39113 #ifndef DB_VERSION_MAJOR
39114 # define DB_VERSION_MAJOR 1
39118 #define NULL ((void*)0)
39125 #if DB_VERSION_MAJOR > 1
39128 int major, minor, patch;
39130 version = db_version( &major, &minor, &patch );
39132 if( major != DB_VERSION_MAJOR ||
39133 minor < DB_VERSION_MINOR )
39135 printf("Berkeley DB version mismatch\n"
39136 "\theader: %s\n\tlibrary: %s\n",
39137 DB_VERSION_STRING, version);
39143 #if DB_VERSION_MAJOR > 2
39144 db_env_create( NULL, 0 );
39145 #elif DB_VERSION_MAJOR > 1
39146 db_appexit( NULL );
39148 (void) dbopen( NULL, 0, 0, 0, NULL);
39155 rm -f conftest.$ac_objext conftest$ac_exeext
39156 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39157 (eval $ac_link) 2>conftest.er1
39159 grep -v '^ *+' conftest.er1 >conftest.err
39161 cat conftest.err >&5
39162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39163 (exit $ac_status); } &&
39164 { ac_try='test -z "$ac_c_werror_flag"
39165 || test ! -s conftest.err'
39166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39167 (eval $ac_try) 2>&5
39169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39170 (exit $ac_status); }; } &&
39171 { ac_try='test -s conftest$ac_exeext'
39172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39173 (eval $ac_try) 2>&5
39175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39176 (exit $ac_status); }; }; then
39179 echo "$as_me: failed program was:" >&5
39180 sed 's/^/| /' conftest.$ac_ext >&5
39184 rm -f conftest.err conftest.$ac_objext \
39185 conftest$ac_exeext conftest.$ac_ext
39190 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
39191 echo "${ECHO_T}$ol_cv_db_db" >&6
39193 if test $ol_cv_db_db = yes ; then
39198 if test $ol_cv_lib_db = no ; then
39199 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
39200 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
39201 if test "${ol_cv_db_db41+set}" = set; then
39202 echo $ECHO_N "(cached) $ECHO_C" >&6
39207 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39209 cat >conftest.$ac_ext <<_ACEOF
39212 cat confdefs.h >>conftest.$ac_ext
39213 cat >>conftest.$ac_ext <<_ACEOF
39214 /* end confdefs.h. */
39216 #ifdef HAVE_DB_185_H
39217 # include <db_185.h>
39222 #ifndef DB_VERSION_MAJOR
39223 # define DB_VERSION_MAJOR 1
39227 #define NULL ((void*)0)
39234 #if DB_VERSION_MAJOR > 1
39237 int major, minor, patch;
39239 version = db_version( &major, &minor, &patch );
39241 if( major != DB_VERSION_MAJOR ||
39242 minor < DB_VERSION_MINOR )
39244 printf("Berkeley DB version mismatch\n"
39245 "\theader: %s\n\tlibrary: %s\n",
39246 DB_VERSION_STRING, version);
39252 #if DB_VERSION_MAJOR > 2
39253 db_env_create( NULL, 0 );
39254 #elif DB_VERSION_MAJOR > 1
39255 db_appexit( NULL );
39257 (void) dbopen( NULL, 0, 0, 0, NULL);
39264 rm -f conftest.$ac_objext conftest$ac_exeext
39265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39266 (eval $ac_link) 2>conftest.er1
39268 grep -v '^ *+' conftest.er1 >conftest.err
39270 cat conftest.err >&5
39271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39272 (exit $ac_status); } &&
39273 { ac_try='test -z "$ac_c_werror_flag"
39274 || test ! -s conftest.err'
39275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39276 (eval $ac_try) 2>&5
39278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39279 (exit $ac_status); }; } &&
39280 { ac_try='test -s conftest$ac_exeext'
39281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39282 (eval $ac_try) 2>&5
39284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39285 (exit $ac_status); }; }; then
39288 echo "$as_me: failed program was:" >&5
39289 sed 's/^/| /' conftest.$ac_ext >&5
39293 rm -f conftest.err conftest.$ac_objext \
39294 conftest$ac_exeext conftest.$ac_ext
39299 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
39300 echo "${ECHO_T}$ol_cv_db_db41" >&6
39302 if test $ol_cv_db_db41 = yes ; then
39303 ol_cv_lib_db=-ldb41
39307 if test $ol_cv_lib_db = no ; then
39308 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
39309 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
39310 if test "${ol_cv_db_db_41+set}" = set; then
39311 echo $ECHO_N "(cached) $ECHO_C" >&6
39316 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39318 cat >conftest.$ac_ext <<_ACEOF
39321 cat confdefs.h >>conftest.$ac_ext
39322 cat >>conftest.$ac_ext <<_ACEOF
39323 /* end confdefs.h. */
39325 #ifdef HAVE_DB_185_H
39326 # include <db_185.h>
39331 #ifndef DB_VERSION_MAJOR
39332 # define DB_VERSION_MAJOR 1
39336 #define NULL ((void*)0)
39343 #if DB_VERSION_MAJOR > 1
39346 int major, minor, patch;
39348 version = db_version( &major, &minor, &patch );
39350 if( major != DB_VERSION_MAJOR ||
39351 minor < DB_VERSION_MINOR )
39353 printf("Berkeley DB version mismatch\n"
39354 "\theader: %s\n\tlibrary: %s\n",
39355 DB_VERSION_STRING, version);
39361 #if DB_VERSION_MAJOR > 2
39362 db_env_create( NULL, 0 );
39363 #elif DB_VERSION_MAJOR > 1
39364 db_appexit( NULL );
39366 (void) dbopen( NULL, 0, 0, 0, NULL);
39373 rm -f conftest.$ac_objext conftest$ac_exeext
39374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39375 (eval $ac_link) 2>conftest.er1
39377 grep -v '^ *+' conftest.er1 >conftest.err
39379 cat conftest.err >&5
39380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39381 (exit $ac_status); } &&
39382 { ac_try='test -z "$ac_c_werror_flag"
39383 || test ! -s conftest.err'
39384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39385 (eval $ac_try) 2>&5
39387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39388 (exit $ac_status); }; } &&
39389 { ac_try='test -s conftest$ac_exeext'
39390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39391 (eval $ac_try) 2>&5
39393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39394 (exit $ac_status); }; }; then
39397 echo "$as_me: failed program was:" >&5
39398 sed 's/^/| /' conftest.$ac_ext >&5
39402 rm -f conftest.err conftest.$ac_objext \
39403 conftest$ac_exeext conftest.$ac_ext
39408 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
39409 echo "${ECHO_T}$ol_cv_db_db_41" >&6
39411 if test $ol_cv_db_db_41 = yes ; then
39412 ol_cv_lib_db=-ldb-41
39416 if test $ol_cv_lib_db = no ; then
39417 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
39418 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
39419 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
39420 echo $ECHO_N "(cached) $ECHO_C" >&6
39425 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39427 cat >conftest.$ac_ext <<_ACEOF
39430 cat confdefs.h >>conftest.$ac_ext
39431 cat >>conftest.$ac_ext <<_ACEOF
39432 /* end confdefs.h. */
39434 #ifdef HAVE_DB_185_H
39435 # include <db_185.h>
39440 #ifndef DB_VERSION_MAJOR
39441 # define DB_VERSION_MAJOR 1
39445 #define NULL ((void*)0)
39452 #if DB_VERSION_MAJOR > 1
39455 int major, minor, patch;
39457 version = db_version( &major, &minor, &patch );
39459 if( major != DB_VERSION_MAJOR ||
39460 minor < DB_VERSION_MINOR )
39462 printf("Berkeley DB version mismatch\n"
39463 "\theader: %s\n\tlibrary: %s\n",
39464 DB_VERSION_STRING, version);
39470 #if DB_VERSION_MAJOR > 2
39471 db_env_create( NULL, 0 );
39472 #elif DB_VERSION_MAJOR > 1
39473 db_appexit( NULL );
39475 (void) dbopen( NULL, 0, 0, 0, NULL);
39482 rm -f conftest.$ac_objext conftest$ac_exeext
39483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39484 (eval $ac_link) 2>conftest.er1
39486 grep -v '^ *+' conftest.er1 >conftest.err
39488 cat conftest.err >&5
39489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39490 (exit $ac_status); } &&
39491 { ac_try='test -z "$ac_c_werror_flag"
39492 || test ! -s conftest.err'
39493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39494 (eval $ac_try) 2>&5
39496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39497 (exit $ac_status); }; } &&
39498 { ac_try='test -s conftest$ac_exeext'
39499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39500 (eval $ac_try) 2>&5
39502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39503 (exit $ac_status); }; }; then
39504 ol_cv_db_db_4_dot_1=yes
39506 echo "$as_me: failed program was:" >&5
39507 sed 's/^/| /' conftest.$ac_ext >&5
39509 ol_cv_db_db_4_dot_1=no
39511 rm -f conftest.err conftest.$ac_objext \
39512 conftest$ac_exeext conftest.$ac_ext
39517 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
39518 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
39520 if test $ol_cv_db_db_4_dot_1 = yes ; then
39521 ol_cv_lib_db=-ldb-4.1
39525 if test $ol_cv_lib_db = no ; then
39526 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
39527 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
39528 if test "${ol_cv_db_db_4_1+set}" = set; then
39529 echo $ECHO_N "(cached) $ECHO_C" >&6
39534 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39536 cat >conftest.$ac_ext <<_ACEOF
39539 cat confdefs.h >>conftest.$ac_ext
39540 cat >>conftest.$ac_ext <<_ACEOF
39541 /* end confdefs.h. */
39543 #ifdef HAVE_DB_185_H
39544 # include <db_185.h>
39549 #ifndef DB_VERSION_MAJOR
39550 # define DB_VERSION_MAJOR 1
39554 #define NULL ((void*)0)
39561 #if DB_VERSION_MAJOR > 1
39564 int major, minor, patch;
39566 version = db_version( &major, &minor, &patch );
39568 if( major != DB_VERSION_MAJOR ||
39569 minor < DB_VERSION_MINOR )
39571 printf("Berkeley DB version mismatch\n"
39572 "\theader: %s\n\tlibrary: %s\n",
39573 DB_VERSION_STRING, version);
39579 #if DB_VERSION_MAJOR > 2
39580 db_env_create( NULL, 0 );
39581 #elif DB_VERSION_MAJOR > 1
39582 db_appexit( NULL );
39584 (void) dbopen( NULL, 0, 0, 0, NULL);
39591 rm -f conftest.$ac_objext conftest$ac_exeext
39592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39593 (eval $ac_link) 2>conftest.er1
39595 grep -v '^ *+' conftest.er1 >conftest.err
39597 cat conftest.err >&5
39598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39599 (exit $ac_status); } &&
39600 { ac_try='test -z "$ac_c_werror_flag"
39601 || test ! -s conftest.err'
39602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39603 (eval $ac_try) 2>&5
39605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39606 (exit $ac_status); }; } &&
39607 { ac_try='test -s conftest$ac_exeext'
39608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39609 (eval $ac_try) 2>&5
39611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39612 (exit $ac_status); }; }; then
39613 ol_cv_db_db_4_1=yes
39615 echo "$as_me: failed program was:" >&5
39616 sed 's/^/| /' conftest.$ac_ext >&5
39620 rm -f conftest.err conftest.$ac_objext \
39621 conftest$ac_exeext conftest.$ac_ext
39626 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
39627 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
39629 if test $ol_cv_db_db_4_1 = yes ; then
39630 ol_cv_lib_db=-ldb-4-1
39634 if test $ol_cv_lib_db = no ; then
39635 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
39636 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
39637 if test "${ol_cv_db_db3+set}" = set; then
39638 echo $ECHO_N "(cached) $ECHO_C" >&6
39643 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39645 cat >conftest.$ac_ext <<_ACEOF
39648 cat confdefs.h >>conftest.$ac_ext
39649 cat >>conftest.$ac_ext <<_ACEOF
39650 /* end confdefs.h. */
39652 #ifdef HAVE_DB_185_H
39653 # include <db_185.h>
39658 #ifndef DB_VERSION_MAJOR
39659 # define DB_VERSION_MAJOR 1
39663 #define NULL ((void*)0)
39670 #if DB_VERSION_MAJOR > 1
39673 int major, minor, patch;
39675 version = db_version( &major, &minor, &patch );
39677 if( major != DB_VERSION_MAJOR ||
39678 minor < DB_VERSION_MINOR )
39680 printf("Berkeley DB version mismatch\n"
39681 "\theader: %s\n\tlibrary: %s\n",
39682 DB_VERSION_STRING, version);
39688 #if DB_VERSION_MAJOR > 2
39689 db_env_create( NULL, 0 );
39690 #elif DB_VERSION_MAJOR > 1
39691 db_appexit( NULL );
39693 (void) dbopen( NULL, 0, 0, 0, NULL);
39700 rm -f conftest.$ac_objext conftest$ac_exeext
39701 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39702 (eval $ac_link) 2>conftest.er1
39704 grep -v '^ *+' conftest.er1 >conftest.err
39706 cat conftest.err >&5
39707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39708 (exit $ac_status); } &&
39709 { ac_try='test -z "$ac_c_werror_flag"
39710 || test ! -s conftest.err'
39711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39712 (eval $ac_try) 2>&5
39714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39715 (exit $ac_status); }; } &&
39716 { ac_try='test -s conftest$ac_exeext'
39717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39718 (eval $ac_try) 2>&5
39720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39721 (exit $ac_status); }; }; then
39724 echo "$as_me: failed program was:" >&5
39725 sed 's/^/| /' conftest.$ac_ext >&5
39729 rm -f conftest.err conftest.$ac_objext \
39730 conftest$ac_exeext conftest.$ac_ext
39735 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
39736 echo "${ECHO_T}$ol_cv_db_db3" >&6
39738 if test $ol_cv_db_db3 = yes ; then
39743 if test $ol_cv_lib_db = no ; then
39744 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
39745 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
39746 if test "${ol_cv_db_db_3+set}" = set; then
39747 echo $ECHO_N "(cached) $ECHO_C" >&6
39752 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39754 cat >conftest.$ac_ext <<_ACEOF
39757 cat confdefs.h >>conftest.$ac_ext
39758 cat >>conftest.$ac_ext <<_ACEOF
39759 /* end confdefs.h. */
39761 #ifdef HAVE_DB_185_H
39762 # include <db_185.h>
39767 #ifndef DB_VERSION_MAJOR
39768 # define DB_VERSION_MAJOR 1
39772 #define NULL ((void*)0)
39779 #if DB_VERSION_MAJOR > 1
39782 int major, minor, patch;
39784 version = db_version( &major, &minor, &patch );
39786 if( major != DB_VERSION_MAJOR ||
39787 minor < DB_VERSION_MINOR )
39789 printf("Berkeley DB version mismatch\n"
39790 "\theader: %s\n\tlibrary: %s\n",
39791 DB_VERSION_STRING, version);
39797 #if DB_VERSION_MAJOR > 2
39798 db_env_create( NULL, 0 );
39799 #elif DB_VERSION_MAJOR > 1
39800 db_appexit( NULL );
39802 (void) dbopen( NULL, 0, 0, 0, NULL);
39809 rm -f conftest.$ac_objext conftest$ac_exeext
39810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39811 (eval $ac_link) 2>conftest.er1
39813 grep -v '^ *+' conftest.er1 >conftest.err
39815 cat conftest.err >&5
39816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39817 (exit $ac_status); } &&
39818 { ac_try='test -z "$ac_c_werror_flag"
39819 || test ! -s conftest.err'
39820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39821 (eval $ac_try) 2>&5
39823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39824 (exit $ac_status); }; } &&
39825 { ac_try='test -s conftest$ac_exeext'
39826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39827 (eval $ac_try) 2>&5
39829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39830 (exit $ac_status); }; }; then
39833 echo "$as_me: failed program was:" >&5
39834 sed 's/^/| /' conftest.$ac_ext >&5
39838 rm -f conftest.err conftest.$ac_objext \
39839 conftest$ac_exeext conftest.$ac_ext
39844 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
39845 echo "${ECHO_T}$ol_cv_db_db_3" >&6
39847 if test $ol_cv_db_db_3 = yes ; then
39848 ol_cv_lib_db=-ldb-3
39852 if test $ol_cv_lib_db = no ; then
39853 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
39854 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
39855 if test "${ol_cv_db_db2+set}" = set; then
39856 echo $ECHO_N "(cached) $ECHO_C" >&6
39861 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39863 cat >conftest.$ac_ext <<_ACEOF
39866 cat confdefs.h >>conftest.$ac_ext
39867 cat >>conftest.$ac_ext <<_ACEOF
39868 /* end confdefs.h. */
39870 #ifdef HAVE_DB_185_H
39871 # include <db_185.h>
39876 #ifndef DB_VERSION_MAJOR
39877 # define DB_VERSION_MAJOR 1
39881 #define NULL ((void*)0)
39888 #if DB_VERSION_MAJOR > 1
39891 int major, minor, patch;
39893 version = db_version( &major, &minor, &patch );
39895 if( major != DB_VERSION_MAJOR ||
39896 minor < DB_VERSION_MINOR )
39898 printf("Berkeley DB version mismatch\n"
39899 "\theader: %s\n\tlibrary: %s\n",
39900 DB_VERSION_STRING, version);
39906 #if DB_VERSION_MAJOR > 2
39907 db_env_create( NULL, 0 );
39908 #elif DB_VERSION_MAJOR > 1
39909 db_appexit( NULL );
39911 (void) dbopen( NULL, 0, 0, 0, NULL);
39918 rm -f conftest.$ac_objext conftest$ac_exeext
39919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39920 (eval $ac_link) 2>conftest.er1
39922 grep -v '^ *+' conftest.er1 >conftest.err
39924 cat conftest.err >&5
39925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39926 (exit $ac_status); } &&
39927 { ac_try='test -z "$ac_c_werror_flag"
39928 || test ! -s conftest.err'
39929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39930 (eval $ac_try) 2>&5
39932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39933 (exit $ac_status); }; } &&
39934 { ac_try='test -s conftest$ac_exeext'
39935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39936 (eval $ac_try) 2>&5
39938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39939 (exit $ac_status); }; }; then
39942 echo "$as_me: failed program was:" >&5
39943 sed 's/^/| /' conftest.$ac_ext >&5
39947 rm -f conftest.err conftest.$ac_objext \
39948 conftest$ac_exeext conftest.$ac_ext
39953 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
39954 echo "${ECHO_T}$ol_cv_db_db2" >&6
39956 if test $ol_cv_db_db2 = yes ; then
39961 if test $ol_cv_lib_db = no ; then
39962 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
39963 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
39964 if test "${ol_cv_db_db_2+set}" = set; then
39965 echo $ECHO_N "(cached) $ECHO_C" >&6
39970 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39972 cat >conftest.$ac_ext <<_ACEOF
39975 cat confdefs.h >>conftest.$ac_ext
39976 cat >>conftest.$ac_ext <<_ACEOF
39977 /* end confdefs.h. */
39979 #ifdef HAVE_DB_185_H
39980 # include <db_185.h>
39985 #ifndef DB_VERSION_MAJOR
39986 # define DB_VERSION_MAJOR 1
39990 #define NULL ((void*)0)
39997 #if DB_VERSION_MAJOR > 1
40000 int major, minor, patch;
40002 version = db_version( &major, &minor, &patch );
40004 if( major != DB_VERSION_MAJOR ||
40005 minor < DB_VERSION_MINOR )
40007 printf("Berkeley DB version mismatch\n"
40008 "\theader: %s\n\tlibrary: %s\n",
40009 DB_VERSION_STRING, version);
40015 #if DB_VERSION_MAJOR > 2
40016 db_env_create( NULL, 0 );
40017 #elif DB_VERSION_MAJOR > 1
40018 db_appexit( NULL );
40020 (void) dbopen( NULL, 0, 0, 0, NULL);
40027 rm -f conftest.$ac_objext conftest$ac_exeext
40028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40029 (eval $ac_link) 2>conftest.er1
40031 grep -v '^ *+' conftest.er1 >conftest.err
40033 cat conftest.err >&5
40034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40035 (exit $ac_status); } &&
40036 { ac_try='test -z "$ac_c_werror_flag"
40037 || test ! -s conftest.err'
40038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40039 (eval $ac_try) 2>&5
40041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40042 (exit $ac_status); }; } &&
40043 { ac_try='test -s conftest$ac_exeext'
40044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40045 (eval $ac_try) 2>&5
40047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40048 (exit $ac_status); }; }; then
40051 echo "$as_me: failed program was:" >&5
40052 sed 's/^/| /' conftest.$ac_ext >&5
40056 rm -f conftest.err conftest.$ac_objext \
40057 conftest$ac_exeext conftest.$ac_ext
40062 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
40063 echo "${ECHO_T}$ol_cv_db_db_2" >&6
40065 if test $ol_cv_db_db_2 = yes ; then
40066 ol_cv_lib_db=-ldb-2
40070 if test $ol_cv_lib_db = no ; then
40071 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
40072 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
40073 if test "${ol_cv_db_db1+set}" = set; then
40074 echo $ECHO_N "(cached) $ECHO_C" >&6
40079 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40081 cat >conftest.$ac_ext <<_ACEOF
40084 cat confdefs.h >>conftest.$ac_ext
40085 cat >>conftest.$ac_ext <<_ACEOF
40086 /* end confdefs.h. */
40088 #ifdef HAVE_DB_185_H
40089 # include <db_185.h>
40094 #ifndef DB_VERSION_MAJOR
40095 # define DB_VERSION_MAJOR 1
40099 #define NULL ((void*)0)
40106 #if DB_VERSION_MAJOR > 1
40109 int major, minor, patch;
40111 version = db_version( &major, &minor, &patch );
40113 if( major != DB_VERSION_MAJOR ||
40114 minor < DB_VERSION_MINOR )
40116 printf("Berkeley DB version mismatch\n"
40117 "\theader: %s\n\tlibrary: %s\n",
40118 DB_VERSION_STRING, version);
40124 #if DB_VERSION_MAJOR > 2
40125 db_env_create( NULL, 0 );
40126 #elif DB_VERSION_MAJOR > 1
40127 db_appexit( NULL );
40129 (void) dbopen( NULL, 0, 0, 0, NULL);
40136 rm -f conftest.$ac_objext conftest$ac_exeext
40137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40138 (eval $ac_link) 2>conftest.er1
40140 grep -v '^ *+' conftest.er1 >conftest.err
40142 cat conftest.err >&5
40143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40144 (exit $ac_status); } &&
40145 { ac_try='test -z "$ac_c_werror_flag"
40146 || test ! -s conftest.err'
40147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40148 (eval $ac_try) 2>&5
40150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40151 (exit $ac_status); }; } &&
40152 { ac_try='test -s conftest$ac_exeext'
40153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40154 (eval $ac_try) 2>&5
40156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40157 (exit $ac_status); }; }; then
40160 echo "$as_me: failed program was:" >&5
40161 sed 's/^/| /' conftest.$ac_ext >&5
40165 rm -f conftest.err conftest.$ac_objext \
40166 conftest$ac_exeext conftest.$ac_ext
40171 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
40172 echo "${ECHO_T}$ol_cv_db_db1" >&6
40174 if test $ol_cv_db_db1 = yes ; then
40179 if test $ol_cv_lib_db = no ; then
40180 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
40181 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
40182 if test "${ol_cv_db_db_1+set}" = set; then
40183 echo $ECHO_N "(cached) $ECHO_C" >&6
40188 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40190 cat >conftest.$ac_ext <<_ACEOF
40193 cat confdefs.h >>conftest.$ac_ext
40194 cat >>conftest.$ac_ext <<_ACEOF
40195 /* end confdefs.h. */
40197 #ifdef HAVE_DB_185_H
40198 # include <db_185.h>
40203 #ifndef DB_VERSION_MAJOR
40204 # define DB_VERSION_MAJOR 1
40208 #define NULL ((void*)0)
40215 #if DB_VERSION_MAJOR > 1
40218 int major, minor, patch;
40220 version = db_version( &major, &minor, &patch );
40222 if( major != DB_VERSION_MAJOR ||
40223 minor < DB_VERSION_MINOR )
40225 printf("Berkeley DB version mismatch\n"
40226 "\theader: %s\n\tlibrary: %s\n",
40227 DB_VERSION_STRING, version);
40233 #if DB_VERSION_MAJOR > 2
40234 db_env_create( NULL, 0 );
40235 #elif DB_VERSION_MAJOR > 1
40236 db_appexit( NULL );
40238 (void) dbopen( NULL, 0, 0, 0, NULL);
40245 rm -f conftest.$ac_objext conftest$ac_exeext
40246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40247 (eval $ac_link) 2>conftest.er1
40249 grep -v '^ *+' conftest.er1 >conftest.err
40251 cat conftest.err >&5
40252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40253 (exit $ac_status); } &&
40254 { ac_try='test -z "$ac_c_werror_flag"
40255 || test ! -s conftest.err'
40256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40257 (eval $ac_try) 2>&5
40259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40260 (exit $ac_status); }; } &&
40261 { ac_try='test -s conftest$ac_exeext'
40262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40263 (eval $ac_try) 2>&5
40265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40266 (exit $ac_status); }; }; then
40269 echo "$as_me: failed program was:" >&5
40270 sed 's/^/| /' conftest.$ac_ext >&5
40274 rm -f conftest.err conftest.$ac_objext \
40275 conftest$ac_exeext conftest.$ac_ext
40280 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
40281 echo "${ECHO_T}$ol_cv_db_db_1" >&6
40283 if test $ol_cv_db_db_1 = yes ; then
40284 ol_cv_lib_db=-ldb-1
40289 if test "$ol_cv_lib_db" != no ; then
40290 ol_cv_berkeley_db=yes
40296 ol_cv_berkeley_db=no
40298 for ac_header in db.h
40300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40302 echo "$as_me:$LINENO: checking for $ac_header" >&5
40303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40305 echo $ECHO_N "(cached) $ECHO_C" >&6
40307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40310 # Is the header compilable?
40311 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40313 cat >conftest.$ac_ext <<_ACEOF
40316 cat confdefs.h >>conftest.$ac_ext
40317 cat >>conftest.$ac_ext <<_ACEOF
40318 /* end confdefs.h. */
40319 $ac_includes_default
40320 #include <$ac_header>
40322 rm -f conftest.$ac_objext
40323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40324 (eval $ac_compile) 2>conftest.er1
40326 grep -v '^ *+' conftest.er1 >conftest.err
40328 cat conftest.err >&5
40329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40330 (exit $ac_status); } &&
40331 { ac_try='test -z "$ac_c_werror_flag"
40332 || test ! -s conftest.err'
40333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40334 (eval $ac_try) 2>&5
40336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40337 (exit $ac_status); }; } &&
40338 { ac_try='test -s conftest.$ac_objext'
40339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40340 (eval $ac_try) 2>&5
40342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40343 (exit $ac_status); }; }; then
40344 ac_header_compiler=yes
40346 echo "$as_me: failed program was:" >&5
40347 sed 's/^/| /' conftest.$ac_ext >&5
40349 ac_header_compiler=no
40351 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40353 echo "${ECHO_T}$ac_header_compiler" >&6
40355 # Is the header present?
40356 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40358 cat >conftest.$ac_ext <<_ACEOF
40361 cat confdefs.h >>conftest.$ac_ext
40362 cat >>conftest.$ac_ext <<_ACEOF
40363 /* end confdefs.h. */
40364 #include <$ac_header>
40366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40369 grep -v '^ *+' conftest.er1 >conftest.err
40371 cat conftest.err >&5
40372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40373 (exit $ac_status); } >/dev/null; then
40374 if test -s conftest.err; then
40375 ac_cpp_err=$ac_c_preproc_warn_flag
40376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40383 if test -z "$ac_cpp_err"; then
40384 ac_header_preproc=yes
40386 echo "$as_me: failed program was:" >&5
40387 sed 's/^/| /' conftest.$ac_ext >&5
40389 ac_header_preproc=no
40391 rm -f conftest.err conftest.$ac_ext
40392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40393 echo "${ECHO_T}$ac_header_preproc" >&6
40395 # So? What about this header?
40396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40402 ac_header_preproc=yes
40405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40408 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40412 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40419 ## ------------------------------------------ ##
40420 ## Report this to the AC_PACKAGE_NAME lists. ##
40421 ## ------------------------------------------ ##
40424 sed "s/^/$as_me: WARNING: /" >&2
40427 echo "$as_me:$LINENO: checking for $ac_header" >&5
40428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40430 echo $ECHO_N "(cached) $ECHO_C" >&6
40432 eval "$as_ac_Header=\$ac_header_preproc"
40434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40439 cat >>confdefs.h <<_ACEOF
40440 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40447 if test $ac_cv_header_db_h = yes; then
40449 if test $ol_cv_lib_db = no ; then
40450 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
40451 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
40452 if test "${ol_cv_db_none+set}" = set; then
40453 echo $ECHO_N "(cached) $ECHO_C" >&6
40458 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40460 cat >conftest.$ac_ext <<_ACEOF
40463 cat confdefs.h >>conftest.$ac_ext
40464 cat >>conftest.$ac_ext <<_ACEOF
40465 /* end confdefs.h. */
40467 #ifdef HAVE_DB_185_H
40468 # include <db_185.h>
40473 #ifndef DB_VERSION_MAJOR
40474 # define DB_VERSION_MAJOR 1
40478 #define NULL ((void*)0)
40485 #if DB_VERSION_MAJOR > 1
40488 int major, minor, patch;
40490 version = db_version( &major, &minor, &patch );
40492 if( major != DB_VERSION_MAJOR ||
40493 minor < DB_VERSION_MINOR )
40495 printf("Berkeley DB version mismatch\n"
40496 "\theader: %s\n\tlibrary: %s\n",
40497 DB_VERSION_STRING, version);
40503 #if DB_VERSION_MAJOR > 2
40504 db_env_create( NULL, 0 );
40505 #elif DB_VERSION_MAJOR > 1
40506 db_appexit( NULL );
40508 (void) dbopen( NULL, 0, 0, 0, NULL);
40515 rm -f conftest.$ac_objext conftest$ac_exeext
40516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40517 (eval $ac_link) 2>conftest.er1
40519 grep -v '^ *+' conftest.er1 >conftest.err
40521 cat conftest.err >&5
40522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40523 (exit $ac_status); } &&
40524 { ac_try='test -z "$ac_c_werror_flag"
40525 || test ! -s conftest.err'
40526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40527 (eval $ac_try) 2>&5
40529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40530 (exit $ac_status); }; } &&
40531 { ac_try='test -s conftest$ac_exeext'
40532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40533 (eval $ac_try) 2>&5
40535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40536 (exit $ac_status); }; }; then
40539 echo "$as_me: failed program was:" >&5
40540 sed 's/^/| /' conftest.$ac_ext >&5
40544 rm -f conftest.err conftest.$ac_objext \
40545 conftest$ac_exeext conftest.$ac_ext
40550 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
40551 echo "${ECHO_T}$ol_cv_db_none" >&6
40553 if test $ol_cv_db_none = yes ; then
40558 if test $ol_cv_lib_db = no ; then
40559 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
40560 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
40561 if test "${ol_cv_db_db43+set}" = set; then
40562 echo $ECHO_N "(cached) $ECHO_C" >&6
40567 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40569 cat >conftest.$ac_ext <<_ACEOF
40572 cat confdefs.h >>conftest.$ac_ext
40573 cat >>conftest.$ac_ext <<_ACEOF
40574 /* end confdefs.h. */
40576 #ifdef HAVE_DB_185_H
40577 # include <db_185.h>
40582 #ifndef DB_VERSION_MAJOR
40583 # define DB_VERSION_MAJOR 1
40587 #define NULL ((void*)0)
40594 #if DB_VERSION_MAJOR > 1
40597 int major, minor, patch;
40599 version = db_version( &major, &minor, &patch );
40601 if( major != DB_VERSION_MAJOR ||
40602 minor < DB_VERSION_MINOR )
40604 printf("Berkeley DB version mismatch\n"
40605 "\theader: %s\n\tlibrary: %s\n",
40606 DB_VERSION_STRING, version);
40612 #if DB_VERSION_MAJOR > 2
40613 db_env_create( NULL, 0 );
40614 #elif DB_VERSION_MAJOR > 1
40615 db_appexit( NULL );
40617 (void) dbopen( NULL, 0, 0, 0, NULL);
40624 rm -f conftest.$ac_objext conftest$ac_exeext
40625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40626 (eval $ac_link) 2>conftest.er1
40628 grep -v '^ *+' conftest.er1 >conftest.err
40630 cat conftest.err >&5
40631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40632 (exit $ac_status); } &&
40633 { ac_try='test -z "$ac_c_werror_flag"
40634 || test ! -s conftest.err'
40635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40636 (eval $ac_try) 2>&5
40638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40639 (exit $ac_status); }; } &&
40640 { ac_try='test -s conftest$ac_exeext'
40641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40642 (eval $ac_try) 2>&5
40644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40645 (exit $ac_status); }; }; then
40648 echo "$as_me: failed program was:" >&5
40649 sed 's/^/| /' conftest.$ac_ext >&5
40653 rm -f conftest.err conftest.$ac_objext \
40654 conftest$ac_exeext conftest.$ac_ext
40659 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
40660 echo "${ECHO_T}$ol_cv_db_db43" >&6
40662 if test $ol_cv_db_db43 = yes ; then
40663 ol_cv_lib_db=-ldb43
40667 if test $ol_cv_lib_db = no ; then
40668 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
40669 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
40670 if test "${ol_cv_db_db_43+set}" = set; then
40671 echo $ECHO_N "(cached) $ECHO_C" >&6
40676 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40678 cat >conftest.$ac_ext <<_ACEOF
40681 cat confdefs.h >>conftest.$ac_ext
40682 cat >>conftest.$ac_ext <<_ACEOF
40683 /* end confdefs.h. */
40685 #ifdef HAVE_DB_185_H
40686 # include <db_185.h>
40691 #ifndef DB_VERSION_MAJOR
40692 # define DB_VERSION_MAJOR 1
40696 #define NULL ((void*)0)
40703 #if DB_VERSION_MAJOR > 1
40706 int major, minor, patch;
40708 version = db_version( &major, &minor, &patch );
40710 if( major != DB_VERSION_MAJOR ||
40711 minor < DB_VERSION_MINOR )
40713 printf("Berkeley DB version mismatch\n"
40714 "\theader: %s\n\tlibrary: %s\n",
40715 DB_VERSION_STRING, version);
40721 #if DB_VERSION_MAJOR > 2
40722 db_env_create( NULL, 0 );
40723 #elif DB_VERSION_MAJOR > 1
40724 db_appexit( NULL );
40726 (void) dbopen( NULL, 0, 0, 0, NULL);
40733 rm -f conftest.$ac_objext conftest$ac_exeext
40734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40735 (eval $ac_link) 2>conftest.er1
40737 grep -v '^ *+' conftest.er1 >conftest.err
40739 cat conftest.err >&5
40740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40741 (exit $ac_status); } &&
40742 { ac_try='test -z "$ac_c_werror_flag"
40743 || test ! -s conftest.err'
40744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40745 (eval $ac_try) 2>&5
40747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40748 (exit $ac_status); }; } &&
40749 { ac_try='test -s conftest$ac_exeext'
40750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40751 (eval $ac_try) 2>&5
40753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40754 (exit $ac_status); }; }; then
40757 echo "$as_me: failed program was:" >&5
40758 sed 's/^/| /' conftest.$ac_ext >&5
40762 rm -f conftest.err conftest.$ac_objext \
40763 conftest$ac_exeext conftest.$ac_ext
40768 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
40769 echo "${ECHO_T}$ol_cv_db_db_43" >&6
40771 if test $ol_cv_db_db_43 = yes ; then
40772 ol_cv_lib_db=-ldb-43
40776 if test $ol_cv_lib_db = no ; then
40777 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
40778 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
40779 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
40780 echo $ECHO_N "(cached) $ECHO_C" >&6
40785 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40787 cat >conftest.$ac_ext <<_ACEOF
40790 cat confdefs.h >>conftest.$ac_ext
40791 cat >>conftest.$ac_ext <<_ACEOF
40792 /* end confdefs.h. */
40794 #ifdef HAVE_DB_185_H
40795 # include <db_185.h>
40800 #ifndef DB_VERSION_MAJOR
40801 # define DB_VERSION_MAJOR 1
40805 #define NULL ((void*)0)
40812 #if DB_VERSION_MAJOR > 1
40815 int major, minor, patch;
40817 version = db_version( &major, &minor, &patch );
40819 if( major != DB_VERSION_MAJOR ||
40820 minor < DB_VERSION_MINOR )
40822 printf("Berkeley DB version mismatch\n"
40823 "\theader: %s\n\tlibrary: %s\n",
40824 DB_VERSION_STRING, version);
40830 #if DB_VERSION_MAJOR > 2
40831 db_env_create( NULL, 0 );
40832 #elif DB_VERSION_MAJOR > 1
40833 db_appexit( NULL );
40835 (void) dbopen( NULL, 0, 0, 0, NULL);
40842 rm -f conftest.$ac_objext conftest$ac_exeext
40843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40844 (eval $ac_link) 2>conftest.er1
40846 grep -v '^ *+' conftest.er1 >conftest.err
40848 cat conftest.err >&5
40849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40850 (exit $ac_status); } &&
40851 { ac_try='test -z "$ac_c_werror_flag"
40852 || test ! -s conftest.err'
40853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40854 (eval $ac_try) 2>&5
40856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40857 (exit $ac_status); }; } &&
40858 { ac_try='test -s conftest$ac_exeext'
40859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40860 (eval $ac_try) 2>&5
40862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40863 (exit $ac_status); }; }; then
40864 ol_cv_db_db_4_dot_3=yes
40866 echo "$as_me: failed program was:" >&5
40867 sed 's/^/| /' conftest.$ac_ext >&5
40869 ol_cv_db_db_4_dot_3=no
40871 rm -f conftest.err conftest.$ac_objext \
40872 conftest$ac_exeext conftest.$ac_ext
40877 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
40878 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
40880 if test $ol_cv_db_db_4_dot_3 = yes ; then
40881 ol_cv_lib_db=-ldb-4.3
40885 if test $ol_cv_lib_db = no ; then
40886 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
40887 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
40888 if test "${ol_cv_db_db_4_3+set}" = set; then
40889 echo $ECHO_N "(cached) $ECHO_C" >&6
40894 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40896 cat >conftest.$ac_ext <<_ACEOF
40899 cat confdefs.h >>conftest.$ac_ext
40900 cat >>conftest.$ac_ext <<_ACEOF
40901 /* end confdefs.h. */
40903 #ifdef HAVE_DB_185_H
40904 # include <db_185.h>
40909 #ifndef DB_VERSION_MAJOR
40910 # define DB_VERSION_MAJOR 1
40914 #define NULL ((void*)0)
40921 #if DB_VERSION_MAJOR > 1
40924 int major, minor, patch;
40926 version = db_version( &major, &minor, &patch );
40928 if( major != DB_VERSION_MAJOR ||
40929 minor < DB_VERSION_MINOR )
40931 printf("Berkeley DB version mismatch\n"
40932 "\theader: %s\n\tlibrary: %s\n",
40933 DB_VERSION_STRING, version);
40939 #if DB_VERSION_MAJOR > 2
40940 db_env_create( NULL, 0 );
40941 #elif DB_VERSION_MAJOR > 1
40942 db_appexit( NULL );
40944 (void) dbopen( NULL, 0, 0, 0, NULL);
40951 rm -f conftest.$ac_objext conftest$ac_exeext
40952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40953 (eval $ac_link) 2>conftest.er1
40955 grep -v '^ *+' conftest.er1 >conftest.err
40957 cat conftest.err >&5
40958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40959 (exit $ac_status); } &&
40960 { ac_try='test -z "$ac_c_werror_flag"
40961 || test ! -s conftest.err'
40962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40963 (eval $ac_try) 2>&5
40965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40966 (exit $ac_status); }; } &&
40967 { ac_try='test -s conftest$ac_exeext'
40968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40969 (eval $ac_try) 2>&5
40971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40972 (exit $ac_status); }; }; then
40973 ol_cv_db_db_4_3=yes
40975 echo "$as_me: failed program was:" >&5
40976 sed 's/^/| /' conftest.$ac_ext >&5
40980 rm -f conftest.err conftest.$ac_objext \
40981 conftest$ac_exeext conftest.$ac_ext
40986 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
40987 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
40989 if test $ol_cv_db_db_4_3 = yes ; then
40990 ol_cv_lib_db=-ldb-4-3
40994 if test $ol_cv_lib_db = no ; then
40995 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
40996 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
40997 if test "${ol_cv_db_db42+set}" = set; then
40998 echo $ECHO_N "(cached) $ECHO_C" >&6
41003 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41005 cat >conftest.$ac_ext <<_ACEOF
41008 cat confdefs.h >>conftest.$ac_ext
41009 cat >>conftest.$ac_ext <<_ACEOF
41010 /* end confdefs.h. */
41012 #ifdef HAVE_DB_185_H
41013 # include <db_185.h>
41018 #ifndef DB_VERSION_MAJOR
41019 # define DB_VERSION_MAJOR 1
41023 #define NULL ((void*)0)
41030 #if DB_VERSION_MAJOR > 1
41033 int major, minor, patch;
41035 version = db_version( &major, &minor, &patch );
41037 if( major != DB_VERSION_MAJOR ||
41038 minor < DB_VERSION_MINOR )
41040 printf("Berkeley DB version mismatch\n"
41041 "\theader: %s\n\tlibrary: %s\n",
41042 DB_VERSION_STRING, version);
41048 #if DB_VERSION_MAJOR > 2
41049 db_env_create( NULL, 0 );
41050 #elif DB_VERSION_MAJOR > 1
41051 db_appexit( NULL );
41053 (void) dbopen( NULL, 0, 0, 0, NULL);
41060 rm -f conftest.$ac_objext conftest$ac_exeext
41061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41062 (eval $ac_link) 2>conftest.er1
41064 grep -v '^ *+' conftest.er1 >conftest.err
41066 cat conftest.err >&5
41067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41068 (exit $ac_status); } &&
41069 { ac_try='test -z "$ac_c_werror_flag"
41070 || test ! -s conftest.err'
41071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41072 (eval $ac_try) 2>&5
41074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41075 (exit $ac_status); }; } &&
41076 { ac_try='test -s conftest$ac_exeext'
41077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41078 (eval $ac_try) 2>&5
41080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41081 (exit $ac_status); }; }; then
41084 echo "$as_me: failed program was:" >&5
41085 sed 's/^/| /' conftest.$ac_ext >&5
41089 rm -f conftest.err conftest.$ac_objext \
41090 conftest$ac_exeext conftest.$ac_ext
41095 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
41096 echo "${ECHO_T}$ol_cv_db_db42" >&6
41098 if test $ol_cv_db_db42 = yes ; then
41099 ol_cv_lib_db=-ldb42
41103 if test $ol_cv_lib_db = no ; then
41104 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
41105 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
41106 if test "${ol_cv_db_db_42+set}" = set; then
41107 echo $ECHO_N "(cached) $ECHO_C" >&6
41112 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41114 cat >conftest.$ac_ext <<_ACEOF
41117 cat confdefs.h >>conftest.$ac_ext
41118 cat >>conftest.$ac_ext <<_ACEOF
41119 /* end confdefs.h. */
41121 #ifdef HAVE_DB_185_H
41122 # include <db_185.h>
41127 #ifndef DB_VERSION_MAJOR
41128 # define DB_VERSION_MAJOR 1
41132 #define NULL ((void*)0)
41139 #if DB_VERSION_MAJOR > 1
41142 int major, minor, patch;
41144 version = db_version( &major, &minor, &patch );
41146 if( major != DB_VERSION_MAJOR ||
41147 minor < DB_VERSION_MINOR )
41149 printf("Berkeley DB version mismatch\n"
41150 "\theader: %s\n\tlibrary: %s\n",
41151 DB_VERSION_STRING, version);
41157 #if DB_VERSION_MAJOR > 2
41158 db_env_create( NULL, 0 );
41159 #elif DB_VERSION_MAJOR > 1
41160 db_appexit( NULL );
41162 (void) dbopen( NULL, 0, 0, 0, NULL);
41169 rm -f conftest.$ac_objext conftest$ac_exeext
41170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41171 (eval $ac_link) 2>conftest.er1
41173 grep -v '^ *+' conftest.er1 >conftest.err
41175 cat conftest.err >&5
41176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41177 (exit $ac_status); } &&
41178 { ac_try='test -z "$ac_c_werror_flag"
41179 || test ! -s conftest.err'
41180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41181 (eval $ac_try) 2>&5
41183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41184 (exit $ac_status); }; } &&
41185 { ac_try='test -s conftest$ac_exeext'
41186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41187 (eval $ac_try) 2>&5
41189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41190 (exit $ac_status); }; }; then
41193 echo "$as_me: failed program was:" >&5
41194 sed 's/^/| /' conftest.$ac_ext >&5
41198 rm -f conftest.err conftest.$ac_objext \
41199 conftest$ac_exeext conftest.$ac_ext
41204 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
41205 echo "${ECHO_T}$ol_cv_db_db_42" >&6
41207 if test $ol_cv_db_db_42 = yes ; then
41208 ol_cv_lib_db=-ldb-42
41212 if test $ol_cv_lib_db = no ; then
41213 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
41214 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
41215 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
41216 echo $ECHO_N "(cached) $ECHO_C" >&6
41221 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41223 cat >conftest.$ac_ext <<_ACEOF
41226 cat confdefs.h >>conftest.$ac_ext
41227 cat >>conftest.$ac_ext <<_ACEOF
41228 /* end confdefs.h. */
41230 #ifdef HAVE_DB_185_H
41231 # include <db_185.h>
41236 #ifndef DB_VERSION_MAJOR
41237 # define DB_VERSION_MAJOR 1
41241 #define NULL ((void*)0)
41248 #if DB_VERSION_MAJOR > 1
41251 int major, minor, patch;
41253 version = db_version( &major, &minor, &patch );
41255 if( major != DB_VERSION_MAJOR ||
41256 minor < DB_VERSION_MINOR )
41258 printf("Berkeley DB version mismatch\n"
41259 "\theader: %s\n\tlibrary: %s\n",
41260 DB_VERSION_STRING, version);
41266 #if DB_VERSION_MAJOR > 2
41267 db_env_create( NULL, 0 );
41268 #elif DB_VERSION_MAJOR > 1
41269 db_appexit( NULL );
41271 (void) dbopen( NULL, 0, 0, 0, NULL);
41278 rm -f conftest.$ac_objext conftest$ac_exeext
41279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41280 (eval $ac_link) 2>conftest.er1
41282 grep -v '^ *+' conftest.er1 >conftest.err
41284 cat conftest.err >&5
41285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41286 (exit $ac_status); } &&
41287 { ac_try='test -z "$ac_c_werror_flag"
41288 || test ! -s conftest.err'
41289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41290 (eval $ac_try) 2>&5
41292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41293 (exit $ac_status); }; } &&
41294 { ac_try='test -s conftest$ac_exeext'
41295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41296 (eval $ac_try) 2>&5
41298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41299 (exit $ac_status); }; }; then
41300 ol_cv_db_db_4_dot_2=yes
41302 echo "$as_me: failed program was:" >&5
41303 sed 's/^/| /' conftest.$ac_ext >&5
41305 ol_cv_db_db_4_dot_2=no
41307 rm -f conftest.err conftest.$ac_objext \
41308 conftest$ac_exeext conftest.$ac_ext
41313 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
41314 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
41316 if test $ol_cv_db_db_4_dot_2 = yes ; then
41317 ol_cv_lib_db=-ldb-4.2
41321 if test $ol_cv_lib_db = no ; then
41322 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
41323 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
41324 if test "${ol_cv_db_db_4_2+set}" = set; then
41325 echo $ECHO_N "(cached) $ECHO_C" >&6
41330 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41332 cat >conftest.$ac_ext <<_ACEOF
41335 cat confdefs.h >>conftest.$ac_ext
41336 cat >>conftest.$ac_ext <<_ACEOF
41337 /* end confdefs.h. */
41339 #ifdef HAVE_DB_185_H
41340 # include <db_185.h>
41345 #ifndef DB_VERSION_MAJOR
41346 # define DB_VERSION_MAJOR 1
41350 #define NULL ((void*)0)
41357 #if DB_VERSION_MAJOR > 1
41360 int major, minor, patch;
41362 version = db_version( &major, &minor, &patch );
41364 if( major != DB_VERSION_MAJOR ||
41365 minor < DB_VERSION_MINOR )
41367 printf("Berkeley DB version mismatch\n"
41368 "\theader: %s\n\tlibrary: %s\n",
41369 DB_VERSION_STRING, version);
41375 #if DB_VERSION_MAJOR > 2
41376 db_env_create( NULL, 0 );
41377 #elif DB_VERSION_MAJOR > 1
41378 db_appexit( NULL );
41380 (void) dbopen( NULL, 0, 0, 0, NULL);
41387 rm -f conftest.$ac_objext conftest$ac_exeext
41388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41389 (eval $ac_link) 2>conftest.er1
41391 grep -v '^ *+' conftest.er1 >conftest.err
41393 cat conftest.err >&5
41394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41395 (exit $ac_status); } &&
41396 { ac_try='test -z "$ac_c_werror_flag"
41397 || test ! -s conftest.err'
41398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41399 (eval $ac_try) 2>&5
41401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41402 (exit $ac_status); }; } &&
41403 { ac_try='test -s conftest$ac_exeext'
41404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41405 (eval $ac_try) 2>&5
41407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41408 (exit $ac_status); }; }; then
41409 ol_cv_db_db_4_2=yes
41411 echo "$as_me: failed program was:" >&5
41412 sed 's/^/| /' conftest.$ac_ext >&5
41416 rm -f conftest.err conftest.$ac_objext \
41417 conftest$ac_exeext conftest.$ac_ext
41422 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
41423 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
41425 if test $ol_cv_db_db_4_2 = yes ; then
41426 ol_cv_lib_db=-ldb-4-2
41430 if test $ol_cv_lib_db = no ; then
41431 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
41432 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
41433 if test "${ol_cv_db_db_4+set}" = set; then
41434 echo $ECHO_N "(cached) $ECHO_C" >&6
41439 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41441 cat >conftest.$ac_ext <<_ACEOF
41444 cat confdefs.h >>conftest.$ac_ext
41445 cat >>conftest.$ac_ext <<_ACEOF
41446 /* end confdefs.h. */
41448 #ifdef HAVE_DB_185_H
41449 # include <db_185.h>
41454 #ifndef DB_VERSION_MAJOR
41455 # define DB_VERSION_MAJOR 1
41459 #define NULL ((void*)0)
41466 #if DB_VERSION_MAJOR > 1
41469 int major, minor, patch;
41471 version = db_version( &major, &minor, &patch );
41473 if( major != DB_VERSION_MAJOR ||
41474 minor < DB_VERSION_MINOR )
41476 printf("Berkeley DB version mismatch\n"
41477 "\theader: %s\n\tlibrary: %s\n",
41478 DB_VERSION_STRING, version);
41484 #if DB_VERSION_MAJOR > 2
41485 db_env_create( NULL, 0 );
41486 #elif DB_VERSION_MAJOR > 1
41487 db_appexit( NULL );
41489 (void) dbopen( NULL, 0, 0, 0, NULL);
41496 rm -f conftest.$ac_objext conftest$ac_exeext
41497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41498 (eval $ac_link) 2>conftest.er1
41500 grep -v '^ *+' conftest.er1 >conftest.err
41502 cat conftest.err >&5
41503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41504 (exit $ac_status); } &&
41505 { ac_try='test -z "$ac_c_werror_flag"
41506 || test ! -s conftest.err'
41507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41508 (eval $ac_try) 2>&5
41510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41511 (exit $ac_status); }; } &&
41512 { ac_try='test -s conftest$ac_exeext'
41513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41514 (eval $ac_try) 2>&5
41516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41517 (exit $ac_status); }; }; then
41520 echo "$as_me: failed program was:" >&5
41521 sed 's/^/| /' conftest.$ac_ext >&5
41525 rm -f conftest.err conftest.$ac_objext \
41526 conftest$ac_exeext conftest.$ac_ext
41531 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
41532 echo "${ECHO_T}$ol_cv_db_db_4" >&6
41534 if test $ol_cv_db_db_4 = yes ; then
41535 ol_cv_lib_db=-ldb-4
41539 if test $ol_cv_lib_db = no ; then
41540 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
41541 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
41542 if test "${ol_cv_db_db4+set}" = set; then
41543 echo $ECHO_N "(cached) $ECHO_C" >&6
41548 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41550 cat >conftest.$ac_ext <<_ACEOF
41553 cat confdefs.h >>conftest.$ac_ext
41554 cat >>conftest.$ac_ext <<_ACEOF
41555 /* end confdefs.h. */
41557 #ifdef HAVE_DB_185_H
41558 # include <db_185.h>
41563 #ifndef DB_VERSION_MAJOR
41564 # define DB_VERSION_MAJOR 1
41568 #define NULL ((void*)0)
41575 #if DB_VERSION_MAJOR > 1
41578 int major, minor, patch;
41580 version = db_version( &major, &minor, &patch );
41582 if( major != DB_VERSION_MAJOR ||
41583 minor < DB_VERSION_MINOR )
41585 printf("Berkeley DB version mismatch\n"
41586 "\theader: %s\n\tlibrary: %s\n",
41587 DB_VERSION_STRING, version);
41593 #if DB_VERSION_MAJOR > 2
41594 db_env_create( NULL, 0 );
41595 #elif DB_VERSION_MAJOR > 1
41596 db_appexit( NULL );
41598 (void) dbopen( NULL, 0, 0, 0, NULL);
41605 rm -f conftest.$ac_objext conftest$ac_exeext
41606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41607 (eval $ac_link) 2>conftest.er1
41609 grep -v '^ *+' conftest.er1 >conftest.err
41611 cat conftest.err >&5
41612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41613 (exit $ac_status); } &&
41614 { ac_try='test -z "$ac_c_werror_flag"
41615 || test ! -s conftest.err'
41616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41617 (eval $ac_try) 2>&5
41619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41620 (exit $ac_status); }; } &&
41621 { ac_try='test -s conftest$ac_exeext'
41622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41623 (eval $ac_try) 2>&5
41625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41626 (exit $ac_status); }; }; then
41629 echo "$as_me: failed program was:" >&5
41630 sed 's/^/| /' conftest.$ac_ext >&5
41634 rm -f conftest.err conftest.$ac_objext \
41635 conftest$ac_exeext conftest.$ac_ext
41640 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
41641 echo "${ECHO_T}$ol_cv_db_db4" >&6
41643 if test $ol_cv_db_db4 = yes ; then
41648 if test $ol_cv_lib_db = no ; then
41649 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
41650 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
41651 if test "${ol_cv_db_db+set}" = set; then
41652 echo $ECHO_N "(cached) $ECHO_C" >&6
41657 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41659 cat >conftest.$ac_ext <<_ACEOF
41662 cat confdefs.h >>conftest.$ac_ext
41663 cat >>conftest.$ac_ext <<_ACEOF
41664 /* end confdefs.h. */
41666 #ifdef HAVE_DB_185_H
41667 # include <db_185.h>
41672 #ifndef DB_VERSION_MAJOR
41673 # define DB_VERSION_MAJOR 1
41677 #define NULL ((void*)0)
41684 #if DB_VERSION_MAJOR > 1
41687 int major, minor, patch;
41689 version = db_version( &major, &minor, &patch );
41691 if( major != DB_VERSION_MAJOR ||
41692 minor < DB_VERSION_MINOR )
41694 printf("Berkeley DB version mismatch\n"
41695 "\theader: %s\n\tlibrary: %s\n",
41696 DB_VERSION_STRING, version);
41702 #if DB_VERSION_MAJOR > 2
41703 db_env_create( NULL, 0 );
41704 #elif DB_VERSION_MAJOR > 1
41705 db_appexit( NULL );
41707 (void) dbopen( NULL, 0, 0, 0, NULL);
41714 rm -f conftest.$ac_objext conftest$ac_exeext
41715 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41716 (eval $ac_link) 2>conftest.er1
41718 grep -v '^ *+' conftest.er1 >conftest.err
41720 cat conftest.err >&5
41721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41722 (exit $ac_status); } &&
41723 { ac_try='test -z "$ac_c_werror_flag"
41724 || test ! -s conftest.err'
41725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41726 (eval $ac_try) 2>&5
41728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41729 (exit $ac_status); }; } &&
41730 { ac_try='test -s conftest$ac_exeext'
41731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41732 (eval $ac_try) 2>&5
41734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41735 (exit $ac_status); }; }; then
41738 echo "$as_me: failed program was:" >&5
41739 sed 's/^/| /' conftest.$ac_ext >&5
41743 rm -f conftest.err conftest.$ac_objext \
41744 conftest$ac_exeext conftest.$ac_ext
41749 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
41750 echo "${ECHO_T}$ol_cv_db_db" >&6
41752 if test $ol_cv_db_db = yes ; then
41757 if test $ol_cv_lib_db = no ; then
41758 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
41759 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
41760 if test "${ol_cv_db_db41+set}" = set; then
41761 echo $ECHO_N "(cached) $ECHO_C" >&6
41766 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41768 cat >conftest.$ac_ext <<_ACEOF
41771 cat confdefs.h >>conftest.$ac_ext
41772 cat >>conftest.$ac_ext <<_ACEOF
41773 /* end confdefs.h. */
41775 #ifdef HAVE_DB_185_H
41776 # include <db_185.h>
41781 #ifndef DB_VERSION_MAJOR
41782 # define DB_VERSION_MAJOR 1
41786 #define NULL ((void*)0)
41793 #if DB_VERSION_MAJOR > 1
41796 int major, minor, patch;
41798 version = db_version( &major, &minor, &patch );
41800 if( major != DB_VERSION_MAJOR ||
41801 minor < DB_VERSION_MINOR )
41803 printf("Berkeley DB version mismatch\n"
41804 "\theader: %s\n\tlibrary: %s\n",
41805 DB_VERSION_STRING, version);
41811 #if DB_VERSION_MAJOR > 2
41812 db_env_create( NULL, 0 );
41813 #elif DB_VERSION_MAJOR > 1
41814 db_appexit( NULL );
41816 (void) dbopen( NULL, 0, 0, 0, NULL);
41823 rm -f conftest.$ac_objext conftest$ac_exeext
41824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41825 (eval $ac_link) 2>conftest.er1
41827 grep -v '^ *+' conftest.er1 >conftest.err
41829 cat conftest.err >&5
41830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41831 (exit $ac_status); } &&
41832 { ac_try='test -z "$ac_c_werror_flag"
41833 || test ! -s conftest.err'
41834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41835 (eval $ac_try) 2>&5
41837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41838 (exit $ac_status); }; } &&
41839 { ac_try='test -s conftest$ac_exeext'
41840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41841 (eval $ac_try) 2>&5
41843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41844 (exit $ac_status); }; }; then
41847 echo "$as_me: failed program was:" >&5
41848 sed 's/^/| /' conftest.$ac_ext >&5
41852 rm -f conftest.err conftest.$ac_objext \
41853 conftest$ac_exeext conftest.$ac_ext
41858 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
41859 echo "${ECHO_T}$ol_cv_db_db41" >&6
41861 if test $ol_cv_db_db41 = yes ; then
41862 ol_cv_lib_db=-ldb41
41866 if test $ol_cv_lib_db = no ; then
41867 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
41868 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
41869 if test "${ol_cv_db_db_41+set}" = set; then
41870 echo $ECHO_N "(cached) $ECHO_C" >&6
41875 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41877 cat >conftest.$ac_ext <<_ACEOF
41880 cat confdefs.h >>conftest.$ac_ext
41881 cat >>conftest.$ac_ext <<_ACEOF
41882 /* end confdefs.h. */
41884 #ifdef HAVE_DB_185_H
41885 # include <db_185.h>
41890 #ifndef DB_VERSION_MAJOR
41891 # define DB_VERSION_MAJOR 1
41895 #define NULL ((void*)0)
41902 #if DB_VERSION_MAJOR > 1
41905 int major, minor, patch;
41907 version = db_version( &major, &minor, &patch );
41909 if( major != DB_VERSION_MAJOR ||
41910 minor < DB_VERSION_MINOR )
41912 printf("Berkeley DB version mismatch\n"
41913 "\theader: %s\n\tlibrary: %s\n",
41914 DB_VERSION_STRING, version);
41920 #if DB_VERSION_MAJOR > 2
41921 db_env_create( NULL, 0 );
41922 #elif DB_VERSION_MAJOR > 1
41923 db_appexit( NULL );
41925 (void) dbopen( NULL, 0, 0, 0, NULL);
41932 rm -f conftest.$ac_objext conftest$ac_exeext
41933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41934 (eval $ac_link) 2>conftest.er1
41936 grep -v '^ *+' conftest.er1 >conftest.err
41938 cat conftest.err >&5
41939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41940 (exit $ac_status); } &&
41941 { ac_try='test -z "$ac_c_werror_flag"
41942 || test ! -s conftest.err'
41943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41944 (eval $ac_try) 2>&5
41946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41947 (exit $ac_status); }; } &&
41948 { ac_try='test -s conftest$ac_exeext'
41949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41950 (eval $ac_try) 2>&5
41952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41953 (exit $ac_status); }; }; then
41956 echo "$as_me: failed program was:" >&5
41957 sed 's/^/| /' conftest.$ac_ext >&5
41961 rm -f conftest.err conftest.$ac_objext \
41962 conftest$ac_exeext conftest.$ac_ext
41967 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
41968 echo "${ECHO_T}$ol_cv_db_db_41" >&6
41970 if test $ol_cv_db_db_41 = yes ; then
41971 ol_cv_lib_db=-ldb-41
41975 if test $ol_cv_lib_db = no ; then
41976 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
41977 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
41978 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
41979 echo $ECHO_N "(cached) $ECHO_C" >&6
41984 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41986 cat >conftest.$ac_ext <<_ACEOF
41989 cat confdefs.h >>conftest.$ac_ext
41990 cat >>conftest.$ac_ext <<_ACEOF
41991 /* end confdefs.h. */
41993 #ifdef HAVE_DB_185_H
41994 # include <db_185.h>
41999 #ifndef DB_VERSION_MAJOR
42000 # define DB_VERSION_MAJOR 1
42004 #define NULL ((void*)0)
42011 #if DB_VERSION_MAJOR > 1
42014 int major, minor, patch;
42016 version = db_version( &major, &minor, &patch );
42018 if( major != DB_VERSION_MAJOR ||
42019 minor < DB_VERSION_MINOR )
42021 printf("Berkeley DB version mismatch\n"
42022 "\theader: %s\n\tlibrary: %s\n",
42023 DB_VERSION_STRING, version);
42029 #if DB_VERSION_MAJOR > 2
42030 db_env_create( NULL, 0 );
42031 #elif DB_VERSION_MAJOR > 1
42032 db_appexit( NULL );
42034 (void) dbopen( NULL, 0, 0, 0, NULL);
42041 rm -f conftest.$ac_objext conftest$ac_exeext
42042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42043 (eval $ac_link) 2>conftest.er1
42045 grep -v '^ *+' conftest.er1 >conftest.err
42047 cat conftest.err >&5
42048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42049 (exit $ac_status); } &&
42050 { ac_try='test -z "$ac_c_werror_flag"
42051 || test ! -s conftest.err'
42052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42053 (eval $ac_try) 2>&5
42055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42056 (exit $ac_status); }; } &&
42057 { ac_try='test -s conftest$ac_exeext'
42058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42059 (eval $ac_try) 2>&5
42061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42062 (exit $ac_status); }; }; then
42063 ol_cv_db_db_4_dot_1=yes
42065 echo "$as_me: failed program was:" >&5
42066 sed 's/^/| /' conftest.$ac_ext >&5
42068 ol_cv_db_db_4_dot_1=no
42070 rm -f conftest.err conftest.$ac_objext \
42071 conftest$ac_exeext conftest.$ac_ext
42076 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
42077 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
42079 if test $ol_cv_db_db_4_dot_1 = yes ; then
42080 ol_cv_lib_db=-ldb-4.1
42084 if test $ol_cv_lib_db = no ; then
42085 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
42086 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
42087 if test "${ol_cv_db_db_4_1+set}" = set; then
42088 echo $ECHO_N "(cached) $ECHO_C" >&6
42093 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42095 cat >conftest.$ac_ext <<_ACEOF
42098 cat confdefs.h >>conftest.$ac_ext
42099 cat >>conftest.$ac_ext <<_ACEOF
42100 /* end confdefs.h. */
42102 #ifdef HAVE_DB_185_H
42103 # include <db_185.h>
42108 #ifndef DB_VERSION_MAJOR
42109 # define DB_VERSION_MAJOR 1
42113 #define NULL ((void*)0)
42120 #if DB_VERSION_MAJOR > 1
42123 int major, minor, patch;
42125 version = db_version( &major, &minor, &patch );
42127 if( major != DB_VERSION_MAJOR ||
42128 minor < DB_VERSION_MINOR )
42130 printf("Berkeley DB version mismatch\n"
42131 "\theader: %s\n\tlibrary: %s\n",
42132 DB_VERSION_STRING, version);
42138 #if DB_VERSION_MAJOR > 2
42139 db_env_create( NULL, 0 );
42140 #elif DB_VERSION_MAJOR > 1
42141 db_appexit( NULL );
42143 (void) dbopen( NULL, 0, 0, 0, NULL);
42150 rm -f conftest.$ac_objext conftest$ac_exeext
42151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42152 (eval $ac_link) 2>conftest.er1
42154 grep -v '^ *+' conftest.er1 >conftest.err
42156 cat conftest.err >&5
42157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42158 (exit $ac_status); } &&
42159 { ac_try='test -z "$ac_c_werror_flag"
42160 || test ! -s conftest.err'
42161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42162 (eval $ac_try) 2>&5
42164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42165 (exit $ac_status); }; } &&
42166 { ac_try='test -s conftest$ac_exeext'
42167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42168 (eval $ac_try) 2>&5
42170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42171 (exit $ac_status); }; }; then
42172 ol_cv_db_db_4_1=yes
42174 echo "$as_me: failed program was:" >&5
42175 sed 's/^/| /' conftest.$ac_ext >&5
42179 rm -f conftest.err conftest.$ac_objext \
42180 conftest$ac_exeext conftest.$ac_ext
42185 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
42186 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
42188 if test $ol_cv_db_db_4_1 = yes ; then
42189 ol_cv_lib_db=-ldb-4-1
42193 if test $ol_cv_lib_db = no ; then
42194 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
42195 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
42196 if test "${ol_cv_db_db3+set}" = set; then
42197 echo $ECHO_N "(cached) $ECHO_C" >&6
42202 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42204 cat >conftest.$ac_ext <<_ACEOF
42207 cat confdefs.h >>conftest.$ac_ext
42208 cat >>conftest.$ac_ext <<_ACEOF
42209 /* end confdefs.h. */
42211 #ifdef HAVE_DB_185_H
42212 # include <db_185.h>
42217 #ifndef DB_VERSION_MAJOR
42218 # define DB_VERSION_MAJOR 1
42222 #define NULL ((void*)0)
42229 #if DB_VERSION_MAJOR > 1
42232 int major, minor, patch;
42234 version = db_version( &major, &minor, &patch );
42236 if( major != DB_VERSION_MAJOR ||
42237 minor < DB_VERSION_MINOR )
42239 printf("Berkeley DB version mismatch\n"
42240 "\theader: %s\n\tlibrary: %s\n",
42241 DB_VERSION_STRING, version);
42247 #if DB_VERSION_MAJOR > 2
42248 db_env_create( NULL, 0 );
42249 #elif DB_VERSION_MAJOR > 1
42250 db_appexit( NULL );
42252 (void) dbopen( NULL, 0, 0, 0, NULL);
42259 rm -f conftest.$ac_objext conftest$ac_exeext
42260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42261 (eval $ac_link) 2>conftest.er1
42263 grep -v '^ *+' conftest.er1 >conftest.err
42265 cat conftest.err >&5
42266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42267 (exit $ac_status); } &&
42268 { ac_try='test -z "$ac_c_werror_flag"
42269 || test ! -s conftest.err'
42270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42271 (eval $ac_try) 2>&5
42273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42274 (exit $ac_status); }; } &&
42275 { ac_try='test -s conftest$ac_exeext'
42276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42277 (eval $ac_try) 2>&5
42279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42280 (exit $ac_status); }; }; then
42283 echo "$as_me: failed program was:" >&5
42284 sed 's/^/| /' conftest.$ac_ext >&5
42288 rm -f conftest.err conftest.$ac_objext \
42289 conftest$ac_exeext conftest.$ac_ext
42294 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
42295 echo "${ECHO_T}$ol_cv_db_db3" >&6
42297 if test $ol_cv_db_db3 = yes ; then
42302 if test $ol_cv_lib_db = no ; then
42303 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
42304 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
42305 if test "${ol_cv_db_db_3+set}" = set; then
42306 echo $ECHO_N "(cached) $ECHO_C" >&6
42311 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42313 cat >conftest.$ac_ext <<_ACEOF
42316 cat confdefs.h >>conftest.$ac_ext
42317 cat >>conftest.$ac_ext <<_ACEOF
42318 /* end confdefs.h. */
42320 #ifdef HAVE_DB_185_H
42321 # include <db_185.h>
42326 #ifndef DB_VERSION_MAJOR
42327 # define DB_VERSION_MAJOR 1
42331 #define NULL ((void*)0)
42338 #if DB_VERSION_MAJOR > 1
42341 int major, minor, patch;
42343 version = db_version( &major, &minor, &patch );
42345 if( major != DB_VERSION_MAJOR ||
42346 minor < DB_VERSION_MINOR )
42348 printf("Berkeley DB version mismatch\n"
42349 "\theader: %s\n\tlibrary: %s\n",
42350 DB_VERSION_STRING, version);
42356 #if DB_VERSION_MAJOR > 2
42357 db_env_create( NULL, 0 );
42358 #elif DB_VERSION_MAJOR > 1
42359 db_appexit( NULL );
42361 (void) dbopen( NULL, 0, 0, 0, NULL);
42368 rm -f conftest.$ac_objext conftest$ac_exeext
42369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42370 (eval $ac_link) 2>conftest.er1
42372 grep -v '^ *+' conftest.er1 >conftest.err
42374 cat conftest.err >&5
42375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42376 (exit $ac_status); } &&
42377 { ac_try='test -z "$ac_c_werror_flag"
42378 || test ! -s conftest.err'
42379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42380 (eval $ac_try) 2>&5
42382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42383 (exit $ac_status); }; } &&
42384 { ac_try='test -s conftest$ac_exeext'
42385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42386 (eval $ac_try) 2>&5
42388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42389 (exit $ac_status); }; }; then
42392 echo "$as_me: failed program was:" >&5
42393 sed 's/^/| /' conftest.$ac_ext >&5
42397 rm -f conftest.err conftest.$ac_objext \
42398 conftest$ac_exeext conftest.$ac_ext
42403 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
42404 echo "${ECHO_T}$ol_cv_db_db_3" >&6
42406 if test $ol_cv_db_db_3 = yes ; then
42407 ol_cv_lib_db=-ldb-3
42411 if test $ol_cv_lib_db = no ; then
42412 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
42413 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
42414 if test "${ol_cv_db_db2+set}" = set; then
42415 echo $ECHO_N "(cached) $ECHO_C" >&6
42420 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42422 cat >conftest.$ac_ext <<_ACEOF
42425 cat confdefs.h >>conftest.$ac_ext
42426 cat >>conftest.$ac_ext <<_ACEOF
42427 /* end confdefs.h. */
42429 #ifdef HAVE_DB_185_H
42430 # include <db_185.h>
42435 #ifndef DB_VERSION_MAJOR
42436 # define DB_VERSION_MAJOR 1
42440 #define NULL ((void*)0)
42447 #if DB_VERSION_MAJOR > 1
42450 int major, minor, patch;
42452 version = db_version( &major, &minor, &patch );
42454 if( major != DB_VERSION_MAJOR ||
42455 minor < DB_VERSION_MINOR )
42457 printf("Berkeley DB version mismatch\n"
42458 "\theader: %s\n\tlibrary: %s\n",
42459 DB_VERSION_STRING, version);
42465 #if DB_VERSION_MAJOR > 2
42466 db_env_create( NULL, 0 );
42467 #elif DB_VERSION_MAJOR > 1
42468 db_appexit( NULL );
42470 (void) dbopen( NULL, 0, 0, 0, NULL);
42477 rm -f conftest.$ac_objext conftest$ac_exeext
42478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42479 (eval $ac_link) 2>conftest.er1
42481 grep -v '^ *+' conftest.er1 >conftest.err
42483 cat conftest.err >&5
42484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42485 (exit $ac_status); } &&
42486 { ac_try='test -z "$ac_c_werror_flag"
42487 || test ! -s conftest.err'
42488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42489 (eval $ac_try) 2>&5
42491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42492 (exit $ac_status); }; } &&
42493 { ac_try='test -s conftest$ac_exeext'
42494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42495 (eval $ac_try) 2>&5
42497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42498 (exit $ac_status); }; }; then
42501 echo "$as_me: failed program was:" >&5
42502 sed 's/^/| /' conftest.$ac_ext >&5
42506 rm -f conftest.err conftest.$ac_objext \
42507 conftest$ac_exeext conftest.$ac_ext
42512 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
42513 echo "${ECHO_T}$ol_cv_db_db2" >&6
42515 if test $ol_cv_db_db2 = yes ; then
42520 if test $ol_cv_lib_db = no ; then
42521 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
42522 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
42523 if test "${ol_cv_db_db_2+set}" = set; then
42524 echo $ECHO_N "(cached) $ECHO_C" >&6
42529 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42531 cat >conftest.$ac_ext <<_ACEOF
42534 cat confdefs.h >>conftest.$ac_ext
42535 cat >>conftest.$ac_ext <<_ACEOF
42536 /* end confdefs.h. */
42538 #ifdef HAVE_DB_185_H
42539 # include <db_185.h>
42544 #ifndef DB_VERSION_MAJOR
42545 # define DB_VERSION_MAJOR 1
42549 #define NULL ((void*)0)
42556 #if DB_VERSION_MAJOR > 1
42559 int major, minor, patch;
42561 version = db_version( &major, &minor, &patch );
42563 if( major != DB_VERSION_MAJOR ||
42564 minor < DB_VERSION_MINOR )
42566 printf("Berkeley DB version mismatch\n"
42567 "\theader: %s\n\tlibrary: %s\n",
42568 DB_VERSION_STRING, version);
42574 #if DB_VERSION_MAJOR > 2
42575 db_env_create( NULL, 0 );
42576 #elif DB_VERSION_MAJOR > 1
42577 db_appexit( NULL );
42579 (void) dbopen( NULL, 0, 0, 0, NULL);
42586 rm -f conftest.$ac_objext conftest$ac_exeext
42587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42588 (eval $ac_link) 2>conftest.er1
42590 grep -v '^ *+' conftest.er1 >conftest.err
42592 cat conftest.err >&5
42593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42594 (exit $ac_status); } &&
42595 { ac_try='test -z "$ac_c_werror_flag"
42596 || test ! -s conftest.err'
42597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42598 (eval $ac_try) 2>&5
42600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42601 (exit $ac_status); }; } &&
42602 { ac_try='test -s conftest$ac_exeext'
42603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42604 (eval $ac_try) 2>&5
42606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42607 (exit $ac_status); }; }; then
42610 echo "$as_me: failed program was:" >&5
42611 sed 's/^/| /' conftest.$ac_ext >&5
42615 rm -f conftest.err conftest.$ac_objext \
42616 conftest$ac_exeext conftest.$ac_ext
42621 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
42622 echo "${ECHO_T}$ol_cv_db_db_2" >&6
42624 if test $ol_cv_db_db_2 = yes ; then
42625 ol_cv_lib_db=-ldb-2
42629 if test $ol_cv_lib_db = no ; then
42630 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
42631 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
42632 if test "${ol_cv_db_db1+set}" = set; then
42633 echo $ECHO_N "(cached) $ECHO_C" >&6
42638 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42640 cat >conftest.$ac_ext <<_ACEOF
42643 cat confdefs.h >>conftest.$ac_ext
42644 cat >>conftest.$ac_ext <<_ACEOF
42645 /* end confdefs.h. */
42647 #ifdef HAVE_DB_185_H
42648 # include <db_185.h>
42653 #ifndef DB_VERSION_MAJOR
42654 # define DB_VERSION_MAJOR 1
42658 #define NULL ((void*)0)
42665 #if DB_VERSION_MAJOR > 1
42668 int major, minor, patch;
42670 version = db_version( &major, &minor, &patch );
42672 if( major != DB_VERSION_MAJOR ||
42673 minor < DB_VERSION_MINOR )
42675 printf("Berkeley DB version mismatch\n"
42676 "\theader: %s\n\tlibrary: %s\n",
42677 DB_VERSION_STRING, version);
42683 #if DB_VERSION_MAJOR > 2
42684 db_env_create( NULL, 0 );
42685 #elif DB_VERSION_MAJOR > 1
42686 db_appexit( NULL );
42688 (void) dbopen( NULL, 0, 0, 0, NULL);
42695 rm -f conftest.$ac_objext conftest$ac_exeext
42696 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42697 (eval $ac_link) 2>conftest.er1
42699 grep -v '^ *+' conftest.er1 >conftest.err
42701 cat conftest.err >&5
42702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42703 (exit $ac_status); } &&
42704 { ac_try='test -z "$ac_c_werror_flag"
42705 || test ! -s conftest.err'
42706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42707 (eval $ac_try) 2>&5
42709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42710 (exit $ac_status); }; } &&
42711 { ac_try='test -s conftest$ac_exeext'
42712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42713 (eval $ac_try) 2>&5
42715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42716 (exit $ac_status); }; }; then
42719 echo "$as_me: failed program was:" >&5
42720 sed 's/^/| /' conftest.$ac_ext >&5
42724 rm -f conftest.err conftest.$ac_objext \
42725 conftest$ac_exeext conftest.$ac_ext
42730 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
42731 echo "${ECHO_T}$ol_cv_db_db1" >&6
42733 if test $ol_cv_db_db1 = yes ; then
42738 if test $ol_cv_lib_db = no ; then
42739 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
42740 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
42741 if test "${ol_cv_db_db_1+set}" = set; then
42742 echo $ECHO_N "(cached) $ECHO_C" >&6
42747 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42749 cat >conftest.$ac_ext <<_ACEOF
42752 cat confdefs.h >>conftest.$ac_ext
42753 cat >>conftest.$ac_ext <<_ACEOF
42754 /* end confdefs.h. */
42756 #ifdef HAVE_DB_185_H
42757 # include <db_185.h>
42762 #ifndef DB_VERSION_MAJOR
42763 # define DB_VERSION_MAJOR 1
42767 #define NULL ((void*)0)
42774 #if DB_VERSION_MAJOR > 1
42777 int major, minor, patch;
42779 version = db_version( &major, &minor, &patch );
42781 if( major != DB_VERSION_MAJOR ||
42782 minor < DB_VERSION_MINOR )
42784 printf("Berkeley DB version mismatch\n"
42785 "\theader: %s\n\tlibrary: %s\n",
42786 DB_VERSION_STRING, version);
42792 #if DB_VERSION_MAJOR > 2
42793 db_env_create( NULL, 0 );
42794 #elif DB_VERSION_MAJOR > 1
42795 db_appexit( NULL );
42797 (void) dbopen( NULL, 0, 0, 0, NULL);
42804 rm -f conftest.$ac_objext conftest$ac_exeext
42805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42806 (eval $ac_link) 2>conftest.er1
42808 grep -v '^ *+' conftest.er1 >conftest.err
42810 cat conftest.err >&5
42811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42812 (exit $ac_status); } &&
42813 { ac_try='test -z "$ac_c_werror_flag"
42814 || test ! -s conftest.err'
42815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42816 (eval $ac_try) 2>&5
42818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42819 (exit $ac_status); }; } &&
42820 { ac_try='test -s conftest$ac_exeext'
42821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42822 (eval $ac_try) 2>&5
42824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42825 (exit $ac_status); }; }; then
42828 echo "$as_me: failed program was:" >&5
42829 sed 's/^/| /' conftest.$ac_ext >&5
42833 rm -f conftest.err conftest.$ac_objext \
42834 conftest$ac_exeext conftest.$ac_ext
42839 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
42840 echo "${ECHO_T}$ol_cv_db_db_1" >&6
42842 if test $ol_cv_db_db_1 = yes ; then
42843 ol_cv_lib_db=-ldb-1
42848 if test "$ol_cv_lib_db" != no ; then
42849 ol_cv_berkeley_db=yes
42850 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
42851 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
42852 if test "${ol_cv_berkeley_db_version+set}" = set; then
42853 echo $ECHO_N "(cached) $ECHO_C" >&6
42857 LIBS="$LTHREAD_LIBS $LIBS"
42858 if test $ol_cv_lib_db != yes ; then
42859 LIBS="$ol_cv_lib_db $LIBS"
42862 if test "$cross_compiling" = yes; then
42863 ol_cv_berkeley_db_version=cross
42865 cat >conftest.$ac_ext <<_ACEOF
42868 cat confdefs.h >>conftest.$ac_ext
42869 cat >>conftest.$ac_ext <<_ACEOF
42870 /* end confdefs.h. */
42872 #ifdef HAVE_DB_185_H
42877 #ifndef DB_VERSION_MAJOR
42878 # define DB_VERSION_MAJOR 1
42881 #define NULL ((void *)0)
42885 #if DB_VERSION_MAJOR > 1
42887 int major, minor, patch;
42889 version = db_version( &major, &minor, &patch );
42891 if( major != DB_VERSION_MAJOR ||
42892 minor != DB_VERSION_MINOR ||
42893 patch != DB_VERSION_PATCH )
42895 printf("Berkeley DB version mismatch\n"
42896 "\theader: %s\n\tlibrary: %s\n",
42897 DB_VERSION_STRING, version);
42905 rm -f conftest$ac_exeext
42906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42907 (eval $ac_link) 2>&5
42909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42912 (eval $ac_try) 2>&5
42914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42915 (exit $ac_status); }; }; then
42916 ol_cv_berkeley_db_version=yes
42918 echo "$as_me: program exited with status $ac_status" >&5
42919 echo "$as_me: failed program was:" >&5
42920 sed 's/^/| /' conftest.$ac_ext >&5
42922 ( exit $ac_status )
42923 ol_cv_berkeley_db_version=no
42925 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42931 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
42932 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
42934 if test $ol_cv_berkeley_db_version = no ; then
42935 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
42936 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
42937 { (exit 1); exit 1; }; }
42940 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
42941 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
42942 if test "${ol_cv_berkeley_db_thread+set}" = set; then
42943 echo $ECHO_N "(cached) $ECHO_C" >&6
42947 LIBS="$LTHREAD_LIBS $LIBS"
42948 if test $ol_cv_lib_db != yes ; then
42949 LIBS="$ol_cv_lib_db $LIBS"
42952 if test "$cross_compiling" = yes; then
42953 ol_cv_berkeley_db_thread=cross
42955 cat >conftest.$ac_ext <<_ACEOF
42958 cat confdefs.h >>conftest.$ac_ext
42959 cat >>conftest.$ac_ext <<_ACEOF
42960 /* end confdefs.h. */
42962 #ifdef HAVE_DB_185_H
42968 #define NULL ((void *)0)
42973 u_int32_t flags = DB_CREATE |
42979 #if DB_VERSION_MAJOR > 2
42980 DB_ENV *env = NULL;
42982 rc = db_env_create( &env, 0 );
42984 flags |= DB_INIT_MPOOL;
42985 #ifdef DB_MPOOL_PRIVATE
42986 flags |= DB_MPOOL_PRIVATE;
42990 printf("BerkeleyDB: %s\n", db_strerror(rc) );
42994 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
42995 rc = env->open( env, NULL, flags, 0 );
42997 rc = env->open( env, NULL, NULL, flags, 0 );
43001 rc = env->close( env, 0 );
43005 printf("BerkeleyDB: %s\n", db_strerror(rc) );
43011 memset( &env, '\0', sizeof(env) );
43013 rc = db_appinit( NULL, NULL, &env, flags );
43016 db_appexit( &env );
43019 unlink("__db_mpool.share");
43020 unlink("__db_lock.share");
43026 rm -f conftest$ac_exeext
43027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43028 (eval $ac_link) 2>&5
43030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43031 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43033 (eval $ac_try) 2>&5
43035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43036 (exit $ac_status); }; }; then
43037 ol_cv_berkeley_db_thread=yes
43039 echo "$as_me: program exited with status $ac_status" >&5
43040 echo "$as_me: failed program was:" >&5
43041 sed 's/^/| /' conftest.$ac_ext >&5
43043 ( exit $ac_status )
43044 ol_cv_berkeley_db_thread=no
43046 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43052 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
43053 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
43055 if test $ol_cv_berkeley_db_thread != no ; then
43057 cat >>confdefs.h <<\_ACEOF
43058 #define HAVE_BERKELEY_DB_THREAD 1
43068 if test $ol_cv_berkeley_db != no ; then
43070 cat >>confdefs.h <<\_ACEOF
43071 #define HAVE_BERKELEY_DB 1
43075 ol_link_ldbm=berkeley
43076 ol_with_ldbm_api=berkeley
43078 if test $ol_with_ldbm_type = hash ; then
43080 cat >>confdefs.h <<\_ACEOF
43081 #define LDBM_USE_DBHASH 1
43086 cat >>confdefs.h <<\_ACEOF
43087 #define LDBM_USE_DBBTREE 1
43092 if test $ol_cv_lib_db != yes ; then
43093 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
43098 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
43099 if test $ol_link_ldbm != berkeley ; then
43100 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
43101 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
43102 { (exit 1); exit 1; }; }
43104 echo "$as_me:$LINENO: checking Berkeley DB version for BDB backend" >&5
43105 echo $ECHO_N "checking Berkeley DB version for BDB backend... $ECHO_C" >&6
43106 if test "${ol_cv_bdb_compat+set}" = set; then
43107 echo $ECHO_N "(cached) $ECHO_C" >&6
43110 cat >conftest.$ac_ext <<_ACEOF
43113 cat confdefs.h >>conftest.$ac_ext
43114 cat >>conftest.$ac_ext <<_ACEOF
43115 /* end confdefs.h. */
43119 /* this check could be improved */
43120 #ifndef DB_VERSION_MAJOR
43121 # define DB_VERSION_MAJOR 1
43123 #ifndef DB_VERSION_MINOR
43124 # define DB_VERSION_MINOR 0
43127 /* require 4.2 or later */
43128 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
43129 __db_version_compat
43133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43134 $EGREP "__db_version_compat" >/dev/null 2>&1; then
43135 ol_cv_bdb_compat=yes
43137 ol_cv_bdb_compat=no
43142 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
43143 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
43146 if test $ol_cv_bdb_compat != yes ; then
43147 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
43148 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
43149 { (exit 1); exit 1; }; }
43154 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
43155 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
43156 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
43157 ol_with_ldbm_api=none
43160 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
43161 echo "$as_me:$LINENO: checking for MDBM library" >&5
43162 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
43163 if test "${ol_cv_lib_mdbm+set}" = set; then
43164 echo $ECHO_N "(cached) $ECHO_C" >&6
43167 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
43168 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
43169 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
43170 echo $ECHO_N "(cached) $ECHO_C" >&6
43172 cat >conftest.$ac_ext <<_ACEOF
43175 cat confdefs.h >>conftest.$ac_ext
43176 cat >>conftest.$ac_ext <<_ACEOF
43177 /* end confdefs.h. */
43178 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
43179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43180 #define mdbm_set_chain innocuous_mdbm_set_chain
43182 /* System header to define __stub macros and hopefully few prototypes,
43183 which can conflict with char mdbm_set_chain (); below.
43184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43185 <limits.h> exists even on freestanding compilers. */
43188 # include <limits.h>
43190 # include <assert.h>
43193 #undef mdbm_set_chain
43195 /* Override any gcc2 internal prototype to avoid an error. */
43200 /* We use char because int might match the return type of a gcc2
43201 builtin and then its argument prototype would still apply. */
43202 char mdbm_set_chain ();
43203 /* The GNU C library defines this for functions which it implements
43204 to always fail with ENOSYS. Some functions are actually named
43205 something starting with __ and the normal name is an alias. */
43206 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
43209 char (*f) () = mdbm_set_chain;
43218 return f != mdbm_set_chain;
43223 rm -f conftest.$ac_objext conftest$ac_exeext
43224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43225 (eval $ac_link) 2>conftest.er1
43227 grep -v '^ *+' conftest.er1 >conftest.err
43229 cat conftest.err >&5
43230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43231 (exit $ac_status); } &&
43232 { ac_try='test -z "$ac_c_werror_flag"
43233 || test ! -s conftest.err'
43234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43235 (eval $ac_try) 2>&5
43237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43238 (exit $ac_status); }; } &&
43239 { ac_try='test -s conftest$ac_exeext'
43240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43241 (eval $ac_try) 2>&5
43243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43244 (exit $ac_status); }; }; then
43245 ac_cv_func_mdbm_set_chain=yes
43247 echo "$as_me: failed program was:" >&5
43248 sed 's/^/| /' conftest.$ac_ext >&5
43250 ac_cv_func_mdbm_set_chain=no
43252 rm -f conftest.err conftest.$ac_objext \
43253 conftest$ac_exeext conftest.$ac_ext
43255 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
43256 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
43257 if test $ac_cv_func_mdbm_set_chain = yes; then
43261 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
43262 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
43263 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
43264 echo $ECHO_N "(cached) $ECHO_C" >&6
43266 ac_check_lib_save_LIBS=$LIBS
43267 LIBS="-lmdbm $LIBS"
43268 cat >conftest.$ac_ext <<_ACEOF
43271 cat confdefs.h >>conftest.$ac_ext
43272 cat >>conftest.$ac_ext <<_ACEOF
43273 /* end confdefs.h. */
43275 /* Override any gcc2 internal prototype to avoid an error. */
43279 /* We use char because int might match the return type of a gcc2
43280 builtin and then its argument prototype would still apply. */
43281 char mdbm_set_chain ();
43290 rm -f conftest.$ac_objext conftest$ac_exeext
43291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43292 (eval $ac_link) 2>conftest.er1
43294 grep -v '^ *+' conftest.er1 >conftest.err
43296 cat conftest.err >&5
43297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43298 (exit $ac_status); } &&
43299 { ac_try='test -z "$ac_c_werror_flag"
43300 || test ! -s conftest.err'
43301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43302 (eval $ac_try) 2>&5
43304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43305 (exit $ac_status); }; } &&
43306 { ac_try='test -s conftest$ac_exeext'
43307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43308 (eval $ac_try) 2>&5
43310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43311 (exit $ac_status); }; }; then
43312 ac_cv_lib_mdbm_mdbm_set_chain=yes
43314 echo "$as_me: failed program was:" >&5
43315 sed 's/^/| /' conftest.$ac_ext >&5
43317 ac_cv_lib_mdbm_mdbm_set_chain=no
43319 rm -f conftest.err conftest.$ac_objext \
43320 conftest$ac_exeext conftest.$ac_ext
43321 LIBS=$ac_check_lib_save_LIBS
43323 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
43324 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
43325 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
43326 ol_cv_lib_mdbm=-lmdbm
43337 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
43338 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
43342 for ac_header in mdbm.h
43344 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43345 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43346 echo "$as_me:$LINENO: checking for $ac_header" >&5
43347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43349 echo $ECHO_N "(cached) $ECHO_C" >&6
43351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43352 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43354 # Is the header compilable?
43355 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43356 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43357 cat >conftest.$ac_ext <<_ACEOF
43360 cat confdefs.h >>conftest.$ac_ext
43361 cat >>conftest.$ac_ext <<_ACEOF
43362 /* end confdefs.h. */
43363 $ac_includes_default
43364 #include <$ac_header>
43366 rm -f conftest.$ac_objext
43367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43368 (eval $ac_compile) 2>conftest.er1
43370 grep -v '^ *+' conftest.er1 >conftest.err
43372 cat conftest.err >&5
43373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43374 (exit $ac_status); } &&
43375 { ac_try='test -z "$ac_c_werror_flag"
43376 || test ! -s conftest.err'
43377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43378 (eval $ac_try) 2>&5
43380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43381 (exit $ac_status); }; } &&
43382 { ac_try='test -s conftest.$ac_objext'
43383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43384 (eval $ac_try) 2>&5
43386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43387 (exit $ac_status); }; }; then
43388 ac_header_compiler=yes
43390 echo "$as_me: failed program was:" >&5
43391 sed 's/^/| /' conftest.$ac_ext >&5
43393 ac_header_compiler=no
43395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43397 echo "${ECHO_T}$ac_header_compiler" >&6
43399 # Is the header present?
43400 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43401 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43402 cat >conftest.$ac_ext <<_ACEOF
43405 cat confdefs.h >>conftest.$ac_ext
43406 cat >>conftest.$ac_ext <<_ACEOF
43407 /* end confdefs.h. */
43408 #include <$ac_header>
43410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43413 grep -v '^ *+' conftest.er1 >conftest.err
43415 cat conftest.err >&5
43416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43417 (exit $ac_status); } >/dev/null; then
43418 if test -s conftest.err; then
43419 ac_cpp_err=$ac_c_preproc_warn_flag
43420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43427 if test -z "$ac_cpp_err"; then
43428 ac_header_preproc=yes
43430 echo "$as_me: failed program was:" >&5
43431 sed 's/^/| /' conftest.$ac_ext >&5
43433 ac_header_preproc=no
43435 rm -f conftest.err conftest.$ac_ext
43436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43437 echo "${ECHO_T}$ac_header_preproc" >&6
43439 # So? What about this header?
43440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43446 ac_header_preproc=yes
43449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43452 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43456 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43463 ## ------------------------------------------ ##
43464 ## Report this to the AC_PACKAGE_NAME lists. ##
43465 ## ------------------------------------------ ##
43468 sed "s/^/$as_me: WARNING: /" >&2
43471 echo "$as_me:$LINENO: checking for $ac_header" >&5
43472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43474 echo $ECHO_N "(cached) $ECHO_C" >&6
43476 eval "$as_ac_Header=\$ac_header_preproc"
43478 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43479 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43483 cat >>confdefs.h <<_ACEOF
43484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43491 echo "$as_me:$LINENO: checking for db" >&5
43492 echo $ECHO_N "checking for db... $ECHO_C" >&6
43493 if test "${ol_cv_mdbm+set}" = set; then
43494 echo $ECHO_N "(cached) $ECHO_C" >&6
43497 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
43504 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
43505 echo "${ECHO_T}$ol_cv_mdbm" >&6
43506 if test $ol_cv_mdbm = yes ; then
43508 cat >>confdefs.h <<\_ACEOF
43509 #define HAVE_MDBM 1
43515 if test $ol_cv_mdbm = yes ; then
43517 ol_with_ldbm_api=mdbm
43518 if test $ol_cv_lib_mdbm != yes ; then
43519 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
43524 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
43525 echo "$as_me:$LINENO: checking for GDBM library" >&5
43526 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
43527 if test "${ol_cv_lib_gdbm+set}" = set; then
43528 echo $ECHO_N "(cached) $ECHO_C" >&6
43531 echo "$as_me:$LINENO: checking for gdbm_open" >&5
43532 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
43533 if test "${ac_cv_func_gdbm_open+set}" = set; then
43534 echo $ECHO_N "(cached) $ECHO_C" >&6
43536 cat >conftest.$ac_ext <<_ACEOF
43539 cat confdefs.h >>conftest.$ac_ext
43540 cat >>conftest.$ac_ext <<_ACEOF
43541 /* end confdefs.h. */
43542 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
43543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43544 #define gdbm_open innocuous_gdbm_open
43546 /* System header to define __stub macros and hopefully few prototypes,
43547 which can conflict with char gdbm_open (); below.
43548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43549 <limits.h> exists even on freestanding compilers. */
43552 # include <limits.h>
43554 # include <assert.h>
43559 /* Override any gcc2 internal prototype to avoid an error. */
43564 /* We use char because int might match the return type of a gcc2
43565 builtin and then its argument prototype would still apply. */
43567 /* The GNU C library defines this for functions which it implements
43568 to always fail with ENOSYS. Some functions are actually named
43569 something starting with __ and the normal name is an alias. */
43570 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
43573 char (*f) () = gdbm_open;
43582 return f != gdbm_open;
43587 rm -f conftest.$ac_objext conftest$ac_exeext
43588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43589 (eval $ac_link) 2>conftest.er1
43591 grep -v '^ *+' conftest.er1 >conftest.err
43593 cat conftest.err >&5
43594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43595 (exit $ac_status); } &&
43596 { ac_try='test -z "$ac_c_werror_flag"
43597 || test ! -s conftest.err'
43598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43599 (eval $ac_try) 2>&5
43601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43602 (exit $ac_status); }; } &&
43603 { ac_try='test -s conftest$ac_exeext'
43604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43605 (eval $ac_try) 2>&5
43607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43608 (exit $ac_status); }; }; then
43609 ac_cv_func_gdbm_open=yes
43611 echo "$as_me: failed program was:" >&5
43612 sed 's/^/| /' conftest.$ac_ext >&5
43614 ac_cv_func_gdbm_open=no
43616 rm -f conftest.err conftest.$ac_objext \
43617 conftest$ac_exeext conftest.$ac_ext
43619 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
43620 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
43621 if test $ac_cv_func_gdbm_open = yes; then
43625 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
43626 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
43627 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
43628 echo $ECHO_N "(cached) $ECHO_C" >&6
43630 ac_check_lib_save_LIBS=$LIBS
43631 LIBS="-lgdbm $LIBS"
43632 cat >conftest.$ac_ext <<_ACEOF
43635 cat confdefs.h >>conftest.$ac_ext
43636 cat >>conftest.$ac_ext <<_ACEOF
43637 /* end confdefs.h. */
43639 /* Override any gcc2 internal prototype to avoid an error. */
43643 /* We use char because int might match the return type of a gcc2
43644 builtin and then its argument prototype would still apply. */
43654 rm -f conftest.$ac_objext conftest$ac_exeext
43655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43656 (eval $ac_link) 2>conftest.er1
43658 grep -v '^ *+' conftest.er1 >conftest.err
43660 cat conftest.err >&5
43661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43662 (exit $ac_status); } &&
43663 { ac_try='test -z "$ac_c_werror_flag"
43664 || test ! -s conftest.err'
43665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43666 (eval $ac_try) 2>&5
43668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43669 (exit $ac_status); }; } &&
43670 { ac_try='test -s conftest$ac_exeext'
43671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43672 (eval $ac_try) 2>&5
43674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43675 (exit $ac_status); }; }; then
43676 ac_cv_lib_gdbm_gdbm_open=yes
43678 echo "$as_me: failed program was:" >&5
43679 sed 's/^/| /' conftest.$ac_ext >&5
43681 ac_cv_lib_gdbm_gdbm_open=no
43683 rm -f conftest.err conftest.$ac_objext \
43684 conftest$ac_exeext conftest.$ac_ext
43685 LIBS=$ac_check_lib_save_LIBS
43687 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
43688 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
43689 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
43690 ol_cv_lib_gdbm=-lgdbm
43701 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
43702 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
43706 for ac_header in gdbm.h
43708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43709 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43710 echo "$as_me:$LINENO: checking for $ac_header" >&5
43711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43712 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43713 echo $ECHO_N "(cached) $ECHO_C" >&6
43715 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43716 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43718 # Is the header compilable?
43719 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43721 cat >conftest.$ac_ext <<_ACEOF
43724 cat confdefs.h >>conftest.$ac_ext
43725 cat >>conftest.$ac_ext <<_ACEOF
43726 /* end confdefs.h. */
43727 $ac_includes_default
43728 #include <$ac_header>
43730 rm -f conftest.$ac_objext
43731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43732 (eval $ac_compile) 2>conftest.er1
43734 grep -v '^ *+' conftest.er1 >conftest.err
43736 cat conftest.err >&5
43737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43738 (exit $ac_status); } &&
43739 { ac_try='test -z "$ac_c_werror_flag"
43740 || test ! -s conftest.err'
43741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43742 (eval $ac_try) 2>&5
43744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43745 (exit $ac_status); }; } &&
43746 { ac_try='test -s conftest.$ac_objext'
43747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43748 (eval $ac_try) 2>&5
43750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43751 (exit $ac_status); }; }; then
43752 ac_header_compiler=yes
43754 echo "$as_me: failed program was:" >&5
43755 sed 's/^/| /' conftest.$ac_ext >&5
43757 ac_header_compiler=no
43759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43760 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43761 echo "${ECHO_T}$ac_header_compiler" >&6
43763 # Is the header present?
43764 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43766 cat >conftest.$ac_ext <<_ACEOF
43769 cat confdefs.h >>conftest.$ac_ext
43770 cat >>conftest.$ac_ext <<_ACEOF
43771 /* end confdefs.h. */
43772 #include <$ac_header>
43774 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43777 grep -v '^ *+' conftest.er1 >conftest.err
43779 cat conftest.err >&5
43780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43781 (exit $ac_status); } >/dev/null; then
43782 if test -s conftest.err; then
43783 ac_cpp_err=$ac_c_preproc_warn_flag
43784 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43791 if test -z "$ac_cpp_err"; then
43792 ac_header_preproc=yes
43794 echo "$as_me: failed program was:" >&5
43795 sed 's/^/| /' conftest.$ac_ext >&5
43797 ac_header_preproc=no
43799 rm -f conftest.err conftest.$ac_ext
43800 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43801 echo "${ECHO_T}$ac_header_preproc" >&6
43803 # So? What about this header?
43804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43806 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43810 ac_header_preproc=yes
43813 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43815 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43816 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43817 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43819 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43820 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43823 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43827 ## ------------------------------------------ ##
43828 ## Report this to the AC_PACKAGE_NAME lists. ##
43829 ## ------------------------------------------ ##
43832 sed "s/^/$as_me: WARNING: /" >&2
43835 echo "$as_me:$LINENO: checking for $ac_header" >&5
43836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43837 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43838 echo $ECHO_N "(cached) $ECHO_C" >&6
43840 eval "$as_ac_Header=\$ac_header_preproc"
43842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43843 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43846 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43847 cat >>confdefs.h <<_ACEOF
43848 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43855 echo "$as_me:$LINENO: checking for db" >&5
43856 echo $ECHO_N "checking for db... $ECHO_C" >&6
43857 if test "${ol_cv_gdbm+set}" = set; then
43858 echo $ECHO_N "(cached) $ECHO_C" >&6
43861 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
43868 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
43869 echo "${ECHO_T}$ol_cv_gdbm" >&6
43870 if test $ol_cv_gdbm = yes ; then
43872 cat >>confdefs.h <<\_ACEOF
43873 #define HAVE_GDBM 1
43879 if test $ol_cv_gdbm = yes ; then
43881 ol_with_ldbm_api=gdbm
43883 if test $ol_cv_lib_gdbm != yes ; then
43884 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
43889 if test $ol_with_ldbm_api = ndbm ; then
43890 echo "$as_me:$LINENO: checking for NDBM library" >&5
43891 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
43892 if test "${ol_cv_lib_ndbm+set}" = set; then
43893 echo $ECHO_N "(cached) $ECHO_C" >&6
43896 echo "$as_me:$LINENO: checking for dbm_open" >&5
43897 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
43898 if test "${ac_cv_func_dbm_open+set}" = set; then
43899 echo $ECHO_N "(cached) $ECHO_C" >&6
43901 cat >conftest.$ac_ext <<_ACEOF
43904 cat confdefs.h >>conftest.$ac_ext
43905 cat >>conftest.$ac_ext <<_ACEOF
43906 /* end confdefs.h. */
43907 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
43908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43909 #define dbm_open innocuous_dbm_open
43911 /* System header to define __stub macros and hopefully few prototypes,
43912 which can conflict with char dbm_open (); below.
43913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43914 <limits.h> exists even on freestanding compilers. */
43917 # include <limits.h>
43919 # include <assert.h>
43924 /* Override any gcc2 internal prototype to avoid an error. */
43929 /* We use char because int might match the return type of a gcc2
43930 builtin and then its argument prototype would still apply. */
43932 /* The GNU C library defines this for functions which it implements
43933 to always fail with ENOSYS. Some functions are actually named
43934 something starting with __ and the normal name is an alias. */
43935 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
43938 char (*f) () = dbm_open;
43947 return f != dbm_open;
43952 rm -f conftest.$ac_objext conftest$ac_exeext
43953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43954 (eval $ac_link) 2>conftest.er1
43956 grep -v '^ *+' conftest.er1 >conftest.err
43958 cat conftest.err >&5
43959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43960 (exit $ac_status); } &&
43961 { ac_try='test -z "$ac_c_werror_flag"
43962 || test ! -s conftest.err'
43963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43964 (eval $ac_try) 2>&5
43966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43967 (exit $ac_status); }; } &&
43968 { ac_try='test -s conftest$ac_exeext'
43969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43970 (eval $ac_try) 2>&5
43972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43973 (exit $ac_status); }; }; then
43974 ac_cv_func_dbm_open=yes
43976 echo "$as_me: failed program was:" >&5
43977 sed 's/^/| /' conftest.$ac_ext >&5
43979 ac_cv_func_dbm_open=no
43981 rm -f conftest.err conftest.$ac_objext \
43982 conftest$ac_exeext conftest.$ac_ext
43984 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
43985 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
43986 if test $ac_cv_func_dbm_open = yes; then
43990 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
43991 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
43992 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
43993 echo $ECHO_N "(cached) $ECHO_C" >&6
43995 ac_check_lib_save_LIBS=$LIBS
43996 LIBS="-lndbm $LIBS"
43997 cat >conftest.$ac_ext <<_ACEOF
44000 cat confdefs.h >>conftest.$ac_ext
44001 cat >>conftest.$ac_ext <<_ACEOF
44002 /* end confdefs.h. */
44004 /* Override any gcc2 internal prototype to avoid an error. */
44008 /* We use char because int might match the return type of a gcc2
44009 builtin and then its argument prototype would still apply. */
44019 rm -f conftest.$ac_objext conftest$ac_exeext
44020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44021 (eval $ac_link) 2>conftest.er1
44023 grep -v '^ *+' conftest.er1 >conftest.err
44025 cat conftest.err >&5
44026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44027 (exit $ac_status); } &&
44028 { ac_try='test -z "$ac_c_werror_flag"
44029 || test ! -s conftest.err'
44030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44031 (eval $ac_try) 2>&5
44033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44034 (exit $ac_status); }; } &&
44035 { ac_try='test -s conftest$ac_exeext'
44036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44037 (eval $ac_try) 2>&5
44039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44040 (exit $ac_status); }; }; then
44041 ac_cv_lib_ndbm_dbm_open=yes
44043 echo "$as_me: failed program was:" >&5
44044 sed 's/^/| /' conftest.$ac_ext >&5
44046 ac_cv_lib_ndbm_dbm_open=no
44048 rm -f conftest.err conftest.$ac_objext \
44049 conftest$ac_exeext conftest.$ac_ext
44050 LIBS=$ac_check_lib_save_LIBS
44052 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
44053 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
44054 if test $ac_cv_lib_ndbm_dbm_open = yes; then
44055 ol_cv_lib_ndbm=-lndbm
44058 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
44059 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
44060 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
44061 echo $ECHO_N "(cached) $ECHO_C" >&6
44063 ac_check_lib_save_LIBS=$LIBS
44065 cat >conftest.$ac_ext <<_ACEOF
44068 cat confdefs.h >>conftest.$ac_ext
44069 cat >>conftest.$ac_ext <<_ACEOF
44070 /* end confdefs.h. */
44072 /* Override any gcc2 internal prototype to avoid an error. */
44076 /* We use char because int might match the return type of a gcc2
44077 builtin and then its argument prototype would still apply. */
44087 rm -f conftest.$ac_objext conftest$ac_exeext
44088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44089 (eval $ac_link) 2>conftest.er1
44091 grep -v '^ *+' conftest.er1 >conftest.err
44093 cat conftest.err >&5
44094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44095 (exit $ac_status); } &&
44096 { ac_try='test -z "$ac_c_werror_flag"
44097 || test ! -s conftest.err'
44098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44099 (eval $ac_try) 2>&5
44101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44102 (exit $ac_status); }; } &&
44103 { ac_try='test -s conftest$ac_exeext'
44104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44105 (eval $ac_try) 2>&5
44107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44108 (exit $ac_status); }; }; then
44109 ac_cv_lib_dbm_dbm_open=yes
44111 echo "$as_me: failed program was:" >&5
44112 sed 's/^/| /' conftest.$ac_ext >&5
44114 ac_cv_lib_dbm_dbm_open=no
44116 rm -f conftest.err conftest.$ac_objext \
44117 conftest$ac_exeext conftest.$ac_ext
44118 LIBS=$ac_check_lib_save_LIBS
44120 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
44121 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
44122 if test $ac_cv_lib_dbm_dbm_open = yes; then
44123 ol_cv_lib_ndbm=-ldbm
44136 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
44137 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
44141 for ac_header in ndbm.h
44143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44144 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44145 echo "$as_me:$LINENO: checking for $ac_header" >&5
44146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44147 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44148 echo $ECHO_N "(cached) $ECHO_C" >&6
44150 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44151 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44153 # Is the header compilable?
44154 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44155 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44156 cat >conftest.$ac_ext <<_ACEOF
44159 cat confdefs.h >>conftest.$ac_ext
44160 cat >>conftest.$ac_ext <<_ACEOF
44161 /* end confdefs.h. */
44162 $ac_includes_default
44163 #include <$ac_header>
44165 rm -f conftest.$ac_objext
44166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44167 (eval $ac_compile) 2>conftest.er1
44169 grep -v '^ *+' conftest.er1 >conftest.err
44171 cat conftest.err >&5
44172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44173 (exit $ac_status); } &&
44174 { ac_try='test -z "$ac_c_werror_flag"
44175 || test ! -s conftest.err'
44176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44177 (eval $ac_try) 2>&5
44179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44180 (exit $ac_status); }; } &&
44181 { ac_try='test -s conftest.$ac_objext'
44182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44183 (eval $ac_try) 2>&5
44185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44186 (exit $ac_status); }; }; then
44187 ac_header_compiler=yes
44189 echo "$as_me: failed program was:" >&5
44190 sed 's/^/| /' conftest.$ac_ext >&5
44192 ac_header_compiler=no
44194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44195 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44196 echo "${ECHO_T}$ac_header_compiler" >&6
44198 # Is the header present?
44199 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44201 cat >conftest.$ac_ext <<_ACEOF
44204 cat confdefs.h >>conftest.$ac_ext
44205 cat >>conftest.$ac_ext <<_ACEOF
44206 /* end confdefs.h. */
44207 #include <$ac_header>
44209 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44212 grep -v '^ *+' conftest.er1 >conftest.err
44214 cat conftest.err >&5
44215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44216 (exit $ac_status); } >/dev/null; then
44217 if test -s conftest.err; then
44218 ac_cpp_err=$ac_c_preproc_warn_flag
44219 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44226 if test -z "$ac_cpp_err"; then
44227 ac_header_preproc=yes
44229 echo "$as_me: failed program was:" >&5
44230 sed 's/^/| /' conftest.$ac_ext >&5
44232 ac_header_preproc=no
44234 rm -f conftest.err conftest.$ac_ext
44235 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44236 echo "${ECHO_T}$ac_header_preproc" >&6
44238 # So? What about this header?
44239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44245 ac_header_preproc=yes
44248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44251 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44254 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44255 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44258 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44262 ## ------------------------------------------ ##
44263 ## Report this to the AC_PACKAGE_NAME lists. ##
44264 ## ------------------------------------------ ##
44267 sed "s/^/$as_me: WARNING: /" >&2
44270 echo "$as_me:$LINENO: checking for $ac_header" >&5
44271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44272 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44273 echo $ECHO_N "(cached) $ECHO_C" >&6
44275 eval "$as_ac_Header=\$ac_header_preproc"
44277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44282 cat >>confdefs.h <<_ACEOF
44283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44290 echo "$as_me:$LINENO: checking for db" >&5
44291 echo $ECHO_N "checking for db... $ECHO_C" >&6
44292 if test "${ol_cv_ndbm+set}" = set; then
44293 echo $ECHO_N "(cached) $ECHO_C" >&6
44296 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
44303 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
44304 echo "${ECHO_T}$ol_cv_ndbm" >&6
44305 if test $ol_cv_ndbm = yes ; then
44307 cat >>confdefs.h <<\_ACEOF
44308 #define HAVE_NDBM 1
44314 if test $ol_cv_ndbm = yes ; then
44316 ol_with_ldbm_api=ndbm
44318 if test $ol_cv_lib_ndbm != yes ; then
44319 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
44324 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
44325 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
44326 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
44327 { (exit 1); exit 1; }; }
44330 if test $ol_enable_bdb = yes -o \
44331 $ol_enable_hdb = yes -o \
44332 $ol_enable_ldbm = yes ; then
44333 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
44337 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
44338 BUILD_LIBS_DYNAMIC=shared
44340 cat >>confdefs.h <<\_ACEOF
44341 #define LDAP_LIBS_DYNAMIC 1
44346 BUILD_LIBS_DYNAMIC=static
44350 if test $ol_enable_wrappers != no ; then
44352 for ac_header in tcpd.h
44354 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44355 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44356 echo "$as_me:$LINENO: checking for $ac_header" >&5
44357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44358 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44359 echo $ECHO_N "(cached) $ECHO_C" >&6
44361 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44362 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44364 # Is the header compilable?
44365 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44367 cat >conftest.$ac_ext <<_ACEOF
44370 cat confdefs.h >>conftest.$ac_ext
44371 cat >>conftest.$ac_ext <<_ACEOF
44372 /* end confdefs.h. */
44373 $ac_includes_default
44374 #include <$ac_header>
44376 rm -f conftest.$ac_objext
44377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44378 (eval $ac_compile) 2>conftest.er1
44380 grep -v '^ *+' conftest.er1 >conftest.err
44382 cat conftest.err >&5
44383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44384 (exit $ac_status); } &&
44385 { ac_try='test -z "$ac_c_werror_flag"
44386 || test ! -s conftest.err'
44387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44388 (eval $ac_try) 2>&5
44390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44391 (exit $ac_status); }; } &&
44392 { ac_try='test -s conftest.$ac_objext'
44393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44394 (eval $ac_try) 2>&5
44396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44397 (exit $ac_status); }; }; then
44398 ac_header_compiler=yes
44400 echo "$as_me: failed program was:" >&5
44401 sed 's/^/| /' conftest.$ac_ext >&5
44403 ac_header_compiler=no
44405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44406 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44407 echo "${ECHO_T}$ac_header_compiler" >&6
44409 # Is the header present?
44410 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44412 cat >conftest.$ac_ext <<_ACEOF
44415 cat confdefs.h >>conftest.$ac_ext
44416 cat >>conftest.$ac_ext <<_ACEOF
44417 /* end confdefs.h. */
44418 #include <$ac_header>
44420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44423 grep -v '^ *+' conftest.er1 >conftest.err
44425 cat conftest.err >&5
44426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44427 (exit $ac_status); } >/dev/null; then
44428 if test -s conftest.err; then
44429 ac_cpp_err=$ac_c_preproc_warn_flag
44430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44437 if test -z "$ac_cpp_err"; then
44438 ac_header_preproc=yes
44440 echo "$as_me: failed program was:" >&5
44441 sed 's/^/| /' conftest.$ac_ext >&5
44443 ac_header_preproc=no
44445 rm -f conftest.err conftest.$ac_ext
44446 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44447 echo "${ECHO_T}$ac_header_preproc" >&6
44449 # So? What about this header?
44450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44456 ac_header_preproc=yes
44459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44466 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44473 ## ------------------------------------------ ##
44474 ## Report this to the AC_PACKAGE_NAME lists. ##
44475 ## ------------------------------------------ ##
44478 sed "s/^/$as_me: WARNING: /" >&2
44481 echo "$as_me:$LINENO: checking for $ac_header" >&5
44482 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44483 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44484 echo $ECHO_N "(cached) $ECHO_C" >&6
44486 eval "$as_ac_Header=\$ac_header_preproc"
44488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44493 cat >>confdefs.h <<_ACEOF
44494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44497 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
44498 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
44500 LIBS="$LIBS -lwrap"
44501 cat >conftest.$ac_ext <<_ACEOF
44504 cat confdefs.h >>conftest.$ac_ext
44505 cat >>conftest.$ac_ext <<_ACEOF
44506 /* end confdefs.h. */
44509 int allow_severity = 0;
44510 int deny_severity = 0;
44512 struct request_info *req;
44524 rm -f conftest.$ac_objext conftest$ac_exeext
44525 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44526 (eval $ac_link) 2>conftest.er1
44528 grep -v '^ *+' conftest.er1 >conftest.err
44530 cat conftest.err >&5
44531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44532 (exit $ac_status); } &&
44533 { ac_try='test -z "$ac_c_werror_flag"
44534 || test ! -s conftest.err'
44535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44536 (eval $ac_try) 2>&5
44538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44539 (exit $ac_status); }; } &&
44540 { ac_try='test -s conftest$ac_exeext'
44541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44542 (eval $ac_try) 2>&5
44544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44545 (exit $ac_status); }; }; then
44546 echo "$as_me:$LINENO: result: -lwrap" >&5
44547 echo "${ECHO_T}-lwrap" >&6
44551 echo "$as_me: failed program was:" >&5
44552 sed 's/^/| /' conftest.$ac_ext >&5
44556 cat >conftest.$ac_ext <<_ACEOF
44559 cat confdefs.h >>conftest.$ac_ext
44560 cat >>conftest.$ac_ext <<_ACEOF
44561 /* end confdefs.h. */
44564 int allow_severity = 0;
44565 int deny_severity = 0;
44567 struct request_info *req;
44579 rm -f conftest.$ac_objext conftest$ac_exeext
44580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44581 (eval $ac_link) 2>conftest.er1
44583 grep -v '^ *+' conftest.er1 >conftest.err
44585 cat conftest.err >&5
44586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44587 (exit $ac_status); } &&
44588 { ac_try='test -z "$ac_c_werror_flag"
44589 || test ! -s conftest.err'
44590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44591 (eval $ac_try) 2>&5
44593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44594 (exit $ac_status); }; } &&
44595 { ac_try='test -s conftest$ac_exeext'
44596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44597 (eval $ac_try) 2>&5
44599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44600 (exit $ac_status); }; }; then
44601 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
44602 echo "${ECHO_T}-lwrap -lnsl" >&6
44604 LIBS="$save_LIBS -lnsl"
44606 echo "$as_me: failed program was:" >&5
44607 sed 's/^/| /' conftest.$ac_ext >&5
44610 echo "$as_me:$LINENO: result: no" >&5
44611 echo "${ECHO_T}no" >&6
44615 rm -f conftest.err conftest.$ac_objext \
44616 conftest$ac_exeext conftest.$ac_ext
44618 rm -f conftest.err conftest.$ac_objext \
44619 conftest$ac_exeext conftest.$ac_ext
44627 if test $have_wrappers = yes ; then
44629 cat >>confdefs.h <<\_ACEOF
44630 #define HAVE_TCPD 1
44634 elif test $ol_enable_wrappers = yes ; then
44635 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
44636 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
44637 { (exit 1); exit 1; }; }
44639 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
44640 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
44645 if test $ol_enable_syslog != no ; then
44646 echo "$as_me:$LINENO: checking for openlog" >&5
44647 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
44648 if test "${ac_cv_func_openlog+set}" = set; then
44649 echo $ECHO_N "(cached) $ECHO_C" >&6
44651 cat >conftest.$ac_ext <<_ACEOF
44654 cat confdefs.h >>conftest.$ac_ext
44655 cat >>conftest.$ac_ext <<_ACEOF
44656 /* end confdefs.h. */
44657 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
44658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44659 #define openlog innocuous_openlog
44661 /* System header to define __stub macros and hopefully few prototypes,
44662 which can conflict with char openlog (); below.
44663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44664 <limits.h> exists even on freestanding compilers. */
44667 # include <limits.h>
44669 # include <assert.h>
44674 /* Override any gcc2 internal prototype to avoid an error. */
44679 /* We use char because int might match the return type of a gcc2
44680 builtin and then its argument prototype would still apply. */
44682 /* The GNU C library defines this for functions which it implements
44683 to always fail with ENOSYS. Some functions are actually named
44684 something starting with __ and the normal name is an alias. */
44685 #if defined (__stub_openlog) || defined (__stub___openlog)
44688 char (*f) () = openlog;
44697 return f != openlog;
44702 rm -f conftest.$ac_objext conftest$ac_exeext
44703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44704 (eval $ac_link) 2>conftest.er1
44706 grep -v '^ *+' conftest.er1 >conftest.err
44708 cat conftest.err >&5
44709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44710 (exit $ac_status); } &&
44711 { ac_try='test -z "$ac_c_werror_flag"
44712 || test ! -s conftest.err'
44713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44714 (eval $ac_try) 2>&5
44716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44717 (exit $ac_status); }; } &&
44718 { ac_try='test -s conftest$ac_exeext'
44719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44720 (eval $ac_try) 2>&5
44722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44723 (exit $ac_status); }; }; then
44724 ac_cv_func_openlog=yes
44726 echo "$as_me: failed program was:" >&5
44727 sed 's/^/| /' conftest.$ac_ext >&5
44729 ac_cv_func_openlog=no
44731 rm -f conftest.err conftest.$ac_objext \
44732 conftest$ac_exeext conftest.$ac_ext
44734 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
44735 echo "${ECHO_T}$ac_cv_func_openlog" >&6
44737 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
44738 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
44739 echo "$as_me: error: could not find syslog" >&2;}
44740 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
44742 ol_enable_syslog=$ac_cv_func_openlog
44747 if test $ol_enable_sql != no ; then
44750 for ac_header in sql.h sqlext.h
44752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44753 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44754 echo "$as_me:$LINENO: checking for $ac_header" >&5
44755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44757 echo $ECHO_N "(cached) $ECHO_C" >&6
44759 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44760 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44762 # Is the header compilable?
44763 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44765 cat >conftest.$ac_ext <<_ACEOF
44768 cat confdefs.h >>conftest.$ac_ext
44769 cat >>conftest.$ac_ext <<_ACEOF
44770 /* end confdefs.h. */
44771 $ac_includes_default
44772 #include <$ac_header>
44774 rm -f conftest.$ac_objext
44775 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44776 (eval $ac_compile) 2>conftest.er1
44778 grep -v '^ *+' conftest.er1 >conftest.err
44780 cat conftest.err >&5
44781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44782 (exit $ac_status); } &&
44783 { ac_try='test -z "$ac_c_werror_flag"
44784 || test ! -s conftest.err'
44785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44786 (eval $ac_try) 2>&5
44788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44789 (exit $ac_status); }; } &&
44790 { ac_try='test -s conftest.$ac_objext'
44791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44792 (eval $ac_try) 2>&5
44794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44795 (exit $ac_status); }; }; then
44796 ac_header_compiler=yes
44798 echo "$as_me: failed program was:" >&5
44799 sed 's/^/| /' conftest.$ac_ext >&5
44801 ac_header_compiler=no
44803 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44805 echo "${ECHO_T}$ac_header_compiler" >&6
44807 # Is the header present?
44808 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44809 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44810 cat >conftest.$ac_ext <<_ACEOF
44813 cat confdefs.h >>conftest.$ac_ext
44814 cat >>conftest.$ac_ext <<_ACEOF
44815 /* end confdefs.h. */
44816 #include <$ac_header>
44818 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44819 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44821 grep -v '^ *+' conftest.er1 >conftest.err
44823 cat conftest.err >&5
44824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44825 (exit $ac_status); } >/dev/null; then
44826 if test -s conftest.err; then
44827 ac_cpp_err=$ac_c_preproc_warn_flag
44828 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44835 if test -z "$ac_cpp_err"; then
44836 ac_header_preproc=yes
44838 echo "$as_me: failed program was:" >&5
44839 sed 's/^/| /' conftest.$ac_ext >&5
44841 ac_header_preproc=no
44843 rm -f conftest.err conftest.$ac_ext
44844 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44845 echo "${ECHO_T}$ac_header_preproc" >&6
44847 # So? What about this header?
44848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44850 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44851 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44853 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44854 ac_header_preproc=yes
44857 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44858 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44859 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44860 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44861 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44862 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44863 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44864 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44866 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44867 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44868 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44871 ## ------------------------------------------ ##
44872 ## Report this to the AC_PACKAGE_NAME lists. ##
44873 ## ------------------------------------------ ##
44876 sed "s/^/$as_me: WARNING: /" >&2
44879 echo "$as_me:$LINENO: checking for $ac_header" >&5
44880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44882 echo $ECHO_N "(cached) $ECHO_C" >&6
44884 eval "$as_ac_Header=\$ac_header_preproc"
44886 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44887 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44891 cat >>confdefs.h <<_ACEOF
44892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44897 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
44898 echo "$as_me: error: could not locate SQL headers" >&2;}
44899 { (exit 1); exit 1; }; }
44907 LIBS="$LTHREAD_LIBS"
44909 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
44910 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
44911 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
44912 echo $ECHO_N "(cached) $ECHO_C" >&6
44914 ac_check_lib_save_LIBS=$LIBS
44915 LIBS="-liodbc $LIBS"
44916 cat >conftest.$ac_ext <<_ACEOF
44919 cat confdefs.h >>conftest.$ac_ext
44920 cat >>conftest.$ac_ext <<_ACEOF
44921 /* end confdefs.h. */
44923 /* Override any gcc2 internal prototype to avoid an error. */
44927 /* We use char because int might match the return type of a gcc2
44928 builtin and then its argument prototype would still apply. */
44929 char SQLDriverConnect ();
44933 SQLDriverConnect ();
44938 rm -f conftest.$ac_objext conftest$ac_exeext
44939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44940 (eval $ac_link) 2>conftest.er1
44942 grep -v '^ *+' conftest.er1 >conftest.err
44944 cat conftest.err >&5
44945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44946 (exit $ac_status); } &&
44947 { ac_try='test -z "$ac_c_werror_flag"
44948 || test ! -s conftest.err'
44949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44950 (eval $ac_try) 2>&5
44952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44953 (exit $ac_status); }; } &&
44954 { ac_try='test -s conftest$ac_exeext'
44955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44956 (eval $ac_try) 2>&5
44958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44959 (exit $ac_status); }; }; then
44960 ac_cv_lib_iodbc_SQLDriverConnect=yes
44962 echo "$as_me: failed program was:" >&5
44963 sed 's/^/| /' conftest.$ac_ext >&5
44965 ac_cv_lib_iodbc_SQLDriverConnect=no
44967 rm -f conftest.err conftest.$ac_objext \
44968 conftest$ac_exeext conftest.$ac_ext
44969 LIBS=$ac_check_lib_save_LIBS
44971 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
44972 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
44973 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
44979 if test $have_iodbc = yes ; then
44980 ol_link_sql="-liodbc"
44982 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
44983 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
44984 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
44985 echo $ECHO_N "(cached) $ECHO_C" >&6
44987 ac_check_lib_save_LIBS=$LIBS
44988 LIBS="-lodbc $LIBS"
44989 cat >conftest.$ac_ext <<_ACEOF
44992 cat confdefs.h >>conftest.$ac_ext
44993 cat >>conftest.$ac_ext <<_ACEOF
44994 /* end confdefs.h. */
44996 /* Override any gcc2 internal prototype to avoid an error. */
45000 /* We use char because int might match the return type of a gcc2
45001 builtin and then its argument prototype would still apply. */
45002 char SQLDriverConnect ();
45006 SQLDriverConnect ();
45011 rm -f conftest.$ac_objext conftest$ac_exeext
45012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45013 (eval $ac_link) 2>conftest.er1
45015 grep -v '^ *+' conftest.er1 >conftest.err
45017 cat conftest.err >&5
45018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45019 (exit $ac_status); } &&
45020 { ac_try='test -z "$ac_c_werror_flag"
45021 || test ! -s conftest.err'
45022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45023 (eval $ac_try) 2>&5
45025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45026 (exit $ac_status); }; } &&
45027 { ac_try='test -s conftest$ac_exeext'
45028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45029 (eval $ac_try) 2>&5
45031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45032 (exit $ac_status); }; }; then
45033 ac_cv_lib_odbc_SQLDriverConnect=yes
45035 echo "$as_me: failed program was:" >&5
45036 sed 's/^/| /' conftest.$ac_ext >&5
45038 ac_cv_lib_odbc_SQLDriverConnect=no
45040 rm -f conftest.err conftest.$ac_objext \
45041 conftest$ac_exeext conftest.$ac_ext
45042 LIBS=$ac_check_lib_save_LIBS
45044 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
45045 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
45046 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
45052 if test $have_odbc = yes ; then
45053 ol_link_sql="-lodbc"
45059 if test $ol_link_sql != no ; then
45060 SLAPD_SQL_LIBS="$ol_link_sql"
45062 elif test $ol_enable_sql != auto ; then
45063 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
45064 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
45065 { (exit 1); exit 1; }; }
45072 if test $ol_with_cyrus_sasl != no ; then
45075 for ac_header in sasl/sasl.h sasl.h
45077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45079 echo "$as_me:$LINENO: checking for $ac_header" >&5
45080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45081 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45082 echo $ECHO_N "(cached) $ECHO_C" >&6
45084 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45085 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45087 # Is the header compilable?
45088 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45089 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45090 cat >conftest.$ac_ext <<_ACEOF
45093 cat confdefs.h >>conftest.$ac_ext
45094 cat >>conftest.$ac_ext <<_ACEOF
45095 /* end confdefs.h. */
45096 $ac_includes_default
45097 #include <$ac_header>
45099 rm -f conftest.$ac_objext
45100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45101 (eval $ac_compile) 2>conftest.er1
45103 grep -v '^ *+' conftest.er1 >conftest.err
45105 cat conftest.err >&5
45106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45107 (exit $ac_status); } &&
45108 { ac_try='test -z "$ac_c_werror_flag"
45109 || test ! -s conftest.err'
45110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45111 (eval $ac_try) 2>&5
45113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45114 (exit $ac_status); }; } &&
45115 { ac_try='test -s conftest.$ac_objext'
45116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45117 (eval $ac_try) 2>&5
45119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45120 (exit $ac_status); }; }; then
45121 ac_header_compiler=yes
45123 echo "$as_me: failed program was:" >&5
45124 sed 's/^/| /' conftest.$ac_ext >&5
45126 ac_header_compiler=no
45128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45129 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45130 echo "${ECHO_T}$ac_header_compiler" >&6
45132 # Is the header present?
45133 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45135 cat >conftest.$ac_ext <<_ACEOF
45138 cat confdefs.h >>conftest.$ac_ext
45139 cat >>conftest.$ac_ext <<_ACEOF
45140 /* end confdefs.h. */
45141 #include <$ac_header>
45143 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45144 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45146 grep -v '^ *+' conftest.er1 >conftest.err
45148 cat conftest.err >&5
45149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45150 (exit $ac_status); } >/dev/null; then
45151 if test -s conftest.err; then
45152 ac_cpp_err=$ac_c_preproc_warn_flag
45153 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45160 if test -z "$ac_cpp_err"; then
45161 ac_header_preproc=yes
45163 echo "$as_me: failed program was:" >&5
45164 sed 's/^/| /' conftest.$ac_ext >&5
45166 ac_header_preproc=no
45168 rm -f conftest.err conftest.$ac_ext
45169 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45170 echo "${ECHO_T}$ac_header_preproc" >&6
45172 # So? What about this header?
45173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45179 ac_header_preproc=yes
45182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45196 ## ------------------------------------------ ##
45197 ## Report this to the AC_PACKAGE_NAME lists. ##
45198 ## ------------------------------------------ ##
45201 sed "s/^/$as_me: WARNING: /" >&2
45204 echo "$as_me:$LINENO: checking for $ac_header" >&5
45205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45206 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45207 echo $ECHO_N "(cached) $ECHO_C" >&6
45209 eval "$as_ac_Header=\$ac_header_preproc"
45211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45212 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45216 cat >>confdefs.h <<_ACEOF
45217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45225 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
45226 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
45227 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
45228 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
45229 echo $ECHO_N "(cached) $ECHO_C" >&6
45231 ac_check_lib_save_LIBS=$LIBS
45232 LIBS="-lsasl2 $LIBS"
45233 cat >conftest.$ac_ext <<_ACEOF
45236 cat confdefs.h >>conftest.$ac_ext
45237 cat >>conftest.$ac_ext <<_ACEOF
45238 /* end confdefs.h. */
45240 /* Override any gcc2 internal prototype to avoid an error. */
45244 /* We use char because int might match the return type of a gcc2
45245 builtin and then its argument prototype would still apply. */
45246 char sasl_client_init ();
45250 sasl_client_init ();
45255 rm -f conftest.$ac_objext conftest$ac_exeext
45256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45257 (eval $ac_link) 2>conftest.er1
45259 grep -v '^ *+' conftest.er1 >conftest.err
45261 cat conftest.err >&5
45262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45263 (exit $ac_status); } &&
45264 { ac_try='test -z "$ac_c_werror_flag"
45265 || test ! -s conftest.err'
45266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45267 (eval $ac_try) 2>&5
45269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45270 (exit $ac_status); }; } &&
45271 { ac_try='test -s conftest$ac_exeext'
45272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45273 (eval $ac_try) 2>&5
45275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45276 (exit $ac_status); }; }; then
45277 ac_cv_lib_sasl2_sasl_client_init=yes
45279 echo "$as_me: failed program was:" >&5
45280 sed 's/^/| /' conftest.$ac_ext >&5
45282 ac_cv_lib_sasl2_sasl_client_init=no
45284 rm -f conftest.err conftest.$ac_objext \
45285 conftest$ac_exeext conftest.$ac_ext
45286 LIBS=$ac_check_lib_save_LIBS
45288 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
45289 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
45290 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
45291 ol_link_sasl="-lsasl2"
45293 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
45294 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
45295 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
45296 echo $ECHO_N "(cached) $ECHO_C" >&6
45298 ac_check_lib_save_LIBS=$LIBS
45299 LIBS="-lsasl $LIBS"
45300 cat >conftest.$ac_ext <<_ACEOF
45303 cat confdefs.h >>conftest.$ac_ext
45304 cat >>conftest.$ac_ext <<_ACEOF
45305 /* end confdefs.h. */
45307 /* Override any gcc2 internal prototype to avoid an error. */
45311 /* We use char because int might match the return type of a gcc2
45312 builtin and then its argument prototype would still apply. */
45313 char sasl_client_init ();
45317 sasl_client_init ();
45322 rm -f conftest.$ac_objext conftest$ac_exeext
45323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45324 (eval $ac_link) 2>conftest.er1
45326 grep -v '^ *+' conftest.er1 >conftest.err
45328 cat conftest.err >&5
45329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45330 (exit $ac_status); } &&
45331 { ac_try='test -z "$ac_c_werror_flag"
45332 || test ! -s conftest.err'
45333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45334 (eval $ac_try) 2>&5
45336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45337 (exit $ac_status); }; } &&
45338 { ac_try='test -s conftest$ac_exeext'
45339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45340 (eval $ac_try) 2>&5
45342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45343 (exit $ac_status); }; }; then
45344 ac_cv_lib_sasl_sasl_client_init=yes
45346 echo "$as_me: failed program was:" >&5
45347 sed 's/^/| /' conftest.$ac_ext >&5
45349 ac_cv_lib_sasl_sasl_client_init=no
45351 rm -f conftest.err conftest.$ac_objext \
45352 conftest$ac_exeext conftest.$ac_ext
45353 LIBS=$ac_check_lib_save_LIBS
45355 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
45356 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
45357 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
45358 ol_link_sasl="-lsasl"
45365 if test $ol_link_sasl = no ; then
45366 if test $ol_with_cyrus_sasl != auto ; then
45367 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
45368 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
45369 { (exit 1); exit 1; }; }
45371 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
45372 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
45373 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45374 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45375 if test $ol_link_tls = no ; then
45376 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45377 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45381 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
45382 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
45383 if test "${ol_cv_sasl_compat+set}" = set; then
45384 echo $ECHO_N "(cached) $ECHO_C" >&6
45387 cat >conftest.$ac_ext <<_ACEOF
45390 cat confdefs.h >>conftest.$ac_ext
45391 cat >>conftest.$ac_ext <<_ACEOF
45392 /* end confdefs.h. */
45394 #ifdef HAVE_SASL_SASL_H
45395 #include <sasl/sasl.h>
45400 /* Require 2.1.15+ */
45401 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
45402 char *__sasl_compat = "2.2+ or better okay (we guess)";
45403 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
45404 && SASL_VERSION_STEP >=15
45405 char *__sasl_compat = "2.1.15+ or better okay";
45409 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45410 $EGREP "__sasl_compat" >/dev/null 2>&1; then
45411 ol_cv_sasl_compat=yes
45413 ol_cv_sasl_compat=no
45418 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
45419 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
45421 if test $ol_cv_sasl_compat = no ; then
45423 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
45424 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
45425 { (exit 1); exit 1; }; }
45429 cat >>confdefs.h <<\_ACEOF
45430 #define HAVE_CYRUS_SASL 1
45433 SASL_LIBS="$ol_link_sasl"
45434 if test $ol_enable_spasswd != no ; then
45435 ol_link_spasswd=yes
45438 ac_save_LIBS="$LIBS"
45439 LIBS="$LIBS $ol_link_sasl"
45440 echo "$as_me:$LINENO: checking for sasl_version" >&5
45441 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
45442 if test "${ac_cv_func_sasl_version+set}" = set; then
45443 echo $ECHO_N "(cached) $ECHO_C" >&6
45445 cat >conftest.$ac_ext <<_ACEOF
45448 cat confdefs.h >>conftest.$ac_ext
45449 cat >>conftest.$ac_ext <<_ACEOF
45450 /* end confdefs.h. */
45451 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
45452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45453 #define sasl_version innocuous_sasl_version
45455 /* System header to define __stub macros and hopefully few prototypes,
45456 which can conflict with char sasl_version (); below.
45457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45458 <limits.h> exists even on freestanding compilers. */
45461 # include <limits.h>
45463 # include <assert.h>
45466 #undef sasl_version
45468 /* Override any gcc2 internal prototype to avoid an error. */
45473 /* We use char because int might match the return type of a gcc2
45474 builtin and then its argument prototype would still apply. */
45475 char sasl_version ();
45476 /* The GNU C library defines this for functions which it implements
45477 to always fail with ENOSYS. Some functions are actually named
45478 something starting with __ and the normal name is an alias. */
45479 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
45482 char (*f) () = sasl_version;
45491 return f != sasl_version;
45496 rm -f conftest.$ac_objext conftest$ac_exeext
45497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45498 (eval $ac_link) 2>conftest.er1
45500 grep -v '^ *+' conftest.er1 >conftest.err
45502 cat conftest.err >&5
45503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45504 (exit $ac_status); } &&
45505 { ac_try='test -z "$ac_c_werror_flag"
45506 || test ! -s conftest.err'
45507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45508 (eval $ac_try) 2>&5
45510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45511 (exit $ac_status); }; } &&
45512 { ac_try='test -s conftest$ac_exeext'
45513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45514 (eval $ac_try) 2>&5
45516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45517 (exit $ac_status); }; }; then
45518 ac_cv_func_sasl_version=yes
45520 echo "$as_me: failed program was:" >&5
45521 sed 's/^/| /' conftest.$ac_ext >&5
45523 ac_cv_func_sasl_version=no
45525 rm -f conftest.err conftest.$ac_objext \
45526 conftest$ac_exeext conftest.$ac_ext
45528 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
45529 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
45530 if test $ac_cv_func_sasl_version = yes; then
45532 cat >>confdefs.h <<\_ACEOF
45533 #define HAVE_SASL_VERSION 1
45538 LIBS="$ac_save_LIBS"
45544 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45545 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45546 if test $ol_link_tls = no ; then
45547 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45548 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45552 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
45554 if test -r /dev/urandom ; then
45555 dev="/dev/urandom";
45556 elif test -r /idev/urandom ; then
45557 dev="/idev/urandom";
45558 elif test -r /dev/srandom ; then
45559 dev="/dev/srandom";
45560 elif test -r /dev/random ; then
45562 elif test -r /idev/random ; then
45563 dev="/idev/random";
45566 if test $dev != no ; then
45568 cat >>confdefs.h <<_ACEOF
45569 #define URANDOM_DEVICE "$dev"
45576 if test $ol_with_fetch != no ; then
45578 LIBS="-lfetch -lcom_err $LIBS"
45579 echo "$as_me:$LINENO: checking fetch(3) library" >&5
45580 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
45581 if test "${ol_cv_lib_fetch+set}" = set; then
45582 echo $ECHO_N "(cached) $ECHO_C" >&6
45585 cat >conftest.$ac_ext <<_ACEOF
45588 cat confdefs.h >>conftest.$ac_ext
45589 cat >>conftest.$ac_ext <<_ACEOF
45590 /* end confdefs.h. */
45592 #include <sys/param.h>
45598 struct url *u = fetchParseURL("file:///");
45603 rm -f conftest.$ac_objext conftest$ac_exeext
45604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45605 (eval $ac_link) 2>conftest.er1
45607 grep -v '^ *+' conftest.er1 >conftest.err
45609 cat conftest.err >&5
45610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45611 (exit $ac_status); } &&
45612 { ac_try='test -z "$ac_c_werror_flag"
45613 || test ! -s conftest.err'
45614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45615 (eval $ac_try) 2>&5
45617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45618 (exit $ac_status); }; } &&
45619 { ac_try='test -s conftest$ac_exeext'
45620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45621 (eval $ac_try) 2>&5
45623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45624 (exit $ac_status); }; }; then
45625 ol_cv_lib_fetch=yes
45627 echo "$as_me: failed program was:" >&5
45628 sed 's/^/| /' conftest.$ac_ext >&5
45632 rm -f conftest.err conftest.$ac_objext \
45633 conftest$ac_exeext conftest.$ac_ext
45635 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
45636 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
45638 if test $ol_cv_lib_fetch != no ; then
45639 ol_link_fetch="-lfetch -lcom_err"
45641 cat >>confdefs.h <<\_ACEOF
45642 #define HAVE_FETCH 1
45648 if test $ol_cv_lib_fetch != no ; then
45649 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
45650 ol_link_fetch=freebsd
45652 elif test $ol_with_fetch != auto ; then
45653 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
45654 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
45655 { (exit 1); exit 1; }; }
45659 if test $ol_enable_crypt != no ; then
45661 LIBS="$TLS_LIBS $LIBS"
45663 echo "$as_me:$LINENO: checking for crypt" >&5
45664 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
45665 if test "${ac_cv_func_crypt+set}" = set; then
45666 echo $ECHO_N "(cached) $ECHO_C" >&6
45668 cat >conftest.$ac_ext <<_ACEOF
45671 cat confdefs.h >>conftest.$ac_ext
45672 cat >>conftest.$ac_ext <<_ACEOF
45673 /* end confdefs.h. */
45674 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
45675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45676 #define crypt innocuous_crypt
45678 /* System header to define __stub macros and hopefully few prototypes,
45679 which can conflict with char crypt (); below.
45680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45681 <limits.h> exists even on freestanding compilers. */
45684 # include <limits.h>
45686 # include <assert.h>
45691 /* Override any gcc2 internal prototype to avoid an error. */
45696 /* We use char because int might match the return type of a gcc2
45697 builtin and then its argument prototype would still apply. */
45699 /* The GNU C library defines this for functions which it implements
45700 to always fail with ENOSYS. Some functions are actually named
45701 something starting with __ and the normal name is an alias. */
45702 #if defined (__stub_crypt) || defined (__stub___crypt)
45705 char (*f) () = crypt;
45719 rm -f conftest.$ac_objext conftest$ac_exeext
45720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45721 (eval $ac_link) 2>conftest.er1
45723 grep -v '^ *+' conftest.er1 >conftest.err
45725 cat conftest.err >&5
45726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45727 (exit $ac_status); } &&
45728 { ac_try='test -z "$ac_c_werror_flag"
45729 || test ! -s conftest.err'
45730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45731 (eval $ac_try) 2>&5
45733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45734 (exit $ac_status); }; } &&
45735 { ac_try='test -s conftest$ac_exeext'
45736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45737 (eval $ac_try) 2>&5
45739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45740 (exit $ac_status); }; }; then
45741 ac_cv_func_crypt=yes
45743 echo "$as_me: failed program was:" >&5
45744 sed 's/^/| /' conftest.$ac_ext >&5
45746 ac_cv_func_crypt=no
45748 rm -f conftest.err conftest.$ac_objext \
45749 conftest$ac_exeext conftest.$ac_ext
45751 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
45752 echo "${ECHO_T}$ac_cv_func_crypt" >&6
45753 if test $ac_cv_func_crypt = yes; then
45758 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
45759 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
45760 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
45761 echo $ECHO_N "(cached) $ECHO_C" >&6
45763 ac_check_lib_save_LIBS=$LIBS
45764 LIBS="-lcrypt $LIBS"
45765 cat >conftest.$ac_ext <<_ACEOF
45768 cat confdefs.h >>conftest.$ac_ext
45769 cat >>conftest.$ac_ext <<_ACEOF
45770 /* end confdefs.h. */
45772 /* Override any gcc2 internal prototype to avoid an error. */
45776 /* We use char because int might match the return type of a gcc2
45777 builtin and then its argument prototype would still apply. */
45787 rm -f conftest.$ac_objext conftest$ac_exeext
45788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45789 (eval $ac_link) 2>conftest.er1
45791 grep -v '^ *+' conftest.er1 >conftest.err
45793 cat conftest.err >&5
45794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45795 (exit $ac_status); } &&
45796 { ac_try='test -z "$ac_c_werror_flag"
45797 || test ! -s conftest.err'
45798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45799 (eval $ac_try) 2>&5
45801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45802 (exit $ac_status); }; } &&
45803 { ac_try='test -s conftest$ac_exeext'
45804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45805 (eval $ac_try) 2>&5
45807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45808 (exit $ac_status); }; }; then
45809 ac_cv_lib_crypt_crypt=yes
45811 echo "$as_me: failed program was:" >&5
45812 sed 's/^/| /' conftest.$ac_ext >&5
45814 ac_cv_lib_crypt_crypt=no
45816 rm -f conftest.err conftest.$ac_objext \
45817 conftest$ac_exeext conftest.$ac_ext
45818 LIBS=$ac_check_lib_save_LIBS
45820 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
45821 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
45822 if test $ac_cv_lib_crypt_crypt = yes; then
45823 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
45834 if test $have_crypt = yes ; then
45836 cat >>confdefs.h <<\_ACEOF
45837 #define HAVE_CRYPT 1
45841 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
45842 echo "$as_me: WARNING: could not find crypt" >&2;}
45843 if test $ol_enable_crypt = yes ; then
45844 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
45845 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
45846 { (exit 1); exit 1; }; }
45849 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
45850 echo "$as_me: WARNING: disabling crypt support" >&2;}
45855 if test $ol_enable_proctitle != no ; then
45856 echo "$as_me:$LINENO: checking for setproctitle" >&5
45857 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
45858 if test "${ac_cv_func_setproctitle+set}" = set; then
45859 echo $ECHO_N "(cached) $ECHO_C" >&6
45861 cat >conftest.$ac_ext <<_ACEOF
45864 cat confdefs.h >>conftest.$ac_ext
45865 cat >>conftest.$ac_ext <<_ACEOF
45866 /* end confdefs.h. */
45867 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
45868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45869 #define setproctitle innocuous_setproctitle
45871 /* System header to define __stub macros and hopefully few prototypes,
45872 which can conflict with char setproctitle (); below.
45873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45874 <limits.h> exists even on freestanding compilers. */
45877 # include <limits.h>
45879 # include <assert.h>
45882 #undef setproctitle
45884 /* Override any gcc2 internal prototype to avoid an error. */
45889 /* We use char because int might match the return type of a gcc2
45890 builtin and then its argument prototype would still apply. */
45891 char setproctitle ();
45892 /* The GNU C library defines this for functions which it implements
45893 to always fail with ENOSYS. Some functions are actually named
45894 something starting with __ and the normal name is an alias. */
45895 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
45898 char (*f) () = setproctitle;
45907 return f != setproctitle;
45912 rm -f conftest.$ac_objext conftest$ac_exeext
45913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45914 (eval $ac_link) 2>conftest.er1
45916 grep -v '^ *+' conftest.er1 >conftest.err
45918 cat conftest.err >&5
45919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45920 (exit $ac_status); } &&
45921 { ac_try='test -z "$ac_c_werror_flag"
45922 || test ! -s conftest.err'
45923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45924 (eval $ac_try) 2>&5
45926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45927 (exit $ac_status); }; } &&
45928 { ac_try='test -s conftest$ac_exeext'
45929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45930 (eval $ac_try) 2>&5
45932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45933 (exit $ac_status); }; }; then
45934 ac_cv_func_setproctitle=yes
45936 echo "$as_me: failed program was:" >&5
45937 sed 's/^/| /' conftest.$ac_ext >&5
45939 ac_cv_func_setproctitle=no
45941 rm -f conftest.err conftest.$ac_objext \
45942 conftest$ac_exeext conftest.$ac_ext
45944 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
45945 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
45946 if test $ac_cv_func_setproctitle = yes; then
45947 have_setproctitle=yes
45950 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
45951 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
45952 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
45953 echo $ECHO_N "(cached) $ECHO_C" >&6
45955 ac_check_lib_save_LIBS=$LIBS
45956 LIBS="-lutil $LIBS"
45957 cat >conftest.$ac_ext <<_ACEOF
45960 cat confdefs.h >>conftest.$ac_ext
45961 cat >>conftest.$ac_ext <<_ACEOF
45962 /* end confdefs.h. */
45964 /* Override any gcc2 internal prototype to avoid an error. */
45968 /* We use char because int might match the return type of a gcc2
45969 builtin and then its argument prototype would still apply. */
45970 char setproctitle ();
45979 rm -f conftest.$ac_objext conftest$ac_exeext
45980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45981 (eval $ac_link) 2>conftest.er1
45983 grep -v '^ *+' conftest.er1 >conftest.err
45985 cat conftest.err >&5
45986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45987 (exit $ac_status); } &&
45988 { ac_try='test -z "$ac_c_werror_flag"
45989 || test ! -s conftest.err'
45990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45991 (eval $ac_try) 2>&5
45993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45994 (exit $ac_status); }; } &&
45995 { ac_try='test -s conftest$ac_exeext'
45996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45997 (eval $ac_try) 2>&5
45999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46000 (exit $ac_status); }; }; then
46001 ac_cv_lib_util_setproctitle=yes
46003 echo "$as_me: failed program was:" >&5
46004 sed 's/^/| /' conftest.$ac_ext >&5
46006 ac_cv_lib_util_setproctitle=no
46008 rm -f conftest.err conftest.$ac_objext \
46009 conftest$ac_exeext conftest.$ac_ext
46010 LIBS=$ac_check_lib_save_LIBS
46012 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
46013 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
46014 if test $ac_cv_lib_util_setproctitle = yes; then
46015 have_setproctitle=yes
46016 LUTIL_LIBS="$LUTIL_LIBS -lutil"
46018 have_setproctitle=no
46020 "setproctitle.$ac_objext" | \
46021 *" setproctitle.$ac_objext" | \
46022 "setproctitle.$ac_objext "* | \
46023 *" setproctitle.$ac_objext "* ) ;;
46024 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
46027 LIBSRCS="$LIBSRCS setproctitle.c"
46033 if test $have_setproctitle = yes ; then
46035 cat >>confdefs.h <<\_ACEOF
46036 #define HAVE_SETPROCTITLE 1
46042 if test $ol_enable_slp != no ; then
46044 for ac_header in slp.h
46046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46047 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46048 echo "$as_me:$LINENO: checking for $ac_header" >&5
46049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46050 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46051 echo $ECHO_N "(cached) $ECHO_C" >&6
46053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46056 # Is the header compilable?
46057 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46058 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46059 cat >conftest.$ac_ext <<_ACEOF
46062 cat confdefs.h >>conftest.$ac_ext
46063 cat >>conftest.$ac_ext <<_ACEOF
46064 /* end confdefs.h. */
46065 $ac_includes_default
46066 #include <$ac_header>
46068 rm -f conftest.$ac_objext
46069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46070 (eval $ac_compile) 2>conftest.er1
46072 grep -v '^ *+' conftest.er1 >conftest.err
46074 cat conftest.err >&5
46075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46076 (exit $ac_status); } &&
46077 { ac_try='test -z "$ac_c_werror_flag"
46078 || test ! -s conftest.err'
46079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46080 (eval $ac_try) 2>&5
46082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46083 (exit $ac_status); }; } &&
46084 { ac_try='test -s conftest.$ac_objext'
46085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46086 (eval $ac_try) 2>&5
46088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46089 (exit $ac_status); }; }; then
46090 ac_header_compiler=yes
46092 echo "$as_me: failed program was:" >&5
46093 sed 's/^/| /' conftest.$ac_ext >&5
46095 ac_header_compiler=no
46097 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46099 echo "${ECHO_T}$ac_header_compiler" >&6
46101 # Is the header present?
46102 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46104 cat >conftest.$ac_ext <<_ACEOF
46107 cat confdefs.h >>conftest.$ac_ext
46108 cat >>conftest.$ac_ext <<_ACEOF
46109 /* end confdefs.h. */
46110 #include <$ac_header>
46112 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46113 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46115 grep -v '^ *+' conftest.er1 >conftest.err
46117 cat conftest.err >&5
46118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46119 (exit $ac_status); } >/dev/null; then
46120 if test -s conftest.err; then
46121 ac_cpp_err=$ac_c_preproc_warn_flag
46122 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46129 if test -z "$ac_cpp_err"; then
46130 ac_header_preproc=yes
46132 echo "$as_me: failed program was:" >&5
46133 sed 's/^/| /' conftest.$ac_ext >&5
46135 ac_header_preproc=no
46137 rm -f conftest.err conftest.$ac_ext
46138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46139 echo "${ECHO_T}$ac_header_preproc" >&6
46141 # So? What about this header?
46142 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46144 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46145 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46146 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46147 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46148 ac_header_preproc=yes
46151 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46152 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46153 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46154 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46155 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46156 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46157 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46158 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46161 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46162 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46165 ## ------------------------------------------ ##
46166 ## Report this to the AC_PACKAGE_NAME lists. ##
46167 ## ------------------------------------------ ##
46170 sed "s/^/$as_me: WARNING: /" >&2
46173 echo "$as_me:$LINENO: checking for $ac_header" >&5
46174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46175 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46176 echo $ECHO_N "(cached) $ECHO_C" >&6
46178 eval "$as_ac_Header=\$ac_header_preproc"
46180 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46181 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46184 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46185 cat >>confdefs.h <<_ACEOF
46186 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46194 if test $ac_cv_header_slp_h = yes ; then
46195 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
46196 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
46197 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
46198 echo $ECHO_N "(cached) $ECHO_C" >&6
46200 ac_check_lib_save_LIBS=$LIBS
46202 cat >conftest.$ac_ext <<_ACEOF
46205 cat confdefs.h >>conftest.$ac_ext
46206 cat >>conftest.$ac_ext <<_ACEOF
46207 /* end confdefs.h. */
46209 /* Override any gcc2 internal prototype to avoid an error. */
46213 /* We use char because int might match the return type of a gcc2
46214 builtin and then its argument prototype would still apply. */
46224 rm -f conftest.$ac_objext conftest$ac_exeext
46225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46226 (eval $ac_link) 2>conftest.er1
46228 grep -v '^ *+' conftest.er1 >conftest.err
46230 cat conftest.err >&5
46231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46232 (exit $ac_status); } &&
46233 { ac_try='test -z "$ac_c_werror_flag"
46234 || test ! -s conftest.err'
46235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46236 (eval $ac_try) 2>&5
46238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46239 (exit $ac_status); }; } &&
46240 { ac_try='test -s conftest$ac_exeext'
46241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46242 (eval $ac_try) 2>&5
46244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46245 (exit $ac_status); }; }; then
46246 ac_cv_lib_slp_SLPOpen=yes
46248 echo "$as_me: failed program was:" >&5
46249 sed 's/^/| /' conftest.$ac_ext >&5
46251 ac_cv_lib_slp_SLPOpen=no
46253 rm -f conftest.err conftest.$ac_objext \
46254 conftest$ac_exeext conftest.$ac_ext
46255 LIBS=$ac_check_lib_save_LIBS
46257 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
46258 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
46259 if test $ac_cv_lib_slp_SLPOpen = yes; then
46265 if test $have_slp = yes ; then
46267 cat >>confdefs.h <<\_ACEOF
46271 SLAPD_SLP_LIBS=-lslp
46274 elif test $ol_enable_slp = yes ; then
46275 { { echo "$as_me:$LINENO: error: SLP not found" >&5
46276 echo "$as_me: error: SLP not found" >&2;}
46277 { (exit 1); exit 1; }; }
46281 if test "$ol_with_multiple_precision" != "no" ; then
46287 for ac_header in openssl/bn.h bn.h
46289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46291 echo "$as_me:$LINENO: checking for $ac_header" >&5
46292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46294 echo $ECHO_N "(cached) $ECHO_C" >&6
46296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46299 # Is the header compilable?
46300 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46302 cat >conftest.$ac_ext <<_ACEOF
46305 cat confdefs.h >>conftest.$ac_ext
46306 cat >>conftest.$ac_ext <<_ACEOF
46307 /* end confdefs.h. */
46308 $ac_includes_default
46309 #include <$ac_header>
46311 rm -f conftest.$ac_objext
46312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46313 (eval $ac_compile) 2>conftest.er1
46315 grep -v '^ *+' conftest.er1 >conftest.err
46317 cat conftest.err >&5
46318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46319 (exit $ac_status); } &&
46320 { ac_try='test -z "$ac_c_werror_flag"
46321 || test ! -s conftest.err'
46322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46323 (eval $ac_try) 2>&5
46325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46326 (exit $ac_status); }; } &&
46327 { ac_try='test -s conftest.$ac_objext'
46328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46329 (eval $ac_try) 2>&5
46331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46332 (exit $ac_status); }; }; then
46333 ac_header_compiler=yes
46335 echo "$as_me: failed program was:" >&5
46336 sed 's/^/| /' conftest.$ac_ext >&5
46338 ac_header_compiler=no
46340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46341 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46342 echo "${ECHO_T}$ac_header_compiler" >&6
46344 # Is the header present?
46345 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46347 cat >conftest.$ac_ext <<_ACEOF
46350 cat confdefs.h >>conftest.$ac_ext
46351 cat >>conftest.$ac_ext <<_ACEOF
46352 /* end confdefs.h. */
46353 #include <$ac_header>
46355 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46356 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46358 grep -v '^ *+' conftest.er1 >conftest.err
46360 cat conftest.err >&5
46361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46362 (exit $ac_status); } >/dev/null; then
46363 if test -s conftest.err; then
46364 ac_cpp_err=$ac_c_preproc_warn_flag
46365 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46372 if test -z "$ac_cpp_err"; then
46373 ac_header_preproc=yes
46375 echo "$as_me: failed program was:" >&5
46376 sed 's/^/| /' conftest.$ac_ext >&5
46378 ac_header_preproc=no
46380 rm -f conftest.err conftest.$ac_ext
46381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46382 echo "${ECHO_T}$ac_header_preproc" >&6
46384 # So? What about this header?
46385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46390 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46391 ac_header_preproc=yes
46394 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46395 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46396 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46397 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46398 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46399 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46400 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46401 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46404 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46405 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46408 ## ------------------------------------------ ##
46409 ## Report this to the AC_PACKAGE_NAME lists. ##
46410 ## ------------------------------------------ ##
46413 sed "s/^/$as_me: WARNING: /" >&2
46416 echo "$as_me:$LINENO: checking for $ac_header" >&5
46417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46418 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46419 echo $ECHO_N "(cached) $ECHO_C" >&6
46421 eval "$as_ac_Header=\$ac_header_preproc"
46423 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46424 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46428 cat >>confdefs.h <<_ACEOF
46429 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46438 for ac_header in openssl/crypto.h crypto.h
46440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46441 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46442 echo "$as_me:$LINENO: checking for $ac_header" >&5
46443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46444 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46445 echo $ECHO_N "(cached) $ECHO_C" >&6
46447 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46448 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46450 # Is the header compilable?
46451 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46453 cat >conftest.$ac_ext <<_ACEOF
46456 cat confdefs.h >>conftest.$ac_ext
46457 cat >>conftest.$ac_ext <<_ACEOF
46458 /* end confdefs.h. */
46459 $ac_includes_default
46460 #include <$ac_header>
46462 rm -f conftest.$ac_objext
46463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46464 (eval $ac_compile) 2>conftest.er1
46466 grep -v '^ *+' conftest.er1 >conftest.err
46468 cat conftest.err >&5
46469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46470 (exit $ac_status); } &&
46471 { ac_try='test -z "$ac_c_werror_flag"
46472 || test ! -s conftest.err'
46473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46474 (eval $ac_try) 2>&5
46476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46477 (exit $ac_status); }; } &&
46478 { ac_try='test -s conftest.$ac_objext'
46479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46480 (eval $ac_try) 2>&5
46482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46483 (exit $ac_status); }; }; then
46484 ac_header_compiler=yes
46486 echo "$as_me: failed program was:" >&5
46487 sed 's/^/| /' conftest.$ac_ext >&5
46489 ac_header_compiler=no
46491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46492 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46493 echo "${ECHO_T}$ac_header_compiler" >&6
46495 # Is the header present?
46496 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46498 cat >conftest.$ac_ext <<_ACEOF
46501 cat confdefs.h >>conftest.$ac_ext
46502 cat >>conftest.$ac_ext <<_ACEOF
46503 /* end confdefs.h. */
46504 #include <$ac_header>
46506 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46507 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46509 grep -v '^ *+' conftest.er1 >conftest.err
46511 cat conftest.err >&5
46512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46513 (exit $ac_status); } >/dev/null; then
46514 if test -s conftest.err; then
46515 ac_cpp_err=$ac_c_preproc_warn_flag
46516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46523 if test -z "$ac_cpp_err"; then
46524 ac_header_preproc=yes
46526 echo "$as_me: failed program was:" >&5
46527 sed 's/^/| /' conftest.$ac_ext >&5
46529 ac_header_preproc=no
46531 rm -f conftest.err conftest.$ac_ext
46532 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46533 echo "${ECHO_T}$ac_header_preproc" >&6
46535 # So? What about this header?
46536 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46538 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46539 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46541 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46542 ac_header_preproc=yes
46545 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46546 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46547 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46548 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46549 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46550 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46551 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46552 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46553 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46554 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46555 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46556 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46559 ## ------------------------------------------ ##
46560 ## Report this to the AC_PACKAGE_NAME lists. ##
46561 ## ------------------------------------------ ##
46564 sed "s/^/$as_me: WARNING: /" >&2
46567 echo "$as_me:$LINENO: checking for $ac_header" >&5
46568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46570 echo $ECHO_N "(cached) $ECHO_C" >&6
46572 eval "$as_ac_Header=\$ac_header_preproc"
46574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46579 cat >>confdefs.h <<_ACEOF
46580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46588 for ac_header in gmp.h
46590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46591 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46592 echo "$as_me:$LINENO: checking for $ac_header" >&5
46593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46594 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46595 echo $ECHO_N "(cached) $ECHO_C" >&6
46597 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46598 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46600 # Is the header compilable?
46601 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46603 cat >conftest.$ac_ext <<_ACEOF
46606 cat confdefs.h >>conftest.$ac_ext
46607 cat >>conftest.$ac_ext <<_ACEOF
46608 /* end confdefs.h. */
46609 $ac_includes_default
46610 #include <$ac_header>
46612 rm -f conftest.$ac_objext
46613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46614 (eval $ac_compile) 2>conftest.er1
46616 grep -v '^ *+' conftest.er1 >conftest.err
46618 cat conftest.err >&5
46619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46620 (exit $ac_status); } &&
46621 { ac_try='test -z "$ac_c_werror_flag"
46622 || test ! -s conftest.err'
46623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46624 (eval $ac_try) 2>&5
46626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46627 (exit $ac_status); }; } &&
46628 { ac_try='test -s conftest.$ac_objext'
46629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46630 (eval $ac_try) 2>&5
46632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46633 (exit $ac_status); }; }; then
46634 ac_header_compiler=yes
46636 echo "$as_me: failed program was:" >&5
46637 sed 's/^/| /' conftest.$ac_ext >&5
46639 ac_header_compiler=no
46641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46642 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46643 echo "${ECHO_T}$ac_header_compiler" >&6
46645 # Is the header present?
46646 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46647 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46648 cat >conftest.$ac_ext <<_ACEOF
46651 cat confdefs.h >>conftest.$ac_ext
46652 cat >>conftest.$ac_ext <<_ACEOF
46653 /* end confdefs.h. */
46654 #include <$ac_header>
46656 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46659 grep -v '^ *+' conftest.er1 >conftest.err
46661 cat conftest.err >&5
46662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46663 (exit $ac_status); } >/dev/null; then
46664 if test -s conftest.err; then
46665 ac_cpp_err=$ac_c_preproc_warn_flag
46666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46673 if test -z "$ac_cpp_err"; then
46674 ac_header_preproc=yes
46676 echo "$as_me: failed program was:" >&5
46677 sed 's/^/| /' conftest.$ac_ext >&5
46679 ac_header_preproc=no
46681 rm -f conftest.err conftest.$ac_ext
46682 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46683 echo "${ECHO_T}$ac_header_preproc" >&6
46685 # So? What about this header?
46686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46688 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46689 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46690 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46691 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46692 ac_header_preproc=yes
46695 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46696 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46697 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46698 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46699 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46700 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46701 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46702 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46705 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46706 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46709 ## ------------------------------------------ ##
46710 ## Report this to the AC_PACKAGE_NAME lists. ##
46711 ## ------------------------------------------ ##
46714 sed "s/^/$as_me: WARNING: /" >&2
46717 echo "$as_me:$LINENO: checking for $ac_header" >&5
46718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46719 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46720 echo $ECHO_N "(cached) $ECHO_C" >&6
46722 eval "$as_ac_Header=\$ac_header_preproc"
46724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46728 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46729 cat >>confdefs.h <<_ACEOF
46730 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46738 if test "$ol_with_tls" = "found" ; then
46740 ol_have_crypto_h=no
46742 if test "$ac_cv_header_openssl_bn_h" = "yes" \
46743 -o "$ac_cv_header_bn_h" = "yes" ; then
46747 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
46748 -o "$ac_cv_header_crypto_h" = "yes" ; then
46749 ol_have_crypto_h=yes
46752 if test "$ol_have_bn_h" = "yes" \
46753 -a "$ol_have_crypto_h" = "yes" ; then
46758 if test $ac_cv_header_gmp_h = yes ; then
46759 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
46760 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
46761 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
46762 echo $ECHO_N "(cached) $ECHO_C" >&6
46764 ac_check_lib_save_LIBS=$LIBS
46766 cat >conftest.$ac_ext <<_ACEOF
46769 cat confdefs.h >>conftest.$ac_ext
46770 cat >>conftest.$ac_ext <<_ACEOF
46771 /* end confdefs.h. */
46773 /* Override any gcc2 internal prototype to avoid an error. */
46777 /* We use char because int might match the return type of a gcc2
46778 builtin and then its argument prototype would still apply. */
46779 char __gmpz_add_ui ();
46788 rm -f conftest.$ac_objext conftest$ac_exeext
46789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46790 (eval $ac_link) 2>conftest.er1
46792 grep -v '^ *+' conftest.er1 >conftest.err
46794 cat conftest.err >&5
46795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46796 (exit $ac_status); } &&
46797 { ac_try='test -z "$ac_c_werror_flag"
46798 || test ! -s conftest.err'
46799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46800 (eval $ac_try) 2>&5
46802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46803 (exit $ac_status); }; } &&
46804 { ac_try='test -s conftest$ac_exeext'
46805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46806 (eval $ac_try) 2>&5
46808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46809 (exit $ac_status); }; }; then
46810 ac_cv_lib_gmp___gmpz_add_ui=yes
46812 echo "$as_me: failed program was:" >&5
46813 sed 's/^/| /' conftest.$ac_ext >&5
46815 ac_cv_lib_gmp___gmpz_add_ui=no
46817 rm -f conftest.err conftest.$ac_objext \
46818 conftest$ac_exeext conftest.$ac_ext
46819 LIBS=$ac_check_lib_save_LIBS
46821 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
46822 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
46823 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
46829 if test $have_gmp = yes ; then
46834 echo "$as_me:$LINENO: checking for multiple precision support" >&5
46835 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
46837 ol_mp_support="none"
46838 case "$ol_with_multiple_precision" in
46840 if test "$ol_have_bignum" = "yes" ; then
46841 ol_mp_support="bignum"
46843 if test "$ol_have_gmp" = "yes" ; then
46844 ol_mp_support="gmp"
46849 if test "$ol_have_bignum" != "yes" ; then
46850 { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
46851 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
46852 { (exit 1); exit 1; }; }
46854 ol_mp_support="bignum"
46857 if test "$ol_have_gmp" != "yes" ; then
46858 { { echo "$as_me:$LINENO: error: GMP not available" >&5
46859 echo "$as_me: error: GMP not available" >&2;}
46860 { (exit 1); exit 1; }; }
46862 ol_mp_support="gmp"
46865 if test "$ol_have_bignum" = "yes" ; then
46866 ol_mp_support="bignum"
46867 elif test "$ol_have_gmp" = "yes" ; then
46868 ol_mp_support="gmp"
46870 { { echo "$as_me:$LINENO: error: not available" >&5
46871 echo "$as_me: error: not available" >&2;}
46872 { (exit 1); exit 1; }; }
46877 case "$ol_mp_support" in
46880 cat >>confdefs.h <<\_ACEOF
46881 #define HAVE_BIGNUM 1
46887 cat >>confdefs.h <<\_ACEOF
46891 SLAPD_GMP_LIBS=-lgmp
46897 echo "$as_me:$LINENO: result: $ol_mp_support" >&5
46898 echo "${ECHO_T}$ol_mp_support" >&6
46902 echo "$as_me:$LINENO: checking long long" >&5
46903 echo $ECHO_N "checking long long... $ECHO_C" >&6
46904 if test "${ol_cv_type_long_long+set}" = set; then
46905 echo $ECHO_N "(cached) $ECHO_C" >&6
46908 cat >conftest.$ac_ext <<_ACEOF
46911 cat confdefs.h >>conftest.$ac_ext
46912 cat >>conftest.$ac_ext <<_ACEOF
46913 /* end confdefs.h. */
46923 rm -f conftest.$ac_objext
46924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46925 (eval $ac_compile) 2>conftest.er1
46927 grep -v '^ *+' conftest.er1 >conftest.err
46929 cat conftest.err >&5
46930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46931 (exit $ac_status); } &&
46932 { ac_try='test -z "$ac_c_werror_flag"
46933 || test ! -s conftest.err'
46934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46935 (eval $ac_try) 2>&5
46937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46938 (exit $ac_status); }; } &&
46939 { ac_try='test -s conftest.$ac_objext'
46940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46941 (eval $ac_try) 2>&5
46943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46944 (exit $ac_status); }; }; then
46945 ol_cv_type_long_long=yes
46947 echo "$as_me: failed program was:" >&5
46948 sed 's/^/| /' conftest.$ac_ext >&5
46950 ol_cv_type_long_long=no
46952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46954 echo "$as_me:$LINENO: result: $ol_cv_type_long_long" >&5
46955 echo "${ECHO_T}$ol_cv_type_long_long" >&6
46956 if test $ol_cv_type_long_long = yes; then
46958 cat >>confdefs.h <<\_ACEOF
46959 #define HAVE_LONG_LONG 1
46964 echo "$as_me:$LINENO: checking for mode_t" >&5
46965 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
46966 if test "${ac_cv_type_mode_t+set}" = set; then
46967 echo $ECHO_N "(cached) $ECHO_C" >&6
46969 cat >conftest.$ac_ext <<_ACEOF
46972 cat confdefs.h >>conftest.$ac_ext
46973 cat >>conftest.$ac_ext <<_ACEOF
46974 /* end confdefs.h. */
46975 $ac_includes_default
46981 if (sizeof (mode_t))
46987 rm -f conftest.$ac_objext
46988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46989 (eval $ac_compile) 2>conftest.er1
46991 grep -v '^ *+' conftest.er1 >conftest.err
46993 cat conftest.err >&5
46994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46995 (exit $ac_status); } &&
46996 { ac_try='test -z "$ac_c_werror_flag"
46997 || test ! -s conftest.err'
46998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46999 (eval $ac_try) 2>&5
47001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47002 (exit $ac_status); }; } &&
47003 { ac_try='test -s conftest.$ac_objext'
47004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47005 (eval $ac_try) 2>&5
47007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47008 (exit $ac_status); }; }; then
47009 ac_cv_type_mode_t=yes
47011 echo "$as_me: failed program was:" >&5
47012 sed 's/^/| /' conftest.$ac_ext >&5
47014 ac_cv_type_mode_t=no
47016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47018 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
47019 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
47020 if test $ac_cv_type_mode_t = yes; then
47024 cat >>confdefs.h <<_ACEOF
47030 echo "$as_me:$LINENO: checking for off_t" >&5
47031 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
47032 if test "${ac_cv_type_off_t+set}" = set; then
47033 echo $ECHO_N "(cached) $ECHO_C" >&6
47035 cat >conftest.$ac_ext <<_ACEOF
47038 cat confdefs.h >>conftest.$ac_ext
47039 cat >>conftest.$ac_ext <<_ACEOF
47040 /* end confdefs.h. */
47041 $ac_includes_default
47047 if (sizeof (off_t))
47053 rm -f conftest.$ac_objext
47054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47055 (eval $ac_compile) 2>conftest.er1
47057 grep -v '^ *+' conftest.er1 >conftest.err
47059 cat conftest.err >&5
47060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47061 (exit $ac_status); } &&
47062 { ac_try='test -z "$ac_c_werror_flag"
47063 || test ! -s conftest.err'
47064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47065 (eval $ac_try) 2>&5
47067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47068 (exit $ac_status); }; } &&
47069 { ac_try='test -s conftest.$ac_objext'
47070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47071 (eval $ac_try) 2>&5
47073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47074 (exit $ac_status); }; }; then
47075 ac_cv_type_off_t=yes
47077 echo "$as_me: failed program was:" >&5
47078 sed 's/^/| /' conftest.$ac_ext >&5
47080 ac_cv_type_off_t=no
47082 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47084 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
47085 echo "${ECHO_T}$ac_cv_type_off_t" >&6
47086 if test $ac_cv_type_off_t = yes; then
47090 cat >>confdefs.h <<_ACEOF
47096 echo "$as_me:$LINENO: checking for pid_t" >&5
47097 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
47098 if test "${ac_cv_type_pid_t+set}" = set; then
47099 echo $ECHO_N "(cached) $ECHO_C" >&6
47101 cat >conftest.$ac_ext <<_ACEOF
47104 cat confdefs.h >>conftest.$ac_ext
47105 cat >>conftest.$ac_ext <<_ACEOF
47106 /* end confdefs.h. */
47107 $ac_includes_default
47113 if (sizeof (pid_t))
47119 rm -f conftest.$ac_objext
47120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47121 (eval $ac_compile) 2>conftest.er1
47123 grep -v '^ *+' conftest.er1 >conftest.err
47125 cat conftest.err >&5
47126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47127 (exit $ac_status); } &&
47128 { ac_try='test -z "$ac_c_werror_flag"
47129 || test ! -s conftest.err'
47130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47131 (eval $ac_try) 2>&5
47133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47134 (exit $ac_status); }; } &&
47135 { ac_try='test -s conftest.$ac_objext'
47136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47137 (eval $ac_try) 2>&5
47139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47140 (exit $ac_status); }; }; then
47141 ac_cv_type_pid_t=yes
47143 echo "$as_me: failed program was:" >&5
47144 sed 's/^/| /' conftest.$ac_ext >&5
47146 ac_cv_type_pid_t=no
47148 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47150 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
47151 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
47152 if test $ac_cv_type_pid_t = yes; then
47156 cat >>confdefs.h <<_ACEOF
47162 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
47163 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
47164 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
47165 echo $ECHO_N "(cached) $ECHO_C" >&6
47167 cat >conftest.$ac_ext <<_ACEOF
47170 cat confdefs.h >>conftest.$ac_ext
47171 cat >>conftest.$ac_ext <<_ACEOF
47172 /* end confdefs.h. */
47173 $ac_includes_default
47177 if ((ptrdiff_t *) 0)
47179 if (sizeof (ptrdiff_t))
47185 rm -f conftest.$ac_objext
47186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47187 (eval $ac_compile) 2>conftest.er1
47189 grep -v '^ *+' conftest.er1 >conftest.err
47191 cat conftest.err >&5
47192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47193 (exit $ac_status); } &&
47194 { ac_try='test -z "$ac_c_werror_flag"
47195 || test ! -s conftest.err'
47196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47197 (eval $ac_try) 2>&5
47199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47200 (exit $ac_status); }; } &&
47201 { ac_try='test -s conftest.$ac_objext'
47202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47203 (eval $ac_try) 2>&5
47205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47206 (exit $ac_status); }; }; then
47207 ac_cv_type_ptrdiff_t=yes
47209 echo "$as_me: failed program was:" >&5
47210 sed 's/^/| /' conftest.$ac_ext >&5
47212 ac_cv_type_ptrdiff_t=no
47214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47216 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
47217 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
47218 if test $ac_cv_type_ptrdiff_t = yes; then
47220 cat >>confdefs.h <<_ACEOF
47221 #define HAVE_PTRDIFF_T 1
47227 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
47228 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
47229 if test "${ac_cv_type_signal+set}" = set; then
47230 echo $ECHO_N "(cached) $ECHO_C" >&6
47232 cat >conftest.$ac_ext <<_ACEOF
47235 cat confdefs.h >>conftest.$ac_ext
47236 cat >>conftest.$ac_ext <<_ACEOF
47237 /* end confdefs.h. */
47238 #include <sys/types.h>
47239 #include <signal.h>
47244 extern "C" void (*signal (int, void (*)(int)))(int);
47246 void (*signal ()) ();
47257 rm -f conftest.$ac_objext
47258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47259 (eval $ac_compile) 2>conftest.er1
47261 grep -v '^ *+' conftest.er1 >conftest.err
47263 cat conftest.err >&5
47264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47265 (exit $ac_status); } &&
47266 { ac_try='test -z "$ac_c_werror_flag"
47267 || test ! -s conftest.err'
47268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47269 (eval $ac_try) 2>&5
47271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47272 (exit $ac_status); }; } &&
47273 { ac_try='test -s conftest.$ac_objext'
47274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47275 (eval $ac_try) 2>&5
47277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47278 (exit $ac_status); }; }; then
47279 ac_cv_type_signal=void
47281 echo "$as_me: failed program was:" >&5
47282 sed 's/^/| /' conftest.$ac_ext >&5
47284 ac_cv_type_signal=int
47286 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47288 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
47289 echo "${ECHO_T}$ac_cv_type_signal" >&6
47291 cat >>confdefs.h <<_ACEOF
47292 #define RETSIGTYPE $ac_cv_type_signal
47296 echo "$as_me:$LINENO: checking for size_t" >&5
47297 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
47298 if test "${ac_cv_type_size_t+set}" = set; then
47299 echo $ECHO_N "(cached) $ECHO_C" >&6
47301 cat >conftest.$ac_ext <<_ACEOF
47304 cat confdefs.h >>conftest.$ac_ext
47305 cat >>conftest.$ac_ext <<_ACEOF
47306 /* end confdefs.h. */
47307 $ac_includes_default
47313 if (sizeof (size_t))
47319 rm -f conftest.$ac_objext
47320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47321 (eval $ac_compile) 2>conftest.er1
47323 grep -v '^ *+' conftest.er1 >conftest.err
47325 cat conftest.err >&5
47326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47327 (exit $ac_status); } &&
47328 { ac_try='test -z "$ac_c_werror_flag"
47329 || test ! -s conftest.err'
47330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47331 (eval $ac_try) 2>&5
47333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47334 (exit $ac_status); }; } &&
47335 { ac_try='test -s conftest.$ac_objext'
47336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47337 (eval $ac_try) 2>&5
47339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47340 (exit $ac_status); }; }; then
47341 ac_cv_type_size_t=yes
47343 echo "$as_me: failed program was:" >&5
47344 sed 's/^/| /' conftest.$ac_ext >&5
47346 ac_cv_type_size_t=no
47348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47350 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
47351 echo "${ECHO_T}$ac_cv_type_size_t" >&6
47352 if test $ac_cv_type_size_t = yes; then
47356 cat >>confdefs.h <<_ACEOF
47357 #define size_t unsigned
47363 echo "$as_me:$LINENO: checking for ssize_t" >&5
47364 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
47365 if test "${ac_cv_type_ssize_t+set}" = set; then
47366 echo $ECHO_N "(cached) $ECHO_C" >&6
47368 cat >conftest.$ac_ext <<_ACEOF
47371 cat confdefs.h >>conftest.$ac_ext
47372 cat >>conftest.$ac_ext <<_ACEOF
47373 /* end confdefs.h. */
47374 $ac_includes_default
47380 if (sizeof (ssize_t))
47386 rm -f conftest.$ac_objext
47387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47388 (eval $ac_compile) 2>conftest.er1
47390 grep -v '^ *+' conftest.er1 >conftest.err
47392 cat conftest.err >&5
47393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47394 (exit $ac_status); } &&
47395 { ac_try='test -z "$ac_c_werror_flag"
47396 || test ! -s conftest.err'
47397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47398 (eval $ac_try) 2>&5
47400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47401 (exit $ac_status); }; } &&
47402 { ac_try='test -s conftest.$ac_objext'
47403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47404 (eval $ac_try) 2>&5
47406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47407 (exit $ac_status); }; }; then
47408 ac_cv_type_ssize_t=yes
47410 echo "$as_me: failed program was:" >&5
47411 sed 's/^/| /' conftest.$ac_ext >&5
47413 ac_cv_type_ssize_t=no
47415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47417 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
47418 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
47419 if test $ac_cv_type_ssize_t = yes; then
47423 cat >>confdefs.h <<_ACEOF
47424 #define ssize_t signed int
47429 echo "$as_me:$LINENO: checking for caddr_t" >&5
47430 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
47431 if test "${ac_cv_type_caddr_t+set}" = set; then
47432 echo $ECHO_N "(cached) $ECHO_C" >&6
47434 cat >conftest.$ac_ext <<_ACEOF
47437 cat confdefs.h >>conftest.$ac_ext
47438 cat >>conftest.$ac_ext <<_ACEOF
47439 /* end confdefs.h. */
47440 $ac_includes_default
47446 if (sizeof (caddr_t))
47452 rm -f conftest.$ac_objext
47453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47454 (eval $ac_compile) 2>conftest.er1
47456 grep -v '^ *+' conftest.er1 >conftest.err
47458 cat conftest.err >&5
47459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47460 (exit $ac_status); } &&
47461 { ac_try='test -z "$ac_c_werror_flag"
47462 || test ! -s conftest.err'
47463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47464 (eval $ac_try) 2>&5
47466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47467 (exit $ac_status); }; } &&
47468 { ac_try='test -s conftest.$ac_objext'
47469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47470 (eval $ac_try) 2>&5
47472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47473 (exit $ac_status); }; }; then
47474 ac_cv_type_caddr_t=yes
47476 echo "$as_me: failed program was:" >&5
47477 sed 's/^/| /' conftest.$ac_ext >&5
47479 ac_cv_type_caddr_t=no
47481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47483 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
47484 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
47485 if test $ac_cv_type_caddr_t = yes; then
47489 cat >>confdefs.h <<_ACEOF
47490 #define caddr_t char *
47496 echo "$as_me:$LINENO: checking for socklen_t" >&5
47497 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
47498 if test "${ol_cv_type_socklen_t+set}" = set; then
47499 echo $ECHO_N "(cached) $ECHO_C" >&6
47501 cat >conftest.$ac_ext <<_ACEOF
47504 cat confdefs.h >>conftest.$ac_ext
47505 cat >>conftest.$ac_ext <<_ACEOF
47506 /* end confdefs.h. */
47508 #ifdef HAVE_SYS_TYPES_H
47509 #include <sys/types.h>
47511 #ifdef HAVE_SYS_SOCKET_H
47512 #include <sys/socket.h>
47523 rm -f conftest.$ac_objext
47524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47525 (eval $ac_compile) 2>conftest.er1
47527 grep -v '^ *+' conftest.er1 >conftest.err
47529 cat conftest.err >&5
47530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47531 (exit $ac_status); } &&
47532 { ac_try='test -z "$ac_c_werror_flag"
47533 || test ! -s conftest.err'
47534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47535 (eval $ac_try) 2>&5
47537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47538 (exit $ac_status); }; } &&
47539 { ac_try='test -s conftest.$ac_objext'
47540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47541 (eval $ac_try) 2>&5
47543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47544 (exit $ac_status); }; }; then
47545 ol_cv_type_socklen_t=yes
47547 echo "$as_me: failed program was:" >&5
47548 sed 's/^/| /' conftest.$ac_ext >&5
47550 ol_cv_type_socklen_t=no
47552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47554 echo "$as_me:$LINENO: result: $ol_cv_type_socklen_t" >&5
47555 echo "${ECHO_T}$ol_cv_type_socklen_t" >&6
47556 if test $ol_cv_type_socklen_t = no; then
47558 cat >>confdefs.h <<\_ACEOF
47559 #define socklen_t int
47564 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
47565 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
47566 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
47567 echo $ECHO_N "(cached) $ECHO_C" >&6
47569 cat >conftest.$ac_ext <<_ACEOF
47572 cat confdefs.h >>conftest.$ac_ext
47573 cat >>conftest.$ac_ext <<_ACEOF
47574 /* end confdefs.h. */
47575 $ac_includes_default
47579 static struct stat ac_aggr;
47580 if (ac_aggr.st_blksize)
47586 rm -f conftest.$ac_objext
47587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47588 (eval $ac_compile) 2>conftest.er1
47590 grep -v '^ *+' conftest.er1 >conftest.err
47592 cat conftest.err >&5
47593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47594 (exit $ac_status); } &&
47595 { ac_try='test -z "$ac_c_werror_flag"
47596 || test ! -s conftest.err'
47597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47598 (eval $ac_try) 2>&5
47600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47601 (exit $ac_status); }; } &&
47602 { ac_try='test -s conftest.$ac_objext'
47603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47604 (eval $ac_try) 2>&5
47606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47607 (exit $ac_status); }; }; then
47608 ac_cv_member_struct_stat_st_blksize=yes
47610 echo "$as_me: failed program was:" >&5
47611 sed 's/^/| /' conftest.$ac_ext >&5
47613 cat >conftest.$ac_ext <<_ACEOF
47616 cat confdefs.h >>conftest.$ac_ext
47617 cat >>conftest.$ac_ext <<_ACEOF
47618 /* end confdefs.h. */
47619 $ac_includes_default
47623 static struct stat ac_aggr;
47624 if (sizeof ac_aggr.st_blksize)
47630 rm -f conftest.$ac_objext
47631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47632 (eval $ac_compile) 2>conftest.er1
47634 grep -v '^ *+' conftest.er1 >conftest.err
47636 cat conftest.err >&5
47637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47638 (exit $ac_status); } &&
47639 { ac_try='test -z "$ac_c_werror_flag"
47640 || test ! -s conftest.err'
47641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47642 (eval $ac_try) 2>&5
47644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47645 (exit $ac_status); }; } &&
47646 { ac_try='test -s conftest.$ac_objext'
47647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47648 (eval $ac_try) 2>&5
47650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47651 (exit $ac_status); }; }; then
47652 ac_cv_member_struct_stat_st_blksize=yes
47654 echo "$as_me: failed program was:" >&5
47655 sed 's/^/| /' conftest.$ac_ext >&5
47657 ac_cv_member_struct_stat_st_blksize=no
47659 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47661 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47663 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
47664 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
47665 if test $ac_cv_member_struct_stat_st_blksize = yes; then
47667 cat >>confdefs.h <<_ACEOF
47668 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
47674 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
47675 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
47676 if test "${ac_cv_header_time+set}" = set; then
47677 echo $ECHO_N "(cached) $ECHO_C" >&6
47679 cat >conftest.$ac_ext <<_ACEOF
47682 cat confdefs.h >>conftest.$ac_ext
47683 cat >>conftest.$ac_ext <<_ACEOF
47684 /* end confdefs.h. */
47685 #include <sys/types.h>
47686 #include <sys/time.h>
47692 if ((struct tm *) 0)
47698 rm -f conftest.$ac_objext
47699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47700 (eval $ac_compile) 2>conftest.er1
47702 grep -v '^ *+' conftest.er1 >conftest.err
47704 cat conftest.err >&5
47705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47706 (exit $ac_status); } &&
47707 { ac_try='test -z "$ac_c_werror_flag"
47708 || test ! -s conftest.err'
47709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47710 (eval $ac_try) 2>&5
47712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47713 (exit $ac_status); }; } &&
47714 { ac_try='test -s conftest.$ac_objext'
47715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47716 (eval $ac_try) 2>&5
47718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47719 (exit $ac_status); }; }; then
47720 ac_cv_header_time=yes
47722 echo "$as_me: failed program was:" >&5
47723 sed 's/^/| /' conftest.$ac_ext >&5
47725 ac_cv_header_time=no
47727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47729 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
47730 echo "${ECHO_T}$ac_cv_header_time" >&6
47731 if test $ac_cv_header_time = yes; then
47733 cat >>confdefs.h <<\_ACEOF
47734 #define TIME_WITH_SYS_TIME 1
47739 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
47740 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
47741 if test "${ac_cv_struct_tm+set}" = set; then
47742 echo $ECHO_N "(cached) $ECHO_C" >&6
47744 cat >conftest.$ac_ext <<_ACEOF
47747 cat confdefs.h >>conftest.$ac_ext
47748 cat >>conftest.$ac_ext <<_ACEOF
47749 /* end confdefs.h. */
47750 #include <sys/types.h>
47756 struct tm *tp; tp->tm_sec;
47761 rm -f conftest.$ac_objext
47762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47763 (eval $ac_compile) 2>conftest.er1
47765 grep -v '^ *+' conftest.er1 >conftest.err
47767 cat conftest.err >&5
47768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47769 (exit $ac_status); } &&
47770 { ac_try='test -z "$ac_c_werror_flag"
47771 || test ! -s conftest.err'
47772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47773 (eval $ac_try) 2>&5
47775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47776 (exit $ac_status); }; } &&
47777 { ac_try='test -s conftest.$ac_objext'
47778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47779 (eval $ac_try) 2>&5
47781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47782 (exit $ac_status); }; }; then
47783 ac_cv_struct_tm=time.h
47785 echo "$as_me: failed program was:" >&5
47786 sed 's/^/| /' conftest.$ac_ext >&5
47788 ac_cv_struct_tm=sys/time.h
47790 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47792 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
47793 echo "${ECHO_T}$ac_cv_struct_tm" >&6
47794 if test $ac_cv_struct_tm = sys/time.h; then
47796 cat >>confdefs.h <<\_ACEOF
47797 #define TM_IN_SYS_TIME 1
47802 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
47803 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
47804 if test "${ac_cv_type_uid_t+set}" = set; then
47805 echo $ECHO_N "(cached) $ECHO_C" >&6
47807 cat >conftest.$ac_ext <<_ACEOF
47810 cat confdefs.h >>conftest.$ac_ext
47811 cat >>conftest.$ac_ext <<_ACEOF
47812 /* end confdefs.h. */
47813 #include <sys/types.h>
47816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47817 $EGREP "uid_t" >/dev/null 2>&1; then
47818 ac_cv_type_uid_t=yes
47820 ac_cv_type_uid_t=no
47825 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
47826 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
47827 if test $ac_cv_type_uid_t = no; then
47829 cat >>confdefs.h <<\_ACEOF
47834 cat >>confdefs.h <<\_ACEOF
47840 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
47841 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
47842 if test "${ol_cv_type_sig_atomic_t+set}" = set; then
47843 echo $ECHO_N "(cached) $ECHO_C" >&6
47845 cat >conftest.$ac_ext <<_ACEOF
47848 cat confdefs.h >>conftest.$ac_ext
47849 cat >>conftest.$ac_ext <<_ACEOF
47850 /* end confdefs.h. */
47851 #include <signal.h>
47855 sig_atomic_t atomic;
47860 rm -f conftest.$ac_objext
47861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47862 (eval $ac_compile) 2>conftest.er1
47864 grep -v '^ *+' conftest.er1 >conftest.err
47866 cat conftest.err >&5
47867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47868 (exit $ac_status); } &&
47869 { ac_try='test -z "$ac_c_werror_flag"
47870 || test ! -s conftest.err'
47871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47872 (eval $ac_try) 2>&5
47874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47875 (exit $ac_status); }; } &&
47876 { ac_try='test -s conftest.$ac_objext'
47877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47878 (eval $ac_try) 2>&5
47880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47881 (exit $ac_status); }; }; then
47882 ol_cv_type_sig_atomic_t=yes
47884 echo "$as_me: failed program was:" >&5
47885 sed 's/^/| /' conftest.$ac_ext >&5
47887 ol_cv_type_sig_atomic_t=no
47889 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47891 echo "$as_me:$LINENO: result: $ol_cv_type_sig_atomic_t" >&5
47892 echo "${ECHO_T}$ol_cv_type_sig_atomic_t" >&6
47893 if test $ol_cv_type_sig_atomic_t = no; then
47895 cat >>confdefs.h <<\_ACEOF
47896 #define sig_atomic_t int
47903 # test for pw_gecos in struct passwd
47904 echo "$as_me:$LINENO: checking struct passwd for pw_gecos" >&5
47905 echo $ECHO_N "checking struct passwd for pw_gecos... $ECHO_C" >&6
47906 if test "${ol_cv_struct_passwd_pw_gecos+set}" = set; then
47907 echo $ECHO_N "(cached) $ECHO_C" >&6
47910 cat >conftest.$ac_ext <<_ACEOF
47913 cat confdefs.h >>conftest.$ac_ext
47914 cat >>conftest.$ac_ext <<_ACEOF
47915 /* end confdefs.h. */
47922 pwd.pw_gecos = pwd.pw_name;
47928 rm -f conftest.$ac_objext
47929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47930 (eval $ac_compile) 2>conftest.er1
47932 grep -v '^ *+' conftest.er1 >conftest.err
47934 cat conftest.err >&5
47935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47936 (exit $ac_status); } &&
47937 { ac_try='test -z "$ac_c_werror_flag"
47938 || test ! -s conftest.err'
47939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47940 (eval $ac_try) 2>&5
47942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47943 (exit $ac_status); }; } &&
47944 { ac_try='test -s conftest.$ac_objext'
47945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47946 (eval $ac_try) 2>&5
47948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47949 (exit $ac_status); }; }; then
47950 ol_cv_struct_passwd_pw_gecos=yes
47952 echo "$as_me: failed program was:" >&5
47953 sed 's/^/| /' conftest.$ac_ext >&5
47955 ol_cv_struct_passwd_pw_gecos=no
47957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47959 echo "$as_me:$LINENO: result: $ol_cv_struct_passwd_pw_gecos" >&5
47960 echo "${ECHO_T}$ol_cv_struct_passwd_pw_gecos" >&6
47961 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
47963 cat >>confdefs.h <<\_ACEOF
47964 #define HAVE_PW_GECOS 1
47969 # test for pw_passwd in struct passwd
47970 echo "$as_me:$LINENO: checking struct passwd for pw_passwd" >&5
47971 echo $ECHO_N "checking struct passwd for pw_passwd... $ECHO_C" >&6
47972 if test "${ol_cv_struct_passwd_pw_passwd+set}" = set; then
47973 echo $ECHO_N "(cached) $ECHO_C" >&6
47976 cat >conftest.$ac_ext <<_ACEOF
47979 cat confdefs.h >>conftest.$ac_ext
47980 cat >>conftest.$ac_ext <<_ACEOF
47981 /* end confdefs.h. */
47988 pwd.pw_passwd = pwd.pw_name;
47994 rm -f conftest.$ac_objext
47995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47996 (eval $ac_compile) 2>conftest.er1
47998 grep -v '^ *+' conftest.er1 >conftest.err
48000 cat conftest.err >&5
48001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48002 (exit $ac_status); } &&
48003 { ac_try='test -z "$ac_c_werror_flag"
48004 || test ! -s conftest.err'
48005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48006 (eval $ac_try) 2>&5
48008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48009 (exit $ac_status); }; } &&
48010 { ac_try='test -s conftest.$ac_objext'
48011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48012 (eval $ac_try) 2>&5
48014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48015 (exit $ac_status); }; }; then
48016 ol_cv_struct_passwd_pw_passwd=yes
48018 echo "$as_me: failed program was:" >&5
48019 sed 's/^/| /' conftest.$ac_ext >&5
48021 ol_cv_struct_passwd_pw_passwd=no
48023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48025 echo "$as_me:$LINENO: result: $ol_cv_struct_passwd_pw_passwd" >&5
48026 echo "${ECHO_T}$ol_cv_struct_passwd_pw_passwd" >&6
48027 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
48029 cat >>confdefs.h <<\_ACEOF
48030 #define HAVE_PW_PASSWD 1
48036 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
48037 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
48038 if test "${ol_cv_c_upper_lower+set}" = set; then
48039 echo $ECHO_N "(cached) $ECHO_C" >&6
48042 if test "$cross_compiling" = yes; then
48043 ol_cv_c_upper_lower=safe
48045 cat >conftest.$ac_ext <<_ACEOF
48048 cat confdefs.h >>conftest.$ac_ext
48049 cat >>conftest.$ac_ext <<_ACEOF
48050 /* end confdefs.h. */
48055 if ('C' == toupper('C'))
48061 rm -f conftest$ac_exeext
48062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48063 (eval $ac_link) 2>&5
48065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48066 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48068 (eval $ac_try) 2>&5
48070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48071 (exit $ac_status); }; }; then
48072 ol_cv_c_upper_lower=no
48074 echo "$as_me: program exited with status $ac_status" >&5
48075 echo "$as_me: failed program was:" >&5
48076 sed 's/^/| /' conftest.$ac_ext >&5
48078 ( exit $ac_status )
48079 ol_cv_c_upper_lower=yes
48081 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48084 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
48085 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
48086 if test $ol_cv_c_upper_lower != no ; then
48088 cat >>confdefs.h <<\_ACEOF
48089 #define C_UPPER_LOWER 1
48094 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
48095 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
48096 if test "${ac_cv_c_const+set}" = set; then
48097 echo $ECHO_N "(cached) $ECHO_C" >&6
48099 cat >conftest.$ac_ext <<_ACEOF
48102 cat confdefs.h >>conftest.$ac_ext
48103 cat >>conftest.$ac_ext <<_ACEOF
48104 /* end confdefs.h. */
48109 /* FIXME: Include the comments suggested by Paul. */
48110 #ifndef __cplusplus
48111 /* Ultrix mips cc rejects this. */
48112 typedef int charset[2];
48114 /* SunOS 4.1.1 cc rejects this. */
48115 char const *const *ccp;
48117 /* NEC SVR4.0.2 mips cc rejects this. */
48118 struct point {int x, y;};
48119 static struct point const zero = {0,0};
48120 /* AIX XL C 1.02.0.0 rejects this.
48121 It does not let you subtract one const X* pointer from another in
48122 an arm of an if-expression whose if-part is not a constant
48124 const char *g = "string";
48125 ccp = &g + (g ? g-g : 0);
48126 /* HPUX 7.0 cc rejects these. */
48129 ccp = (char const *const *) p;
48130 { /* SCO 3.2v4 cc rejects this. */
48132 char const *s = 0 ? (char *) 0 : (char const *) 0;
48136 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
48137 int x[] = {25, 17};
48138 const int *foo = &x[0];
48141 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
48142 typedef const int *iptr;
48146 { /* AIX XL C 1.02.0.0 rejects this saying
48147 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
48148 struct s { int j; const int *ap[3]; };
48149 struct s *b; b->j = 5;
48151 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
48152 const int foo = 10;
48160 rm -f conftest.$ac_objext
48161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48162 (eval $ac_compile) 2>conftest.er1
48164 grep -v '^ *+' conftest.er1 >conftest.err
48166 cat conftest.err >&5
48167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48168 (exit $ac_status); } &&
48169 { ac_try='test -z "$ac_c_werror_flag"
48170 || test ! -s conftest.err'
48171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48172 (eval $ac_try) 2>&5
48174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48175 (exit $ac_status); }; } &&
48176 { ac_try='test -s conftest.$ac_objext'
48177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48178 (eval $ac_try) 2>&5
48180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48181 (exit $ac_status); }; }; then
48184 echo "$as_me: failed program was:" >&5
48185 sed 's/^/| /' conftest.$ac_ext >&5
48189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48191 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
48192 echo "${ECHO_T}$ac_cv_c_const" >&6
48193 if test $ac_cv_c_const = no; then
48195 cat >>confdefs.h <<\_ACEOF
48201 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
48202 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
48203 if test "${ol_cv_c_volatile+set}" = set; then
48204 echo $ECHO_N "(cached) $ECHO_C" >&6
48206 cat >conftest.$ac_ext <<_ACEOF
48209 cat confdefs.h >>conftest.$ac_ext
48210 cat >>conftest.$ac_ext <<_ACEOF
48211 /* end confdefs.h. */
48216 volatile int a; int * volatile b = x ? &y : &z;
48217 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
48223 rm -f conftest.$ac_objext
48224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48225 (eval $ac_compile) 2>conftest.er1
48227 grep -v '^ *+' conftest.er1 >conftest.err
48229 cat conftest.err >&5
48230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48231 (exit $ac_status); } &&
48232 { ac_try='test -z "$ac_c_werror_flag"
48233 || test ! -s conftest.err'
48234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48235 (eval $ac_try) 2>&5
48237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48238 (exit $ac_status); }; } &&
48239 { ac_try='test -s conftest.$ac_objext'
48240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48241 (eval $ac_try) 2>&5
48243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48244 (exit $ac_status); }; }; then
48245 ol_cv_c_volatile=yes
48247 echo "$as_me: failed program was:" >&5
48248 sed 's/^/| /' conftest.$ac_ext >&5
48250 ol_cv_c_volatile=no
48252 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48254 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
48255 echo "${ECHO_T}$ol_cv_c_volatile" >&6
48256 if test $ol_cv_c_volatile = yes; then
48260 cat >>confdefs.h <<\_ACEOF
48267 if test $cross_compiling = yes ; then
48268 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
48269 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
48271 cat >>confdefs.h <<\_ACEOF
48272 #define CROSS_COMPILING 1
48276 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
48277 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
48278 if test "${ac_cv_c_bigendian+set}" = set; then
48279 echo $ECHO_N "(cached) $ECHO_C" >&6
48281 # See if sys/param.h defines the BYTE_ORDER macro.
48282 cat >conftest.$ac_ext <<_ACEOF
48285 cat confdefs.h >>conftest.$ac_ext
48286 cat >>conftest.$ac_ext <<_ACEOF
48287 /* end confdefs.h. */
48288 #include <sys/types.h>
48289 #include <sys/param.h>
48294 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
48295 bogus endian macros
48302 rm -f conftest.$ac_objext
48303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48304 (eval $ac_compile) 2>conftest.er1
48306 grep -v '^ *+' conftest.er1 >conftest.err
48308 cat conftest.err >&5
48309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48310 (exit $ac_status); } &&
48311 { ac_try='test -z "$ac_c_werror_flag"
48312 || test ! -s conftest.err'
48313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48314 (eval $ac_try) 2>&5
48316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48317 (exit $ac_status); }; } &&
48318 { ac_try='test -s conftest.$ac_objext'
48319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48320 (eval $ac_try) 2>&5
48322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48323 (exit $ac_status); }; }; then
48324 # It does; now see whether it defined to BIG_ENDIAN or not.
48325 cat >conftest.$ac_ext <<_ACEOF
48328 cat confdefs.h >>conftest.$ac_ext
48329 cat >>conftest.$ac_ext <<_ACEOF
48330 /* end confdefs.h. */
48331 #include <sys/types.h>
48332 #include <sys/param.h>
48337 #if BYTE_ORDER != BIG_ENDIAN
48345 rm -f conftest.$ac_objext
48346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48347 (eval $ac_compile) 2>conftest.er1
48349 grep -v '^ *+' conftest.er1 >conftest.err
48351 cat conftest.err >&5
48352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48353 (exit $ac_status); } &&
48354 { ac_try='test -z "$ac_c_werror_flag"
48355 || test ! -s conftest.err'
48356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48357 (eval $ac_try) 2>&5
48359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48360 (exit $ac_status); }; } &&
48361 { ac_try='test -s conftest.$ac_objext'
48362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48363 (eval $ac_try) 2>&5
48365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48366 (exit $ac_status); }; }; then
48367 ac_cv_c_bigendian=yes
48369 echo "$as_me: failed program was:" >&5
48370 sed 's/^/| /' conftest.$ac_ext >&5
48372 ac_cv_c_bigendian=no
48374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48376 echo "$as_me: failed program was:" >&5
48377 sed 's/^/| /' conftest.$ac_ext >&5
48379 # It does not; compile a test program.
48380 if test "$cross_compiling" = yes; then
48381 # try to guess the endianness by grepping values into an object file
48382 ac_cv_c_bigendian=unknown
48383 cat >conftest.$ac_ext <<_ACEOF
48386 cat confdefs.h >>conftest.$ac_ext
48387 cat >>conftest.$ac_ext <<_ACEOF
48388 /* end confdefs.h. */
48389 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
48390 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
48391 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
48392 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
48393 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
48394 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
48398 _ascii (); _ebcdic ();
48403 rm -f conftest.$ac_objext
48404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48405 (eval $ac_compile) 2>conftest.er1
48407 grep -v '^ *+' conftest.er1 >conftest.err
48409 cat conftest.err >&5
48410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48411 (exit $ac_status); } &&
48412 { ac_try='test -z "$ac_c_werror_flag"
48413 || test ! -s conftest.err'
48414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48415 (eval $ac_try) 2>&5
48417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48418 (exit $ac_status); }; } &&
48419 { ac_try='test -s conftest.$ac_objext'
48420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48421 (eval $ac_try) 2>&5
48423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48424 (exit $ac_status); }; }; then
48425 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
48426 ac_cv_c_bigendian=yes
48428 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
48429 if test "$ac_cv_c_bigendian" = unknown; then
48430 ac_cv_c_bigendian=no
48432 # finding both strings is unlikely to happen, but who knows?
48433 ac_cv_c_bigendian=unknown
48437 echo "$as_me: failed program was:" >&5
48438 sed 's/^/| /' conftest.$ac_ext >&5
48441 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48443 cat >conftest.$ac_ext <<_ACEOF
48446 cat confdefs.h >>conftest.$ac_ext
48447 cat >>conftest.$ac_ext <<_ACEOF
48448 /* end confdefs.h. */
48452 /* Are we little or big endian? From Harbison&Steele. */
48456 char c[sizeof (long)];
48459 exit (u.c[sizeof (long) - 1] == 1);
48462 rm -f conftest$ac_exeext
48463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48464 (eval $ac_link) 2>&5
48466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48469 (eval $ac_try) 2>&5
48471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48472 (exit $ac_status); }; }; then
48473 ac_cv_c_bigendian=no
48475 echo "$as_me: program exited with status $ac_status" >&5
48476 echo "$as_me: failed program was:" >&5
48477 sed 's/^/| /' conftest.$ac_ext >&5
48479 ( exit $ac_status )
48480 ac_cv_c_bigendian=yes
48482 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48487 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
48488 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
48489 case $ac_cv_c_bigendian in
48492 cat >>confdefs.h <<\_ACEOF
48493 #define WORDS_BIGENDIAN 1
48499 { { echo "$as_me:$LINENO: error: unknown endianness
48500 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
48501 echo "$as_me: error: unknown endianness
48502 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
48503 { (exit 1); exit 1; }; } ;;
48508 echo "$as_me:$LINENO: checking size of short" >&5
48509 echo $ECHO_N "checking size of short... $ECHO_C" >&6
48510 if test "${ac_cv_sizeof_short+set}" = set; then
48511 echo $ECHO_N "(cached) $ECHO_C" >&6
48513 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
48514 cat >conftest.$ac_ext <<_ACEOF
48517 cat confdefs.h >>conftest.$ac_ext
48518 cat >>conftest.$ac_ext <<_ACEOF
48519 /* end confdefs.h. */
48520 #include "confdefs.h"
48521 #include <stdlib.h>
48522 #include <sys/types.h>
48528 switch (0) case 0: case (sizeof (short) == $ac_size):;
48533 rm -f conftest.$ac_objext
48534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48535 (eval $ac_compile) 2>conftest.er1
48537 grep -v '^ *+' conftest.er1 >conftest.err
48539 cat conftest.err >&5
48540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48541 (exit $ac_status); } &&
48542 { ac_try='test -z "$ac_c_werror_flag"
48543 || test ! -s conftest.err'
48544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48545 (eval $ac_try) 2>&5
48547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48548 (exit $ac_status); }; } &&
48549 { ac_try='test -s conftest.$ac_objext'
48550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48551 (eval $ac_try) 2>&5
48553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48554 (exit $ac_status); }; }; then
48555 ac_cv_sizeof_short=$ac_size
48557 echo "$as_me: failed program was:" >&5
48558 sed 's/^/| /' conftest.$ac_ext >&5
48561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48562 if test x$ac_cv_sizeof_short != x ; then break; fi
48567 if test x$ac_cv_sizeof_short = x ; then
48568 { { echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
48569 echo "$as_me: error: cannot determine a size for short" >&2;}
48570 { (exit 1); exit 1; }; }
48572 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
48573 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
48575 cat >>confdefs.h <<_ACEOF
48576 #define SIZEOF_SHORT $ac_cv_sizeof_short
48580 echo "$as_me:$LINENO: checking size of int" >&5
48581 echo $ECHO_N "checking size of int... $ECHO_C" >&6
48582 if test "${ac_cv_sizeof_int+set}" = set; then
48583 echo $ECHO_N "(cached) $ECHO_C" >&6
48585 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
48586 cat >conftest.$ac_ext <<_ACEOF
48589 cat confdefs.h >>conftest.$ac_ext
48590 cat >>conftest.$ac_ext <<_ACEOF
48591 /* end confdefs.h. */
48592 #include "confdefs.h"
48593 #include <stdlib.h>
48594 #include <sys/types.h>
48600 switch (0) case 0: case (sizeof (int) == $ac_size):;
48605 rm -f conftest.$ac_objext
48606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48607 (eval $ac_compile) 2>conftest.er1
48609 grep -v '^ *+' conftest.er1 >conftest.err
48611 cat conftest.err >&5
48612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48613 (exit $ac_status); } &&
48614 { ac_try='test -z "$ac_c_werror_flag"
48615 || test ! -s conftest.err'
48616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48617 (eval $ac_try) 2>&5
48619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48620 (exit $ac_status); }; } &&
48621 { ac_try='test -s conftest.$ac_objext'
48622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48623 (eval $ac_try) 2>&5
48625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48626 (exit $ac_status); }; }; then
48627 ac_cv_sizeof_int=$ac_size
48629 echo "$as_me: failed program was:" >&5
48630 sed 's/^/| /' conftest.$ac_ext >&5
48633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48634 if test x$ac_cv_sizeof_int != x ; then break; fi
48639 if test x$ac_cv_sizeof_int = x ; then
48640 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
48641 echo "$as_me: error: cannot determine a size for int" >&2;}
48642 { (exit 1); exit 1; }; }
48644 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
48645 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
48647 cat >>confdefs.h <<_ACEOF
48648 #define SIZEOF_INT $ac_cv_sizeof_int
48652 echo "$as_me:$LINENO: checking size of long" >&5
48653 echo $ECHO_N "checking size of long... $ECHO_C" >&6
48654 if test "${ac_cv_sizeof_long+set}" = set; then
48655 echo $ECHO_N "(cached) $ECHO_C" >&6
48657 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
48658 cat >conftest.$ac_ext <<_ACEOF
48661 cat confdefs.h >>conftest.$ac_ext
48662 cat >>conftest.$ac_ext <<_ACEOF
48663 /* end confdefs.h. */
48664 #include "confdefs.h"
48665 #include <stdlib.h>
48666 #include <sys/types.h>
48672 switch (0) case 0: case (sizeof (long) == $ac_size):;
48677 rm -f conftest.$ac_objext
48678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48679 (eval $ac_compile) 2>conftest.er1
48681 grep -v '^ *+' conftest.er1 >conftest.err
48683 cat conftest.err >&5
48684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48685 (exit $ac_status); } &&
48686 { ac_try='test -z "$ac_c_werror_flag"
48687 || test ! -s conftest.err'
48688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48689 (eval $ac_try) 2>&5
48691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48692 (exit $ac_status); }; } &&
48693 { ac_try='test -s conftest.$ac_objext'
48694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48695 (eval $ac_try) 2>&5
48697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48698 (exit $ac_status); }; }; then
48699 ac_cv_sizeof_long=$ac_size
48701 echo "$as_me: failed program was:" >&5
48702 sed 's/^/| /' conftest.$ac_ext >&5
48705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48706 if test x$ac_cv_sizeof_long != x ; then break; fi
48711 if test x$ac_cv_sizeof_long = x ; then
48712 { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
48713 echo "$as_me: error: cannot determine a size for long" >&2;}
48714 { (exit 1); exit 1; }; }
48716 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
48717 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
48719 cat >>confdefs.h <<_ACEOF
48720 #define SIZEOF_LONG $ac_cv_sizeof_long
48724 echo "$as_me:$LINENO: checking size of wchar_t" >&5
48725 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
48726 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
48727 echo $ECHO_N "(cached) $ECHO_C" >&6
48729 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
48730 cat >conftest.$ac_ext <<_ACEOF
48733 cat confdefs.h >>conftest.$ac_ext
48734 cat >>conftest.$ac_ext <<_ACEOF
48735 /* end confdefs.h. */
48736 #include "confdefs.h"
48737 #include <stdlib.h>
48738 #include <sys/types.h>
48744 switch (0) case 0: case (sizeof (wchar_t) == $ac_size):;
48749 rm -f conftest.$ac_objext
48750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48751 (eval $ac_compile) 2>conftest.er1
48753 grep -v '^ *+' conftest.er1 >conftest.err
48755 cat conftest.err >&5
48756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48757 (exit $ac_status); } &&
48758 { ac_try='test -z "$ac_c_werror_flag"
48759 || test ! -s conftest.err'
48760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48761 (eval $ac_try) 2>&5
48763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48764 (exit $ac_status); }; } &&
48765 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
48771 ac_cv_sizeof_wchar_t=$ac_size
48773 echo "$as_me: failed program was:" >&5
48774 sed 's/^/| /' conftest.$ac_ext >&5
48777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48778 if test x$ac_cv_sizeof_wchar_t != x ; then break; fi
48783 if test x$ac_cv_sizeof_wchar_t = x ; then
48784 { { echo "$as_me:$LINENO: error: cannot determine a size for wchar_t" >&5
48785 echo "$as_me: error: cannot determine a size for wchar_t" >&2;}
48786 { (exit 1); exit 1; }; }
48788 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
48789 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
48791 cat >>confdefs.h <<_ACEOF
48792 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
48797 if test "$ac_cv_sizeof_int" -lt 4 ; then
48798 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
48799 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
48801 cat >>confdefs.h <<\_ACEOF
48802 #define LBER_INT_T long
48806 cat >>confdefs.h <<\_ACEOF
48807 #define LBER_INT_T int
48812 cat >>confdefs.h <<\_ACEOF
48813 #define LBER_LEN_T long
48816 cat >>confdefs.h <<\_ACEOF
48817 #define LBER_SOCKET_T int
48820 cat >>confdefs.h <<\_ACEOF
48821 #define LBER_TAG_T long
48825 echo "$as_me:$LINENO: checking for working memcmp" >&5
48826 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
48827 if test "${ac_cv_func_memcmp_working+set}" = set; then
48828 echo $ECHO_N "(cached) $ECHO_C" >&6
48830 if test "$cross_compiling" = yes; then
48831 ac_cv_func_memcmp_working=no
48833 cat >conftest.$ac_ext <<_ACEOF
48836 cat confdefs.h >>conftest.$ac_ext
48837 cat >>conftest.$ac_ext <<_ACEOF
48838 /* end confdefs.h. */
48839 $ac_includes_default
48844 /* Some versions of memcmp are not 8-bit clean. */
48845 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
48846 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
48849 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
48850 or more and with at least one buffer not starting on a 4-byte boundary.
48851 William Lewis provided this test program. */
48856 for (i = 0; i < 4; i++)
48860 strcpy (a, "--------01111111");
48861 strcpy (b, "--------10000000");
48862 if (memcmp (a, b, 16) >= 0)
48872 rm -f conftest$ac_exeext
48873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48874 (eval $ac_link) 2>&5
48876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48877 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48879 (eval $ac_try) 2>&5
48881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48882 (exit $ac_status); }; }; then
48883 ac_cv_func_memcmp_working=yes
48885 echo "$as_me: program exited with status $ac_status" >&5
48886 echo "$as_me: failed program was:" >&5
48887 sed 's/^/| /' conftest.$ac_ext >&5
48889 ( exit $ac_status )
48890 ac_cv_func_memcmp_working=no
48892 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48895 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
48896 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
48897 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
48898 "memcmp.$ac_objext" | \
48899 *" memcmp.$ac_objext" | \
48900 "memcmp.$ac_objext "* | \
48901 *" memcmp.$ac_objext "* ) ;;
48902 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
48907 if test $ac_cv_func_memcmp_working = no ; then
48909 cat >>confdefs.h <<\_ACEOF
48910 #define NEED_MEMCMP_REPLACEMENT 1
48916 for ac_func in strftime
48918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
48919 echo "$as_me:$LINENO: checking for $ac_func" >&5
48920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
48921 if eval "test \"\${$as_ac_var+set}\" = set"; then
48922 echo $ECHO_N "(cached) $ECHO_C" >&6
48924 cat >conftest.$ac_ext <<_ACEOF
48927 cat confdefs.h >>conftest.$ac_ext
48928 cat >>conftest.$ac_ext <<_ACEOF
48929 /* end confdefs.h. */
48930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
48932 #define $ac_func innocuous_$ac_func
48934 /* System header to define __stub macros and hopefully few prototypes,
48935 which can conflict with char $ac_func (); below.
48936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48937 <limits.h> exists even on freestanding compilers. */
48940 # include <limits.h>
48942 # include <assert.h>
48947 /* Override any gcc2 internal prototype to avoid an error. */
48952 /* We use char because int might match the return type of a gcc2
48953 builtin and then its argument prototype would still apply. */
48955 /* The GNU C library defines this for functions which it implements
48956 to always fail with ENOSYS. Some functions are actually named
48957 something starting with __ and the normal name is an alias. */
48958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
48961 char (*f) () = $ac_func;
48970 return f != $ac_func;
48975 rm -f conftest.$ac_objext conftest$ac_exeext
48976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48977 (eval $ac_link) 2>conftest.er1
48979 grep -v '^ *+' conftest.er1 >conftest.err
48981 cat conftest.err >&5
48982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48983 (exit $ac_status); } &&
48984 { ac_try='test -z "$ac_c_werror_flag"
48985 || test ! -s conftest.err'
48986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48987 (eval $ac_try) 2>&5
48989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48990 (exit $ac_status); }; } &&
48991 { ac_try='test -s conftest$ac_exeext'
48992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48993 (eval $ac_try) 2>&5
48995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48996 (exit $ac_status); }; }; then
48997 eval "$as_ac_var=yes"
48999 echo "$as_me: failed program was:" >&5
49000 sed 's/^/| /' conftest.$ac_ext >&5
49002 eval "$as_ac_var=no"
49004 rm -f conftest.err conftest.$ac_objext \
49005 conftest$ac_exeext conftest.$ac_ext
49007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49008 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49009 if test `eval echo '${'$as_ac_var'}'` = yes; then
49010 cat >>confdefs.h <<_ACEOF
49011 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49015 # strftime is in -lintl on SCO UNIX.
49016 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
49017 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
49018 if test "${ac_cv_lib_intl_strftime+set}" = set; then
49019 echo $ECHO_N "(cached) $ECHO_C" >&6
49021 ac_check_lib_save_LIBS=$LIBS
49022 LIBS="-lintl $LIBS"
49023 cat >conftest.$ac_ext <<_ACEOF
49026 cat confdefs.h >>conftest.$ac_ext
49027 cat >>conftest.$ac_ext <<_ACEOF
49028 /* end confdefs.h. */
49030 /* Override any gcc2 internal prototype to avoid an error. */
49034 /* We use char because int might match the return type of a gcc2
49035 builtin and then its argument prototype would still apply. */
49045 rm -f conftest.$ac_objext conftest$ac_exeext
49046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49047 (eval $ac_link) 2>conftest.er1
49049 grep -v '^ *+' conftest.er1 >conftest.err
49051 cat conftest.err >&5
49052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49053 (exit $ac_status); } &&
49054 { ac_try='test -z "$ac_c_werror_flag"
49055 || test ! -s conftest.err'
49056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49057 (eval $ac_try) 2>&5
49059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49060 (exit $ac_status); }; } &&
49061 { ac_try='test -s conftest$ac_exeext'
49062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49063 (eval $ac_try) 2>&5
49065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49066 (exit $ac_status); }; }; then
49067 ac_cv_lib_intl_strftime=yes
49069 echo "$as_me: failed program was:" >&5
49070 sed 's/^/| /' conftest.$ac_ext >&5
49072 ac_cv_lib_intl_strftime=no
49074 rm -f conftest.err conftest.$ac_objext \
49075 conftest$ac_exeext conftest.$ac_ext
49076 LIBS=$ac_check_lib_save_LIBS
49078 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
49079 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
49080 if test $ac_cv_lib_intl_strftime = yes; then
49081 cat >>confdefs.h <<\_ACEOF
49082 #define HAVE_STRFTIME 1
49085 LIBS="-lintl $LIBS"
49092 echo "$as_me:$LINENO: checking for inet_aton()" >&5
49093 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
49094 if test "${ol_cv_func_inet_aton+set}" = set; then
49095 echo $ECHO_N "(cached) $ECHO_C" >&6
49097 cat >conftest.$ac_ext <<_ACEOF
49100 cat confdefs.h >>conftest.$ac_ext
49101 cat >>conftest.$ac_ext <<_ACEOF
49102 /* end confdefs.h. */
49104 #ifdef HAVE_SYS_TYPES_H
49105 # include <sys/types.h>
49107 #ifdef HAVE_SYS_SOCKET_H
49108 # include <sys/socket.h>
49109 # ifdef HAVE_SYS_SELECT_H
49110 # include <sys/select.h>
49112 # include <netinet/in.h>
49113 # ifdef HAVE_ARPA_INET_H
49114 # include <arpa/inet.h>
49122 int rc = inet_aton( "255.255.255.255", &in );
49127 rm -f conftest.$ac_objext conftest$ac_exeext
49128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49129 (eval $ac_link) 2>conftest.er1
49131 grep -v '^ *+' conftest.er1 >conftest.err
49133 cat conftest.err >&5
49134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49135 (exit $ac_status); } &&
49136 { ac_try='test -z "$ac_c_werror_flag"
49137 || test ! -s conftest.err'
49138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49139 (eval $ac_try) 2>&5
49141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49142 (exit $ac_status); }; } &&
49143 { ac_try='test -s conftest$ac_exeext'
49144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49145 (eval $ac_try) 2>&5
49147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49148 (exit $ac_status); }; }; then
49149 ol_cv_func_inet_aton=yes
49151 echo "$as_me: failed program was:" >&5
49152 sed 's/^/| /' conftest.$ac_ext >&5
49154 ol_cv_func_inet_aton=no
49156 rm -f conftest.err conftest.$ac_objext \
49157 conftest$ac_exeext conftest.$ac_ext
49159 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
49160 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
49161 if test $ol_cv_func_inet_aton != no; then
49163 cat >>confdefs.h <<\_ACEOF
49164 #define HAVE_INET_ATON 1
49170 echo "$as_me:$LINENO: checking for _spawnlp" >&5
49171 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
49172 if test "${ac_cv_func__spawnlp+set}" = set; then
49173 echo $ECHO_N "(cached) $ECHO_C" >&6
49175 cat >conftest.$ac_ext <<_ACEOF
49178 cat confdefs.h >>conftest.$ac_ext
49179 cat >>conftest.$ac_ext <<_ACEOF
49180 /* end confdefs.h. */
49181 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
49182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49183 #define _spawnlp innocuous__spawnlp
49185 /* System header to define __stub macros and hopefully few prototypes,
49186 which can conflict with char _spawnlp (); below.
49187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49188 <limits.h> exists even on freestanding compilers. */
49191 # include <limits.h>
49193 # include <assert.h>
49198 /* Override any gcc2 internal prototype to avoid an error. */
49203 /* We use char because int might match the return type of a gcc2
49204 builtin and then its argument prototype would still apply. */
49206 /* The GNU C library defines this for functions which it implements
49207 to always fail with ENOSYS. Some functions are actually named
49208 something starting with __ and the normal name is an alias. */
49209 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
49212 char (*f) () = _spawnlp;
49221 return f != _spawnlp;
49226 rm -f conftest.$ac_objext conftest$ac_exeext
49227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49228 (eval $ac_link) 2>conftest.er1
49230 grep -v '^ *+' conftest.er1 >conftest.err
49232 cat conftest.err >&5
49233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49234 (exit $ac_status); } &&
49235 { ac_try='test -z "$ac_c_werror_flag"
49236 || test ! -s conftest.err'
49237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49238 (eval $ac_try) 2>&5
49240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49241 (exit $ac_status); }; } &&
49242 { ac_try='test -s conftest$ac_exeext'
49243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49244 (eval $ac_try) 2>&5
49246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49247 (exit $ac_status); }; }; then
49248 ac_cv_func__spawnlp=yes
49250 echo "$as_me: failed program was:" >&5
49251 sed 's/^/| /' conftest.$ac_ext >&5
49253 ac_cv_func__spawnlp=no
49255 rm -f conftest.err conftest.$ac_objext \
49256 conftest$ac_exeext conftest.$ac_ext
49258 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
49259 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
49260 if test $ac_cv_func__spawnlp = yes; then
49262 cat >>confdefs.h <<\_ACEOF
49263 #define HAVE_SPAWNLP 1
49269 echo "$as_me:$LINENO: checking for _snprintf" >&5
49270 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
49271 if test "${ac_cv_func__snprintf+set}" = set; then
49272 echo $ECHO_N "(cached) $ECHO_C" >&6
49274 cat >conftest.$ac_ext <<_ACEOF
49277 cat confdefs.h >>conftest.$ac_ext
49278 cat >>conftest.$ac_ext <<_ACEOF
49279 /* end confdefs.h. */
49280 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
49281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49282 #define _snprintf innocuous__snprintf
49284 /* System header to define __stub macros and hopefully few prototypes,
49285 which can conflict with char _snprintf (); below.
49286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49287 <limits.h> exists even on freestanding compilers. */
49290 # include <limits.h>
49292 # include <assert.h>
49297 /* Override any gcc2 internal prototype to avoid an error. */
49302 /* We use char because int might match the return type of a gcc2
49303 builtin and then its argument prototype would still apply. */
49305 /* The GNU C library defines this for functions which it implements
49306 to always fail with ENOSYS. Some functions are actually named
49307 something starting with __ and the normal name is an alias. */
49308 #if defined (__stub__snprintf) || defined (__stub____snprintf)
49311 char (*f) () = _snprintf;
49320 return f != _snprintf;
49325 rm -f conftest.$ac_objext conftest$ac_exeext
49326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49327 (eval $ac_link) 2>conftest.er1
49329 grep -v '^ *+' conftest.er1 >conftest.err
49331 cat conftest.err >&5
49332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49333 (exit $ac_status); } &&
49334 { ac_try='test -z "$ac_c_werror_flag"
49335 || test ! -s conftest.err'
49336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49337 (eval $ac_try) 2>&5
49339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49340 (exit $ac_status); }; } &&
49341 { ac_try='test -s 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_func__snprintf=yes
49349 echo "$as_me: failed program was:" >&5
49350 sed 's/^/| /' conftest.$ac_ext >&5
49352 ac_cv_func__snprintf=no
49354 rm -f conftest.err conftest.$ac_objext \
49355 conftest$ac_exeext conftest.$ac_ext
49357 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
49358 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
49359 if test $ac_cv_func__snprintf = yes; then
49360 ac_cv_func_snprintf=yes
49362 cat >>confdefs.h <<\_ACEOF
49363 #define snprintf _snprintf
49370 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
49371 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
49372 if test "${ac_cv_func__vsnprintf+set}" = set; then
49373 echo $ECHO_N "(cached) $ECHO_C" >&6
49375 cat >conftest.$ac_ext <<_ACEOF
49378 cat confdefs.h >>conftest.$ac_ext
49379 cat >>conftest.$ac_ext <<_ACEOF
49380 /* end confdefs.h. */
49381 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
49382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49383 #define _vsnprintf innocuous__vsnprintf
49385 /* System header to define __stub macros and hopefully few prototypes,
49386 which can conflict with char _vsnprintf (); below.
49387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49388 <limits.h> exists even on freestanding compilers. */
49391 # include <limits.h>
49393 # include <assert.h>
49398 /* Override any gcc2 internal prototype to avoid an error. */
49403 /* We use char because int might match the return type of a gcc2
49404 builtin and then its argument prototype would still apply. */
49405 char _vsnprintf ();
49406 /* The GNU C library defines this for functions which it implements
49407 to always fail with ENOSYS. Some functions are actually named
49408 something starting with __ and the normal name is an alias. */
49409 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
49412 char (*f) () = _vsnprintf;
49421 return f != _vsnprintf;
49426 rm -f conftest.$ac_objext conftest$ac_exeext
49427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49428 (eval $ac_link) 2>conftest.er1
49430 grep -v '^ *+' conftest.er1 >conftest.err
49432 cat conftest.err >&5
49433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49434 (exit $ac_status); } &&
49435 { ac_try='test -z "$ac_c_werror_flag"
49436 || test ! -s conftest.err'
49437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49438 (eval $ac_try) 2>&5
49440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49441 (exit $ac_status); }; } &&
49442 { ac_try='test -s conftest$ac_exeext'
49443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49444 (eval $ac_try) 2>&5
49446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49447 (exit $ac_status); }; }; then
49448 ac_cv_func__vsnprintf=yes
49450 echo "$as_me: failed program was:" >&5
49451 sed 's/^/| /' conftest.$ac_ext >&5
49453 ac_cv_func__vsnprintf=no
49455 rm -f conftest.err conftest.$ac_objext \
49456 conftest$ac_exeext conftest.$ac_ext
49458 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
49459 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
49460 if test $ac_cv_func__vsnprintf = yes; then
49461 ac_cv_func_vsnprintf=yes
49463 cat >>confdefs.h <<\_ACEOF
49464 #define vsnprintf _vsnprintf
49472 for ac_func in vprintf
49474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49475 echo "$as_me:$LINENO: checking for $ac_func" >&5
49476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49477 if eval "test \"\${$as_ac_var+set}\" = set"; then
49478 echo $ECHO_N "(cached) $ECHO_C" >&6
49480 cat >conftest.$ac_ext <<_ACEOF
49483 cat confdefs.h >>conftest.$ac_ext
49484 cat >>conftest.$ac_ext <<_ACEOF
49485 /* end confdefs.h. */
49486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49488 #define $ac_func innocuous_$ac_func
49490 /* System header to define __stub macros and hopefully few prototypes,
49491 which can conflict with char $ac_func (); below.
49492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49493 <limits.h> exists even on freestanding compilers. */
49496 # include <limits.h>
49498 # include <assert.h>
49503 /* Override any gcc2 internal prototype to avoid an error. */
49508 /* We use char because int might match the return type of a gcc2
49509 builtin and then its argument prototype would still apply. */
49511 /* The GNU C library defines this for functions which it implements
49512 to always fail with ENOSYS. Some functions are actually named
49513 something starting with __ and the normal name is an alias. */
49514 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49517 char (*f) () = $ac_func;
49526 return f != $ac_func;
49531 rm -f conftest.$ac_objext conftest$ac_exeext
49532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49533 (eval $ac_link) 2>conftest.er1
49535 grep -v '^ *+' conftest.er1 >conftest.err
49537 cat conftest.err >&5
49538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49539 (exit $ac_status); } &&
49540 { ac_try='test -z "$ac_c_werror_flag"
49541 || test ! -s conftest.err'
49542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49543 (eval $ac_try) 2>&5
49545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49546 (exit $ac_status); }; } &&
49547 { ac_try='test -s conftest$ac_exeext'
49548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49549 (eval $ac_try) 2>&5
49551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49552 (exit $ac_status); }; }; then
49553 eval "$as_ac_var=yes"
49555 echo "$as_me: failed program was:" >&5
49556 sed 's/^/| /' conftest.$ac_ext >&5
49558 eval "$as_ac_var=no"
49560 rm -f conftest.err conftest.$ac_objext \
49561 conftest$ac_exeext conftest.$ac_ext
49563 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49564 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49565 if test `eval echo '${'$as_ac_var'}'` = yes; then
49566 cat >>confdefs.h <<_ACEOF
49567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49570 echo "$as_me:$LINENO: checking for _doprnt" >&5
49571 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
49572 if test "${ac_cv_func__doprnt+set}" = set; then
49573 echo $ECHO_N "(cached) $ECHO_C" >&6
49575 cat >conftest.$ac_ext <<_ACEOF
49578 cat confdefs.h >>conftest.$ac_ext
49579 cat >>conftest.$ac_ext <<_ACEOF
49580 /* end confdefs.h. */
49581 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
49582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49583 #define _doprnt innocuous__doprnt
49585 /* System header to define __stub macros and hopefully few prototypes,
49586 which can conflict with char _doprnt (); below.
49587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49588 <limits.h> exists even on freestanding compilers. */
49591 # include <limits.h>
49593 # include <assert.h>
49598 /* Override any gcc2 internal prototype to avoid an error. */
49603 /* We use char because int might match the return type of a gcc2
49604 builtin and then its argument prototype would still apply. */
49606 /* The GNU C library defines this for functions which it implements
49607 to always fail with ENOSYS. Some functions are actually named
49608 something starting with __ and the normal name is an alias. */
49609 #if defined (__stub__doprnt) || defined (__stub____doprnt)
49612 char (*f) () = _doprnt;
49621 return f != _doprnt;
49626 rm -f conftest.$ac_objext conftest$ac_exeext
49627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49628 (eval $ac_link) 2>conftest.er1
49630 grep -v '^ *+' conftest.er1 >conftest.err
49632 cat conftest.err >&5
49633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49634 (exit $ac_status); } &&
49635 { ac_try='test -z "$ac_c_werror_flag"
49636 || test ! -s conftest.err'
49637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49638 (eval $ac_try) 2>&5
49640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49641 (exit $ac_status); }; } &&
49642 { ac_try='test -s conftest$ac_exeext'
49643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49644 (eval $ac_try) 2>&5
49646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49647 (exit $ac_status); }; }; then
49648 ac_cv_func__doprnt=yes
49650 echo "$as_me: failed program was:" >&5
49651 sed 's/^/| /' conftest.$ac_ext >&5
49653 ac_cv_func__doprnt=no
49655 rm -f conftest.err conftest.$ac_objext \
49656 conftest$ac_exeext conftest.$ac_ext
49658 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
49659 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
49660 if test $ac_cv_func__doprnt = yes; then
49662 cat >>confdefs.h <<\_ACEOF
49663 #define HAVE_DOPRNT 1
49673 if test $ac_cv_func_vprintf = yes ; then
49676 for ac_func in snprintf vsnprintf
49678 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49679 echo "$as_me:$LINENO: checking for $ac_func" >&5
49680 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49681 if eval "test \"\${$as_ac_var+set}\" = set"; then
49682 echo $ECHO_N "(cached) $ECHO_C" >&6
49684 cat >conftest.$ac_ext <<_ACEOF
49687 cat confdefs.h >>conftest.$ac_ext
49688 cat >>conftest.$ac_ext <<_ACEOF
49689 /* end confdefs.h. */
49690 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49691 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49692 #define $ac_func innocuous_$ac_func
49694 /* System header to define __stub macros and hopefully few prototypes,
49695 which can conflict with char $ac_func (); below.
49696 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49697 <limits.h> exists even on freestanding compilers. */
49700 # include <limits.h>
49702 # include <assert.h>
49707 /* Override any gcc2 internal prototype to avoid an error. */
49712 /* We use char because int might match the return type of a gcc2
49713 builtin and then its argument prototype would still apply. */
49715 /* The GNU C library defines this for functions which it implements
49716 to always fail with ENOSYS. Some functions are actually named
49717 something starting with __ and the normal name is an alias. */
49718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49721 char (*f) () = $ac_func;
49730 return f != $ac_func;
49735 rm -f conftest.$ac_objext conftest$ac_exeext
49736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49737 (eval $ac_link) 2>conftest.er1
49739 grep -v '^ *+' conftest.er1 >conftest.err
49741 cat conftest.err >&5
49742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49743 (exit $ac_status); } &&
49744 { ac_try='test -z "$ac_c_werror_flag"
49745 || test ! -s conftest.err'
49746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49747 (eval $ac_try) 2>&5
49749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49750 (exit $ac_status); }; } &&
49751 { ac_try='test -s conftest$ac_exeext'
49752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49753 (eval $ac_try) 2>&5
49755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49756 (exit $ac_status); }; }; then
49757 eval "$as_ac_var=yes"
49759 echo "$as_me: failed program was:" >&5
49760 sed 's/^/| /' conftest.$ac_ext >&5
49762 eval "$as_ac_var=no"
49764 rm -f conftest.err conftest.$ac_objext \
49765 conftest$ac_exeext conftest.$ac_ext
49767 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49768 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49769 if test `eval echo '${'$as_ac_var'}'` = yes; then
49770 cat >>confdefs.h <<_ACEOF
49771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49888 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49889 echo "$as_me:$LINENO: checking for $ac_func" >&5
49890 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49891 if eval "test \"\${$as_ac_var+set}\" = set"; then
49892 echo $ECHO_N "(cached) $ECHO_C" >&6
49894 cat >conftest.$ac_ext <<_ACEOF
49897 cat confdefs.h >>conftest.$ac_ext
49898 cat >>conftest.$ac_ext <<_ACEOF
49899 /* end confdefs.h. */
49900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
49902 #define $ac_func innocuous_$ac_func
49904 /* System header to define __stub macros and hopefully few prototypes,
49905 which can conflict with char $ac_func (); below.
49906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49907 <limits.h> exists even on freestanding compilers. */
49910 # include <limits.h>
49912 # include <assert.h>
49917 /* Override any gcc2 internal prototype to avoid an error. */
49922 /* We use char because int might match the return type of a gcc2
49923 builtin and then its argument prototype would still apply. */
49925 /* The GNU C library defines this for functions which it implements
49926 to always fail with ENOSYS. Some functions are actually named
49927 something starting with __ and the normal name is an alias. */
49928 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
49931 char (*f) () = $ac_func;
49940 return f != $ac_func;
49945 rm -f conftest.$ac_objext conftest$ac_exeext
49946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49947 (eval $ac_link) 2>conftest.er1
49949 grep -v '^ *+' conftest.er1 >conftest.err
49951 cat conftest.err >&5
49952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49953 (exit $ac_status); } &&
49954 { ac_try='test -z "$ac_c_werror_flag"
49955 || test ! -s conftest.err'
49956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49957 (eval $ac_try) 2>&5
49959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49960 (exit $ac_status); }; } &&
49961 { ac_try='test -s conftest$ac_exeext'
49962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49963 (eval $ac_try) 2>&5
49965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49966 (exit $ac_status); }; }; then
49967 eval "$as_ac_var=yes"
49969 echo "$as_me: failed program was:" >&5
49970 sed 's/^/| /' conftest.$ac_ext >&5
49972 eval "$as_ac_var=no"
49974 rm -f conftest.err conftest.$ac_objext \
49975 conftest$ac_exeext conftest.$ac_ext
49977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
49978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
49979 if test `eval echo '${'$as_ac_var'}'` = yes; then
49980 cat >>confdefs.h <<_ACEOF
49981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
49990 for ac_func in getopt getpeereid
49992 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
49993 echo "$as_me:$LINENO: checking for $ac_func" >&5
49994 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
49995 if eval "test \"\${$as_ac_var+set}\" = set"; then
49996 echo $ECHO_N "(cached) $ECHO_C" >&6
49998 cat >conftest.$ac_ext <<_ACEOF
50001 cat confdefs.h >>conftest.$ac_ext
50002 cat >>conftest.$ac_ext <<_ACEOF
50003 /* end confdefs.h. */
50004 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50006 #define $ac_func innocuous_$ac_func
50008 /* System header to define __stub macros and hopefully few prototypes,
50009 which can conflict with char $ac_func (); below.
50010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50011 <limits.h> exists even on freestanding compilers. */
50014 # include <limits.h>
50016 # include <assert.h>
50021 /* Override any gcc2 internal prototype to avoid an error. */
50026 /* We use char because int might match the return type of a gcc2
50027 builtin and then its argument prototype would still apply. */
50029 /* The GNU C library defines this for functions which it implements
50030 to always fail with ENOSYS. Some functions are actually named
50031 something starting with __ and the normal name is an alias. */
50032 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50035 char (*f) () = $ac_func;
50044 return f != $ac_func;
50049 rm -f conftest.$ac_objext conftest$ac_exeext
50050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50051 (eval $ac_link) 2>conftest.er1
50053 grep -v '^ *+' conftest.er1 >conftest.err
50055 cat conftest.err >&5
50056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50057 (exit $ac_status); } &&
50058 { ac_try='test -z "$ac_c_werror_flag"
50059 || test ! -s conftest.err'
50060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50061 (eval $ac_try) 2>&5
50063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50064 (exit $ac_status); }; } &&
50065 { ac_try='test -s conftest$ac_exeext'
50066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50067 (eval $ac_try) 2>&5
50069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50070 (exit $ac_status); }; }; then
50071 eval "$as_ac_var=yes"
50073 echo "$as_me: failed program was:" >&5
50074 sed 's/^/| /' conftest.$ac_ext >&5
50076 eval "$as_ac_var=no"
50078 rm -f conftest.err conftest.$ac_objext \
50079 conftest$ac_exeext conftest.$ac_ext
50081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50082 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50083 if test `eval echo '${'$as_ac_var'}'` = yes; then
50084 cat >>confdefs.h <<_ACEOF
50085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50090 "$ac_func.$ac_objext" | \
50091 *" $ac_func.$ac_objext" | \
50092 "$ac_func.$ac_objext "* | \
50093 *" $ac_func.$ac_objext "* ) ;;
50094 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
50102 if test "$ac_cv_func_getopt" != yes; then
50103 LIBSRCS="$LIBSRCS getopt.c"
50105 if test "$ac_cv_func_getpeereid" != yes; then
50106 echo "$as_me:$LINENO: checking for msg_accrights in msghdr" >&5
50107 echo $ECHO_N "checking for msg_accrights in msghdr... $ECHO_C" >&6
50108 if test "${ol_cv_msghdr_msg_accrights+set}" = set; then
50109 echo $ECHO_N "(cached) $ECHO_C" >&6
50111 cat >conftest.$ac_ext <<_ACEOF
50114 cat confdefs.h >>conftest.$ac_ext
50115 cat >>conftest.$ac_ext <<_ACEOF
50116 /* end confdefs.h. */
50117 #include <sys/socket.h>
50121 struct msghdr m; m.msg_accrightslen=0
50126 rm -f conftest.$ac_objext
50127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50128 (eval $ac_compile) 2>conftest.er1
50130 grep -v '^ *+' conftest.er1 >conftest.err
50132 cat conftest.err >&5
50133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50134 (exit $ac_status); } &&
50135 { ac_try='test -z "$ac_c_werror_flag"
50136 || test ! -s conftest.err'
50137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50138 (eval $ac_try) 2>&5
50140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50141 (exit $ac_status); }; } &&
50142 { ac_try='test -s conftest.$ac_objext'
50143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50144 (eval $ac_try) 2>&5
50146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50147 (exit $ac_status); }; }; then
50148 ol_cv_msghdr_msg_accrights=yes
50150 echo "$as_me: failed program was:" >&5
50151 sed 's/^/| /' conftest.$ac_ext >&5
50153 ol_cv_msghdr_msg_accrights=no
50155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50158 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_accrights" >&5
50159 echo "${ECHO_T}$ol_cv_msghdr_msg_accrights" >&6
50160 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
50162 cat >>confdefs.h <<\_ACEOF
50163 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
50168 if test "$ac_cv_func_getpeereid" != yes; then
50169 echo "$as_me:$LINENO: checking for msg_control in msghdr" >&5
50170 echo $ECHO_N "checking for msg_control in msghdr... $ECHO_C" >&6
50171 if test "${ol_cv_msghdr_msg_control+set}" = set; then
50172 echo $ECHO_N "(cached) $ECHO_C" >&6
50174 cat >conftest.$ac_ext <<_ACEOF
50177 cat confdefs.h >>conftest.$ac_ext
50178 cat >>conftest.$ac_ext <<_ACEOF
50179 /* end confdefs.h. */
50180 #include <sys/socket.h>
50184 struct msghdr m; m.msg_control=(struct cmsghdr *)0
50189 rm -f conftest.$ac_objext
50190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50191 (eval $ac_compile) 2>conftest.er1
50193 grep -v '^ *+' conftest.er1 >conftest.err
50195 cat conftest.err >&5
50196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50197 (exit $ac_status); } &&
50198 { ac_try='test -z "$ac_c_werror_flag"
50199 || test ! -s conftest.err'
50200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50201 (eval $ac_try) 2>&5
50203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50204 (exit $ac_status); }; } &&
50205 { ac_try='test -s conftest.$ac_objext'
50206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50207 (eval $ac_try) 2>&5
50209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50210 (exit $ac_status); }; }; then
50211 ol_cv_msghdr_msg_control=yes
50213 echo "$as_me: failed program was:" >&5
50214 sed 's/^/| /' conftest.$ac_ext >&5
50216 ol_cv_msghdr_msg_control=no
50218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50221 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_control" >&5
50222 echo "${ECHO_T}$ol_cv_msghdr_msg_control" >&6
50223 if test $ol_cv_msghdr_msg_control = "yes" ; then
50225 cat >>confdefs.h <<\_ACEOF
50226 #define HAVE_MSGHDR_MSG_CONTROL 1
50232 LIBSRCS="$LIBSRCS getpeereid.c"
50234 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
50235 if test "$ac_cv_func_snprintf" != yes; then
50237 cat >>confdefs.h <<\_ACEOF
50238 #define snprintf ber_pvt_snprintf
50242 if test "$ac_cv_func_vsnprintf" != yes; then
50244 cat >>confdefs.h <<\_ACEOF
50245 #define vsnprintf ber_pvt_vsnprintf
50252 if test "$ol_enable_slapi" != no ; then
50254 for ac_header in ltdl.h
50256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
50257 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50258 echo "$as_me:$LINENO: checking for $ac_header" >&5
50259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50260 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50261 echo $ECHO_N "(cached) $ECHO_C" >&6
50263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50264 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50266 # Is the header compilable?
50267 echo "$as_me:$LINENO: checking $ac_header usability" >&5
50268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
50269 cat >conftest.$ac_ext <<_ACEOF
50272 cat confdefs.h >>conftest.$ac_ext
50273 cat >>conftest.$ac_ext <<_ACEOF
50274 /* end confdefs.h. */
50275 $ac_includes_default
50276 #include <$ac_header>
50278 rm -f conftest.$ac_objext
50279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50280 (eval $ac_compile) 2>conftest.er1
50282 grep -v '^ *+' conftest.er1 >conftest.err
50284 cat conftest.err >&5
50285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50286 (exit $ac_status); } &&
50287 { ac_try='test -z "$ac_c_werror_flag"
50288 || test ! -s conftest.err'
50289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50290 (eval $ac_try) 2>&5
50292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50293 (exit $ac_status); }; } &&
50294 { ac_try='test -s conftest.$ac_objext'
50295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50296 (eval $ac_try) 2>&5
50298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50299 (exit $ac_status); }; }; then
50300 ac_header_compiler=yes
50302 echo "$as_me: failed program was:" >&5
50303 sed 's/^/| /' conftest.$ac_ext >&5
50305 ac_header_compiler=no
50307 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50308 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
50309 echo "${ECHO_T}$ac_header_compiler" >&6
50311 # Is the header present?
50312 echo "$as_me:$LINENO: checking $ac_header presence" >&5
50313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
50314 cat >conftest.$ac_ext <<_ACEOF
50317 cat confdefs.h >>conftest.$ac_ext
50318 cat >>conftest.$ac_ext <<_ACEOF
50319 /* end confdefs.h. */
50320 #include <$ac_header>
50322 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
50323 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
50325 grep -v '^ *+' conftest.er1 >conftest.err
50327 cat conftest.err >&5
50328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50329 (exit $ac_status); } >/dev/null; then
50330 if test -s conftest.err; then
50331 ac_cpp_err=$ac_c_preproc_warn_flag
50332 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
50339 if test -z "$ac_cpp_err"; then
50340 ac_header_preproc=yes
50342 echo "$as_me: failed program was:" >&5
50343 sed 's/^/| /' conftest.$ac_ext >&5
50345 ac_header_preproc=no
50347 rm -f conftest.err conftest.$ac_ext
50348 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
50349 echo "${ECHO_T}$ac_header_preproc" >&6
50351 # So? What about this header?
50352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
50354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
50355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
50356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
50357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
50358 ac_header_preproc=yes
50361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
50362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
50363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
50364 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
50365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
50366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
50367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
50368 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
50369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
50370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
50371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
50372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
50375 ## ------------------------------------------ ##
50376 ## Report this to the AC_PACKAGE_NAME lists. ##
50377 ## ------------------------------------------ ##
50380 sed "s/^/$as_me: WARNING: /" >&2
50383 echo "$as_me:$LINENO: checking for $ac_header" >&5
50384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
50385 if eval "test \"\${$as_ac_Header+set}\" = set"; then
50386 echo $ECHO_N "(cached) $ECHO_C" >&6
50388 eval "$as_ac_Header=\$ac_header_preproc"
50390 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
50391 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
50394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
50395 cat >>confdefs.h <<_ACEOF
50396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
50404 if test $ac_cv_header_ltdl_h != yes ; then
50405 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
50406 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
50407 { (exit 1); exit 1; }; }
50409 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
50410 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
50411 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
50412 echo $ECHO_N "(cached) $ECHO_C" >&6
50414 ac_check_lib_save_LIBS=$LIBS
50415 LIBS="-lltdl $LIBS"
50416 cat >conftest.$ac_ext <<_ACEOF
50419 cat confdefs.h >>conftest.$ac_ext
50420 cat >>conftest.$ac_ext <<_ACEOF
50421 /* end confdefs.h. */
50423 /* Override any gcc2 internal prototype to avoid an error. */
50427 /* We use char because int might match the return type of a gcc2
50428 builtin and then its argument prototype would still apply. */
50438 rm -f conftest.$ac_objext conftest$ac_exeext
50439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50440 (eval $ac_link) 2>conftest.er1
50442 grep -v '^ *+' conftest.er1 >conftest.err
50444 cat conftest.err >&5
50445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50446 (exit $ac_status); } &&
50447 { ac_try='test -z "$ac_c_werror_flag"
50448 || test ! -s conftest.err'
50449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50450 (eval $ac_try) 2>&5
50452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50453 (exit $ac_status); }; } &&
50454 { ac_try='test -s conftest$ac_exeext'
50455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50456 (eval $ac_try) 2>&5
50458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50459 (exit $ac_status); }; }; then
50460 ac_cv_lib_ltdl_lt_dlinit=yes
50462 echo "$as_me: failed program was:" >&5
50463 sed 's/^/| /' conftest.$ac_ext >&5
50465 ac_cv_lib_ltdl_lt_dlinit=no
50467 rm -f conftest.err conftest.$ac_objext \
50468 conftest$ac_exeext conftest.$ac_ext
50469 LIBS=$ac_check_lib_save_LIBS
50471 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
50472 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
50473 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
50476 LIBSLAPI=libslapi.a
50477 LIBSLAPITOOLS=../libslapi.a
50479 cat >>confdefs.h <<\_ACEOF
50480 #define HAVE_LIBLTDL 1
50485 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
50486 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
50487 { (exit 1); exit 1; }; }
50492 cat >>confdefs.h <<\_ACEOF
50493 #define LDAP_SLAPI 1
50498 if test "$ol_enable_debug" != no ; then
50500 cat >>confdefs.h <<\_ACEOF
50501 #define LDAP_DEBUG 1
50505 if test "$ol_enable_syslog" = yes ; then
50507 cat >>confdefs.h <<\_ACEOF
50508 #define LDAP_SYSLOG 1
50512 if test "$ol_link_kbind" != no ; then
50513 cat >>confdefs.h <<\_ACEOF
50514 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
50518 if test "$ol_enable_proctitle" != no ; then
50520 cat >>confdefs.h <<\_ACEOF
50521 #define LDAP_PROCTITLE 1
50525 if test "$ol_enable_referrals" != no ; then
50526 cat >>confdefs.h <<\_ACEOF
50527 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
50531 if test "$ol_enable_local" != no; then
50533 cat >>confdefs.h <<\_ACEOF
50534 #define LDAP_PF_LOCAL 1
50538 if test "$ol_link_ipv6" != no; then
50540 cat >>confdefs.h <<\_ACEOF
50541 #define LDAP_PF_INET6 1
50545 if test "$ol_enable_cleartext" != no ; then
50547 cat >>confdefs.h <<\_ACEOF
50548 #define SLAPD_CLEARTEXT 1
50552 if test "$ol_enable_crypt" != no ; then
50554 cat >>confdefs.h <<\_ACEOF
50555 #define SLAPD_CRYPT 1
50559 if test "$ol_link_spasswd" != no ; then
50561 cat >>confdefs.h <<\_ACEOF
50562 #define SLAPD_SPASSWD 1
50566 if test "$ol_enable_multimaster" != no ; then
50568 cat >>confdefs.h <<\_ACEOF
50569 #define SLAPD_MULTIMASTER 1
50573 if test "$ol_enable_rlookups" != no ; then
50575 cat >>confdefs.h <<\_ACEOF
50576 #define SLAPD_RLOOKUPS 1
50580 if test "$ol_enable_aci" != no ; then
50582 cat >>confdefs.h <<\_ACEOF
50583 #define SLAPD_ACI_ENABLED 1
50588 if test "$ol_link_modules" != no ; then
50590 cat >>confdefs.h <<\_ACEOF
50591 #define SLAPD_MODULES 1
50595 SLAPD_MODULES_LDFLAGS="-dlopen self"
50599 cat >>confdefs.h <<\_ACEOF
50600 #define SLAPD_MOD_STATIC 1
50604 cat >>confdefs.h <<\_ACEOF
50605 #define SLAPD_MOD_DYNAMIC 2
50609 if test "$ol_enable_bdb" != no ; then
50611 BUILD_BDB=$ol_enable_bdb
50612 if test "$ol_enable_bdb" = mod ; then
50613 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
50614 MFLAG=SLAPD_MOD_DYNAMIC
50616 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
50617 MFLAG=SLAPD_MOD_STATIC
50620 cat >>confdefs.h <<_ACEOF
50621 #define SLAPD_BDB $MFLAG
50626 if test "$ol_enable_dnssrv" != no ; then
50628 BUILD_DNSSRV=$ol_enable_dnssrv
50629 if test "$ol_enable_dnssrv" = mod ; then
50630 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
50631 MFLAG=SLAPD_MOD_DYNAMIC
50633 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
50634 MFLAG=SLAPD_MOD_STATIC
50637 cat >>confdefs.h <<_ACEOF
50638 #define SLAPD_DNSSRV $MFLAG
50643 if test "$ol_enable_hdb" != no ; then
50645 BUILD_HDB=$ol_enable_hdb
50646 if test "$ol_enable_hdb" = mod ; then
50647 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
50648 MFLAG=SLAPD_MOD_DYNAMIC
50650 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
50651 MFLAG=SLAPD_MOD_STATIC
50654 cat >>confdefs.h <<_ACEOF
50655 #define SLAPD_HDB $MFLAG
50660 if test "$ol_enable_ldap" != no ; then
50662 BUILD_LDAP=$ol_enable_ldap
50663 if test "$ol_enable_ldap" = mod ; then
50664 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
50665 MFLAG=SLAPD_MOD_DYNAMIC
50667 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
50668 MFLAG=SLAPD_MOD_STATIC
50671 cat >>confdefs.h <<_ACEOF
50672 #define SLAPD_LDAP $MFLAG
50677 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
50679 BUILD_LDBM=$ol_enable_ldbm
50680 if test "$ol_enable_ldbm" = mod ; then
50681 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
50682 MFLAG=SLAPD_MOD_DYNAMIC
50684 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
50685 MFLAG=SLAPD_MOD_STATIC
50688 cat >>confdefs.h <<_ACEOF
50689 #define SLAPD_LDBM $MFLAG
50694 if test "$ol_enable_meta" != no ; then
50696 BUILD_META=$ol_enable_meta
50698 if test "$ol_enable_meta" = mod ; then
50699 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
50700 MFLAG=SLAPD_MOD_DYNAMIC
50702 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
50703 MFLAG=SLAPD_MOD_STATIC
50706 cat >>confdefs.h <<_ACEOF
50707 #define SLAPD_META $MFLAG
50712 if test "$ol_enable_monitor" != no ; then
50714 BUILD_MONITOR=$ol_enable_monitor
50715 if test "$ol_enable_monitor" = mod ; then
50716 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
50717 MFLAG=SLAPD_MOD_DYNAMIC
50719 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
50720 MFLAG=SLAPD_MOD_STATIC
50723 cat >>confdefs.h <<_ACEOF
50724 #define SLAPD_MONITOR $MFLAG
50729 if test "$ol_enable_null" != no ; then
50731 BUILD_NULL=$ol_enable_null
50732 if test "$ol_enable_null" = mod ; then
50733 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
50734 MFLAG=SLAPD_MOD_DYNAMIC
50736 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
50737 MFLAG=SLAPD_MOD_STATIC
50740 cat >>confdefs.h <<_ACEOF
50741 #define SLAPD_NULL $MFLAG
50746 if test "$ol_enable_passwd" != no ; then
50748 BUILD_PASSWD=$ol_enable_passwd
50749 if test "$ol_enable_passwd" = mod ; then
50750 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
50751 MFLAG=SLAPD_MOD_DYNAMIC
50753 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
50754 MFLAG=SLAPD_MOD_STATIC
50757 cat >>confdefs.h <<_ACEOF
50758 #define SLAPD_PASSWD $MFLAG
50763 if test "$ol_link_perl" != no ; then
50765 BUILD_PERL=$ol_enable_perl
50766 if test "$ol_enable_perl" = mod ; then
50767 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
50768 MFLAG=SLAPD_MOD_DYNAMIC
50770 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
50771 MFLAG=SLAPD_MOD_STATIC
50774 cat >>confdefs.h <<_ACEOF
50775 #define SLAPD_PERL $MFLAG
50780 if test "$ol_enable_relay" != no ; then
50782 BUILD_RELAY=$ol_enable_relay
50783 if test "$ol_enable_relay" = mod ; then
50784 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
50785 MFLAG=SLAPD_MOD_DYNAMIC
50787 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
50788 MFLAG=SLAPD_MOD_STATIC
50791 cat >>confdefs.h <<_ACEOF
50792 #define SLAPD_RELAY $MFLAG
50797 if test "$ol_enable_shell" != no ; then
50798 if test "$ol_link_thread" != no ; then
50799 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
50800 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
50803 BUILD_SHELL=$ol_enable_shell
50804 if test "$ol_enable_shell" = mod ; then
50805 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
50806 MFLAG=SLAPD_MOD_DYNAMIC
50808 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
50809 MFLAG=SLAPD_MOD_STATIC
50812 cat >>confdefs.h <<_ACEOF
50813 #define SLAPD_SHELL $MFLAG
50818 if test "$ol_link_sql" != no ; then
50820 BUILD_SQL=$ol_enable_sql
50821 if test "$ol_enable_sql" = mod; then
50822 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
50823 MFLAG=SLAPD_MOD_DYNAMIC
50825 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
50826 MFLAG=SLAPD_MOD_STATIC
50829 cat >>confdefs.h <<_ACEOF
50830 #define SLAPD_SQL $MFLAG
50835 if test "$ol_enable_accesslog" != no ; then
50836 BUILD_ACCESSLOG=$ol_enable_accesslog
50837 if test "$ol_enable_accesslog" = mod ; then
50838 MFLAG=SLAPD_MOD_DYNAMIC
50839 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
50841 MFLAG=SLAPD_MOD_STATIC
50842 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
50845 cat >>confdefs.h <<_ACEOF
50846 #define SLAPD_OVER_ACCESSLOG $MFLAG
50851 if test "$ol_enable_denyop" != no ; then
50852 BUILD_DENYOP=$ol_enable_denyop
50853 if test "$ol_enable_denyop" = mod ; then
50854 MFLAG=SLAPD_MOD_DYNAMIC
50855 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
50857 MFLAG=SLAPD_MOD_STATIC
50858 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
50861 cat >>confdefs.h <<_ACEOF
50862 #define SLAPD_OVER_DENYOP $MFLAG
50867 if test "$ol_enable_dyngroup" != no ; then
50868 BUILD_DYNGROUP=$ol_enable_dyngroup
50869 if test "$ol_enable_dyngroup" = mod ; then
50870 MFLAG=SLAPD_MOD_DYNAMIC
50871 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
50873 MFLAG=SLAPD_MOD_STATIC
50874 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
50877 cat >>confdefs.h <<_ACEOF
50878 #define SLAPD_OVER_DYNGROUP $MFLAG
50883 if test "$ol_enable_dynlist" != no ; then
50884 BUILD_DYNLIST=$ol_enable_dynlist
50885 if test "$ol_enable_dynlist" = mod ; then
50886 MFLAG=SLAPD_MOD_DYNAMIC
50887 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
50889 MFLAG=SLAPD_MOD_STATIC
50890 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
50893 cat >>confdefs.h <<_ACEOF
50894 #define SLAPD_OVER_DYNLIST $MFLAG
50899 if test "$ol_enable_glue" != no ; then
50900 BUILD_GLUE=$ol_enable_glue
50901 if test "$ol_enable_glue" = mod ; then
50902 MFLAG=SLAPD_MOD_DYNAMIC
50903 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
50905 MFLAG=SLAPD_MOD_STATIC
50906 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
50909 cat >>confdefs.h <<_ACEOF
50910 #define SLAPD_OVER_GLUE $MFLAG
50915 if test "$ol_enable_lastmod" != no ; then
50916 BUILD_LASTMOD=$ol_enable_lastmod
50917 if test "$ol_enable_lastmod" = mod ; then
50918 MFLAG=SLAPD_MOD_DYNAMIC
50919 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
50921 MFLAG=SLAPD_MOD_STATIC
50922 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
50925 cat >>confdefs.h <<_ACEOF
50926 #define SLAPD_OVER_LASTMOD $MFLAG
50931 if test "$ol_enable_ppolicy" != no ; then
50932 BUILD_PPOLICY=$ol_enable_ppolicy
50933 if test "$ol_enable_ppolicy" = mod ; then
50934 MFLAG=SLAPD_MOD_DYNAMIC
50935 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
50937 MFLAG=SLAPD_MOD_STATIC
50938 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
50941 cat >>confdefs.h <<_ACEOF
50942 #define SLAPD_OVER_PPOLICY $MFLAG
50947 if test "$ol_enable_proxycache" != no ; then
50948 BUILD_PROXYCACHE=$ol_enable_proxycache
50949 if test "$ol_enable_proxycache" = mod ; then
50950 MFLAG=SLAPD_MOD_DYNAMIC
50951 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
50953 MFLAG=SLAPD_MOD_STATIC
50954 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
50957 cat >>confdefs.h <<_ACEOF
50958 #define SLAPD_OVER_PROXYCACHE $MFLAG
50963 if test "$ol_enable_refint" != no ; then
50964 BUILD_REFINT=$ol_enable_refint
50965 if test "$ol_enable_refint" = mod ; then
50966 MFLAG=SLAPD_MOD_DYNAMIC
50967 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
50969 MFLAG=SLAPD_MOD_STATIC
50970 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
50973 cat >>confdefs.h <<_ACEOF
50974 #define SLAPD_OVER_REFINT $MFLAG
50979 if test "$ol_enable_retcode" != no ; then
50980 BUILD_RETCODE=$ol_enable_retcode
50981 if test "$ol_enable_retcode" = mod ; then
50982 MFLAG=SLAPD_MOD_DYNAMIC
50983 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
50985 MFLAG=SLAPD_MOD_STATIC
50986 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
50989 cat >>confdefs.h <<_ACEOF
50990 #define SLAPD_OVER_RETCODE $MFLAG
50995 if test "$ol_enable_rwm" != no ; then
50997 BUILD_RWM=$ol_enable_rwm
50998 if test "$ol_enable_rwm" = mod ; then
50999 MFLAG=SLAPD_MOD_DYNAMIC
51000 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
51002 MFLAG=SLAPD_MOD_STATIC
51003 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
51006 cat >>confdefs.h <<_ACEOF
51007 #define SLAPD_OVER_RWM $MFLAG
51012 if test "$ol_enable_syncprov" != no ; then
51013 BUILD_SYNCPROV=$ol_enable_syncprov
51014 if test "$ol_enable_syncprov" = mod ; then
51015 MFLAG=SLAPD_MOD_DYNAMIC
51016 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
51018 MFLAG=SLAPD_MOD_STATIC
51019 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
51022 cat >>confdefs.h <<_ACEOF
51023 #define SLAPD_OVER_SYNCPROV $MFLAG
51028 if test "$ol_enable_translucent" != no ; then
51029 BUILD_TRANSLUCENT=$ol_enable_translucent
51030 if test "$ol_enable_translucent" = mod ; then
51031 MFLAG=SLAPD_MOD_DYNAMIC
51032 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
51034 MFLAG=SLAPD_MOD_STATIC
51035 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
51038 cat >>confdefs.h <<_ACEOF
51039 #define SLAPD_OVER_TRANSLUCENT $MFLAG
51044 if test "$ol_enable_unique" != no ; then
51045 BUILD_UNIQUE=$ol_enable_unique
51046 if test "$ol_enable_unique" = mod ; then
51047 MFLAG=SLAPD_MOD_DYNAMIC
51048 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
51050 MFLAG=SLAPD_MOD_STATIC
51051 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
51054 cat >>confdefs.h <<_ACEOF
51055 #define SLAPD_OVER_UNIQUE $MFLAG
51060 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
51061 $BUILD_SLAPD = yes ; then
51065 if test "$ol_enable_rewrite" != no ; then
51067 cat >>confdefs.h <<\_ACEOF
51068 #define ENABLE_REWRITE 1
51074 if test "$ol_enable_slapi" != no ; then
51076 cat >>confdefs.h <<\_ACEOF
51077 #define ENABLE_SLAPI 1
51081 SLAPD_SLAPI_DEPEND=libslapi.a
51086 if test "$ac_cv_mingw32" = yes ; then
51088 SLAPD_MODULES_LDFLAGS=
51171 # Check whether --with-xxinstall or --without-xxinstall was given.
51172 if test "${with_xxinstall+set}" = set; then
51173 withval="$with_xxinstall"
51178 ac_config_files="$ac_config_files Makefile:build/top.mk:Makefile.in:build/dir.mk doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk include/Makefile:build/top.mk:include/Makefile.in libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk tests/run tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk"
51180 ac_config_commands="$ac_config_commands default"
51184 test "x$prefix" = xNONE && prefix=$ac_default_prefix
51185 # Let make expand exec_prefix.
51186 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
51188 # VPATH may cause trouble with some makes, so we remove $(srcdir),
51189 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
51190 # trailing colons and then remove the whole line if VPATH becomes empty
51191 # (actually we leave an empty line to preserve line numbers).
51192 if test "x$srcdir" = x.; then
51193 ac_vpsub='/^[ ]*VPATH[ ]*=/{
51194 s/:*\$(srcdir):*/:/;
51195 s/:*\${srcdir}:*/:/;
51197 s/^\([^=]*=[ ]*\):*/\1/;
51203 DEFS=-DHAVE_CONFIG_H
51207 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
51208 # 1. Remove the extension, and $U if already installed.
51209 ac_i=`echo "$ac_i" |
51210 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
51212 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
51213 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
51215 LIBOBJS=$ac_libobjs
51217 LTLIBOBJS=$ac_ltlibobjs
51220 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
51221 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
51222 Usually this means the macro was only invoked conditionally." >&5
51223 echo "$as_me: error: conditional \"AMDEP\" was never defined.
51224 Usually this means the macro was only invoked conditionally." >&2;}
51225 { (exit 1); exit 1; }; }
51227 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
51228 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
51229 Usually this means the macro was only invoked conditionally." >&5
51230 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
51231 Usually this means the macro was only invoked conditionally." >&2;}
51232 { (exit 1); exit 1; }; }
51234 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
51235 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
51236 Usually this means the macro was only invoked conditionally." >&5
51237 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
51238 Usually this means the macro was only invoked conditionally." >&2;}
51239 { (exit 1); exit 1; }; }
51241 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
51242 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
51243 Usually this means the macro was only invoked conditionally." >&5
51244 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
51245 Usually this means the macro was only invoked conditionally." >&2;}
51246 { (exit 1); exit 1; }; }
51249 : ${CONFIG_STATUS=./config.status}
51250 ac_clean_files_save=$ac_clean_files
51251 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
51252 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
51253 echo "$as_me: creating $CONFIG_STATUS" >&6;}
51254 cat >$CONFIG_STATUS <<_ACEOF
51256 # Generated by $as_me.
51257 # Run this file to recreate the current configuration.
51258 # Compiler output produced by configure, useful for debugging
51259 # configure, is in config.log if it exists.
51262 ac_cs_recheck=false
51264 SHELL=\${CONFIG_SHELL-$SHELL}
51267 cat >>$CONFIG_STATUS <<\_ACEOF
51268 ## --------------------- ##
51269 ## M4sh Initialization. ##
51270 ## --------------------- ##
51272 # Be Bourne compatible
51273 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51276 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
51277 # is contrary to our usage. Disable this feature.
51278 alias -g '${1+"$@"}'='"$@"'
51279 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
51282 DUALCASE=1; export DUALCASE # for MKS sh
51284 # Support unset when possible.
51285 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51292 # Work around bugs in pre-3.0 UWIN ksh.
51293 $as_unset ENV MAIL MAILPATH
51300 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
51301 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51302 LC_TELEPHONE LC_TIME
51304 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
51305 eval $as_var=C; export $as_var
51311 # Required to use basename.
51312 if expr a : '\(a\)' >/dev/null 2>&1; then
51318 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
51319 as_basename=basename
51325 # Name of the executable.
51326 as_me=`$as_basename "$0" ||
51327 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51328 X"$0" : 'X\(//\)$' \| \
51329 X"$0" : 'X\(/\)$' \| \
51330 . : '\(.\)' 2>/dev/null ||
51332 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
51333 /^X\/\(\/\/\)$/{ s//\1/; q; }
51334 /^X\/\(\/\).*/{ s//\1/; q; }
51338 # PATH needs CR, and LINENO needs CR and PATH.
51339 # Avoid depending upon Character Ranges.
51340 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51341 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51342 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51343 as_cr_digits='0123456789'
51344 as_cr_alnum=$as_cr_Letters$as_cr_digits
51346 # The user is always right.
51347 if test "${PATH_SEPARATOR+set}" != set; then
51348 echo "#! /bin/sh" >conf$$.sh
51349 echo "exit 0" >>conf$$.sh
51351 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
51360 as_lineno_1=$LINENO
51361 as_lineno_2=$LINENO
51362 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51363 test "x$as_lineno_1" != "x$as_lineno_2" &&
51364 test "x$as_lineno_3" = "x$as_lineno_2" || {
51365 # Find who we are. Look in the path if we contain no path at all
51368 *[\\/]* ) as_myself=$0 ;;
51369 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51370 for as_dir in $PATH
51373 test -z "$as_dir" && as_dir=.
51374 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51379 # We did not find ourselves, most probably we were run as `sh COMMAND'
51380 # in which case we are not to be found in the path.
51381 if test "x$as_myself" = x; then
51384 if test ! -f "$as_myself"; then
51385 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
51386 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
51387 { (exit 1); exit 1; }; }
51389 case $CONFIG_SHELL in
51391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51392 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
51395 test -z "$as_dir" && as_dir=.
51396 for as_base in sh bash ksh sh5; do
51399 if ("$as_dir/$as_base" -c '
51400 as_lineno_1=$LINENO
51401 as_lineno_2=$LINENO
51402 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
51403 test "x$as_lineno_1" != "x$as_lineno_2" &&
51404 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
51405 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
51406 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
51407 CONFIG_SHELL=$as_dir/$as_base
51408 export CONFIG_SHELL
51409 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
51417 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51418 # uniformly replaced by the line number. The first 'sed' inserts a
51419 # line-number line before each line; the second 'sed' does the real
51420 # work. The second script uses 'N' to pair each line-number line
51421 # with the numbered line, and appends trailing '-' during
51422 # substitution so that $LINENO is not a special case at line end.
51423 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51424 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
51425 sed '=' <$as_myself |
51430 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
51433 s,^['$as_cr_digits']*\n,,
51434 ' >$as_me.lineno &&
51435 chmod +x $as_me.lineno ||
51436 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
51437 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
51438 { (exit 1); exit 1; }; }
51440 # Don't try to exec as it changes $[0], causing all sort of problems
51441 # (the dirname of $[0] is not the place where we might find the
51442 # original and so on. Autoconf is especially sensible to this).
51444 # Exit status is that of the last command.
51449 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
51450 *c*,-n*) ECHO_N= ECHO_C='
51452 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
51453 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
51456 if expr a : '\(a\)' >/dev/null 2>&1; then
51462 rm -f conf$$ conf$$.exe conf$$.file
51464 if ln -s conf$$.file conf$$ 2>/dev/null; then
51465 # We could just check for DJGPP; but this test a) works b) is more generic
51466 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
51467 if test -f conf$$.exe; then
51468 # Don't use ln at all; we don't have any links
51473 elif ln conf$$.file conf$$ 2>/dev/null; then
51478 rm -f conf$$ conf$$.exe conf$$.file
51480 if mkdir -p . 2>/dev/null; then
51483 test -d ./-p && rmdir ./-p
51487 as_executable_p="test -f"
51489 # Sed expression to map a string onto a valid CPP name.
51490 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51492 # Sed expression to map a string onto a valid variable name.
51493 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51497 # We need space, tab and new line, in precisely that order.
51507 # Open the log real soon, to keep \$[0] and so on meaningful, and to
51508 # report actual input values of CONFIG_FILES etc. instead of their
51509 # values after options handling. Logging --version etc. is OK.
51513 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51514 ## Running $as_me. ##
51519 This file was extended by $as_me, which was
51520 generated by GNU Autoconf 2.59. Invocation command line was
51522 CONFIG_FILES = $CONFIG_FILES
51523 CONFIG_HEADERS = $CONFIG_HEADERS
51524 CONFIG_LINKS = $CONFIG_LINKS
51525 CONFIG_COMMANDS = $CONFIG_COMMANDS
51529 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
51533 # Files that config.status was made for.
51534 if test -n "$ac_config_files"; then
51535 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
51538 if test -n "$ac_config_headers"; then
51539 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
51542 if test -n "$ac_config_links"; then
51543 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
51546 if test -n "$ac_config_commands"; then
51547 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
51550 cat >>$CONFIG_STATUS <<\_ACEOF
51553 \`$as_me' instantiates files from templates according to the
51554 current configuration.
51556 Usage: $0 [OPTIONS] [FILE]...
51558 -h, --help print this help, then exit
51559 -V, --version print version number, then exit
51560 -q, --quiet do not print progress messages
51561 -d, --debug don't remove temporary files
51562 --recheck update $as_me by reconfiguring in the same conditions
51563 --file=FILE[:TEMPLATE]
51564 instantiate the configuration file FILE
51565 --header=FILE[:TEMPLATE]
51566 instantiate the configuration header FILE
51568 Configuration files:
51571 Configuration headers:
51574 Configuration commands:
51577 Report bugs to <bug-autoconf@gnu.org>."
51580 cat >>$CONFIG_STATUS <<_ACEOF
51583 configured by $0, generated by GNU Autoconf 2.59,
51584 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
51586 Copyright (C) 2003 Free Software Foundation, Inc.
51587 This config.status script is free software; the Free Software Foundation
51588 gives unlimited permission to copy, distribute and modify it."
51593 cat >>$CONFIG_STATUS <<\_ACEOF
51594 # If no file are specified by the user, then we need to provide default
51595 # value. By we need to know if files were specified by the user.
51601 ac_option=`expr "x$1" : 'x\([^=]*\)='`
51602 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
51610 *) # This is not an option, so the user has probably given explicit
51613 ac_need_defaults=false;;
51617 # Handling of the options.
51619 cat >>$CONFIG_STATUS <<\_ACEOF
51620 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51622 --version | --vers* | -V )
51623 echo "$ac_cs_version"; exit 0 ;;
51625 # Conflict between --help and --header
51626 { { echo "$as_me:$LINENO: error: ambiguous option: $1
51627 Try \`$0 --help' for more information." >&5
51628 echo "$as_me: error: ambiguous option: $1
51629 Try \`$0 --help' for more information." >&2;}
51630 { (exit 1); exit 1; }; };;
51631 --help | --hel | -h )
51632 echo "$ac_cs_usage"; exit 0 ;;
51633 --debug | --d* | -d )
51635 --file | --fil | --fi | --f )
51637 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
51638 ac_need_defaults=false;;
51639 --header | --heade | --head | --hea )
51641 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
51642 ac_need_defaults=false;;
51643 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51644 | -silent | --silent | --silen | --sile | --sil | --si | --s)
51647 # This is an error.
51648 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
51649 Try \`$0 --help' for more information." >&5
51650 echo "$as_me: error: unrecognized option: $1
51651 Try \`$0 --help' for more information." >&2;}
51652 { (exit 1); exit 1; }; } ;;
51654 *) ac_config_targets="$ac_config_targets $1" ;;
51660 ac_configure_extra_args=
51662 if $ac_cs_silent; then
51664 ac_configure_extra_args="$ac_configure_extra_args --silent"
51668 cat >>$CONFIG_STATUS <<_ACEOF
51669 if \$ac_cs_recheck; then
51670 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
51671 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51676 cat >>$CONFIG_STATUS <<_ACEOF
51678 # INIT-COMMANDS section.
51681 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
51682 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
51688 cat >>$CONFIG_STATUS <<\_ACEOF
51689 for ac_config_target in $ac_config_targets
51691 case "$ac_config_target" in
51692 # Handling of arguments.
51693 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
51694 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
51695 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
51696 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
51697 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
51698 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
51699 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
51700 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
51701 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
51702 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
51703 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
51704 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51705 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51706 "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" ;;
51707 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
51708 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
51709 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
51710 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
51711 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
51712 "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" ;;
51713 "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" ;;
51714 "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" ;;
51715 "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" ;;
51716 "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" ;;
51717 "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" ;;
51718 "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" ;;
51719 "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" ;;
51720 "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" ;;
51721 "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" ;;
51722 "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" ;;
51723 "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" ;;
51724 "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" ;;
51725 "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" ;;
51726 "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" ;;
51727 "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" ;;
51728 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
51729 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
51730 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
51731 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
51732 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
51733 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
51734 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
51735 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
51736 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
51737 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
51738 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51739 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51740 { (exit 1); exit 1; }; };;
51744 # If the user did not use the arguments to specify the items to instantiate,
51745 # then the envvar interface is used. Set only those that are not.
51746 # We use the long form for the default assignment because of an extremely
51747 # bizarre bug on SunOS 4.1.3.
51748 if $ac_need_defaults; then
51749 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51750 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51751 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51754 # Have a temporary directory for convenience. Make it in the build tree
51755 # simply because there is no reason to put it here, and in addition,
51756 # creating and moving files from /tmp can sometimes cause problems.
51757 # Create a temporary directory, and hook for its removal unless debugging.
51760 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
51761 trap '{ (exit 1); exit 1; }' 1 2 13 15
51764 # Create a (secure) tmp directory for tmp files.
51767 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
51768 test -n "$tmp" && test -d "$tmp"
51771 tmp=./confstat$$-$RANDOM
51772 (umask 077 && mkdir $tmp)
51775 echo "$me: cannot create a temporary directory in ." >&2
51776 { (exit 1); exit 1; }
51781 cat >>$CONFIG_STATUS <<_ACEOF
51784 # CONFIG_FILES section.
51787 # No need to generate the scripts if there are no CONFIG_FILES.
51788 # This happens for instance when ./config.status config.h
51789 if test -n "\$CONFIG_FILES"; then
51790 # Protect against being on the right side of a sed subst in config.status.
51791 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
51792 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
51793 s,@SHELL@,$SHELL,;t t
51794 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
51795 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
51796 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
51797 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
51798 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
51799 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
51800 s,@exec_prefix@,$exec_prefix,;t t
51801 s,@prefix@,$prefix,;t t
51802 s,@program_transform_name@,$program_transform_name,;t t
51803 s,@bindir@,$bindir,;t t
51804 s,@sbindir@,$sbindir,;t t
51805 s,@libexecdir@,$libexecdir,;t t
51806 s,@datadir@,$datadir,;t t
51807 s,@sysconfdir@,$sysconfdir,;t t
51808 s,@sharedstatedir@,$sharedstatedir,;t t
51809 s,@localstatedir@,$localstatedir,;t t
51810 s,@libdir@,$libdir,;t t
51811 s,@includedir@,$includedir,;t t
51812 s,@oldincludedir@,$oldincludedir,;t t
51813 s,@infodir@,$infodir,;t t
51814 s,@mandir@,$mandir,;t t
51815 s,@build_alias@,$build_alias,;t t
51816 s,@host_alias@,$host_alias,;t t
51817 s,@target_alias@,$target_alias,;t t
51818 s,@DEFS@,$DEFS,;t t
51819 s,@ECHO_C@,$ECHO_C,;t t
51820 s,@ECHO_N@,$ECHO_N,;t t
51821 s,@ECHO_T@,$ECHO_T,;t t
51822 s,@LIBS@,$LIBS,;t t
51823 s,@build@,$build,;t t
51824 s,@build_cpu@,$build_cpu,;t t
51825 s,@build_vendor@,$build_vendor,;t t
51826 s,@build_os@,$build_os,;t t
51827 s,@host@,$host,;t t
51828 s,@host_cpu@,$host_cpu,;t t
51829 s,@host_vendor@,$host_vendor,;t t
51830 s,@host_os@,$host_os,;t t
51831 s,@target@,$target,;t t
51832 s,@target_cpu@,$target_cpu,;t t
51833 s,@target_vendor@,$target_vendor,;t t
51834 s,@target_os@,$target_os,;t t
51835 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
51836 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
51837 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
51838 s,@CYGPATH_W@,$CYGPATH_W,;t t
51839 s,@PACKAGE@,$PACKAGE,;t t
51840 s,@VERSION@,$VERSION,;t t
51841 s,@ACLOCAL@,$ACLOCAL,;t t
51842 s,@AUTOCONF@,$AUTOCONF,;t t
51843 s,@AUTOMAKE@,$AUTOMAKE,;t t
51844 s,@AUTOHEADER@,$AUTOHEADER,;t t
51845 s,@MAKEINFO@,$MAKEINFO,;t t
51846 s,@install_sh@,$install_sh,;t t
51847 s,@STRIP@,$STRIP,;t t
51848 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
51849 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
51850 s,@mkdir_p@,$mkdir_p,;t t
51852 s,@SET_MAKE@,$SET_MAKE,;t t
51853 s,@am__leading_dot@,$am__leading_dot,;t t
51854 s,@AMTAR@,$AMTAR,;t t
51855 s,@am__tar@,$am__tar,;t t
51856 s,@am__untar@,$am__untar,;t t
51857 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
51858 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
51859 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
51860 s,@top_builddir@,$top_builddir,;t t
51861 s,@ldap_subdir@,$ldap_subdir,;t t
51864 s,@CFLAGS@,$CFLAGS,;t t
51865 s,@LDFLAGS@,$LDFLAGS,;t t
51866 s,@CPPFLAGS@,$CPPFLAGS,;t t
51867 s,@ac_ct_CC@,$ac_ct_CC,;t t
51868 s,@EXEEXT@,$EXEEXT,;t t
51869 s,@OBJEXT@,$OBJEXT,;t t
51870 s,@DEPDIR@,$DEPDIR,;t t
51871 s,@am__include@,$am__include,;t t
51872 s,@am__quote@,$am__quote,;t t
51873 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
51874 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
51875 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
51876 s,@CCDEPMODE@,$CCDEPMODE,;t t
51877 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
51878 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
51879 s,@EGREP@,$EGREP,;t t
51880 s,@LN_S@,$LN_S,;t t
51881 s,@ECHO@,$ECHO,;t t
51882 s,@ac_ct_AR@,$ac_ct_AR,;t t
51883 s,@RANLIB@,$RANLIB,;t t
51884 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
51885 s,@DLLTOOL@,$DLLTOOL,;t t
51886 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
51888 s,@ac_ct_AS@,$ac_ct_AS,;t t
51889 s,@OBJDUMP@,$OBJDUMP,;t t
51890 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
51893 s,@CXXFLAGS@,$CXXFLAGS,;t t
51894 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
51895 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
51896 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
51897 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
51898 s,@CXXCPP@,$CXXCPP,;t t
51900 s,@FFLAGS@,$FFLAGS,;t t
51901 s,@ac_ct_F77@,$ac_ct_F77,;t t
51902 s,@LIBTOOL@,$LIBTOOL,;t t
51903 s,@PERLBIN@,$PERLBIN,;t t
51904 s,@OL_MKDEP@,$OL_MKDEP,;t t
51905 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
51906 s,@LTSTATIC@,$LTSTATIC,;t t
51907 s,@LIBOBJS@,$LIBOBJS,;t t
51908 s,@LIBSRCS@,$LIBSRCS,;t t
51909 s,@PLAT@,$PLAT,;t t
51910 s,@WITH_SASL@,$WITH_SASL,;t t
51911 s,@WITH_TLS@,$WITH_TLS,;t t
51912 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
51913 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
51914 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
51915 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
51916 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
51917 s,@BUILD_BDB@,$BUILD_BDB,;t t
51918 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
51919 s,@BUILD_HDB@,$BUILD_HDB,;t t
51920 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
51921 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
51922 s,@BUILD_META@,$BUILD_META,;t t
51923 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
51924 s,@BUILD_NULL@,$BUILD_NULL,;t t
51925 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
51926 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
51927 s,@BUILD_PERL@,$BUILD_PERL,;t t
51928 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
51929 s,@BUILD_SQL@,$BUILD_SQL,;t t
51930 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
51931 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
51932 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
51933 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
51934 s,@BUILD_GLUE@,$BUILD_GLUE,;t t
51935 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
51936 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
51937 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
51938 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
51939 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
51940 s,@BUILD_RWM@,$BUILD_RWM,;t t
51941 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
51942 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
51943 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
51944 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
51945 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
51946 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
51947 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
51948 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
51949 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
51950 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
51951 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
51952 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
51953 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
51954 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
51955 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
51956 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
51957 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
51958 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
51959 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
51960 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
51961 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
51962 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
51963 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
51964 s,@SASL_LIBS@,$SASL_LIBS,;t t
51965 s,@TLS_LIBS@,$TLS_LIBS,;t t
51966 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
51967 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
51968 s,@LIBSLAPI@,$LIBSLAPI,;t t
51969 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
51970 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
51971 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
51972 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
51973 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
51974 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
51975 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
51976 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
51981 cat >>$CONFIG_STATUS <<\_ACEOF
51982 # Split the substitutions into bite-sized pieces for seds with
51983 # small command number limits, like on Digital OSF/1 and HP-UX.
51984 ac_max_sed_lines=48
51985 ac_sed_frag=1 # Number of current file.
51986 ac_beg=1 # First line for current file.
51987 ac_end=$ac_max_sed_lines # Line after last line for current file.
51990 while $ac_more_lines; do
51991 if test $ac_beg -gt 1; then
51992 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51994 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
51996 if test ! -s $tmp/subs.frag; then
51997 ac_more_lines=false
51999 # The purpose of the label and of the branching condition is to
52000 # speed up the sed processing (if there are no `@' at all, there
52001 # is no need to browse any of the substitutions).
52002 # These are the two extra sed commands mentioned above.
52004 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
52005 if test -z "$ac_sed_cmds"; then
52006 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
52008 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
52010 ac_sed_frag=`expr $ac_sed_frag + 1`
52012 ac_end=`expr $ac_end + $ac_max_sed_lines`
52015 if test -z "$ac_sed_cmds"; then
52018 fi # test -n "$CONFIG_FILES"
52021 cat >>$CONFIG_STATUS <<\_ACEOF
52022 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
52023 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52025 - | *:- | *:-:* ) # input from stdin
52027 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52028 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52029 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52030 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52031 * ) ac_file_in=$ac_file.in ;;
52034 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
52035 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52036 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52037 X"$ac_file" : 'X\(//\)[^/]' \| \
52038 X"$ac_file" : 'X\(//\)$' \| \
52039 X"$ac_file" : 'X\(/\)' \| \
52040 . : '\(.\)' 2>/dev/null ||
52042 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52043 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52044 /^X\(\/\/\)$/{ s//\1/; q; }
52045 /^X\(\/\).*/{ s//\1/; q; }
52047 { if $as_mkdir_p; then
52052 while test ! -d "$as_dir"; do
52053 as_dirs="$as_dir $as_dirs"
52054 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52055 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52056 X"$as_dir" : 'X\(//\)[^/]' \| \
52057 X"$as_dir" : 'X\(//\)$' \| \
52058 X"$as_dir" : 'X\(/\)' \| \
52059 . : '\(.\)' 2>/dev/null ||
52061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52062 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52063 /^X\(\/\/\)$/{ s//\1/; q; }
52064 /^X\(\/\).*/{ s//\1/; q; }
52067 test ! -n "$as_dirs" || mkdir $as_dirs
52068 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52069 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52070 { (exit 1); exit 1; }; }; }
52074 if test "$ac_dir" != .; then
52075 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52076 # A "../" for each directory in $ac_dir_suffix.
52077 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52079 ac_dir_suffix= ac_top_builddir=
52083 .) # No --srcdir option. We are building in place.
52085 if test -z "$ac_top_builddir"; then
52088 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52090 [\\/]* | ?:[\\/]* ) # Absolute path.
52091 ac_srcdir=$srcdir$ac_dir_suffix;
52092 ac_top_srcdir=$srcdir ;;
52093 *) # Relative path.
52094 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52095 ac_top_srcdir=$ac_top_builddir$srcdir ;;
52098 # Do not use `cd foo && pwd` to compute absolute paths, because
52099 # the directories may not exist.
52101 .) ac_abs_builddir="$ac_dir";;
52104 .) ac_abs_builddir=`pwd`;;
52105 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52106 *) ac_abs_builddir=`pwd`/"$ac_dir";;
52109 case $ac_abs_builddir in
52110 .) ac_abs_top_builddir=${ac_top_builddir}.;;
52112 case ${ac_top_builddir}. in
52113 .) ac_abs_top_builddir=$ac_abs_builddir;;
52114 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52115 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52118 case $ac_abs_builddir in
52119 .) ac_abs_srcdir=$ac_srcdir;;
52122 .) ac_abs_srcdir=$ac_abs_builddir;;
52123 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52124 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52127 case $ac_abs_builddir in
52128 .) ac_abs_top_srcdir=$ac_top_srcdir;;
52130 case $ac_top_srcdir in
52131 .) ac_abs_top_srcdir=$ac_abs_builddir;;
52132 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52133 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52139 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52140 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
52143 if test x"$ac_file" != x-; then
52144 { echo "$as_me:$LINENO: creating $ac_file" >&5
52145 echo "$as_me: creating $ac_file" >&6;}
52148 # Let's still pretend it is `configure' which instantiates (i.e., don't
52149 # use $as_me), people would be surprised to read:
52150 # /* config.h. Generated by config.status. */
52151 if test x"$ac_file" = x-; then
52154 configure_input="$ac_file. "
52156 configure_input=$configure_input"Generated from `echo $ac_file_in |
52157 sed 's,.*/,,'` by configure."
52159 # First look for the input files in the build tree, otherwise in the
52161 ac_file_inputs=`IFS=:
52162 for f in $ac_file_in; do
52164 -) echo $tmp/stdin ;;
52166 # Absolute (can't be DOS-style, as IFS=:)
52167 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52168 echo "$as_me: error: cannot find input file: $f" >&2;}
52169 { (exit 1); exit 1; }; }
52172 if test -f "$f"; then
52175 elif test -f "$srcdir/$f"; then
52180 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52181 echo "$as_me: error: cannot find input file: $f" >&2;}
52182 { (exit 1); exit 1; }; }
52185 done` || { (exit 1); exit 1; }
52187 cat >>$CONFIG_STATUS <<_ACEOF
52191 cat >>$CONFIG_STATUS <<\_ACEOF
52193 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52194 s,@configure_input@,$configure_input,;t t
52195 s,@srcdir@,$ac_srcdir,;t t
52196 s,@abs_srcdir@,$ac_abs_srcdir,;t t
52197 s,@top_srcdir@,$ac_top_srcdir,;t t
52198 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
52199 s,@builddir@,$ac_builddir,;t t
52200 s,@abs_builddir@,$ac_abs_builddir,;t t
52201 s,@top_builddir@,$ac_top_builddir,;t t
52202 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
52203 s,@INSTALL@,$ac_INSTALL,;t t
52204 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
52206 if test x"$ac_file" != x-; then
52207 mv $tmp/out $ac_file
52215 cat >>$CONFIG_STATUS <<\_ACEOF
52218 # CONFIG_HEADER section.
52221 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
52222 # NAME is the cpp macro being defined and VALUE is the value it is being given.
52224 # ac_d sets the value in "#define NAME VALUE" lines.
52225 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
52226 ac_dB='[ ].*$,\1#\2'
52229 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
52230 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
52231 ac_uB='$,\1#\2define\3'
52235 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
52236 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
52238 - | *:- | *:-:* ) # input from stdin
52240 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52241 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52242 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
52243 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
52244 * ) ac_file_in=$ac_file.in ;;
52247 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
52248 echo "$as_me: creating $ac_file" >&6;}
52250 # First look for the input files in the build tree, otherwise in the
52252 ac_file_inputs=`IFS=:
52253 for f in $ac_file_in; do
52255 -) echo $tmp/stdin ;;
52257 # Absolute (can't be DOS-style, as IFS=:)
52258 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52259 echo "$as_me: error: cannot find input file: $f" >&2;}
52260 { (exit 1); exit 1; }; }
52261 # Do quote $f, to prevent DOS paths from being IFS'd.
52264 if test -f "$f"; then
52267 elif test -f "$srcdir/$f"; then
52272 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
52273 echo "$as_me: error: cannot find input file: $f" >&2;}
52274 { (exit 1); exit 1; }; }
52277 done` || { (exit 1); exit 1; }
52278 # Remove the trailing spaces.
52279 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
52283 # Transform confdefs.h into two sed scripts, `conftest.defines' and
52284 # `conftest.undefs', that substitutes the proper values into
52285 # config.h.in to produce config.h. The first handles `#define'
52286 # templates, and the second `#undef' templates.
52287 # And first: Protect against being on the right side of a sed subst in
52288 # config.status. Protect against being in an unquoted here document
52289 # in config.status.
52290 rm -f conftest.defines conftest.undefs
52291 # Using a here document instead of a string reduces the quoting nightmare.
52292 # Putting comments in sed scripts is not portable.
52294 # `end' is used to avoid that the second main sed command (meant for
52295 # 0-ary CPP macros) applies to n-ary macro definitions.
52296 # See the Autoconf documentation for `clear'.
52297 cat >confdef2sed.sed <<\_ACEOF
52302 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
52304 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
52307 # If some macros were called several times there might be several times
52308 # the same #defines, which is useless. Nevertheless, we may not want to
52309 # sort them, since we want the *last* AC-DEFINE to be honored.
52310 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
52311 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
52312 rm -f confdef2sed.sed
52314 # This sed command replaces #undef with comments. This is necessary, for
52315 # example, in the case of _POSIX_SOURCE, which is predefined and required
52316 # on some systems where configure will not decide to define it.
52317 cat >>conftest.undefs <<\_ACEOF
52318 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
52321 # Break up conftest.defines because some shells have a limit on the size
52322 # of here documents, and old seds have small limits too (100 cmds).
52323 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
52324 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
52325 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
52326 echo ' :' >>$CONFIG_STATUS
52327 rm -f conftest.tail
52328 while grep . conftest.defines >/dev/null
52330 # Write a limited-size here document to $tmp/defines.sed.
52331 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
52332 # Speed up: don't consider the non `#define' lines.
52333 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
52334 # Work around the forget-to-reset-the-flag bug.
52335 echo 't clr' >>$CONFIG_STATUS
52336 echo ': clr' >>$CONFIG_STATUS
52337 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
52339 sed -f $tmp/defines.sed $tmp/in >$tmp/out
52341 mv $tmp/out $tmp/in
52343 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
52344 rm -f conftest.defines
52345 mv conftest.tail conftest.defines
52347 rm -f conftest.defines
52348 echo ' fi # grep' >>$CONFIG_STATUS
52349 echo >>$CONFIG_STATUS
52351 # Break up conftest.undefs because some shells have a limit on the size
52352 # of here documents, and old seds have small limits too (100 cmds).
52353 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
52354 rm -f conftest.tail
52355 while grep . conftest.undefs >/dev/null
52357 # Write a limited-size here document to $tmp/undefs.sed.
52358 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
52359 # Speed up: don't consider the non `#undef'
52360 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
52361 # Work around the forget-to-reset-the-flag bug.
52362 echo 't clr' >>$CONFIG_STATUS
52363 echo ': clr' >>$CONFIG_STATUS
52364 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
52366 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
52368 mv $tmp/out $tmp/in
52370 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
52371 rm -f conftest.undefs
52372 mv conftest.tail conftest.undefs
52374 rm -f conftest.undefs
52376 cat >>$CONFIG_STATUS <<\_ACEOF
52377 # Let's still pretend it is `configure' which instantiates (i.e., don't
52378 # use $as_me), people would be surprised to read:
52379 # /* config.h. Generated by config.status. */
52380 if test x"$ac_file" = x-; then
52381 echo "/* Generated by configure. */" >$tmp/config.h
52383 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
52385 cat $tmp/in >>$tmp/config.h
52387 if test x"$ac_file" != x-; then
52388 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
52389 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52390 echo "$as_me: $ac_file is unchanged" >&6;}
52392 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
52393 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52394 X"$ac_file" : 'X\(//\)[^/]' \| \
52395 X"$ac_file" : 'X\(//\)$' \| \
52396 X"$ac_file" : 'X\(/\)' \| \
52397 . : '\(.\)' 2>/dev/null ||
52399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52400 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52401 /^X\(\/\/\)$/{ s//\1/; q; }
52402 /^X\(\/\).*/{ s//\1/; q; }
52404 { if $as_mkdir_p; then
52409 while test ! -d "$as_dir"; do
52410 as_dirs="$as_dir $as_dirs"
52411 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52412 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52413 X"$as_dir" : 'X\(//\)[^/]' \| \
52414 X"$as_dir" : 'X\(//\)$' \| \
52415 X"$as_dir" : 'X\(/\)' \| \
52416 . : '\(.\)' 2>/dev/null ||
52418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52419 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52420 /^X\(\/\/\)$/{ s//\1/; q; }
52421 /^X\(\/\).*/{ s//\1/; q; }
52424 test ! -n "$as_dirs" || mkdir $as_dirs
52425 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52426 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52427 { (exit 1); exit 1; }; }; }
52430 mv $tmp/config.h $ac_file
52434 rm -f $tmp/config.h
52436 # Compute $ac_file's index in $config_headers.
52438 for _am_header in $config_headers :; do
52439 case $_am_header in
52440 $ac_file | $ac_file:* )
52443 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
52446 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
52447 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52448 X$ac_file : 'X\(//\)[^/]' \| \
52449 X$ac_file : 'X\(//\)$' \| \
52450 X$ac_file : 'X\(/\)' \| \
52451 . : '\(.\)' 2>/dev/null ||
52453 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52454 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52455 /^X\(\/\/\)$/{ s//\1/; q; }
52456 /^X\(\/\).*/{ s//\1/; q; }
52457 s/.*/./; q'`/stamp-h$_am_stamp_count
52460 cat >>$CONFIG_STATUS <<\_ACEOF
52463 # CONFIG_COMMANDS section.
52465 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
52466 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
52467 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
52468 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
52469 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52470 X"$ac_dest" : 'X\(//\)[^/]' \| \
52471 X"$ac_dest" : 'X\(//\)$' \| \
52472 X"$ac_dest" : 'X\(/\)' \| \
52473 . : '\(.\)' 2>/dev/null ||
52475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52476 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52477 /^X\(\/\/\)$/{ s//\1/; q; }
52478 /^X\(\/\).*/{ s//\1/; q; }
52480 { if $as_mkdir_p; then
52485 while test ! -d "$as_dir"; do
52486 as_dirs="$as_dir $as_dirs"
52487 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52488 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52489 X"$as_dir" : 'X\(//\)[^/]' \| \
52490 X"$as_dir" : 'X\(//\)$' \| \
52491 X"$as_dir" : 'X\(/\)' \| \
52492 . : '\(.\)' 2>/dev/null ||
52494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52495 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52496 /^X\(\/\/\)$/{ s//\1/; q; }
52497 /^X\(\/\).*/{ s//\1/; q; }
52500 test ! -n "$as_dirs" || mkdir $as_dirs
52501 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
52502 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
52503 { (exit 1); exit 1; }; }; }
52507 if test "$ac_dir" != .; then
52508 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
52509 # A "../" for each directory in $ac_dir_suffix.
52510 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
52512 ac_dir_suffix= ac_top_builddir=
52516 .) # No --srcdir option. We are building in place.
52518 if test -z "$ac_top_builddir"; then
52521 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
52523 [\\/]* | ?:[\\/]* ) # Absolute path.
52524 ac_srcdir=$srcdir$ac_dir_suffix;
52525 ac_top_srcdir=$srcdir ;;
52526 *) # Relative path.
52527 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
52528 ac_top_srcdir=$ac_top_builddir$srcdir ;;
52531 # Do not use `cd foo && pwd` to compute absolute paths, because
52532 # the directories may not exist.
52534 .) ac_abs_builddir="$ac_dir";;
52537 .) ac_abs_builddir=`pwd`;;
52538 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
52539 *) ac_abs_builddir=`pwd`/"$ac_dir";;
52542 case $ac_abs_builddir in
52543 .) ac_abs_top_builddir=${ac_top_builddir}.;;
52545 case ${ac_top_builddir}. in
52546 .) ac_abs_top_builddir=$ac_abs_builddir;;
52547 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
52548 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
52551 case $ac_abs_builddir in
52552 .) ac_abs_srcdir=$ac_srcdir;;
52555 .) ac_abs_srcdir=$ac_abs_builddir;;
52556 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
52557 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
52560 case $ac_abs_builddir in
52561 .) ac_abs_top_srcdir=$ac_top_srcdir;;
52563 case $ac_top_srcdir in
52564 .) ac_abs_top_srcdir=$ac_abs_builddir;;
52565 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
52566 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
52571 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
52572 echo "$as_me: executing $ac_dest commands" >&6;}
52574 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
52575 # Strip MF so we end up with the name of the file.
52576 mf=`echo "$mf" | sed -e 's/:.*$//'`
52577 # Check whether this is an Automake generated Makefile or not.
52578 # We used to match only the files named `Makefile.in', but
52579 # some people rename them; so instead we look at the file content.
52580 # Grep'ing the first line is not enough: some people post-process
52581 # each Makefile.in and add a new line on top of each file to say so.
52582 # So let's grep whole file.
52583 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
52584 dirpart=`(dirname "$mf") 2>/dev/null ||
52585 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52586 X"$mf" : 'X\(//\)[^/]' \| \
52587 X"$mf" : 'X\(//\)$' \| \
52588 X"$mf" : 'X\(/\)' \| \
52589 . : '\(.\)' 2>/dev/null ||
52591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52592 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52593 /^X\(\/\/\)$/{ s//\1/; q; }
52594 /^X\(\/\).*/{ s//\1/; q; }
52599 # Extract the definition of DEPDIR, am__include, and am__quote
52600 # from the Makefile without running `make'.
52601 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
52602 test -z "$DEPDIR" && continue
52603 am__include=`sed -n 's/^am__include = //p' < "$mf"`
52604 test -z "am__include" && continue
52605 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
52606 # When using ansi2knr, U may be empty or an underscore; expand it
52607 U=`sed -n 's/^U = //p' < "$mf"`
52608 # Find all dependency output files, they are included files with
52609 # $(DEPDIR) in their names. We invoke sed twice because it is the
52610 # simplest approach to changing $(DEPDIR) to its actual value in the
52612 for file in `sed -n "
52613 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
52614 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
52615 # Make sure the directory exists.
52616 test -f "$dirpart/$file" && continue
52617 fdir=`(dirname "$file") 2>/dev/null ||
52618 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52619 X"$file" : 'X\(//\)[^/]' \| \
52620 X"$file" : 'X\(//\)$' \| \
52621 X"$file" : 'X\(/\)' \| \
52622 . : '\(.\)' 2>/dev/null ||
52624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52625 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52626 /^X\(\/\/\)$/{ s//\1/; q; }
52627 /^X\(\/\).*/{ s//\1/; q; }
52629 { if $as_mkdir_p; then
52630 mkdir -p $dirpart/$fdir
52632 as_dir=$dirpart/$fdir
52634 while test ! -d "$as_dir"; do
52635 as_dirs="$as_dir $as_dirs"
52636 as_dir=`(dirname "$as_dir") 2>/dev/null ||
52637 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52638 X"$as_dir" : 'X\(//\)[^/]' \| \
52639 X"$as_dir" : 'X\(//\)$' \| \
52640 X"$as_dir" : 'X\(/\)' \| \
52641 . : '\(.\)' 2>/dev/null ||
52643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
52644 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
52645 /^X\(\/\/\)$/{ s//\1/; q; }
52646 /^X\(\/\).*/{ s//\1/; q; }
52649 test ! -n "$as_dirs" || mkdir $as_dirs
52650 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
52651 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
52652 { (exit 1); exit 1; }; }; }
52654 # echo "creating $dirpart/$file"
52655 echo '# dummy' > "$dirpart/$file"
52662 BACKENDSC="servers/slapd/backends.c"
52663 echo "Making $BACKENDSC"
52665 cat > $BACKENDSC << ENDX
52666 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
52668 * Copyright 1998-2005 The OpenLDAP Foundation.
52669 * All rights reserved.
52671 * Redistribution and use in source and binary forms, with or without
52672 * modification, are permitted only as authorized by the OpenLDAP
52675 * A copy of this license is available in the file LICENSE in the
52676 * top-level directory of the distribution or, alternatively, at
52677 * <http://www.OpenLDAP.org/license.html>.
52679 /* This file is automatically generated by configure; please do not edit. */
52681 #include "portable.h"
52685 if test "${STATIC_BACKENDS}"; then
52686 for b in config ${STATIC_BACKENDS}; do
52687 bb=`echo "${b}" | sed -e 's/back-//'`
52688 cat >> $BACKENDSC << ENDX
52689 extern BI_init ${bb}_back_initialize;
52693 cat >> $BACKENDSC << ENDX
52695 BackendInfo slap_binfo[] = {
52698 for b in config ${STATIC_BACKENDS}; do
52699 bb=`echo "${b}" | sed -e 's/back-//'`
52700 echo " Add ${bb} ..."
52701 cat >> $BACKENDSC << ENDX
52702 { "${bb}", ${bb}_back_initialize },
52706 cat >> $BACKENDSC << ENDX
52710 /* end of generated file */
52714 echo Please run \"make depend\" to build dependencies
52720 cat >>$CONFIG_STATUS <<\_ACEOF
52722 { (exit 0); exit 0; }
52724 chmod +x $CONFIG_STATUS
52725 ac_clean_files=$ac_clean_files_save
52728 # configure is writing to config.log, and then calls config.status.
52729 # config.status does its own redirection, appending to config.log.
52730 # Unfortunately, on DOS this fails, as config.log is still kept open
52731 # by configure, so config.status won't be able to write to it; its
52732 # output is simply discarded. So we exec the FD to /dev/null,
52733 # effectively closing config.log, so it can be properly (re)opened and
52734 # appended to by config.status. When coming back to configure, we
52735 # need to make the FD available again.
52736 if test "$no_create" != yes; then
52738 ac_config_status_args=
52739 test "$silent" = yes &&
52740 ac_config_status_args="$ac_config_status_args --quiet"
52742 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52744 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52745 # would make configure fail if this is the last instruction.
52746 $ac_cs_success || { (exit 1); exit 1; }