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. */
30344 /* pthread test headers */
30345 #include <pthread.h>
30346 #if HAVE_PTHREADS < 7
30350 #define NULL (void*)0
30353 static void *task(p)
30356 return (void *) (p == NULL);
30363 /* pthread test function */
30364 #ifndef PTHREAD_CREATE_DETACHED
30365 #define PTHREAD_CREATE_DETACHED 1
30369 int detach = PTHREAD_CREATE_DETACHED;
30371 #if HAVE_PTHREADS > 4
30372 /* Final pthreads */
30373 pthread_attr_t attr;
30375 status = pthread_attr_init(&attr);
30376 if( status ) return status;
30378 #if HAVE_PTHREADS < 7
30379 status = pthread_attr_setdetachstate(&attr, &detach);
30380 if( status < 0 ) status = errno;
30382 status = pthread_attr_setdetachstate(&attr, detach);
30384 if( status ) return status;
30385 status = pthread_create( &t, &attr, task, NULL );
30386 #if HAVE_PTHREADS < 7
30387 if( status < 0 ) status = errno;
30389 if( status ) return status;
30391 /* Draft 4 pthreads */
30392 status = pthread_create( &t, pthread_attr_default, task, NULL );
30393 if( status ) return errno;
30395 /* give thread a chance to complete */
30396 /* it should remain joinable and hence detachable */
30399 status = pthread_detach( &t );
30400 if( status ) return errno;
30403 #ifdef HAVE_LINUX_THREADS
30404 pthread_kill_other_threads_np();
30413 rm -f conftest.$ac_objext conftest$ac_exeext
30414 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30415 (eval $ac_link) 2>conftest.er1
30417 grep -v '^ *+' conftest.er1 >conftest.err
30419 cat conftest.err >&5
30420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30421 (exit $ac_status); } &&
30422 { ac_try='test -z "$ac_c_werror_flag"
30423 || test ! -s conftest.err'
30424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30425 (eval $ac_try) 2>&5
30427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428 (exit $ac_status); }; } &&
30429 { ac_try='test -s conftest$ac_exeext'
30430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30431 (eval $ac_try) 2>&5
30433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30434 (exit $ac_status); }; }; then
30435 ol_cv_pthread_create=yes
30437 echo "$as_me: failed program was:" >&5
30438 sed 's/^/| /' conftest.$ac_ext >&5
30440 ol_cv_pthread_create=no
30442 rm -f conftest.err conftest.$ac_objext \
30443 conftest$ac_exeext conftest.$ac_ext
30445 cat >conftest.$ac_ext <<_ACEOF
30447 /* pthread test headers */
30448 #include <pthread.h>
30449 #if HAVE_PTHREADS < 7
30453 #define NULL (void*)0
30456 static void *task(p)
30459 return (void *) (p == NULL);
30463 int main(argc, argv)
30468 /* pthread test function */
30469 #ifndef PTHREAD_CREATE_DETACHED
30470 #define PTHREAD_CREATE_DETACHED 1
30474 int detach = PTHREAD_CREATE_DETACHED;
30476 #if HAVE_PTHREADS > 4
30477 /* Final pthreads */
30478 pthread_attr_t attr;
30480 status = pthread_attr_init(&attr);
30481 if( status ) return status;
30483 #if HAVE_PTHREADS < 7
30484 status = pthread_attr_setdetachstate(&attr, &detach);
30485 if( status < 0 ) status = errno;
30487 status = pthread_attr_setdetachstate(&attr, detach);
30489 if( status ) return status;
30490 status = pthread_create( &t, &attr, task, NULL );
30491 #if HAVE_PTHREADS < 7
30492 if( status < 0 ) status = errno;
30494 if( status ) return status;
30496 /* Draft 4 pthreads */
30497 status = pthread_create( &t, pthread_attr_default, task, NULL );
30498 if( status ) return errno;
30500 /* give thread a chance to complete */
30501 /* it should remain joinable and hence detachable */
30504 status = pthread_detach( &t );
30505 if( status ) return errno;
30508 #ifdef HAVE_LINUX_THREADS
30509 pthread_kill_other_threads_np();
30517 rm -f conftest$ac_exeext
30518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30519 (eval $ac_link) 2>&5
30521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30524 (eval $ac_try) 2>&5
30526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30527 (exit $ac_status); }; }; then
30528 ol_cv_pthread_create=yes
30530 echo "$as_me: program exited with status $ac_status" >&5
30531 echo "$as_me: failed program was:" >&5
30532 sed 's/^/| /' conftest.$ac_ext >&5
30534 ( exit $ac_status )
30535 ol_cv_pthread_create=no
30537 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30540 echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
30541 echo "${ECHO_T}$ol_cv_pthread_create" >&6
30543 if test $ol_cv_pthread_create != no ; then
30544 ol_link_threads=posix
30545 ol_link_pthreads=""
30548 # Pthread try link: -kthread (ol_cv_pthread_kthread)
30549 if test "$ol_link_threads" = no ; then
30551 echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
30552 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6
30553 if test "${ol_cv_pthread_kthread+set}" = set; then
30554 echo $ECHO_N "(cached) $ECHO_C" >&6
30559 LIBS="-kthread $LIBS"
30561 if test "$cross_compiling" = yes; then
30562 cat >conftest.$ac_ext <<_ACEOF
30565 cat confdefs.h >>conftest.$ac_ext
30566 cat >>conftest.$ac_ext <<_ACEOF
30567 /* end confdefs.h. */
30569 /* pthread test headers */
30570 #include <pthread.h>
30571 #if HAVE_PTHREADS < 7
30575 #define NULL (void*)0
30578 static void *task(p)
30581 return (void *) (p == NULL);
30588 /* pthread test function */
30589 #ifndef PTHREAD_CREATE_DETACHED
30590 #define PTHREAD_CREATE_DETACHED 1
30594 int detach = PTHREAD_CREATE_DETACHED;
30596 #if HAVE_PTHREADS > 4
30597 /* Final pthreads */
30598 pthread_attr_t attr;
30600 status = pthread_attr_init(&attr);
30601 if( status ) return status;
30603 #if HAVE_PTHREADS < 7
30604 status = pthread_attr_setdetachstate(&attr, &detach);
30605 if( status < 0 ) status = errno;
30607 status = pthread_attr_setdetachstate(&attr, detach);
30609 if( status ) return status;
30610 status = pthread_create( &t, &attr, task, NULL );
30611 #if HAVE_PTHREADS < 7
30612 if( status < 0 ) status = errno;
30614 if( status ) return status;
30616 /* Draft 4 pthreads */
30617 status = pthread_create( &t, pthread_attr_default, task, NULL );
30618 if( status ) return errno;
30620 /* give thread a chance to complete */
30621 /* it should remain joinable and hence detachable */
30624 status = pthread_detach( &t );
30625 if( status ) return errno;
30628 #ifdef HAVE_LINUX_THREADS
30629 pthread_kill_other_threads_np();
30638 rm -f conftest.$ac_objext conftest$ac_exeext
30639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30640 (eval $ac_link) 2>conftest.er1
30642 grep -v '^ *+' conftest.er1 >conftest.err
30644 cat conftest.err >&5
30645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30646 (exit $ac_status); } &&
30647 { ac_try='test -z "$ac_c_werror_flag"
30648 || test ! -s conftest.err'
30649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30650 (eval $ac_try) 2>&5
30652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30653 (exit $ac_status); }; } &&
30654 { ac_try='test -s conftest$ac_exeext'
30655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30656 (eval $ac_try) 2>&5
30658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30659 (exit $ac_status); }; }; then
30660 ol_cv_pthread_kthread=yes
30662 echo "$as_me: failed program was:" >&5
30663 sed 's/^/| /' conftest.$ac_ext >&5
30665 ol_cv_pthread_kthread=no
30667 rm -f conftest.err conftest.$ac_objext \
30668 conftest$ac_exeext conftest.$ac_ext
30670 cat >conftest.$ac_ext <<_ACEOF
30672 /* pthread test headers */
30673 #include <pthread.h>
30674 #if HAVE_PTHREADS < 7
30678 #define NULL (void*)0
30681 static void *task(p)
30684 return (void *) (p == NULL);
30688 int main(argc, argv)
30693 /* pthread test function */
30694 #ifndef PTHREAD_CREATE_DETACHED
30695 #define PTHREAD_CREATE_DETACHED 1
30699 int detach = PTHREAD_CREATE_DETACHED;
30701 #if HAVE_PTHREADS > 4
30702 /* Final pthreads */
30703 pthread_attr_t attr;
30705 status = pthread_attr_init(&attr);
30706 if( status ) return status;
30708 #if HAVE_PTHREADS < 7
30709 status = pthread_attr_setdetachstate(&attr, &detach);
30710 if( status < 0 ) status = errno;
30712 status = pthread_attr_setdetachstate(&attr, detach);
30714 if( status ) return status;
30715 status = pthread_create( &t, &attr, task, NULL );
30716 #if HAVE_PTHREADS < 7
30717 if( status < 0 ) status = errno;
30719 if( status ) return status;
30721 /* Draft 4 pthreads */
30722 status = pthread_create( &t, pthread_attr_default, task, NULL );
30723 if( status ) return errno;
30725 /* give thread a chance to complete */
30726 /* it should remain joinable and hence detachable */
30729 status = pthread_detach( &t );
30730 if( status ) return errno;
30733 #ifdef HAVE_LINUX_THREADS
30734 pthread_kill_other_threads_np();
30742 rm -f conftest$ac_exeext
30743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30744 (eval $ac_link) 2>&5
30746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30749 (eval $ac_try) 2>&5
30751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30752 (exit $ac_status); }; }; then
30753 ol_cv_pthread_kthread=yes
30755 echo "$as_me: program exited with status $ac_status" >&5
30756 echo "$as_me: failed program was:" >&5
30757 sed 's/^/| /' conftest.$ac_ext >&5
30759 ( exit $ac_status )
30760 ol_cv_pthread_kthread=no
30762 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30769 echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
30770 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6
30772 if test $ol_cv_pthread_kthread = yes ; then
30773 ol_link_pthreads="-kthread"
30774 ol_link_threads=posix
30778 # Pthread try link: -pthread (ol_cv_pthread_pthread)
30779 if test "$ol_link_threads" = no ; then
30781 echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
30782 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6
30783 if test "${ol_cv_pthread_pthread+set}" = set; then
30784 echo $ECHO_N "(cached) $ECHO_C" >&6
30789 LIBS="-pthread $LIBS"
30791 if test "$cross_compiling" = yes; then
30792 cat >conftest.$ac_ext <<_ACEOF
30795 cat confdefs.h >>conftest.$ac_ext
30796 cat >>conftest.$ac_ext <<_ACEOF
30797 /* end confdefs.h. */
30799 /* pthread test headers */
30800 #include <pthread.h>
30801 #if HAVE_PTHREADS < 7
30805 #define NULL (void*)0
30808 static void *task(p)
30811 return (void *) (p == NULL);
30818 /* pthread test function */
30819 #ifndef PTHREAD_CREATE_DETACHED
30820 #define PTHREAD_CREATE_DETACHED 1
30824 int detach = PTHREAD_CREATE_DETACHED;
30826 #if HAVE_PTHREADS > 4
30827 /* Final pthreads */
30828 pthread_attr_t attr;
30830 status = pthread_attr_init(&attr);
30831 if( status ) return status;
30833 #if HAVE_PTHREADS < 7
30834 status = pthread_attr_setdetachstate(&attr, &detach);
30835 if( status < 0 ) status = errno;
30837 status = pthread_attr_setdetachstate(&attr, detach);
30839 if( status ) return status;
30840 status = pthread_create( &t, &attr, task, NULL );
30841 #if HAVE_PTHREADS < 7
30842 if( status < 0 ) status = errno;
30844 if( status ) return status;
30846 /* Draft 4 pthreads */
30847 status = pthread_create( &t, pthread_attr_default, task, NULL );
30848 if( status ) return errno;
30850 /* give thread a chance to complete */
30851 /* it should remain joinable and hence detachable */
30854 status = pthread_detach( &t );
30855 if( status ) return errno;
30858 #ifdef HAVE_LINUX_THREADS
30859 pthread_kill_other_threads_np();
30868 rm -f conftest.$ac_objext conftest$ac_exeext
30869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30870 (eval $ac_link) 2>conftest.er1
30872 grep -v '^ *+' conftest.er1 >conftest.err
30874 cat conftest.err >&5
30875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30876 (exit $ac_status); } &&
30877 { ac_try='test -z "$ac_c_werror_flag"
30878 || test ! -s conftest.err'
30879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30880 (eval $ac_try) 2>&5
30882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30883 (exit $ac_status); }; } &&
30884 { ac_try='test -s conftest$ac_exeext'
30885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30886 (eval $ac_try) 2>&5
30888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30889 (exit $ac_status); }; }; then
30890 ol_cv_pthread_pthread=yes
30892 echo "$as_me: failed program was:" >&5
30893 sed 's/^/| /' conftest.$ac_ext >&5
30895 ol_cv_pthread_pthread=no
30897 rm -f conftest.err conftest.$ac_objext \
30898 conftest$ac_exeext conftest.$ac_ext
30900 cat >conftest.$ac_ext <<_ACEOF
30902 /* pthread test headers */
30903 #include <pthread.h>
30904 #if HAVE_PTHREADS < 7
30908 #define NULL (void*)0
30911 static void *task(p)
30914 return (void *) (p == NULL);
30918 int main(argc, argv)
30923 /* pthread test function */
30924 #ifndef PTHREAD_CREATE_DETACHED
30925 #define PTHREAD_CREATE_DETACHED 1
30929 int detach = PTHREAD_CREATE_DETACHED;
30931 #if HAVE_PTHREADS > 4
30932 /* Final pthreads */
30933 pthread_attr_t attr;
30935 status = pthread_attr_init(&attr);
30936 if( status ) return status;
30938 #if HAVE_PTHREADS < 7
30939 status = pthread_attr_setdetachstate(&attr, &detach);
30940 if( status < 0 ) status = errno;
30942 status = pthread_attr_setdetachstate(&attr, detach);
30944 if( status ) return status;
30945 status = pthread_create( &t, &attr, task, NULL );
30946 #if HAVE_PTHREADS < 7
30947 if( status < 0 ) status = errno;
30949 if( status ) return status;
30951 /* Draft 4 pthreads */
30952 status = pthread_create( &t, pthread_attr_default, task, NULL );
30953 if( status ) return errno;
30955 /* give thread a chance to complete */
30956 /* it should remain joinable and hence detachable */
30959 status = pthread_detach( &t );
30960 if( status ) return errno;
30963 #ifdef HAVE_LINUX_THREADS
30964 pthread_kill_other_threads_np();
30972 rm -f conftest$ac_exeext
30973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30974 (eval $ac_link) 2>&5
30976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30977 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30979 (eval $ac_try) 2>&5
30981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30982 (exit $ac_status); }; }; then
30983 ol_cv_pthread_pthread=yes
30985 echo "$as_me: program exited with status $ac_status" >&5
30986 echo "$as_me: failed program was:" >&5
30987 sed 's/^/| /' conftest.$ac_ext >&5
30989 ( exit $ac_status )
30990 ol_cv_pthread_pthread=no
30992 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30999 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
31000 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6
31002 if test $ol_cv_pthread_pthread = yes ; then
31003 ol_link_pthreads="-pthread"
31004 ol_link_threads=posix
31008 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
31009 if test "$ol_link_threads" = no ; then
31011 echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
31012 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6
31013 if test "${ol_cv_pthread_pthreads+set}" = set; then
31014 echo $ECHO_N "(cached) $ECHO_C" >&6
31019 LIBS="-pthreads $LIBS"
31021 if test "$cross_compiling" = yes; then
31022 cat >conftest.$ac_ext <<_ACEOF
31025 cat confdefs.h >>conftest.$ac_ext
31026 cat >>conftest.$ac_ext <<_ACEOF
31027 /* end confdefs.h. */
31029 /* pthread test headers */
31030 #include <pthread.h>
31031 #if HAVE_PTHREADS < 7
31035 #define NULL (void*)0
31038 static void *task(p)
31041 return (void *) (p == NULL);
31048 /* pthread test function */
31049 #ifndef PTHREAD_CREATE_DETACHED
31050 #define PTHREAD_CREATE_DETACHED 1
31054 int detach = PTHREAD_CREATE_DETACHED;
31056 #if HAVE_PTHREADS > 4
31057 /* Final pthreads */
31058 pthread_attr_t attr;
31060 status = pthread_attr_init(&attr);
31061 if( status ) return status;
31063 #if HAVE_PTHREADS < 7
31064 status = pthread_attr_setdetachstate(&attr, &detach);
31065 if( status < 0 ) status = errno;
31067 status = pthread_attr_setdetachstate(&attr, detach);
31069 if( status ) return status;
31070 status = pthread_create( &t, &attr, task, NULL );
31071 #if HAVE_PTHREADS < 7
31072 if( status < 0 ) status = errno;
31074 if( status ) return status;
31076 /* Draft 4 pthreads */
31077 status = pthread_create( &t, pthread_attr_default, task, NULL );
31078 if( status ) return errno;
31080 /* give thread a chance to complete */
31081 /* it should remain joinable and hence detachable */
31084 status = pthread_detach( &t );
31085 if( status ) return errno;
31088 #ifdef HAVE_LINUX_THREADS
31089 pthread_kill_other_threads_np();
31098 rm -f conftest.$ac_objext conftest$ac_exeext
31099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31100 (eval $ac_link) 2>conftest.er1
31102 grep -v '^ *+' conftest.er1 >conftest.err
31104 cat conftest.err >&5
31105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31106 (exit $ac_status); } &&
31107 { ac_try='test -z "$ac_c_werror_flag"
31108 || test ! -s conftest.err'
31109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31110 (eval $ac_try) 2>&5
31112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31113 (exit $ac_status); }; } &&
31114 { ac_try='test -s conftest$ac_exeext'
31115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31116 (eval $ac_try) 2>&5
31118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31119 (exit $ac_status); }; }; then
31120 ol_cv_pthread_pthreads=yes
31122 echo "$as_me: failed program was:" >&5
31123 sed 's/^/| /' conftest.$ac_ext >&5
31125 ol_cv_pthread_pthreads=no
31127 rm -f conftest.err conftest.$ac_objext \
31128 conftest$ac_exeext conftest.$ac_ext
31130 cat >conftest.$ac_ext <<_ACEOF
31132 /* pthread test headers */
31133 #include <pthread.h>
31134 #if HAVE_PTHREADS < 7
31138 #define NULL (void*)0
31141 static void *task(p)
31144 return (void *) (p == NULL);
31148 int main(argc, argv)
31153 /* pthread test function */
31154 #ifndef PTHREAD_CREATE_DETACHED
31155 #define PTHREAD_CREATE_DETACHED 1
31159 int detach = PTHREAD_CREATE_DETACHED;
31161 #if HAVE_PTHREADS > 4
31162 /* Final pthreads */
31163 pthread_attr_t attr;
31165 status = pthread_attr_init(&attr);
31166 if( status ) return status;
31168 #if HAVE_PTHREADS < 7
31169 status = pthread_attr_setdetachstate(&attr, &detach);
31170 if( status < 0 ) status = errno;
31172 status = pthread_attr_setdetachstate(&attr, detach);
31174 if( status ) return status;
31175 status = pthread_create( &t, &attr, task, NULL );
31176 #if HAVE_PTHREADS < 7
31177 if( status < 0 ) status = errno;
31179 if( status ) return status;
31181 /* Draft 4 pthreads */
31182 status = pthread_create( &t, pthread_attr_default, task, NULL );
31183 if( status ) return errno;
31185 /* give thread a chance to complete */
31186 /* it should remain joinable and hence detachable */
31189 status = pthread_detach( &t );
31190 if( status ) return errno;
31193 #ifdef HAVE_LINUX_THREADS
31194 pthread_kill_other_threads_np();
31202 rm -f conftest$ac_exeext
31203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31204 (eval $ac_link) 2>&5
31206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31209 (eval $ac_try) 2>&5
31211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31212 (exit $ac_status); }; }; then
31213 ol_cv_pthread_pthreads=yes
31215 echo "$as_me: program exited with status $ac_status" >&5
31216 echo "$as_me: failed program was:" >&5
31217 sed 's/^/| /' conftest.$ac_ext >&5
31219 ( exit $ac_status )
31220 ol_cv_pthread_pthreads=no
31222 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31229 echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
31230 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6
31232 if test $ol_cv_pthread_pthreads = yes ; then
31233 ol_link_pthreads="-pthreads"
31234 ol_link_threads=posix
31238 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
31239 if test "$ol_link_threads" = no ; then
31241 echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
31242 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6
31243 if test "${ol_cv_pthread_mthreads+set}" = set; then
31244 echo $ECHO_N "(cached) $ECHO_C" >&6
31249 LIBS="-mthreads $LIBS"
31251 if test "$cross_compiling" = yes; then
31252 cat >conftest.$ac_ext <<_ACEOF
31255 cat confdefs.h >>conftest.$ac_ext
31256 cat >>conftest.$ac_ext <<_ACEOF
31257 /* end confdefs.h. */
31259 /* pthread test headers */
31260 #include <pthread.h>
31261 #if HAVE_PTHREADS < 7
31265 #define NULL (void*)0
31268 static void *task(p)
31271 return (void *) (p == NULL);
31278 /* pthread test function */
31279 #ifndef PTHREAD_CREATE_DETACHED
31280 #define PTHREAD_CREATE_DETACHED 1
31284 int detach = PTHREAD_CREATE_DETACHED;
31286 #if HAVE_PTHREADS > 4
31287 /* Final pthreads */
31288 pthread_attr_t attr;
31290 status = pthread_attr_init(&attr);
31291 if( status ) return status;
31293 #if HAVE_PTHREADS < 7
31294 status = pthread_attr_setdetachstate(&attr, &detach);
31295 if( status < 0 ) status = errno;
31297 status = pthread_attr_setdetachstate(&attr, detach);
31299 if( status ) return status;
31300 status = pthread_create( &t, &attr, task, NULL );
31301 #if HAVE_PTHREADS < 7
31302 if( status < 0 ) status = errno;
31304 if( status ) return status;
31306 /* Draft 4 pthreads */
31307 status = pthread_create( &t, pthread_attr_default, task, NULL );
31308 if( status ) return errno;
31310 /* give thread a chance to complete */
31311 /* it should remain joinable and hence detachable */
31314 status = pthread_detach( &t );
31315 if( status ) return errno;
31318 #ifdef HAVE_LINUX_THREADS
31319 pthread_kill_other_threads_np();
31328 rm -f conftest.$ac_objext conftest$ac_exeext
31329 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31330 (eval $ac_link) 2>conftest.er1
31332 grep -v '^ *+' conftest.er1 >conftest.err
31334 cat conftest.err >&5
31335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31336 (exit $ac_status); } &&
31337 { ac_try='test -z "$ac_c_werror_flag"
31338 || test ! -s conftest.err'
31339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31340 (eval $ac_try) 2>&5
31342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31343 (exit $ac_status); }; } &&
31344 { ac_try='test -s conftest$ac_exeext'
31345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31346 (eval $ac_try) 2>&5
31348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31349 (exit $ac_status); }; }; then
31350 ol_cv_pthread_mthreads=yes
31352 echo "$as_me: failed program was:" >&5
31353 sed 's/^/| /' conftest.$ac_ext >&5
31355 ol_cv_pthread_mthreads=no
31357 rm -f conftest.err conftest.$ac_objext \
31358 conftest$ac_exeext conftest.$ac_ext
31360 cat >conftest.$ac_ext <<_ACEOF
31362 /* pthread test headers */
31363 #include <pthread.h>
31364 #if HAVE_PTHREADS < 7
31368 #define NULL (void*)0
31371 static void *task(p)
31374 return (void *) (p == NULL);
31378 int main(argc, argv)
31383 /* pthread test function */
31384 #ifndef PTHREAD_CREATE_DETACHED
31385 #define PTHREAD_CREATE_DETACHED 1
31389 int detach = PTHREAD_CREATE_DETACHED;
31391 #if HAVE_PTHREADS > 4
31392 /* Final pthreads */
31393 pthread_attr_t attr;
31395 status = pthread_attr_init(&attr);
31396 if( status ) return status;
31398 #if HAVE_PTHREADS < 7
31399 status = pthread_attr_setdetachstate(&attr, &detach);
31400 if( status < 0 ) status = errno;
31402 status = pthread_attr_setdetachstate(&attr, detach);
31404 if( status ) return status;
31405 status = pthread_create( &t, &attr, task, NULL );
31406 #if HAVE_PTHREADS < 7
31407 if( status < 0 ) status = errno;
31409 if( status ) return status;
31411 /* Draft 4 pthreads */
31412 status = pthread_create( &t, pthread_attr_default, task, NULL );
31413 if( status ) return errno;
31415 /* give thread a chance to complete */
31416 /* it should remain joinable and hence detachable */
31419 status = pthread_detach( &t );
31420 if( status ) return errno;
31423 #ifdef HAVE_LINUX_THREADS
31424 pthread_kill_other_threads_np();
31432 rm -f conftest$ac_exeext
31433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31434 (eval $ac_link) 2>&5
31436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31439 (eval $ac_try) 2>&5
31441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31442 (exit $ac_status); }; }; then
31443 ol_cv_pthread_mthreads=yes
31445 echo "$as_me: program exited with status $ac_status" >&5
31446 echo "$as_me: failed program was:" >&5
31447 sed 's/^/| /' conftest.$ac_ext >&5
31449 ( exit $ac_status )
31450 ol_cv_pthread_mthreads=no
31452 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31459 echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
31460 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6
31462 if test $ol_cv_pthread_mthreads = yes ; then
31463 ol_link_pthreads="-mthreads"
31464 ol_link_threads=posix
31468 # Pthread try link: -thread (ol_cv_pthread_thread)
31469 if test "$ol_link_threads" = no ; then
31471 echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
31472 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6
31473 if test "${ol_cv_pthread_thread+set}" = set; then
31474 echo $ECHO_N "(cached) $ECHO_C" >&6
31479 LIBS="-thread $LIBS"
31481 if test "$cross_compiling" = yes; then
31482 cat >conftest.$ac_ext <<_ACEOF
31485 cat confdefs.h >>conftest.$ac_ext
31486 cat >>conftest.$ac_ext <<_ACEOF
31487 /* end confdefs.h. */
31489 /* pthread test headers */
31490 #include <pthread.h>
31491 #if HAVE_PTHREADS < 7
31495 #define NULL (void*)0
31498 static void *task(p)
31501 return (void *) (p == NULL);
31508 /* pthread test function */
31509 #ifndef PTHREAD_CREATE_DETACHED
31510 #define PTHREAD_CREATE_DETACHED 1
31514 int detach = PTHREAD_CREATE_DETACHED;
31516 #if HAVE_PTHREADS > 4
31517 /* Final pthreads */
31518 pthread_attr_t attr;
31520 status = pthread_attr_init(&attr);
31521 if( status ) return status;
31523 #if HAVE_PTHREADS < 7
31524 status = pthread_attr_setdetachstate(&attr, &detach);
31525 if( status < 0 ) status = errno;
31527 status = pthread_attr_setdetachstate(&attr, detach);
31529 if( status ) return status;
31530 status = pthread_create( &t, &attr, task, NULL );
31531 #if HAVE_PTHREADS < 7
31532 if( status < 0 ) status = errno;
31534 if( status ) return status;
31536 /* Draft 4 pthreads */
31537 status = pthread_create( &t, pthread_attr_default, task, NULL );
31538 if( status ) return errno;
31540 /* give thread a chance to complete */
31541 /* it should remain joinable and hence detachable */
31544 status = pthread_detach( &t );
31545 if( status ) return errno;
31548 #ifdef HAVE_LINUX_THREADS
31549 pthread_kill_other_threads_np();
31558 rm -f conftest.$ac_objext conftest$ac_exeext
31559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31560 (eval $ac_link) 2>conftest.er1
31562 grep -v '^ *+' conftest.er1 >conftest.err
31564 cat conftest.err >&5
31565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31566 (exit $ac_status); } &&
31567 { ac_try='test -z "$ac_c_werror_flag"
31568 || test ! -s conftest.err'
31569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31570 (eval $ac_try) 2>&5
31572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31573 (exit $ac_status); }; } &&
31574 { ac_try='test -s conftest$ac_exeext'
31575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31576 (eval $ac_try) 2>&5
31578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31579 (exit $ac_status); }; }; then
31580 ol_cv_pthread_thread=yes
31582 echo "$as_me: failed program was:" >&5
31583 sed 's/^/| /' conftest.$ac_ext >&5
31585 ol_cv_pthread_thread=no
31587 rm -f conftest.err conftest.$ac_objext \
31588 conftest$ac_exeext conftest.$ac_ext
31590 cat >conftest.$ac_ext <<_ACEOF
31592 /* pthread test headers */
31593 #include <pthread.h>
31594 #if HAVE_PTHREADS < 7
31598 #define NULL (void*)0
31601 static void *task(p)
31604 return (void *) (p == NULL);
31608 int main(argc, argv)
31613 /* pthread test function */
31614 #ifndef PTHREAD_CREATE_DETACHED
31615 #define PTHREAD_CREATE_DETACHED 1
31619 int detach = PTHREAD_CREATE_DETACHED;
31621 #if HAVE_PTHREADS > 4
31622 /* Final pthreads */
31623 pthread_attr_t attr;
31625 status = pthread_attr_init(&attr);
31626 if( status ) return status;
31628 #if HAVE_PTHREADS < 7
31629 status = pthread_attr_setdetachstate(&attr, &detach);
31630 if( status < 0 ) status = errno;
31632 status = pthread_attr_setdetachstate(&attr, detach);
31634 if( status ) return status;
31635 status = pthread_create( &t, &attr, task, NULL );
31636 #if HAVE_PTHREADS < 7
31637 if( status < 0 ) status = errno;
31639 if( status ) return status;
31641 /* Draft 4 pthreads */
31642 status = pthread_create( &t, pthread_attr_default, task, NULL );
31643 if( status ) return errno;
31645 /* give thread a chance to complete */
31646 /* it should remain joinable and hence detachable */
31649 status = pthread_detach( &t );
31650 if( status ) return errno;
31653 #ifdef HAVE_LINUX_THREADS
31654 pthread_kill_other_threads_np();
31662 rm -f conftest$ac_exeext
31663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31664 (eval $ac_link) 2>&5
31666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31669 (eval $ac_try) 2>&5
31671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31672 (exit $ac_status); }; }; then
31673 ol_cv_pthread_thread=yes
31675 echo "$as_me: program exited with status $ac_status" >&5
31676 echo "$as_me: failed program was:" >&5
31677 sed 's/^/| /' conftest.$ac_ext >&5
31679 ( exit $ac_status )
31680 ol_cv_pthread_thread=no
31682 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31689 echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
31690 echo "${ECHO_T}$ol_cv_pthread_thread" >&6
31692 if test $ol_cv_pthread_thread = yes ; then
31693 ol_link_pthreads="-thread"
31694 ol_link_threads=posix
31699 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
31700 if test "$ol_link_threads" = no ; then
31701 # try -lpthread -lmach -lexc -lc_r
31702 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
31703 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6
31704 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
31705 echo $ECHO_N "(cached) $ECHO_C" >&6
31710 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
31712 if test "$cross_compiling" = yes; then
31713 cat >conftest.$ac_ext <<_ACEOF
31716 cat confdefs.h >>conftest.$ac_ext
31717 cat >>conftest.$ac_ext <<_ACEOF
31718 /* end confdefs.h. */
31720 /* pthread test headers */
31721 #include <pthread.h>
31722 #if HAVE_PTHREADS < 7
31726 #define NULL (void*)0
31729 static void *task(p)
31732 return (void *) (p == NULL);
31739 /* pthread test function */
31740 #ifndef PTHREAD_CREATE_DETACHED
31741 #define PTHREAD_CREATE_DETACHED 1
31745 int detach = PTHREAD_CREATE_DETACHED;
31747 #if HAVE_PTHREADS > 4
31748 /* Final pthreads */
31749 pthread_attr_t attr;
31751 status = pthread_attr_init(&attr);
31752 if( status ) return status;
31754 #if HAVE_PTHREADS < 7
31755 status = pthread_attr_setdetachstate(&attr, &detach);
31756 if( status < 0 ) status = errno;
31758 status = pthread_attr_setdetachstate(&attr, detach);
31760 if( status ) return status;
31761 status = pthread_create( &t, &attr, task, NULL );
31762 #if HAVE_PTHREADS < 7
31763 if( status < 0 ) status = errno;
31765 if( status ) return status;
31767 /* Draft 4 pthreads */
31768 status = pthread_create( &t, pthread_attr_default, task, NULL );
31769 if( status ) return errno;
31771 /* give thread a chance to complete */
31772 /* it should remain joinable and hence detachable */
31775 status = pthread_detach( &t );
31776 if( status ) return errno;
31779 #ifdef HAVE_LINUX_THREADS
31780 pthread_kill_other_threads_np();
31789 rm -f conftest.$ac_objext conftest$ac_exeext
31790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31791 (eval $ac_link) 2>conftest.er1
31793 grep -v '^ *+' conftest.er1 >conftest.err
31795 cat conftest.err >&5
31796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31797 (exit $ac_status); } &&
31798 { ac_try='test -z "$ac_c_werror_flag"
31799 || test ! -s conftest.err'
31800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31801 (eval $ac_try) 2>&5
31803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31804 (exit $ac_status); }; } &&
31805 { ac_try='test -s conftest$ac_exeext'
31806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31807 (eval $ac_try) 2>&5
31809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31810 (exit $ac_status); }; }; then
31811 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31813 echo "$as_me: failed program was:" >&5
31814 sed 's/^/| /' conftest.$ac_ext >&5
31816 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31818 rm -f conftest.err conftest.$ac_objext \
31819 conftest$ac_exeext conftest.$ac_ext
31821 cat >conftest.$ac_ext <<_ACEOF
31823 /* pthread test headers */
31824 #include <pthread.h>
31825 #if HAVE_PTHREADS < 7
31829 #define NULL (void*)0
31832 static void *task(p)
31835 return (void *) (p == NULL);
31839 int main(argc, argv)
31844 /* pthread test function */
31845 #ifndef PTHREAD_CREATE_DETACHED
31846 #define PTHREAD_CREATE_DETACHED 1
31850 int detach = PTHREAD_CREATE_DETACHED;
31852 #if HAVE_PTHREADS > 4
31853 /* Final pthreads */
31854 pthread_attr_t attr;
31856 status = pthread_attr_init(&attr);
31857 if( status ) return status;
31859 #if HAVE_PTHREADS < 7
31860 status = pthread_attr_setdetachstate(&attr, &detach);
31861 if( status < 0 ) status = errno;
31863 status = pthread_attr_setdetachstate(&attr, detach);
31865 if( status ) return status;
31866 status = pthread_create( &t, &attr, task, NULL );
31867 #if HAVE_PTHREADS < 7
31868 if( status < 0 ) status = errno;
31870 if( status ) return status;
31872 /* Draft 4 pthreads */
31873 status = pthread_create( &t, pthread_attr_default, task, NULL );
31874 if( status ) return errno;
31876 /* give thread a chance to complete */
31877 /* it should remain joinable and hence detachable */
31880 status = pthread_detach( &t );
31881 if( status ) return errno;
31884 #ifdef HAVE_LINUX_THREADS
31885 pthread_kill_other_threads_np();
31893 rm -f conftest$ac_exeext
31894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31895 (eval $ac_link) 2>&5
31897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31898 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31900 (eval $ac_try) 2>&5
31902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31903 (exit $ac_status); }; }; then
31904 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
31906 echo "$as_me: program exited with status $ac_status" >&5
31907 echo "$as_me: failed program was:" >&5
31908 sed 's/^/| /' conftest.$ac_ext >&5
31910 ( exit $ac_status )
31911 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
31913 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31920 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
31921 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6
31923 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
31924 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
31925 ol_link_threads=posix
31929 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
31930 if test "$ol_link_threads" = no ; then
31931 # try -lpthread -lmach -lexc
31932 echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
31933 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6
31934 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
31935 echo $ECHO_N "(cached) $ECHO_C" >&6
31940 LIBS="-lpthread -lmach -lexc $LIBS"
31942 if test "$cross_compiling" = yes; then
31943 cat >conftest.$ac_ext <<_ACEOF
31946 cat confdefs.h >>conftest.$ac_ext
31947 cat >>conftest.$ac_ext <<_ACEOF
31948 /* end confdefs.h. */
31950 /* pthread test headers */
31951 #include <pthread.h>
31952 #if HAVE_PTHREADS < 7
31956 #define NULL (void*)0
31959 static void *task(p)
31962 return (void *) (p == NULL);
31969 /* pthread test function */
31970 #ifndef PTHREAD_CREATE_DETACHED
31971 #define PTHREAD_CREATE_DETACHED 1
31975 int detach = PTHREAD_CREATE_DETACHED;
31977 #if HAVE_PTHREADS > 4
31978 /* Final pthreads */
31979 pthread_attr_t attr;
31981 status = pthread_attr_init(&attr);
31982 if( status ) return status;
31984 #if HAVE_PTHREADS < 7
31985 status = pthread_attr_setdetachstate(&attr, &detach);
31986 if( status < 0 ) status = errno;
31988 status = pthread_attr_setdetachstate(&attr, detach);
31990 if( status ) return status;
31991 status = pthread_create( &t, &attr, task, NULL );
31992 #if HAVE_PTHREADS < 7
31993 if( status < 0 ) status = errno;
31995 if( status ) return status;
31997 /* Draft 4 pthreads */
31998 status = pthread_create( &t, pthread_attr_default, task, NULL );
31999 if( status ) return errno;
32001 /* give thread a chance to complete */
32002 /* it should remain joinable and hence detachable */
32005 status = pthread_detach( &t );
32006 if( status ) return errno;
32009 #ifdef HAVE_LINUX_THREADS
32010 pthread_kill_other_threads_np();
32019 rm -f conftest.$ac_objext conftest$ac_exeext
32020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32021 (eval $ac_link) 2>conftest.er1
32023 grep -v '^ *+' conftest.er1 >conftest.err
32025 cat conftest.err >&5
32026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32027 (exit $ac_status); } &&
32028 { ac_try='test -z "$ac_c_werror_flag"
32029 || test ! -s conftest.err'
32030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32031 (eval $ac_try) 2>&5
32033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32034 (exit $ac_status); }; } &&
32035 { ac_try='test -s conftest$ac_exeext'
32036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32037 (eval $ac_try) 2>&5
32039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32040 (exit $ac_status); }; }; then
32041 ol_cv_pthread_lpthread_lmach_lexc=yes
32043 echo "$as_me: failed program was:" >&5
32044 sed 's/^/| /' conftest.$ac_ext >&5
32046 ol_cv_pthread_lpthread_lmach_lexc=no
32048 rm -f conftest.err conftest.$ac_objext \
32049 conftest$ac_exeext conftest.$ac_ext
32051 cat >conftest.$ac_ext <<_ACEOF
32053 /* pthread test headers */
32054 #include <pthread.h>
32055 #if HAVE_PTHREADS < 7
32059 #define NULL (void*)0
32062 static void *task(p)
32065 return (void *) (p == NULL);
32069 int main(argc, argv)
32074 /* pthread test function */
32075 #ifndef PTHREAD_CREATE_DETACHED
32076 #define PTHREAD_CREATE_DETACHED 1
32080 int detach = PTHREAD_CREATE_DETACHED;
32082 #if HAVE_PTHREADS > 4
32083 /* Final pthreads */
32084 pthread_attr_t attr;
32086 status = pthread_attr_init(&attr);
32087 if( status ) return status;
32089 #if HAVE_PTHREADS < 7
32090 status = pthread_attr_setdetachstate(&attr, &detach);
32091 if( status < 0 ) status = errno;
32093 status = pthread_attr_setdetachstate(&attr, detach);
32095 if( status ) return status;
32096 status = pthread_create( &t, &attr, task, NULL );
32097 #if HAVE_PTHREADS < 7
32098 if( status < 0 ) status = errno;
32100 if( status ) return status;
32102 /* Draft 4 pthreads */
32103 status = pthread_create( &t, pthread_attr_default, task, NULL );
32104 if( status ) return errno;
32106 /* give thread a chance to complete */
32107 /* it should remain joinable and hence detachable */
32110 status = pthread_detach( &t );
32111 if( status ) return errno;
32114 #ifdef HAVE_LINUX_THREADS
32115 pthread_kill_other_threads_np();
32123 rm -f conftest$ac_exeext
32124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32125 (eval $ac_link) 2>&5
32127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32130 (eval $ac_try) 2>&5
32132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32133 (exit $ac_status); }; }; then
32134 ol_cv_pthread_lpthread_lmach_lexc=yes
32136 echo "$as_me: program exited with status $ac_status" >&5
32137 echo "$as_me: failed program was:" >&5
32138 sed 's/^/| /' conftest.$ac_ext >&5
32140 ( exit $ac_status )
32141 ol_cv_pthread_lpthread_lmach_lexc=no
32143 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32150 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
32151 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6
32153 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
32154 ol_link_pthreads="-lpthread -lmach -lexc"
32155 ol_link_threads=posix
32160 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
32161 if test "$ol_link_threads" = no ; then
32162 # try -lpthread -Wl,-woff,85
32163 echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
32164 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6
32165 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
32166 echo $ECHO_N "(cached) $ECHO_C" >&6
32171 LIBS="-lpthread -Wl,-woff,85 $LIBS"
32173 if test "$cross_compiling" = yes; then
32174 cat >conftest.$ac_ext <<_ACEOF
32177 cat confdefs.h >>conftest.$ac_ext
32178 cat >>conftest.$ac_ext <<_ACEOF
32179 /* end confdefs.h. */
32181 /* pthread test headers */
32182 #include <pthread.h>
32183 #if HAVE_PTHREADS < 7
32187 #define NULL (void*)0
32190 static void *task(p)
32193 return (void *) (p == NULL);
32200 /* pthread test function */
32201 #ifndef PTHREAD_CREATE_DETACHED
32202 #define PTHREAD_CREATE_DETACHED 1
32206 int detach = PTHREAD_CREATE_DETACHED;
32208 #if HAVE_PTHREADS > 4
32209 /* Final pthreads */
32210 pthread_attr_t attr;
32212 status = pthread_attr_init(&attr);
32213 if( status ) return status;
32215 #if HAVE_PTHREADS < 7
32216 status = pthread_attr_setdetachstate(&attr, &detach);
32217 if( status < 0 ) status = errno;
32219 status = pthread_attr_setdetachstate(&attr, detach);
32221 if( status ) return status;
32222 status = pthread_create( &t, &attr, task, NULL );
32223 #if HAVE_PTHREADS < 7
32224 if( status < 0 ) status = errno;
32226 if( status ) return status;
32228 /* Draft 4 pthreads */
32229 status = pthread_create( &t, pthread_attr_default, task, NULL );
32230 if( status ) return errno;
32232 /* give thread a chance to complete */
32233 /* it should remain joinable and hence detachable */
32236 status = pthread_detach( &t );
32237 if( status ) return errno;
32240 #ifdef HAVE_LINUX_THREADS
32241 pthread_kill_other_threads_np();
32250 rm -f conftest.$ac_objext conftest$ac_exeext
32251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32252 (eval $ac_link) 2>conftest.er1
32254 grep -v '^ *+' conftest.er1 >conftest.err
32256 cat conftest.err >&5
32257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32258 (exit $ac_status); } &&
32259 { ac_try='test -z "$ac_c_werror_flag"
32260 || test ! -s conftest.err'
32261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32262 (eval $ac_try) 2>&5
32264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32265 (exit $ac_status); }; } &&
32266 { ac_try='test -s conftest$ac_exeext'
32267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32268 (eval $ac_try) 2>&5
32270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32271 (exit $ac_status); }; }; then
32272 ol_cv_pthread_lib_lpthread_woff=yes
32274 echo "$as_me: failed program was:" >&5
32275 sed 's/^/| /' conftest.$ac_ext >&5
32277 ol_cv_pthread_lib_lpthread_woff=no
32279 rm -f conftest.err conftest.$ac_objext \
32280 conftest$ac_exeext conftest.$ac_ext
32282 cat >conftest.$ac_ext <<_ACEOF
32284 /* pthread test headers */
32285 #include <pthread.h>
32286 #if HAVE_PTHREADS < 7
32290 #define NULL (void*)0
32293 static void *task(p)
32296 return (void *) (p == NULL);
32300 int main(argc, argv)
32305 /* pthread test function */
32306 #ifndef PTHREAD_CREATE_DETACHED
32307 #define PTHREAD_CREATE_DETACHED 1
32311 int detach = PTHREAD_CREATE_DETACHED;
32313 #if HAVE_PTHREADS > 4
32314 /* Final pthreads */
32315 pthread_attr_t attr;
32317 status = pthread_attr_init(&attr);
32318 if( status ) return status;
32320 #if HAVE_PTHREADS < 7
32321 status = pthread_attr_setdetachstate(&attr, &detach);
32322 if( status < 0 ) status = errno;
32324 status = pthread_attr_setdetachstate(&attr, detach);
32326 if( status ) return status;
32327 status = pthread_create( &t, &attr, task, NULL );
32328 #if HAVE_PTHREADS < 7
32329 if( status < 0 ) status = errno;
32331 if( status ) return status;
32333 /* Draft 4 pthreads */
32334 status = pthread_create( &t, pthread_attr_default, task, NULL );
32335 if( status ) return errno;
32337 /* give thread a chance to complete */
32338 /* it should remain joinable and hence detachable */
32341 status = pthread_detach( &t );
32342 if( status ) return errno;
32345 #ifdef HAVE_LINUX_THREADS
32346 pthread_kill_other_threads_np();
32354 rm -f conftest$ac_exeext
32355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32356 (eval $ac_link) 2>&5
32358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32359 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32361 (eval $ac_try) 2>&5
32363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32364 (exit $ac_status); }; }; then
32365 ol_cv_pthread_lib_lpthread_woff=yes
32367 echo "$as_me: program exited with status $ac_status" >&5
32368 echo "$as_me: failed program was:" >&5
32369 sed 's/^/| /' conftest.$ac_ext >&5
32371 ( exit $ac_status )
32372 ol_cv_pthread_lib_lpthread_woff=no
32374 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32381 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
32382 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6
32384 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
32385 ol_link_pthreads="-lpthread -Wl,-woff,85"
32386 ol_link_threads=posix
32391 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
32392 if test "$ol_link_threads" = no ; then
32394 echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
32395 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6
32396 if test "${ol_cv_pthread_lpthread+set}" = set; then
32397 echo $ECHO_N "(cached) $ECHO_C" >&6
32402 LIBS="-lpthread $LIBS"
32404 if test "$cross_compiling" = yes; then
32405 cat >conftest.$ac_ext <<_ACEOF
32408 cat confdefs.h >>conftest.$ac_ext
32409 cat >>conftest.$ac_ext <<_ACEOF
32410 /* end confdefs.h. */
32412 /* pthread test headers */
32413 #include <pthread.h>
32414 #if HAVE_PTHREADS < 7
32418 #define NULL (void*)0
32421 static void *task(p)
32424 return (void *) (p == NULL);
32431 /* pthread test function */
32432 #ifndef PTHREAD_CREATE_DETACHED
32433 #define PTHREAD_CREATE_DETACHED 1
32437 int detach = PTHREAD_CREATE_DETACHED;
32439 #if HAVE_PTHREADS > 4
32440 /* Final pthreads */
32441 pthread_attr_t attr;
32443 status = pthread_attr_init(&attr);
32444 if( status ) return status;
32446 #if HAVE_PTHREADS < 7
32447 status = pthread_attr_setdetachstate(&attr, &detach);
32448 if( status < 0 ) status = errno;
32450 status = pthread_attr_setdetachstate(&attr, detach);
32452 if( status ) return status;
32453 status = pthread_create( &t, &attr, task, NULL );
32454 #if HAVE_PTHREADS < 7
32455 if( status < 0 ) status = errno;
32457 if( status ) return status;
32459 /* Draft 4 pthreads */
32460 status = pthread_create( &t, pthread_attr_default, task, NULL );
32461 if( status ) return errno;
32463 /* give thread a chance to complete */
32464 /* it should remain joinable and hence detachable */
32467 status = pthread_detach( &t );
32468 if( status ) return errno;
32471 #ifdef HAVE_LINUX_THREADS
32472 pthread_kill_other_threads_np();
32481 rm -f conftest.$ac_objext conftest$ac_exeext
32482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32483 (eval $ac_link) 2>conftest.er1
32485 grep -v '^ *+' conftest.er1 >conftest.err
32487 cat conftest.err >&5
32488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489 (exit $ac_status); } &&
32490 { ac_try='test -z "$ac_c_werror_flag"
32491 || test ! -s conftest.err'
32492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32493 (eval $ac_try) 2>&5
32495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32496 (exit $ac_status); }; } &&
32497 { ac_try='test -s conftest$ac_exeext'
32498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32499 (eval $ac_try) 2>&5
32501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32502 (exit $ac_status); }; }; then
32503 ol_cv_pthread_lpthread=yes
32505 echo "$as_me: failed program was:" >&5
32506 sed 's/^/| /' conftest.$ac_ext >&5
32508 ol_cv_pthread_lpthread=no
32510 rm -f conftest.err conftest.$ac_objext \
32511 conftest$ac_exeext conftest.$ac_ext
32513 cat >conftest.$ac_ext <<_ACEOF
32515 /* pthread test headers */
32516 #include <pthread.h>
32517 #if HAVE_PTHREADS < 7
32521 #define NULL (void*)0
32524 static void *task(p)
32527 return (void *) (p == NULL);
32531 int main(argc, argv)
32536 /* pthread test function */
32537 #ifndef PTHREAD_CREATE_DETACHED
32538 #define PTHREAD_CREATE_DETACHED 1
32542 int detach = PTHREAD_CREATE_DETACHED;
32544 #if HAVE_PTHREADS > 4
32545 /* Final pthreads */
32546 pthread_attr_t attr;
32548 status = pthread_attr_init(&attr);
32549 if( status ) return status;
32551 #if HAVE_PTHREADS < 7
32552 status = pthread_attr_setdetachstate(&attr, &detach);
32553 if( status < 0 ) status = errno;
32555 status = pthread_attr_setdetachstate(&attr, detach);
32557 if( status ) return status;
32558 status = pthread_create( &t, &attr, task, NULL );
32559 #if HAVE_PTHREADS < 7
32560 if( status < 0 ) status = errno;
32562 if( status ) return status;
32564 /* Draft 4 pthreads */
32565 status = pthread_create( &t, pthread_attr_default, task, NULL );
32566 if( status ) return errno;
32568 /* give thread a chance to complete */
32569 /* it should remain joinable and hence detachable */
32572 status = pthread_detach( &t );
32573 if( status ) return errno;
32576 #ifdef HAVE_LINUX_THREADS
32577 pthread_kill_other_threads_np();
32585 rm -f conftest$ac_exeext
32586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32587 (eval $ac_link) 2>&5
32589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32592 (eval $ac_try) 2>&5
32594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32595 (exit $ac_status); }; }; then
32596 ol_cv_pthread_lpthread=yes
32598 echo "$as_me: program exited with status $ac_status" >&5
32599 echo "$as_me: failed program was:" >&5
32600 sed 's/^/| /' conftest.$ac_ext >&5
32602 ( exit $ac_status )
32603 ol_cv_pthread_lpthread=no
32605 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32612 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
32613 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6
32615 if test $ol_cv_pthread_lpthread = yes ; then
32616 ol_link_pthreads="-lpthread"
32617 ol_link_threads=posix
32621 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
32622 if test "$ol_link_threads" = no ; then
32624 echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
32625 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6
32626 if test "${ol_cv_pthread_lc_r+set}" = set; then
32627 echo $ECHO_N "(cached) $ECHO_C" >&6
32634 if test "$cross_compiling" = yes; then
32635 cat >conftest.$ac_ext <<_ACEOF
32638 cat confdefs.h >>conftest.$ac_ext
32639 cat >>conftest.$ac_ext <<_ACEOF
32640 /* end confdefs.h. */
32642 /* pthread test headers */
32643 #include <pthread.h>
32644 #if HAVE_PTHREADS < 7
32648 #define NULL (void*)0
32651 static void *task(p)
32654 return (void *) (p == NULL);
32661 /* pthread test function */
32662 #ifndef PTHREAD_CREATE_DETACHED
32663 #define PTHREAD_CREATE_DETACHED 1
32667 int detach = PTHREAD_CREATE_DETACHED;
32669 #if HAVE_PTHREADS > 4
32670 /* Final pthreads */
32671 pthread_attr_t attr;
32673 status = pthread_attr_init(&attr);
32674 if( status ) return status;
32676 #if HAVE_PTHREADS < 7
32677 status = pthread_attr_setdetachstate(&attr, &detach);
32678 if( status < 0 ) status = errno;
32680 status = pthread_attr_setdetachstate(&attr, detach);
32682 if( status ) return status;
32683 status = pthread_create( &t, &attr, task, NULL );
32684 #if HAVE_PTHREADS < 7
32685 if( status < 0 ) status = errno;
32687 if( status ) return status;
32689 /* Draft 4 pthreads */
32690 status = pthread_create( &t, pthread_attr_default, task, NULL );
32691 if( status ) return errno;
32693 /* give thread a chance to complete */
32694 /* it should remain joinable and hence detachable */
32697 status = pthread_detach( &t );
32698 if( status ) return errno;
32701 #ifdef HAVE_LINUX_THREADS
32702 pthread_kill_other_threads_np();
32711 rm -f conftest.$ac_objext conftest$ac_exeext
32712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32713 (eval $ac_link) 2>conftest.er1
32715 grep -v '^ *+' conftest.er1 >conftest.err
32717 cat conftest.err >&5
32718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32719 (exit $ac_status); } &&
32720 { ac_try='test -z "$ac_c_werror_flag"
32721 || test ! -s conftest.err'
32722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32723 (eval $ac_try) 2>&5
32725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32726 (exit $ac_status); }; } &&
32727 { ac_try='test -s conftest$ac_exeext'
32728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32729 (eval $ac_try) 2>&5
32731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32732 (exit $ac_status); }; }; then
32733 ol_cv_pthread_lc_r=yes
32735 echo "$as_me: failed program was:" >&5
32736 sed 's/^/| /' conftest.$ac_ext >&5
32738 ol_cv_pthread_lc_r=no
32740 rm -f conftest.err conftest.$ac_objext \
32741 conftest$ac_exeext conftest.$ac_ext
32743 cat >conftest.$ac_ext <<_ACEOF
32745 /* pthread test headers */
32746 #include <pthread.h>
32747 #if HAVE_PTHREADS < 7
32751 #define NULL (void*)0
32754 static void *task(p)
32757 return (void *) (p == NULL);
32761 int main(argc, argv)
32766 /* pthread test function */
32767 #ifndef PTHREAD_CREATE_DETACHED
32768 #define PTHREAD_CREATE_DETACHED 1
32772 int detach = PTHREAD_CREATE_DETACHED;
32774 #if HAVE_PTHREADS > 4
32775 /* Final pthreads */
32776 pthread_attr_t attr;
32778 status = pthread_attr_init(&attr);
32779 if( status ) return status;
32781 #if HAVE_PTHREADS < 7
32782 status = pthread_attr_setdetachstate(&attr, &detach);
32783 if( status < 0 ) status = errno;
32785 status = pthread_attr_setdetachstate(&attr, detach);
32787 if( status ) return status;
32788 status = pthread_create( &t, &attr, task, NULL );
32789 #if HAVE_PTHREADS < 7
32790 if( status < 0 ) status = errno;
32792 if( status ) return status;
32794 /* Draft 4 pthreads */
32795 status = pthread_create( &t, pthread_attr_default, task, NULL );
32796 if( status ) return errno;
32798 /* give thread a chance to complete */
32799 /* it should remain joinable and hence detachable */
32802 status = pthread_detach( &t );
32803 if( status ) return errno;
32806 #ifdef HAVE_LINUX_THREADS
32807 pthread_kill_other_threads_np();
32815 rm -f conftest$ac_exeext
32816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32817 (eval $ac_link) 2>&5
32819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32820 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32822 (eval $ac_try) 2>&5
32824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32825 (exit $ac_status); }; }; then
32826 ol_cv_pthread_lc_r=yes
32828 echo "$as_me: program exited with status $ac_status" >&5
32829 echo "$as_me: failed program was:" >&5
32830 sed 's/^/| /' conftest.$ac_ext >&5
32832 ( exit $ac_status )
32833 ol_cv_pthread_lc_r=no
32835 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32842 echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
32843 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6
32845 if test $ol_cv_pthread_lc_r = yes ; then
32846 ol_link_pthreads="-lc_r"
32847 ol_link_threads=posix
32852 # Pthread try link: -threads (ol_cv_pthread_threads)
32853 if test "$ol_link_threads" = no ; then
32855 echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
32856 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6
32857 if test "${ol_cv_pthread_threads+set}" = set; then
32858 echo $ECHO_N "(cached) $ECHO_C" >&6
32863 LIBS="-threads $LIBS"
32865 if test "$cross_compiling" = yes; then
32866 cat >conftest.$ac_ext <<_ACEOF
32869 cat confdefs.h >>conftest.$ac_ext
32870 cat >>conftest.$ac_ext <<_ACEOF
32871 /* end confdefs.h. */
32873 /* pthread test headers */
32874 #include <pthread.h>
32875 #if HAVE_PTHREADS < 7
32879 #define NULL (void*)0
32882 static void *task(p)
32885 return (void *) (p == NULL);
32892 /* pthread test function */
32893 #ifndef PTHREAD_CREATE_DETACHED
32894 #define PTHREAD_CREATE_DETACHED 1
32898 int detach = PTHREAD_CREATE_DETACHED;
32900 #if HAVE_PTHREADS > 4
32901 /* Final pthreads */
32902 pthread_attr_t attr;
32904 status = pthread_attr_init(&attr);
32905 if( status ) return status;
32907 #if HAVE_PTHREADS < 7
32908 status = pthread_attr_setdetachstate(&attr, &detach);
32909 if( status < 0 ) status = errno;
32911 status = pthread_attr_setdetachstate(&attr, detach);
32913 if( status ) return status;
32914 status = pthread_create( &t, &attr, task, NULL );
32915 #if HAVE_PTHREADS < 7
32916 if( status < 0 ) status = errno;
32918 if( status ) return status;
32920 /* Draft 4 pthreads */
32921 status = pthread_create( &t, pthread_attr_default, task, NULL );
32922 if( status ) return errno;
32924 /* give thread a chance to complete */
32925 /* it should remain joinable and hence detachable */
32928 status = pthread_detach( &t );
32929 if( status ) return errno;
32932 #ifdef HAVE_LINUX_THREADS
32933 pthread_kill_other_threads_np();
32942 rm -f conftest.$ac_objext conftest$ac_exeext
32943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32944 (eval $ac_link) 2>conftest.er1
32946 grep -v '^ *+' conftest.er1 >conftest.err
32948 cat conftest.err >&5
32949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32950 (exit $ac_status); } &&
32951 { ac_try='test -z "$ac_c_werror_flag"
32952 || test ! -s conftest.err'
32953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32954 (eval $ac_try) 2>&5
32956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32957 (exit $ac_status); }; } &&
32958 { ac_try='test -s conftest$ac_exeext'
32959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32960 (eval $ac_try) 2>&5
32962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963 (exit $ac_status); }; }; then
32964 ol_cv_pthread_threads=yes
32966 echo "$as_me: failed program was:" >&5
32967 sed 's/^/| /' conftest.$ac_ext >&5
32969 ol_cv_pthread_threads=no
32971 rm -f conftest.err conftest.$ac_objext \
32972 conftest$ac_exeext conftest.$ac_ext
32974 cat >conftest.$ac_ext <<_ACEOF
32976 /* pthread test headers */
32977 #include <pthread.h>
32978 #if HAVE_PTHREADS < 7
32982 #define NULL (void*)0
32985 static void *task(p)
32988 return (void *) (p == NULL);
32992 int main(argc, argv)
32997 /* pthread test function */
32998 #ifndef PTHREAD_CREATE_DETACHED
32999 #define PTHREAD_CREATE_DETACHED 1
33003 int detach = PTHREAD_CREATE_DETACHED;
33005 #if HAVE_PTHREADS > 4
33006 /* Final pthreads */
33007 pthread_attr_t attr;
33009 status = pthread_attr_init(&attr);
33010 if( status ) return status;
33012 #if HAVE_PTHREADS < 7
33013 status = pthread_attr_setdetachstate(&attr, &detach);
33014 if( status < 0 ) status = errno;
33016 status = pthread_attr_setdetachstate(&attr, detach);
33018 if( status ) return status;
33019 status = pthread_create( &t, &attr, task, NULL );
33020 #if HAVE_PTHREADS < 7
33021 if( status < 0 ) status = errno;
33023 if( status ) return status;
33025 /* Draft 4 pthreads */
33026 status = pthread_create( &t, pthread_attr_default, task, NULL );
33027 if( status ) return errno;
33029 /* give thread a chance to complete */
33030 /* it should remain joinable and hence detachable */
33033 status = pthread_detach( &t );
33034 if( status ) return errno;
33037 #ifdef HAVE_LINUX_THREADS
33038 pthread_kill_other_threads_np();
33046 rm -f conftest$ac_exeext
33047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33048 (eval $ac_link) 2>&5
33050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33053 (eval $ac_try) 2>&5
33055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33056 (exit $ac_status); }; }; then
33057 ol_cv_pthread_threads=yes
33059 echo "$as_me: program exited with status $ac_status" >&5
33060 echo "$as_me: failed program was:" >&5
33061 sed 's/^/| /' conftest.$ac_ext >&5
33063 ( exit $ac_status )
33064 ol_cv_pthread_threads=no
33066 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33073 echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
33074 echo "${ECHO_T}$ol_cv_pthread_threads" >&6
33076 if test $ol_cv_pthread_threads = yes ; then
33077 ol_link_pthreads="-threads"
33078 ol_link_threads=posix
33083 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
33084 if test "$ol_link_threads" = no ; then
33085 # try -lpthreads -lmach -lexc -lc_r
33086 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
33087 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6
33088 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
33089 echo $ECHO_N "(cached) $ECHO_C" >&6
33094 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
33096 if test "$cross_compiling" = yes; then
33097 cat >conftest.$ac_ext <<_ACEOF
33100 cat confdefs.h >>conftest.$ac_ext
33101 cat >>conftest.$ac_ext <<_ACEOF
33102 /* end confdefs.h. */
33104 /* pthread test headers */
33105 #include <pthread.h>
33106 #if HAVE_PTHREADS < 7
33110 #define NULL (void*)0
33113 static void *task(p)
33116 return (void *) (p == NULL);
33123 /* pthread test function */
33124 #ifndef PTHREAD_CREATE_DETACHED
33125 #define PTHREAD_CREATE_DETACHED 1
33129 int detach = PTHREAD_CREATE_DETACHED;
33131 #if HAVE_PTHREADS > 4
33132 /* Final pthreads */
33133 pthread_attr_t attr;
33135 status = pthread_attr_init(&attr);
33136 if( status ) return status;
33138 #if HAVE_PTHREADS < 7
33139 status = pthread_attr_setdetachstate(&attr, &detach);
33140 if( status < 0 ) status = errno;
33142 status = pthread_attr_setdetachstate(&attr, detach);
33144 if( status ) return status;
33145 status = pthread_create( &t, &attr, task, NULL );
33146 #if HAVE_PTHREADS < 7
33147 if( status < 0 ) status = errno;
33149 if( status ) return status;
33151 /* Draft 4 pthreads */
33152 status = pthread_create( &t, pthread_attr_default, task, NULL );
33153 if( status ) return errno;
33155 /* give thread a chance to complete */
33156 /* it should remain joinable and hence detachable */
33159 status = pthread_detach( &t );
33160 if( status ) return errno;
33163 #ifdef HAVE_LINUX_THREADS
33164 pthread_kill_other_threads_np();
33173 rm -f conftest.$ac_objext conftest$ac_exeext
33174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33175 (eval $ac_link) 2>conftest.er1
33177 grep -v '^ *+' conftest.er1 >conftest.err
33179 cat conftest.err >&5
33180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33181 (exit $ac_status); } &&
33182 { ac_try='test -z "$ac_c_werror_flag"
33183 || test ! -s conftest.err'
33184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33185 (eval $ac_try) 2>&5
33187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33188 (exit $ac_status); }; } &&
33189 { ac_try='test -s conftest$ac_exeext'
33190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33191 (eval $ac_try) 2>&5
33193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33194 (exit $ac_status); }; }; then
33195 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33197 echo "$as_me: failed program was:" >&5
33198 sed 's/^/| /' conftest.$ac_ext >&5
33200 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33202 rm -f conftest.err conftest.$ac_objext \
33203 conftest$ac_exeext conftest.$ac_ext
33205 cat >conftest.$ac_ext <<_ACEOF
33207 /* pthread test headers */
33208 #include <pthread.h>
33209 #if HAVE_PTHREADS < 7
33213 #define NULL (void*)0
33216 static void *task(p)
33219 return (void *) (p == NULL);
33223 int main(argc, argv)
33228 /* pthread test function */
33229 #ifndef PTHREAD_CREATE_DETACHED
33230 #define PTHREAD_CREATE_DETACHED 1
33234 int detach = PTHREAD_CREATE_DETACHED;
33236 #if HAVE_PTHREADS > 4
33237 /* Final pthreads */
33238 pthread_attr_t attr;
33240 status = pthread_attr_init(&attr);
33241 if( status ) return status;
33243 #if HAVE_PTHREADS < 7
33244 status = pthread_attr_setdetachstate(&attr, &detach);
33245 if( status < 0 ) status = errno;
33247 status = pthread_attr_setdetachstate(&attr, detach);
33249 if( status ) return status;
33250 status = pthread_create( &t, &attr, task, NULL );
33251 #if HAVE_PTHREADS < 7
33252 if( status < 0 ) status = errno;
33254 if( status ) return status;
33256 /* Draft 4 pthreads */
33257 status = pthread_create( &t, pthread_attr_default, task, NULL );
33258 if( status ) return errno;
33260 /* give thread a chance to complete */
33261 /* it should remain joinable and hence detachable */
33264 status = pthread_detach( &t );
33265 if( status ) return errno;
33268 #ifdef HAVE_LINUX_THREADS
33269 pthread_kill_other_threads_np();
33277 rm -f conftest$ac_exeext
33278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33279 (eval $ac_link) 2>&5
33281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33284 (eval $ac_try) 2>&5
33286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33287 (exit $ac_status); }; }; then
33288 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
33290 echo "$as_me: program exited with status $ac_status" >&5
33291 echo "$as_me: failed program was:" >&5
33292 sed 's/^/| /' conftest.$ac_ext >&5
33294 ( exit $ac_status )
33295 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
33297 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33304 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
33305 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6
33307 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
33308 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
33309 ol_link_threads=posix
33313 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
33314 if test "$ol_link_threads" = no ; then
33315 # try -lpthreads -lmach -lexc
33316 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
33317 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6
33318 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
33319 echo $ECHO_N "(cached) $ECHO_C" >&6
33324 LIBS="-lpthreads -lmach -lexc $LIBS"
33326 if test "$cross_compiling" = yes; then
33327 cat >conftest.$ac_ext <<_ACEOF
33330 cat confdefs.h >>conftest.$ac_ext
33331 cat >>conftest.$ac_ext <<_ACEOF
33332 /* end confdefs.h. */
33334 /* pthread test headers */
33335 #include <pthread.h>
33336 #if HAVE_PTHREADS < 7
33340 #define NULL (void*)0
33343 static void *task(p)
33346 return (void *) (p == NULL);
33353 /* pthread test function */
33354 #ifndef PTHREAD_CREATE_DETACHED
33355 #define PTHREAD_CREATE_DETACHED 1
33359 int detach = PTHREAD_CREATE_DETACHED;
33361 #if HAVE_PTHREADS > 4
33362 /* Final pthreads */
33363 pthread_attr_t attr;
33365 status = pthread_attr_init(&attr);
33366 if( status ) return status;
33368 #if HAVE_PTHREADS < 7
33369 status = pthread_attr_setdetachstate(&attr, &detach);
33370 if( status < 0 ) status = errno;
33372 status = pthread_attr_setdetachstate(&attr, detach);
33374 if( status ) return status;
33375 status = pthread_create( &t, &attr, task, NULL );
33376 #if HAVE_PTHREADS < 7
33377 if( status < 0 ) status = errno;
33379 if( status ) return status;
33381 /* Draft 4 pthreads */
33382 status = pthread_create( &t, pthread_attr_default, task, NULL );
33383 if( status ) return errno;
33385 /* give thread a chance to complete */
33386 /* it should remain joinable and hence detachable */
33389 status = pthread_detach( &t );
33390 if( status ) return errno;
33393 #ifdef HAVE_LINUX_THREADS
33394 pthread_kill_other_threads_np();
33403 rm -f conftest.$ac_objext conftest$ac_exeext
33404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33405 (eval $ac_link) 2>conftest.er1
33407 grep -v '^ *+' conftest.er1 >conftest.err
33409 cat conftest.err >&5
33410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33411 (exit $ac_status); } &&
33412 { ac_try='test -z "$ac_c_werror_flag"
33413 || test ! -s conftest.err'
33414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33415 (eval $ac_try) 2>&5
33417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33418 (exit $ac_status); }; } &&
33419 { ac_try='test -s conftest$ac_exeext'
33420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33421 (eval $ac_try) 2>&5
33423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33424 (exit $ac_status); }; }; then
33425 ol_cv_pthread_lpthreads_lmach_lexc=yes
33427 echo "$as_me: failed program was:" >&5
33428 sed 's/^/| /' conftest.$ac_ext >&5
33430 ol_cv_pthread_lpthreads_lmach_lexc=no
33432 rm -f conftest.err conftest.$ac_objext \
33433 conftest$ac_exeext conftest.$ac_ext
33435 cat >conftest.$ac_ext <<_ACEOF
33437 /* pthread test headers */
33438 #include <pthread.h>
33439 #if HAVE_PTHREADS < 7
33443 #define NULL (void*)0
33446 static void *task(p)
33449 return (void *) (p == NULL);
33453 int main(argc, argv)
33458 /* pthread test function */
33459 #ifndef PTHREAD_CREATE_DETACHED
33460 #define PTHREAD_CREATE_DETACHED 1
33464 int detach = PTHREAD_CREATE_DETACHED;
33466 #if HAVE_PTHREADS > 4
33467 /* Final pthreads */
33468 pthread_attr_t attr;
33470 status = pthread_attr_init(&attr);
33471 if( status ) return status;
33473 #if HAVE_PTHREADS < 7
33474 status = pthread_attr_setdetachstate(&attr, &detach);
33475 if( status < 0 ) status = errno;
33477 status = pthread_attr_setdetachstate(&attr, detach);
33479 if( status ) return status;
33480 status = pthread_create( &t, &attr, task, NULL );
33481 #if HAVE_PTHREADS < 7
33482 if( status < 0 ) status = errno;
33484 if( status ) return status;
33486 /* Draft 4 pthreads */
33487 status = pthread_create( &t, pthread_attr_default, task, NULL );
33488 if( status ) return errno;
33490 /* give thread a chance to complete */
33491 /* it should remain joinable and hence detachable */
33494 status = pthread_detach( &t );
33495 if( status ) return errno;
33498 #ifdef HAVE_LINUX_THREADS
33499 pthread_kill_other_threads_np();
33507 rm -f conftest$ac_exeext
33508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33509 (eval $ac_link) 2>&5
33511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33514 (eval $ac_try) 2>&5
33516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33517 (exit $ac_status); }; }; then
33518 ol_cv_pthread_lpthreads_lmach_lexc=yes
33520 echo "$as_me: program exited with status $ac_status" >&5
33521 echo "$as_me: failed program was:" >&5
33522 sed 's/^/| /' conftest.$ac_ext >&5
33524 ( exit $ac_status )
33525 ol_cv_pthread_lpthreads_lmach_lexc=no
33527 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33534 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
33535 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6
33537 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
33538 ol_link_pthreads="-lpthreads -lmach -lexc"
33539 ol_link_threads=posix
33543 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
33544 if test "$ol_link_threads" = no ; then
33545 # try -lpthreads -lexc
33546 echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
33547 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6
33548 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
33549 echo $ECHO_N "(cached) $ECHO_C" >&6
33554 LIBS="-lpthreads -lexc $LIBS"
33556 if test "$cross_compiling" = yes; then
33557 cat >conftest.$ac_ext <<_ACEOF
33560 cat confdefs.h >>conftest.$ac_ext
33561 cat >>conftest.$ac_ext <<_ACEOF
33562 /* end confdefs.h. */
33564 /* pthread test headers */
33565 #include <pthread.h>
33566 #if HAVE_PTHREADS < 7
33570 #define NULL (void*)0
33573 static void *task(p)
33576 return (void *) (p == NULL);
33583 /* pthread test function */
33584 #ifndef PTHREAD_CREATE_DETACHED
33585 #define PTHREAD_CREATE_DETACHED 1
33589 int detach = PTHREAD_CREATE_DETACHED;
33591 #if HAVE_PTHREADS > 4
33592 /* Final pthreads */
33593 pthread_attr_t attr;
33595 status = pthread_attr_init(&attr);
33596 if( status ) return status;
33598 #if HAVE_PTHREADS < 7
33599 status = pthread_attr_setdetachstate(&attr, &detach);
33600 if( status < 0 ) status = errno;
33602 status = pthread_attr_setdetachstate(&attr, detach);
33604 if( status ) return status;
33605 status = pthread_create( &t, &attr, task, NULL );
33606 #if HAVE_PTHREADS < 7
33607 if( status < 0 ) status = errno;
33609 if( status ) return status;
33611 /* Draft 4 pthreads */
33612 status = pthread_create( &t, pthread_attr_default, task, NULL );
33613 if( status ) return errno;
33615 /* give thread a chance to complete */
33616 /* it should remain joinable and hence detachable */
33619 status = pthread_detach( &t );
33620 if( status ) return errno;
33623 #ifdef HAVE_LINUX_THREADS
33624 pthread_kill_other_threads_np();
33633 rm -f conftest.$ac_objext conftest$ac_exeext
33634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33635 (eval $ac_link) 2>conftest.er1
33637 grep -v '^ *+' conftest.er1 >conftest.err
33639 cat conftest.err >&5
33640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33641 (exit $ac_status); } &&
33642 { ac_try='test -z "$ac_c_werror_flag"
33643 || test ! -s conftest.err'
33644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33645 (eval $ac_try) 2>&5
33647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33648 (exit $ac_status); }; } &&
33649 { ac_try='test -s conftest$ac_exeext'
33650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33651 (eval $ac_try) 2>&5
33653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33654 (exit $ac_status); }; }; then
33655 ol_cv_pthread_lpthreads_lexc=yes
33657 echo "$as_me: failed program was:" >&5
33658 sed 's/^/| /' conftest.$ac_ext >&5
33660 ol_cv_pthread_lpthreads_lexc=no
33662 rm -f conftest.err conftest.$ac_objext \
33663 conftest$ac_exeext conftest.$ac_ext
33665 cat >conftest.$ac_ext <<_ACEOF
33667 /* pthread test headers */
33668 #include <pthread.h>
33669 #if HAVE_PTHREADS < 7
33673 #define NULL (void*)0
33676 static void *task(p)
33679 return (void *) (p == NULL);
33683 int main(argc, argv)
33688 /* pthread test function */
33689 #ifndef PTHREAD_CREATE_DETACHED
33690 #define PTHREAD_CREATE_DETACHED 1
33694 int detach = PTHREAD_CREATE_DETACHED;
33696 #if HAVE_PTHREADS > 4
33697 /* Final pthreads */
33698 pthread_attr_t attr;
33700 status = pthread_attr_init(&attr);
33701 if( status ) return status;
33703 #if HAVE_PTHREADS < 7
33704 status = pthread_attr_setdetachstate(&attr, &detach);
33705 if( status < 0 ) status = errno;
33707 status = pthread_attr_setdetachstate(&attr, detach);
33709 if( status ) return status;
33710 status = pthread_create( &t, &attr, task, NULL );
33711 #if HAVE_PTHREADS < 7
33712 if( status < 0 ) status = errno;
33714 if( status ) return status;
33716 /* Draft 4 pthreads */
33717 status = pthread_create( &t, pthread_attr_default, task, NULL );
33718 if( status ) return errno;
33720 /* give thread a chance to complete */
33721 /* it should remain joinable and hence detachable */
33724 status = pthread_detach( &t );
33725 if( status ) return errno;
33728 #ifdef HAVE_LINUX_THREADS
33729 pthread_kill_other_threads_np();
33737 rm -f conftest$ac_exeext
33738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33739 (eval $ac_link) 2>&5
33741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33744 (eval $ac_try) 2>&5
33746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33747 (exit $ac_status); }; }; then
33748 ol_cv_pthread_lpthreads_lexc=yes
33750 echo "$as_me: program exited with status $ac_status" >&5
33751 echo "$as_me: failed program was:" >&5
33752 sed 's/^/| /' conftest.$ac_ext >&5
33754 ( exit $ac_status )
33755 ol_cv_pthread_lpthreads_lexc=no
33757 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33764 echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
33765 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6
33767 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
33768 ol_link_pthreads="-lpthreads -lexc"
33769 ol_link_threads=posix
33774 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
33775 if test "$ol_link_threads" = no ; then
33777 echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
33778 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6
33779 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
33780 echo $ECHO_N "(cached) $ECHO_C" >&6
33785 LIBS="-lpthreads $LIBS"
33787 if test "$cross_compiling" = yes; then
33788 cat >conftest.$ac_ext <<_ACEOF
33791 cat confdefs.h >>conftest.$ac_ext
33792 cat >>conftest.$ac_ext <<_ACEOF
33793 /* end confdefs.h. */
33795 /* pthread test headers */
33796 #include <pthread.h>
33797 #if HAVE_PTHREADS < 7
33801 #define NULL (void*)0
33804 static void *task(p)
33807 return (void *) (p == NULL);
33814 /* pthread test function */
33815 #ifndef PTHREAD_CREATE_DETACHED
33816 #define PTHREAD_CREATE_DETACHED 1
33820 int detach = PTHREAD_CREATE_DETACHED;
33822 #if HAVE_PTHREADS > 4
33823 /* Final pthreads */
33824 pthread_attr_t attr;
33826 status = pthread_attr_init(&attr);
33827 if( status ) return status;
33829 #if HAVE_PTHREADS < 7
33830 status = pthread_attr_setdetachstate(&attr, &detach);
33831 if( status < 0 ) status = errno;
33833 status = pthread_attr_setdetachstate(&attr, detach);
33835 if( status ) return status;
33836 status = pthread_create( &t, &attr, task, NULL );
33837 #if HAVE_PTHREADS < 7
33838 if( status < 0 ) status = errno;
33840 if( status ) return status;
33842 /* Draft 4 pthreads */
33843 status = pthread_create( &t, pthread_attr_default, task, NULL );
33844 if( status ) return errno;
33846 /* give thread a chance to complete */
33847 /* it should remain joinable and hence detachable */
33850 status = pthread_detach( &t );
33851 if( status ) return errno;
33854 #ifdef HAVE_LINUX_THREADS
33855 pthread_kill_other_threads_np();
33864 rm -f conftest.$ac_objext conftest$ac_exeext
33865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33866 (eval $ac_link) 2>conftest.er1
33868 grep -v '^ *+' conftest.er1 >conftest.err
33870 cat conftest.err >&5
33871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33872 (exit $ac_status); } &&
33873 { ac_try='test -z "$ac_c_werror_flag"
33874 || test ! -s conftest.err'
33875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33876 (eval $ac_try) 2>&5
33878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33879 (exit $ac_status); }; } &&
33880 { ac_try='test -s conftest$ac_exeext'
33881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33882 (eval $ac_try) 2>&5
33884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33885 (exit $ac_status); }; }; then
33886 ol_cv_pthread_lib_lpthreads=yes
33888 echo "$as_me: failed program was:" >&5
33889 sed 's/^/| /' conftest.$ac_ext >&5
33891 ol_cv_pthread_lib_lpthreads=no
33893 rm -f conftest.err conftest.$ac_objext \
33894 conftest$ac_exeext conftest.$ac_ext
33896 cat >conftest.$ac_ext <<_ACEOF
33898 /* pthread test headers */
33899 #include <pthread.h>
33900 #if HAVE_PTHREADS < 7
33904 #define NULL (void*)0
33907 static void *task(p)
33910 return (void *) (p == NULL);
33914 int main(argc, argv)
33919 /* pthread test function */
33920 #ifndef PTHREAD_CREATE_DETACHED
33921 #define PTHREAD_CREATE_DETACHED 1
33925 int detach = PTHREAD_CREATE_DETACHED;
33927 #if HAVE_PTHREADS > 4
33928 /* Final pthreads */
33929 pthread_attr_t attr;
33931 status = pthread_attr_init(&attr);
33932 if( status ) return status;
33934 #if HAVE_PTHREADS < 7
33935 status = pthread_attr_setdetachstate(&attr, &detach);
33936 if( status < 0 ) status = errno;
33938 status = pthread_attr_setdetachstate(&attr, detach);
33940 if( status ) return status;
33941 status = pthread_create( &t, &attr, task, NULL );
33942 #if HAVE_PTHREADS < 7
33943 if( status < 0 ) status = errno;
33945 if( status ) return status;
33947 /* Draft 4 pthreads */
33948 status = pthread_create( &t, pthread_attr_default, task, NULL );
33949 if( status ) return errno;
33951 /* give thread a chance to complete */
33952 /* it should remain joinable and hence detachable */
33955 status = pthread_detach( &t );
33956 if( status ) return errno;
33959 #ifdef HAVE_LINUX_THREADS
33960 pthread_kill_other_threads_np();
33968 rm -f conftest$ac_exeext
33969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33970 (eval $ac_link) 2>&5
33972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33973 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33975 (eval $ac_try) 2>&5
33977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33978 (exit $ac_status); }; }; then
33979 ol_cv_pthread_lib_lpthreads=yes
33981 echo "$as_me: program exited with status $ac_status" >&5
33982 echo "$as_me: failed program was:" >&5
33983 sed 's/^/| /' conftest.$ac_ext >&5
33985 ( exit $ac_status )
33986 ol_cv_pthread_lib_lpthreads=no
33988 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33995 echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
33996 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6
33998 if test $ol_cv_pthread_lib_lpthreads = yes ; then
33999 ol_link_pthreads="-lpthreads"
34000 ol_link_threads=posix
34005 if test $ol_link_threads != no ; then
34006 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
34008 save_CPPFLAGS="$CPPFLAGS"
34010 LIBS="$LTHREAD_LIBS $LIBS"
34015 for ac_func in sched_yield pthread_yield thr_yield
34017 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34018 echo "$as_me:$LINENO: checking for $ac_func" >&5
34019 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34020 if eval "test \"\${$as_ac_var+set}\" = set"; then
34021 echo $ECHO_N "(cached) $ECHO_C" >&6
34023 cat >conftest.$ac_ext <<_ACEOF
34026 cat confdefs.h >>conftest.$ac_ext
34027 cat >>conftest.$ac_ext <<_ACEOF
34028 /* end confdefs.h. */
34029 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34031 #define $ac_func innocuous_$ac_func
34033 /* System header to define __stub macros and hopefully few prototypes,
34034 which can conflict with char $ac_func (); below.
34035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34036 <limits.h> exists even on freestanding compilers. */
34039 # include <limits.h>
34041 # include <assert.h>
34046 /* Override any gcc2 internal prototype to avoid an error. */
34051 /* We use char because int might match the return type of a gcc2
34052 builtin and then its argument prototype would still apply. */
34054 /* The GNU C library defines this for functions which it implements
34055 to always fail with ENOSYS. Some functions are actually named
34056 something starting with __ and the normal name is an alias. */
34057 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34060 char (*f) () = $ac_func;
34069 return f != $ac_func;
34074 rm -f conftest.$ac_objext conftest$ac_exeext
34075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34076 (eval $ac_link) 2>conftest.er1
34078 grep -v '^ *+' conftest.er1 >conftest.err
34080 cat conftest.err >&5
34081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34082 (exit $ac_status); } &&
34083 { ac_try='test -z "$ac_c_werror_flag"
34084 || test ! -s conftest.err'
34085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34086 (eval $ac_try) 2>&5
34088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34089 (exit $ac_status); }; } &&
34090 { ac_try='test -s conftest$ac_exeext'
34091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34092 (eval $ac_try) 2>&5
34094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34095 (exit $ac_status); }; }; then
34096 eval "$as_ac_var=yes"
34098 echo "$as_me: failed program was:" >&5
34099 sed 's/^/| /' conftest.$ac_ext >&5
34101 eval "$as_ac_var=no"
34103 rm -f conftest.err conftest.$ac_objext \
34104 conftest$ac_exeext conftest.$ac_ext
34106 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34107 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34108 if test `eval echo '${'$as_ac_var'}'` = yes; then
34109 cat >>confdefs.h <<_ACEOF
34110 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34117 if test $ac_cv_func_sched_yield = no -a \
34118 $ac_cv_func_pthread_yield = no -a \
34119 $ac_cv_func_thr_yield = no ; then
34120 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
34121 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
34122 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
34123 echo $ECHO_N "(cached) $ECHO_C" >&6
34125 ac_check_lib_save_LIBS=$LIBS
34127 cat >conftest.$ac_ext <<_ACEOF
34130 cat confdefs.h >>conftest.$ac_ext
34131 cat >>conftest.$ac_ext <<_ACEOF
34132 /* end confdefs.h. */
34134 /* Override any gcc2 internal prototype to avoid an error. */
34138 /* We use char because int might match the return type of a gcc2
34139 builtin and then its argument prototype would still apply. */
34140 char sched_yield ();
34149 rm -f conftest.$ac_objext conftest$ac_exeext
34150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34151 (eval $ac_link) 2>conftest.er1
34153 grep -v '^ *+' conftest.er1 >conftest.err
34155 cat conftest.err >&5
34156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34157 (exit $ac_status); } &&
34158 { ac_try='test -z "$ac_c_werror_flag"
34159 || test ! -s conftest.err'
34160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34161 (eval $ac_try) 2>&5
34163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34164 (exit $ac_status); }; } &&
34165 { ac_try='test -s conftest$ac_exeext'
34166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34167 (eval $ac_try) 2>&5
34169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34170 (exit $ac_status); }; }; then
34171 ac_cv_lib_rt_sched_yield=yes
34173 echo "$as_me: failed program was:" >&5
34174 sed 's/^/| /' conftest.$ac_ext >&5
34176 ac_cv_lib_rt_sched_yield=no
34178 rm -f conftest.err conftest.$ac_objext \
34179 conftest$ac_exeext conftest.$ac_ext
34180 LIBS=$ac_check_lib_save_LIBS
34182 echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
34183 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
34184 if test $ac_cv_lib_rt_sched_yield = yes; then
34185 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
34187 cat >>confdefs.h <<\_ACEOF
34188 #define HAVE_SCHED_YIELD 1
34191 ac_cv_func_sched_yield=yes
34193 ac_cv_func_sched_yield=no
34197 if test $ac_cv_func_sched_yield = no -a \
34198 $ac_cv_func_pthread_yield = no -a \
34199 "$ac_cv_func_thr_yield" = no ; then
34200 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
34201 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
34206 for ac_func in pthread_kill pthread_rwlock_destroy
34208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34209 echo "$as_me:$LINENO: checking for $ac_func" >&5
34210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34211 if eval "test \"\${$as_ac_var+set}\" = set"; then
34212 echo $ECHO_N "(cached) $ECHO_C" >&6
34214 cat >conftest.$ac_ext <<_ACEOF
34217 cat confdefs.h >>conftest.$ac_ext
34218 cat >>conftest.$ac_ext <<_ACEOF
34219 /* end confdefs.h. */
34220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34221 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34222 #define $ac_func innocuous_$ac_func
34224 /* System header to define __stub macros and hopefully few prototypes,
34225 which can conflict with char $ac_func (); below.
34226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34227 <limits.h> exists even on freestanding compilers. */
34230 # include <limits.h>
34232 # include <assert.h>
34237 /* Override any gcc2 internal prototype to avoid an error. */
34242 /* We use char because int might match the return type of a gcc2
34243 builtin and then its argument prototype would still apply. */
34245 /* The GNU C library defines this for functions which it implements
34246 to always fail with ENOSYS. Some functions are actually named
34247 something starting with __ and the normal name is an alias. */
34248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34251 char (*f) () = $ac_func;
34260 return f != $ac_func;
34265 rm -f conftest.$ac_objext conftest$ac_exeext
34266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34267 (eval $ac_link) 2>conftest.er1
34269 grep -v '^ *+' conftest.er1 >conftest.err
34271 cat conftest.err >&5
34272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34273 (exit $ac_status); } &&
34274 { ac_try='test -z "$ac_c_werror_flag"
34275 || test ! -s conftest.err'
34276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34277 (eval $ac_try) 2>&5
34279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34280 (exit $ac_status); }; } &&
34281 { ac_try='test -s conftest$ac_exeext'
34282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34283 (eval $ac_try) 2>&5
34285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34286 (exit $ac_status); }; }; then
34287 eval "$as_ac_var=yes"
34289 echo "$as_me: failed program was:" >&5
34290 sed 's/^/| /' conftest.$ac_ext >&5
34292 eval "$as_ac_var=no"
34294 rm -f conftest.err conftest.$ac_objext \
34295 conftest$ac_exeext conftest.$ac_ext
34297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34298 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34299 if test `eval echo '${'$as_ac_var'}'` = yes; then
34300 cat >>confdefs.h <<_ACEOF
34301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34308 echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
34309 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6
34310 if test "${ol_cv_func_pthread_detach+set}" = set; then
34311 echo $ECHO_N "(cached) $ECHO_C" >&6
34314 cat >conftest.$ac_ext <<_ACEOF
34317 cat confdefs.h >>conftest.$ac_ext
34318 cat >>conftest.$ac_ext <<_ACEOF
34319 /* end confdefs.h. */
34321 #include <pthread.h>
34323 #define NULL (void*)0
34329 pthread_detach(NULL);
34334 rm -f conftest.$ac_objext conftest$ac_exeext
34335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34336 (eval $ac_link) 2>conftest.er1
34338 grep -v '^ *+' conftest.er1 >conftest.err
34340 cat conftest.err >&5
34341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34342 (exit $ac_status); } &&
34343 { ac_try='test -z "$ac_c_werror_flag"
34344 || test ! -s conftest.err'
34345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34346 (eval $ac_try) 2>&5
34348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34349 (exit $ac_status); }; } &&
34350 { ac_try='test -s conftest$ac_exeext'
34351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34352 (eval $ac_try) 2>&5
34354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34355 (exit $ac_status); }; }; then
34356 ol_cv_func_pthread_detach=yes
34358 echo "$as_me: failed program was:" >&5
34359 sed 's/^/| /' conftest.$ac_ext >&5
34361 ol_cv_func_pthread_detach=no
34363 rm -f conftest.err conftest.$ac_objext \
34364 conftest$ac_exeext conftest.$ac_ext
34367 echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
34368 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6
34370 if test $ol_cv_func_pthread_detach = no ; then
34371 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
34372 echo "$as_me: error: could not locate pthread_detach()" >&2;}
34373 { (exit 1); exit 1; }; }
34377 cat >>confdefs.h <<\_ACEOF
34378 #define HAVE_PTHREAD_DETACH 1
34387 pthread_setconcurrency \
34388 pthread_getconcurrency \
34389 thr_setconcurrency \
34390 thr_getconcurrency \
34393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34394 echo "$as_me:$LINENO: checking for $ac_func" >&5
34395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34396 if eval "test \"\${$as_ac_var+set}\" = set"; then
34397 echo $ECHO_N "(cached) $ECHO_C" >&6
34399 cat >conftest.$ac_ext <<_ACEOF
34402 cat confdefs.h >>conftest.$ac_ext
34403 cat >>conftest.$ac_ext <<_ACEOF
34404 /* end confdefs.h. */
34405 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34407 #define $ac_func innocuous_$ac_func
34409 /* System header to define __stub macros and hopefully few prototypes,
34410 which can conflict with char $ac_func (); below.
34411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34412 <limits.h> exists even on freestanding compilers. */
34415 # include <limits.h>
34417 # include <assert.h>
34422 /* Override any gcc2 internal prototype to avoid an error. */
34427 /* We use char because int might match the return type of a gcc2
34428 builtin and then its argument prototype would still apply. */
34430 /* The GNU C library defines this for functions which it implements
34431 to always fail with ENOSYS. Some functions are actually named
34432 something starting with __ and the normal name is an alias. */
34433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34436 char (*f) () = $ac_func;
34445 return f != $ac_func;
34450 rm -f conftest.$ac_objext conftest$ac_exeext
34451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34452 (eval $ac_link) 2>conftest.er1
34454 grep -v '^ *+' conftest.er1 >conftest.err
34456 cat conftest.err >&5
34457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34458 (exit $ac_status); } &&
34459 { ac_try='test -z "$ac_c_werror_flag"
34460 || test ! -s conftest.err'
34461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34462 (eval $ac_try) 2>&5
34464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34465 (exit $ac_status); }; } &&
34466 { ac_try='test -s conftest$ac_exeext'
34467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34468 (eval $ac_try) 2>&5
34470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34471 (exit $ac_status); }; }; then
34472 eval "$as_ac_var=yes"
34474 echo "$as_me: failed program was:" >&5
34475 sed 's/^/| /' conftest.$ac_ext >&5
34477 eval "$as_ac_var=no"
34479 rm -f conftest.err conftest.$ac_objext \
34480 conftest$ac_exeext conftest.$ac_ext
34482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34483 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34484 if test `eval echo '${'$as_ac_var'}'` = yes; then
34485 cat >>confdefs.h <<_ACEOF
34486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34495 for ac_func in pthread_kill_other_threads_np
34497 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34498 echo "$as_me:$LINENO: checking for $ac_func" >&5
34499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
34500 if eval "test \"\${$as_ac_var+set}\" = set"; then
34501 echo $ECHO_N "(cached) $ECHO_C" >&6
34503 cat >conftest.$ac_ext <<_ACEOF
34506 cat confdefs.h >>conftest.$ac_ext
34507 cat >>conftest.$ac_ext <<_ACEOF
34508 /* end confdefs.h. */
34509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34511 #define $ac_func innocuous_$ac_func
34513 /* System header to define __stub macros and hopefully few prototypes,
34514 which can conflict with char $ac_func (); below.
34515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34516 <limits.h> exists even on freestanding compilers. */
34519 # include <limits.h>
34521 # include <assert.h>
34526 /* Override any gcc2 internal prototype to avoid an error. */
34531 /* We use char because int might match the return type of a gcc2
34532 builtin and then its argument prototype would still apply. */
34534 /* The GNU C library defines this for functions which it implements
34535 to always fail with ENOSYS. Some functions are actually named
34536 something starting with __ and the normal name is an alias. */
34537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
34540 char (*f) () = $ac_func;
34549 return f != $ac_func;
34554 rm -f conftest.$ac_objext conftest$ac_exeext
34555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34556 (eval $ac_link) 2>conftest.er1
34558 grep -v '^ *+' conftest.er1 >conftest.err
34560 cat conftest.err >&5
34561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34562 (exit $ac_status); } &&
34563 { ac_try='test -z "$ac_c_werror_flag"
34564 || test ! -s conftest.err'
34565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34566 (eval $ac_try) 2>&5
34568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34569 (exit $ac_status); }; } &&
34570 { ac_try='test -s conftest$ac_exeext'
34571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34572 (eval $ac_try) 2>&5
34574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34575 (exit $ac_status); }; }; then
34576 eval "$as_ac_var=yes"
34578 echo "$as_me: failed program was:" >&5
34579 sed 's/^/| /' conftest.$ac_ext >&5
34581 eval "$as_ac_var=no"
34583 rm -f conftest.err conftest.$ac_objext \
34584 conftest$ac_exeext conftest.$ac_ext
34586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
34587 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
34588 if test `eval echo '${'$as_ac_var'}'` = yes; then
34589 cat >>confdefs.h <<_ACEOF
34590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34596 echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
34597 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6
34598 if test "${ol_cv_sys_linux_threads+set}" = set; then
34599 echo $ECHO_N "(cached) $ECHO_C" >&6
34601 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
34603 echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
34604 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6
34609 echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
34610 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6
34611 if test "${ol_cv_linux_threads+set}" = set; then
34612 echo $ECHO_N "(cached) $ECHO_C" >&6
34615 if test $ol_cv_header_linux_threads = yes -a \
34616 $ol_cv_sys_linux_threads = yes; then
34617 ol_cv_linux_threads=yes
34618 elif test $ol_cv_header_linux_threads = no -a \
34619 $ol_cv_sys_linux_threads = no; then
34620 ol_cv_linux_threads=no
34622 ol_cv_linux_threads=error
34626 echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
34627 echo "${ECHO_T}$ol_cv_linux_threads" >&6
34630 if test $ol_cv_linux_threads = error; then
34631 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
34632 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
34633 { (exit 1); exit 1; }; };
34636 echo "$as_me:$LINENO: checking if pthread_create() works" >&5
34637 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6
34638 if test "${ol_cv_pthread_create_works+set}" = set; then
34639 echo $ECHO_N "(cached) $ECHO_C" >&6
34642 if test "$cross_compiling" = yes; then
34643 ol_cv_pthread_create_works=yes
34645 cat >conftest.$ac_ext <<_ACEOF
34647 /* pthread test headers */
34648 #include <pthread.h>
34649 #if HAVE_PTHREADS < 7
34653 #define NULL (void*)0
34656 static void *task(p)
34659 return (void *) (p == NULL);
34663 int main(argc, argv)
34668 /* pthread test function */
34669 #ifndef PTHREAD_CREATE_DETACHED
34670 #define PTHREAD_CREATE_DETACHED 1
34674 int detach = PTHREAD_CREATE_DETACHED;
34676 #if HAVE_PTHREADS > 4
34677 /* Final pthreads */
34678 pthread_attr_t attr;
34680 status = pthread_attr_init(&attr);
34681 if( status ) return status;
34683 #if HAVE_PTHREADS < 7
34684 status = pthread_attr_setdetachstate(&attr, &detach);
34685 if( status < 0 ) status = errno;
34687 status = pthread_attr_setdetachstate(&attr, detach);
34689 if( status ) return status;
34690 status = pthread_create( &t, &attr, task, NULL );
34691 #if HAVE_PTHREADS < 7
34692 if( status < 0 ) status = errno;
34694 if( status ) return status;
34696 /* Draft 4 pthreads */
34697 status = pthread_create( &t, pthread_attr_default, task, NULL );
34698 if( status ) return errno;
34700 /* give thread a chance to complete */
34701 /* it should remain joinable and hence detachable */
34704 status = pthread_detach( &t );
34705 if( status ) return errno;
34708 #ifdef HAVE_LINUX_THREADS
34709 pthread_kill_other_threads_np();
34717 rm -f conftest$ac_exeext
34718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34719 (eval $ac_link) 2>&5
34721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34722 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34724 (eval $ac_try) 2>&5
34726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34727 (exit $ac_status); }; }; then
34728 ol_cv_pthread_create_works=yes
34730 echo "$as_me: program exited with status $ac_status" >&5
34731 echo "$as_me: failed program was:" >&5
34732 sed 's/^/| /' conftest.$ac_ext >&5
34734 ( exit $ac_status )
34735 ol_cv_pthread_create_works=no
34737 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34740 echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
34741 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6
34743 if test $ol_cv_pthread_create_works = no ; then
34744 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
34745 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
34746 { (exit 1); exit 1; }; }
34749 if test $ol_with_yielding_select = auto ; then
34750 echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
34751 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6
34752 if test "${ol_cv_pthread_select_yields+set}" = set; then
34753 echo $ECHO_N "(cached) $ECHO_C" >&6
34756 if test "$cross_compiling" = yes; then
34757 ol_cv_pthread_select_yields=cross
34759 cat >conftest.$ac_ext <<_ACEOF
34762 cat confdefs.h >>conftest.$ac_ext
34763 cat >>conftest.$ac_ext <<_ACEOF
34764 /* end confdefs.h. */
34766 #include <sys/types.h>
34767 #include <sys/time.h>
34768 #include <unistd.h>
34769 #include <pthread.h>
34771 #define NULL (void*) 0
34774 static int fildes[2];
34776 static void *task(p)
34788 FD_SET(fildes[0], &rfds);
34790 /* we're not interested in any fds */
34791 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
34798 exit(0); /* if we exit here, the select blocked the whole process */
34801 int main(argc, argv)
34807 /* create a pipe to select */
34808 if(pipe(&fildes[0])) {
34813 #ifdef HAVE_PTHREAD_SETCONCURRENCY
34814 (void) pthread_setconcurrency(2);
34816 #ifdef HAVE_THR_SETCONCURRENCY
34817 /* Set Solaris LWP concurrency to 2 */
34818 thr_setconcurrency(2);
34822 #if HAVE_PTHREADS < 6
34823 pthread_create(&t, pthread_attr_default, task, NULL);
34825 pthread_create(&t, NULL, task, NULL);
34828 /* make sure task runs first */
34831 #elif defined( HAVE_SCHED_YIELD )
34833 #elif defined( HAVE_PTHREAD_YIELD )
34840 rm -f conftest$ac_exeext
34841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34842 (eval $ac_link) 2>&5
34844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34847 (eval $ac_try) 2>&5
34849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34850 (exit $ac_status); }; }; then
34851 ol_cv_pthread_select_yields=no
34853 echo "$as_me: program exited with status $ac_status" >&5
34854 echo "$as_me: failed program was:" >&5
34855 sed 's/^/| /' conftest.$ac_ext >&5
34857 ( exit $ac_status )
34858 ol_cv_pthread_select_yields=yes
34860 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34863 echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
34864 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6
34866 if test $ol_cv_pthread_select_yields = cross ; then
34867 { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
34868 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
34869 { (exit 1); exit 1; }; }
34872 if test $ol_cv_pthread_select_yields = yes ; then
34873 ol_with_yielding_select=yes
34877 CPPFLAGS="$save_CPPFLAGS"
34880 { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
34881 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
34882 { (exit 1); exit 1; }; }
34886 if test $ol_with_threads = posix ; then
34887 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
34888 echo "$as_me: error: could not locate POSIX Threads" >&2;}
34889 { (exit 1); exit 1; }; }
34893 if test $ol_with_threads = auto -o $ol_with_threads = yes \
34894 -o $ol_with_threads = mach ; then
34898 for ac_header in mach/cthreads.h cthreads.h
34900 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
34901 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34902 echo "$as_me:$LINENO: checking for $ac_header" >&5
34903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
34904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
34905 echo $ECHO_N "(cached) $ECHO_C" >&6
34907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
34908 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
34910 # Is the header compilable?
34911 echo "$as_me:$LINENO: checking $ac_header usability" >&5
34912 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
34913 cat >conftest.$ac_ext <<_ACEOF
34916 cat confdefs.h >>conftest.$ac_ext
34917 cat >>conftest.$ac_ext <<_ACEOF
34918 /* end confdefs.h. */
34919 $ac_includes_default
34920 #include <$ac_header>
34922 rm -f conftest.$ac_objext
34923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
34924 (eval $ac_compile) 2>conftest.er1
34926 grep -v '^ *+' conftest.er1 >conftest.err
34928 cat conftest.err >&5
34929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34930 (exit $ac_status); } &&
34931 { ac_try='test -z "$ac_c_werror_flag"
34932 || test ! -s conftest.err'
34933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34934 (eval $ac_try) 2>&5
34936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34937 (exit $ac_status); }; } &&
34938 { ac_try='test -s conftest.$ac_objext'
34939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34940 (eval $ac_try) 2>&5
34942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34943 (exit $ac_status); }; }; then
34944 ac_header_compiler=yes
34946 echo "$as_me: failed program was:" >&5
34947 sed 's/^/| /' conftest.$ac_ext >&5
34949 ac_header_compiler=no
34951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
34952 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34953 echo "${ECHO_T}$ac_header_compiler" >&6
34955 # Is the header present?
34956 echo "$as_me:$LINENO: checking $ac_header presence" >&5
34957 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
34958 cat >conftest.$ac_ext <<_ACEOF
34961 cat confdefs.h >>conftest.$ac_ext
34962 cat >>conftest.$ac_ext <<_ACEOF
34963 /* end confdefs.h. */
34964 #include <$ac_header>
34966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
34967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
34969 grep -v '^ *+' conftest.er1 >conftest.err
34971 cat conftest.err >&5
34972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
34973 (exit $ac_status); } >/dev/null; then
34974 if test -s conftest.err; then
34975 ac_cpp_err=$ac_c_preproc_warn_flag
34976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
34983 if test -z "$ac_cpp_err"; then
34984 ac_header_preproc=yes
34986 echo "$as_me: failed program was:" >&5
34987 sed 's/^/| /' conftest.$ac_ext >&5
34989 ac_header_preproc=no
34991 rm -f conftest.err conftest.$ac_ext
34992 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34993 echo "${ECHO_T}$ac_header_preproc" >&6
34995 # So? What about this header?
34996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34998 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34999 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35001 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35002 ac_header_preproc=yes
35005 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35006 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35007 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35008 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35009 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35010 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35011 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35012 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35015 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35016 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35019 ## ------------------------------------------ ##
35020 ## Report this to the AC_PACKAGE_NAME lists. ##
35021 ## ------------------------------------------ ##
35024 sed "s/^/$as_me: WARNING: /" >&2
35027 echo "$as_me:$LINENO: checking for $ac_header" >&5
35028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35030 echo $ECHO_N "(cached) $ECHO_C" >&6
35032 eval "$as_ac_Header=\$ac_header_preproc"
35034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35039 cat >>confdefs.h <<_ACEOF
35040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35047 if test $ac_cv_header_mach_cthreads_h = yes ; then
35048 ol_with_threads=found
35050 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35051 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35052 if test "${ac_cv_func_cthread_fork+set}" = set; then
35053 echo $ECHO_N "(cached) $ECHO_C" >&6
35055 cat >conftest.$ac_ext <<_ACEOF
35058 cat confdefs.h >>conftest.$ac_ext
35059 cat >>conftest.$ac_ext <<_ACEOF
35060 /* end confdefs.h. */
35061 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35063 #define cthread_fork innocuous_cthread_fork
35065 /* System header to define __stub macros and hopefully few prototypes,
35066 which can conflict with char cthread_fork (); below.
35067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35068 <limits.h> exists even on freestanding compilers. */
35071 # include <limits.h>
35073 # include <assert.h>
35076 #undef cthread_fork
35078 /* Override any gcc2 internal prototype to avoid an error. */
35083 /* We use char because int might match the return type of a gcc2
35084 builtin and then its argument prototype would still apply. */
35085 char cthread_fork ();
35086 /* The GNU C library defines this for functions which it implements
35087 to always fail with ENOSYS. Some functions are actually named
35088 something starting with __ and the normal name is an alias. */
35089 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35092 char (*f) () = cthread_fork;
35101 return f != cthread_fork;
35106 rm -f conftest.$ac_objext conftest$ac_exeext
35107 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35108 (eval $ac_link) 2>conftest.er1
35110 grep -v '^ *+' conftest.er1 >conftest.err
35112 cat conftest.err >&5
35113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35114 (exit $ac_status); } &&
35115 { ac_try='test -z "$ac_c_werror_flag"
35116 || test ! -s conftest.err'
35117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35118 (eval $ac_try) 2>&5
35120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35121 (exit $ac_status); }; } &&
35122 { ac_try='test -s conftest$ac_exeext'
35123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35124 (eval $ac_try) 2>&5
35126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35127 (exit $ac_status); }; }; then
35128 ac_cv_func_cthread_fork=yes
35130 echo "$as_me: failed program was:" >&5
35131 sed 's/^/| /' conftest.$ac_ext >&5
35133 ac_cv_func_cthread_fork=no
35135 rm -f conftest.err conftest.$ac_objext \
35136 conftest$ac_exeext conftest.$ac_ext
35138 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35139 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35140 if test $ac_cv_func_cthread_fork = yes; then
35141 ol_link_threads=yes
35145 if test $ol_link_threads = no ; then
35146 echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
35147 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6
35148 if test "${ol_cv_cthread_all_load+set}" = set; then
35149 echo $ECHO_N "(cached) $ECHO_C" >&6
35153 LIBS="-all_load $LIBS"
35154 cat >conftest.$ac_ext <<_ACEOF
35157 cat confdefs.h >>conftest.$ac_ext
35158 cat >>conftest.$ac_ext <<_ACEOF
35159 /* end confdefs.h. */
35160 #include <mach/cthreads.h>
35165 cthread_fork((void *)0, (void *)0);
35171 rm -f conftest.$ac_objext conftest$ac_exeext
35172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35173 (eval $ac_link) 2>conftest.er1
35175 grep -v '^ *+' conftest.er1 >conftest.err
35177 cat conftest.err >&5
35178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35179 (exit $ac_status); } &&
35180 { ac_try='test -z "$ac_c_werror_flag"
35181 || test ! -s conftest.err'
35182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35183 (eval $ac_try) 2>&5
35185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35186 (exit $ac_status); }; } &&
35187 { ac_try='test -s conftest$ac_exeext'
35188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35189 (eval $ac_try) 2>&5
35191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35192 (exit $ac_status); }; }; then
35193 ol_cv_cthread_all_load=yes
35195 echo "$as_me: failed program was:" >&5
35196 sed 's/^/| /' conftest.$ac_ext >&5
35198 ol_cv_cthread_all_load=no
35200 rm -f conftest.err conftest.$ac_objext \
35201 conftest$ac_exeext conftest.$ac_ext
35205 echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
35206 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6
35208 if test $ol_cv_cthread_all_load = yes ; then
35209 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
35210 ol_link_threads=mach
35211 ol_with_threads=found
35215 elif test $ac_cv_header_cthreads_h = yes ; then
35217 ol_with_threads=found
35220 LIBS="$LIBS -lthreads"
35221 echo "$as_me:$LINENO: checking for cthread_fork" >&5
35222 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6
35223 if test "${ac_cv_func_cthread_fork+set}" = set; then
35224 echo $ECHO_N "(cached) $ECHO_C" >&6
35226 cat >conftest.$ac_ext <<_ACEOF
35229 cat confdefs.h >>conftest.$ac_ext
35230 cat >>conftest.$ac_ext <<_ACEOF
35231 /* end confdefs.h. */
35232 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
35233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35234 #define cthread_fork innocuous_cthread_fork
35236 /* System header to define __stub macros and hopefully few prototypes,
35237 which can conflict with char cthread_fork (); below.
35238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35239 <limits.h> exists even on freestanding compilers. */
35242 # include <limits.h>
35244 # include <assert.h>
35247 #undef cthread_fork
35249 /* Override any gcc2 internal prototype to avoid an error. */
35254 /* We use char because int might match the return type of a gcc2
35255 builtin and then its argument prototype would still apply. */
35256 char cthread_fork ();
35257 /* The GNU C library defines this for functions which it implements
35258 to always fail with ENOSYS. Some functions are actually named
35259 something starting with __ and the normal name is an alias. */
35260 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
35263 char (*f) () = cthread_fork;
35272 return f != cthread_fork;
35277 rm -f conftest.$ac_objext conftest$ac_exeext
35278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35279 (eval $ac_link) 2>conftest.er1
35281 grep -v '^ *+' conftest.er1 >conftest.err
35283 cat conftest.err >&5
35284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35285 (exit $ac_status); } &&
35286 { ac_try='test -z "$ac_c_werror_flag"
35287 || test ! -s conftest.err'
35288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35289 (eval $ac_try) 2>&5
35291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35292 (exit $ac_status); }; } &&
35293 { ac_try='test -s conftest$ac_exeext'
35294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35295 (eval $ac_try) 2>&5
35297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35298 (exit $ac_status); }; }; then
35299 ac_cv_func_cthread_fork=yes
35301 echo "$as_me: failed program was:" >&5
35302 sed 's/^/| /' conftest.$ac_ext >&5
35304 ac_cv_func_cthread_fork=no
35306 rm -f conftest.err conftest.$ac_objext \
35307 conftest$ac_exeext conftest.$ac_ext
35309 echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
35310 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6
35311 if test $ac_cv_func_cthread_fork = yes; then
35312 ol_link_threads=yes
35317 if test $ol_link_threads = yes ; then
35318 LTHREAD_LIBS="-lthreads"
35319 ol_link_threads=mach
35320 ol_with_threads=found
35322 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35323 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35324 { (exit 1); exit 1; }; }
35327 elif test $ol_with_threads = mach ; then
35328 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
35329 echo "$as_me: error: could not locate Mach CThreads" >&2;}
35330 { (exit 1); exit 1; }; }
35333 if test $ol_link_threads = mach ; then
35335 cat >>confdefs.h <<\_ACEOF
35336 #define HAVE_MACH_CTHREADS 1
35339 elif test $ol_with_threads = found ; then
35340 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
35341 echo "$as_me: error: could not link with Mach CThreads" >&2;}
35342 { (exit 1); exit 1; }; }
35346 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35347 -o $ol_with_threads = pth ; then
35350 for ac_header in pth.h
35352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35354 echo "$as_me:$LINENO: checking for $ac_header" >&5
35355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35356 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35357 echo $ECHO_N "(cached) $ECHO_C" >&6
35359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35360 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35362 # Is the header compilable?
35363 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35364 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35365 cat >conftest.$ac_ext <<_ACEOF
35368 cat confdefs.h >>conftest.$ac_ext
35369 cat >>conftest.$ac_ext <<_ACEOF
35370 /* end confdefs.h. */
35371 $ac_includes_default
35372 #include <$ac_header>
35374 rm -f conftest.$ac_objext
35375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35376 (eval $ac_compile) 2>conftest.er1
35378 grep -v '^ *+' conftest.er1 >conftest.err
35380 cat conftest.err >&5
35381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35382 (exit $ac_status); } &&
35383 { ac_try='test -z "$ac_c_werror_flag"
35384 || test ! -s conftest.err'
35385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35386 (eval $ac_try) 2>&5
35388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35389 (exit $ac_status); }; } &&
35390 { ac_try='test -s conftest.$ac_objext'
35391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35392 (eval $ac_try) 2>&5
35394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35395 (exit $ac_status); }; }; then
35396 ac_header_compiler=yes
35398 echo "$as_me: failed program was:" >&5
35399 sed 's/^/| /' conftest.$ac_ext >&5
35401 ac_header_compiler=no
35403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35404 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35405 echo "${ECHO_T}$ac_header_compiler" >&6
35407 # Is the header present?
35408 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35410 cat >conftest.$ac_ext <<_ACEOF
35413 cat confdefs.h >>conftest.$ac_ext
35414 cat >>conftest.$ac_ext <<_ACEOF
35415 /* end confdefs.h. */
35416 #include <$ac_header>
35418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35419 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35421 grep -v '^ *+' conftest.er1 >conftest.err
35423 cat conftest.err >&5
35424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35425 (exit $ac_status); } >/dev/null; then
35426 if test -s conftest.err; then
35427 ac_cpp_err=$ac_c_preproc_warn_flag
35428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35435 if test -z "$ac_cpp_err"; then
35436 ac_header_preproc=yes
35438 echo "$as_me: failed program was:" >&5
35439 sed 's/^/| /' conftest.$ac_ext >&5
35441 ac_header_preproc=no
35443 rm -f conftest.err conftest.$ac_ext
35444 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35445 echo "${ECHO_T}$ac_header_preproc" >&6
35447 # So? What about this header?
35448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35450 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35451 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35452 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35453 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35454 ac_header_preproc=yes
35457 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35458 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35459 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35460 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35461 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35462 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35463 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35464 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35466 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35467 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35468 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35471 ## ------------------------------------------ ##
35472 ## Report this to the AC_PACKAGE_NAME lists. ##
35473 ## ------------------------------------------ ##
35476 sed "s/^/$as_me: WARNING: /" >&2
35479 echo "$as_me:$LINENO: checking for $ac_header" >&5
35480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35482 echo $ECHO_N "(cached) $ECHO_C" >&6
35484 eval "$as_ac_Header=\$ac_header_preproc"
35486 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35487 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35491 cat >>confdefs.h <<_ACEOF
35492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35500 if test $ac_cv_header_pth_h = yes ; then
35501 echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
35502 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6
35503 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
35504 echo $ECHO_N "(cached) $ECHO_C" >&6
35506 ac_check_lib_save_LIBS=$LIBS
35508 cat >conftest.$ac_ext <<_ACEOF
35511 cat confdefs.h >>conftest.$ac_ext
35512 cat >>conftest.$ac_ext <<_ACEOF
35513 /* end confdefs.h. */
35515 /* Override any gcc2 internal prototype to avoid an error. */
35519 /* We use char because int might match the return type of a gcc2
35520 builtin and then its argument prototype would still apply. */
35521 char pth_version ();
35530 rm -f conftest.$ac_objext conftest$ac_exeext
35531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35532 (eval $ac_link) 2>conftest.er1
35534 grep -v '^ *+' conftest.er1 >conftest.err
35536 cat conftest.err >&5
35537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35538 (exit $ac_status); } &&
35539 { ac_try='test -z "$ac_c_werror_flag"
35540 || test ! -s conftest.err'
35541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35542 (eval $ac_try) 2>&5
35544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35545 (exit $ac_status); }; } &&
35546 { ac_try='test -s conftest$ac_exeext'
35547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35548 (eval $ac_try) 2>&5
35550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35551 (exit $ac_status); }; }; then
35552 ac_cv_lib_pth_pth_version=yes
35554 echo "$as_me: failed program was:" >&5
35555 sed 's/^/| /' conftest.$ac_ext >&5
35557 ac_cv_lib_pth_pth_version=no
35559 rm -f conftest.err conftest.$ac_objext \
35560 conftest$ac_exeext conftest.$ac_ext
35561 LIBS=$ac_check_lib_save_LIBS
35563 echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
35564 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6
35565 if test $ac_cv_lib_pth_pth_version = yes; then
35572 if test $have_pth = yes ; then
35574 cat >>confdefs.h <<\_ACEOF
35575 #define HAVE_GNU_PTH 1
35578 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
35579 ol_link_threads=pth
35580 ol_with_threads=found
35582 if test $ol_with_yielding_select = auto ; then
35583 ol_with_yielding_select=yes
35589 if test $ol_with_threads = auto -o $ol_with_threads = yes \
35590 -o $ol_with_threads = lwp ; then
35594 for ac_header in thread.h synch.h
35596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35598 echo "$as_me:$LINENO: checking for $ac_header" >&5
35599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35601 echo $ECHO_N "(cached) $ECHO_C" >&6
35603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35606 # Is the header compilable?
35607 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35609 cat >conftest.$ac_ext <<_ACEOF
35612 cat confdefs.h >>conftest.$ac_ext
35613 cat >>conftest.$ac_ext <<_ACEOF
35614 /* end confdefs.h. */
35615 $ac_includes_default
35616 #include <$ac_header>
35618 rm -f conftest.$ac_objext
35619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35620 (eval $ac_compile) 2>conftest.er1
35622 grep -v '^ *+' conftest.er1 >conftest.err
35624 cat conftest.err >&5
35625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35626 (exit $ac_status); } &&
35627 { ac_try='test -z "$ac_c_werror_flag"
35628 || test ! -s conftest.err'
35629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35630 (eval $ac_try) 2>&5
35632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35633 (exit $ac_status); }; } &&
35634 { ac_try='test -s conftest.$ac_objext'
35635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35636 (eval $ac_try) 2>&5
35638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35639 (exit $ac_status); }; }; then
35640 ac_header_compiler=yes
35642 echo "$as_me: failed program was:" >&5
35643 sed 's/^/| /' conftest.$ac_ext >&5
35645 ac_header_compiler=no
35647 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35649 echo "${ECHO_T}$ac_header_compiler" >&6
35651 # Is the header present?
35652 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35653 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35654 cat >conftest.$ac_ext <<_ACEOF
35657 cat confdefs.h >>conftest.$ac_ext
35658 cat >>conftest.$ac_ext <<_ACEOF
35659 /* end confdefs.h. */
35660 #include <$ac_header>
35662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
35663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
35665 grep -v '^ *+' conftest.er1 >conftest.err
35667 cat conftest.err >&5
35668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35669 (exit $ac_status); } >/dev/null; then
35670 if test -s conftest.err; then
35671 ac_cpp_err=$ac_c_preproc_warn_flag
35672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
35679 if test -z "$ac_cpp_err"; then
35680 ac_header_preproc=yes
35682 echo "$as_me: failed program was:" >&5
35683 sed 's/^/| /' conftest.$ac_ext >&5
35685 ac_header_preproc=no
35687 rm -f conftest.err conftest.$ac_ext
35688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35689 echo "${ECHO_T}$ac_header_preproc" >&6
35691 # So? What about this header?
35692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35694 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35695 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35697 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35698 ac_header_preproc=yes
35701 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35702 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35703 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
35704 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
35705 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35706 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35707 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
35708 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
35709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35711 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35712 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35715 ## ------------------------------------------ ##
35716 ## Report this to the AC_PACKAGE_NAME lists. ##
35717 ## ------------------------------------------ ##
35720 sed "s/^/$as_me: WARNING: /" >&2
35723 echo "$as_me:$LINENO: checking for $ac_header" >&5
35724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35725 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35726 echo $ECHO_N "(cached) $ECHO_C" >&6
35728 eval "$as_ac_Header=\$ac_header_preproc"
35730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35731 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35735 cat >>confdefs.h <<_ACEOF
35736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35743 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
35744 echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
35745 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6
35746 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
35747 echo $ECHO_N "(cached) $ECHO_C" >&6
35749 ac_check_lib_save_LIBS=$LIBS
35750 LIBS="-lthread $LIBS"
35751 cat >conftest.$ac_ext <<_ACEOF
35754 cat confdefs.h >>conftest.$ac_ext
35755 cat >>conftest.$ac_ext <<_ACEOF
35756 /* end confdefs.h. */
35758 /* Override any gcc2 internal prototype to avoid an error. */
35762 /* We use char because int might match the return type of a gcc2
35763 builtin and then its argument prototype would still apply. */
35764 char thr_create ();
35773 rm -f conftest.$ac_objext conftest$ac_exeext
35774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35775 (eval $ac_link) 2>conftest.er1
35777 grep -v '^ *+' conftest.er1 >conftest.err
35779 cat conftest.err >&5
35780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35781 (exit $ac_status); } &&
35782 { ac_try='test -z "$ac_c_werror_flag"
35783 || test ! -s conftest.err'
35784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35785 (eval $ac_try) 2>&5
35787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35788 (exit $ac_status); }; } &&
35789 { ac_try='test -s conftest$ac_exeext'
35790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35791 (eval $ac_try) 2>&5
35793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35794 (exit $ac_status); }; }; then
35795 ac_cv_lib_thread_thr_create=yes
35797 echo "$as_me: failed program was:" >&5
35798 sed 's/^/| /' conftest.$ac_ext >&5
35800 ac_cv_lib_thread_thr_create=no
35802 rm -f conftest.err conftest.$ac_objext \
35803 conftest$ac_exeext conftest.$ac_ext
35804 LIBS=$ac_check_lib_save_LIBS
35806 echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
35807 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6
35808 if test $ac_cv_lib_thread_thr_create = yes; then
35815 if test $have_thr = yes ; then
35817 cat >>confdefs.h <<\_ACEOF
35821 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
35822 ol_link_threads=thr
35824 if test $ol_with_yielding_select = auto ; then
35825 ol_with_yielding_select=yes
35831 thr_setconcurrency \
35832 thr_getconcurrency \
35835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35836 echo "$as_me:$LINENO: checking for $ac_func" >&5
35837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
35838 if eval "test \"\${$as_ac_var+set}\" = set"; then
35839 echo $ECHO_N "(cached) $ECHO_C" >&6
35841 cat >conftest.$ac_ext <<_ACEOF
35844 cat confdefs.h >>conftest.$ac_ext
35845 cat >>conftest.$ac_ext <<_ACEOF
35846 /* end confdefs.h. */
35847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35849 #define $ac_func innocuous_$ac_func
35851 /* System header to define __stub macros and hopefully few prototypes,
35852 which can conflict with char $ac_func (); below.
35853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35854 <limits.h> exists even on freestanding compilers. */
35857 # include <limits.h>
35859 # include <assert.h>
35864 /* Override any gcc2 internal prototype to avoid an error. */
35869 /* We use char because int might match the return type of a gcc2
35870 builtin and then its argument prototype would still apply. */
35872 /* The GNU C library defines this for functions which it implements
35873 to always fail with ENOSYS. Some functions are actually named
35874 something starting with __ and the normal name is an alias. */
35875 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
35878 char (*f) () = $ac_func;
35887 return f != $ac_func;
35892 rm -f conftest.$ac_objext conftest$ac_exeext
35893 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
35894 (eval $ac_link) 2>conftest.er1
35896 grep -v '^ *+' conftest.er1 >conftest.err
35898 cat conftest.err >&5
35899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35900 (exit $ac_status); } &&
35901 { ac_try='test -z "$ac_c_werror_flag"
35902 || test ! -s conftest.err'
35903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35904 (eval $ac_try) 2>&5
35906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35907 (exit $ac_status); }; } &&
35908 { ac_try='test -s conftest$ac_exeext'
35909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35910 (eval $ac_try) 2>&5
35912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35913 (exit $ac_status); }; }; then
35914 eval "$as_ac_var=yes"
35916 echo "$as_me: failed program was:" >&5
35917 sed 's/^/| /' conftest.$ac_ext >&5
35919 eval "$as_ac_var=no"
35921 rm -f conftest.err conftest.$ac_objext \
35922 conftest$ac_exeext conftest.$ac_ext
35924 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
35925 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
35926 if test `eval echo '${'$as_ac_var'}'` = yes; then
35927 cat >>confdefs.h <<_ACEOF
35928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
35938 for ac_header in lwp/lwp.h
35940 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35941 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35942 echo "$as_me:$LINENO: checking for $ac_header" >&5
35943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
35944 if eval "test \"\${$as_ac_Header+set}\" = set"; then
35945 echo $ECHO_N "(cached) $ECHO_C" >&6
35947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
35948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
35950 # Is the header compilable?
35951 echo "$as_me:$LINENO: checking $ac_header usability" >&5
35952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
35953 cat >conftest.$ac_ext <<_ACEOF
35956 cat confdefs.h >>conftest.$ac_ext
35957 cat >>conftest.$ac_ext <<_ACEOF
35958 /* end confdefs.h. */
35959 $ac_includes_default
35960 #include <$ac_header>
35962 rm -f conftest.$ac_objext
35963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35964 (eval $ac_compile) 2>conftest.er1
35966 grep -v '^ *+' conftest.er1 >conftest.err
35968 cat conftest.err >&5
35969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35970 (exit $ac_status); } &&
35971 { ac_try='test -z "$ac_c_werror_flag"
35972 || test ! -s conftest.err'
35973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35974 (eval $ac_try) 2>&5
35976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35977 (exit $ac_status); }; } &&
35978 { ac_try='test -s conftest.$ac_objext'
35979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35980 (eval $ac_try) 2>&5
35982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
35983 (exit $ac_status); }; }; then
35984 ac_header_compiler=yes
35986 echo "$as_me: failed program was:" >&5
35987 sed 's/^/| /' conftest.$ac_ext >&5
35989 ac_header_compiler=no
35991 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
35992 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35993 echo "${ECHO_T}$ac_header_compiler" >&6
35995 # Is the header present?
35996 echo "$as_me:$LINENO: checking $ac_header presence" >&5
35997 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
35998 cat >conftest.$ac_ext <<_ACEOF
36001 cat confdefs.h >>conftest.$ac_ext
36002 cat >>conftest.$ac_ext <<_ACEOF
36003 /* end confdefs.h. */
36004 #include <$ac_header>
36006 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36007 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36009 grep -v '^ *+' conftest.er1 >conftest.err
36011 cat conftest.err >&5
36012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36013 (exit $ac_status); } >/dev/null; then
36014 if test -s conftest.err; then
36015 ac_cpp_err=$ac_c_preproc_warn_flag
36016 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36023 if test -z "$ac_cpp_err"; then
36024 ac_header_preproc=yes
36026 echo "$as_me: failed program was:" >&5
36027 sed 's/^/| /' conftest.$ac_ext >&5
36029 ac_header_preproc=no
36031 rm -f conftest.err conftest.$ac_ext
36032 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36033 echo "${ECHO_T}$ac_header_preproc" >&6
36035 # So? What about this header?
36036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36038 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36039 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36041 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36042 ac_header_preproc=yes
36045 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36046 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36047 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36048 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36049 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36050 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36051 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36052 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36055 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36056 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36059 ## ------------------------------------------ ##
36060 ## Report this to the AC_PACKAGE_NAME lists. ##
36061 ## ------------------------------------------ ##
36064 sed "s/^/$as_me: WARNING: /" >&2
36067 echo "$as_me:$LINENO: checking for $ac_header" >&5
36068 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36069 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36070 echo $ECHO_N "(cached) $ECHO_C" >&6
36072 eval "$as_ac_Header=\$ac_header_preproc"
36074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36075 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36079 cat >>confdefs.h <<_ACEOF
36080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36087 if test $ac_cv_header_lwp_lwp_h = yes ; then
36088 echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
36089 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6
36090 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
36091 echo $ECHO_N "(cached) $ECHO_C" >&6
36093 ac_check_lib_save_LIBS=$LIBS
36095 cat >conftest.$ac_ext <<_ACEOF
36098 cat confdefs.h >>conftest.$ac_ext
36099 cat >>conftest.$ac_ext <<_ACEOF
36100 /* end confdefs.h. */
36102 /* Override any gcc2 internal prototype to avoid an error. */
36106 /* We use char because int might match the return type of a gcc2
36107 builtin and then its argument prototype would still apply. */
36108 char lwp_create ();
36117 rm -f conftest.$ac_objext conftest$ac_exeext
36118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36119 (eval $ac_link) 2>conftest.er1
36121 grep -v '^ *+' conftest.er1 >conftest.err
36123 cat conftest.err >&5
36124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36125 (exit $ac_status); } &&
36126 { ac_try='test -z "$ac_c_werror_flag"
36127 || test ! -s conftest.err'
36128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36129 (eval $ac_try) 2>&5
36131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36132 (exit $ac_status); }; } &&
36133 { ac_try='test -s conftest$ac_exeext'
36134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36135 (eval $ac_try) 2>&5
36137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36138 (exit $ac_status); }; }; then
36139 ac_cv_lib_lwp_lwp_create=yes
36141 echo "$as_me: failed program was:" >&5
36142 sed 's/^/| /' conftest.$ac_ext >&5
36144 ac_cv_lib_lwp_lwp_create=no
36146 rm -f conftest.err conftest.$ac_objext \
36147 conftest$ac_exeext conftest.$ac_ext
36148 LIBS=$ac_check_lib_save_LIBS
36150 echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
36151 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6
36152 if test $ac_cv_lib_lwp_lwp_create = yes; then
36159 if test $have_lwp = yes ; then
36161 cat >>confdefs.h <<\_ACEOF
36165 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
36166 ol_link_threads=lwp
36168 if test $ol_with_yielding_select = auto ; then
36169 ol_with_yielding_select=no
36175 if test $ol_with_yielding_select = yes ; then
36177 cat >>confdefs.h <<\_ACEOF
36178 #define HAVE_YIELDING_SELECT 1
36183 if test $ol_with_threads = manual ; then
36184 ol_link_threads=yes
36186 { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
36187 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
36191 for ac_header in pthread.h sched.h
36193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36195 echo "$as_me:$LINENO: checking for $ac_header" >&5
36196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36198 echo $ECHO_N "(cached) $ECHO_C" >&6
36200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36203 # Is the header compilable?
36204 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36206 cat >conftest.$ac_ext <<_ACEOF
36209 cat confdefs.h >>conftest.$ac_ext
36210 cat >>conftest.$ac_ext <<_ACEOF
36211 /* end confdefs.h. */
36212 $ac_includes_default
36213 #include <$ac_header>
36215 rm -f conftest.$ac_objext
36216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36217 (eval $ac_compile) 2>conftest.er1
36219 grep -v '^ *+' conftest.er1 >conftest.err
36221 cat conftest.err >&5
36222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36223 (exit $ac_status); } &&
36224 { ac_try='test -z "$ac_c_werror_flag"
36225 || test ! -s conftest.err'
36226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36227 (eval $ac_try) 2>&5
36229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36230 (exit $ac_status); }; } &&
36231 { ac_try='test -s conftest.$ac_objext'
36232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36233 (eval $ac_try) 2>&5
36235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36236 (exit $ac_status); }; }; then
36237 ac_header_compiler=yes
36239 echo "$as_me: failed program was:" >&5
36240 sed 's/^/| /' conftest.$ac_ext >&5
36242 ac_header_compiler=no
36244 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36245 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36246 echo "${ECHO_T}$ac_header_compiler" >&6
36248 # Is the header present?
36249 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36251 cat >conftest.$ac_ext <<_ACEOF
36254 cat confdefs.h >>conftest.$ac_ext
36255 cat >>conftest.$ac_ext <<_ACEOF
36256 /* end confdefs.h. */
36257 #include <$ac_header>
36259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36262 grep -v '^ *+' conftest.er1 >conftest.err
36264 cat conftest.err >&5
36265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36266 (exit $ac_status); } >/dev/null; then
36267 if test -s conftest.err; then
36268 ac_cpp_err=$ac_c_preproc_warn_flag
36269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36276 if test -z "$ac_cpp_err"; then
36277 ac_header_preproc=yes
36279 echo "$as_me: failed program was:" >&5
36280 sed 's/^/| /' conftest.$ac_ext >&5
36282 ac_header_preproc=no
36284 rm -f conftest.err conftest.$ac_ext
36285 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36286 echo "${ECHO_T}$ac_header_preproc" >&6
36288 # So? What about this header?
36289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36295 ac_header_preproc=yes
36298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36301 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36302 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36304 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36305 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36308 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36312 ## ------------------------------------------ ##
36313 ## Report this to the AC_PACKAGE_NAME lists. ##
36314 ## ------------------------------------------ ##
36317 sed "s/^/$as_me: WARNING: /" >&2
36320 echo "$as_me:$LINENO: checking for $ac_header" >&5
36321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36323 echo $ECHO_N "(cached) $ECHO_C" >&6
36325 eval "$as_ac_Header=\$ac_header_preproc"
36327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36332 cat >>confdefs.h <<_ACEOF
36333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36342 for ac_func in sched_yield pthread_yield
36344 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36345 echo "$as_me:$LINENO: checking for $ac_func" >&5
36346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
36347 if eval "test \"\${$as_ac_var+set}\" = set"; then
36348 echo $ECHO_N "(cached) $ECHO_C" >&6
36350 cat >conftest.$ac_ext <<_ACEOF
36353 cat confdefs.h >>conftest.$ac_ext
36354 cat >>conftest.$ac_ext <<_ACEOF
36355 /* end confdefs.h. */
36356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
36358 #define $ac_func innocuous_$ac_func
36360 /* System header to define __stub macros and hopefully few prototypes,
36361 which can conflict with char $ac_func (); below.
36362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36363 <limits.h> exists even on freestanding compilers. */
36366 # include <limits.h>
36368 # include <assert.h>
36373 /* Override any gcc2 internal prototype to avoid an error. */
36378 /* We use char because int might match the return type of a gcc2
36379 builtin and then its argument prototype would still apply. */
36381 /* The GNU C library defines this for functions which it implements
36382 to always fail with ENOSYS. Some functions are actually named
36383 something starting with __ and the normal name is an alias. */
36384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
36387 char (*f) () = $ac_func;
36396 return f != $ac_func;
36401 rm -f conftest.$ac_objext conftest$ac_exeext
36402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36403 (eval $ac_link) 2>conftest.er1
36405 grep -v '^ *+' conftest.er1 >conftest.err
36407 cat conftest.err >&5
36408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36409 (exit $ac_status); } &&
36410 { ac_try='test -z "$ac_c_werror_flag"
36411 || test ! -s conftest.err'
36412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36413 (eval $ac_try) 2>&5
36415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36416 (exit $ac_status); }; } &&
36417 { ac_try='test -s conftest$ac_exeext'
36418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36419 (eval $ac_try) 2>&5
36421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36422 (exit $ac_status); }; }; then
36423 eval "$as_ac_var=yes"
36425 echo "$as_me: failed program was:" >&5
36426 sed 's/^/| /' conftest.$ac_ext >&5
36428 eval "$as_ac_var=no"
36430 rm -f conftest.err conftest.$ac_objext \
36431 conftest$ac_exeext conftest.$ac_ext
36433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
36434 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
36435 if test `eval echo '${'$as_ac_var'}'` = yes; then
36436 cat >>confdefs.h <<_ACEOF
36437 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36444 echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
36445 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6
36446 if test "${ol_cv_header_linux_threads+set}" = set; then
36447 echo $ECHO_N "(cached) $ECHO_C" >&6
36449 cat >conftest.$ac_ext <<_ACEOF
36452 cat confdefs.h >>conftest.$ac_ext
36453 cat >>conftest.$ac_ext <<_ACEOF
36454 /* end confdefs.h. */
36455 #include <pthread.h>
36457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36458 $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
36459 ol_cv_header_linux_threads=yes
36461 ol_cv_header_linux_threads=no
36467 echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
36468 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6
36469 if test $ol_cv_header_linux_threads = yes; then
36471 cat >>confdefs.h <<\_ACEOF
36472 #define HAVE_LINUX_THREADS 1
36479 for ac_header in mach/cthreads.h
36481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36482 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36483 echo "$as_me:$LINENO: checking for $ac_header" >&5
36484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36486 echo $ECHO_N "(cached) $ECHO_C" >&6
36488 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36489 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36491 # Is the header compilable?
36492 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36493 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36494 cat >conftest.$ac_ext <<_ACEOF
36497 cat confdefs.h >>conftest.$ac_ext
36498 cat >>conftest.$ac_ext <<_ACEOF
36499 /* end confdefs.h. */
36500 $ac_includes_default
36501 #include <$ac_header>
36503 rm -f conftest.$ac_objext
36504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36505 (eval $ac_compile) 2>conftest.er1
36507 grep -v '^ *+' conftest.er1 >conftest.err
36509 cat conftest.err >&5
36510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36511 (exit $ac_status); } &&
36512 { ac_try='test -z "$ac_c_werror_flag"
36513 || test ! -s conftest.err'
36514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36515 (eval $ac_try) 2>&5
36517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36518 (exit $ac_status); }; } &&
36519 { ac_try='test -s conftest.$ac_objext'
36520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36521 (eval $ac_try) 2>&5
36523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36524 (exit $ac_status); }; }; then
36525 ac_header_compiler=yes
36527 echo "$as_me: failed program was:" >&5
36528 sed 's/^/| /' conftest.$ac_ext >&5
36530 ac_header_compiler=no
36532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36533 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36534 echo "${ECHO_T}$ac_header_compiler" >&6
36536 # Is the header present?
36537 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36538 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36539 cat >conftest.$ac_ext <<_ACEOF
36542 cat confdefs.h >>conftest.$ac_ext
36543 cat >>conftest.$ac_ext <<_ACEOF
36544 /* end confdefs.h. */
36545 #include <$ac_header>
36547 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36548 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36550 grep -v '^ *+' conftest.er1 >conftest.err
36552 cat conftest.err >&5
36553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36554 (exit $ac_status); } >/dev/null; then
36555 if test -s conftest.err; then
36556 ac_cpp_err=$ac_c_preproc_warn_flag
36557 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36564 if test -z "$ac_cpp_err"; then
36565 ac_header_preproc=yes
36567 echo "$as_me: failed program was:" >&5
36568 sed 's/^/| /' conftest.$ac_ext >&5
36570 ac_header_preproc=no
36572 rm -f conftest.err conftest.$ac_ext
36573 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36574 echo "${ECHO_T}$ac_header_preproc" >&6
36576 # So? What about this header?
36577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36583 ac_header_preproc=yes
36586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36593 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36600 ## ------------------------------------------ ##
36601 ## Report this to the AC_PACKAGE_NAME lists. ##
36602 ## ------------------------------------------ ##
36605 sed "s/^/$as_me: WARNING: /" >&2
36608 echo "$as_me:$LINENO: checking for $ac_header" >&5
36609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36610 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36611 echo $ECHO_N "(cached) $ECHO_C" >&6
36613 eval "$as_ac_Header=\$ac_header_preproc"
36615 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36616 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36620 cat >>confdefs.h <<_ACEOF
36621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36629 for ac_header in lwp/lwp.h
36631 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36632 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36633 echo "$as_me:$LINENO: checking for $ac_header" >&5
36634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36635 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36636 echo $ECHO_N "(cached) $ECHO_C" >&6
36638 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36639 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36641 # Is the header compilable?
36642 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36644 cat >conftest.$ac_ext <<_ACEOF
36647 cat confdefs.h >>conftest.$ac_ext
36648 cat >>conftest.$ac_ext <<_ACEOF
36649 /* end confdefs.h. */
36650 $ac_includes_default
36651 #include <$ac_header>
36653 rm -f conftest.$ac_objext
36654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36655 (eval $ac_compile) 2>conftest.er1
36657 grep -v '^ *+' conftest.er1 >conftest.err
36659 cat conftest.err >&5
36660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36661 (exit $ac_status); } &&
36662 { ac_try='test -z "$ac_c_werror_flag"
36663 || test ! -s conftest.err'
36664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36665 (eval $ac_try) 2>&5
36667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36668 (exit $ac_status); }; } &&
36669 { ac_try='test -s conftest.$ac_objext'
36670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36671 (eval $ac_try) 2>&5
36673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36674 (exit $ac_status); }; }; then
36675 ac_header_compiler=yes
36677 echo "$as_me: failed program was:" >&5
36678 sed 's/^/| /' conftest.$ac_ext >&5
36680 ac_header_compiler=no
36682 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36683 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36684 echo "${ECHO_T}$ac_header_compiler" >&6
36686 # Is the header present?
36687 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36689 cat >conftest.$ac_ext <<_ACEOF
36692 cat confdefs.h >>conftest.$ac_ext
36693 cat >>conftest.$ac_ext <<_ACEOF
36694 /* end confdefs.h. */
36695 #include <$ac_header>
36697 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36698 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36700 grep -v '^ *+' conftest.er1 >conftest.err
36702 cat conftest.err >&5
36703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36704 (exit $ac_status); } >/dev/null; then
36705 if test -s conftest.err; then
36706 ac_cpp_err=$ac_c_preproc_warn_flag
36707 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36714 if test -z "$ac_cpp_err"; then
36715 ac_header_preproc=yes
36717 echo "$as_me: failed program was:" >&5
36718 sed 's/^/| /' conftest.$ac_ext >&5
36720 ac_header_preproc=no
36722 rm -f conftest.err conftest.$ac_ext
36723 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36724 echo "${ECHO_T}$ac_header_preproc" >&6
36726 # So? What about this header?
36727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36733 ac_header_preproc=yes
36736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36739 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36743 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36750 ## ------------------------------------------ ##
36751 ## Report this to the AC_PACKAGE_NAME lists. ##
36752 ## ------------------------------------------ ##
36755 sed "s/^/$as_me: WARNING: /" >&2
36758 echo "$as_me:$LINENO: checking for $ac_header" >&5
36759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36761 echo $ECHO_N "(cached) $ECHO_C" >&6
36763 eval "$as_ac_Header=\$ac_header_preproc"
36765 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36766 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36770 cat >>confdefs.h <<_ACEOF
36771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36780 for ac_header in thread.h synch.h
36782 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36783 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36784 echo "$as_me:$LINENO: checking for $ac_header" >&5
36785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36787 echo $ECHO_N "(cached) $ECHO_C" >&6
36789 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36790 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36792 # Is the header compilable?
36793 echo "$as_me:$LINENO: checking $ac_header usability" >&5
36794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
36795 cat >conftest.$ac_ext <<_ACEOF
36798 cat confdefs.h >>conftest.$ac_ext
36799 cat >>conftest.$ac_ext <<_ACEOF
36800 /* end confdefs.h. */
36801 $ac_includes_default
36802 #include <$ac_header>
36804 rm -f conftest.$ac_objext
36805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
36806 (eval $ac_compile) 2>conftest.er1
36808 grep -v '^ *+' conftest.er1 >conftest.err
36810 cat conftest.err >&5
36811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36812 (exit $ac_status); } &&
36813 { ac_try='test -z "$ac_c_werror_flag"
36814 || test ! -s conftest.err'
36815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36816 (eval $ac_try) 2>&5
36818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36819 (exit $ac_status); }; } &&
36820 { ac_try='test -s conftest.$ac_objext'
36821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36822 (eval $ac_try) 2>&5
36824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36825 (exit $ac_status); }; }; then
36826 ac_header_compiler=yes
36828 echo "$as_me: failed program was:" >&5
36829 sed 's/^/| /' conftest.$ac_ext >&5
36831 ac_header_compiler=no
36833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
36834 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36835 echo "${ECHO_T}$ac_header_compiler" >&6
36837 # Is the header present?
36838 echo "$as_me:$LINENO: checking $ac_header presence" >&5
36839 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
36840 cat >conftest.$ac_ext <<_ACEOF
36843 cat confdefs.h >>conftest.$ac_ext
36844 cat >>conftest.$ac_ext <<_ACEOF
36845 /* end confdefs.h. */
36846 #include <$ac_header>
36848 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
36849 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
36851 grep -v '^ *+' conftest.er1 >conftest.err
36853 cat conftest.err >&5
36854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36855 (exit $ac_status); } >/dev/null; then
36856 if test -s conftest.err; then
36857 ac_cpp_err=$ac_c_preproc_warn_flag
36858 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
36865 if test -z "$ac_cpp_err"; then
36866 ac_header_preproc=yes
36868 echo "$as_me: failed program was:" >&5
36869 sed 's/^/| /' conftest.$ac_ext >&5
36871 ac_header_preproc=no
36873 rm -f conftest.err conftest.$ac_ext
36874 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36875 echo "${ECHO_T}$ac_header_preproc" >&6
36877 # So? What about this header?
36878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36880 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36881 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36883 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36884 ac_header_preproc=yes
36887 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36888 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36889 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
36890 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
36891 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36892 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36893 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
36894 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
36895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36896 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36897 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36898 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36901 ## ------------------------------------------ ##
36902 ## Report this to the AC_PACKAGE_NAME lists. ##
36903 ## ------------------------------------------ ##
36906 sed "s/^/$as_me: WARNING: /" >&2
36909 echo "$as_me:$LINENO: checking for $ac_header" >&5
36910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
36911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
36912 echo $ECHO_N "(cached) $ECHO_C" >&6
36914 eval "$as_ac_Header=\$ac_header_preproc"
36916 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
36917 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
36920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36921 cat >>confdefs.h <<_ACEOF
36922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36931 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
36932 cat >>confdefs.h <<\_ACEOF
36933 #define REENTRANT 1
36936 cat >>confdefs.h <<\_ACEOF
36937 #define _REENTRANT 1
36940 cat >>confdefs.h <<\_ACEOF
36941 #define THREAD_SAFE 1
36944 cat >>confdefs.h <<\_ACEOF
36945 #define _THREAD_SAFE 1
36948 cat >>confdefs.h <<\_ACEOF
36949 #define THREADSAFE 1
36952 cat >>confdefs.h <<\_ACEOF
36953 #define _THREADSAFE 1
36956 cat >>confdefs.h <<\_ACEOF
36957 #define _SGI_MP_SOURCE 1
36961 echo "$as_me:$LINENO: checking for thread specific errno" >&5
36962 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6
36963 if test "${ol_cv_errno_thread_specific+set}" = set; then
36964 echo $ECHO_N "(cached) $ECHO_C" >&6
36967 cat >conftest.$ac_ext <<_ACEOF
36970 cat confdefs.h >>conftest.$ac_ext
36971 cat >>conftest.$ac_ext <<_ACEOF
36972 /* end confdefs.h. */
36982 rm -f conftest.$ac_objext conftest$ac_exeext
36983 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
36984 (eval $ac_link) 2>conftest.er1
36986 grep -v '^ *+' conftest.er1 >conftest.err
36988 cat conftest.err >&5
36989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36990 (exit $ac_status); } &&
36991 { ac_try='test -z "$ac_c_werror_flag"
36992 || test ! -s conftest.err'
36993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36994 (eval $ac_try) 2>&5
36996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
36997 (exit $ac_status); }; } &&
36998 { ac_try='test -s conftest$ac_exeext'
36999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37000 (eval $ac_try) 2>&5
37002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37003 (exit $ac_status); }; }; then
37004 ol_cv_errno_thread_specific=yes
37006 echo "$as_me: failed program was:" >&5
37007 sed 's/^/| /' conftest.$ac_ext >&5
37009 ol_cv_errno_thread_specific=no
37011 rm -f conftest.err conftest.$ac_objext \
37012 conftest$ac_exeext conftest.$ac_ext
37015 echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
37016 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6
37018 echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
37019 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6
37020 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
37021 echo $ECHO_N "(cached) $ECHO_C" >&6
37024 cat >conftest.$ac_ext <<_ACEOF
37027 cat confdefs.h >>conftest.$ac_ext
37028 cat >>conftest.$ac_ext <<_ACEOF
37029 /* end confdefs.h. */
37039 rm -f conftest.$ac_objext conftest$ac_exeext
37040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37041 (eval $ac_link) 2>conftest.er1
37043 grep -v '^ *+' conftest.er1 >conftest.err
37045 cat conftest.err >&5
37046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37047 (exit $ac_status); } &&
37048 { ac_try='test -z "$ac_c_werror_flag"
37049 || test ! -s conftest.err'
37050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37051 (eval $ac_try) 2>&5
37053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37054 (exit $ac_status); }; } &&
37055 { ac_try='test -s conftest$ac_exeext'
37056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37057 (eval $ac_try) 2>&5
37059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37060 (exit $ac_status); }; }; then
37061 ol_cv_h_errno_thread_specific=yes
37063 echo "$as_me: failed program was:" >&5
37064 sed 's/^/| /' conftest.$ac_ext >&5
37066 ol_cv_h_errno_thread_specific=no
37068 rm -f conftest.err conftest.$ac_objext \
37069 conftest$ac_exeext conftest.$ac_ext
37072 echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
37073 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6
37075 if test $ol_cv_errno_thread_specific != yes \
37076 -o $ol_cv_h_errno_thread_specific != yes ; then
37077 LIBS="$LTHREAD_LIBS $LIBS"
37083 if test $ol_link_threads = no ; then
37084 if test $ol_with_threads = yes ; then
37085 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
37086 echo "$as_me: error: no suitable thread support" >&2;}
37087 { (exit 1); exit 1; }; }
37090 if test $ol_with_threads = auto ; then
37091 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
37092 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
37097 cat >>confdefs.h <<\_ACEOF
37098 #define NO_THREADS 1
37104 if test $ol_link_threads != no ; then
37106 cat >>confdefs.h <<\_ACEOF
37107 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
37117 gethostbyname_r gethostbyaddr_r \
37120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37121 echo "$as_me:$LINENO: checking for $ac_func" >&5
37122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
37123 if eval "test \"\${$as_ac_var+set}\" = set"; then
37124 echo $ECHO_N "(cached) $ECHO_C" >&6
37126 cat >conftest.$ac_ext <<_ACEOF
37129 cat confdefs.h >>conftest.$ac_ext
37130 cat >>conftest.$ac_ext <<_ACEOF
37131 /* end confdefs.h. */
37132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
37134 #define $ac_func innocuous_$ac_func
37136 /* System header to define __stub macros and hopefully few prototypes,
37137 which can conflict with char $ac_func (); below.
37138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37139 <limits.h> exists even on freestanding compilers. */
37142 # include <limits.h>
37144 # include <assert.h>
37149 /* Override any gcc2 internal prototype to avoid an error. */
37154 /* We use char because int might match the return type of a gcc2
37155 builtin and then its argument prototype would still apply. */
37157 /* The GNU C library defines this for functions which it implements
37158 to always fail with ENOSYS. Some functions are actually named
37159 something starting with __ and the normal name is an alias. */
37160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
37163 char (*f) () = $ac_func;
37172 return f != $ac_func;
37177 rm -f conftest.$ac_objext conftest$ac_exeext
37178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37179 (eval $ac_link) 2>conftest.er1
37181 grep -v '^ *+' conftest.er1 >conftest.err
37183 cat conftest.err >&5
37184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37185 (exit $ac_status); } &&
37186 { ac_try='test -z "$ac_c_werror_flag"
37187 || test ! -s conftest.err'
37188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37189 (eval $ac_try) 2>&5
37191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37192 (exit $ac_status); }; } &&
37193 { ac_try='test -s conftest$ac_exeext'
37194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37195 (eval $ac_try) 2>&5
37197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37198 (exit $ac_status); }; }; then
37199 eval "$as_ac_var=yes"
37201 echo "$as_me: failed program was:" >&5
37202 sed 's/^/| /' conftest.$ac_ext >&5
37204 eval "$as_ac_var=no"
37206 rm -f conftest.err conftest.$ac_objext \
37207 conftest$ac_exeext conftest.$ac_ext
37209 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
37210 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
37211 if test `eval echo '${'$as_ac_var'}'` = yes; then
37212 cat >>confdefs.h <<_ACEOF
37213 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37220 if test "$ac_cv_func_ctime_r" = no ; then
37221 ol_cv_func_ctime_r_nargs=0
37223 echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
37224 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6
37225 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
37226 echo $ECHO_N "(cached) $ECHO_C" >&6
37228 cat >conftest.$ac_ext <<_ACEOF
37231 cat confdefs.h >>conftest.$ac_ext
37232 cat >>conftest.$ac_ext <<_ACEOF
37233 /* end confdefs.h. */
37238 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
37243 rm -f conftest.$ac_objext
37244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37245 (eval $ac_compile) 2>conftest.er1
37247 grep -v '^ *+' conftest.er1 >conftest.err
37249 cat conftest.err >&5
37250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37251 (exit $ac_status); } &&
37252 { ac_try='test -z "$ac_c_werror_flag"
37253 || test ! -s conftest.err'
37254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37255 (eval $ac_try) 2>&5
37257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37258 (exit $ac_status); }; } &&
37259 { ac_try='test -s conftest.$ac_objext'
37260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37261 (eval $ac_try) 2>&5
37263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37264 (exit $ac_status); }; }; then
37265 ol_cv_func_ctime_r_nargs3=yes
37267 echo "$as_me: failed program was:" >&5
37268 sed 's/^/| /' conftest.$ac_ext >&5
37270 ol_cv_func_ctime_r_nargs3=no
37272 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37274 cat >conftest.$ac_ext <<_ACEOF
37277 cat confdefs.h >>conftest.$ac_ext
37278 cat >>conftest.$ac_ext <<_ACEOF
37279 /* end confdefs.h. */
37284 time_t ti; char *buffer; ctime_r(&ti,buffer);
37289 rm -f conftest.$ac_objext
37290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37291 (eval $ac_compile) 2>conftest.er1
37293 grep -v '^ *+' conftest.er1 >conftest.err
37295 cat conftest.err >&5
37296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37297 (exit $ac_status); } &&
37298 { ac_try='test -z "$ac_c_werror_flag"
37299 || test ! -s conftest.err'
37300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37301 (eval $ac_try) 2>&5
37303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37304 (exit $ac_status); }; } &&
37305 { ac_try='test -s conftest.$ac_objext'
37306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37307 (eval $ac_try) 2>&5
37309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37310 (exit $ac_status); }; }; then
37311 ol_cv_func_ctime_r_nargs2=yes
37313 echo "$as_me: failed program was:" >&5
37314 sed 's/^/| /' conftest.$ac_ext >&5
37316 ol_cv_func_ctime_r_nargs2=no
37318 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37320 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
37321 $ol_cv_func_ctime_r_nargs2 = no ; then
37323 ol_cv_func_ctime_r_nargs=3
37325 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
37326 $ol_cv_func_ctime_r_nargs2 = yes ; then
37328 ol_cv_func_ctime_r_nargs=2
37331 ol_cv_func_ctime_r_nargs=0
37335 echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
37336 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6
37338 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
37340 cat >>confdefs.h <<_ACEOF
37341 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
37348 if test "$ac_cv_func_gethostbyname_r" = yes ; then
37349 echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
37350 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6
37351 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
37352 echo $ECHO_N "(cached) $ECHO_C" >&6
37354 cat >conftest.$ac_ext <<_ACEOF
37357 cat confdefs.h >>conftest.$ac_ext
37358 cat >>conftest.$ac_ext <<_ACEOF
37359 /* end confdefs.h. */
37360 #include <sys/types.h>
37361 #include <sys/socket.h>
37362 #include <netinet/in.h>
37364 #define BUFSIZE (sizeof(struct hostent)+10)
37368 struct hostent hent; char buffer[BUFSIZE];
37369 int bufsize=BUFSIZE;int h_errno;
37370 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
37371 buffer, bufsize, &h_errno);
37376 rm -f conftest.$ac_objext
37377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37378 (eval $ac_compile) 2>conftest.er1
37380 grep -v '^ *+' conftest.er1 >conftest.err
37382 cat conftest.err >&5
37383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37384 (exit $ac_status); } &&
37385 { ac_try='test -z "$ac_c_werror_flag"
37386 || test ! -s conftest.err'
37387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37388 (eval $ac_try) 2>&5
37390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37391 (exit $ac_status); }; } &&
37392 { ac_try='test -s conftest.$ac_objext'
37393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37394 (eval $ac_try) 2>&5
37396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37397 (exit $ac_status); }; }; then
37398 ol_cv_func_gethostbyname_r_nargs5=yes
37400 echo "$as_me: failed program was:" >&5
37401 sed 's/^/| /' conftest.$ac_ext >&5
37403 ol_cv_func_gethostbyname_r_nargs5=no
37405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37407 cat >conftest.$ac_ext <<_ACEOF
37410 cat confdefs.h >>conftest.$ac_ext
37411 cat >>conftest.$ac_ext <<_ACEOF
37412 /* end confdefs.h. */
37413 #include <sys/types.h>
37414 #include <sys/socket.h>
37415 #include <netinet/in.h>
37417 #define BUFSIZE (sizeof(struct hostent)+10)
37421 struct hostent hent;struct hostent *rhent;
37422 char buffer[BUFSIZE];
37423 int bufsize=BUFSIZE;int h_errno;
37424 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
37430 rm -f conftest.$ac_objext
37431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37432 (eval $ac_compile) 2>conftest.er1
37434 grep -v '^ *+' conftest.er1 >conftest.err
37436 cat conftest.err >&5
37437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37438 (exit $ac_status); } &&
37439 { ac_try='test -z "$ac_c_werror_flag"
37440 || test ! -s conftest.err'
37441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37442 (eval $ac_try) 2>&5
37444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37445 (exit $ac_status); }; } &&
37446 { ac_try='test -s conftest.$ac_objext'
37447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37448 (eval $ac_try) 2>&5
37450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37451 (exit $ac_status); }; }; then
37452 ol_cv_func_gethostbyname_r_nargs6=yes
37454 echo "$as_me: failed program was:" >&5
37455 sed 's/^/| /' conftest.$ac_ext >&5
37457 ol_cv_func_gethostbyname_r_nargs6=no
37459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37461 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
37462 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
37464 ol_cv_func_gethostbyname_r_nargs=5
37466 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
37467 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
37469 ol_cv_func_gethostbyname_r_nargs=6
37472 ol_cv_func_gethostbyname_r_nargs=0
37476 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
37477 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6
37478 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
37480 cat >>confdefs.h <<_ACEOF
37481 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
37487 ol_cv_func_gethostbyname_r_nargs=0
37490 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
37491 echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
37492 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6
37493 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
37494 echo $ECHO_N "(cached) $ECHO_C" >&6
37496 cat >conftest.$ac_ext <<_ACEOF
37499 cat confdefs.h >>conftest.$ac_ext
37500 cat >>conftest.$ac_ext <<_ACEOF
37501 /* end confdefs.h. */
37502 #include <sys/types.h>
37503 #include <sys/socket.h>
37504 #include <netinet/in.h>
37506 #define BUFSIZE (sizeof(struct hostent)+10)
37510 struct hostent hent; char buffer[BUFSIZE];
37511 struct in_addr add;
37512 size_t alen=sizeof(struct in_addr);
37513 int bufsize=BUFSIZE;int h_errno;
37514 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37515 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
37520 rm -f conftest.$ac_objext
37521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37522 (eval $ac_compile) 2>conftest.er1
37524 grep -v '^ *+' conftest.er1 >conftest.err
37526 cat conftest.err >&5
37527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37528 (exit $ac_status); } &&
37529 { ac_try='test -z "$ac_c_werror_flag"
37530 || test ! -s conftest.err'
37531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37532 (eval $ac_try) 2>&5
37534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37535 (exit $ac_status); }; } &&
37536 { ac_try='test -s conftest.$ac_objext'
37537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37538 (eval $ac_try) 2>&5
37540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37541 (exit $ac_status); }; }; then
37542 ol_cv_func_gethostbyaddr_r_nargs7=yes
37544 echo "$as_me: failed program was:" >&5
37545 sed 's/^/| /' conftest.$ac_ext >&5
37547 ol_cv_func_gethostbyaddr_r_nargs7=no
37549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37551 cat >conftest.$ac_ext <<_ACEOF
37554 cat confdefs.h >>conftest.$ac_ext
37555 cat >>conftest.$ac_ext <<_ACEOF
37556 /* end confdefs.h. */
37557 #include <sys/types.h>
37558 #include <sys/socket.h>
37559 #include <netinet/in.h>
37561 #define BUFSIZE (sizeof(struct hostent)+10)
37565 struct hostent hent;
37566 struct hostent *rhent; char buffer[BUFSIZE];
37567 struct in_addr add;
37568 size_t alen=sizeof(struct in_addr);
37569 int bufsize=BUFSIZE;int h_errno;
37570 (void)gethostbyaddr_r( (void *)&(add.s_addr),
37571 alen, AF_INET, &hent, buffer, bufsize,
37577 rm -f conftest.$ac_objext
37578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37579 (eval $ac_compile) 2>conftest.er1
37581 grep -v '^ *+' conftest.er1 >conftest.err
37583 cat conftest.err >&5
37584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37585 (exit $ac_status); } &&
37586 { ac_try='test -z "$ac_c_werror_flag"
37587 || test ! -s conftest.err'
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); }; } &&
37593 { ac_try='test -s conftest.$ac_objext'
37594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37595 (eval $ac_try) 2>&5
37597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37598 (exit $ac_status); }; }; then
37599 ol_cv_func_gethostbyaddr_r_nargs8=yes
37601 echo "$as_me: failed program was:" >&5
37602 sed 's/^/| /' conftest.$ac_ext >&5
37604 ol_cv_func_gethostbyaddr_r_nargs8=no
37606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37608 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
37609 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
37611 ol_cv_func_gethostbyaddr_r_nargs=7
37613 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
37614 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
37616 ol_cv_func_gethostbyaddr_r_nargs=8
37619 ol_cv_func_gethostbyaddr_r_nargs=0
37623 echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
37624 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6
37625 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
37627 cat >>confdefs.h <<_ACEOF
37628 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
37634 ol_cv_func_gethostbyaddr_r_nargs=0
37639 if test $ol_with_ldbm_api = auto \
37640 -o $ol_with_ldbm_api = berkeley \
37641 -o $ol_with_ldbm_api = bcompat ; then
37643 if test $ol_with_ldbm_api = bcompat; then \
37646 for ac_header in db_185.h db.h
37648 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
37649 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37650 echo "$as_me:$LINENO: checking for $ac_header" >&5
37651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37653 echo $ECHO_N "(cached) $ECHO_C" >&6
37655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37658 # Is the header compilable?
37659 echo "$as_me:$LINENO: checking $ac_header usability" >&5
37660 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
37661 cat >conftest.$ac_ext <<_ACEOF
37664 cat confdefs.h >>conftest.$ac_ext
37665 cat >>conftest.$ac_ext <<_ACEOF
37666 /* end confdefs.h. */
37667 $ac_includes_default
37668 #include <$ac_header>
37670 rm -f conftest.$ac_objext
37671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
37672 (eval $ac_compile) 2>conftest.er1
37674 grep -v '^ *+' conftest.er1 >conftest.err
37676 cat conftest.err >&5
37677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37678 (exit $ac_status); } &&
37679 { ac_try='test -z "$ac_c_werror_flag"
37680 || test ! -s conftest.err'
37681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37682 (eval $ac_try) 2>&5
37684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37685 (exit $ac_status); }; } &&
37686 { ac_try='test -s conftest.$ac_objext'
37687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37688 (eval $ac_try) 2>&5
37690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37691 (exit $ac_status); }; }; then
37692 ac_header_compiler=yes
37694 echo "$as_me: failed program was:" >&5
37695 sed 's/^/| /' conftest.$ac_ext >&5
37697 ac_header_compiler=no
37699 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
37700 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37701 echo "${ECHO_T}$ac_header_compiler" >&6
37703 # Is the header present?
37704 echo "$as_me:$LINENO: checking $ac_header presence" >&5
37705 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
37706 cat >conftest.$ac_ext <<_ACEOF
37709 cat confdefs.h >>conftest.$ac_ext
37710 cat >>conftest.$ac_ext <<_ACEOF
37711 /* end confdefs.h. */
37712 #include <$ac_header>
37714 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
37715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
37717 grep -v '^ *+' conftest.er1 >conftest.err
37719 cat conftest.err >&5
37720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37721 (exit $ac_status); } >/dev/null; then
37722 if test -s conftest.err; then
37723 ac_cpp_err=$ac_c_preproc_warn_flag
37724 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
37731 if test -z "$ac_cpp_err"; then
37732 ac_header_preproc=yes
37734 echo "$as_me: failed program was:" >&5
37735 sed 's/^/| /' conftest.$ac_ext >&5
37737 ac_header_preproc=no
37739 rm -f conftest.err conftest.$ac_ext
37740 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37741 echo "${ECHO_T}$ac_header_preproc" >&6
37743 # So? What about this header?
37744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37746 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
37747 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
37748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
37749 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
37750 ac_header_preproc=yes
37753 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
37754 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
37755 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
37756 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
37757 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
37758 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
37759 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
37760 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
37761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
37762 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
37763 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
37764 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
37767 ## ------------------------------------------ ##
37768 ## Report this to the AC_PACKAGE_NAME lists. ##
37769 ## ------------------------------------------ ##
37772 sed "s/^/$as_me: WARNING: /" >&2
37775 echo "$as_me:$LINENO: checking for $ac_header" >&5
37776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
37777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
37778 echo $ECHO_N "(cached) $ECHO_C" >&6
37780 eval "$as_ac_Header=\$ac_header_preproc"
37782 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
37783 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
37786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
37787 cat >>confdefs.h <<_ACEOF
37788 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
37795 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
37796 echo "$as_me:$LINENO: checking if Berkeley DB header compatibility" >&5
37797 echo $ECHO_N "checking if Berkeley DB header compatibility... $ECHO_C" >&6
37798 if test "${ol_cv_header_db1+set}" = set; then
37799 echo $ECHO_N "(cached) $ECHO_C" >&6
37802 cat >conftest.$ac_ext <<_ACEOF
37805 cat confdefs.h >>conftest.$ac_ext
37806 cat >>conftest.$ac_ext <<_ACEOF
37807 /* end confdefs.h. */
37810 # include <db_185.h>
37815 /* this check could be improved */
37816 #ifndef DB_VERSION_MAJOR
37817 # define DB_VERSION_MAJOR 1
37820 #if DB_VERSION_MAJOR == 1
37825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37826 $EGREP "__db_version_1" >/dev/null 2>&1; then
37827 ol_cv_header_db1=yes
37829 ol_cv_header_db1=no
37834 echo "$as_me:$LINENO: result: $ol_cv_header_db1" >&5
37835 echo "${ECHO_T}$ol_cv_header_db1" >&6
37837 if test $ol_cv_header_db1 = yes ; then
37839 if test $ol_cv_lib_db = no ; then
37840 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
37841 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
37842 if test "${ol_cv_db_none+set}" = set; then
37843 echo $ECHO_N "(cached) $ECHO_C" >&6
37848 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
37850 cat >conftest.$ac_ext <<_ACEOF
37853 cat confdefs.h >>conftest.$ac_ext
37854 cat >>conftest.$ac_ext <<_ACEOF
37855 /* end confdefs.h. */
37857 #ifdef HAVE_DB_185_H
37858 # include <db_185.h>
37863 #ifndef DB_VERSION_MAJOR
37864 # define DB_VERSION_MAJOR 1
37868 #define NULL ((void*)0)
37875 #if DB_VERSION_MAJOR > 1
37878 int major, minor, patch;
37880 version = db_version( &major, &minor, &patch );
37882 if( major != DB_VERSION_MAJOR ||
37883 minor < DB_VERSION_MINOR )
37885 printf("Berkeley DB version mismatch\n"
37886 "\theader: %s\n\tlibrary: %s\n",
37887 DB_VERSION_STRING, version);
37893 #if DB_VERSION_MAJOR > 2
37894 db_env_create( NULL, 0 );
37895 #elif DB_VERSION_MAJOR > 1
37896 db_appexit( NULL );
37898 (void) dbopen( NULL, 0, 0, 0, NULL);
37905 rm -f conftest.$ac_objext conftest$ac_exeext
37906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
37907 (eval $ac_link) 2>conftest.er1
37909 grep -v '^ *+' conftest.er1 >conftest.err
37911 cat conftest.err >&5
37912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37913 (exit $ac_status); } &&
37914 { ac_try='test -z "$ac_c_werror_flag"
37915 || test ! -s conftest.err'
37916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37917 (eval $ac_try) 2>&5
37919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37920 (exit $ac_status); }; } &&
37921 { ac_try='test -s conftest$ac_exeext'
37922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37923 (eval $ac_try) 2>&5
37925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
37926 (exit $ac_status); }; }; then
37929 echo "$as_me: failed program was:" >&5
37930 sed 's/^/| /' conftest.$ac_ext >&5
37934 rm -f conftest.err conftest.$ac_objext \
37935 conftest$ac_exeext conftest.$ac_ext
37940 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
37941 echo "${ECHO_T}$ol_cv_db_none" >&6
37943 if test $ol_cv_db_none = yes ; then
37948 if test $ol_cv_lib_db = no ; then
37949 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
37950 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
37951 if test "${ol_cv_db_db43+set}" = set; then
37952 echo $ECHO_N "(cached) $ECHO_C" >&6
37957 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
37959 cat >conftest.$ac_ext <<_ACEOF
37962 cat confdefs.h >>conftest.$ac_ext
37963 cat >>conftest.$ac_ext <<_ACEOF
37964 /* end confdefs.h. */
37966 #ifdef HAVE_DB_185_H
37967 # include <db_185.h>
37972 #ifndef DB_VERSION_MAJOR
37973 # define DB_VERSION_MAJOR 1
37977 #define NULL ((void*)0)
37984 #if DB_VERSION_MAJOR > 1
37987 int major, minor, patch;
37989 version = db_version( &major, &minor, &patch );
37991 if( major != DB_VERSION_MAJOR ||
37992 minor < DB_VERSION_MINOR )
37994 printf("Berkeley DB version mismatch\n"
37995 "\theader: %s\n\tlibrary: %s\n",
37996 DB_VERSION_STRING, version);
38002 #if DB_VERSION_MAJOR > 2
38003 db_env_create( NULL, 0 );
38004 #elif DB_VERSION_MAJOR > 1
38005 db_appexit( NULL );
38007 (void) dbopen( NULL, 0, 0, 0, NULL);
38014 rm -f conftest.$ac_objext conftest$ac_exeext
38015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38016 (eval $ac_link) 2>conftest.er1
38018 grep -v '^ *+' conftest.er1 >conftest.err
38020 cat conftest.err >&5
38021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38022 (exit $ac_status); } &&
38023 { ac_try='test -z "$ac_c_werror_flag"
38024 || test ! -s conftest.err'
38025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38026 (eval $ac_try) 2>&5
38028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38029 (exit $ac_status); }; } &&
38030 { ac_try='test -s conftest$ac_exeext'
38031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38032 (eval $ac_try) 2>&5
38034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38035 (exit $ac_status); }; }; then
38038 echo "$as_me: failed program was:" >&5
38039 sed 's/^/| /' conftest.$ac_ext >&5
38043 rm -f conftest.err conftest.$ac_objext \
38044 conftest$ac_exeext conftest.$ac_ext
38049 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
38050 echo "${ECHO_T}$ol_cv_db_db43" >&6
38052 if test $ol_cv_db_db43 = yes ; then
38053 ol_cv_lib_db=-ldb43
38057 if test $ol_cv_lib_db = no ; then
38058 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
38059 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
38060 if test "${ol_cv_db_db_43+set}" = set; then
38061 echo $ECHO_N "(cached) $ECHO_C" >&6
38066 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38068 cat >conftest.$ac_ext <<_ACEOF
38071 cat confdefs.h >>conftest.$ac_ext
38072 cat >>conftest.$ac_ext <<_ACEOF
38073 /* end confdefs.h. */
38075 #ifdef HAVE_DB_185_H
38076 # include <db_185.h>
38081 #ifndef DB_VERSION_MAJOR
38082 # define DB_VERSION_MAJOR 1
38086 #define NULL ((void*)0)
38093 #if DB_VERSION_MAJOR > 1
38096 int major, minor, patch;
38098 version = db_version( &major, &minor, &patch );
38100 if( major != DB_VERSION_MAJOR ||
38101 minor < DB_VERSION_MINOR )
38103 printf("Berkeley DB version mismatch\n"
38104 "\theader: %s\n\tlibrary: %s\n",
38105 DB_VERSION_STRING, version);
38111 #if DB_VERSION_MAJOR > 2
38112 db_env_create( NULL, 0 );
38113 #elif DB_VERSION_MAJOR > 1
38114 db_appexit( NULL );
38116 (void) dbopen( NULL, 0, 0, 0, NULL);
38123 rm -f conftest.$ac_objext conftest$ac_exeext
38124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38125 (eval $ac_link) 2>conftest.er1
38127 grep -v '^ *+' conftest.er1 >conftest.err
38129 cat conftest.err >&5
38130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38131 (exit $ac_status); } &&
38132 { ac_try='test -z "$ac_c_werror_flag"
38133 || test ! -s conftest.err'
38134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38135 (eval $ac_try) 2>&5
38137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38138 (exit $ac_status); }; } &&
38139 { ac_try='test -s conftest$ac_exeext'
38140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38141 (eval $ac_try) 2>&5
38143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38144 (exit $ac_status); }; }; then
38147 echo "$as_me: failed program was:" >&5
38148 sed 's/^/| /' conftest.$ac_ext >&5
38152 rm -f conftest.err conftest.$ac_objext \
38153 conftest$ac_exeext conftest.$ac_ext
38158 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
38159 echo "${ECHO_T}$ol_cv_db_db_43" >&6
38161 if test $ol_cv_db_db_43 = yes ; then
38162 ol_cv_lib_db=-ldb-43
38166 if test $ol_cv_lib_db = no ; then
38167 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
38168 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
38169 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
38170 echo $ECHO_N "(cached) $ECHO_C" >&6
38175 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38177 cat >conftest.$ac_ext <<_ACEOF
38180 cat confdefs.h >>conftest.$ac_ext
38181 cat >>conftest.$ac_ext <<_ACEOF
38182 /* end confdefs.h. */
38184 #ifdef HAVE_DB_185_H
38185 # include <db_185.h>
38190 #ifndef DB_VERSION_MAJOR
38191 # define DB_VERSION_MAJOR 1
38195 #define NULL ((void*)0)
38202 #if DB_VERSION_MAJOR > 1
38205 int major, minor, patch;
38207 version = db_version( &major, &minor, &patch );
38209 if( major != DB_VERSION_MAJOR ||
38210 minor < DB_VERSION_MINOR )
38212 printf("Berkeley DB version mismatch\n"
38213 "\theader: %s\n\tlibrary: %s\n",
38214 DB_VERSION_STRING, version);
38220 #if DB_VERSION_MAJOR > 2
38221 db_env_create( NULL, 0 );
38222 #elif DB_VERSION_MAJOR > 1
38223 db_appexit( NULL );
38225 (void) dbopen( NULL, 0, 0, 0, NULL);
38232 rm -f conftest.$ac_objext conftest$ac_exeext
38233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38234 (eval $ac_link) 2>conftest.er1
38236 grep -v '^ *+' conftest.er1 >conftest.err
38238 cat conftest.err >&5
38239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38240 (exit $ac_status); } &&
38241 { ac_try='test -z "$ac_c_werror_flag"
38242 || test ! -s conftest.err'
38243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38244 (eval $ac_try) 2>&5
38246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38247 (exit $ac_status); }; } &&
38248 { ac_try='test -s conftest$ac_exeext'
38249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38250 (eval $ac_try) 2>&5
38252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38253 (exit $ac_status); }; }; then
38254 ol_cv_db_db_4_dot_3=yes
38256 echo "$as_me: failed program was:" >&5
38257 sed 's/^/| /' conftest.$ac_ext >&5
38259 ol_cv_db_db_4_dot_3=no
38261 rm -f conftest.err conftest.$ac_objext \
38262 conftest$ac_exeext conftest.$ac_ext
38267 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
38268 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
38270 if test $ol_cv_db_db_4_dot_3 = yes ; then
38271 ol_cv_lib_db=-ldb-4.3
38275 if test $ol_cv_lib_db = no ; then
38276 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
38277 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
38278 if test "${ol_cv_db_db_4_3+set}" = set; then
38279 echo $ECHO_N "(cached) $ECHO_C" >&6
38284 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38286 cat >conftest.$ac_ext <<_ACEOF
38289 cat confdefs.h >>conftest.$ac_ext
38290 cat >>conftest.$ac_ext <<_ACEOF
38291 /* end confdefs.h. */
38293 #ifdef HAVE_DB_185_H
38294 # include <db_185.h>
38299 #ifndef DB_VERSION_MAJOR
38300 # define DB_VERSION_MAJOR 1
38304 #define NULL ((void*)0)
38311 #if DB_VERSION_MAJOR > 1
38314 int major, minor, patch;
38316 version = db_version( &major, &minor, &patch );
38318 if( major != DB_VERSION_MAJOR ||
38319 minor < DB_VERSION_MINOR )
38321 printf("Berkeley DB version mismatch\n"
38322 "\theader: %s\n\tlibrary: %s\n",
38323 DB_VERSION_STRING, version);
38329 #if DB_VERSION_MAJOR > 2
38330 db_env_create( NULL, 0 );
38331 #elif DB_VERSION_MAJOR > 1
38332 db_appexit( NULL );
38334 (void) dbopen( NULL, 0, 0, 0, NULL);
38341 rm -f conftest.$ac_objext conftest$ac_exeext
38342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38343 (eval $ac_link) 2>conftest.er1
38345 grep -v '^ *+' conftest.er1 >conftest.err
38347 cat conftest.err >&5
38348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38349 (exit $ac_status); } &&
38350 { ac_try='test -z "$ac_c_werror_flag"
38351 || test ! -s conftest.err'
38352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38353 (eval $ac_try) 2>&5
38355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38356 (exit $ac_status); }; } &&
38357 { ac_try='test -s conftest$ac_exeext'
38358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38359 (eval $ac_try) 2>&5
38361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38362 (exit $ac_status); }; }; then
38363 ol_cv_db_db_4_3=yes
38365 echo "$as_me: failed program was:" >&5
38366 sed 's/^/| /' conftest.$ac_ext >&5
38370 rm -f conftest.err conftest.$ac_objext \
38371 conftest$ac_exeext conftest.$ac_ext
38376 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
38377 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
38379 if test $ol_cv_db_db_4_3 = yes ; then
38380 ol_cv_lib_db=-ldb-4-3
38384 if test $ol_cv_lib_db = no ; then
38385 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
38386 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
38387 if test "${ol_cv_db_db42+set}" = set; then
38388 echo $ECHO_N "(cached) $ECHO_C" >&6
38393 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38395 cat >conftest.$ac_ext <<_ACEOF
38398 cat confdefs.h >>conftest.$ac_ext
38399 cat >>conftest.$ac_ext <<_ACEOF
38400 /* end confdefs.h. */
38402 #ifdef HAVE_DB_185_H
38403 # include <db_185.h>
38408 #ifndef DB_VERSION_MAJOR
38409 # define DB_VERSION_MAJOR 1
38413 #define NULL ((void*)0)
38420 #if DB_VERSION_MAJOR > 1
38423 int major, minor, patch;
38425 version = db_version( &major, &minor, &patch );
38427 if( major != DB_VERSION_MAJOR ||
38428 minor < DB_VERSION_MINOR )
38430 printf("Berkeley DB version mismatch\n"
38431 "\theader: %s\n\tlibrary: %s\n",
38432 DB_VERSION_STRING, version);
38438 #if DB_VERSION_MAJOR > 2
38439 db_env_create( NULL, 0 );
38440 #elif DB_VERSION_MAJOR > 1
38441 db_appexit( NULL );
38443 (void) dbopen( NULL, 0, 0, 0, NULL);
38450 rm -f conftest.$ac_objext conftest$ac_exeext
38451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38452 (eval $ac_link) 2>conftest.er1
38454 grep -v '^ *+' conftest.er1 >conftest.err
38456 cat conftest.err >&5
38457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38458 (exit $ac_status); } &&
38459 { ac_try='test -z "$ac_c_werror_flag"
38460 || test ! -s conftest.err'
38461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38462 (eval $ac_try) 2>&5
38464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38465 (exit $ac_status); }; } &&
38466 { ac_try='test -s conftest$ac_exeext'
38467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38468 (eval $ac_try) 2>&5
38470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38471 (exit $ac_status); }; }; then
38474 echo "$as_me: failed program was:" >&5
38475 sed 's/^/| /' conftest.$ac_ext >&5
38479 rm -f conftest.err conftest.$ac_objext \
38480 conftest$ac_exeext conftest.$ac_ext
38485 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
38486 echo "${ECHO_T}$ol_cv_db_db42" >&6
38488 if test $ol_cv_db_db42 = yes ; then
38489 ol_cv_lib_db=-ldb42
38493 if test $ol_cv_lib_db = no ; then
38494 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
38495 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
38496 if test "${ol_cv_db_db_42+set}" = set; then
38497 echo $ECHO_N "(cached) $ECHO_C" >&6
38502 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38504 cat >conftest.$ac_ext <<_ACEOF
38507 cat confdefs.h >>conftest.$ac_ext
38508 cat >>conftest.$ac_ext <<_ACEOF
38509 /* end confdefs.h. */
38511 #ifdef HAVE_DB_185_H
38512 # include <db_185.h>
38517 #ifndef DB_VERSION_MAJOR
38518 # define DB_VERSION_MAJOR 1
38522 #define NULL ((void*)0)
38529 #if DB_VERSION_MAJOR > 1
38532 int major, minor, patch;
38534 version = db_version( &major, &minor, &patch );
38536 if( major != DB_VERSION_MAJOR ||
38537 minor < DB_VERSION_MINOR )
38539 printf("Berkeley DB version mismatch\n"
38540 "\theader: %s\n\tlibrary: %s\n",
38541 DB_VERSION_STRING, version);
38547 #if DB_VERSION_MAJOR > 2
38548 db_env_create( NULL, 0 );
38549 #elif DB_VERSION_MAJOR > 1
38550 db_appexit( NULL );
38552 (void) dbopen( NULL, 0, 0, 0, NULL);
38559 rm -f conftest.$ac_objext conftest$ac_exeext
38560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38561 (eval $ac_link) 2>conftest.er1
38563 grep -v '^ *+' conftest.er1 >conftest.err
38565 cat conftest.err >&5
38566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38567 (exit $ac_status); } &&
38568 { ac_try='test -z "$ac_c_werror_flag"
38569 || test ! -s conftest.err'
38570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38571 (eval $ac_try) 2>&5
38573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38574 (exit $ac_status); }; } &&
38575 { ac_try='test -s conftest$ac_exeext'
38576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38577 (eval $ac_try) 2>&5
38579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38580 (exit $ac_status); }; }; then
38583 echo "$as_me: failed program was:" >&5
38584 sed 's/^/| /' conftest.$ac_ext >&5
38588 rm -f conftest.err conftest.$ac_objext \
38589 conftest$ac_exeext conftest.$ac_ext
38594 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
38595 echo "${ECHO_T}$ol_cv_db_db_42" >&6
38597 if test $ol_cv_db_db_42 = yes ; then
38598 ol_cv_lib_db=-ldb-42
38602 if test $ol_cv_lib_db = no ; then
38603 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
38604 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
38605 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
38606 echo $ECHO_N "(cached) $ECHO_C" >&6
38611 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38613 cat >conftest.$ac_ext <<_ACEOF
38616 cat confdefs.h >>conftest.$ac_ext
38617 cat >>conftest.$ac_ext <<_ACEOF
38618 /* end confdefs.h. */
38620 #ifdef HAVE_DB_185_H
38621 # include <db_185.h>
38626 #ifndef DB_VERSION_MAJOR
38627 # define DB_VERSION_MAJOR 1
38631 #define NULL ((void*)0)
38638 #if DB_VERSION_MAJOR > 1
38641 int major, minor, patch;
38643 version = db_version( &major, &minor, &patch );
38645 if( major != DB_VERSION_MAJOR ||
38646 minor < DB_VERSION_MINOR )
38648 printf("Berkeley DB version mismatch\n"
38649 "\theader: %s\n\tlibrary: %s\n",
38650 DB_VERSION_STRING, version);
38656 #if DB_VERSION_MAJOR > 2
38657 db_env_create( NULL, 0 );
38658 #elif DB_VERSION_MAJOR > 1
38659 db_appexit( NULL );
38661 (void) dbopen( NULL, 0, 0, 0, NULL);
38668 rm -f conftest.$ac_objext conftest$ac_exeext
38669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38670 (eval $ac_link) 2>conftest.er1
38672 grep -v '^ *+' conftest.er1 >conftest.err
38674 cat conftest.err >&5
38675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38676 (exit $ac_status); } &&
38677 { ac_try='test -z "$ac_c_werror_flag"
38678 || test ! -s conftest.err'
38679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38680 (eval $ac_try) 2>&5
38682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38683 (exit $ac_status); }; } &&
38684 { ac_try='test -s conftest$ac_exeext'
38685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38686 (eval $ac_try) 2>&5
38688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38689 (exit $ac_status); }; }; then
38690 ol_cv_db_db_4_dot_2=yes
38692 echo "$as_me: failed program was:" >&5
38693 sed 's/^/| /' conftest.$ac_ext >&5
38695 ol_cv_db_db_4_dot_2=no
38697 rm -f conftest.err conftest.$ac_objext \
38698 conftest$ac_exeext conftest.$ac_ext
38703 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
38704 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
38706 if test $ol_cv_db_db_4_dot_2 = yes ; then
38707 ol_cv_lib_db=-ldb-4.2
38711 if test $ol_cv_lib_db = no ; then
38712 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
38713 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
38714 if test "${ol_cv_db_db_4_2+set}" = set; then
38715 echo $ECHO_N "(cached) $ECHO_C" >&6
38720 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38722 cat >conftest.$ac_ext <<_ACEOF
38725 cat confdefs.h >>conftest.$ac_ext
38726 cat >>conftest.$ac_ext <<_ACEOF
38727 /* end confdefs.h. */
38729 #ifdef HAVE_DB_185_H
38730 # include <db_185.h>
38735 #ifndef DB_VERSION_MAJOR
38736 # define DB_VERSION_MAJOR 1
38740 #define NULL ((void*)0)
38747 #if DB_VERSION_MAJOR > 1
38750 int major, minor, patch;
38752 version = db_version( &major, &minor, &patch );
38754 if( major != DB_VERSION_MAJOR ||
38755 minor < DB_VERSION_MINOR )
38757 printf("Berkeley DB version mismatch\n"
38758 "\theader: %s\n\tlibrary: %s\n",
38759 DB_VERSION_STRING, version);
38765 #if DB_VERSION_MAJOR > 2
38766 db_env_create( NULL, 0 );
38767 #elif DB_VERSION_MAJOR > 1
38768 db_appexit( NULL );
38770 (void) dbopen( NULL, 0, 0, 0, NULL);
38777 rm -f conftest.$ac_objext conftest$ac_exeext
38778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38779 (eval $ac_link) 2>conftest.er1
38781 grep -v '^ *+' conftest.er1 >conftest.err
38783 cat conftest.err >&5
38784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38785 (exit $ac_status); } &&
38786 { ac_try='test -z "$ac_c_werror_flag"
38787 || test ! -s conftest.err'
38788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38789 (eval $ac_try) 2>&5
38791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38792 (exit $ac_status); }; } &&
38793 { ac_try='test -s conftest$ac_exeext'
38794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38795 (eval $ac_try) 2>&5
38797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38798 (exit $ac_status); }; }; then
38799 ol_cv_db_db_4_2=yes
38801 echo "$as_me: failed program was:" >&5
38802 sed 's/^/| /' conftest.$ac_ext >&5
38806 rm -f conftest.err conftest.$ac_objext \
38807 conftest$ac_exeext conftest.$ac_ext
38812 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
38813 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
38815 if test $ol_cv_db_db_4_2 = yes ; then
38816 ol_cv_lib_db=-ldb-4-2
38820 if test $ol_cv_lib_db = no ; then
38821 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
38822 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
38823 if test "${ol_cv_db_db_4+set}" = set; then
38824 echo $ECHO_N "(cached) $ECHO_C" >&6
38829 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38831 cat >conftest.$ac_ext <<_ACEOF
38834 cat confdefs.h >>conftest.$ac_ext
38835 cat >>conftest.$ac_ext <<_ACEOF
38836 /* end confdefs.h. */
38838 #ifdef HAVE_DB_185_H
38839 # include <db_185.h>
38844 #ifndef DB_VERSION_MAJOR
38845 # define DB_VERSION_MAJOR 1
38849 #define NULL ((void*)0)
38856 #if DB_VERSION_MAJOR > 1
38859 int major, minor, patch;
38861 version = db_version( &major, &minor, &patch );
38863 if( major != DB_VERSION_MAJOR ||
38864 minor < DB_VERSION_MINOR )
38866 printf("Berkeley DB version mismatch\n"
38867 "\theader: %s\n\tlibrary: %s\n",
38868 DB_VERSION_STRING, version);
38874 #if DB_VERSION_MAJOR > 2
38875 db_env_create( NULL, 0 );
38876 #elif DB_VERSION_MAJOR > 1
38877 db_appexit( NULL );
38879 (void) dbopen( NULL, 0, 0, 0, NULL);
38886 rm -f conftest.$ac_objext conftest$ac_exeext
38887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38888 (eval $ac_link) 2>conftest.er1
38890 grep -v '^ *+' conftest.er1 >conftest.err
38892 cat conftest.err >&5
38893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38894 (exit $ac_status); } &&
38895 { ac_try='test -z "$ac_c_werror_flag"
38896 || test ! -s conftest.err'
38897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38898 (eval $ac_try) 2>&5
38900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38901 (exit $ac_status); }; } &&
38902 { ac_try='test -s conftest$ac_exeext'
38903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38904 (eval $ac_try) 2>&5
38906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
38907 (exit $ac_status); }; }; then
38910 echo "$as_me: failed program was:" >&5
38911 sed 's/^/| /' conftest.$ac_ext >&5
38915 rm -f conftest.err conftest.$ac_objext \
38916 conftest$ac_exeext conftest.$ac_ext
38921 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
38922 echo "${ECHO_T}$ol_cv_db_db_4" >&6
38924 if test $ol_cv_db_db_4 = yes ; then
38925 ol_cv_lib_db=-ldb-4
38929 if test $ol_cv_lib_db = no ; then
38930 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
38931 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
38932 if test "${ol_cv_db_db4+set}" = set; then
38933 echo $ECHO_N "(cached) $ECHO_C" >&6
38938 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
38940 cat >conftest.$ac_ext <<_ACEOF
38943 cat confdefs.h >>conftest.$ac_ext
38944 cat >>conftest.$ac_ext <<_ACEOF
38945 /* end confdefs.h. */
38947 #ifdef HAVE_DB_185_H
38948 # include <db_185.h>
38953 #ifndef DB_VERSION_MAJOR
38954 # define DB_VERSION_MAJOR 1
38958 #define NULL ((void*)0)
38965 #if DB_VERSION_MAJOR > 1
38968 int major, minor, patch;
38970 version = db_version( &major, &minor, &patch );
38972 if( major != DB_VERSION_MAJOR ||
38973 minor < DB_VERSION_MINOR )
38975 printf("Berkeley DB version mismatch\n"
38976 "\theader: %s\n\tlibrary: %s\n",
38977 DB_VERSION_STRING, version);
38983 #if DB_VERSION_MAJOR > 2
38984 db_env_create( NULL, 0 );
38985 #elif DB_VERSION_MAJOR > 1
38986 db_appexit( NULL );
38988 (void) dbopen( NULL, 0, 0, 0, NULL);
38995 rm -f conftest.$ac_objext conftest$ac_exeext
38996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38997 (eval $ac_link) 2>conftest.er1
38999 grep -v '^ *+' conftest.er1 >conftest.err
39001 cat conftest.err >&5
39002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39003 (exit $ac_status); } &&
39004 { ac_try='test -z "$ac_c_werror_flag"
39005 || test ! -s conftest.err'
39006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39007 (eval $ac_try) 2>&5
39009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39010 (exit $ac_status); }; } &&
39011 { ac_try='test -s conftest$ac_exeext'
39012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39013 (eval $ac_try) 2>&5
39015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39016 (exit $ac_status); }; }; then
39019 echo "$as_me: failed program was:" >&5
39020 sed 's/^/| /' conftest.$ac_ext >&5
39024 rm -f conftest.err conftest.$ac_objext \
39025 conftest$ac_exeext conftest.$ac_ext
39030 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
39031 echo "${ECHO_T}$ol_cv_db_db4" >&6
39033 if test $ol_cv_db_db4 = yes ; then
39038 if test $ol_cv_lib_db = no ; then
39039 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
39040 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
39041 if test "${ol_cv_db_db+set}" = set; then
39042 echo $ECHO_N "(cached) $ECHO_C" >&6
39047 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39049 cat >conftest.$ac_ext <<_ACEOF
39052 cat confdefs.h >>conftest.$ac_ext
39053 cat >>conftest.$ac_ext <<_ACEOF
39054 /* end confdefs.h. */
39056 #ifdef HAVE_DB_185_H
39057 # include <db_185.h>
39062 #ifndef DB_VERSION_MAJOR
39063 # define DB_VERSION_MAJOR 1
39067 #define NULL ((void*)0)
39074 #if DB_VERSION_MAJOR > 1
39077 int major, minor, patch;
39079 version = db_version( &major, &minor, &patch );
39081 if( major != DB_VERSION_MAJOR ||
39082 minor < DB_VERSION_MINOR )
39084 printf("Berkeley DB version mismatch\n"
39085 "\theader: %s\n\tlibrary: %s\n",
39086 DB_VERSION_STRING, version);
39092 #if DB_VERSION_MAJOR > 2
39093 db_env_create( NULL, 0 );
39094 #elif DB_VERSION_MAJOR > 1
39095 db_appexit( NULL );
39097 (void) dbopen( NULL, 0, 0, 0, NULL);
39104 rm -f conftest.$ac_objext conftest$ac_exeext
39105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39106 (eval $ac_link) 2>conftest.er1
39108 grep -v '^ *+' conftest.er1 >conftest.err
39110 cat conftest.err >&5
39111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39112 (exit $ac_status); } &&
39113 { ac_try='test -z "$ac_c_werror_flag"
39114 || test ! -s conftest.err'
39115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39116 (eval $ac_try) 2>&5
39118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39119 (exit $ac_status); }; } &&
39120 { ac_try='test -s conftest$ac_exeext'
39121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39122 (eval $ac_try) 2>&5
39124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39125 (exit $ac_status); }; }; then
39128 echo "$as_me: failed program was:" >&5
39129 sed 's/^/| /' conftest.$ac_ext >&5
39133 rm -f conftest.err conftest.$ac_objext \
39134 conftest$ac_exeext conftest.$ac_ext
39139 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
39140 echo "${ECHO_T}$ol_cv_db_db" >&6
39142 if test $ol_cv_db_db = yes ; then
39147 if test $ol_cv_lib_db = no ; then
39148 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
39149 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
39150 if test "${ol_cv_db_db41+set}" = set; then
39151 echo $ECHO_N "(cached) $ECHO_C" >&6
39156 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39158 cat >conftest.$ac_ext <<_ACEOF
39161 cat confdefs.h >>conftest.$ac_ext
39162 cat >>conftest.$ac_ext <<_ACEOF
39163 /* end confdefs.h. */
39165 #ifdef HAVE_DB_185_H
39166 # include <db_185.h>
39171 #ifndef DB_VERSION_MAJOR
39172 # define DB_VERSION_MAJOR 1
39176 #define NULL ((void*)0)
39183 #if DB_VERSION_MAJOR > 1
39186 int major, minor, patch;
39188 version = db_version( &major, &minor, &patch );
39190 if( major != DB_VERSION_MAJOR ||
39191 minor < DB_VERSION_MINOR )
39193 printf("Berkeley DB version mismatch\n"
39194 "\theader: %s\n\tlibrary: %s\n",
39195 DB_VERSION_STRING, version);
39201 #if DB_VERSION_MAJOR > 2
39202 db_env_create( NULL, 0 );
39203 #elif DB_VERSION_MAJOR > 1
39204 db_appexit( NULL );
39206 (void) dbopen( NULL, 0, 0, 0, NULL);
39213 rm -f conftest.$ac_objext conftest$ac_exeext
39214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39215 (eval $ac_link) 2>conftest.er1
39217 grep -v '^ *+' conftest.er1 >conftest.err
39219 cat conftest.err >&5
39220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39221 (exit $ac_status); } &&
39222 { ac_try='test -z "$ac_c_werror_flag"
39223 || test ! -s conftest.err'
39224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39225 (eval $ac_try) 2>&5
39227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39228 (exit $ac_status); }; } &&
39229 { ac_try='test -s conftest$ac_exeext'
39230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39231 (eval $ac_try) 2>&5
39233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39234 (exit $ac_status); }; }; then
39237 echo "$as_me: failed program was:" >&5
39238 sed 's/^/| /' conftest.$ac_ext >&5
39242 rm -f conftest.err conftest.$ac_objext \
39243 conftest$ac_exeext conftest.$ac_ext
39248 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
39249 echo "${ECHO_T}$ol_cv_db_db41" >&6
39251 if test $ol_cv_db_db41 = yes ; then
39252 ol_cv_lib_db=-ldb41
39256 if test $ol_cv_lib_db = no ; then
39257 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
39258 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
39259 if test "${ol_cv_db_db_41+set}" = set; then
39260 echo $ECHO_N "(cached) $ECHO_C" >&6
39265 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39267 cat >conftest.$ac_ext <<_ACEOF
39270 cat confdefs.h >>conftest.$ac_ext
39271 cat >>conftest.$ac_ext <<_ACEOF
39272 /* end confdefs.h. */
39274 #ifdef HAVE_DB_185_H
39275 # include <db_185.h>
39280 #ifndef DB_VERSION_MAJOR
39281 # define DB_VERSION_MAJOR 1
39285 #define NULL ((void*)0)
39292 #if DB_VERSION_MAJOR > 1
39295 int major, minor, patch;
39297 version = db_version( &major, &minor, &patch );
39299 if( major != DB_VERSION_MAJOR ||
39300 minor < DB_VERSION_MINOR )
39302 printf("Berkeley DB version mismatch\n"
39303 "\theader: %s\n\tlibrary: %s\n",
39304 DB_VERSION_STRING, version);
39310 #if DB_VERSION_MAJOR > 2
39311 db_env_create( NULL, 0 );
39312 #elif DB_VERSION_MAJOR > 1
39313 db_appexit( NULL );
39315 (void) dbopen( NULL, 0, 0, 0, NULL);
39322 rm -f conftest.$ac_objext conftest$ac_exeext
39323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39324 (eval $ac_link) 2>conftest.er1
39326 grep -v '^ *+' conftest.er1 >conftest.err
39328 cat conftest.err >&5
39329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39330 (exit $ac_status); } &&
39331 { ac_try='test -z "$ac_c_werror_flag"
39332 || test ! -s conftest.err'
39333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39334 (eval $ac_try) 2>&5
39336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39337 (exit $ac_status); }; } &&
39338 { ac_try='test -s conftest$ac_exeext'
39339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39340 (eval $ac_try) 2>&5
39342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39343 (exit $ac_status); }; }; then
39346 echo "$as_me: failed program was:" >&5
39347 sed 's/^/| /' conftest.$ac_ext >&5
39351 rm -f conftest.err conftest.$ac_objext \
39352 conftest$ac_exeext conftest.$ac_ext
39357 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
39358 echo "${ECHO_T}$ol_cv_db_db_41" >&6
39360 if test $ol_cv_db_db_41 = yes ; then
39361 ol_cv_lib_db=-ldb-41
39365 if test $ol_cv_lib_db = no ; then
39366 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
39367 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
39368 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
39369 echo $ECHO_N "(cached) $ECHO_C" >&6
39374 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39376 cat >conftest.$ac_ext <<_ACEOF
39379 cat confdefs.h >>conftest.$ac_ext
39380 cat >>conftest.$ac_ext <<_ACEOF
39381 /* end confdefs.h. */
39383 #ifdef HAVE_DB_185_H
39384 # include <db_185.h>
39389 #ifndef DB_VERSION_MAJOR
39390 # define DB_VERSION_MAJOR 1
39394 #define NULL ((void*)0)
39401 #if DB_VERSION_MAJOR > 1
39404 int major, minor, patch;
39406 version = db_version( &major, &minor, &patch );
39408 if( major != DB_VERSION_MAJOR ||
39409 minor < DB_VERSION_MINOR )
39411 printf("Berkeley DB version mismatch\n"
39412 "\theader: %s\n\tlibrary: %s\n",
39413 DB_VERSION_STRING, version);
39419 #if DB_VERSION_MAJOR > 2
39420 db_env_create( NULL, 0 );
39421 #elif DB_VERSION_MAJOR > 1
39422 db_appexit( NULL );
39424 (void) dbopen( NULL, 0, 0, 0, NULL);
39431 rm -f conftest.$ac_objext conftest$ac_exeext
39432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39433 (eval $ac_link) 2>conftest.er1
39435 grep -v '^ *+' conftest.er1 >conftest.err
39437 cat conftest.err >&5
39438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39439 (exit $ac_status); } &&
39440 { ac_try='test -z "$ac_c_werror_flag"
39441 || test ! -s conftest.err'
39442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39443 (eval $ac_try) 2>&5
39445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39446 (exit $ac_status); }; } &&
39447 { ac_try='test -s conftest$ac_exeext'
39448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39449 (eval $ac_try) 2>&5
39451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39452 (exit $ac_status); }; }; then
39453 ol_cv_db_db_4_dot_1=yes
39455 echo "$as_me: failed program was:" >&5
39456 sed 's/^/| /' conftest.$ac_ext >&5
39458 ol_cv_db_db_4_dot_1=no
39460 rm -f conftest.err conftest.$ac_objext \
39461 conftest$ac_exeext conftest.$ac_ext
39466 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
39467 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
39469 if test $ol_cv_db_db_4_dot_1 = yes ; then
39470 ol_cv_lib_db=-ldb-4.1
39474 if test $ol_cv_lib_db = no ; then
39475 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
39476 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
39477 if test "${ol_cv_db_db_4_1+set}" = set; then
39478 echo $ECHO_N "(cached) $ECHO_C" >&6
39483 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39485 cat >conftest.$ac_ext <<_ACEOF
39488 cat confdefs.h >>conftest.$ac_ext
39489 cat >>conftest.$ac_ext <<_ACEOF
39490 /* end confdefs.h. */
39492 #ifdef HAVE_DB_185_H
39493 # include <db_185.h>
39498 #ifndef DB_VERSION_MAJOR
39499 # define DB_VERSION_MAJOR 1
39503 #define NULL ((void*)0)
39510 #if DB_VERSION_MAJOR > 1
39513 int major, minor, patch;
39515 version = db_version( &major, &minor, &patch );
39517 if( major != DB_VERSION_MAJOR ||
39518 minor < DB_VERSION_MINOR )
39520 printf("Berkeley DB version mismatch\n"
39521 "\theader: %s\n\tlibrary: %s\n",
39522 DB_VERSION_STRING, version);
39528 #if DB_VERSION_MAJOR > 2
39529 db_env_create( NULL, 0 );
39530 #elif DB_VERSION_MAJOR > 1
39531 db_appexit( NULL );
39533 (void) dbopen( NULL, 0, 0, 0, NULL);
39540 rm -f conftest.$ac_objext conftest$ac_exeext
39541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39542 (eval $ac_link) 2>conftest.er1
39544 grep -v '^ *+' conftest.er1 >conftest.err
39546 cat conftest.err >&5
39547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39548 (exit $ac_status); } &&
39549 { ac_try='test -z "$ac_c_werror_flag"
39550 || test ! -s conftest.err'
39551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39552 (eval $ac_try) 2>&5
39554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39555 (exit $ac_status); }; } &&
39556 { ac_try='test -s conftest$ac_exeext'
39557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39558 (eval $ac_try) 2>&5
39560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39561 (exit $ac_status); }; }; then
39562 ol_cv_db_db_4_1=yes
39564 echo "$as_me: failed program was:" >&5
39565 sed 's/^/| /' conftest.$ac_ext >&5
39569 rm -f conftest.err conftest.$ac_objext \
39570 conftest$ac_exeext conftest.$ac_ext
39575 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
39576 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
39578 if test $ol_cv_db_db_4_1 = yes ; then
39579 ol_cv_lib_db=-ldb-4-1
39583 if test $ol_cv_lib_db = no ; then
39584 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
39585 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
39586 if test "${ol_cv_db_db3+set}" = set; then
39587 echo $ECHO_N "(cached) $ECHO_C" >&6
39592 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39594 cat >conftest.$ac_ext <<_ACEOF
39597 cat confdefs.h >>conftest.$ac_ext
39598 cat >>conftest.$ac_ext <<_ACEOF
39599 /* end confdefs.h. */
39601 #ifdef HAVE_DB_185_H
39602 # include <db_185.h>
39607 #ifndef DB_VERSION_MAJOR
39608 # define DB_VERSION_MAJOR 1
39612 #define NULL ((void*)0)
39619 #if DB_VERSION_MAJOR > 1
39622 int major, minor, patch;
39624 version = db_version( &major, &minor, &patch );
39626 if( major != DB_VERSION_MAJOR ||
39627 minor < DB_VERSION_MINOR )
39629 printf("Berkeley DB version mismatch\n"
39630 "\theader: %s\n\tlibrary: %s\n",
39631 DB_VERSION_STRING, version);
39637 #if DB_VERSION_MAJOR > 2
39638 db_env_create( NULL, 0 );
39639 #elif DB_VERSION_MAJOR > 1
39640 db_appexit( NULL );
39642 (void) dbopen( NULL, 0, 0, 0, NULL);
39649 rm -f conftest.$ac_objext conftest$ac_exeext
39650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39651 (eval $ac_link) 2>conftest.er1
39653 grep -v '^ *+' conftest.er1 >conftest.err
39655 cat conftest.err >&5
39656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39657 (exit $ac_status); } &&
39658 { ac_try='test -z "$ac_c_werror_flag"
39659 || test ! -s conftest.err'
39660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39661 (eval $ac_try) 2>&5
39663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39664 (exit $ac_status); }; } &&
39665 { ac_try='test -s conftest$ac_exeext'
39666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39667 (eval $ac_try) 2>&5
39669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39670 (exit $ac_status); }; }; then
39673 echo "$as_me: failed program was:" >&5
39674 sed 's/^/| /' conftest.$ac_ext >&5
39678 rm -f conftest.err conftest.$ac_objext \
39679 conftest$ac_exeext conftest.$ac_ext
39684 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
39685 echo "${ECHO_T}$ol_cv_db_db3" >&6
39687 if test $ol_cv_db_db3 = yes ; then
39692 if test $ol_cv_lib_db = no ; then
39693 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
39694 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
39695 if test "${ol_cv_db_db_3+set}" = set; then
39696 echo $ECHO_N "(cached) $ECHO_C" >&6
39701 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39703 cat >conftest.$ac_ext <<_ACEOF
39706 cat confdefs.h >>conftest.$ac_ext
39707 cat >>conftest.$ac_ext <<_ACEOF
39708 /* end confdefs.h. */
39710 #ifdef HAVE_DB_185_H
39711 # include <db_185.h>
39716 #ifndef DB_VERSION_MAJOR
39717 # define DB_VERSION_MAJOR 1
39721 #define NULL ((void*)0)
39728 #if DB_VERSION_MAJOR > 1
39731 int major, minor, patch;
39733 version = db_version( &major, &minor, &patch );
39735 if( major != DB_VERSION_MAJOR ||
39736 minor < DB_VERSION_MINOR )
39738 printf("Berkeley DB version mismatch\n"
39739 "\theader: %s\n\tlibrary: %s\n",
39740 DB_VERSION_STRING, version);
39746 #if DB_VERSION_MAJOR > 2
39747 db_env_create( NULL, 0 );
39748 #elif DB_VERSION_MAJOR > 1
39749 db_appexit( NULL );
39751 (void) dbopen( NULL, 0, 0, 0, NULL);
39758 rm -f conftest.$ac_objext conftest$ac_exeext
39759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39760 (eval $ac_link) 2>conftest.er1
39762 grep -v '^ *+' conftest.er1 >conftest.err
39764 cat conftest.err >&5
39765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39766 (exit $ac_status); } &&
39767 { ac_try='test -z "$ac_c_werror_flag"
39768 || test ! -s conftest.err'
39769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39770 (eval $ac_try) 2>&5
39772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39773 (exit $ac_status); }; } &&
39774 { ac_try='test -s conftest$ac_exeext'
39775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39776 (eval $ac_try) 2>&5
39778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39779 (exit $ac_status); }; }; then
39782 echo "$as_me: failed program was:" >&5
39783 sed 's/^/| /' conftest.$ac_ext >&5
39787 rm -f conftest.err conftest.$ac_objext \
39788 conftest$ac_exeext conftest.$ac_ext
39793 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
39794 echo "${ECHO_T}$ol_cv_db_db_3" >&6
39796 if test $ol_cv_db_db_3 = yes ; then
39797 ol_cv_lib_db=-ldb-3
39801 if test $ol_cv_lib_db = no ; then
39802 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
39803 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
39804 if test "${ol_cv_db_db2+set}" = set; then
39805 echo $ECHO_N "(cached) $ECHO_C" >&6
39810 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39812 cat >conftest.$ac_ext <<_ACEOF
39815 cat confdefs.h >>conftest.$ac_ext
39816 cat >>conftest.$ac_ext <<_ACEOF
39817 /* end confdefs.h. */
39819 #ifdef HAVE_DB_185_H
39820 # include <db_185.h>
39825 #ifndef DB_VERSION_MAJOR
39826 # define DB_VERSION_MAJOR 1
39830 #define NULL ((void*)0)
39837 #if DB_VERSION_MAJOR > 1
39840 int major, minor, patch;
39842 version = db_version( &major, &minor, &patch );
39844 if( major != DB_VERSION_MAJOR ||
39845 minor < DB_VERSION_MINOR )
39847 printf("Berkeley DB version mismatch\n"
39848 "\theader: %s\n\tlibrary: %s\n",
39849 DB_VERSION_STRING, version);
39855 #if DB_VERSION_MAJOR > 2
39856 db_env_create( NULL, 0 );
39857 #elif DB_VERSION_MAJOR > 1
39858 db_appexit( NULL );
39860 (void) dbopen( NULL, 0, 0, 0, NULL);
39867 rm -f conftest.$ac_objext conftest$ac_exeext
39868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39869 (eval $ac_link) 2>conftest.er1
39871 grep -v '^ *+' conftest.er1 >conftest.err
39873 cat conftest.err >&5
39874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39875 (exit $ac_status); } &&
39876 { ac_try='test -z "$ac_c_werror_flag"
39877 || test ! -s conftest.err'
39878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39879 (eval $ac_try) 2>&5
39881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39882 (exit $ac_status); }; } &&
39883 { ac_try='test -s conftest$ac_exeext'
39884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39885 (eval $ac_try) 2>&5
39887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39888 (exit $ac_status); }; }; then
39891 echo "$as_me: failed program was:" >&5
39892 sed 's/^/| /' conftest.$ac_ext >&5
39896 rm -f conftest.err conftest.$ac_objext \
39897 conftest$ac_exeext conftest.$ac_ext
39902 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
39903 echo "${ECHO_T}$ol_cv_db_db2" >&6
39905 if test $ol_cv_db_db2 = yes ; then
39910 if test $ol_cv_lib_db = no ; then
39911 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
39912 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
39913 if test "${ol_cv_db_db_2+set}" = set; then
39914 echo $ECHO_N "(cached) $ECHO_C" >&6
39919 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
39921 cat >conftest.$ac_ext <<_ACEOF
39924 cat confdefs.h >>conftest.$ac_ext
39925 cat >>conftest.$ac_ext <<_ACEOF
39926 /* end confdefs.h. */
39928 #ifdef HAVE_DB_185_H
39929 # include <db_185.h>
39934 #ifndef DB_VERSION_MAJOR
39935 # define DB_VERSION_MAJOR 1
39939 #define NULL ((void*)0)
39946 #if DB_VERSION_MAJOR > 1
39949 int major, minor, patch;
39951 version = db_version( &major, &minor, &patch );
39953 if( major != DB_VERSION_MAJOR ||
39954 minor < DB_VERSION_MINOR )
39956 printf("Berkeley DB version mismatch\n"
39957 "\theader: %s\n\tlibrary: %s\n",
39958 DB_VERSION_STRING, version);
39964 #if DB_VERSION_MAJOR > 2
39965 db_env_create( NULL, 0 );
39966 #elif DB_VERSION_MAJOR > 1
39967 db_appexit( NULL );
39969 (void) dbopen( NULL, 0, 0, 0, NULL);
39976 rm -f conftest.$ac_objext conftest$ac_exeext
39977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
39978 (eval $ac_link) 2>conftest.er1
39980 grep -v '^ *+' conftest.er1 >conftest.err
39982 cat conftest.err >&5
39983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39984 (exit $ac_status); } &&
39985 { ac_try='test -z "$ac_c_werror_flag"
39986 || test ! -s conftest.err'
39987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39988 (eval $ac_try) 2>&5
39990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39991 (exit $ac_status); }; } &&
39992 { ac_try='test -s conftest$ac_exeext'
39993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39994 (eval $ac_try) 2>&5
39996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
39997 (exit $ac_status); }; }; then
40000 echo "$as_me: failed program was:" >&5
40001 sed 's/^/| /' conftest.$ac_ext >&5
40005 rm -f conftest.err conftest.$ac_objext \
40006 conftest$ac_exeext conftest.$ac_ext
40011 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
40012 echo "${ECHO_T}$ol_cv_db_db_2" >&6
40014 if test $ol_cv_db_db_2 = yes ; then
40015 ol_cv_lib_db=-ldb-2
40019 if test $ol_cv_lib_db = no ; then
40020 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
40021 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
40022 if test "${ol_cv_db_db1+set}" = set; then
40023 echo $ECHO_N "(cached) $ECHO_C" >&6
40028 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40030 cat >conftest.$ac_ext <<_ACEOF
40033 cat confdefs.h >>conftest.$ac_ext
40034 cat >>conftest.$ac_ext <<_ACEOF
40035 /* end confdefs.h. */
40037 #ifdef HAVE_DB_185_H
40038 # include <db_185.h>
40043 #ifndef DB_VERSION_MAJOR
40044 # define DB_VERSION_MAJOR 1
40048 #define NULL ((void*)0)
40055 #if DB_VERSION_MAJOR > 1
40058 int major, minor, patch;
40060 version = db_version( &major, &minor, &patch );
40062 if( major != DB_VERSION_MAJOR ||
40063 minor < DB_VERSION_MINOR )
40065 printf("Berkeley DB version mismatch\n"
40066 "\theader: %s\n\tlibrary: %s\n",
40067 DB_VERSION_STRING, version);
40073 #if DB_VERSION_MAJOR > 2
40074 db_env_create( NULL, 0 );
40075 #elif DB_VERSION_MAJOR > 1
40076 db_appexit( NULL );
40078 (void) dbopen( NULL, 0, 0, 0, NULL);
40085 rm -f conftest.$ac_objext conftest$ac_exeext
40086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40087 (eval $ac_link) 2>conftest.er1
40089 grep -v '^ *+' conftest.er1 >conftest.err
40091 cat conftest.err >&5
40092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40093 (exit $ac_status); } &&
40094 { ac_try='test -z "$ac_c_werror_flag"
40095 || test ! -s conftest.err'
40096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40097 (eval $ac_try) 2>&5
40099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40100 (exit $ac_status); }; } &&
40101 { ac_try='test -s conftest$ac_exeext'
40102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40103 (eval $ac_try) 2>&5
40105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40106 (exit $ac_status); }; }; then
40109 echo "$as_me: failed program was:" >&5
40110 sed 's/^/| /' conftest.$ac_ext >&5
40114 rm -f conftest.err conftest.$ac_objext \
40115 conftest$ac_exeext conftest.$ac_ext
40120 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
40121 echo "${ECHO_T}$ol_cv_db_db1" >&6
40123 if test $ol_cv_db_db1 = yes ; then
40128 if test $ol_cv_lib_db = no ; then
40129 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
40130 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
40131 if test "${ol_cv_db_db_1+set}" = set; then
40132 echo $ECHO_N "(cached) $ECHO_C" >&6
40137 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40139 cat >conftest.$ac_ext <<_ACEOF
40142 cat confdefs.h >>conftest.$ac_ext
40143 cat >>conftest.$ac_ext <<_ACEOF
40144 /* end confdefs.h. */
40146 #ifdef HAVE_DB_185_H
40147 # include <db_185.h>
40152 #ifndef DB_VERSION_MAJOR
40153 # define DB_VERSION_MAJOR 1
40157 #define NULL ((void*)0)
40164 #if DB_VERSION_MAJOR > 1
40167 int major, minor, patch;
40169 version = db_version( &major, &minor, &patch );
40171 if( major != DB_VERSION_MAJOR ||
40172 minor < DB_VERSION_MINOR )
40174 printf("Berkeley DB version mismatch\n"
40175 "\theader: %s\n\tlibrary: %s\n",
40176 DB_VERSION_STRING, version);
40182 #if DB_VERSION_MAJOR > 2
40183 db_env_create( NULL, 0 );
40184 #elif DB_VERSION_MAJOR > 1
40185 db_appexit( NULL );
40187 (void) dbopen( NULL, 0, 0, 0, NULL);
40194 rm -f conftest.$ac_objext conftest$ac_exeext
40195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40196 (eval $ac_link) 2>conftest.er1
40198 grep -v '^ *+' conftest.er1 >conftest.err
40200 cat conftest.err >&5
40201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40202 (exit $ac_status); } &&
40203 { ac_try='test -z "$ac_c_werror_flag"
40204 || test ! -s conftest.err'
40205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40206 (eval $ac_try) 2>&5
40208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40209 (exit $ac_status); }; } &&
40210 { ac_try='test -s conftest$ac_exeext'
40211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40212 (eval $ac_try) 2>&5
40214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40215 (exit $ac_status); }; }; then
40218 echo "$as_me: failed program was:" >&5
40219 sed 's/^/| /' conftest.$ac_ext >&5
40223 rm -f conftest.err conftest.$ac_objext \
40224 conftest$ac_exeext conftest.$ac_ext
40229 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
40230 echo "${ECHO_T}$ol_cv_db_db_1" >&6
40232 if test $ol_cv_db_db_1 = yes ; then
40233 ol_cv_lib_db=-ldb-1
40238 if test "$ol_cv_lib_db" != no ; then
40239 ol_cv_berkeley_db=yes
40245 ol_cv_berkeley_db=no
40247 for ac_header in db.h
40249 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
40250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40251 echo "$as_me:$LINENO: checking for $ac_header" >&5
40252 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40253 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40254 echo $ECHO_N "(cached) $ECHO_C" >&6
40256 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40257 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40259 # Is the header compilable?
40260 echo "$as_me:$LINENO: checking $ac_header usability" >&5
40261 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
40262 cat >conftest.$ac_ext <<_ACEOF
40265 cat confdefs.h >>conftest.$ac_ext
40266 cat >>conftest.$ac_ext <<_ACEOF
40267 /* end confdefs.h. */
40268 $ac_includes_default
40269 #include <$ac_header>
40271 rm -f conftest.$ac_objext
40272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
40273 (eval $ac_compile) 2>conftest.er1
40275 grep -v '^ *+' conftest.er1 >conftest.err
40277 cat conftest.err >&5
40278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40279 (exit $ac_status); } &&
40280 { ac_try='test -z "$ac_c_werror_flag"
40281 || test ! -s conftest.err'
40282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40283 (eval $ac_try) 2>&5
40285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40286 (exit $ac_status); }; } &&
40287 { ac_try='test -s conftest.$ac_objext'
40288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40289 (eval $ac_try) 2>&5
40291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40292 (exit $ac_status); }; }; then
40293 ac_header_compiler=yes
40295 echo "$as_me: failed program was:" >&5
40296 sed 's/^/| /' conftest.$ac_ext >&5
40298 ac_header_compiler=no
40300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
40301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40302 echo "${ECHO_T}$ac_header_compiler" >&6
40304 # Is the header present?
40305 echo "$as_me:$LINENO: checking $ac_header presence" >&5
40306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
40307 cat >conftest.$ac_ext <<_ACEOF
40310 cat confdefs.h >>conftest.$ac_ext
40311 cat >>conftest.$ac_ext <<_ACEOF
40312 /* end confdefs.h. */
40313 #include <$ac_header>
40315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
40316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
40318 grep -v '^ *+' conftest.er1 >conftest.err
40320 cat conftest.err >&5
40321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40322 (exit $ac_status); } >/dev/null; then
40323 if test -s conftest.err; then
40324 ac_cpp_err=$ac_c_preproc_warn_flag
40325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
40332 if test -z "$ac_cpp_err"; then
40333 ac_header_preproc=yes
40335 echo "$as_me: failed program was:" >&5
40336 sed 's/^/| /' conftest.$ac_ext >&5
40338 ac_header_preproc=no
40340 rm -f conftest.err conftest.$ac_ext
40341 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40342 echo "${ECHO_T}$ac_header_preproc" >&6
40344 # So? What about this header?
40345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40351 ac_header_preproc=yes
40354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
40357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
40358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
40361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
40362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40368 ## ------------------------------------------ ##
40369 ## Report this to the AC_PACKAGE_NAME lists. ##
40370 ## ------------------------------------------ ##
40373 sed "s/^/$as_me: WARNING: /" >&2
40376 echo "$as_me:$LINENO: checking for $ac_header" >&5
40377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
40378 if eval "test \"\${$as_ac_Header+set}\" = set"; then
40379 echo $ECHO_N "(cached) $ECHO_C" >&6
40381 eval "$as_ac_Header=\$ac_header_preproc"
40383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
40384 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
40387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
40388 cat >>confdefs.h <<_ACEOF
40389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
40396 if test $ac_cv_header_db_h = yes; then
40398 if test $ol_cv_lib_db = no ; then
40399 echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
40400 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6
40401 if test "${ol_cv_db_none+set}" = set; then
40402 echo $ECHO_N "(cached) $ECHO_C" >&6
40407 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40409 cat >conftest.$ac_ext <<_ACEOF
40412 cat confdefs.h >>conftest.$ac_ext
40413 cat >>conftest.$ac_ext <<_ACEOF
40414 /* end confdefs.h. */
40416 #ifdef HAVE_DB_185_H
40417 # include <db_185.h>
40422 #ifndef DB_VERSION_MAJOR
40423 # define DB_VERSION_MAJOR 1
40427 #define NULL ((void*)0)
40434 #if DB_VERSION_MAJOR > 1
40437 int major, minor, patch;
40439 version = db_version( &major, &minor, &patch );
40441 if( major != DB_VERSION_MAJOR ||
40442 minor < DB_VERSION_MINOR )
40444 printf("Berkeley DB version mismatch\n"
40445 "\theader: %s\n\tlibrary: %s\n",
40446 DB_VERSION_STRING, version);
40452 #if DB_VERSION_MAJOR > 2
40453 db_env_create( NULL, 0 );
40454 #elif DB_VERSION_MAJOR > 1
40455 db_appexit( NULL );
40457 (void) dbopen( NULL, 0, 0, 0, NULL);
40464 rm -f conftest.$ac_objext conftest$ac_exeext
40465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40466 (eval $ac_link) 2>conftest.er1
40468 grep -v '^ *+' conftest.er1 >conftest.err
40470 cat conftest.err >&5
40471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40472 (exit $ac_status); } &&
40473 { ac_try='test -z "$ac_c_werror_flag"
40474 || test ! -s conftest.err'
40475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40476 (eval $ac_try) 2>&5
40478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40479 (exit $ac_status); }; } &&
40480 { ac_try='test -s conftest$ac_exeext'
40481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40482 (eval $ac_try) 2>&5
40484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40485 (exit $ac_status); }; }; then
40488 echo "$as_me: failed program was:" >&5
40489 sed 's/^/| /' conftest.$ac_ext >&5
40493 rm -f conftest.err conftest.$ac_objext \
40494 conftest$ac_exeext conftest.$ac_ext
40499 echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
40500 echo "${ECHO_T}$ol_cv_db_none" >&6
40502 if test $ol_cv_db_none = yes ; then
40507 if test $ol_cv_lib_db = no ; then
40508 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb43)" >&5
40509 echo $ECHO_N "checking for Berkeley DB link (-ldb43)... $ECHO_C" >&6
40510 if test "${ol_cv_db_db43+set}" = set; then
40511 echo $ECHO_N "(cached) $ECHO_C" >&6
40516 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40518 cat >conftest.$ac_ext <<_ACEOF
40521 cat confdefs.h >>conftest.$ac_ext
40522 cat >>conftest.$ac_ext <<_ACEOF
40523 /* end confdefs.h. */
40525 #ifdef HAVE_DB_185_H
40526 # include <db_185.h>
40531 #ifndef DB_VERSION_MAJOR
40532 # define DB_VERSION_MAJOR 1
40536 #define NULL ((void*)0)
40543 #if DB_VERSION_MAJOR > 1
40546 int major, minor, patch;
40548 version = db_version( &major, &minor, &patch );
40550 if( major != DB_VERSION_MAJOR ||
40551 minor < DB_VERSION_MINOR )
40553 printf("Berkeley DB version mismatch\n"
40554 "\theader: %s\n\tlibrary: %s\n",
40555 DB_VERSION_STRING, version);
40561 #if DB_VERSION_MAJOR > 2
40562 db_env_create( NULL, 0 );
40563 #elif DB_VERSION_MAJOR > 1
40564 db_appexit( NULL );
40566 (void) dbopen( NULL, 0, 0, 0, NULL);
40573 rm -f conftest.$ac_objext conftest$ac_exeext
40574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40575 (eval $ac_link) 2>conftest.er1
40577 grep -v '^ *+' conftest.er1 >conftest.err
40579 cat conftest.err >&5
40580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40581 (exit $ac_status); } &&
40582 { ac_try='test -z "$ac_c_werror_flag"
40583 || test ! -s conftest.err'
40584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40585 (eval $ac_try) 2>&5
40587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40588 (exit $ac_status); }; } &&
40589 { ac_try='test -s conftest$ac_exeext'
40590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40591 (eval $ac_try) 2>&5
40593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40594 (exit $ac_status); }; }; then
40597 echo "$as_me: failed program was:" >&5
40598 sed 's/^/| /' conftest.$ac_ext >&5
40602 rm -f conftest.err conftest.$ac_objext \
40603 conftest$ac_exeext conftest.$ac_ext
40608 echo "$as_me:$LINENO: result: $ol_cv_db_db43" >&5
40609 echo "${ECHO_T}$ol_cv_db_db43" >&6
40611 if test $ol_cv_db_db43 = yes ; then
40612 ol_cv_lib_db=-ldb43
40616 if test $ol_cv_lib_db = no ; then
40617 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-43)" >&5
40618 echo $ECHO_N "checking for Berkeley DB link (-ldb-43)... $ECHO_C" >&6
40619 if test "${ol_cv_db_db_43+set}" = set; then
40620 echo $ECHO_N "(cached) $ECHO_C" >&6
40625 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40627 cat >conftest.$ac_ext <<_ACEOF
40630 cat confdefs.h >>conftest.$ac_ext
40631 cat >>conftest.$ac_ext <<_ACEOF
40632 /* end confdefs.h. */
40634 #ifdef HAVE_DB_185_H
40635 # include <db_185.h>
40640 #ifndef DB_VERSION_MAJOR
40641 # define DB_VERSION_MAJOR 1
40645 #define NULL ((void*)0)
40652 #if DB_VERSION_MAJOR > 1
40655 int major, minor, patch;
40657 version = db_version( &major, &minor, &patch );
40659 if( major != DB_VERSION_MAJOR ||
40660 minor < DB_VERSION_MINOR )
40662 printf("Berkeley DB version mismatch\n"
40663 "\theader: %s\n\tlibrary: %s\n",
40664 DB_VERSION_STRING, version);
40670 #if DB_VERSION_MAJOR > 2
40671 db_env_create( NULL, 0 );
40672 #elif DB_VERSION_MAJOR > 1
40673 db_appexit( NULL );
40675 (void) dbopen( NULL, 0, 0, 0, NULL);
40682 rm -f conftest.$ac_objext conftest$ac_exeext
40683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40684 (eval $ac_link) 2>conftest.er1
40686 grep -v '^ *+' conftest.er1 >conftest.err
40688 cat conftest.err >&5
40689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40690 (exit $ac_status); } &&
40691 { ac_try='test -z "$ac_c_werror_flag"
40692 || test ! -s conftest.err'
40693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40694 (eval $ac_try) 2>&5
40696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40697 (exit $ac_status); }; } &&
40698 { ac_try='test -s conftest$ac_exeext'
40699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40700 (eval $ac_try) 2>&5
40702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40703 (exit $ac_status); }; }; then
40706 echo "$as_me: failed program was:" >&5
40707 sed 's/^/| /' conftest.$ac_ext >&5
40711 rm -f conftest.err conftest.$ac_objext \
40712 conftest$ac_exeext conftest.$ac_ext
40717 echo "$as_me:$LINENO: result: $ol_cv_db_db_43" >&5
40718 echo "${ECHO_T}$ol_cv_db_db_43" >&6
40720 if test $ol_cv_db_db_43 = yes ; then
40721 ol_cv_lib_db=-ldb-43
40725 if test $ol_cv_lib_db = no ; then
40726 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.3)" >&5
40727 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.3)... $ECHO_C" >&6
40728 if test "${ol_cv_db_db_4_dot_3+set}" = set; then
40729 echo $ECHO_N "(cached) $ECHO_C" >&6
40734 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40736 cat >conftest.$ac_ext <<_ACEOF
40739 cat confdefs.h >>conftest.$ac_ext
40740 cat >>conftest.$ac_ext <<_ACEOF
40741 /* end confdefs.h. */
40743 #ifdef HAVE_DB_185_H
40744 # include <db_185.h>
40749 #ifndef DB_VERSION_MAJOR
40750 # define DB_VERSION_MAJOR 1
40754 #define NULL ((void*)0)
40761 #if DB_VERSION_MAJOR > 1
40764 int major, minor, patch;
40766 version = db_version( &major, &minor, &patch );
40768 if( major != DB_VERSION_MAJOR ||
40769 minor < DB_VERSION_MINOR )
40771 printf("Berkeley DB version mismatch\n"
40772 "\theader: %s\n\tlibrary: %s\n",
40773 DB_VERSION_STRING, version);
40779 #if DB_VERSION_MAJOR > 2
40780 db_env_create( NULL, 0 );
40781 #elif DB_VERSION_MAJOR > 1
40782 db_appexit( NULL );
40784 (void) dbopen( NULL, 0, 0, 0, NULL);
40791 rm -f conftest.$ac_objext conftest$ac_exeext
40792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40793 (eval $ac_link) 2>conftest.er1
40795 grep -v '^ *+' conftest.er1 >conftest.err
40797 cat conftest.err >&5
40798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40799 (exit $ac_status); } &&
40800 { ac_try='test -z "$ac_c_werror_flag"
40801 || test ! -s conftest.err'
40802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40803 (eval $ac_try) 2>&5
40805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40806 (exit $ac_status); }; } &&
40807 { ac_try='test -s conftest$ac_exeext'
40808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40809 (eval $ac_try) 2>&5
40811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40812 (exit $ac_status); }; }; then
40813 ol_cv_db_db_4_dot_3=yes
40815 echo "$as_me: failed program was:" >&5
40816 sed 's/^/| /' conftest.$ac_ext >&5
40818 ol_cv_db_db_4_dot_3=no
40820 rm -f conftest.err conftest.$ac_objext \
40821 conftest$ac_exeext conftest.$ac_ext
40826 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_3" >&5
40827 echo "${ECHO_T}$ol_cv_db_db_4_dot_3" >&6
40829 if test $ol_cv_db_db_4_dot_3 = yes ; then
40830 ol_cv_lib_db=-ldb-4.3
40834 if test $ol_cv_lib_db = no ; then
40835 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-3)" >&5
40836 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-3)... $ECHO_C" >&6
40837 if test "${ol_cv_db_db_4_3+set}" = set; then
40838 echo $ECHO_N "(cached) $ECHO_C" >&6
40843 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40845 cat >conftest.$ac_ext <<_ACEOF
40848 cat confdefs.h >>conftest.$ac_ext
40849 cat >>conftest.$ac_ext <<_ACEOF
40850 /* end confdefs.h. */
40852 #ifdef HAVE_DB_185_H
40853 # include <db_185.h>
40858 #ifndef DB_VERSION_MAJOR
40859 # define DB_VERSION_MAJOR 1
40863 #define NULL ((void*)0)
40870 #if DB_VERSION_MAJOR > 1
40873 int major, minor, patch;
40875 version = db_version( &major, &minor, &patch );
40877 if( major != DB_VERSION_MAJOR ||
40878 minor < DB_VERSION_MINOR )
40880 printf("Berkeley DB version mismatch\n"
40881 "\theader: %s\n\tlibrary: %s\n",
40882 DB_VERSION_STRING, version);
40888 #if DB_VERSION_MAJOR > 2
40889 db_env_create( NULL, 0 );
40890 #elif DB_VERSION_MAJOR > 1
40891 db_appexit( NULL );
40893 (void) dbopen( NULL, 0, 0, 0, NULL);
40900 rm -f conftest.$ac_objext conftest$ac_exeext
40901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40902 (eval $ac_link) 2>conftest.er1
40904 grep -v '^ *+' conftest.er1 >conftest.err
40906 cat conftest.err >&5
40907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40908 (exit $ac_status); } &&
40909 { ac_try='test -z "$ac_c_werror_flag"
40910 || test ! -s conftest.err'
40911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40912 (eval $ac_try) 2>&5
40914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40915 (exit $ac_status); }; } &&
40916 { ac_try='test -s conftest$ac_exeext'
40917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40918 (eval $ac_try) 2>&5
40920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
40921 (exit $ac_status); }; }; then
40922 ol_cv_db_db_4_3=yes
40924 echo "$as_me: failed program was:" >&5
40925 sed 's/^/| /' conftest.$ac_ext >&5
40929 rm -f conftest.err conftest.$ac_objext \
40930 conftest$ac_exeext conftest.$ac_ext
40935 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_3" >&5
40936 echo "${ECHO_T}$ol_cv_db_db_4_3" >&6
40938 if test $ol_cv_db_db_4_3 = yes ; then
40939 ol_cv_lib_db=-ldb-4-3
40943 if test $ol_cv_lib_db = no ; then
40944 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb42)" >&5
40945 echo $ECHO_N "checking for Berkeley DB link (-ldb42)... $ECHO_C" >&6
40946 if test "${ol_cv_db_db42+set}" = set; then
40947 echo $ECHO_N "(cached) $ECHO_C" >&6
40952 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
40954 cat >conftest.$ac_ext <<_ACEOF
40957 cat confdefs.h >>conftest.$ac_ext
40958 cat >>conftest.$ac_ext <<_ACEOF
40959 /* end confdefs.h. */
40961 #ifdef HAVE_DB_185_H
40962 # include <db_185.h>
40967 #ifndef DB_VERSION_MAJOR
40968 # define DB_VERSION_MAJOR 1
40972 #define NULL ((void*)0)
40979 #if DB_VERSION_MAJOR > 1
40982 int major, minor, patch;
40984 version = db_version( &major, &minor, &patch );
40986 if( major != DB_VERSION_MAJOR ||
40987 minor < DB_VERSION_MINOR )
40989 printf("Berkeley DB version mismatch\n"
40990 "\theader: %s\n\tlibrary: %s\n",
40991 DB_VERSION_STRING, version);
40997 #if DB_VERSION_MAJOR > 2
40998 db_env_create( NULL, 0 );
40999 #elif DB_VERSION_MAJOR > 1
41000 db_appexit( NULL );
41002 (void) dbopen( NULL, 0, 0, 0, NULL);
41009 rm -f conftest.$ac_objext conftest$ac_exeext
41010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41011 (eval $ac_link) 2>conftest.er1
41013 grep -v '^ *+' conftest.er1 >conftest.err
41015 cat conftest.err >&5
41016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41017 (exit $ac_status); } &&
41018 { ac_try='test -z "$ac_c_werror_flag"
41019 || test ! -s conftest.err'
41020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41021 (eval $ac_try) 2>&5
41023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41024 (exit $ac_status); }; } &&
41025 { ac_try='test -s conftest$ac_exeext'
41026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41027 (eval $ac_try) 2>&5
41029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41030 (exit $ac_status); }; }; then
41033 echo "$as_me: failed program was:" >&5
41034 sed 's/^/| /' conftest.$ac_ext >&5
41038 rm -f conftest.err conftest.$ac_objext \
41039 conftest$ac_exeext conftest.$ac_ext
41044 echo "$as_me:$LINENO: result: $ol_cv_db_db42" >&5
41045 echo "${ECHO_T}$ol_cv_db_db42" >&6
41047 if test $ol_cv_db_db42 = yes ; then
41048 ol_cv_lib_db=-ldb42
41052 if test $ol_cv_lib_db = no ; then
41053 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-42)" >&5
41054 echo $ECHO_N "checking for Berkeley DB link (-ldb-42)... $ECHO_C" >&6
41055 if test "${ol_cv_db_db_42+set}" = set; then
41056 echo $ECHO_N "(cached) $ECHO_C" >&6
41061 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41063 cat >conftest.$ac_ext <<_ACEOF
41066 cat confdefs.h >>conftest.$ac_ext
41067 cat >>conftest.$ac_ext <<_ACEOF
41068 /* end confdefs.h. */
41070 #ifdef HAVE_DB_185_H
41071 # include <db_185.h>
41076 #ifndef DB_VERSION_MAJOR
41077 # define DB_VERSION_MAJOR 1
41081 #define NULL ((void*)0)
41088 #if DB_VERSION_MAJOR > 1
41091 int major, minor, patch;
41093 version = db_version( &major, &minor, &patch );
41095 if( major != DB_VERSION_MAJOR ||
41096 minor < DB_VERSION_MINOR )
41098 printf("Berkeley DB version mismatch\n"
41099 "\theader: %s\n\tlibrary: %s\n",
41100 DB_VERSION_STRING, version);
41106 #if DB_VERSION_MAJOR > 2
41107 db_env_create( NULL, 0 );
41108 #elif DB_VERSION_MAJOR > 1
41109 db_appexit( NULL );
41111 (void) dbopen( NULL, 0, 0, 0, NULL);
41118 rm -f conftest.$ac_objext conftest$ac_exeext
41119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41120 (eval $ac_link) 2>conftest.er1
41122 grep -v '^ *+' conftest.er1 >conftest.err
41124 cat conftest.err >&5
41125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41126 (exit $ac_status); } &&
41127 { ac_try='test -z "$ac_c_werror_flag"
41128 || test ! -s conftest.err'
41129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41130 (eval $ac_try) 2>&5
41132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41133 (exit $ac_status); }; } &&
41134 { ac_try='test -s conftest$ac_exeext'
41135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41136 (eval $ac_try) 2>&5
41138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41139 (exit $ac_status); }; }; then
41142 echo "$as_me: failed program was:" >&5
41143 sed 's/^/| /' conftest.$ac_ext >&5
41147 rm -f conftest.err conftest.$ac_objext \
41148 conftest$ac_exeext conftest.$ac_ext
41153 echo "$as_me:$LINENO: result: $ol_cv_db_db_42" >&5
41154 echo "${ECHO_T}$ol_cv_db_db_42" >&6
41156 if test $ol_cv_db_db_42 = yes ; then
41157 ol_cv_lib_db=-ldb-42
41161 if test $ol_cv_lib_db = no ; then
41162 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.2)" >&5
41163 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.2)... $ECHO_C" >&6
41164 if test "${ol_cv_db_db_4_dot_2+set}" = set; then
41165 echo $ECHO_N "(cached) $ECHO_C" >&6
41170 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41172 cat >conftest.$ac_ext <<_ACEOF
41175 cat confdefs.h >>conftest.$ac_ext
41176 cat >>conftest.$ac_ext <<_ACEOF
41177 /* end confdefs.h. */
41179 #ifdef HAVE_DB_185_H
41180 # include <db_185.h>
41185 #ifndef DB_VERSION_MAJOR
41186 # define DB_VERSION_MAJOR 1
41190 #define NULL ((void*)0)
41197 #if DB_VERSION_MAJOR > 1
41200 int major, minor, patch;
41202 version = db_version( &major, &minor, &patch );
41204 if( major != DB_VERSION_MAJOR ||
41205 minor < DB_VERSION_MINOR )
41207 printf("Berkeley DB version mismatch\n"
41208 "\theader: %s\n\tlibrary: %s\n",
41209 DB_VERSION_STRING, version);
41215 #if DB_VERSION_MAJOR > 2
41216 db_env_create( NULL, 0 );
41217 #elif DB_VERSION_MAJOR > 1
41218 db_appexit( NULL );
41220 (void) dbopen( NULL, 0, 0, 0, NULL);
41227 rm -f conftest.$ac_objext conftest$ac_exeext
41228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41229 (eval $ac_link) 2>conftest.er1
41231 grep -v '^ *+' conftest.er1 >conftest.err
41233 cat conftest.err >&5
41234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41235 (exit $ac_status); } &&
41236 { ac_try='test -z "$ac_c_werror_flag"
41237 || test ! -s conftest.err'
41238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41239 (eval $ac_try) 2>&5
41241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41242 (exit $ac_status); }; } &&
41243 { ac_try='test -s conftest$ac_exeext'
41244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41245 (eval $ac_try) 2>&5
41247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41248 (exit $ac_status); }; }; then
41249 ol_cv_db_db_4_dot_2=yes
41251 echo "$as_me: failed program was:" >&5
41252 sed 's/^/| /' conftest.$ac_ext >&5
41254 ol_cv_db_db_4_dot_2=no
41256 rm -f conftest.err conftest.$ac_objext \
41257 conftest$ac_exeext conftest.$ac_ext
41262 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_2" >&5
41263 echo "${ECHO_T}$ol_cv_db_db_4_dot_2" >&6
41265 if test $ol_cv_db_db_4_dot_2 = yes ; then
41266 ol_cv_lib_db=-ldb-4.2
41270 if test $ol_cv_lib_db = no ; then
41271 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-2)" >&5
41272 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-2)... $ECHO_C" >&6
41273 if test "${ol_cv_db_db_4_2+set}" = set; then
41274 echo $ECHO_N "(cached) $ECHO_C" >&6
41279 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41281 cat >conftest.$ac_ext <<_ACEOF
41284 cat confdefs.h >>conftest.$ac_ext
41285 cat >>conftest.$ac_ext <<_ACEOF
41286 /* end confdefs.h. */
41288 #ifdef HAVE_DB_185_H
41289 # include <db_185.h>
41294 #ifndef DB_VERSION_MAJOR
41295 # define DB_VERSION_MAJOR 1
41299 #define NULL ((void*)0)
41306 #if DB_VERSION_MAJOR > 1
41309 int major, minor, patch;
41311 version = db_version( &major, &minor, &patch );
41313 if( major != DB_VERSION_MAJOR ||
41314 minor < DB_VERSION_MINOR )
41316 printf("Berkeley DB version mismatch\n"
41317 "\theader: %s\n\tlibrary: %s\n",
41318 DB_VERSION_STRING, version);
41324 #if DB_VERSION_MAJOR > 2
41325 db_env_create( NULL, 0 );
41326 #elif DB_VERSION_MAJOR > 1
41327 db_appexit( NULL );
41329 (void) dbopen( NULL, 0, 0, 0, NULL);
41336 rm -f conftest.$ac_objext conftest$ac_exeext
41337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41338 (eval $ac_link) 2>conftest.er1
41340 grep -v '^ *+' conftest.er1 >conftest.err
41342 cat conftest.err >&5
41343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41344 (exit $ac_status); } &&
41345 { ac_try='test -z "$ac_c_werror_flag"
41346 || test ! -s conftest.err'
41347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41348 (eval $ac_try) 2>&5
41350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41351 (exit $ac_status); }; } &&
41352 { ac_try='test -s conftest$ac_exeext'
41353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41354 (eval $ac_try) 2>&5
41356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41357 (exit $ac_status); }; }; then
41358 ol_cv_db_db_4_2=yes
41360 echo "$as_me: failed program was:" >&5
41361 sed 's/^/| /' conftest.$ac_ext >&5
41365 rm -f conftest.err conftest.$ac_objext \
41366 conftest$ac_exeext conftest.$ac_ext
41371 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_2" >&5
41372 echo "${ECHO_T}$ol_cv_db_db_4_2" >&6
41374 if test $ol_cv_db_db_4_2 = yes ; then
41375 ol_cv_lib_db=-ldb-4-2
41379 if test $ol_cv_lib_db = no ; then
41380 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
41381 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6
41382 if test "${ol_cv_db_db_4+set}" = set; then
41383 echo $ECHO_N "(cached) $ECHO_C" >&6
41388 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41390 cat >conftest.$ac_ext <<_ACEOF
41393 cat confdefs.h >>conftest.$ac_ext
41394 cat >>conftest.$ac_ext <<_ACEOF
41395 /* end confdefs.h. */
41397 #ifdef HAVE_DB_185_H
41398 # include <db_185.h>
41403 #ifndef DB_VERSION_MAJOR
41404 # define DB_VERSION_MAJOR 1
41408 #define NULL ((void*)0)
41415 #if DB_VERSION_MAJOR > 1
41418 int major, minor, patch;
41420 version = db_version( &major, &minor, &patch );
41422 if( major != DB_VERSION_MAJOR ||
41423 minor < DB_VERSION_MINOR )
41425 printf("Berkeley DB version mismatch\n"
41426 "\theader: %s\n\tlibrary: %s\n",
41427 DB_VERSION_STRING, version);
41433 #if DB_VERSION_MAJOR > 2
41434 db_env_create( NULL, 0 );
41435 #elif DB_VERSION_MAJOR > 1
41436 db_appexit( NULL );
41438 (void) dbopen( NULL, 0, 0, 0, NULL);
41445 rm -f conftest.$ac_objext conftest$ac_exeext
41446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41447 (eval $ac_link) 2>conftest.er1
41449 grep -v '^ *+' conftest.er1 >conftest.err
41451 cat conftest.err >&5
41452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41453 (exit $ac_status); } &&
41454 { ac_try='test -z "$ac_c_werror_flag"
41455 || test ! -s conftest.err'
41456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41457 (eval $ac_try) 2>&5
41459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41460 (exit $ac_status); }; } &&
41461 { ac_try='test -s conftest$ac_exeext'
41462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41463 (eval $ac_try) 2>&5
41465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41466 (exit $ac_status); }; }; then
41469 echo "$as_me: failed program was:" >&5
41470 sed 's/^/| /' conftest.$ac_ext >&5
41474 rm -f conftest.err conftest.$ac_objext \
41475 conftest$ac_exeext conftest.$ac_ext
41480 echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
41481 echo "${ECHO_T}$ol_cv_db_db_4" >&6
41483 if test $ol_cv_db_db_4 = yes ; then
41484 ol_cv_lib_db=-ldb-4
41488 if test $ol_cv_lib_db = no ; then
41489 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
41490 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6
41491 if test "${ol_cv_db_db4+set}" = set; then
41492 echo $ECHO_N "(cached) $ECHO_C" >&6
41497 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41499 cat >conftest.$ac_ext <<_ACEOF
41502 cat confdefs.h >>conftest.$ac_ext
41503 cat >>conftest.$ac_ext <<_ACEOF
41504 /* end confdefs.h. */
41506 #ifdef HAVE_DB_185_H
41507 # include <db_185.h>
41512 #ifndef DB_VERSION_MAJOR
41513 # define DB_VERSION_MAJOR 1
41517 #define NULL ((void*)0)
41524 #if DB_VERSION_MAJOR > 1
41527 int major, minor, patch;
41529 version = db_version( &major, &minor, &patch );
41531 if( major != DB_VERSION_MAJOR ||
41532 minor < DB_VERSION_MINOR )
41534 printf("Berkeley DB version mismatch\n"
41535 "\theader: %s\n\tlibrary: %s\n",
41536 DB_VERSION_STRING, version);
41542 #if DB_VERSION_MAJOR > 2
41543 db_env_create( NULL, 0 );
41544 #elif DB_VERSION_MAJOR > 1
41545 db_appexit( NULL );
41547 (void) dbopen( NULL, 0, 0, 0, NULL);
41554 rm -f conftest.$ac_objext conftest$ac_exeext
41555 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41556 (eval $ac_link) 2>conftest.er1
41558 grep -v '^ *+' conftest.er1 >conftest.err
41560 cat conftest.err >&5
41561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41562 (exit $ac_status); } &&
41563 { ac_try='test -z "$ac_c_werror_flag"
41564 || test ! -s conftest.err'
41565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41566 (eval $ac_try) 2>&5
41568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41569 (exit $ac_status); }; } &&
41570 { ac_try='test -s conftest$ac_exeext'
41571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41572 (eval $ac_try) 2>&5
41574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41575 (exit $ac_status); }; }; then
41578 echo "$as_me: failed program was:" >&5
41579 sed 's/^/| /' conftest.$ac_ext >&5
41583 rm -f conftest.err conftest.$ac_objext \
41584 conftest$ac_exeext conftest.$ac_ext
41589 echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
41590 echo "${ECHO_T}$ol_cv_db_db4" >&6
41592 if test $ol_cv_db_db4 = yes ; then
41597 if test $ol_cv_lib_db = no ; then
41598 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
41599 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6
41600 if test "${ol_cv_db_db+set}" = set; then
41601 echo $ECHO_N "(cached) $ECHO_C" >&6
41606 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41608 cat >conftest.$ac_ext <<_ACEOF
41611 cat confdefs.h >>conftest.$ac_ext
41612 cat >>conftest.$ac_ext <<_ACEOF
41613 /* end confdefs.h. */
41615 #ifdef HAVE_DB_185_H
41616 # include <db_185.h>
41621 #ifndef DB_VERSION_MAJOR
41622 # define DB_VERSION_MAJOR 1
41626 #define NULL ((void*)0)
41633 #if DB_VERSION_MAJOR > 1
41636 int major, minor, patch;
41638 version = db_version( &major, &minor, &patch );
41640 if( major != DB_VERSION_MAJOR ||
41641 minor < DB_VERSION_MINOR )
41643 printf("Berkeley DB version mismatch\n"
41644 "\theader: %s\n\tlibrary: %s\n",
41645 DB_VERSION_STRING, version);
41651 #if DB_VERSION_MAJOR > 2
41652 db_env_create( NULL, 0 );
41653 #elif DB_VERSION_MAJOR > 1
41654 db_appexit( NULL );
41656 (void) dbopen( NULL, 0, 0, 0, NULL);
41663 rm -f conftest.$ac_objext conftest$ac_exeext
41664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41665 (eval $ac_link) 2>conftest.er1
41667 grep -v '^ *+' conftest.er1 >conftest.err
41669 cat conftest.err >&5
41670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41671 (exit $ac_status); } &&
41672 { ac_try='test -z "$ac_c_werror_flag"
41673 || test ! -s conftest.err'
41674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41675 (eval $ac_try) 2>&5
41677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41678 (exit $ac_status); }; } &&
41679 { ac_try='test -s conftest$ac_exeext'
41680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41681 (eval $ac_try) 2>&5
41683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41684 (exit $ac_status); }; }; then
41687 echo "$as_me: failed program was:" >&5
41688 sed 's/^/| /' conftest.$ac_ext >&5
41692 rm -f conftest.err conftest.$ac_objext \
41693 conftest$ac_exeext conftest.$ac_ext
41698 echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
41699 echo "${ECHO_T}$ol_cv_db_db" >&6
41701 if test $ol_cv_db_db = yes ; then
41706 if test $ol_cv_lib_db = no ; then
41707 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb41)" >&5
41708 echo $ECHO_N "checking for Berkeley DB link (-ldb41)... $ECHO_C" >&6
41709 if test "${ol_cv_db_db41+set}" = set; then
41710 echo $ECHO_N "(cached) $ECHO_C" >&6
41715 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41717 cat >conftest.$ac_ext <<_ACEOF
41720 cat confdefs.h >>conftest.$ac_ext
41721 cat >>conftest.$ac_ext <<_ACEOF
41722 /* end confdefs.h. */
41724 #ifdef HAVE_DB_185_H
41725 # include <db_185.h>
41730 #ifndef DB_VERSION_MAJOR
41731 # define DB_VERSION_MAJOR 1
41735 #define NULL ((void*)0)
41742 #if DB_VERSION_MAJOR > 1
41745 int major, minor, patch;
41747 version = db_version( &major, &minor, &patch );
41749 if( major != DB_VERSION_MAJOR ||
41750 minor < DB_VERSION_MINOR )
41752 printf("Berkeley DB version mismatch\n"
41753 "\theader: %s\n\tlibrary: %s\n",
41754 DB_VERSION_STRING, version);
41760 #if DB_VERSION_MAJOR > 2
41761 db_env_create( NULL, 0 );
41762 #elif DB_VERSION_MAJOR > 1
41763 db_appexit( NULL );
41765 (void) dbopen( NULL, 0, 0, 0, NULL);
41772 rm -f conftest.$ac_objext conftest$ac_exeext
41773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41774 (eval $ac_link) 2>conftest.er1
41776 grep -v '^ *+' conftest.er1 >conftest.err
41778 cat conftest.err >&5
41779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41780 (exit $ac_status); } &&
41781 { ac_try='test -z "$ac_c_werror_flag"
41782 || test ! -s conftest.err'
41783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41784 (eval $ac_try) 2>&5
41786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41787 (exit $ac_status); }; } &&
41788 { ac_try='test -s conftest$ac_exeext'
41789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41790 (eval $ac_try) 2>&5
41792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41793 (exit $ac_status); }; }; then
41796 echo "$as_me: failed program was:" >&5
41797 sed 's/^/| /' conftest.$ac_ext >&5
41801 rm -f conftest.err conftest.$ac_objext \
41802 conftest$ac_exeext conftest.$ac_ext
41807 echo "$as_me:$LINENO: result: $ol_cv_db_db41" >&5
41808 echo "${ECHO_T}$ol_cv_db_db41" >&6
41810 if test $ol_cv_db_db41 = yes ; then
41811 ol_cv_lib_db=-ldb41
41815 if test $ol_cv_lib_db = no ; then
41816 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-41)" >&5
41817 echo $ECHO_N "checking for Berkeley DB link (-ldb-41)... $ECHO_C" >&6
41818 if test "${ol_cv_db_db_41+set}" = set; then
41819 echo $ECHO_N "(cached) $ECHO_C" >&6
41824 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41826 cat >conftest.$ac_ext <<_ACEOF
41829 cat confdefs.h >>conftest.$ac_ext
41830 cat >>conftest.$ac_ext <<_ACEOF
41831 /* end confdefs.h. */
41833 #ifdef HAVE_DB_185_H
41834 # include <db_185.h>
41839 #ifndef DB_VERSION_MAJOR
41840 # define DB_VERSION_MAJOR 1
41844 #define NULL ((void*)0)
41851 #if DB_VERSION_MAJOR > 1
41854 int major, minor, patch;
41856 version = db_version( &major, &minor, &patch );
41858 if( major != DB_VERSION_MAJOR ||
41859 minor < DB_VERSION_MINOR )
41861 printf("Berkeley DB version mismatch\n"
41862 "\theader: %s\n\tlibrary: %s\n",
41863 DB_VERSION_STRING, version);
41869 #if DB_VERSION_MAJOR > 2
41870 db_env_create( NULL, 0 );
41871 #elif DB_VERSION_MAJOR > 1
41872 db_appexit( NULL );
41874 (void) dbopen( NULL, 0, 0, 0, NULL);
41881 rm -f conftest.$ac_objext conftest$ac_exeext
41882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41883 (eval $ac_link) 2>conftest.er1
41885 grep -v '^ *+' conftest.er1 >conftest.err
41887 cat conftest.err >&5
41888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41889 (exit $ac_status); } &&
41890 { ac_try='test -z "$ac_c_werror_flag"
41891 || test ! -s conftest.err'
41892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41893 (eval $ac_try) 2>&5
41895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41896 (exit $ac_status); }; } &&
41897 { ac_try='test -s conftest$ac_exeext'
41898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
41899 (eval $ac_try) 2>&5
41901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41902 (exit $ac_status); }; }; then
41905 echo "$as_me: failed program was:" >&5
41906 sed 's/^/| /' conftest.$ac_ext >&5
41910 rm -f conftest.err conftest.$ac_objext \
41911 conftest$ac_exeext conftest.$ac_ext
41916 echo "$as_me:$LINENO: result: $ol_cv_db_db_41" >&5
41917 echo "${ECHO_T}$ol_cv_db_db_41" >&6
41919 if test $ol_cv_db_db_41 = yes ; then
41920 ol_cv_lib_db=-ldb-41
41924 if test $ol_cv_lib_db = no ; then
41925 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.1)" >&5
41926 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.1)... $ECHO_C" >&6
41927 if test "${ol_cv_db_db_4_dot_1+set}" = set; then
41928 echo $ECHO_N "(cached) $ECHO_C" >&6
41933 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
41935 cat >conftest.$ac_ext <<_ACEOF
41938 cat confdefs.h >>conftest.$ac_ext
41939 cat >>conftest.$ac_ext <<_ACEOF
41940 /* end confdefs.h. */
41942 #ifdef HAVE_DB_185_H
41943 # include <db_185.h>
41948 #ifndef DB_VERSION_MAJOR
41949 # define DB_VERSION_MAJOR 1
41953 #define NULL ((void*)0)
41960 #if DB_VERSION_MAJOR > 1
41963 int major, minor, patch;
41965 version = db_version( &major, &minor, &patch );
41967 if( major != DB_VERSION_MAJOR ||
41968 minor < DB_VERSION_MINOR )
41970 printf("Berkeley DB version mismatch\n"
41971 "\theader: %s\n\tlibrary: %s\n",
41972 DB_VERSION_STRING, version);
41978 #if DB_VERSION_MAJOR > 2
41979 db_env_create( NULL, 0 );
41980 #elif DB_VERSION_MAJOR > 1
41981 db_appexit( NULL );
41983 (void) dbopen( NULL, 0, 0, 0, NULL);
41990 rm -f conftest.$ac_objext conftest$ac_exeext
41991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
41992 (eval $ac_link) 2>conftest.er1
41994 grep -v '^ *+' conftest.er1 >conftest.err
41996 cat conftest.err >&5
41997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
41998 (exit $ac_status); } &&
41999 { ac_try='test -z "$ac_c_werror_flag"
42000 || test ! -s conftest.err'
42001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42002 (eval $ac_try) 2>&5
42004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42005 (exit $ac_status); }; } &&
42006 { ac_try='test -s conftest$ac_exeext'
42007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42008 (eval $ac_try) 2>&5
42010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42011 (exit $ac_status); }; }; then
42012 ol_cv_db_db_4_dot_1=yes
42014 echo "$as_me: failed program was:" >&5
42015 sed 's/^/| /' conftest.$ac_ext >&5
42017 ol_cv_db_db_4_dot_1=no
42019 rm -f conftest.err conftest.$ac_objext \
42020 conftest$ac_exeext conftest.$ac_ext
42025 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_1" >&5
42026 echo "${ECHO_T}$ol_cv_db_db_4_dot_1" >&6
42028 if test $ol_cv_db_db_4_dot_1 = yes ; then
42029 ol_cv_lib_db=-ldb-4.1
42033 if test $ol_cv_lib_db = no ; then
42034 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-1)" >&5
42035 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-1)... $ECHO_C" >&6
42036 if test "${ol_cv_db_db_4_1+set}" = set; then
42037 echo $ECHO_N "(cached) $ECHO_C" >&6
42042 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42044 cat >conftest.$ac_ext <<_ACEOF
42047 cat confdefs.h >>conftest.$ac_ext
42048 cat >>conftest.$ac_ext <<_ACEOF
42049 /* end confdefs.h. */
42051 #ifdef HAVE_DB_185_H
42052 # include <db_185.h>
42057 #ifndef DB_VERSION_MAJOR
42058 # define DB_VERSION_MAJOR 1
42062 #define NULL ((void*)0)
42069 #if DB_VERSION_MAJOR > 1
42072 int major, minor, patch;
42074 version = db_version( &major, &minor, &patch );
42076 if( major != DB_VERSION_MAJOR ||
42077 minor < DB_VERSION_MINOR )
42079 printf("Berkeley DB version mismatch\n"
42080 "\theader: %s\n\tlibrary: %s\n",
42081 DB_VERSION_STRING, version);
42087 #if DB_VERSION_MAJOR > 2
42088 db_env_create( NULL, 0 );
42089 #elif DB_VERSION_MAJOR > 1
42090 db_appexit( NULL );
42092 (void) dbopen( NULL, 0, 0, 0, NULL);
42099 rm -f conftest.$ac_objext conftest$ac_exeext
42100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42101 (eval $ac_link) 2>conftest.er1
42103 grep -v '^ *+' conftest.er1 >conftest.err
42105 cat conftest.err >&5
42106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42107 (exit $ac_status); } &&
42108 { ac_try='test -z "$ac_c_werror_flag"
42109 || test ! -s conftest.err'
42110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42111 (eval $ac_try) 2>&5
42113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42114 (exit $ac_status); }; } &&
42115 { ac_try='test -s conftest$ac_exeext'
42116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42117 (eval $ac_try) 2>&5
42119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42120 (exit $ac_status); }; }; then
42121 ol_cv_db_db_4_1=yes
42123 echo "$as_me: failed program was:" >&5
42124 sed 's/^/| /' conftest.$ac_ext >&5
42128 rm -f conftest.err conftest.$ac_objext \
42129 conftest$ac_exeext conftest.$ac_ext
42134 echo "$as_me:$LINENO: result: $ol_cv_db_db_4_1" >&5
42135 echo "${ECHO_T}$ol_cv_db_db_4_1" >&6
42137 if test $ol_cv_db_db_4_1 = yes ; then
42138 ol_cv_lib_db=-ldb-4-1
42142 if test $ol_cv_lib_db = no ; then
42143 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb3)" >&5
42144 echo $ECHO_N "checking for Berkeley DB link (-ldb3)... $ECHO_C" >&6
42145 if test "${ol_cv_db_db3+set}" = set; then
42146 echo $ECHO_N "(cached) $ECHO_C" >&6
42151 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42153 cat >conftest.$ac_ext <<_ACEOF
42156 cat confdefs.h >>conftest.$ac_ext
42157 cat >>conftest.$ac_ext <<_ACEOF
42158 /* end confdefs.h. */
42160 #ifdef HAVE_DB_185_H
42161 # include <db_185.h>
42166 #ifndef DB_VERSION_MAJOR
42167 # define DB_VERSION_MAJOR 1
42171 #define NULL ((void*)0)
42178 #if DB_VERSION_MAJOR > 1
42181 int major, minor, patch;
42183 version = db_version( &major, &minor, &patch );
42185 if( major != DB_VERSION_MAJOR ||
42186 minor < DB_VERSION_MINOR )
42188 printf("Berkeley DB version mismatch\n"
42189 "\theader: %s\n\tlibrary: %s\n",
42190 DB_VERSION_STRING, version);
42196 #if DB_VERSION_MAJOR > 2
42197 db_env_create( NULL, 0 );
42198 #elif DB_VERSION_MAJOR > 1
42199 db_appexit( NULL );
42201 (void) dbopen( NULL, 0, 0, 0, NULL);
42208 rm -f conftest.$ac_objext conftest$ac_exeext
42209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42210 (eval $ac_link) 2>conftest.er1
42212 grep -v '^ *+' conftest.er1 >conftest.err
42214 cat conftest.err >&5
42215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42216 (exit $ac_status); } &&
42217 { ac_try='test -z "$ac_c_werror_flag"
42218 || test ! -s conftest.err'
42219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42220 (eval $ac_try) 2>&5
42222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42223 (exit $ac_status); }; } &&
42224 { ac_try='test -s conftest$ac_exeext'
42225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42226 (eval $ac_try) 2>&5
42228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42229 (exit $ac_status); }; }; then
42232 echo "$as_me: failed program was:" >&5
42233 sed 's/^/| /' conftest.$ac_ext >&5
42237 rm -f conftest.err conftest.$ac_objext \
42238 conftest$ac_exeext conftest.$ac_ext
42243 echo "$as_me:$LINENO: result: $ol_cv_db_db3" >&5
42244 echo "${ECHO_T}$ol_cv_db_db3" >&6
42246 if test $ol_cv_db_db3 = yes ; then
42251 if test $ol_cv_lib_db = no ; then
42252 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-3)" >&5
42253 echo $ECHO_N "checking for Berkeley DB link (-ldb-3)... $ECHO_C" >&6
42254 if test "${ol_cv_db_db_3+set}" = set; then
42255 echo $ECHO_N "(cached) $ECHO_C" >&6
42260 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42262 cat >conftest.$ac_ext <<_ACEOF
42265 cat confdefs.h >>conftest.$ac_ext
42266 cat >>conftest.$ac_ext <<_ACEOF
42267 /* end confdefs.h. */
42269 #ifdef HAVE_DB_185_H
42270 # include <db_185.h>
42275 #ifndef DB_VERSION_MAJOR
42276 # define DB_VERSION_MAJOR 1
42280 #define NULL ((void*)0)
42287 #if DB_VERSION_MAJOR > 1
42290 int major, minor, patch;
42292 version = db_version( &major, &minor, &patch );
42294 if( major != DB_VERSION_MAJOR ||
42295 minor < DB_VERSION_MINOR )
42297 printf("Berkeley DB version mismatch\n"
42298 "\theader: %s\n\tlibrary: %s\n",
42299 DB_VERSION_STRING, version);
42305 #if DB_VERSION_MAJOR > 2
42306 db_env_create( NULL, 0 );
42307 #elif DB_VERSION_MAJOR > 1
42308 db_appexit( NULL );
42310 (void) dbopen( NULL, 0, 0, 0, NULL);
42317 rm -f conftest.$ac_objext conftest$ac_exeext
42318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42319 (eval $ac_link) 2>conftest.er1
42321 grep -v '^ *+' conftest.er1 >conftest.err
42323 cat conftest.err >&5
42324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42325 (exit $ac_status); } &&
42326 { ac_try='test -z "$ac_c_werror_flag"
42327 || test ! -s conftest.err'
42328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42329 (eval $ac_try) 2>&5
42331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42332 (exit $ac_status); }; } &&
42333 { ac_try='test -s conftest$ac_exeext'
42334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42335 (eval $ac_try) 2>&5
42337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42338 (exit $ac_status); }; }; then
42341 echo "$as_me: failed program was:" >&5
42342 sed 's/^/| /' conftest.$ac_ext >&5
42346 rm -f conftest.err conftest.$ac_objext \
42347 conftest$ac_exeext conftest.$ac_ext
42352 echo "$as_me:$LINENO: result: $ol_cv_db_db_3" >&5
42353 echo "${ECHO_T}$ol_cv_db_db_3" >&6
42355 if test $ol_cv_db_db_3 = yes ; then
42356 ol_cv_lib_db=-ldb-3
42360 if test $ol_cv_lib_db = no ; then
42361 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb2)" >&5
42362 echo $ECHO_N "checking for Berkeley DB link (-ldb2)... $ECHO_C" >&6
42363 if test "${ol_cv_db_db2+set}" = set; then
42364 echo $ECHO_N "(cached) $ECHO_C" >&6
42369 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42371 cat >conftest.$ac_ext <<_ACEOF
42374 cat confdefs.h >>conftest.$ac_ext
42375 cat >>conftest.$ac_ext <<_ACEOF
42376 /* end confdefs.h. */
42378 #ifdef HAVE_DB_185_H
42379 # include <db_185.h>
42384 #ifndef DB_VERSION_MAJOR
42385 # define DB_VERSION_MAJOR 1
42389 #define NULL ((void*)0)
42396 #if DB_VERSION_MAJOR > 1
42399 int major, minor, patch;
42401 version = db_version( &major, &minor, &patch );
42403 if( major != DB_VERSION_MAJOR ||
42404 minor < DB_VERSION_MINOR )
42406 printf("Berkeley DB version mismatch\n"
42407 "\theader: %s\n\tlibrary: %s\n",
42408 DB_VERSION_STRING, version);
42414 #if DB_VERSION_MAJOR > 2
42415 db_env_create( NULL, 0 );
42416 #elif DB_VERSION_MAJOR > 1
42417 db_appexit( NULL );
42419 (void) dbopen( NULL, 0, 0, 0, NULL);
42426 rm -f conftest.$ac_objext conftest$ac_exeext
42427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42428 (eval $ac_link) 2>conftest.er1
42430 grep -v '^ *+' conftest.er1 >conftest.err
42432 cat conftest.err >&5
42433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42434 (exit $ac_status); } &&
42435 { ac_try='test -z "$ac_c_werror_flag"
42436 || test ! -s conftest.err'
42437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42438 (eval $ac_try) 2>&5
42440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42441 (exit $ac_status); }; } &&
42442 { ac_try='test -s conftest$ac_exeext'
42443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42444 (eval $ac_try) 2>&5
42446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42447 (exit $ac_status); }; }; then
42450 echo "$as_me: failed program was:" >&5
42451 sed 's/^/| /' conftest.$ac_ext >&5
42455 rm -f conftest.err conftest.$ac_objext \
42456 conftest$ac_exeext conftest.$ac_ext
42461 echo "$as_me:$LINENO: result: $ol_cv_db_db2" >&5
42462 echo "${ECHO_T}$ol_cv_db_db2" >&6
42464 if test $ol_cv_db_db2 = yes ; then
42469 if test $ol_cv_lib_db = no ; then
42470 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-2)" >&5
42471 echo $ECHO_N "checking for Berkeley DB link (-ldb-2)... $ECHO_C" >&6
42472 if test "${ol_cv_db_db_2+set}" = set; then
42473 echo $ECHO_N "(cached) $ECHO_C" >&6
42478 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42480 cat >conftest.$ac_ext <<_ACEOF
42483 cat confdefs.h >>conftest.$ac_ext
42484 cat >>conftest.$ac_ext <<_ACEOF
42485 /* end confdefs.h. */
42487 #ifdef HAVE_DB_185_H
42488 # include <db_185.h>
42493 #ifndef DB_VERSION_MAJOR
42494 # define DB_VERSION_MAJOR 1
42498 #define NULL ((void*)0)
42505 #if DB_VERSION_MAJOR > 1
42508 int major, minor, patch;
42510 version = db_version( &major, &minor, &patch );
42512 if( major != DB_VERSION_MAJOR ||
42513 minor < DB_VERSION_MINOR )
42515 printf("Berkeley DB version mismatch\n"
42516 "\theader: %s\n\tlibrary: %s\n",
42517 DB_VERSION_STRING, version);
42523 #if DB_VERSION_MAJOR > 2
42524 db_env_create( NULL, 0 );
42525 #elif DB_VERSION_MAJOR > 1
42526 db_appexit( NULL );
42528 (void) dbopen( NULL, 0, 0, 0, NULL);
42535 rm -f conftest.$ac_objext conftest$ac_exeext
42536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42537 (eval $ac_link) 2>conftest.er1
42539 grep -v '^ *+' conftest.er1 >conftest.err
42541 cat conftest.err >&5
42542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42543 (exit $ac_status); } &&
42544 { ac_try='test -z "$ac_c_werror_flag"
42545 || test ! -s conftest.err'
42546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42547 (eval $ac_try) 2>&5
42549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42550 (exit $ac_status); }; } &&
42551 { ac_try='test -s conftest$ac_exeext'
42552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42553 (eval $ac_try) 2>&5
42555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42556 (exit $ac_status); }; }; then
42559 echo "$as_me: failed program was:" >&5
42560 sed 's/^/| /' conftest.$ac_ext >&5
42564 rm -f conftest.err conftest.$ac_objext \
42565 conftest$ac_exeext conftest.$ac_ext
42570 echo "$as_me:$LINENO: result: $ol_cv_db_db_2" >&5
42571 echo "${ECHO_T}$ol_cv_db_db_2" >&6
42573 if test $ol_cv_db_db_2 = yes ; then
42574 ol_cv_lib_db=-ldb-2
42578 if test $ol_cv_lib_db = no ; then
42579 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb1)" >&5
42580 echo $ECHO_N "checking for Berkeley DB link (-ldb1)... $ECHO_C" >&6
42581 if test "${ol_cv_db_db1+set}" = set; then
42582 echo $ECHO_N "(cached) $ECHO_C" >&6
42587 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42589 cat >conftest.$ac_ext <<_ACEOF
42592 cat confdefs.h >>conftest.$ac_ext
42593 cat >>conftest.$ac_ext <<_ACEOF
42594 /* end confdefs.h. */
42596 #ifdef HAVE_DB_185_H
42597 # include <db_185.h>
42602 #ifndef DB_VERSION_MAJOR
42603 # define DB_VERSION_MAJOR 1
42607 #define NULL ((void*)0)
42614 #if DB_VERSION_MAJOR > 1
42617 int major, minor, patch;
42619 version = db_version( &major, &minor, &patch );
42621 if( major != DB_VERSION_MAJOR ||
42622 minor < DB_VERSION_MINOR )
42624 printf("Berkeley DB version mismatch\n"
42625 "\theader: %s\n\tlibrary: %s\n",
42626 DB_VERSION_STRING, version);
42632 #if DB_VERSION_MAJOR > 2
42633 db_env_create( NULL, 0 );
42634 #elif DB_VERSION_MAJOR > 1
42635 db_appexit( NULL );
42637 (void) dbopen( NULL, 0, 0, 0, NULL);
42644 rm -f conftest.$ac_objext conftest$ac_exeext
42645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42646 (eval $ac_link) 2>conftest.er1
42648 grep -v '^ *+' conftest.er1 >conftest.err
42650 cat conftest.err >&5
42651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42652 (exit $ac_status); } &&
42653 { ac_try='test -z "$ac_c_werror_flag"
42654 || test ! -s conftest.err'
42655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42656 (eval $ac_try) 2>&5
42658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42659 (exit $ac_status); }; } &&
42660 { ac_try='test -s conftest$ac_exeext'
42661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42662 (eval $ac_try) 2>&5
42664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42665 (exit $ac_status); }; }; then
42668 echo "$as_me: failed program was:" >&5
42669 sed 's/^/| /' conftest.$ac_ext >&5
42673 rm -f conftest.err conftest.$ac_objext \
42674 conftest$ac_exeext conftest.$ac_ext
42679 echo "$as_me:$LINENO: result: $ol_cv_db_db1" >&5
42680 echo "${ECHO_T}$ol_cv_db_db1" >&6
42682 if test $ol_cv_db_db1 = yes ; then
42687 if test $ol_cv_lib_db = no ; then
42688 echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-1)" >&5
42689 echo $ECHO_N "checking for Berkeley DB link (-ldb-1)... $ECHO_C" >&6
42690 if test "${ol_cv_db_db_1+set}" = set; then
42691 echo $ECHO_N "(cached) $ECHO_C" >&6
42696 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
42698 cat >conftest.$ac_ext <<_ACEOF
42701 cat confdefs.h >>conftest.$ac_ext
42702 cat >>conftest.$ac_ext <<_ACEOF
42703 /* end confdefs.h. */
42705 #ifdef HAVE_DB_185_H
42706 # include <db_185.h>
42711 #ifndef DB_VERSION_MAJOR
42712 # define DB_VERSION_MAJOR 1
42716 #define NULL ((void*)0)
42723 #if DB_VERSION_MAJOR > 1
42726 int major, minor, patch;
42728 version = db_version( &major, &minor, &patch );
42730 if( major != DB_VERSION_MAJOR ||
42731 minor < DB_VERSION_MINOR )
42733 printf("Berkeley DB version mismatch\n"
42734 "\theader: %s\n\tlibrary: %s\n",
42735 DB_VERSION_STRING, version);
42741 #if DB_VERSION_MAJOR > 2
42742 db_env_create( NULL, 0 );
42743 #elif DB_VERSION_MAJOR > 1
42744 db_appexit( NULL );
42746 (void) dbopen( NULL, 0, 0, 0, NULL);
42753 rm -f conftest.$ac_objext conftest$ac_exeext
42754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42755 (eval $ac_link) 2>conftest.er1
42757 grep -v '^ *+' conftest.er1 >conftest.err
42759 cat conftest.err >&5
42760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42761 (exit $ac_status); } &&
42762 { ac_try='test -z "$ac_c_werror_flag"
42763 || test ! -s conftest.err'
42764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42765 (eval $ac_try) 2>&5
42767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42768 (exit $ac_status); }; } &&
42769 { ac_try='test -s conftest$ac_exeext'
42770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42771 (eval $ac_try) 2>&5
42773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42774 (exit $ac_status); }; }; then
42777 echo "$as_me: failed program was:" >&5
42778 sed 's/^/| /' conftest.$ac_ext >&5
42782 rm -f conftest.err conftest.$ac_objext \
42783 conftest$ac_exeext conftest.$ac_ext
42788 echo "$as_me:$LINENO: result: $ol_cv_db_db_1" >&5
42789 echo "${ECHO_T}$ol_cv_db_db_1" >&6
42791 if test $ol_cv_db_db_1 = yes ; then
42792 ol_cv_lib_db=-ldb-1
42797 if test "$ol_cv_lib_db" != no ; then
42798 ol_cv_berkeley_db=yes
42799 echo "$as_me:$LINENO: checking for Berkeley DB version match" >&5
42800 echo $ECHO_N "checking for Berkeley DB version match... $ECHO_C" >&6
42801 if test "${ol_cv_berkeley_db_version+set}" = set; then
42802 echo $ECHO_N "(cached) $ECHO_C" >&6
42806 LIBS="$LTHREAD_LIBS $LIBS"
42807 if test $ol_cv_lib_db != yes ; then
42808 LIBS="$ol_cv_lib_db $LIBS"
42811 if test "$cross_compiling" = yes; then
42812 ol_cv_berkeley_db_version=cross
42814 cat >conftest.$ac_ext <<_ACEOF
42817 cat confdefs.h >>conftest.$ac_ext
42818 cat >>conftest.$ac_ext <<_ACEOF
42819 /* end confdefs.h. */
42821 #ifdef HAVE_DB_185_H
42826 #ifndef DB_VERSION_MAJOR
42827 # define DB_VERSION_MAJOR 1
42830 #define NULL ((void *)0)
42834 #if DB_VERSION_MAJOR > 1
42836 int major, minor, patch;
42838 version = db_version( &major, &minor, &patch );
42840 if( major != DB_VERSION_MAJOR ||
42841 minor != DB_VERSION_MINOR ||
42842 patch != DB_VERSION_PATCH )
42844 printf("Berkeley DB version mismatch\n"
42845 "\theader: %s\n\tlibrary: %s\n",
42846 DB_VERSION_STRING, version);
42854 rm -f conftest$ac_exeext
42855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42856 (eval $ac_link) 2>&5
42858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42861 (eval $ac_try) 2>&5
42863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42864 (exit $ac_status); }; }; then
42865 ol_cv_berkeley_db_version=yes
42867 echo "$as_me: program exited with status $ac_status" >&5
42868 echo "$as_me: failed program was:" >&5
42869 sed 's/^/| /' conftest.$ac_ext >&5
42871 ( exit $ac_status )
42872 ol_cv_berkeley_db_version=no
42874 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42880 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
42881 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6
42883 if test $ol_cv_berkeley_db_version = no ; then
42884 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
42885 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
42886 { (exit 1); exit 1; }; }
42889 echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
42890 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6
42891 if test "${ol_cv_berkeley_db_thread+set}" = set; then
42892 echo $ECHO_N "(cached) $ECHO_C" >&6
42896 LIBS="$LTHREAD_LIBS $LIBS"
42897 if test $ol_cv_lib_db != yes ; then
42898 LIBS="$ol_cv_lib_db $LIBS"
42901 if test "$cross_compiling" = yes; then
42902 ol_cv_berkeley_db_thread=cross
42904 cat >conftest.$ac_ext <<_ACEOF
42907 cat confdefs.h >>conftest.$ac_ext
42908 cat >>conftest.$ac_ext <<_ACEOF
42909 /* end confdefs.h. */
42911 #ifdef HAVE_DB_185_H
42917 #define NULL ((void *)0)
42922 u_int32_t flags = DB_CREATE |
42928 #if DB_VERSION_MAJOR > 2
42929 DB_ENV *env = NULL;
42931 rc = db_env_create( &env, 0 );
42933 flags |= DB_INIT_MPOOL;
42934 #ifdef DB_MPOOL_PRIVATE
42935 flags |= DB_MPOOL_PRIVATE;
42939 printf("BerkeleyDB: %s\n", db_strerror(rc) );
42943 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
42944 rc = env->open( env, NULL, flags, 0 );
42946 rc = env->open( env, NULL, NULL, flags, 0 );
42950 rc = env->close( env, 0 );
42954 printf("BerkeleyDB: %s\n", db_strerror(rc) );
42960 memset( &env, '\0', sizeof(env) );
42962 rc = db_appinit( NULL, NULL, &env, flags );
42965 db_appexit( &env );
42968 unlink("__db_mpool.share");
42969 unlink("__db_lock.share");
42975 rm -f conftest$ac_exeext
42976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42977 (eval $ac_link) 2>&5
42979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42982 (eval $ac_try) 2>&5
42984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
42985 (exit $ac_status); }; }; then
42986 ol_cv_berkeley_db_thread=yes
42988 echo "$as_me: program exited with status $ac_status" >&5
42989 echo "$as_me: failed program was:" >&5
42990 sed 's/^/| /' conftest.$ac_ext >&5
42992 ( exit $ac_status )
42993 ol_cv_berkeley_db_thread=no
42995 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43001 echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
43002 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6
43004 if test $ol_cv_berkeley_db_thread != no ; then
43006 cat >>confdefs.h <<\_ACEOF
43007 #define HAVE_BERKELEY_DB_THREAD 1
43017 if test $ol_cv_berkeley_db != no ; then
43019 cat >>confdefs.h <<\_ACEOF
43020 #define HAVE_BERKELEY_DB 1
43024 ol_link_ldbm=berkeley
43025 ol_with_ldbm_api=berkeley
43027 if test $ol_with_ldbm_type = hash ; then
43029 cat >>confdefs.h <<\_ACEOF
43030 #define LDBM_USE_DBHASH 1
43035 cat >>confdefs.h <<\_ACEOF
43036 #define LDBM_USE_DBBTREE 1
43041 if test $ol_cv_lib_db != yes ; then
43042 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
43047 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
43048 if test $ol_link_ldbm != berkeley ; then
43049 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
43050 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
43051 { (exit 1); exit 1; }; }
43053 echo "$as_me:$LINENO: checking Berkeley DB version for BDB/HDB backends" >&5
43054 echo $ECHO_N "checking Berkeley DB version for BDB/HDB backends... $ECHO_C" >&6
43055 if test "${ol_cv_bdb_compat+set}" = set; then
43056 echo $ECHO_N "(cached) $ECHO_C" >&6
43059 cat >conftest.$ac_ext <<_ACEOF
43062 cat confdefs.h >>conftest.$ac_ext
43063 cat >>conftest.$ac_ext <<_ACEOF
43064 /* end confdefs.h. */
43068 /* this check could be improved */
43069 #ifndef DB_VERSION_MAJOR
43070 # define DB_VERSION_MAJOR 1
43072 #ifndef DB_VERSION_MINOR
43073 # define DB_VERSION_MINOR 0
43076 /* require 4.2 or later */
43077 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
43078 __db_version_compat
43082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43083 $EGREP "__db_version_compat" >/dev/null 2>&1; then
43084 ol_cv_bdb_compat=yes
43086 ol_cv_bdb_compat=no
43091 echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
43092 echo "${ECHO_T}$ol_cv_bdb_compat" >&6
43095 if test $ol_cv_bdb_compat != yes ; then
43096 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB version incompatible" >&5
43097 echo "$as_me: error: BDB/HDB: BerkeleyDB version incompatible" >&2;}
43098 { (exit 1); exit 1; }; }
43103 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
43104 { echo "$as_me:$LINENO: WARNING: Could not find LDBM with BTREE support" >&5
43105 echo "$as_me: WARNING: Could not find LDBM with BTREE support" >&2;}
43106 ol_with_ldbm_api=none
43109 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
43110 echo "$as_me:$LINENO: checking for MDBM library" >&5
43111 echo $ECHO_N "checking for MDBM library... $ECHO_C" >&6
43112 if test "${ol_cv_lib_mdbm+set}" = set; then
43113 echo $ECHO_N "(cached) $ECHO_C" >&6
43116 echo "$as_me:$LINENO: checking for mdbm_set_chain" >&5
43117 echo $ECHO_N "checking for mdbm_set_chain... $ECHO_C" >&6
43118 if test "${ac_cv_func_mdbm_set_chain+set}" = set; then
43119 echo $ECHO_N "(cached) $ECHO_C" >&6
43121 cat >conftest.$ac_ext <<_ACEOF
43124 cat confdefs.h >>conftest.$ac_ext
43125 cat >>conftest.$ac_ext <<_ACEOF
43126 /* end confdefs.h. */
43127 /* Define mdbm_set_chain to an innocuous variant, in case <limits.h> declares mdbm_set_chain.
43128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43129 #define mdbm_set_chain innocuous_mdbm_set_chain
43131 /* System header to define __stub macros and hopefully few prototypes,
43132 which can conflict with char mdbm_set_chain (); below.
43133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43134 <limits.h> exists even on freestanding compilers. */
43137 # include <limits.h>
43139 # include <assert.h>
43142 #undef mdbm_set_chain
43144 /* Override any gcc2 internal prototype to avoid an error. */
43149 /* We use char because int might match the return type of a gcc2
43150 builtin and then its argument prototype would still apply. */
43151 char mdbm_set_chain ();
43152 /* The GNU C library defines this for functions which it implements
43153 to always fail with ENOSYS. Some functions are actually named
43154 something starting with __ and the normal name is an alias. */
43155 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
43158 char (*f) () = mdbm_set_chain;
43167 return f != mdbm_set_chain;
43172 rm -f conftest.$ac_objext conftest$ac_exeext
43173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43174 (eval $ac_link) 2>conftest.er1
43176 grep -v '^ *+' conftest.er1 >conftest.err
43178 cat conftest.err >&5
43179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43180 (exit $ac_status); } &&
43181 { ac_try='test -z "$ac_c_werror_flag"
43182 || test ! -s conftest.err'
43183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43184 (eval $ac_try) 2>&5
43186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43187 (exit $ac_status); }; } &&
43188 { ac_try='test -s conftest$ac_exeext'
43189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43190 (eval $ac_try) 2>&5
43192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43193 (exit $ac_status); }; }; then
43194 ac_cv_func_mdbm_set_chain=yes
43196 echo "$as_me: failed program was:" >&5
43197 sed 's/^/| /' conftest.$ac_ext >&5
43199 ac_cv_func_mdbm_set_chain=no
43201 rm -f conftest.err conftest.$ac_objext \
43202 conftest$ac_exeext conftest.$ac_ext
43204 echo "$as_me:$LINENO: result: $ac_cv_func_mdbm_set_chain" >&5
43205 echo "${ECHO_T}$ac_cv_func_mdbm_set_chain" >&6
43206 if test $ac_cv_func_mdbm_set_chain = yes; then
43210 echo "$as_me:$LINENO: checking for mdbm_set_chain in -lmdbm" >&5
43211 echo $ECHO_N "checking for mdbm_set_chain in -lmdbm... $ECHO_C" >&6
43212 if test "${ac_cv_lib_mdbm_mdbm_set_chain+set}" = set; then
43213 echo $ECHO_N "(cached) $ECHO_C" >&6
43215 ac_check_lib_save_LIBS=$LIBS
43216 LIBS="-lmdbm $LIBS"
43217 cat >conftest.$ac_ext <<_ACEOF
43220 cat confdefs.h >>conftest.$ac_ext
43221 cat >>conftest.$ac_ext <<_ACEOF
43222 /* end confdefs.h. */
43224 /* Override any gcc2 internal prototype to avoid an error. */
43228 /* We use char because int might match the return type of a gcc2
43229 builtin and then its argument prototype would still apply. */
43230 char mdbm_set_chain ();
43239 rm -f conftest.$ac_objext conftest$ac_exeext
43240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43241 (eval $ac_link) 2>conftest.er1
43243 grep -v '^ *+' conftest.er1 >conftest.err
43245 cat conftest.err >&5
43246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43247 (exit $ac_status); } &&
43248 { ac_try='test -z "$ac_c_werror_flag"
43249 || test ! -s conftest.err'
43250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43251 (eval $ac_try) 2>&5
43253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43254 (exit $ac_status); }; } &&
43255 { ac_try='test -s conftest$ac_exeext'
43256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43257 (eval $ac_try) 2>&5
43259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43260 (exit $ac_status); }; }; then
43261 ac_cv_lib_mdbm_mdbm_set_chain=yes
43263 echo "$as_me: failed program was:" >&5
43264 sed 's/^/| /' conftest.$ac_ext >&5
43266 ac_cv_lib_mdbm_mdbm_set_chain=no
43268 rm -f conftest.err conftest.$ac_objext \
43269 conftest$ac_exeext conftest.$ac_ext
43270 LIBS=$ac_check_lib_save_LIBS
43272 echo "$as_me:$LINENO: result: $ac_cv_lib_mdbm_mdbm_set_chain" >&5
43273 echo "${ECHO_T}$ac_cv_lib_mdbm_mdbm_set_chain" >&6
43274 if test $ac_cv_lib_mdbm_mdbm_set_chain = yes; then
43275 ol_cv_lib_mdbm=-lmdbm
43286 echo "$as_me:$LINENO: result: $ol_cv_lib_mdbm" >&5
43287 echo "${ECHO_T}$ol_cv_lib_mdbm" >&6
43291 for ac_header in mdbm.h
43293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43295 echo "$as_me:$LINENO: checking for $ac_header" >&5
43296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43298 echo $ECHO_N "(cached) $ECHO_C" >&6
43300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43303 # Is the header compilable?
43304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43306 cat >conftest.$ac_ext <<_ACEOF
43309 cat confdefs.h >>conftest.$ac_ext
43310 cat >>conftest.$ac_ext <<_ACEOF
43311 /* end confdefs.h. */
43312 $ac_includes_default
43313 #include <$ac_header>
43315 rm -f conftest.$ac_objext
43316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43317 (eval $ac_compile) 2>conftest.er1
43319 grep -v '^ *+' conftest.er1 >conftest.err
43321 cat conftest.err >&5
43322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43323 (exit $ac_status); } &&
43324 { ac_try='test -z "$ac_c_werror_flag"
43325 || test ! -s conftest.err'
43326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43327 (eval $ac_try) 2>&5
43329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43330 (exit $ac_status); }; } &&
43331 { ac_try='test -s conftest.$ac_objext'
43332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43333 (eval $ac_try) 2>&5
43335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43336 (exit $ac_status); }; }; then
43337 ac_header_compiler=yes
43339 echo "$as_me: failed program was:" >&5
43340 sed 's/^/| /' conftest.$ac_ext >&5
43342 ac_header_compiler=no
43344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43345 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43346 echo "${ECHO_T}$ac_header_compiler" >&6
43348 # Is the header present?
43349 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43351 cat >conftest.$ac_ext <<_ACEOF
43354 cat confdefs.h >>conftest.$ac_ext
43355 cat >>conftest.$ac_ext <<_ACEOF
43356 /* end confdefs.h. */
43357 #include <$ac_header>
43359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43362 grep -v '^ *+' conftest.er1 >conftest.err
43364 cat conftest.err >&5
43365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43366 (exit $ac_status); } >/dev/null; then
43367 if test -s conftest.err; then
43368 ac_cpp_err=$ac_c_preproc_warn_flag
43369 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43376 if test -z "$ac_cpp_err"; then
43377 ac_header_preproc=yes
43379 echo "$as_me: failed program was:" >&5
43380 sed 's/^/| /' conftest.$ac_ext >&5
43382 ac_header_preproc=no
43384 rm -f conftest.err conftest.$ac_ext
43385 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43386 echo "${ECHO_T}$ac_header_preproc" >&6
43388 # So? What about this header?
43389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43391 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43394 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43395 ac_header_preproc=yes
43398 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43400 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43401 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43402 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43403 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43404 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43405 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43408 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43409 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43412 ## ------------------------------------------ ##
43413 ## Report this to the AC_PACKAGE_NAME lists. ##
43414 ## ------------------------------------------ ##
43417 sed "s/^/$as_me: WARNING: /" >&2
43420 echo "$as_me:$LINENO: checking for $ac_header" >&5
43421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43422 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43423 echo $ECHO_N "(cached) $ECHO_C" >&6
43425 eval "$as_ac_Header=\$ac_header_preproc"
43427 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43428 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43432 cat >>confdefs.h <<_ACEOF
43433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43440 echo "$as_me:$LINENO: checking for db" >&5
43441 echo $ECHO_N "checking for db... $ECHO_C" >&6
43442 if test "${ol_cv_mdbm+set}" = set; then
43443 echo $ECHO_N "(cached) $ECHO_C" >&6
43446 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
43453 echo "$as_me:$LINENO: result: $ol_cv_mdbm" >&5
43454 echo "${ECHO_T}$ol_cv_mdbm" >&6
43455 if test $ol_cv_mdbm = yes ; then
43457 cat >>confdefs.h <<\_ACEOF
43458 #define HAVE_MDBM 1
43464 if test $ol_cv_mdbm = yes ; then
43466 ol_with_ldbm_api=mdbm
43467 if test $ol_cv_lib_mdbm != yes ; then
43468 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
43473 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
43474 echo "$as_me:$LINENO: checking for GDBM library" >&5
43475 echo $ECHO_N "checking for GDBM library... $ECHO_C" >&6
43476 if test "${ol_cv_lib_gdbm+set}" = set; then
43477 echo $ECHO_N "(cached) $ECHO_C" >&6
43480 echo "$as_me:$LINENO: checking for gdbm_open" >&5
43481 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6
43482 if test "${ac_cv_func_gdbm_open+set}" = set; then
43483 echo $ECHO_N "(cached) $ECHO_C" >&6
43485 cat >conftest.$ac_ext <<_ACEOF
43488 cat confdefs.h >>conftest.$ac_ext
43489 cat >>conftest.$ac_ext <<_ACEOF
43490 /* end confdefs.h. */
43491 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
43492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43493 #define gdbm_open innocuous_gdbm_open
43495 /* System header to define __stub macros and hopefully few prototypes,
43496 which can conflict with char gdbm_open (); below.
43497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43498 <limits.h> exists even on freestanding compilers. */
43501 # include <limits.h>
43503 # include <assert.h>
43508 /* Override any gcc2 internal prototype to avoid an error. */
43513 /* We use char because int might match the return type of a gcc2
43514 builtin and then its argument prototype would still apply. */
43516 /* The GNU C library defines this for functions which it implements
43517 to always fail with ENOSYS. Some functions are actually named
43518 something starting with __ and the normal name is an alias. */
43519 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
43522 char (*f) () = gdbm_open;
43531 return f != gdbm_open;
43536 rm -f conftest.$ac_objext conftest$ac_exeext
43537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43538 (eval $ac_link) 2>conftest.er1
43540 grep -v '^ *+' conftest.er1 >conftest.err
43542 cat conftest.err >&5
43543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43544 (exit $ac_status); } &&
43545 { ac_try='test -z "$ac_c_werror_flag"
43546 || test ! -s conftest.err'
43547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43548 (eval $ac_try) 2>&5
43550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43551 (exit $ac_status); }; } &&
43552 { ac_try='test -s conftest$ac_exeext'
43553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43554 (eval $ac_try) 2>&5
43556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43557 (exit $ac_status); }; }; then
43558 ac_cv_func_gdbm_open=yes
43560 echo "$as_me: failed program was:" >&5
43561 sed 's/^/| /' conftest.$ac_ext >&5
43563 ac_cv_func_gdbm_open=no
43565 rm -f conftest.err conftest.$ac_objext \
43566 conftest$ac_exeext conftest.$ac_ext
43568 echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
43569 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6
43570 if test $ac_cv_func_gdbm_open = yes; then
43574 echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
43575 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6
43576 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
43577 echo $ECHO_N "(cached) $ECHO_C" >&6
43579 ac_check_lib_save_LIBS=$LIBS
43580 LIBS="-lgdbm $LIBS"
43581 cat >conftest.$ac_ext <<_ACEOF
43584 cat confdefs.h >>conftest.$ac_ext
43585 cat >>conftest.$ac_ext <<_ACEOF
43586 /* end confdefs.h. */
43588 /* Override any gcc2 internal prototype to avoid an error. */
43592 /* We use char because int might match the return type of a gcc2
43593 builtin and then its argument prototype would still apply. */
43603 rm -f conftest.$ac_objext conftest$ac_exeext
43604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43605 (eval $ac_link) 2>conftest.er1
43607 grep -v '^ *+' conftest.er1 >conftest.err
43609 cat conftest.err >&5
43610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43611 (exit $ac_status); } &&
43612 { ac_try='test -z "$ac_c_werror_flag"
43613 || test ! -s conftest.err'
43614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43615 (eval $ac_try) 2>&5
43617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43618 (exit $ac_status); }; } &&
43619 { ac_try='test -s conftest$ac_exeext'
43620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43621 (eval $ac_try) 2>&5
43623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43624 (exit $ac_status); }; }; then
43625 ac_cv_lib_gdbm_gdbm_open=yes
43627 echo "$as_me: failed program was:" >&5
43628 sed 's/^/| /' conftest.$ac_ext >&5
43630 ac_cv_lib_gdbm_gdbm_open=no
43632 rm -f conftest.err conftest.$ac_objext \
43633 conftest$ac_exeext conftest.$ac_ext
43634 LIBS=$ac_check_lib_save_LIBS
43636 echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
43637 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6
43638 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
43639 ol_cv_lib_gdbm=-lgdbm
43650 echo "$as_me:$LINENO: result: $ol_cv_lib_gdbm" >&5
43651 echo "${ECHO_T}$ol_cv_lib_gdbm" >&6
43655 for ac_header in gdbm.h
43657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
43658 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43659 echo "$as_me:$LINENO: checking for $ac_header" >&5
43660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43662 echo $ECHO_N "(cached) $ECHO_C" >&6
43664 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43665 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43667 # Is the header compilable?
43668 echo "$as_me:$LINENO: checking $ac_header usability" >&5
43669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
43670 cat >conftest.$ac_ext <<_ACEOF
43673 cat confdefs.h >>conftest.$ac_ext
43674 cat >>conftest.$ac_ext <<_ACEOF
43675 /* end confdefs.h. */
43676 $ac_includes_default
43677 #include <$ac_header>
43679 rm -f conftest.$ac_objext
43680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43681 (eval $ac_compile) 2>conftest.er1
43683 grep -v '^ *+' conftest.er1 >conftest.err
43685 cat conftest.err >&5
43686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43687 (exit $ac_status); } &&
43688 { ac_try='test -z "$ac_c_werror_flag"
43689 || test ! -s conftest.err'
43690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43691 (eval $ac_try) 2>&5
43693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43694 (exit $ac_status); }; } &&
43695 { ac_try='test -s conftest.$ac_objext'
43696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43697 (eval $ac_try) 2>&5
43699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43700 (exit $ac_status); }; }; then
43701 ac_header_compiler=yes
43703 echo "$as_me: failed program was:" >&5
43704 sed 's/^/| /' conftest.$ac_ext >&5
43706 ac_header_compiler=no
43708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43709 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43710 echo "${ECHO_T}$ac_header_compiler" >&6
43712 # Is the header present?
43713 echo "$as_me:$LINENO: checking $ac_header presence" >&5
43714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
43715 cat >conftest.$ac_ext <<_ACEOF
43718 cat confdefs.h >>conftest.$ac_ext
43719 cat >>conftest.$ac_ext <<_ACEOF
43720 /* end confdefs.h. */
43721 #include <$ac_header>
43723 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43724 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43726 grep -v '^ *+' conftest.er1 >conftest.err
43728 cat conftest.err >&5
43729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43730 (exit $ac_status); } >/dev/null; then
43731 if test -s conftest.err; then
43732 ac_cpp_err=$ac_c_preproc_warn_flag
43733 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43740 if test -z "$ac_cpp_err"; then
43741 ac_header_preproc=yes
43743 echo "$as_me: failed program was:" >&5
43744 sed 's/^/| /' conftest.$ac_ext >&5
43746 ac_header_preproc=no
43748 rm -f conftest.err conftest.$ac_ext
43749 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43750 echo "${ECHO_T}$ac_header_preproc" >&6
43752 # So? What about this header?
43753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43758 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43759 ac_header_preproc=yes
43762 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43763 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43764 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
43765 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
43766 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43767 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43768 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
43769 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
43770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43772 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43773 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43776 ## ------------------------------------------ ##
43777 ## Report this to the AC_PACKAGE_NAME lists. ##
43778 ## ------------------------------------------ ##
43781 sed "s/^/$as_me: WARNING: /" >&2
43784 echo "$as_me:$LINENO: checking for $ac_header" >&5
43785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
43786 if eval "test \"\${$as_ac_Header+set}\" = set"; then
43787 echo $ECHO_N "(cached) $ECHO_C" >&6
43789 eval "$as_ac_Header=\$ac_header_preproc"
43791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
43792 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
43795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
43796 cat >>confdefs.h <<_ACEOF
43797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
43804 echo "$as_me:$LINENO: checking for db" >&5
43805 echo $ECHO_N "checking for db... $ECHO_C" >&6
43806 if test "${ol_cv_gdbm+set}" = set; then
43807 echo $ECHO_N "(cached) $ECHO_C" >&6
43810 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
43817 echo "$as_me:$LINENO: result: $ol_cv_gdbm" >&5
43818 echo "${ECHO_T}$ol_cv_gdbm" >&6
43819 if test $ol_cv_gdbm = yes ; then
43821 cat >>confdefs.h <<\_ACEOF
43822 #define HAVE_GDBM 1
43828 if test $ol_cv_gdbm = yes ; then
43830 ol_with_ldbm_api=gdbm
43832 if test $ol_cv_lib_gdbm != yes ; then
43833 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
43838 if test $ol_with_ldbm_api = ndbm ; then
43839 echo "$as_me:$LINENO: checking for NDBM library" >&5
43840 echo $ECHO_N "checking for NDBM library... $ECHO_C" >&6
43841 if test "${ol_cv_lib_ndbm+set}" = set; then
43842 echo $ECHO_N "(cached) $ECHO_C" >&6
43845 echo "$as_me:$LINENO: checking for dbm_open" >&5
43846 echo $ECHO_N "checking for dbm_open... $ECHO_C" >&6
43847 if test "${ac_cv_func_dbm_open+set}" = set; then
43848 echo $ECHO_N "(cached) $ECHO_C" >&6
43850 cat >conftest.$ac_ext <<_ACEOF
43853 cat confdefs.h >>conftest.$ac_ext
43854 cat >>conftest.$ac_ext <<_ACEOF
43855 /* end confdefs.h. */
43856 /* Define dbm_open to an innocuous variant, in case <limits.h> declares dbm_open.
43857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
43858 #define dbm_open innocuous_dbm_open
43860 /* System header to define __stub macros and hopefully few prototypes,
43861 which can conflict with char dbm_open (); below.
43862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43863 <limits.h> exists even on freestanding compilers. */
43866 # include <limits.h>
43868 # include <assert.h>
43873 /* Override any gcc2 internal prototype to avoid an error. */
43878 /* We use char because int might match the return type of a gcc2
43879 builtin and then its argument prototype would still apply. */
43881 /* The GNU C library defines this for functions which it implements
43882 to always fail with ENOSYS. Some functions are actually named
43883 something starting with __ and the normal name is an alias. */
43884 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
43887 char (*f) () = dbm_open;
43896 return f != dbm_open;
43901 rm -f conftest.$ac_objext conftest$ac_exeext
43902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43903 (eval $ac_link) 2>conftest.er1
43905 grep -v '^ *+' conftest.er1 >conftest.err
43907 cat conftest.err >&5
43908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43909 (exit $ac_status); } &&
43910 { ac_try='test -z "$ac_c_werror_flag"
43911 || test ! -s conftest.err'
43912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43913 (eval $ac_try) 2>&5
43915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43916 (exit $ac_status); }; } &&
43917 { ac_try='test -s conftest$ac_exeext'
43918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43919 (eval $ac_try) 2>&5
43921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43922 (exit $ac_status); }; }; then
43923 ac_cv_func_dbm_open=yes
43925 echo "$as_me: failed program was:" >&5
43926 sed 's/^/| /' conftest.$ac_ext >&5
43928 ac_cv_func_dbm_open=no
43930 rm -f conftest.err conftest.$ac_objext \
43931 conftest$ac_exeext conftest.$ac_ext
43933 echo "$as_me:$LINENO: result: $ac_cv_func_dbm_open" >&5
43934 echo "${ECHO_T}$ac_cv_func_dbm_open" >&6
43935 if test $ac_cv_func_dbm_open = yes; then
43939 echo "$as_me:$LINENO: checking for dbm_open in -lndbm" >&5
43940 echo $ECHO_N "checking for dbm_open in -lndbm... $ECHO_C" >&6
43941 if test "${ac_cv_lib_ndbm_dbm_open+set}" = set; then
43942 echo $ECHO_N "(cached) $ECHO_C" >&6
43944 ac_check_lib_save_LIBS=$LIBS
43945 LIBS="-lndbm $LIBS"
43946 cat >conftest.$ac_ext <<_ACEOF
43949 cat confdefs.h >>conftest.$ac_ext
43950 cat >>conftest.$ac_ext <<_ACEOF
43951 /* end confdefs.h. */
43953 /* Override any gcc2 internal prototype to avoid an error. */
43957 /* We use char because int might match the return type of a gcc2
43958 builtin and then its argument prototype would still apply. */
43968 rm -f conftest.$ac_objext conftest$ac_exeext
43969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43970 (eval $ac_link) 2>conftest.er1
43972 grep -v '^ *+' conftest.er1 >conftest.err
43974 cat conftest.err >&5
43975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43976 (exit $ac_status); } &&
43977 { ac_try='test -z "$ac_c_werror_flag"
43978 || test ! -s conftest.err'
43979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43980 (eval $ac_try) 2>&5
43982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43983 (exit $ac_status); }; } &&
43984 { ac_try='test -s conftest$ac_exeext'
43985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43986 (eval $ac_try) 2>&5
43988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
43989 (exit $ac_status); }; }; then
43990 ac_cv_lib_ndbm_dbm_open=yes
43992 echo "$as_me: failed program was:" >&5
43993 sed 's/^/| /' conftest.$ac_ext >&5
43995 ac_cv_lib_ndbm_dbm_open=no
43997 rm -f conftest.err conftest.$ac_objext \
43998 conftest$ac_exeext conftest.$ac_ext
43999 LIBS=$ac_check_lib_save_LIBS
44001 echo "$as_me:$LINENO: result: $ac_cv_lib_ndbm_dbm_open" >&5
44002 echo "${ECHO_T}$ac_cv_lib_ndbm_dbm_open" >&6
44003 if test $ac_cv_lib_ndbm_dbm_open = yes; then
44004 ol_cv_lib_ndbm=-lndbm
44007 echo "$as_me:$LINENO: checking for dbm_open in -ldbm" >&5
44008 echo $ECHO_N "checking for dbm_open in -ldbm... $ECHO_C" >&6
44009 if test "${ac_cv_lib_dbm_dbm_open+set}" = set; then
44010 echo $ECHO_N "(cached) $ECHO_C" >&6
44012 ac_check_lib_save_LIBS=$LIBS
44014 cat >conftest.$ac_ext <<_ACEOF
44017 cat confdefs.h >>conftest.$ac_ext
44018 cat >>conftest.$ac_ext <<_ACEOF
44019 /* end confdefs.h. */
44021 /* Override any gcc2 internal prototype to avoid an error. */
44025 /* We use char because int might match the return type of a gcc2
44026 builtin and then its argument prototype would still apply. */
44036 rm -f conftest.$ac_objext conftest$ac_exeext
44037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44038 (eval $ac_link) 2>conftest.er1
44040 grep -v '^ *+' conftest.er1 >conftest.err
44042 cat conftest.err >&5
44043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44044 (exit $ac_status); } &&
44045 { ac_try='test -z "$ac_c_werror_flag"
44046 || test ! -s conftest.err'
44047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44048 (eval $ac_try) 2>&5
44050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44051 (exit $ac_status); }; } &&
44052 { ac_try='test -s conftest$ac_exeext'
44053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44054 (eval $ac_try) 2>&5
44056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44057 (exit $ac_status); }; }; then
44058 ac_cv_lib_dbm_dbm_open=yes
44060 echo "$as_me: failed program was:" >&5
44061 sed 's/^/| /' conftest.$ac_ext >&5
44063 ac_cv_lib_dbm_dbm_open=no
44065 rm -f conftest.err conftest.$ac_objext \
44066 conftest$ac_exeext conftest.$ac_ext
44067 LIBS=$ac_check_lib_save_LIBS
44069 echo "$as_me:$LINENO: result: $ac_cv_lib_dbm_dbm_open" >&5
44070 echo "${ECHO_T}$ac_cv_lib_dbm_dbm_open" >&6
44071 if test $ac_cv_lib_dbm_dbm_open = yes; then
44072 ol_cv_lib_ndbm=-ldbm
44085 echo "$as_me:$LINENO: result: $ol_cv_lib_ndbm" >&5
44086 echo "${ECHO_T}$ol_cv_lib_ndbm" >&6
44090 for ac_header in ndbm.h
44092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44094 echo "$as_me:$LINENO: checking for $ac_header" >&5
44095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44097 echo $ECHO_N "(cached) $ECHO_C" >&6
44099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44102 # Is the header compilable?
44103 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44105 cat >conftest.$ac_ext <<_ACEOF
44108 cat confdefs.h >>conftest.$ac_ext
44109 cat >>conftest.$ac_ext <<_ACEOF
44110 /* end confdefs.h. */
44111 $ac_includes_default
44112 #include <$ac_header>
44114 rm -f conftest.$ac_objext
44115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44116 (eval $ac_compile) 2>conftest.er1
44118 grep -v '^ *+' conftest.er1 >conftest.err
44120 cat conftest.err >&5
44121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44122 (exit $ac_status); } &&
44123 { ac_try='test -z "$ac_c_werror_flag"
44124 || test ! -s conftest.err'
44125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44126 (eval $ac_try) 2>&5
44128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44129 (exit $ac_status); }; } &&
44130 { ac_try='test -s conftest.$ac_objext'
44131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44132 (eval $ac_try) 2>&5
44134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44135 (exit $ac_status); }; }; then
44136 ac_header_compiler=yes
44138 echo "$as_me: failed program was:" >&5
44139 sed 's/^/| /' conftest.$ac_ext >&5
44141 ac_header_compiler=no
44143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44144 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44145 echo "${ECHO_T}$ac_header_compiler" >&6
44147 # Is the header present?
44148 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44150 cat >conftest.$ac_ext <<_ACEOF
44153 cat confdefs.h >>conftest.$ac_ext
44154 cat >>conftest.$ac_ext <<_ACEOF
44155 /* end confdefs.h. */
44156 #include <$ac_header>
44158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44161 grep -v '^ *+' conftest.er1 >conftest.err
44163 cat conftest.err >&5
44164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44165 (exit $ac_status); } >/dev/null; then
44166 if test -s conftest.err; then
44167 ac_cpp_err=$ac_c_preproc_warn_flag
44168 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44175 if test -z "$ac_cpp_err"; then
44176 ac_header_preproc=yes
44178 echo "$as_me: failed program was:" >&5
44179 sed 's/^/| /' conftest.$ac_ext >&5
44181 ac_header_preproc=no
44183 rm -f conftest.err conftest.$ac_ext
44184 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44185 echo "${ECHO_T}$ac_header_preproc" >&6
44187 # So? What about this header?
44188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44194 ac_header_preproc=yes
44197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44198 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44200 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44202 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44204 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44208 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44211 ## ------------------------------------------ ##
44212 ## Report this to the AC_PACKAGE_NAME lists. ##
44213 ## ------------------------------------------ ##
44216 sed "s/^/$as_me: WARNING: /" >&2
44219 echo "$as_me:$LINENO: checking for $ac_header" >&5
44220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44222 echo $ECHO_N "(cached) $ECHO_C" >&6
44224 eval "$as_ac_Header=\$ac_header_preproc"
44226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44231 cat >>confdefs.h <<_ACEOF
44232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44239 echo "$as_me:$LINENO: checking for db" >&5
44240 echo $ECHO_N "checking for db... $ECHO_C" >&6
44241 if test "${ol_cv_ndbm+set}" = set; then
44242 echo $ECHO_N "(cached) $ECHO_C" >&6
44245 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
44252 echo "$as_me:$LINENO: result: $ol_cv_ndbm" >&5
44253 echo "${ECHO_T}$ol_cv_ndbm" >&6
44254 if test $ol_cv_ndbm = yes ; then
44256 cat >>confdefs.h <<\_ACEOF
44257 #define HAVE_NDBM 1
44263 if test $ol_cv_ndbm = yes ; then
44265 ol_with_ldbm_api=ndbm
44267 if test $ol_cv_lib_ndbm != yes ; then
44268 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
44273 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
44274 { { echo "$as_me:$LINENO: error: could not find suitable LDBM backend" >&5
44275 echo "$as_me: error: could not find suitable LDBM backend" >&2;}
44276 { (exit 1); exit 1; }; }
44279 if test $ol_enable_bdb = yes -o \
44280 $ol_enable_hdb = yes -o \
44281 $ol_enable_ldbm = yes ; then
44282 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
44286 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
44287 BUILD_LIBS_DYNAMIC=shared
44289 cat >>confdefs.h <<\_ACEOF
44290 #define LDAP_LIBS_DYNAMIC 1
44295 BUILD_LIBS_DYNAMIC=static
44299 if test $ol_enable_wrappers != no ; then
44301 for ac_header in tcpd.h
44303 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44305 echo "$as_me:$LINENO: checking for $ac_header" >&5
44306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44307 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44308 echo $ECHO_N "(cached) $ECHO_C" >&6
44310 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44311 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44313 # Is the header compilable?
44314 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44315 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44316 cat >conftest.$ac_ext <<_ACEOF
44319 cat confdefs.h >>conftest.$ac_ext
44320 cat >>conftest.$ac_ext <<_ACEOF
44321 /* end confdefs.h. */
44322 $ac_includes_default
44323 #include <$ac_header>
44325 rm -f conftest.$ac_objext
44326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44327 (eval $ac_compile) 2>conftest.er1
44329 grep -v '^ *+' conftest.er1 >conftest.err
44331 cat conftest.err >&5
44332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44333 (exit $ac_status); } &&
44334 { ac_try='test -z "$ac_c_werror_flag"
44335 || test ! -s conftest.err'
44336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44337 (eval $ac_try) 2>&5
44339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44340 (exit $ac_status); }; } &&
44341 { ac_try='test -s conftest.$ac_objext'
44342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44343 (eval $ac_try) 2>&5
44345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44346 (exit $ac_status); }; }; then
44347 ac_header_compiler=yes
44349 echo "$as_me: failed program was:" >&5
44350 sed 's/^/| /' conftest.$ac_ext >&5
44352 ac_header_compiler=no
44354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44355 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44356 echo "${ECHO_T}$ac_header_compiler" >&6
44358 # Is the header present?
44359 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44361 cat >conftest.$ac_ext <<_ACEOF
44364 cat confdefs.h >>conftest.$ac_ext
44365 cat >>conftest.$ac_ext <<_ACEOF
44366 /* end confdefs.h. */
44367 #include <$ac_header>
44369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44372 grep -v '^ *+' conftest.er1 >conftest.err
44374 cat conftest.err >&5
44375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44376 (exit $ac_status); } >/dev/null; then
44377 if test -s conftest.err; then
44378 ac_cpp_err=$ac_c_preproc_warn_flag
44379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44386 if test -z "$ac_cpp_err"; then
44387 ac_header_preproc=yes
44389 echo "$as_me: failed program was:" >&5
44390 sed 's/^/| /' conftest.$ac_ext >&5
44392 ac_header_preproc=no
44394 rm -f conftest.err conftest.$ac_ext
44395 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44396 echo "${ECHO_T}$ac_header_preproc" >&6
44398 # So? What about this header?
44399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44405 ac_header_preproc=yes
44408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44422 ## ------------------------------------------ ##
44423 ## Report this to the AC_PACKAGE_NAME lists. ##
44424 ## ------------------------------------------ ##
44427 sed "s/^/$as_me: WARNING: /" >&2
44430 echo "$as_me:$LINENO: checking for $ac_header" >&5
44431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44433 echo $ECHO_N "(cached) $ECHO_C" >&6
44435 eval "$as_ac_Header=\$ac_header_preproc"
44437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44442 cat >>confdefs.h <<_ACEOF
44443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44446 echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
44447 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6
44449 LIBS="$LIBS -lwrap"
44450 cat >conftest.$ac_ext <<_ACEOF
44453 cat confdefs.h >>conftest.$ac_ext
44454 cat >>conftest.$ac_ext <<_ACEOF
44455 /* end confdefs.h. */
44458 int allow_severity = 0;
44459 int deny_severity = 0;
44461 struct request_info *req;
44473 rm -f conftest.$ac_objext conftest$ac_exeext
44474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44475 (eval $ac_link) 2>conftest.er1
44477 grep -v '^ *+' conftest.er1 >conftest.err
44479 cat conftest.err >&5
44480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44481 (exit $ac_status); } &&
44482 { ac_try='test -z "$ac_c_werror_flag"
44483 || test ! -s conftest.err'
44484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44485 (eval $ac_try) 2>&5
44487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44488 (exit $ac_status); }; } &&
44489 { ac_try='test -s conftest$ac_exeext'
44490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44491 (eval $ac_try) 2>&5
44493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44494 (exit $ac_status); }; }; then
44495 echo "$as_me:$LINENO: result: -lwrap" >&5
44496 echo "${ECHO_T}-lwrap" >&6
44500 echo "$as_me: failed program was:" >&5
44501 sed 's/^/| /' conftest.$ac_ext >&5
44505 cat >conftest.$ac_ext <<_ACEOF
44508 cat confdefs.h >>conftest.$ac_ext
44509 cat >>conftest.$ac_ext <<_ACEOF
44510 /* end confdefs.h. */
44513 int allow_severity = 0;
44514 int deny_severity = 0;
44516 struct request_info *req;
44528 rm -f conftest.$ac_objext conftest$ac_exeext
44529 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44530 (eval $ac_link) 2>conftest.er1
44532 grep -v '^ *+' conftest.er1 >conftest.err
44534 cat conftest.err >&5
44535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44536 (exit $ac_status); } &&
44537 { ac_try='test -z "$ac_c_werror_flag"
44538 || test ! -s conftest.err'
44539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44540 (eval $ac_try) 2>&5
44542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44543 (exit $ac_status); }; } &&
44544 { ac_try='test -s conftest$ac_exeext'
44545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44546 (eval $ac_try) 2>&5
44548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44549 (exit $ac_status); }; }; then
44550 echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
44551 echo "${ECHO_T}-lwrap -lnsl" >&6
44553 LIBS="$save_LIBS -lnsl"
44555 echo "$as_me: failed program was:" >&5
44556 sed 's/^/| /' conftest.$ac_ext >&5
44559 echo "$as_me:$LINENO: result: no" >&5
44560 echo "${ECHO_T}no" >&6
44564 rm -f conftest.err conftest.$ac_objext \
44565 conftest$ac_exeext conftest.$ac_ext
44567 rm -f conftest.err conftest.$ac_objext \
44568 conftest$ac_exeext conftest.$ac_ext
44576 if test $have_wrappers = yes ; then
44578 cat >>confdefs.h <<\_ACEOF
44579 #define HAVE_TCPD 1
44583 elif test $ol_enable_wrappers = yes ; then
44584 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
44585 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
44586 { (exit 1); exit 1; }; }
44588 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
44589 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
44594 if test $ol_enable_syslog != no ; then
44595 echo "$as_me:$LINENO: checking for openlog" >&5
44596 echo $ECHO_N "checking for openlog... $ECHO_C" >&6
44597 if test "${ac_cv_func_openlog+set}" = set; then
44598 echo $ECHO_N "(cached) $ECHO_C" >&6
44600 cat >conftest.$ac_ext <<_ACEOF
44603 cat confdefs.h >>conftest.$ac_ext
44604 cat >>conftest.$ac_ext <<_ACEOF
44605 /* end confdefs.h. */
44606 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
44607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
44608 #define openlog innocuous_openlog
44610 /* System header to define __stub macros and hopefully few prototypes,
44611 which can conflict with char openlog (); below.
44612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44613 <limits.h> exists even on freestanding compilers. */
44616 # include <limits.h>
44618 # include <assert.h>
44623 /* Override any gcc2 internal prototype to avoid an error. */
44628 /* We use char because int might match the return type of a gcc2
44629 builtin and then its argument prototype would still apply. */
44631 /* The GNU C library defines this for functions which it implements
44632 to always fail with ENOSYS. Some functions are actually named
44633 something starting with __ and the normal name is an alias. */
44634 #if defined (__stub_openlog) || defined (__stub___openlog)
44637 char (*f) () = openlog;
44646 return f != openlog;
44651 rm -f conftest.$ac_objext conftest$ac_exeext
44652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44653 (eval $ac_link) 2>conftest.er1
44655 grep -v '^ *+' conftest.er1 >conftest.err
44657 cat conftest.err >&5
44658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44659 (exit $ac_status); } &&
44660 { ac_try='test -z "$ac_c_werror_flag"
44661 || test ! -s conftest.err'
44662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44663 (eval $ac_try) 2>&5
44665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44666 (exit $ac_status); }; } &&
44667 { ac_try='test -s conftest$ac_exeext'
44668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44669 (eval $ac_try) 2>&5
44671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44672 (exit $ac_status); }; }; then
44673 ac_cv_func_openlog=yes
44675 echo "$as_me: failed program was:" >&5
44676 sed 's/^/| /' conftest.$ac_ext >&5
44678 ac_cv_func_openlog=no
44680 rm -f conftest.err conftest.$ac_objext \
44681 conftest$ac_exeext conftest.$ac_ext
44683 echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
44684 echo "${ECHO_T}$ac_cv_func_openlog" >&6
44686 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
44687 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
44688 echo "$as_me: error: could not find syslog" >&2;}
44689 { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
44691 ol_enable_syslog=$ac_cv_func_openlog
44696 if test $ol_enable_sql != no ; then
44699 for ac_header in sql.h sqlext.h
44701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
44702 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44703 echo "$as_me:$LINENO: checking for $ac_header" >&5
44704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44705 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44706 echo $ECHO_N "(cached) $ECHO_C" >&6
44708 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44709 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44711 # Is the header compilable?
44712 echo "$as_me:$LINENO: checking $ac_header usability" >&5
44713 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
44714 cat >conftest.$ac_ext <<_ACEOF
44717 cat confdefs.h >>conftest.$ac_ext
44718 cat >>conftest.$ac_ext <<_ACEOF
44719 /* end confdefs.h. */
44720 $ac_includes_default
44721 #include <$ac_header>
44723 rm -f conftest.$ac_objext
44724 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
44725 (eval $ac_compile) 2>conftest.er1
44727 grep -v '^ *+' conftest.er1 >conftest.err
44729 cat conftest.err >&5
44730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44731 (exit $ac_status); } &&
44732 { ac_try='test -z "$ac_c_werror_flag"
44733 || test ! -s conftest.err'
44734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44735 (eval $ac_try) 2>&5
44737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44738 (exit $ac_status); }; } &&
44739 { ac_try='test -s conftest.$ac_objext'
44740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44741 (eval $ac_try) 2>&5
44743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44744 (exit $ac_status); }; }; then
44745 ac_header_compiler=yes
44747 echo "$as_me: failed program was:" >&5
44748 sed 's/^/| /' conftest.$ac_ext >&5
44750 ac_header_compiler=no
44752 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
44753 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
44754 echo "${ECHO_T}$ac_header_compiler" >&6
44756 # Is the header present?
44757 echo "$as_me:$LINENO: checking $ac_header presence" >&5
44758 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
44759 cat >conftest.$ac_ext <<_ACEOF
44762 cat confdefs.h >>conftest.$ac_ext
44763 cat >>conftest.$ac_ext <<_ACEOF
44764 /* end confdefs.h. */
44765 #include <$ac_header>
44767 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
44768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
44770 grep -v '^ *+' conftest.er1 >conftest.err
44772 cat conftest.err >&5
44773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44774 (exit $ac_status); } >/dev/null; then
44775 if test -s conftest.err; then
44776 ac_cpp_err=$ac_c_preproc_warn_flag
44777 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
44784 if test -z "$ac_cpp_err"; then
44785 ac_header_preproc=yes
44787 echo "$as_me: failed program was:" >&5
44788 sed 's/^/| /' conftest.$ac_ext >&5
44790 ac_header_preproc=no
44792 rm -f conftest.err conftest.$ac_ext
44793 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
44794 echo "${ECHO_T}$ac_header_preproc" >&6
44796 # So? What about this header?
44797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
44799 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
44800 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
44801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
44802 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
44803 ac_header_preproc=yes
44806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
44807 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
44808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
44809 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
44810 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
44811 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
44812 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
44813 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
44814 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
44815 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
44816 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
44817 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
44820 ## ------------------------------------------ ##
44821 ## Report this to the AC_PACKAGE_NAME lists. ##
44822 ## ------------------------------------------ ##
44825 sed "s/^/$as_me: WARNING: /" >&2
44828 echo "$as_me:$LINENO: checking for $ac_header" >&5
44829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
44830 if eval "test \"\${$as_ac_Header+set}\" = set"; then
44831 echo $ECHO_N "(cached) $ECHO_C" >&6
44833 eval "$as_ac_Header=\$ac_header_preproc"
44835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
44836 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
44839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
44840 cat >>confdefs.h <<_ACEOF
44841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
44846 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
44847 echo "$as_me: error: could not locate SQL headers" >&2;}
44848 { (exit 1); exit 1; }; }
44856 LIBS="$LTHREAD_LIBS"
44858 echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
44859 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6
44860 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
44861 echo $ECHO_N "(cached) $ECHO_C" >&6
44863 ac_check_lib_save_LIBS=$LIBS
44864 LIBS="-liodbc $LIBS"
44865 cat >conftest.$ac_ext <<_ACEOF
44868 cat confdefs.h >>conftest.$ac_ext
44869 cat >>conftest.$ac_ext <<_ACEOF
44870 /* end confdefs.h. */
44872 /* Override any gcc2 internal prototype to avoid an error. */
44876 /* We use char because int might match the return type of a gcc2
44877 builtin and then its argument prototype would still apply. */
44878 char SQLDriverConnect ();
44882 SQLDriverConnect ();
44887 rm -f conftest.$ac_objext conftest$ac_exeext
44888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44889 (eval $ac_link) 2>conftest.er1
44891 grep -v '^ *+' conftest.er1 >conftest.err
44893 cat conftest.err >&5
44894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44895 (exit $ac_status); } &&
44896 { ac_try='test -z "$ac_c_werror_flag"
44897 || test ! -s conftest.err'
44898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44899 (eval $ac_try) 2>&5
44901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44902 (exit $ac_status); }; } &&
44903 { ac_try='test -s conftest$ac_exeext'
44904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44905 (eval $ac_try) 2>&5
44907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44908 (exit $ac_status); }; }; then
44909 ac_cv_lib_iodbc_SQLDriverConnect=yes
44911 echo "$as_me: failed program was:" >&5
44912 sed 's/^/| /' conftest.$ac_ext >&5
44914 ac_cv_lib_iodbc_SQLDriverConnect=no
44916 rm -f conftest.err conftest.$ac_objext \
44917 conftest$ac_exeext conftest.$ac_ext
44918 LIBS=$ac_check_lib_save_LIBS
44920 echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
44921 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6
44922 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
44928 if test $have_iodbc = yes ; then
44929 ol_link_sql="-liodbc"
44931 echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
44932 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6
44933 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
44934 echo $ECHO_N "(cached) $ECHO_C" >&6
44936 ac_check_lib_save_LIBS=$LIBS
44937 LIBS="-lodbc $LIBS"
44938 cat >conftest.$ac_ext <<_ACEOF
44941 cat confdefs.h >>conftest.$ac_ext
44942 cat >>conftest.$ac_ext <<_ACEOF
44943 /* end confdefs.h. */
44945 /* Override any gcc2 internal prototype to avoid an error. */
44949 /* We use char because int might match the return type of a gcc2
44950 builtin and then its argument prototype would still apply. */
44951 char SQLDriverConnect ();
44955 SQLDriverConnect ();
44960 rm -f conftest.$ac_objext conftest$ac_exeext
44961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
44962 (eval $ac_link) 2>conftest.er1
44964 grep -v '^ *+' conftest.er1 >conftest.err
44966 cat conftest.err >&5
44967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44968 (exit $ac_status); } &&
44969 { ac_try='test -z "$ac_c_werror_flag"
44970 || test ! -s conftest.err'
44971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44972 (eval $ac_try) 2>&5
44974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44975 (exit $ac_status); }; } &&
44976 { ac_try='test -s conftest$ac_exeext'
44977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
44978 (eval $ac_try) 2>&5
44980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44981 (exit $ac_status); }; }; then
44982 ac_cv_lib_odbc_SQLDriverConnect=yes
44984 echo "$as_me: failed program was:" >&5
44985 sed 's/^/| /' conftest.$ac_ext >&5
44987 ac_cv_lib_odbc_SQLDriverConnect=no
44989 rm -f conftest.err conftest.$ac_objext \
44990 conftest$ac_exeext conftest.$ac_ext
44991 LIBS=$ac_check_lib_save_LIBS
44993 echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
44994 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6
44995 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
45001 if test $have_odbc = yes ; then
45002 ol_link_sql="-lodbc"
45008 if test $ol_link_sql != no ; then
45009 SLAPD_SQL_LIBS="$ol_link_sql"
45011 elif test $ol_enable_sql != auto ; then
45012 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
45013 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
45014 { (exit 1); exit 1; }; }
45021 if test $ol_with_cyrus_sasl != no ; then
45024 for ac_header in sasl/sasl.h sasl.h
45026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45028 echo "$as_me:$LINENO: checking for $ac_header" >&5
45029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45030 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45031 echo $ECHO_N "(cached) $ECHO_C" >&6
45033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45036 # Is the header compilable?
45037 echo "$as_me:$LINENO: checking $ac_header usability" >&5
45038 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
45039 cat >conftest.$ac_ext <<_ACEOF
45042 cat confdefs.h >>conftest.$ac_ext
45043 cat >>conftest.$ac_ext <<_ACEOF
45044 /* end confdefs.h. */
45045 $ac_includes_default
45046 #include <$ac_header>
45048 rm -f conftest.$ac_objext
45049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
45050 (eval $ac_compile) 2>conftest.er1
45052 grep -v '^ *+' conftest.er1 >conftest.err
45054 cat conftest.err >&5
45055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45056 (exit $ac_status); } &&
45057 { ac_try='test -z "$ac_c_werror_flag"
45058 || test ! -s conftest.err'
45059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45060 (eval $ac_try) 2>&5
45062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45063 (exit $ac_status); }; } &&
45064 { ac_try='test -s conftest.$ac_objext'
45065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45066 (eval $ac_try) 2>&5
45068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45069 (exit $ac_status); }; }; then
45070 ac_header_compiler=yes
45072 echo "$as_me: failed program was:" >&5
45073 sed 's/^/| /' conftest.$ac_ext >&5
45075 ac_header_compiler=no
45077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
45078 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
45079 echo "${ECHO_T}$ac_header_compiler" >&6
45081 # Is the header present?
45082 echo "$as_me:$LINENO: checking $ac_header presence" >&5
45083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
45084 cat >conftest.$ac_ext <<_ACEOF
45087 cat confdefs.h >>conftest.$ac_ext
45088 cat >>conftest.$ac_ext <<_ACEOF
45089 /* end confdefs.h. */
45090 #include <$ac_header>
45092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
45093 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
45095 grep -v '^ *+' conftest.er1 >conftest.err
45097 cat conftest.err >&5
45098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45099 (exit $ac_status); } >/dev/null; then
45100 if test -s conftest.err; then
45101 ac_cpp_err=$ac_c_preproc_warn_flag
45102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
45109 if test -z "$ac_cpp_err"; then
45110 ac_header_preproc=yes
45112 echo "$as_me: failed program was:" >&5
45113 sed 's/^/| /' conftest.$ac_ext >&5
45115 ac_header_preproc=no
45117 rm -f conftest.err conftest.$ac_ext
45118 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
45119 echo "${ECHO_T}$ac_header_preproc" >&6
45121 # So? What about this header?
45122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
45124 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
45125 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
45126 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
45127 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
45128 ac_header_preproc=yes
45131 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
45132 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
45133 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
45134 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
45135 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
45136 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
45137 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
45138 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
45139 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
45140 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
45141 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
45142 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
45145 ## ------------------------------------------ ##
45146 ## Report this to the AC_PACKAGE_NAME lists. ##
45147 ## ------------------------------------------ ##
45150 sed "s/^/$as_me: WARNING: /" >&2
45153 echo "$as_me:$LINENO: checking for $ac_header" >&5
45154 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45155 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45156 echo $ECHO_N "(cached) $ECHO_C" >&6
45158 eval "$as_ac_Header=\$ac_header_preproc"
45160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
45161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
45164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45165 cat >>confdefs.h <<_ACEOF
45166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45174 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
45175 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
45176 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6
45177 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
45178 echo $ECHO_N "(cached) $ECHO_C" >&6
45180 ac_check_lib_save_LIBS=$LIBS
45181 LIBS="-lsasl2 $LIBS"
45182 cat >conftest.$ac_ext <<_ACEOF
45185 cat confdefs.h >>conftest.$ac_ext
45186 cat >>conftest.$ac_ext <<_ACEOF
45187 /* end confdefs.h. */
45189 /* Override any gcc2 internal prototype to avoid an error. */
45193 /* We use char because int might match the return type of a gcc2
45194 builtin and then its argument prototype would still apply. */
45195 char sasl_client_init ();
45199 sasl_client_init ();
45204 rm -f conftest.$ac_objext conftest$ac_exeext
45205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45206 (eval $ac_link) 2>conftest.er1
45208 grep -v '^ *+' conftest.er1 >conftest.err
45210 cat conftest.err >&5
45211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45212 (exit $ac_status); } &&
45213 { ac_try='test -z "$ac_c_werror_flag"
45214 || test ! -s conftest.err'
45215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45216 (eval $ac_try) 2>&5
45218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45219 (exit $ac_status); }; } &&
45220 { ac_try='test -s conftest$ac_exeext'
45221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45222 (eval $ac_try) 2>&5
45224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45225 (exit $ac_status); }; }; then
45226 ac_cv_lib_sasl2_sasl_client_init=yes
45228 echo "$as_me: failed program was:" >&5
45229 sed 's/^/| /' conftest.$ac_ext >&5
45231 ac_cv_lib_sasl2_sasl_client_init=no
45233 rm -f conftest.err conftest.$ac_objext \
45234 conftest$ac_exeext conftest.$ac_ext
45235 LIBS=$ac_check_lib_save_LIBS
45237 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
45238 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6
45239 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
45240 ol_link_sasl="-lsasl2"
45242 echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
45243 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6
45244 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
45245 echo $ECHO_N "(cached) $ECHO_C" >&6
45247 ac_check_lib_save_LIBS=$LIBS
45248 LIBS="-lsasl $LIBS"
45249 cat >conftest.$ac_ext <<_ACEOF
45252 cat confdefs.h >>conftest.$ac_ext
45253 cat >>conftest.$ac_ext <<_ACEOF
45254 /* end confdefs.h. */
45256 /* Override any gcc2 internal prototype to avoid an error. */
45260 /* We use char because int might match the return type of a gcc2
45261 builtin and then its argument prototype would still apply. */
45262 char sasl_client_init ();
45266 sasl_client_init ();
45271 rm -f conftest.$ac_objext conftest$ac_exeext
45272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45273 (eval $ac_link) 2>conftest.er1
45275 grep -v '^ *+' conftest.er1 >conftest.err
45277 cat conftest.err >&5
45278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45279 (exit $ac_status); } &&
45280 { ac_try='test -z "$ac_c_werror_flag"
45281 || test ! -s conftest.err'
45282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45283 (eval $ac_try) 2>&5
45285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45286 (exit $ac_status); }; } &&
45287 { ac_try='test -s conftest$ac_exeext'
45288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45289 (eval $ac_try) 2>&5
45291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45292 (exit $ac_status); }; }; then
45293 ac_cv_lib_sasl_sasl_client_init=yes
45295 echo "$as_me: failed program was:" >&5
45296 sed 's/^/| /' conftest.$ac_ext >&5
45298 ac_cv_lib_sasl_sasl_client_init=no
45300 rm -f conftest.err conftest.$ac_objext \
45301 conftest$ac_exeext conftest.$ac_ext
45302 LIBS=$ac_check_lib_save_LIBS
45304 echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
45305 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6
45306 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
45307 ol_link_sasl="-lsasl"
45314 if test $ol_link_sasl = no ; then
45315 if test $ol_with_cyrus_sasl != auto ; then
45316 { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
45317 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
45318 { (exit 1); exit 1; }; }
45320 { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
45321 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
45322 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45323 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45324 if test $ol_link_tls = no ; then
45325 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45326 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45330 echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
45331 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6
45332 if test "${ol_cv_sasl_compat+set}" = set; then
45333 echo $ECHO_N "(cached) $ECHO_C" >&6
45336 cat >conftest.$ac_ext <<_ACEOF
45339 cat confdefs.h >>conftest.$ac_ext
45340 cat >>conftest.$ac_ext <<_ACEOF
45341 /* end confdefs.h. */
45343 #ifdef HAVE_SASL_SASL_H
45344 #include <sasl/sasl.h>
45349 /* Require 2.1.15+ */
45350 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
45351 char *__sasl_compat = "2.2+ or better okay (we guess)";
45352 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
45353 && SASL_VERSION_STEP >=15
45354 char *__sasl_compat = "2.1.15+ or better okay";
45358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
45359 $EGREP "__sasl_compat" >/dev/null 2>&1; then
45360 ol_cv_sasl_compat=yes
45362 ol_cv_sasl_compat=no
45367 echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
45368 echo "${ECHO_T}$ol_cv_sasl_compat" >&6
45370 if test $ol_cv_sasl_compat = no ; then
45372 { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
45373 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
45374 { (exit 1); exit 1; }; }
45378 cat >>confdefs.h <<\_ACEOF
45379 #define HAVE_CYRUS_SASL 1
45382 SASL_LIBS="$ol_link_sasl"
45383 if test $ol_enable_spasswd != no ; then
45384 ol_link_spasswd=yes
45387 ac_save_LIBS="$LIBS"
45388 LIBS="$LIBS $ol_link_sasl"
45389 echo "$as_me:$LINENO: checking for sasl_version" >&5
45390 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6
45391 if test "${ac_cv_func_sasl_version+set}" = set; then
45392 echo $ECHO_N "(cached) $ECHO_C" >&6
45394 cat >conftest.$ac_ext <<_ACEOF
45397 cat confdefs.h >>conftest.$ac_ext
45398 cat >>conftest.$ac_ext <<_ACEOF
45399 /* end confdefs.h. */
45400 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
45401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45402 #define sasl_version innocuous_sasl_version
45404 /* System header to define __stub macros and hopefully few prototypes,
45405 which can conflict with char sasl_version (); below.
45406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45407 <limits.h> exists even on freestanding compilers. */
45410 # include <limits.h>
45412 # include <assert.h>
45415 #undef sasl_version
45417 /* Override any gcc2 internal prototype to avoid an error. */
45422 /* We use char because int might match the return type of a gcc2
45423 builtin and then its argument prototype would still apply. */
45424 char sasl_version ();
45425 /* The GNU C library defines this for functions which it implements
45426 to always fail with ENOSYS. Some functions are actually named
45427 something starting with __ and the normal name is an alias. */
45428 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
45431 char (*f) () = sasl_version;
45440 return f != sasl_version;
45445 rm -f conftest.$ac_objext conftest$ac_exeext
45446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45447 (eval $ac_link) 2>conftest.er1
45449 grep -v '^ *+' conftest.er1 >conftest.err
45451 cat conftest.err >&5
45452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45453 (exit $ac_status); } &&
45454 { ac_try='test -z "$ac_c_werror_flag"
45455 || test ! -s conftest.err'
45456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45457 (eval $ac_try) 2>&5
45459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45460 (exit $ac_status); }; } &&
45461 { ac_try='test -s conftest$ac_exeext'
45462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45463 (eval $ac_try) 2>&5
45465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45466 (exit $ac_status); }; }; then
45467 ac_cv_func_sasl_version=yes
45469 echo "$as_me: failed program was:" >&5
45470 sed 's/^/| /' conftest.$ac_ext >&5
45472 ac_cv_func_sasl_version=no
45474 rm -f conftest.err conftest.$ac_objext \
45475 conftest$ac_exeext conftest.$ac_ext
45477 echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
45478 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6
45479 if test $ac_cv_func_sasl_version = yes; then
45481 cat >>confdefs.h <<\_ACEOF
45482 #define HAVE_SASL_VERSION 1
45487 LIBS="$ac_save_LIBS"
45493 { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
45494 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
45495 if test $ol_link_tls = no ; then
45496 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
45497 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
45501 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
45503 if test -r /dev/urandom ; then
45504 dev="/dev/urandom";
45505 elif test -r /idev/urandom ; then
45506 dev="/idev/urandom";
45507 elif test -r /dev/srandom ; then
45508 dev="/dev/srandom";
45509 elif test -r /dev/random ; then
45511 elif test -r /idev/random ; then
45512 dev="/idev/random";
45515 if test $dev != no ; then
45517 cat >>confdefs.h <<_ACEOF
45518 #define URANDOM_DEVICE "$dev"
45525 if test $ol_with_fetch != no ; then
45527 LIBS="-lfetch -lcom_err $LIBS"
45528 echo "$as_me:$LINENO: checking fetch(3) library" >&5
45529 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6
45530 if test "${ol_cv_lib_fetch+set}" = set; then
45531 echo $ECHO_N "(cached) $ECHO_C" >&6
45534 cat >conftest.$ac_ext <<_ACEOF
45537 cat confdefs.h >>conftest.$ac_ext
45538 cat >>conftest.$ac_ext <<_ACEOF
45539 /* end confdefs.h. */
45541 #include <sys/param.h>
45547 struct url *u = fetchParseURL("file:///");
45552 rm -f conftest.$ac_objext conftest$ac_exeext
45553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45554 (eval $ac_link) 2>conftest.er1
45556 grep -v '^ *+' conftest.er1 >conftest.err
45558 cat conftest.err >&5
45559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45560 (exit $ac_status); } &&
45561 { ac_try='test -z "$ac_c_werror_flag"
45562 || test ! -s conftest.err'
45563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45564 (eval $ac_try) 2>&5
45566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45567 (exit $ac_status); }; } &&
45568 { ac_try='test -s conftest$ac_exeext'
45569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45570 (eval $ac_try) 2>&5
45572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45573 (exit $ac_status); }; }; then
45574 ol_cv_lib_fetch=yes
45576 echo "$as_me: failed program was:" >&5
45577 sed 's/^/| /' conftest.$ac_ext >&5
45581 rm -f conftest.err conftest.$ac_objext \
45582 conftest$ac_exeext conftest.$ac_ext
45584 echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
45585 echo "${ECHO_T}$ol_cv_lib_fetch" >&6
45587 if test $ol_cv_lib_fetch != no ; then
45588 ol_link_fetch="-lfetch -lcom_err"
45590 cat >>confdefs.h <<\_ACEOF
45591 #define HAVE_FETCH 1
45597 if test $ol_cv_lib_fetch != no ; then
45598 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
45599 ol_link_fetch=freebsd
45601 elif test $ol_with_fetch != auto ; then
45602 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
45603 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
45604 { (exit 1); exit 1; }; }
45608 if test $ol_enable_crypt != no ; then
45610 LIBS="$TLS_LIBS $LIBS"
45612 echo "$as_me:$LINENO: checking for crypt" >&5
45613 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
45614 if test "${ac_cv_func_crypt+set}" = set; then
45615 echo $ECHO_N "(cached) $ECHO_C" >&6
45617 cat >conftest.$ac_ext <<_ACEOF
45620 cat confdefs.h >>conftest.$ac_ext
45621 cat >>conftest.$ac_ext <<_ACEOF
45622 /* end confdefs.h. */
45623 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
45624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45625 #define crypt innocuous_crypt
45627 /* System header to define __stub macros and hopefully few prototypes,
45628 which can conflict with char crypt (); below.
45629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45630 <limits.h> exists even on freestanding compilers. */
45633 # include <limits.h>
45635 # include <assert.h>
45640 /* Override any gcc2 internal prototype to avoid an error. */
45645 /* We use char because int might match the return type of a gcc2
45646 builtin and then its argument prototype would still apply. */
45648 /* The GNU C library defines this for functions which it implements
45649 to always fail with ENOSYS. Some functions are actually named
45650 something starting with __ and the normal name is an alias. */
45651 #if defined (__stub_crypt) || defined (__stub___crypt)
45654 char (*f) () = crypt;
45668 rm -f conftest.$ac_objext conftest$ac_exeext
45669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45670 (eval $ac_link) 2>conftest.er1
45672 grep -v '^ *+' conftest.er1 >conftest.err
45674 cat conftest.err >&5
45675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45676 (exit $ac_status); } &&
45677 { ac_try='test -z "$ac_c_werror_flag"
45678 || test ! -s conftest.err'
45679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45680 (eval $ac_try) 2>&5
45682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45683 (exit $ac_status); }; } &&
45684 { ac_try='test -s conftest$ac_exeext'
45685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45686 (eval $ac_try) 2>&5
45688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45689 (exit $ac_status); }; }; then
45690 ac_cv_func_crypt=yes
45692 echo "$as_me: failed program was:" >&5
45693 sed 's/^/| /' conftest.$ac_ext >&5
45695 ac_cv_func_crypt=no
45697 rm -f conftest.err conftest.$ac_objext \
45698 conftest$ac_exeext conftest.$ac_ext
45700 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
45701 echo "${ECHO_T}$ac_cv_func_crypt" >&6
45702 if test $ac_cv_func_crypt = yes; then
45707 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
45708 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
45709 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
45710 echo $ECHO_N "(cached) $ECHO_C" >&6
45712 ac_check_lib_save_LIBS=$LIBS
45713 LIBS="-lcrypt $LIBS"
45714 cat >conftest.$ac_ext <<_ACEOF
45717 cat confdefs.h >>conftest.$ac_ext
45718 cat >>conftest.$ac_ext <<_ACEOF
45719 /* end confdefs.h. */
45721 /* Override any gcc2 internal prototype to avoid an error. */
45725 /* We use char because int might match the return type of a gcc2
45726 builtin and then its argument prototype would still apply. */
45736 rm -f conftest.$ac_objext conftest$ac_exeext
45737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45738 (eval $ac_link) 2>conftest.er1
45740 grep -v '^ *+' conftest.er1 >conftest.err
45742 cat conftest.err >&5
45743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45744 (exit $ac_status); } &&
45745 { ac_try='test -z "$ac_c_werror_flag"
45746 || test ! -s conftest.err'
45747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45748 (eval $ac_try) 2>&5
45750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45751 (exit $ac_status); }; } &&
45752 { ac_try='test -s conftest$ac_exeext'
45753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45754 (eval $ac_try) 2>&5
45756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45757 (exit $ac_status); }; }; then
45758 ac_cv_lib_crypt_crypt=yes
45760 echo "$as_me: failed program was:" >&5
45761 sed 's/^/| /' conftest.$ac_ext >&5
45763 ac_cv_lib_crypt_crypt=no
45765 rm -f conftest.err conftest.$ac_objext \
45766 conftest$ac_exeext conftest.$ac_ext
45767 LIBS=$ac_check_lib_save_LIBS
45769 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
45770 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
45771 if test $ac_cv_lib_crypt_crypt = yes; then
45772 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
45783 if test $have_crypt = yes ; then
45785 cat >>confdefs.h <<\_ACEOF
45786 #define HAVE_CRYPT 1
45790 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
45791 echo "$as_me: WARNING: could not find crypt" >&2;}
45792 if test $ol_enable_crypt = yes ; then
45793 { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
45794 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
45795 { (exit 1); exit 1; }; }
45798 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
45799 echo "$as_me: WARNING: disabling crypt support" >&2;}
45804 if test $ol_enable_proctitle != no ; then
45805 echo "$as_me:$LINENO: checking for setproctitle" >&5
45806 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6
45807 if test "${ac_cv_func_setproctitle+set}" = set; then
45808 echo $ECHO_N "(cached) $ECHO_C" >&6
45810 cat >conftest.$ac_ext <<_ACEOF
45813 cat confdefs.h >>conftest.$ac_ext
45814 cat >>conftest.$ac_ext <<_ACEOF
45815 /* end confdefs.h. */
45816 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
45817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
45818 #define setproctitle innocuous_setproctitle
45820 /* System header to define __stub macros and hopefully few prototypes,
45821 which can conflict with char setproctitle (); below.
45822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45823 <limits.h> exists even on freestanding compilers. */
45826 # include <limits.h>
45828 # include <assert.h>
45831 #undef setproctitle
45833 /* Override any gcc2 internal prototype to avoid an error. */
45838 /* We use char because int might match the return type of a gcc2
45839 builtin and then its argument prototype would still apply. */
45840 char setproctitle ();
45841 /* The GNU C library defines this for functions which it implements
45842 to always fail with ENOSYS. Some functions are actually named
45843 something starting with __ and the normal name is an alias. */
45844 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
45847 char (*f) () = setproctitle;
45856 return f != setproctitle;
45861 rm -f conftest.$ac_objext conftest$ac_exeext
45862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45863 (eval $ac_link) 2>conftest.er1
45865 grep -v '^ *+' conftest.er1 >conftest.err
45867 cat conftest.err >&5
45868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45869 (exit $ac_status); } &&
45870 { ac_try='test -z "$ac_c_werror_flag"
45871 || test ! -s conftest.err'
45872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45873 (eval $ac_try) 2>&5
45875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45876 (exit $ac_status); }; } &&
45877 { ac_try='test -s conftest$ac_exeext'
45878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45879 (eval $ac_try) 2>&5
45881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45882 (exit $ac_status); }; }; then
45883 ac_cv_func_setproctitle=yes
45885 echo "$as_me: failed program was:" >&5
45886 sed 's/^/| /' conftest.$ac_ext >&5
45888 ac_cv_func_setproctitle=no
45890 rm -f conftest.err conftest.$ac_objext \
45891 conftest$ac_exeext conftest.$ac_ext
45893 echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
45894 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6
45895 if test $ac_cv_func_setproctitle = yes; then
45896 have_setproctitle=yes
45899 echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
45900 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6
45901 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
45902 echo $ECHO_N "(cached) $ECHO_C" >&6
45904 ac_check_lib_save_LIBS=$LIBS
45905 LIBS="-lutil $LIBS"
45906 cat >conftest.$ac_ext <<_ACEOF
45909 cat confdefs.h >>conftest.$ac_ext
45910 cat >>conftest.$ac_ext <<_ACEOF
45911 /* end confdefs.h. */
45913 /* Override any gcc2 internal prototype to avoid an error. */
45917 /* We use char because int might match the return type of a gcc2
45918 builtin and then its argument prototype would still apply. */
45919 char setproctitle ();
45928 rm -f conftest.$ac_objext conftest$ac_exeext
45929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
45930 (eval $ac_link) 2>conftest.er1
45932 grep -v '^ *+' conftest.er1 >conftest.err
45934 cat conftest.err >&5
45935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45936 (exit $ac_status); } &&
45937 { ac_try='test -z "$ac_c_werror_flag"
45938 || test ! -s conftest.err'
45939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45940 (eval $ac_try) 2>&5
45942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45943 (exit $ac_status); }; } &&
45944 { ac_try='test -s conftest$ac_exeext'
45945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
45946 (eval $ac_try) 2>&5
45948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
45949 (exit $ac_status); }; }; then
45950 ac_cv_lib_util_setproctitle=yes
45952 echo "$as_me: failed program was:" >&5
45953 sed 's/^/| /' conftest.$ac_ext >&5
45955 ac_cv_lib_util_setproctitle=no
45957 rm -f conftest.err conftest.$ac_objext \
45958 conftest$ac_exeext conftest.$ac_ext
45959 LIBS=$ac_check_lib_save_LIBS
45961 echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
45962 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6
45963 if test $ac_cv_lib_util_setproctitle = yes; then
45964 have_setproctitle=yes
45965 LUTIL_LIBS="$LUTIL_LIBS -lutil"
45967 have_setproctitle=no
45969 "setproctitle.$ac_objext" | \
45970 *" setproctitle.$ac_objext" | \
45971 "setproctitle.$ac_objext "* | \
45972 *" setproctitle.$ac_objext "* ) ;;
45973 *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext" ;;
45976 LIBSRCS="$LIBSRCS setproctitle.c"
45982 if test $have_setproctitle = yes ; then
45984 cat >>confdefs.h <<\_ACEOF
45985 #define HAVE_SETPROCTITLE 1
45991 if test $ol_enable_slp != no ; then
45993 for ac_header in slp.h
45995 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45996 if eval "test \"\${$as_ac_Header+set}\" = set"; then
45997 echo "$as_me:$LINENO: checking for $ac_header" >&5
45998 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
45999 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46000 echo $ECHO_N "(cached) $ECHO_C" >&6
46002 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46003 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46005 # Is the header compilable?
46006 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46007 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46008 cat >conftest.$ac_ext <<_ACEOF
46011 cat confdefs.h >>conftest.$ac_ext
46012 cat >>conftest.$ac_ext <<_ACEOF
46013 /* end confdefs.h. */
46014 $ac_includes_default
46015 #include <$ac_header>
46017 rm -f conftest.$ac_objext
46018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46019 (eval $ac_compile) 2>conftest.er1
46021 grep -v '^ *+' conftest.er1 >conftest.err
46023 cat conftest.err >&5
46024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46025 (exit $ac_status); } &&
46026 { ac_try='test -z "$ac_c_werror_flag"
46027 || test ! -s conftest.err'
46028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46029 (eval $ac_try) 2>&5
46031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46032 (exit $ac_status); }; } &&
46033 { ac_try='test -s conftest.$ac_objext'
46034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46035 (eval $ac_try) 2>&5
46037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46038 (exit $ac_status); }; }; then
46039 ac_header_compiler=yes
46041 echo "$as_me: failed program was:" >&5
46042 sed 's/^/| /' conftest.$ac_ext >&5
46044 ac_header_compiler=no
46046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46047 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46048 echo "${ECHO_T}$ac_header_compiler" >&6
46050 # Is the header present?
46051 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46052 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46053 cat >conftest.$ac_ext <<_ACEOF
46056 cat confdefs.h >>conftest.$ac_ext
46057 cat >>conftest.$ac_ext <<_ACEOF
46058 /* end confdefs.h. */
46059 #include <$ac_header>
46061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46064 grep -v '^ *+' conftest.er1 >conftest.err
46066 cat conftest.err >&5
46067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46068 (exit $ac_status); } >/dev/null; then
46069 if test -s conftest.err; then
46070 ac_cpp_err=$ac_c_preproc_warn_flag
46071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46078 if test -z "$ac_cpp_err"; then
46079 ac_header_preproc=yes
46081 echo "$as_me: failed program was:" >&5
46082 sed 's/^/| /' conftest.$ac_ext >&5
46084 ac_header_preproc=no
46086 rm -f conftest.err conftest.$ac_ext
46087 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46088 echo "${ECHO_T}$ac_header_preproc" >&6
46090 # So? What about this header?
46091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46093 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46094 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46095 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46097 ac_header_preproc=yes
46100 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46101 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46102 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46103 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46104 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46105 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46106 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46107 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46110 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46111 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46114 ## ------------------------------------------ ##
46115 ## Report this to the AC_PACKAGE_NAME lists. ##
46116 ## ------------------------------------------ ##
46119 sed "s/^/$as_me: WARNING: /" >&2
46122 echo "$as_me:$LINENO: checking for $ac_header" >&5
46123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46124 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46125 echo $ECHO_N "(cached) $ECHO_C" >&6
46127 eval "$as_ac_Header=\$ac_header_preproc"
46129 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46130 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46133 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46134 cat >>confdefs.h <<_ACEOF
46135 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46143 if test $ac_cv_header_slp_h = yes ; then
46144 echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
46145 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6
46146 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
46147 echo $ECHO_N "(cached) $ECHO_C" >&6
46149 ac_check_lib_save_LIBS=$LIBS
46151 cat >conftest.$ac_ext <<_ACEOF
46154 cat confdefs.h >>conftest.$ac_ext
46155 cat >>conftest.$ac_ext <<_ACEOF
46156 /* end confdefs.h. */
46158 /* Override any gcc2 internal prototype to avoid an error. */
46162 /* We use char because int might match the return type of a gcc2
46163 builtin and then its argument prototype would still apply. */
46173 rm -f conftest.$ac_objext conftest$ac_exeext
46174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46175 (eval $ac_link) 2>conftest.er1
46177 grep -v '^ *+' conftest.er1 >conftest.err
46179 cat conftest.err >&5
46180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46181 (exit $ac_status); } &&
46182 { ac_try='test -z "$ac_c_werror_flag"
46183 || test ! -s conftest.err'
46184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46185 (eval $ac_try) 2>&5
46187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46188 (exit $ac_status); }; } &&
46189 { ac_try='test -s conftest$ac_exeext'
46190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46191 (eval $ac_try) 2>&5
46193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46194 (exit $ac_status); }; }; then
46195 ac_cv_lib_slp_SLPOpen=yes
46197 echo "$as_me: failed program was:" >&5
46198 sed 's/^/| /' conftest.$ac_ext >&5
46200 ac_cv_lib_slp_SLPOpen=no
46202 rm -f conftest.err conftest.$ac_objext \
46203 conftest$ac_exeext conftest.$ac_ext
46204 LIBS=$ac_check_lib_save_LIBS
46206 echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
46207 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6
46208 if test $ac_cv_lib_slp_SLPOpen = yes; then
46214 if test $have_slp = yes ; then
46216 cat >>confdefs.h <<\_ACEOF
46220 SLAPD_SLP_LIBS=-lslp
46223 elif test $ol_enable_slp = yes ; then
46224 { { echo "$as_me:$LINENO: error: SLP not found" >&5
46225 echo "$as_me: error: SLP not found" >&2;}
46226 { (exit 1); exit 1; }; }
46230 if test "$ol_with_multiple_precision" != "no" ; then
46236 for ac_header in openssl/bn.h bn.h
46238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46240 echo "$as_me:$LINENO: checking for $ac_header" >&5
46241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46243 echo $ECHO_N "(cached) $ECHO_C" >&6
46245 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46246 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46248 # Is the header compilable?
46249 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46250 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46251 cat >conftest.$ac_ext <<_ACEOF
46254 cat confdefs.h >>conftest.$ac_ext
46255 cat >>conftest.$ac_ext <<_ACEOF
46256 /* end confdefs.h. */
46257 $ac_includes_default
46258 #include <$ac_header>
46260 rm -f conftest.$ac_objext
46261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46262 (eval $ac_compile) 2>conftest.er1
46264 grep -v '^ *+' conftest.er1 >conftest.err
46266 cat conftest.err >&5
46267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46268 (exit $ac_status); } &&
46269 { ac_try='test -z "$ac_c_werror_flag"
46270 || test ! -s conftest.err'
46271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46272 (eval $ac_try) 2>&5
46274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46275 (exit $ac_status); }; } &&
46276 { ac_try='test -s conftest.$ac_objext'
46277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46278 (eval $ac_try) 2>&5
46280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46281 (exit $ac_status); }; }; then
46282 ac_header_compiler=yes
46284 echo "$as_me: failed program was:" >&5
46285 sed 's/^/| /' conftest.$ac_ext >&5
46287 ac_header_compiler=no
46289 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46290 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46291 echo "${ECHO_T}$ac_header_compiler" >&6
46293 # Is the header present?
46294 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46296 cat >conftest.$ac_ext <<_ACEOF
46299 cat confdefs.h >>conftest.$ac_ext
46300 cat >>conftest.$ac_ext <<_ACEOF
46301 /* end confdefs.h. */
46302 #include <$ac_header>
46304 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46305 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46307 grep -v '^ *+' conftest.er1 >conftest.err
46309 cat conftest.err >&5
46310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46311 (exit $ac_status); } >/dev/null; then
46312 if test -s conftest.err; then
46313 ac_cpp_err=$ac_c_preproc_warn_flag
46314 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46321 if test -z "$ac_cpp_err"; then
46322 ac_header_preproc=yes
46324 echo "$as_me: failed program was:" >&5
46325 sed 's/^/| /' conftest.$ac_ext >&5
46327 ac_header_preproc=no
46329 rm -f conftest.err conftest.$ac_ext
46330 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46331 echo "${ECHO_T}$ac_header_preproc" >&6
46333 # So? What about this header?
46334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46340 ac_header_preproc=yes
46343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46346 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46350 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46357 ## ------------------------------------------ ##
46358 ## Report this to the AC_PACKAGE_NAME lists. ##
46359 ## ------------------------------------------ ##
46362 sed "s/^/$as_me: WARNING: /" >&2
46365 echo "$as_me:$LINENO: checking for $ac_header" >&5
46366 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46367 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46368 echo $ECHO_N "(cached) $ECHO_C" >&6
46370 eval "$as_ac_Header=\$ac_header_preproc"
46372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46373 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46377 cat >>confdefs.h <<_ACEOF
46378 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46387 for ac_header in openssl/crypto.h crypto.h
46389 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46390 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46391 echo "$as_me:$LINENO: checking for $ac_header" >&5
46392 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46394 echo $ECHO_N "(cached) $ECHO_C" >&6
46396 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46397 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46399 # Is the header compilable?
46400 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46402 cat >conftest.$ac_ext <<_ACEOF
46405 cat confdefs.h >>conftest.$ac_ext
46406 cat >>conftest.$ac_ext <<_ACEOF
46407 /* end confdefs.h. */
46408 $ac_includes_default
46409 #include <$ac_header>
46411 rm -f conftest.$ac_objext
46412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46413 (eval $ac_compile) 2>conftest.er1
46415 grep -v '^ *+' conftest.er1 >conftest.err
46417 cat conftest.err >&5
46418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46419 (exit $ac_status); } &&
46420 { ac_try='test -z "$ac_c_werror_flag"
46421 || test ! -s conftest.err'
46422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46423 (eval $ac_try) 2>&5
46425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46426 (exit $ac_status); }; } &&
46427 { ac_try='test -s conftest.$ac_objext'
46428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46429 (eval $ac_try) 2>&5
46431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46432 (exit $ac_status); }; }; then
46433 ac_header_compiler=yes
46435 echo "$as_me: failed program was:" >&5
46436 sed 's/^/| /' conftest.$ac_ext >&5
46438 ac_header_compiler=no
46440 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46441 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46442 echo "${ECHO_T}$ac_header_compiler" >&6
46444 # Is the header present?
46445 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46446 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46447 cat >conftest.$ac_ext <<_ACEOF
46450 cat confdefs.h >>conftest.$ac_ext
46451 cat >>conftest.$ac_ext <<_ACEOF
46452 /* end confdefs.h. */
46453 #include <$ac_header>
46455 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46456 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46458 grep -v '^ *+' conftest.er1 >conftest.err
46460 cat conftest.err >&5
46461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46462 (exit $ac_status); } >/dev/null; then
46463 if test -s conftest.err; then
46464 ac_cpp_err=$ac_c_preproc_warn_flag
46465 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46472 if test -z "$ac_cpp_err"; then
46473 ac_header_preproc=yes
46475 echo "$as_me: failed program was:" >&5
46476 sed 's/^/| /' conftest.$ac_ext >&5
46478 ac_header_preproc=no
46480 rm -f conftest.err conftest.$ac_ext
46481 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46482 echo "${ECHO_T}$ac_header_preproc" >&6
46484 # So? What about this header?
46485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46491 ac_header_preproc=yes
46494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46501 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46508 ## ------------------------------------------ ##
46509 ## Report this to the AC_PACKAGE_NAME lists. ##
46510 ## ------------------------------------------ ##
46513 sed "s/^/$as_me: WARNING: /" >&2
46516 echo "$as_me:$LINENO: checking for $ac_header" >&5
46517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46518 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46519 echo $ECHO_N "(cached) $ECHO_C" >&6
46521 eval "$as_ac_Header=\$ac_header_preproc"
46523 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46524 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46528 cat >>confdefs.h <<_ACEOF
46529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46537 for ac_header in gmp.h
46539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46540 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46541 echo "$as_me:$LINENO: checking for $ac_header" >&5
46542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46544 echo $ECHO_N "(cached) $ECHO_C" >&6
46546 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46547 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46549 # Is the header compilable?
46550 echo "$as_me:$LINENO: checking $ac_header usability" >&5
46551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
46552 cat >conftest.$ac_ext <<_ACEOF
46555 cat confdefs.h >>conftest.$ac_ext
46556 cat >>conftest.$ac_ext <<_ACEOF
46557 /* end confdefs.h. */
46558 $ac_includes_default
46559 #include <$ac_header>
46561 rm -f conftest.$ac_objext
46562 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46563 (eval $ac_compile) 2>conftest.er1
46565 grep -v '^ *+' conftest.er1 >conftest.err
46567 cat conftest.err >&5
46568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46569 (exit $ac_status); } &&
46570 { ac_try='test -z "$ac_c_werror_flag"
46571 || test ! -s conftest.err'
46572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46573 (eval $ac_try) 2>&5
46575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46576 (exit $ac_status); }; } &&
46577 { ac_try='test -s conftest.$ac_objext'
46578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46579 (eval $ac_try) 2>&5
46581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46582 (exit $ac_status); }; }; then
46583 ac_header_compiler=yes
46585 echo "$as_me: failed program was:" >&5
46586 sed 's/^/| /' conftest.$ac_ext >&5
46588 ac_header_compiler=no
46590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46591 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46592 echo "${ECHO_T}$ac_header_compiler" >&6
46594 # Is the header present?
46595 echo "$as_me:$LINENO: checking $ac_header presence" >&5
46596 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
46597 cat >conftest.$ac_ext <<_ACEOF
46600 cat confdefs.h >>conftest.$ac_ext
46601 cat >>conftest.$ac_ext <<_ACEOF
46602 /* end confdefs.h. */
46603 #include <$ac_header>
46605 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
46606 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
46608 grep -v '^ *+' conftest.er1 >conftest.err
46610 cat conftest.err >&5
46611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46612 (exit $ac_status); } >/dev/null; then
46613 if test -s conftest.err; then
46614 ac_cpp_err=$ac_c_preproc_warn_flag
46615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
46622 if test -z "$ac_cpp_err"; then
46623 ac_header_preproc=yes
46625 echo "$as_me: failed program was:" >&5
46626 sed 's/^/| /' conftest.$ac_ext >&5
46628 ac_header_preproc=no
46630 rm -f conftest.err conftest.$ac_ext
46631 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46632 echo "${ECHO_T}$ac_header_preproc" >&6
46634 # So? What about this header?
46635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46641 ac_header_preproc=yes
46644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
46647 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
46648 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46650 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
46651 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
46652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46654 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46658 ## ------------------------------------------ ##
46659 ## Report this to the AC_PACKAGE_NAME lists. ##
46660 ## ------------------------------------------ ##
46663 sed "s/^/$as_me: WARNING: /" >&2
46666 echo "$as_me:$LINENO: checking for $ac_header" >&5
46667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
46668 if eval "test \"\${$as_ac_Header+set}\" = set"; then
46669 echo $ECHO_N "(cached) $ECHO_C" >&6
46671 eval "$as_ac_Header=\$ac_header_preproc"
46673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
46674 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
46677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46678 cat >>confdefs.h <<_ACEOF
46679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46687 if test "$ol_with_tls" = "found" ; then
46689 ol_have_crypto_h=no
46691 if test "$ac_cv_header_openssl_bn_h" = "yes" \
46692 -o "$ac_cv_header_bn_h" = "yes" ; then
46696 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
46697 -o "$ac_cv_header_crypto_h" = "yes" ; then
46698 ol_have_crypto_h=yes
46701 if test "$ol_have_bn_h" = "yes" \
46702 -a "$ol_have_crypto_h" = "yes" ; then
46707 if test $ac_cv_header_gmp_h = yes ; then
46708 echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
46709 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6
46710 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
46711 echo $ECHO_N "(cached) $ECHO_C" >&6
46713 ac_check_lib_save_LIBS=$LIBS
46715 cat >conftest.$ac_ext <<_ACEOF
46718 cat confdefs.h >>conftest.$ac_ext
46719 cat >>conftest.$ac_ext <<_ACEOF
46720 /* end confdefs.h. */
46722 /* Override any gcc2 internal prototype to avoid an error. */
46726 /* We use char because int might match the return type of a gcc2
46727 builtin and then its argument prototype would still apply. */
46728 char __gmpz_add_ui ();
46737 rm -f conftest.$ac_objext conftest$ac_exeext
46738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
46739 (eval $ac_link) 2>conftest.er1
46741 grep -v '^ *+' conftest.er1 >conftest.err
46743 cat conftest.err >&5
46744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46745 (exit $ac_status); } &&
46746 { ac_try='test -z "$ac_c_werror_flag"
46747 || test ! -s conftest.err'
46748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46749 (eval $ac_try) 2>&5
46751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46752 (exit $ac_status); }; } &&
46753 { ac_try='test -s conftest$ac_exeext'
46754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46755 (eval $ac_try) 2>&5
46757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46758 (exit $ac_status); }; }; then
46759 ac_cv_lib_gmp___gmpz_add_ui=yes
46761 echo "$as_me: failed program was:" >&5
46762 sed 's/^/| /' conftest.$ac_ext >&5
46764 ac_cv_lib_gmp___gmpz_add_ui=no
46766 rm -f conftest.err conftest.$ac_objext \
46767 conftest$ac_exeext conftest.$ac_ext
46768 LIBS=$ac_check_lib_save_LIBS
46770 echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
46771 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6
46772 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
46778 if test $have_gmp = yes ; then
46783 echo "$as_me:$LINENO: checking for multiple precision support" >&5
46784 echo $ECHO_N "checking for multiple precision support... $ECHO_C" >&6
46786 ol_mp_support="none"
46787 case "$ol_with_multiple_precision" in
46789 if test "$ol_have_bignum" = "yes" ; then
46790 ol_mp_support="bignum"
46792 if test "$ol_have_gmp" = "yes" ; then
46793 ol_mp_support="gmp"
46798 if test "$ol_have_bignum" != "yes" ; then
46799 { { echo "$as_me:$LINENO: error: OpenSSL's BIGNUM not available" >&5
46800 echo "$as_me: error: OpenSSL's BIGNUM not available" >&2;}
46801 { (exit 1); exit 1; }; }
46803 ol_mp_support="bignum"
46806 if test "$ol_have_gmp" != "yes" ; then
46807 { { echo "$as_me:$LINENO: error: GMP not available" >&5
46808 echo "$as_me: error: GMP not available" >&2;}
46809 { (exit 1); exit 1; }; }
46811 ol_mp_support="gmp"
46814 if test "$ol_have_bignum" = "yes" ; then
46815 ol_mp_support="bignum"
46816 elif test "$ol_have_gmp" = "yes" ; then
46817 ol_mp_support="gmp"
46819 { { echo "$as_me:$LINENO: error: not available" >&5
46820 echo "$as_me: error: not available" >&2;}
46821 { (exit 1); exit 1; }; }
46826 case "$ol_mp_support" in
46829 cat >>confdefs.h <<\_ACEOF
46830 #define HAVE_BIGNUM 1
46836 cat >>confdefs.h <<\_ACEOF
46840 SLAPD_GMP_LIBS=-lgmp
46846 echo "$as_me:$LINENO: result: $ol_mp_support" >&5
46847 echo "${ECHO_T}$ol_mp_support" >&6
46851 echo "$as_me:$LINENO: checking for mode_t" >&5
46852 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
46853 if test "${ac_cv_type_mode_t+set}" = set; then
46854 echo $ECHO_N "(cached) $ECHO_C" >&6
46856 cat >conftest.$ac_ext <<_ACEOF
46859 cat confdefs.h >>conftest.$ac_ext
46860 cat >>conftest.$ac_ext <<_ACEOF
46861 /* end confdefs.h. */
46862 $ac_includes_default
46868 if (sizeof (mode_t))
46874 rm -f conftest.$ac_objext
46875 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46876 (eval $ac_compile) 2>conftest.er1
46878 grep -v '^ *+' conftest.er1 >conftest.err
46880 cat conftest.err >&5
46881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46882 (exit $ac_status); } &&
46883 { ac_try='test -z "$ac_c_werror_flag"
46884 || test ! -s conftest.err'
46885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46886 (eval $ac_try) 2>&5
46888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46889 (exit $ac_status); }; } &&
46890 { ac_try='test -s conftest.$ac_objext'
46891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46892 (eval $ac_try) 2>&5
46894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46895 (exit $ac_status); }; }; then
46896 ac_cv_type_mode_t=yes
46898 echo "$as_me: failed program was:" >&5
46899 sed 's/^/| /' conftest.$ac_ext >&5
46901 ac_cv_type_mode_t=no
46903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46905 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
46906 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
46907 if test $ac_cv_type_mode_t = yes; then
46911 cat >>confdefs.h <<_ACEOF
46917 echo "$as_me:$LINENO: checking for off_t" >&5
46918 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
46919 if test "${ac_cv_type_off_t+set}" = set; then
46920 echo $ECHO_N "(cached) $ECHO_C" >&6
46922 cat >conftest.$ac_ext <<_ACEOF
46925 cat confdefs.h >>conftest.$ac_ext
46926 cat >>conftest.$ac_ext <<_ACEOF
46927 /* end confdefs.h. */
46928 $ac_includes_default
46934 if (sizeof (off_t))
46940 rm -f conftest.$ac_objext
46941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
46942 (eval $ac_compile) 2>conftest.er1
46944 grep -v '^ *+' conftest.er1 >conftest.err
46946 cat conftest.err >&5
46947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46948 (exit $ac_status); } &&
46949 { ac_try='test -z "$ac_c_werror_flag"
46950 || test ! -s conftest.err'
46951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46952 (eval $ac_try) 2>&5
46954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46955 (exit $ac_status); }; } &&
46956 { ac_try='test -s conftest.$ac_objext'
46957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
46958 (eval $ac_try) 2>&5
46960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46961 (exit $ac_status); }; }; then
46962 ac_cv_type_off_t=yes
46964 echo "$as_me: failed program was:" >&5
46965 sed 's/^/| /' conftest.$ac_ext >&5
46967 ac_cv_type_off_t=no
46969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
46971 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
46972 echo "${ECHO_T}$ac_cv_type_off_t" >&6
46973 if test $ac_cv_type_off_t = yes; then
46977 cat >>confdefs.h <<_ACEOF
46983 echo "$as_me:$LINENO: checking for pid_t" >&5
46984 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
46985 if test "${ac_cv_type_pid_t+set}" = set; then
46986 echo $ECHO_N "(cached) $ECHO_C" >&6
46988 cat >conftest.$ac_ext <<_ACEOF
46991 cat confdefs.h >>conftest.$ac_ext
46992 cat >>conftest.$ac_ext <<_ACEOF
46993 /* end confdefs.h. */
46994 $ac_includes_default
47000 if (sizeof (pid_t))
47006 rm -f conftest.$ac_objext
47007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47008 (eval $ac_compile) 2>conftest.er1
47010 grep -v '^ *+' conftest.er1 >conftest.err
47012 cat conftest.err >&5
47013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47014 (exit $ac_status); } &&
47015 { ac_try='test -z "$ac_c_werror_flag"
47016 || test ! -s conftest.err'
47017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47018 (eval $ac_try) 2>&5
47020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47021 (exit $ac_status); }; } &&
47022 { ac_try='test -s conftest.$ac_objext'
47023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47024 (eval $ac_try) 2>&5
47026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47027 (exit $ac_status); }; }; then
47028 ac_cv_type_pid_t=yes
47030 echo "$as_me: failed program was:" >&5
47031 sed 's/^/| /' conftest.$ac_ext >&5
47033 ac_cv_type_pid_t=no
47035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47037 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
47038 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
47039 if test $ac_cv_type_pid_t = yes; then
47043 cat >>confdefs.h <<_ACEOF
47049 echo "$as_me:$LINENO: checking for ssize_t" >&5
47050 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
47051 if test "${ac_cv_type_ssize_t+set}" = set; then
47052 echo $ECHO_N "(cached) $ECHO_C" >&6
47054 cat >conftest.$ac_ext <<_ACEOF
47057 cat confdefs.h >>conftest.$ac_ext
47058 cat >>conftest.$ac_ext <<_ACEOF
47059 /* end confdefs.h. */
47060 $ac_includes_default
47066 if (sizeof (ssize_t))
47072 rm -f conftest.$ac_objext
47073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47074 (eval $ac_compile) 2>conftest.er1
47076 grep -v '^ *+' conftest.er1 >conftest.err
47078 cat conftest.err >&5
47079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47080 (exit $ac_status); } &&
47081 { ac_try='test -z "$ac_c_werror_flag"
47082 || test ! -s conftest.err'
47083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47084 (eval $ac_try) 2>&5
47086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47087 (exit $ac_status); }; } &&
47088 { ac_try='test -s conftest.$ac_objext'
47089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47090 (eval $ac_try) 2>&5
47092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47093 (exit $ac_status); }; }; then
47094 ac_cv_type_ssize_t=yes
47096 echo "$as_me: failed program was:" >&5
47097 sed 's/^/| /' conftest.$ac_ext >&5
47099 ac_cv_type_ssize_t=no
47101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47103 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
47104 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
47105 if test $ac_cv_type_ssize_t = yes; then
47109 cat >>confdefs.h <<_ACEOF
47110 #define ssize_t signed int
47115 echo "$as_me:$LINENO: checking for caddr_t" >&5
47116 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6
47117 if test "${ac_cv_type_caddr_t+set}" = set; then
47118 echo $ECHO_N "(cached) $ECHO_C" >&6
47120 cat >conftest.$ac_ext <<_ACEOF
47123 cat confdefs.h >>conftest.$ac_ext
47124 cat >>conftest.$ac_ext <<_ACEOF
47125 /* end confdefs.h. */
47126 $ac_includes_default
47132 if (sizeof (caddr_t))
47138 rm -f conftest.$ac_objext
47139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47140 (eval $ac_compile) 2>conftest.er1
47142 grep -v '^ *+' conftest.er1 >conftest.err
47144 cat conftest.err >&5
47145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47146 (exit $ac_status); } &&
47147 { ac_try='test -z "$ac_c_werror_flag"
47148 || test ! -s conftest.err'
47149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47150 (eval $ac_try) 2>&5
47152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47153 (exit $ac_status); }; } &&
47154 { ac_try='test -s conftest.$ac_objext'
47155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47156 (eval $ac_try) 2>&5
47158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47159 (exit $ac_status); }; }; then
47160 ac_cv_type_caddr_t=yes
47162 echo "$as_me: failed program was:" >&5
47163 sed 's/^/| /' conftest.$ac_ext >&5
47165 ac_cv_type_caddr_t=no
47167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47169 echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
47170 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6
47171 if test $ac_cv_type_caddr_t = yes; then
47175 cat >>confdefs.h <<_ACEOF
47176 #define caddr_t char *
47181 echo "$as_me:$LINENO: checking for size_t" >&5
47182 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
47183 if test "${ac_cv_type_size_t+set}" = set; then
47184 echo $ECHO_N "(cached) $ECHO_C" >&6
47186 cat >conftest.$ac_ext <<_ACEOF
47189 cat confdefs.h >>conftest.$ac_ext
47190 cat >>conftest.$ac_ext <<_ACEOF
47191 /* end confdefs.h. */
47192 $ac_includes_default
47198 if (sizeof (size_t))
47204 rm -f conftest.$ac_objext
47205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47206 (eval $ac_compile) 2>conftest.er1
47208 grep -v '^ *+' conftest.er1 >conftest.err
47210 cat conftest.err >&5
47211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47212 (exit $ac_status); } &&
47213 { ac_try='test -z "$ac_c_werror_flag"
47214 || test ! -s conftest.err'
47215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47216 (eval $ac_try) 2>&5
47218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47219 (exit $ac_status); }; } &&
47220 { ac_try='test -s conftest.$ac_objext'
47221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47222 (eval $ac_try) 2>&5
47224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47225 (exit $ac_status); }; }; then
47226 ac_cv_type_size_t=yes
47228 echo "$as_me: failed program was:" >&5
47229 sed 's/^/| /' conftest.$ac_ext >&5
47231 ac_cv_type_size_t=no
47233 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47235 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
47236 echo "${ECHO_T}$ac_cv_type_size_t" >&6
47237 if test $ac_cv_type_size_t = yes; then
47241 cat >>confdefs.h <<_ACEOF
47242 #define size_t unsigned
47248 echo "$as_me:$LINENO: checking for long long" >&5
47249 echo $ECHO_N "checking for long long... $ECHO_C" >&6
47250 if test "${ac_cv_type_long_long+set}" = set; then
47251 echo $ECHO_N "(cached) $ECHO_C" >&6
47253 cat >conftest.$ac_ext <<_ACEOF
47256 cat confdefs.h >>conftest.$ac_ext
47257 cat >>conftest.$ac_ext <<_ACEOF
47258 /* end confdefs.h. */
47259 $ac_includes_default
47263 if ((long long *) 0)
47265 if (sizeof (long long))
47271 rm -f conftest.$ac_objext
47272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47273 (eval $ac_compile) 2>conftest.er1
47275 grep -v '^ *+' conftest.er1 >conftest.err
47277 cat conftest.err >&5
47278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47279 (exit $ac_status); } &&
47280 { ac_try='test -z "$ac_c_werror_flag"
47281 || test ! -s conftest.err'
47282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47283 (eval $ac_try) 2>&5
47285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47286 (exit $ac_status); }; } &&
47287 { ac_try='test -s conftest.$ac_objext'
47288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47289 (eval $ac_try) 2>&5
47291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47292 (exit $ac_status); }; }; then
47293 ac_cv_type_long_long=yes
47295 echo "$as_me: failed program was:" >&5
47296 sed 's/^/| /' conftest.$ac_ext >&5
47298 ac_cv_type_long_long=no
47300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47302 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
47303 echo "${ECHO_T}$ac_cv_type_long_long" >&6
47304 if test $ac_cv_type_long_long = yes; then
47306 cat >>confdefs.h <<_ACEOF
47307 #define HAVE_LONG_LONG 1
47313 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
47314 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
47315 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
47316 echo $ECHO_N "(cached) $ECHO_C" >&6
47318 cat >conftest.$ac_ext <<_ACEOF
47321 cat confdefs.h >>conftest.$ac_ext
47322 cat >>conftest.$ac_ext <<_ACEOF
47323 /* end confdefs.h. */
47324 $ac_includes_default
47328 if ((ptrdiff_t *) 0)
47330 if (sizeof (ptrdiff_t))
47336 rm -f conftest.$ac_objext
47337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47338 (eval $ac_compile) 2>conftest.er1
47340 grep -v '^ *+' conftest.er1 >conftest.err
47342 cat conftest.err >&5
47343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47344 (exit $ac_status); } &&
47345 { ac_try='test -z "$ac_c_werror_flag"
47346 || test ! -s conftest.err'
47347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47348 (eval $ac_try) 2>&5
47350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47351 (exit $ac_status); }; } &&
47352 { ac_try='test -s conftest.$ac_objext'
47353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47354 (eval $ac_try) 2>&5
47356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47357 (exit $ac_status); }; }; then
47358 ac_cv_type_ptrdiff_t=yes
47360 echo "$as_me: failed program was:" >&5
47361 sed 's/^/| /' conftest.$ac_ext >&5
47363 ac_cv_type_ptrdiff_t=no
47365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47367 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
47368 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
47369 if test $ac_cv_type_ptrdiff_t = yes; then
47371 cat >>confdefs.h <<_ACEOF
47372 #define HAVE_PTRDIFF_T 1
47379 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
47380 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
47381 if test "${ac_cv_type_signal+set}" = set; then
47382 echo $ECHO_N "(cached) $ECHO_C" >&6
47384 cat >conftest.$ac_ext <<_ACEOF
47387 cat confdefs.h >>conftest.$ac_ext
47388 cat >>conftest.$ac_ext <<_ACEOF
47389 /* end confdefs.h. */
47390 #include <sys/types.h>
47391 #include <signal.h>
47396 extern "C" void (*signal (int, void (*)(int)))(int);
47398 void (*signal ()) ();
47409 rm -f conftest.$ac_objext
47410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47411 (eval $ac_compile) 2>conftest.er1
47413 grep -v '^ *+' conftest.er1 >conftest.err
47415 cat conftest.err >&5
47416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47417 (exit $ac_status); } &&
47418 { ac_try='test -z "$ac_c_werror_flag"
47419 || test ! -s conftest.err'
47420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47421 (eval $ac_try) 2>&5
47423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47424 (exit $ac_status); }; } &&
47425 { ac_try='test -s conftest.$ac_objext'
47426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47427 (eval $ac_try) 2>&5
47429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47430 (exit $ac_status); }; }; then
47431 ac_cv_type_signal=void
47433 echo "$as_me: failed program was:" >&5
47434 sed 's/^/| /' conftest.$ac_ext >&5
47436 ac_cv_type_signal=int
47438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47440 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
47441 echo "${ECHO_T}$ac_cv_type_signal" >&6
47443 cat >>confdefs.h <<_ACEOF
47444 #define RETSIGTYPE $ac_cv_type_signal
47448 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
47449 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
47450 if test "${ac_cv_type_uid_t+set}" = set; then
47451 echo $ECHO_N "(cached) $ECHO_C" >&6
47453 cat >conftest.$ac_ext <<_ACEOF
47456 cat confdefs.h >>conftest.$ac_ext
47457 cat >>conftest.$ac_ext <<_ACEOF
47458 /* end confdefs.h. */
47459 #include <sys/types.h>
47462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47463 $EGREP "uid_t" >/dev/null 2>&1; then
47464 ac_cv_type_uid_t=yes
47466 ac_cv_type_uid_t=no
47471 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
47472 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
47473 if test $ac_cv_type_uid_t = no; then
47475 cat >>confdefs.h <<\_ACEOF
47480 cat >>confdefs.h <<\_ACEOF
47486 echo "$as_me:$LINENO: checking for socklen_t" >&5
47487 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
47488 if test "${ol_cv_type_socklen_t+set}" = set; then
47489 echo $ECHO_N "(cached) $ECHO_C" >&6
47491 cat >conftest.$ac_ext <<_ACEOF
47494 cat confdefs.h >>conftest.$ac_ext
47495 cat >>conftest.$ac_ext <<_ACEOF
47496 /* end confdefs.h. */
47498 #ifdef HAVE_SYS_TYPES_H
47499 #include <sys/types.h>
47501 #ifdef HAVE_SYS_SOCKET_H
47502 #include <sys/socket.h>
47513 rm -f conftest.$ac_objext
47514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47515 (eval $ac_compile) 2>conftest.er1
47517 grep -v '^ *+' conftest.er1 >conftest.err
47519 cat conftest.err >&5
47520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47521 (exit $ac_status); } &&
47522 { ac_try='test -z "$ac_c_werror_flag"
47523 || test ! -s conftest.err'
47524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47525 (eval $ac_try) 2>&5
47527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47528 (exit $ac_status); }; } &&
47529 { ac_try='test -s conftest.$ac_objext'
47530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47531 (eval $ac_try) 2>&5
47533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47534 (exit $ac_status); }; }; then
47535 ol_cv_type_socklen_t=yes
47537 echo "$as_me: failed program was:" >&5
47538 sed 's/^/| /' conftest.$ac_ext >&5
47540 ol_cv_type_socklen_t=no
47542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47544 echo "$as_me:$LINENO: result: $ol_cv_type_socklen_t" >&5
47545 echo "${ECHO_T}$ol_cv_type_socklen_t" >&6
47546 if test $ol_cv_type_socklen_t = no; then
47548 cat >>confdefs.h <<\_ACEOF
47549 #define socklen_t int
47554 echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
47555 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6
47556 if test "${ol_cv_type_sig_atomic_t+set}" = set; then
47557 echo $ECHO_N "(cached) $ECHO_C" >&6
47559 cat >conftest.$ac_ext <<_ACEOF
47562 cat confdefs.h >>conftest.$ac_ext
47563 cat >>conftest.$ac_ext <<_ACEOF
47564 /* end confdefs.h. */
47565 #include <signal.h>
47569 sig_atomic_t atomic;
47574 rm -f conftest.$ac_objext
47575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47576 (eval $ac_compile) 2>conftest.er1
47578 grep -v '^ *+' conftest.er1 >conftest.err
47580 cat conftest.err >&5
47581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47582 (exit $ac_status); } &&
47583 { ac_try='test -z "$ac_c_werror_flag"
47584 || test ! -s conftest.err'
47585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47586 (eval $ac_try) 2>&5
47588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47589 (exit $ac_status); }; } &&
47590 { ac_try='test -s conftest.$ac_objext'
47591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47592 (eval $ac_try) 2>&5
47594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47595 (exit $ac_status); }; }; then
47596 ol_cv_type_sig_atomic_t=yes
47598 echo "$as_me: failed program was:" >&5
47599 sed 's/^/| /' conftest.$ac_ext >&5
47601 ol_cv_type_sig_atomic_t=no
47603 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47605 echo "$as_me:$LINENO: result: $ol_cv_type_sig_atomic_t" >&5
47606 echo "${ECHO_T}$ol_cv_type_sig_atomic_t" >&6
47607 if test $ol_cv_type_sig_atomic_t = no; then
47609 cat >>confdefs.h <<\_ACEOF
47610 #define sig_atomic_t int
47616 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
47617 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
47618 if test "${ac_cv_header_time+set}" = set; then
47619 echo $ECHO_N "(cached) $ECHO_C" >&6
47621 cat >conftest.$ac_ext <<_ACEOF
47624 cat confdefs.h >>conftest.$ac_ext
47625 cat >>conftest.$ac_ext <<_ACEOF
47626 /* end confdefs.h. */
47627 #include <sys/types.h>
47628 #include <sys/time.h>
47634 if ((struct tm *) 0)
47640 rm -f conftest.$ac_objext
47641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47642 (eval $ac_compile) 2>conftest.er1
47644 grep -v '^ *+' conftest.er1 >conftest.err
47646 cat conftest.err >&5
47647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47648 (exit $ac_status); } &&
47649 { ac_try='test -z "$ac_c_werror_flag"
47650 || test ! -s conftest.err'
47651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47652 (eval $ac_try) 2>&5
47654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47655 (exit $ac_status); }; } &&
47656 { ac_try='test -s conftest.$ac_objext'
47657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47658 (eval $ac_try) 2>&5
47660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47661 (exit $ac_status); }; }; then
47662 ac_cv_header_time=yes
47664 echo "$as_me: failed program was:" >&5
47665 sed 's/^/| /' conftest.$ac_ext >&5
47667 ac_cv_header_time=no
47669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47671 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
47672 echo "${ECHO_T}$ac_cv_header_time" >&6
47673 if test $ac_cv_header_time = yes; then
47675 cat >>confdefs.h <<\_ACEOF
47676 #define TIME_WITH_SYS_TIME 1
47681 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
47682 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
47683 if test "${ac_cv_struct_tm+set}" = set; then
47684 echo $ECHO_N "(cached) $ECHO_C" >&6
47686 cat >conftest.$ac_ext <<_ACEOF
47689 cat confdefs.h >>conftest.$ac_ext
47690 cat >>conftest.$ac_ext <<_ACEOF
47691 /* end confdefs.h. */
47692 #include <sys/types.h>
47698 struct tm *tp; tp->tm_sec;
47703 rm -f conftest.$ac_objext
47704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47705 (eval $ac_compile) 2>conftest.er1
47707 grep -v '^ *+' conftest.er1 >conftest.err
47709 cat conftest.err >&5
47710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47711 (exit $ac_status); } &&
47712 { ac_try='test -z "$ac_c_werror_flag"
47713 || test ! -s conftest.err'
47714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47715 (eval $ac_try) 2>&5
47717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47718 (exit $ac_status); }; } &&
47719 { ac_try='test -s conftest.$ac_objext'
47720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47721 (eval $ac_try) 2>&5
47723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47724 (exit $ac_status); }; }; then
47725 ac_cv_struct_tm=time.h
47727 echo "$as_me: failed program was:" >&5
47728 sed 's/^/| /' conftest.$ac_ext >&5
47730 ac_cv_struct_tm=sys/time.h
47732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47734 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
47735 echo "${ECHO_T}$ac_cv_struct_tm" >&6
47736 if test $ac_cv_struct_tm = sys/time.h; then
47738 cat >>confdefs.h <<\_ACEOF
47739 #define TM_IN_SYS_TIME 1
47744 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
47745 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
47746 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
47747 echo $ECHO_N "(cached) $ECHO_C" >&6
47749 cat >conftest.$ac_ext <<_ACEOF
47752 cat confdefs.h >>conftest.$ac_ext
47753 cat >>conftest.$ac_ext <<_ACEOF
47754 /* end confdefs.h. */
47755 $ac_includes_default
47759 static struct stat ac_aggr;
47760 if (ac_aggr.st_blksize)
47766 rm -f conftest.$ac_objext
47767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47768 (eval $ac_compile) 2>conftest.er1
47770 grep -v '^ *+' conftest.er1 >conftest.err
47772 cat conftest.err >&5
47773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47774 (exit $ac_status); } &&
47775 { ac_try='test -z "$ac_c_werror_flag"
47776 || test ! -s conftest.err'
47777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47778 (eval $ac_try) 2>&5
47780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47781 (exit $ac_status); }; } &&
47782 { ac_try='test -s conftest.$ac_objext'
47783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47784 (eval $ac_try) 2>&5
47786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47787 (exit $ac_status); }; }; then
47788 ac_cv_member_struct_stat_st_blksize=yes
47790 echo "$as_me: failed program was:" >&5
47791 sed 's/^/| /' conftest.$ac_ext >&5
47793 cat >conftest.$ac_ext <<_ACEOF
47796 cat confdefs.h >>conftest.$ac_ext
47797 cat >>conftest.$ac_ext <<_ACEOF
47798 /* end confdefs.h. */
47799 $ac_includes_default
47803 static struct stat ac_aggr;
47804 if (sizeof ac_aggr.st_blksize)
47810 rm -f conftest.$ac_objext
47811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47812 (eval $ac_compile) 2>conftest.er1
47814 grep -v '^ *+' conftest.er1 >conftest.err
47816 cat conftest.err >&5
47817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47818 (exit $ac_status); } &&
47819 { ac_try='test -z "$ac_c_werror_flag"
47820 || test ! -s conftest.err'
47821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47822 (eval $ac_try) 2>&5
47824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47825 (exit $ac_status); }; } &&
47826 { ac_try='test -s conftest.$ac_objext'
47827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47828 (eval $ac_try) 2>&5
47830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47831 (exit $ac_status); }; }; then
47832 ac_cv_member_struct_stat_st_blksize=yes
47834 echo "$as_me: failed program was:" >&5
47835 sed 's/^/| /' conftest.$ac_ext >&5
47837 ac_cv_member_struct_stat_st_blksize=no
47839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47843 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
47844 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
47845 if test $ac_cv_member_struct_stat_st_blksize = yes; then
47847 cat >>confdefs.h <<_ACEOF
47848 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
47854 echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
47855 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6
47856 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
47857 echo $ECHO_N "(cached) $ECHO_C" >&6
47859 cat >conftest.$ac_ext <<_ACEOF
47862 cat confdefs.h >>conftest.$ac_ext
47863 cat >>conftest.$ac_ext <<_ACEOF
47864 /* end confdefs.h. */
47865 $ac_includes_default
47869 static struct passwd ac_aggr;
47870 if (ac_aggr.pw_gecos)
47876 rm -f conftest.$ac_objext
47877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47878 (eval $ac_compile) 2>conftest.er1
47880 grep -v '^ *+' conftest.er1 >conftest.err
47882 cat conftest.err >&5
47883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47884 (exit $ac_status); } &&
47885 { ac_try='test -z "$ac_c_werror_flag"
47886 || test ! -s conftest.err'
47887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47888 (eval $ac_try) 2>&5
47890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47891 (exit $ac_status); }; } &&
47892 { ac_try='test -s conftest.$ac_objext'
47893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47894 (eval $ac_try) 2>&5
47896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47897 (exit $ac_status); }; }; then
47898 ac_cv_member_struct_passwd_pw_gecos=yes
47900 echo "$as_me: failed program was:" >&5
47901 sed 's/^/| /' conftest.$ac_ext >&5
47903 cat >conftest.$ac_ext <<_ACEOF
47906 cat confdefs.h >>conftest.$ac_ext
47907 cat >>conftest.$ac_ext <<_ACEOF
47908 /* end confdefs.h. */
47909 $ac_includes_default
47913 static struct passwd ac_aggr;
47914 if (sizeof ac_aggr.pw_gecos)
47920 rm -f conftest.$ac_objext
47921 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47922 (eval $ac_compile) 2>conftest.er1
47924 grep -v '^ *+' conftest.er1 >conftest.err
47926 cat conftest.err >&5
47927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47928 (exit $ac_status); } &&
47929 { ac_try='test -z "$ac_c_werror_flag"
47930 || test ! -s conftest.err'
47931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47932 (eval $ac_try) 2>&5
47934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47935 (exit $ac_status); }; } &&
47936 { ac_try='test -s conftest.$ac_objext'
47937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47938 (eval $ac_try) 2>&5
47940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47941 (exit $ac_status); }; }; then
47942 ac_cv_member_struct_passwd_pw_gecos=yes
47944 echo "$as_me: failed program was:" >&5
47945 sed 's/^/| /' conftest.$ac_ext >&5
47947 ac_cv_member_struct_passwd_pw_gecos=no
47949 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47951 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
47953 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
47954 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6
47955 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
47957 cat >>confdefs.h <<_ACEOF
47958 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
47964 echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
47965 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6
47966 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
47967 echo $ECHO_N "(cached) $ECHO_C" >&6
47969 cat >conftest.$ac_ext <<_ACEOF
47972 cat confdefs.h >>conftest.$ac_ext
47973 cat >>conftest.$ac_ext <<_ACEOF
47974 /* end confdefs.h. */
47975 $ac_includes_default
47979 static struct passwd ac_aggr;
47980 if (ac_aggr.pw_passwd)
47986 rm -f conftest.$ac_objext
47987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
47988 (eval $ac_compile) 2>conftest.er1
47990 grep -v '^ *+' conftest.er1 >conftest.err
47992 cat conftest.err >&5
47993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47994 (exit $ac_status); } &&
47995 { ac_try='test -z "$ac_c_werror_flag"
47996 || test ! -s conftest.err'
47997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
47998 (eval $ac_try) 2>&5
48000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48001 (exit $ac_status); }; } &&
48002 { ac_try='test -s conftest.$ac_objext'
48003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48004 (eval $ac_try) 2>&5
48006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48007 (exit $ac_status); }; }; then
48008 ac_cv_member_struct_passwd_pw_passwd=yes
48010 echo "$as_me: failed program was:" >&5
48011 sed 's/^/| /' conftest.$ac_ext >&5
48013 cat >conftest.$ac_ext <<_ACEOF
48016 cat confdefs.h >>conftest.$ac_ext
48017 cat >>conftest.$ac_ext <<_ACEOF
48018 /* end confdefs.h. */
48019 $ac_includes_default
48023 static struct passwd ac_aggr;
48024 if (sizeof ac_aggr.pw_passwd)
48030 rm -f conftest.$ac_objext
48031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48032 (eval $ac_compile) 2>conftest.er1
48034 grep -v '^ *+' conftest.er1 >conftest.err
48036 cat conftest.err >&5
48037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48038 (exit $ac_status); } &&
48039 { ac_try='test -z "$ac_c_werror_flag"
48040 || test ! -s conftest.err'
48041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48042 (eval $ac_try) 2>&5
48044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48045 (exit $ac_status); }; } &&
48046 { ac_try='test -s conftest.$ac_objext'
48047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48048 (eval $ac_try) 2>&5
48050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48051 (exit $ac_status); }; }; then
48052 ac_cv_member_struct_passwd_pw_passwd=yes
48054 echo "$as_me: failed program was:" >&5
48055 sed 's/^/| /' conftest.$ac_ext >&5
48057 ac_cv_member_struct_passwd_pw_passwd=no
48059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48063 echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
48064 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6
48065 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
48067 cat >>confdefs.h <<_ACEOF
48068 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
48075 echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
48076 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6
48077 if test "${ol_cv_c_upper_lower+set}" = set; then
48078 echo $ECHO_N "(cached) $ECHO_C" >&6
48081 if test "$cross_compiling" = yes; then
48082 ol_cv_c_upper_lower=safe
48084 cat >conftest.$ac_ext <<_ACEOF
48087 cat confdefs.h >>conftest.$ac_ext
48088 cat >>conftest.$ac_ext <<_ACEOF
48089 /* end confdefs.h. */
48094 if ('C' == toupper('C'))
48100 rm -f conftest$ac_exeext
48101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48102 (eval $ac_link) 2>&5
48104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48107 (eval $ac_try) 2>&5
48109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48110 (exit $ac_status); }; }; then
48111 ol_cv_c_upper_lower=no
48113 echo "$as_me: program exited with status $ac_status" >&5
48114 echo "$as_me: failed program was:" >&5
48115 sed 's/^/| /' conftest.$ac_ext >&5
48117 ( exit $ac_status )
48118 ol_cv_c_upper_lower=yes
48120 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48123 echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
48124 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6
48125 if test $ol_cv_c_upper_lower != no ; then
48127 cat >>confdefs.h <<\_ACEOF
48128 #define C_UPPER_LOWER 1
48133 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
48134 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
48135 if test "${ac_cv_c_const+set}" = set; then
48136 echo $ECHO_N "(cached) $ECHO_C" >&6
48138 cat >conftest.$ac_ext <<_ACEOF
48141 cat confdefs.h >>conftest.$ac_ext
48142 cat >>conftest.$ac_ext <<_ACEOF
48143 /* end confdefs.h. */
48148 /* FIXME: Include the comments suggested by Paul. */
48149 #ifndef __cplusplus
48150 /* Ultrix mips cc rejects this. */
48151 typedef int charset[2];
48153 /* SunOS 4.1.1 cc rejects this. */
48154 char const *const *ccp;
48156 /* NEC SVR4.0.2 mips cc rejects this. */
48157 struct point {int x, y;};
48158 static struct point const zero = {0,0};
48159 /* AIX XL C 1.02.0.0 rejects this.
48160 It does not let you subtract one const X* pointer from another in
48161 an arm of an if-expression whose if-part is not a constant
48163 const char *g = "string";
48164 ccp = &g + (g ? g-g : 0);
48165 /* HPUX 7.0 cc rejects these. */
48168 ccp = (char const *const *) p;
48169 { /* SCO 3.2v4 cc rejects this. */
48171 char const *s = 0 ? (char *) 0 : (char const *) 0;
48175 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
48176 int x[] = {25, 17};
48177 const int *foo = &x[0];
48180 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
48181 typedef const int *iptr;
48185 { /* AIX XL C 1.02.0.0 rejects this saying
48186 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
48187 struct s { int j; const int *ap[3]; };
48188 struct s *b; b->j = 5;
48190 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
48191 const int foo = 10;
48199 rm -f conftest.$ac_objext
48200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48201 (eval $ac_compile) 2>conftest.er1
48203 grep -v '^ *+' conftest.er1 >conftest.err
48205 cat conftest.err >&5
48206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48207 (exit $ac_status); } &&
48208 { ac_try='test -z "$ac_c_werror_flag"
48209 || test ! -s conftest.err'
48210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48211 (eval $ac_try) 2>&5
48213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48214 (exit $ac_status); }; } &&
48215 { ac_try='test -s conftest.$ac_objext'
48216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48217 (eval $ac_try) 2>&5
48219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48220 (exit $ac_status); }; }; then
48223 echo "$as_me: failed program was:" >&5
48224 sed 's/^/| /' conftest.$ac_ext >&5
48228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48230 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
48231 echo "${ECHO_T}$ac_cv_c_const" >&6
48232 if test $ac_cv_c_const = no; then
48234 cat >>confdefs.h <<\_ACEOF
48240 echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
48241 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6
48242 if test "${ol_cv_c_volatile+set}" = set; then
48243 echo $ECHO_N "(cached) $ECHO_C" >&6
48245 cat >conftest.$ac_ext <<_ACEOF
48248 cat confdefs.h >>conftest.$ac_ext
48249 cat >>conftest.$ac_ext <<_ACEOF
48250 /* end confdefs.h. */
48255 volatile int a; int * volatile b = x ? &y : &z;
48256 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
48262 rm -f conftest.$ac_objext
48263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48264 (eval $ac_compile) 2>conftest.er1
48266 grep -v '^ *+' conftest.er1 >conftest.err
48268 cat conftest.err >&5
48269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48270 (exit $ac_status); } &&
48271 { ac_try='test -z "$ac_c_werror_flag"
48272 || test ! -s conftest.err'
48273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48274 (eval $ac_try) 2>&5
48276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48277 (exit $ac_status); }; } &&
48278 { ac_try='test -s conftest.$ac_objext'
48279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48280 (eval $ac_try) 2>&5
48282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48283 (exit $ac_status); }; }; then
48284 ol_cv_c_volatile=yes
48286 echo "$as_me: failed program was:" >&5
48287 sed 's/^/| /' conftest.$ac_ext >&5
48289 ol_cv_c_volatile=no
48291 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48293 echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
48294 echo "${ECHO_T}$ol_cv_c_volatile" >&6
48295 if test $ol_cv_c_volatile = yes; then
48299 cat >>confdefs.h <<\_ACEOF
48306 if test $cross_compiling = yes ; then
48307 { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
48308 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
48310 cat >>confdefs.h <<\_ACEOF
48311 #define CROSS_COMPILING 1
48315 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
48316 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
48317 if test "${ac_cv_c_bigendian+set}" = set; then
48318 echo $ECHO_N "(cached) $ECHO_C" >&6
48320 # See if sys/param.h defines the BYTE_ORDER macro.
48321 cat >conftest.$ac_ext <<_ACEOF
48324 cat confdefs.h >>conftest.$ac_ext
48325 cat >>conftest.$ac_ext <<_ACEOF
48326 /* end confdefs.h. */
48327 #include <sys/types.h>
48328 #include <sys/param.h>
48333 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
48334 bogus endian macros
48341 rm -f conftest.$ac_objext
48342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48343 (eval $ac_compile) 2>conftest.er1
48345 grep -v '^ *+' conftest.er1 >conftest.err
48347 cat conftest.err >&5
48348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48349 (exit $ac_status); } &&
48350 { ac_try='test -z "$ac_c_werror_flag"
48351 || test ! -s conftest.err'
48352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48353 (eval $ac_try) 2>&5
48355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48356 (exit $ac_status); }; } &&
48357 { ac_try='test -s conftest.$ac_objext'
48358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48359 (eval $ac_try) 2>&5
48361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48362 (exit $ac_status); }; }; then
48363 # It does; now see whether it defined to BIG_ENDIAN or not.
48364 cat >conftest.$ac_ext <<_ACEOF
48367 cat confdefs.h >>conftest.$ac_ext
48368 cat >>conftest.$ac_ext <<_ACEOF
48369 /* end confdefs.h. */
48370 #include <sys/types.h>
48371 #include <sys/param.h>
48376 #if BYTE_ORDER != BIG_ENDIAN
48384 rm -f conftest.$ac_objext
48385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48386 (eval $ac_compile) 2>conftest.er1
48388 grep -v '^ *+' conftest.er1 >conftest.err
48390 cat conftest.err >&5
48391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48392 (exit $ac_status); } &&
48393 { ac_try='test -z "$ac_c_werror_flag"
48394 || test ! -s conftest.err'
48395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48396 (eval $ac_try) 2>&5
48398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48399 (exit $ac_status); }; } &&
48400 { ac_try='test -s conftest.$ac_objext'
48401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48402 (eval $ac_try) 2>&5
48404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48405 (exit $ac_status); }; }; then
48406 ac_cv_c_bigendian=yes
48408 echo "$as_me: failed program was:" >&5
48409 sed 's/^/| /' conftest.$ac_ext >&5
48411 ac_cv_c_bigendian=no
48413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48415 echo "$as_me: failed program was:" >&5
48416 sed 's/^/| /' conftest.$ac_ext >&5
48418 # It does not; compile a test program.
48419 if test "$cross_compiling" = yes; then
48420 # try to guess the endianness by grepping values into an object file
48421 ac_cv_c_bigendian=unknown
48422 cat >conftest.$ac_ext <<_ACEOF
48425 cat confdefs.h >>conftest.$ac_ext
48426 cat >>conftest.$ac_ext <<_ACEOF
48427 /* end confdefs.h. */
48428 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
48429 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
48430 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
48431 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
48432 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
48433 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
48437 _ascii (); _ebcdic ();
48442 rm -f conftest.$ac_objext
48443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48444 (eval $ac_compile) 2>conftest.er1
48446 grep -v '^ *+' conftest.er1 >conftest.err
48448 cat conftest.err >&5
48449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48450 (exit $ac_status); } &&
48451 { ac_try='test -z "$ac_c_werror_flag"
48452 || test ! -s conftest.err'
48453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48454 (eval $ac_try) 2>&5
48456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48457 (exit $ac_status); }; } &&
48458 { ac_try='test -s conftest.$ac_objext'
48459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48460 (eval $ac_try) 2>&5
48462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48463 (exit $ac_status); }; }; then
48464 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
48465 ac_cv_c_bigendian=yes
48467 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
48468 if test "$ac_cv_c_bigendian" = unknown; then
48469 ac_cv_c_bigendian=no
48471 # finding both strings is unlikely to happen, but who knows?
48472 ac_cv_c_bigendian=unknown
48476 echo "$as_me: failed program was:" >&5
48477 sed 's/^/| /' conftest.$ac_ext >&5
48480 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48482 cat >conftest.$ac_ext <<_ACEOF
48485 cat confdefs.h >>conftest.$ac_ext
48486 cat >>conftest.$ac_ext <<_ACEOF
48487 /* end confdefs.h. */
48491 /* Are we little or big endian? From Harbison&Steele. */
48495 char c[sizeof (long)];
48498 exit (u.c[sizeof (long) - 1] == 1);
48501 rm -f conftest$ac_exeext
48502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48503 (eval $ac_link) 2>&5
48505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48506 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48508 (eval $ac_try) 2>&5
48510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48511 (exit $ac_status); }; }; then
48512 ac_cv_c_bigendian=no
48514 echo "$as_me: program exited with status $ac_status" >&5
48515 echo "$as_me: failed program was:" >&5
48516 sed 's/^/| /' conftest.$ac_ext >&5
48518 ( exit $ac_status )
48519 ac_cv_c_bigendian=yes
48521 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48526 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
48527 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
48528 case $ac_cv_c_bigendian in
48531 cat >>confdefs.h <<\_ACEOF
48532 #define WORDS_BIGENDIAN 1
48538 { { echo "$as_me:$LINENO: error: unknown endianness
48539 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
48540 echo "$as_me: error: unknown endianness
48541 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
48542 { (exit 1); exit 1; }; } ;;
48547 echo "$as_me:$LINENO: checking for short" >&5
48548 echo $ECHO_N "checking for short... $ECHO_C" >&6
48549 if test "${ac_cv_type_short+set}" = set; then
48550 echo $ECHO_N "(cached) $ECHO_C" >&6
48552 cat >conftest.$ac_ext <<_ACEOF
48555 cat confdefs.h >>conftest.$ac_ext
48556 cat >>conftest.$ac_ext <<_ACEOF
48557 /* end confdefs.h. */
48558 $ac_includes_default
48564 if (sizeof (short))
48570 rm -f conftest.$ac_objext
48571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48572 (eval $ac_compile) 2>conftest.er1
48574 grep -v '^ *+' conftest.er1 >conftest.err
48576 cat conftest.err >&5
48577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48578 (exit $ac_status); } &&
48579 { ac_try='test -z "$ac_c_werror_flag"
48580 || test ! -s conftest.err'
48581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48582 (eval $ac_try) 2>&5
48584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48585 (exit $ac_status); }; } &&
48586 { ac_try='test -s conftest.$ac_objext'
48587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48588 (eval $ac_try) 2>&5
48590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48591 (exit $ac_status); }; }; then
48592 ac_cv_type_short=yes
48594 echo "$as_me: failed program was:" >&5
48595 sed 's/^/| /' conftest.$ac_ext >&5
48597 ac_cv_type_short=no
48599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48601 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
48602 echo "${ECHO_T}$ac_cv_type_short" >&6
48604 echo "$as_me:$LINENO: checking size of short" >&5
48605 echo $ECHO_N "checking size of short... $ECHO_C" >&6
48606 if test "${ac_cv_sizeof_short+set}" = set; then
48607 echo $ECHO_N "(cached) $ECHO_C" >&6
48609 if test "$ac_cv_type_short" = yes; then
48610 # The cast to unsigned long works around a bug in the HP C Compiler
48611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
48612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
48613 # This bug is HP SR number 8606223364.
48614 if test "$cross_compiling" = yes; then
48615 # Depending upon the size, compute the lo and hi bounds.
48616 cat >conftest.$ac_ext <<_ACEOF
48619 cat confdefs.h >>conftest.$ac_ext
48620 cat >>conftest.$ac_ext <<_ACEOF
48621 /* end confdefs.h. */
48622 $ac_includes_default
48626 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
48633 rm -f conftest.$ac_objext
48634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48635 (eval $ac_compile) 2>conftest.er1
48637 grep -v '^ *+' conftest.er1 >conftest.err
48639 cat conftest.err >&5
48640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48641 (exit $ac_status); } &&
48642 { ac_try='test -z "$ac_c_werror_flag"
48643 || test ! -s conftest.err'
48644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48645 (eval $ac_try) 2>&5
48647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48648 (exit $ac_status); }; } &&
48649 { ac_try='test -s conftest.$ac_objext'
48650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48651 (eval $ac_try) 2>&5
48653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48654 (exit $ac_status); }; }; then
48657 cat >conftest.$ac_ext <<_ACEOF
48660 cat confdefs.h >>conftest.$ac_ext
48661 cat >>conftest.$ac_ext <<_ACEOF
48662 /* end confdefs.h. */
48663 $ac_includes_default
48667 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
48674 rm -f conftest.$ac_objext
48675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48676 (eval $ac_compile) 2>conftest.er1
48678 grep -v '^ *+' conftest.er1 >conftest.err
48680 cat conftest.err >&5
48681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48682 (exit $ac_status); } &&
48683 { ac_try='test -z "$ac_c_werror_flag"
48684 || test ! -s conftest.err'
48685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48686 (eval $ac_try) 2>&5
48688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48689 (exit $ac_status); }; } &&
48690 { ac_try='test -s conftest.$ac_objext'
48691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48692 (eval $ac_try) 2>&5
48694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48695 (exit $ac_status); }; }; then
48696 ac_hi=$ac_mid; break
48698 echo "$as_me: failed program was:" >&5
48699 sed 's/^/| /' conftest.$ac_ext >&5
48701 ac_lo=`expr $ac_mid + 1`
48702 if test $ac_lo -le $ac_mid; then
48706 ac_mid=`expr 2 '*' $ac_mid + 1`
48708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48711 echo "$as_me: failed program was:" >&5
48712 sed 's/^/| /' conftest.$ac_ext >&5
48714 cat >conftest.$ac_ext <<_ACEOF
48717 cat confdefs.h >>conftest.$ac_ext
48718 cat >>conftest.$ac_ext <<_ACEOF
48719 /* end confdefs.h. */
48720 $ac_includes_default
48724 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
48731 rm -f conftest.$ac_objext
48732 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48733 (eval $ac_compile) 2>conftest.er1
48735 grep -v '^ *+' conftest.er1 >conftest.err
48737 cat conftest.err >&5
48738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48739 (exit $ac_status); } &&
48740 { ac_try='test -z "$ac_c_werror_flag"
48741 || test ! -s conftest.err'
48742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48743 (eval $ac_try) 2>&5
48745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48746 (exit $ac_status); }; } &&
48747 { ac_try='test -s conftest.$ac_objext'
48748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48749 (eval $ac_try) 2>&5
48751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48752 (exit $ac_status); }; }; then
48755 cat >conftest.$ac_ext <<_ACEOF
48758 cat confdefs.h >>conftest.$ac_ext
48759 cat >>conftest.$ac_ext <<_ACEOF
48760 /* end confdefs.h. */
48761 $ac_includes_default
48765 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
48772 rm -f conftest.$ac_objext
48773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48774 (eval $ac_compile) 2>conftest.er1
48776 grep -v '^ *+' conftest.er1 >conftest.err
48778 cat conftest.err >&5
48779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48780 (exit $ac_status); } &&
48781 { ac_try='test -z "$ac_c_werror_flag"
48782 || test ! -s conftest.err'
48783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48784 (eval $ac_try) 2>&5
48786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48787 (exit $ac_status); }; } &&
48788 { ac_try='test -s conftest.$ac_objext'
48789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48790 (eval $ac_try) 2>&5
48792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48793 (exit $ac_status); }; }; then
48794 ac_lo=$ac_mid; break
48796 echo "$as_me: failed program was:" >&5
48797 sed 's/^/| /' conftest.$ac_ext >&5
48799 ac_hi=`expr '(' $ac_mid ')' - 1`
48800 if test $ac_mid -le $ac_hi; then
48804 ac_mid=`expr 2 '*' $ac_mid`
48806 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48809 echo "$as_me: failed program was:" >&5
48810 sed 's/^/| /' conftest.$ac_ext >&5
48814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48817 # Binary search between lo and hi bounds.
48818 while test "x$ac_lo" != "x$ac_hi"; do
48819 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
48820 cat >conftest.$ac_ext <<_ACEOF
48823 cat confdefs.h >>conftest.$ac_ext
48824 cat >>conftest.$ac_ext <<_ACEOF
48825 /* end confdefs.h. */
48826 $ac_includes_default
48830 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
48837 rm -f conftest.$ac_objext
48838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48839 (eval $ac_compile) 2>conftest.er1
48841 grep -v '^ *+' conftest.er1 >conftest.err
48843 cat conftest.err >&5
48844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48845 (exit $ac_status); } &&
48846 { ac_try='test -z "$ac_c_werror_flag"
48847 || test ! -s conftest.err'
48848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48849 (eval $ac_try) 2>&5
48851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48852 (exit $ac_status); }; } &&
48853 { ac_try='test -s conftest.$ac_objext'
48854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48855 (eval $ac_try) 2>&5
48857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48858 (exit $ac_status); }; }; then
48861 echo "$as_me: failed program was:" >&5
48862 sed 's/^/| /' conftest.$ac_ext >&5
48864 ac_lo=`expr '(' $ac_mid ')' + 1`
48866 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
48869 ?*) ac_cv_sizeof_short=$ac_lo;;
48870 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
48871 See \`config.log' for more details." >&5
48872 echo "$as_me: error: cannot compute sizeof (short), 77
48873 See \`config.log' for more details." >&2;}
48874 { (exit 1); exit 1; }; } ;;
48877 if test "$cross_compiling" = yes; then
48878 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
48879 See \`config.log' for more details." >&5
48880 echo "$as_me: error: cannot run test program while cross compiling
48881 See \`config.log' for more details." >&2;}
48882 { (exit 1); exit 1; }; }
48884 cat >conftest.$ac_ext <<_ACEOF
48887 cat confdefs.h >>conftest.$ac_ext
48888 cat >>conftest.$ac_ext <<_ACEOF
48889 /* end confdefs.h. */
48890 $ac_includes_default
48891 long longval () { return (long) (sizeof (short)); }
48892 unsigned long ulongval () { return (long) (sizeof (short)); }
48894 #include <stdlib.h>
48899 FILE *f = fopen ("conftest.val", "w");
48902 if (((long) (sizeof (short))) < 0)
48904 long i = longval ();
48905 if (i != ((long) (sizeof (short))))
48907 fprintf (f, "%ld\n", i);
48911 unsigned long i = ulongval ();
48912 if (i != ((long) (sizeof (short))))
48914 fprintf (f, "%lu\n", i);
48916 exit (ferror (f) || fclose (f) != 0);
48922 rm -f conftest$ac_exeext
48923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
48924 (eval $ac_link) 2>&5
48926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48929 (eval $ac_try) 2>&5
48931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48932 (exit $ac_status); }; }; then
48933 ac_cv_sizeof_short=`cat conftest.val`
48935 echo "$as_me: program exited with status $ac_status" >&5
48936 echo "$as_me: failed program was:" >&5
48937 sed 's/^/| /' conftest.$ac_ext >&5
48939 ( exit $ac_status )
48940 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
48941 See \`config.log' for more details." >&5
48942 echo "$as_me: error: cannot compute sizeof (short), 77
48943 See \`config.log' for more details." >&2;}
48944 { (exit 1); exit 1; }; }
48946 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48951 ac_cv_sizeof_short=0
48954 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
48955 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
48956 cat >>confdefs.h <<_ACEOF
48957 #define SIZEOF_SHORT $ac_cv_sizeof_short
48961 echo "$as_me:$LINENO: checking for int" >&5
48962 echo $ECHO_N "checking for int... $ECHO_C" >&6
48963 if test "${ac_cv_type_int+set}" = set; then
48964 echo $ECHO_N "(cached) $ECHO_C" >&6
48966 cat >conftest.$ac_ext <<_ACEOF
48969 cat confdefs.h >>conftest.$ac_ext
48970 cat >>conftest.$ac_ext <<_ACEOF
48971 /* end confdefs.h. */
48972 $ac_includes_default
48984 rm -f conftest.$ac_objext
48985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
48986 (eval $ac_compile) 2>conftest.er1
48988 grep -v '^ *+' conftest.er1 >conftest.err
48990 cat conftest.err >&5
48991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48992 (exit $ac_status); } &&
48993 { ac_try='test -z "$ac_c_werror_flag"
48994 || test ! -s conftest.err'
48995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
48996 (eval $ac_try) 2>&5
48998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48999 (exit $ac_status); }; } &&
49000 { ac_try='test -s conftest.$ac_objext'
49001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49002 (eval $ac_try) 2>&5
49004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49005 (exit $ac_status); }; }; then
49008 echo "$as_me: failed program was:" >&5
49009 sed 's/^/| /' conftest.$ac_ext >&5
49013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49015 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
49016 echo "${ECHO_T}$ac_cv_type_int" >&6
49018 echo "$as_me:$LINENO: checking size of int" >&5
49019 echo $ECHO_N "checking size of int... $ECHO_C" >&6
49020 if test "${ac_cv_sizeof_int+set}" = set; then
49021 echo $ECHO_N "(cached) $ECHO_C" >&6
49023 if test "$ac_cv_type_int" = yes; then
49024 # The cast to unsigned long works around a bug in the HP C Compiler
49025 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49026 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49027 # This bug is HP SR number 8606223364.
49028 if test "$cross_compiling" = yes; then
49029 # Depending upon the size, compute the lo and hi bounds.
49030 cat >conftest.$ac_ext <<_ACEOF
49033 cat confdefs.h >>conftest.$ac_ext
49034 cat >>conftest.$ac_ext <<_ACEOF
49035 /* end confdefs.h. */
49036 $ac_includes_default
49040 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
49047 rm -f conftest.$ac_objext
49048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49049 (eval $ac_compile) 2>conftest.er1
49051 grep -v '^ *+' conftest.er1 >conftest.err
49053 cat conftest.err >&5
49054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49055 (exit $ac_status); } &&
49056 { ac_try='test -z "$ac_c_werror_flag"
49057 || test ! -s conftest.err'
49058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49059 (eval $ac_try) 2>&5
49061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49062 (exit $ac_status); }; } &&
49063 { ac_try='test -s conftest.$ac_objext'
49064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49065 (eval $ac_try) 2>&5
49067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49068 (exit $ac_status); }; }; then
49071 cat >conftest.$ac_ext <<_ACEOF
49074 cat confdefs.h >>conftest.$ac_ext
49075 cat >>conftest.$ac_ext <<_ACEOF
49076 /* end confdefs.h. */
49077 $ac_includes_default
49081 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49088 rm -f conftest.$ac_objext
49089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49090 (eval $ac_compile) 2>conftest.er1
49092 grep -v '^ *+' conftest.er1 >conftest.err
49094 cat conftest.err >&5
49095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49096 (exit $ac_status); } &&
49097 { ac_try='test -z "$ac_c_werror_flag"
49098 || test ! -s conftest.err'
49099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49100 (eval $ac_try) 2>&5
49102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49103 (exit $ac_status); }; } &&
49104 { ac_try='test -s conftest.$ac_objext'
49105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49106 (eval $ac_try) 2>&5
49108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49109 (exit $ac_status); }; }; then
49110 ac_hi=$ac_mid; break
49112 echo "$as_me: failed program was:" >&5
49113 sed 's/^/| /' conftest.$ac_ext >&5
49115 ac_lo=`expr $ac_mid + 1`
49116 if test $ac_lo -le $ac_mid; then
49120 ac_mid=`expr 2 '*' $ac_mid + 1`
49122 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49125 echo "$as_me: failed program was:" >&5
49126 sed 's/^/| /' conftest.$ac_ext >&5
49128 cat >conftest.$ac_ext <<_ACEOF
49131 cat confdefs.h >>conftest.$ac_ext
49132 cat >>conftest.$ac_ext <<_ACEOF
49133 /* end confdefs.h. */
49134 $ac_includes_default
49138 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
49145 rm -f conftest.$ac_objext
49146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49147 (eval $ac_compile) 2>conftest.er1
49149 grep -v '^ *+' conftest.er1 >conftest.err
49151 cat conftest.err >&5
49152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49153 (exit $ac_status); } &&
49154 { ac_try='test -z "$ac_c_werror_flag"
49155 || test ! -s conftest.err'
49156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49157 (eval $ac_try) 2>&5
49159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49160 (exit $ac_status); }; } &&
49161 { ac_try='test -s conftest.$ac_objext'
49162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49163 (eval $ac_try) 2>&5
49165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49166 (exit $ac_status); }; }; then
49169 cat >conftest.$ac_ext <<_ACEOF
49172 cat confdefs.h >>conftest.$ac_ext
49173 cat >>conftest.$ac_ext <<_ACEOF
49174 /* end confdefs.h. */
49175 $ac_includes_default
49179 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
49186 rm -f conftest.$ac_objext
49187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49188 (eval $ac_compile) 2>conftest.er1
49190 grep -v '^ *+' conftest.er1 >conftest.err
49192 cat conftest.err >&5
49193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49194 (exit $ac_status); } &&
49195 { ac_try='test -z "$ac_c_werror_flag"
49196 || test ! -s conftest.err'
49197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49198 (eval $ac_try) 2>&5
49200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49201 (exit $ac_status); }; } &&
49202 { ac_try='test -s conftest.$ac_objext'
49203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49204 (eval $ac_try) 2>&5
49206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49207 (exit $ac_status); }; }; then
49208 ac_lo=$ac_mid; break
49210 echo "$as_me: failed program was:" >&5
49211 sed 's/^/| /' conftest.$ac_ext >&5
49213 ac_hi=`expr '(' $ac_mid ')' - 1`
49214 if test $ac_mid -le $ac_hi; then
49218 ac_mid=`expr 2 '*' $ac_mid`
49220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49223 echo "$as_me: failed program was:" >&5
49224 sed 's/^/| /' conftest.$ac_ext >&5
49228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49231 # Binary search between lo and hi bounds.
49232 while test "x$ac_lo" != "x$ac_hi"; do
49233 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49234 cat >conftest.$ac_ext <<_ACEOF
49237 cat confdefs.h >>conftest.$ac_ext
49238 cat >>conftest.$ac_ext <<_ACEOF
49239 /* end confdefs.h. */
49240 $ac_includes_default
49244 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
49251 rm -f conftest.$ac_objext
49252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49253 (eval $ac_compile) 2>conftest.er1
49255 grep -v '^ *+' conftest.er1 >conftest.err
49257 cat conftest.err >&5
49258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49259 (exit $ac_status); } &&
49260 { ac_try='test -z "$ac_c_werror_flag"
49261 || test ! -s conftest.err'
49262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49263 (eval $ac_try) 2>&5
49265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49266 (exit $ac_status); }; } &&
49267 { ac_try='test -s conftest.$ac_objext'
49268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49269 (eval $ac_try) 2>&5
49271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49272 (exit $ac_status); }; }; then
49275 echo "$as_me: failed program was:" >&5
49276 sed 's/^/| /' conftest.$ac_ext >&5
49278 ac_lo=`expr '(' $ac_mid ')' + 1`
49280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49283 ?*) ac_cv_sizeof_int=$ac_lo;;
49284 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49285 See \`config.log' for more details." >&5
49286 echo "$as_me: error: cannot compute sizeof (int), 77
49287 See \`config.log' for more details." >&2;}
49288 { (exit 1); exit 1; }; } ;;
49291 if test "$cross_compiling" = yes; then
49292 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49293 See \`config.log' for more details." >&5
49294 echo "$as_me: error: cannot run test program while cross compiling
49295 See \`config.log' for more details." >&2;}
49296 { (exit 1); exit 1; }; }
49298 cat >conftest.$ac_ext <<_ACEOF
49301 cat confdefs.h >>conftest.$ac_ext
49302 cat >>conftest.$ac_ext <<_ACEOF
49303 /* end confdefs.h. */
49304 $ac_includes_default
49305 long longval () { return (long) (sizeof (int)); }
49306 unsigned long ulongval () { return (long) (sizeof (int)); }
49308 #include <stdlib.h>
49313 FILE *f = fopen ("conftest.val", "w");
49316 if (((long) (sizeof (int))) < 0)
49318 long i = longval ();
49319 if (i != ((long) (sizeof (int))))
49321 fprintf (f, "%ld\n", i);
49325 unsigned long i = ulongval ();
49326 if (i != ((long) (sizeof (int))))
49328 fprintf (f, "%lu\n", i);
49330 exit (ferror (f) || fclose (f) != 0);
49336 rm -f conftest$ac_exeext
49337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49338 (eval $ac_link) 2>&5
49340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49341 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49343 (eval $ac_try) 2>&5
49345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49346 (exit $ac_status); }; }; then
49347 ac_cv_sizeof_int=`cat conftest.val`
49349 echo "$as_me: program exited with status $ac_status" >&5
49350 echo "$as_me: failed program was:" >&5
49351 sed 's/^/| /' conftest.$ac_ext >&5
49353 ( exit $ac_status )
49354 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
49355 See \`config.log' for more details." >&5
49356 echo "$as_me: error: cannot compute sizeof (int), 77
49357 See \`config.log' for more details." >&2;}
49358 { (exit 1); exit 1; }; }
49360 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49368 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
49369 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
49370 cat >>confdefs.h <<_ACEOF
49371 #define SIZEOF_INT $ac_cv_sizeof_int
49375 echo "$as_me:$LINENO: checking for long" >&5
49376 echo $ECHO_N "checking for long... $ECHO_C" >&6
49377 if test "${ac_cv_type_long+set}" = set; then
49378 echo $ECHO_N "(cached) $ECHO_C" >&6
49380 cat >conftest.$ac_ext <<_ACEOF
49383 cat confdefs.h >>conftest.$ac_ext
49384 cat >>conftest.$ac_ext <<_ACEOF
49385 /* end confdefs.h. */
49386 $ac_includes_default
49398 rm -f conftest.$ac_objext
49399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49400 (eval $ac_compile) 2>conftest.er1
49402 grep -v '^ *+' conftest.er1 >conftest.err
49404 cat conftest.err >&5
49405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49406 (exit $ac_status); } &&
49407 { ac_try='test -z "$ac_c_werror_flag"
49408 || test ! -s conftest.err'
49409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49410 (eval $ac_try) 2>&5
49412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49413 (exit $ac_status); }; } &&
49414 { ac_try='test -s conftest.$ac_objext'
49415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49416 (eval $ac_try) 2>&5
49418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49419 (exit $ac_status); }; }; then
49420 ac_cv_type_long=yes
49422 echo "$as_me: failed program was:" >&5
49423 sed 's/^/| /' conftest.$ac_ext >&5
49427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49429 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
49430 echo "${ECHO_T}$ac_cv_type_long" >&6
49432 echo "$as_me:$LINENO: checking size of long" >&5
49433 echo $ECHO_N "checking size of long... $ECHO_C" >&6
49434 if test "${ac_cv_sizeof_long+set}" = set; then
49435 echo $ECHO_N "(cached) $ECHO_C" >&6
49437 if test "$ac_cv_type_long" = yes; then
49438 # The cast to unsigned long works around a bug in the HP C Compiler
49439 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49440 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49441 # This bug is HP SR number 8606223364.
49442 if test "$cross_compiling" = yes; then
49443 # Depending upon the size, compute the lo and hi bounds.
49444 cat >conftest.$ac_ext <<_ACEOF
49447 cat confdefs.h >>conftest.$ac_ext
49448 cat >>conftest.$ac_ext <<_ACEOF
49449 /* end confdefs.h. */
49450 $ac_includes_default
49454 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
49461 rm -f conftest.$ac_objext
49462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49463 (eval $ac_compile) 2>conftest.er1
49465 grep -v '^ *+' conftest.er1 >conftest.err
49467 cat conftest.err >&5
49468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49469 (exit $ac_status); } &&
49470 { ac_try='test -z "$ac_c_werror_flag"
49471 || test ! -s conftest.err'
49472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49473 (eval $ac_try) 2>&5
49475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49476 (exit $ac_status); }; } &&
49477 { ac_try='test -s conftest.$ac_objext'
49478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49479 (eval $ac_try) 2>&5
49481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49482 (exit $ac_status); }; }; then
49485 cat >conftest.$ac_ext <<_ACEOF
49488 cat confdefs.h >>conftest.$ac_ext
49489 cat >>conftest.$ac_ext <<_ACEOF
49490 /* end confdefs.h. */
49491 $ac_includes_default
49495 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
49502 rm -f conftest.$ac_objext
49503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49504 (eval $ac_compile) 2>conftest.er1
49506 grep -v '^ *+' conftest.er1 >conftest.err
49508 cat conftest.err >&5
49509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49510 (exit $ac_status); } &&
49511 { ac_try='test -z "$ac_c_werror_flag"
49512 || test ! -s conftest.err'
49513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49514 (eval $ac_try) 2>&5
49516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49517 (exit $ac_status); }; } &&
49518 { ac_try='test -s conftest.$ac_objext'
49519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49520 (eval $ac_try) 2>&5
49522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49523 (exit $ac_status); }; }; then
49524 ac_hi=$ac_mid; break
49526 echo "$as_me: failed program was:" >&5
49527 sed 's/^/| /' conftest.$ac_ext >&5
49529 ac_lo=`expr $ac_mid + 1`
49530 if test $ac_lo -le $ac_mid; then
49534 ac_mid=`expr 2 '*' $ac_mid + 1`
49536 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49539 echo "$as_me: failed program was:" >&5
49540 sed 's/^/| /' conftest.$ac_ext >&5
49542 cat >conftest.$ac_ext <<_ACEOF
49545 cat confdefs.h >>conftest.$ac_ext
49546 cat >>conftest.$ac_ext <<_ACEOF
49547 /* end confdefs.h. */
49548 $ac_includes_default
49552 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
49559 rm -f conftest.$ac_objext
49560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49561 (eval $ac_compile) 2>conftest.er1
49563 grep -v '^ *+' conftest.er1 >conftest.err
49565 cat conftest.err >&5
49566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49567 (exit $ac_status); } &&
49568 { ac_try='test -z "$ac_c_werror_flag"
49569 || test ! -s conftest.err'
49570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49571 (eval $ac_try) 2>&5
49573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49574 (exit $ac_status); }; } &&
49575 { ac_try='test -s conftest.$ac_objext'
49576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49577 (eval $ac_try) 2>&5
49579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49580 (exit $ac_status); }; }; then
49583 cat >conftest.$ac_ext <<_ACEOF
49586 cat confdefs.h >>conftest.$ac_ext
49587 cat >>conftest.$ac_ext <<_ACEOF
49588 /* end confdefs.h. */
49589 $ac_includes_default
49593 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
49600 rm -f conftest.$ac_objext
49601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49602 (eval $ac_compile) 2>conftest.er1
49604 grep -v '^ *+' conftest.er1 >conftest.err
49606 cat conftest.err >&5
49607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49608 (exit $ac_status); } &&
49609 { ac_try='test -z "$ac_c_werror_flag"
49610 || test ! -s conftest.err'
49611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49612 (eval $ac_try) 2>&5
49614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49615 (exit $ac_status); }; } &&
49616 { ac_try='test -s conftest.$ac_objext'
49617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49618 (eval $ac_try) 2>&5
49620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49621 (exit $ac_status); }; }; then
49622 ac_lo=$ac_mid; break
49624 echo "$as_me: failed program was:" >&5
49625 sed 's/^/| /' conftest.$ac_ext >&5
49627 ac_hi=`expr '(' $ac_mid ')' - 1`
49628 if test $ac_mid -le $ac_hi; then
49632 ac_mid=`expr 2 '*' $ac_mid`
49634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49637 echo "$as_me: failed program was:" >&5
49638 sed 's/^/| /' conftest.$ac_ext >&5
49642 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49644 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49645 # Binary search between lo and hi bounds.
49646 while test "x$ac_lo" != "x$ac_hi"; do
49647 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
49648 cat >conftest.$ac_ext <<_ACEOF
49651 cat confdefs.h >>conftest.$ac_ext
49652 cat >>conftest.$ac_ext <<_ACEOF
49653 /* end confdefs.h. */
49654 $ac_includes_default
49658 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
49665 rm -f conftest.$ac_objext
49666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49667 (eval $ac_compile) 2>conftest.er1
49669 grep -v '^ *+' conftest.er1 >conftest.err
49671 cat conftest.err >&5
49672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49673 (exit $ac_status); } &&
49674 { ac_try='test -z "$ac_c_werror_flag"
49675 || test ! -s conftest.err'
49676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49677 (eval $ac_try) 2>&5
49679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49680 (exit $ac_status); }; } &&
49681 { ac_try='test -s conftest.$ac_objext'
49682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49683 (eval $ac_try) 2>&5
49685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49686 (exit $ac_status); }; }; then
49689 echo "$as_me: failed program was:" >&5
49690 sed 's/^/| /' conftest.$ac_ext >&5
49692 ac_lo=`expr '(' $ac_mid ')' + 1`
49694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49697 ?*) ac_cv_sizeof_long=$ac_lo;;
49698 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
49699 See \`config.log' for more details." >&5
49700 echo "$as_me: error: cannot compute sizeof (long), 77
49701 See \`config.log' for more details." >&2;}
49702 { (exit 1); exit 1; }; } ;;
49705 if test "$cross_compiling" = yes; then
49706 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
49707 See \`config.log' for more details." >&5
49708 echo "$as_me: error: cannot run test program while cross compiling
49709 See \`config.log' for more details." >&2;}
49710 { (exit 1); exit 1; }; }
49712 cat >conftest.$ac_ext <<_ACEOF
49715 cat confdefs.h >>conftest.$ac_ext
49716 cat >>conftest.$ac_ext <<_ACEOF
49717 /* end confdefs.h. */
49718 $ac_includes_default
49719 long longval () { return (long) (sizeof (long)); }
49720 unsigned long ulongval () { return (long) (sizeof (long)); }
49722 #include <stdlib.h>
49727 FILE *f = fopen ("conftest.val", "w");
49730 if (((long) (sizeof (long))) < 0)
49732 long i = longval ();
49733 if (i != ((long) (sizeof (long))))
49735 fprintf (f, "%ld\n", i);
49739 unsigned long i = ulongval ();
49740 if (i != ((long) (sizeof (long))))
49742 fprintf (f, "%lu\n", i);
49744 exit (ferror (f) || fclose (f) != 0);
49750 rm -f conftest$ac_exeext
49751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
49752 (eval $ac_link) 2>&5
49754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49757 (eval $ac_try) 2>&5
49759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49760 (exit $ac_status); }; }; then
49761 ac_cv_sizeof_long=`cat conftest.val`
49763 echo "$as_me: program exited with status $ac_status" >&5
49764 echo "$as_me: failed program was:" >&5
49765 sed 's/^/| /' conftest.$ac_ext >&5
49767 ( exit $ac_status )
49768 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
49769 See \`config.log' for more details." >&5
49770 echo "$as_me: error: cannot compute sizeof (long), 77
49771 See \`config.log' for more details." >&2;}
49772 { (exit 1); exit 1; }; }
49774 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49779 ac_cv_sizeof_long=0
49782 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
49783 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
49784 cat >>confdefs.h <<_ACEOF
49785 #define SIZEOF_LONG $ac_cv_sizeof_long
49789 echo "$as_me:$LINENO: checking for wchar_t" >&5
49790 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
49791 if test "${ac_cv_type_wchar_t+set}" = set; then
49792 echo $ECHO_N "(cached) $ECHO_C" >&6
49794 cat >conftest.$ac_ext <<_ACEOF
49797 cat confdefs.h >>conftest.$ac_ext
49798 cat >>conftest.$ac_ext <<_ACEOF
49799 /* end confdefs.h. */
49800 $ac_includes_default
49806 if (sizeof (wchar_t))
49812 rm -f conftest.$ac_objext
49813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49814 (eval $ac_compile) 2>conftest.er1
49816 grep -v '^ *+' conftest.er1 >conftest.err
49818 cat conftest.err >&5
49819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49820 (exit $ac_status); } &&
49821 { ac_try='test -z "$ac_c_werror_flag"
49822 || test ! -s conftest.err'
49823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49824 (eval $ac_try) 2>&5
49826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49827 (exit $ac_status); }; } &&
49828 { ac_try='test -s conftest.$ac_objext'
49829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49830 (eval $ac_try) 2>&5
49832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49833 (exit $ac_status); }; }; then
49834 ac_cv_type_wchar_t=yes
49836 echo "$as_me: failed program was:" >&5
49837 sed 's/^/| /' conftest.$ac_ext >&5
49839 ac_cv_type_wchar_t=no
49841 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49843 echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
49844 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
49846 echo "$as_me:$LINENO: checking size of wchar_t" >&5
49847 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6
49848 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
49849 echo $ECHO_N "(cached) $ECHO_C" >&6
49851 if test "$ac_cv_type_wchar_t" = yes; then
49852 # The cast to unsigned long works around a bug in the HP C Compiler
49853 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
49854 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
49855 # This bug is HP SR number 8606223364.
49856 if test "$cross_compiling" = yes; then
49857 # Depending upon the size, compute the lo and hi bounds.
49858 cat >conftest.$ac_ext <<_ACEOF
49861 cat confdefs.h >>conftest.$ac_ext
49862 cat >>conftest.$ac_ext <<_ACEOF
49863 /* end confdefs.h. */
49864 $ac_includes_default
49868 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= 0)];
49875 rm -f conftest.$ac_objext
49876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49877 (eval $ac_compile) 2>conftest.er1
49879 grep -v '^ *+' conftest.er1 >conftest.err
49881 cat conftest.err >&5
49882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49883 (exit $ac_status); } &&
49884 { ac_try='test -z "$ac_c_werror_flag"
49885 || test ! -s conftest.err'
49886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49887 (eval $ac_try) 2>&5
49889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49890 (exit $ac_status); }; } &&
49891 { ac_try='test -s conftest.$ac_objext'
49892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49893 (eval $ac_try) 2>&5
49895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49896 (exit $ac_status); }; }; then
49899 cat >conftest.$ac_ext <<_ACEOF
49902 cat confdefs.h >>conftest.$ac_ext
49903 cat >>conftest.$ac_ext <<_ACEOF
49904 /* end confdefs.h. */
49905 $ac_includes_default
49909 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
49916 rm -f conftest.$ac_objext
49917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49918 (eval $ac_compile) 2>conftest.er1
49920 grep -v '^ *+' conftest.er1 >conftest.err
49922 cat conftest.err >&5
49923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49924 (exit $ac_status); } &&
49925 { ac_try='test -z "$ac_c_werror_flag"
49926 || test ! -s conftest.err'
49927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49928 (eval $ac_try) 2>&5
49930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49931 (exit $ac_status); }; } &&
49932 { ac_try='test -s conftest.$ac_objext'
49933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49934 (eval $ac_try) 2>&5
49936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49937 (exit $ac_status); }; }; then
49938 ac_hi=$ac_mid; break
49940 echo "$as_me: failed program was:" >&5
49941 sed 's/^/| /' conftest.$ac_ext >&5
49943 ac_lo=`expr $ac_mid + 1`
49944 if test $ac_lo -le $ac_mid; then
49948 ac_mid=`expr 2 '*' $ac_mid + 1`
49950 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
49953 echo "$as_me: failed program was:" >&5
49954 sed 's/^/| /' conftest.$ac_ext >&5
49956 cat >conftest.$ac_ext <<_ACEOF
49959 cat confdefs.h >>conftest.$ac_ext
49960 cat >>conftest.$ac_ext <<_ACEOF
49961 /* end confdefs.h. */
49962 $ac_includes_default
49966 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) < 0)];
49973 rm -f conftest.$ac_objext
49974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
49975 (eval $ac_compile) 2>conftest.er1
49977 grep -v '^ *+' conftest.er1 >conftest.err
49979 cat conftest.err >&5
49980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49981 (exit $ac_status); } &&
49982 { ac_try='test -z "$ac_c_werror_flag"
49983 || test ! -s conftest.err'
49984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49985 (eval $ac_try) 2>&5
49987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49988 (exit $ac_status); }; } &&
49989 { ac_try='test -s conftest.$ac_objext'
49990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
49991 (eval $ac_try) 2>&5
49993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
49994 (exit $ac_status); }; }; then
49997 cat >conftest.$ac_ext <<_ACEOF
50000 cat confdefs.h >>conftest.$ac_ext
50001 cat >>conftest.$ac_ext <<_ACEOF
50002 /* end confdefs.h. */
50003 $ac_includes_default
50007 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) >= $ac_mid)];
50014 rm -f conftest.$ac_objext
50015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50016 (eval $ac_compile) 2>conftest.er1
50018 grep -v '^ *+' conftest.er1 >conftest.err
50020 cat conftest.err >&5
50021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50022 (exit $ac_status); } &&
50023 { ac_try='test -z "$ac_c_werror_flag"
50024 || test ! -s conftest.err'
50025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50026 (eval $ac_try) 2>&5
50028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50029 (exit $ac_status); }; } &&
50030 { ac_try='test -s conftest.$ac_objext'
50031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50032 (eval $ac_try) 2>&5
50034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50035 (exit $ac_status); }; }; then
50036 ac_lo=$ac_mid; break
50038 echo "$as_me: failed program was:" >&5
50039 sed 's/^/| /' conftest.$ac_ext >&5
50041 ac_hi=`expr '(' $ac_mid ')' - 1`
50042 if test $ac_mid -le $ac_hi; then
50046 ac_mid=`expr 2 '*' $ac_mid`
50048 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50051 echo "$as_me: failed program was:" >&5
50052 sed 's/^/| /' conftest.$ac_ext >&5
50056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50059 # Binary search between lo and hi bounds.
50060 while test "x$ac_lo" != "x$ac_hi"; do
50061 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
50062 cat >conftest.$ac_ext <<_ACEOF
50065 cat confdefs.h >>conftest.$ac_ext
50066 cat >>conftest.$ac_ext <<_ACEOF
50067 /* end confdefs.h. */
50068 $ac_includes_default
50072 static int test_array [1 - 2 * !(((long) (sizeof (wchar_t))) <= $ac_mid)];
50079 rm -f conftest.$ac_objext
50080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
50081 (eval $ac_compile) 2>conftest.er1
50083 grep -v '^ *+' conftest.er1 >conftest.err
50085 cat conftest.err >&5
50086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50087 (exit $ac_status); } &&
50088 { ac_try='test -z "$ac_c_werror_flag"
50089 || test ! -s conftest.err'
50090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50091 (eval $ac_try) 2>&5
50093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50094 (exit $ac_status); }; } &&
50095 { ac_try='test -s conftest.$ac_objext'
50096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50097 (eval $ac_try) 2>&5
50099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50100 (exit $ac_status); }; }; then
50103 echo "$as_me: failed program was:" >&5
50104 sed 's/^/| /' conftest.$ac_ext >&5
50106 ac_lo=`expr '(' $ac_mid ')' + 1`
50108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
50111 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
50112 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50113 See \`config.log' for more details." >&5
50114 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50115 See \`config.log' for more details." >&2;}
50116 { (exit 1); exit 1; }; } ;;
50119 if test "$cross_compiling" = yes; then
50120 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
50121 See \`config.log' for more details." >&5
50122 echo "$as_me: error: cannot run test program while cross compiling
50123 See \`config.log' for more details." >&2;}
50124 { (exit 1); exit 1; }; }
50126 cat >conftest.$ac_ext <<_ACEOF
50129 cat confdefs.h >>conftest.$ac_ext
50130 cat >>conftest.$ac_ext <<_ACEOF
50131 /* end confdefs.h. */
50132 $ac_includes_default
50133 long longval () { return (long) (sizeof (wchar_t)); }
50134 unsigned long ulongval () { return (long) (sizeof (wchar_t)); }
50136 #include <stdlib.h>
50141 FILE *f = fopen ("conftest.val", "w");
50144 if (((long) (sizeof (wchar_t))) < 0)
50146 long i = longval ();
50147 if (i != ((long) (sizeof (wchar_t))))
50149 fprintf (f, "%ld\n", i);
50153 unsigned long i = ulongval ();
50154 if (i != ((long) (sizeof (wchar_t))))
50156 fprintf (f, "%lu\n", i);
50158 exit (ferror (f) || fclose (f) != 0);
50164 rm -f conftest$ac_exeext
50165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50166 (eval $ac_link) 2>&5
50168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50171 (eval $ac_try) 2>&5
50173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50174 (exit $ac_status); }; }; then
50175 ac_cv_sizeof_wchar_t=`cat conftest.val`
50177 echo "$as_me: program exited with status $ac_status" >&5
50178 echo "$as_me: failed program was:" >&5
50179 sed 's/^/| /' conftest.$ac_ext >&5
50181 ( exit $ac_status )
50182 { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t), 77
50183 See \`config.log' for more details." >&5
50184 echo "$as_me: error: cannot compute sizeof (wchar_t), 77
50185 See \`config.log' for more details." >&2;}
50186 { (exit 1); exit 1; }; }
50188 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50193 ac_cv_sizeof_wchar_t=0
50196 echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
50197 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6
50198 cat >>confdefs.h <<_ACEOF
50199 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
50204 if test "$ac_cv_sizeof_int" -lt 4 ; then
50205 { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
50206 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
50209 cat >>confdefs.h <<\_ACEOF
50210 #define LBER_INT_T long
50215 cat >>confdefs.h <<\_ACEOF
50216 #define LBER_INT_T int
50222 cat >>confdefs.h <<\_ACEOF
50223 #define LBER_LEN_T long
50227 cat >>confdefs.h <<\_ACEOF
50228 #define LBER_SOCKET_T int
50232 cat >>confdefs.h <<\_ACEOF
50233 #define LBER_TAG_T long
50237 echo "$as_me:$LINENO: checking for working memcmp" >&5
50238 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
50239 if test "${ac_cv_func_memcmp_working+set}" = set; then
50240 echo $ECHO_N "(cached) $ECHO_C" >&6
50242 if test "$cross_compiling" = yes; then
50243 ac_cv_func_memcmp_working=no
50245 cat >conftest.$ac_ext <<_ACEOF
50248 cat confdefs.h >>conftest.$ac_ext
50249 cat >>conftest.$ac_ext <<_ACEOF
50250 /* end confdefs.h. */
50251 $ac_includes_default
50256 /* Some versions of memcmp are not 8-bit clean. */
50257 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
50258 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
50261 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
50262 or more and with at least one buffer not starting on a 4-byte boundary.
50263 William Lewis provided this test program. */
50268 for (i = 0; i < 4; i++)
50272 strcpy (a, "--------01111111");
50273 strcpy (b, "--------10000000");
50274 if (memcmp (a, b, 16) >= 0)
50284 rm -f conftest$ac_exeext
50285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50286 (eval $ac_link) 2>&5
50288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50289 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50291 (eval $ac_try) 2>&5
50293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50294 (exit $ac_status); }; }; then
50295 ac_cv_func_memcmp_working=yes
50297 echo "$as_me: program exited with status $ac_status" >&5
50298 echo "$as_me: failed program was:" >&5
50299 sed 's/^/| /' conftest.$ac_ext >&5
50301 ( exit $ac_status )
50302 ac_cv_func_memcmp_working=no
50304 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50307 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
50308 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
50309 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
50310 "memcmp.$ac_objext" | \
50311 *" memcmp.$ac_objext" | \
50312 "memcmp.$ac_objext "* | \
50313 *" memcmp.$ac_objext "* ) ;;
50314 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
50319 if test $ac_cv_func_memcmp_working = no ; then
50321 cat >>confdefs.h <<\_ACEOF
50322 #define NEED_MEMCMP_REPLACEMENT 1
50328 for ac_func in strftime
50330 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50331 echo "$as_me:$LINENO: checking for $ac_func" >&5
50332 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50333 if eval "test \"\${$as_ac_var+set}\" = set"; then
50334 echo $ECHO_N "(cached) $ECHO_C" >&6
50336 cat >conftest.$ac_ext <<_ACEOF
50339 cat confdefs.h >>conftest.$ac_ext
50340 cat >>conftest.$ac_ext <<_ACEOF
50341 /* end confdefs.h. */
50342 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50343 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50344 #define $ac_func innocuous_$ac_func
50346 /* System header to define __stub macros and hopefully few prototypes,
50347 which can conflict with char $ac_func (); below.
50348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50349 <limits.h> exists even on freestanding compilers. */
50352 # include <limits.h>
50354 # include <assert.h>
50359 /* Override any gcc2 internal prototype to avoid an error. */
50364 /* We use char because int might match the return type of a gcc2
50365 builtin and then its argument prototype would still apply. */
50367 /* The GNU C library defines this for functions which it implements
50368 to always fail with ENOSYS. Some functions are actually named
50369 something starting with __ and the normal name is an alias. */
50370 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50373 char (*f) () = $ac_func;
50382 return f != $ac_func;
50387 rm -f conftest.$ac_objext conftest$ac_exeext
50388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50389 (eval $ac_link) 2>conftest.er1
50391 grep -v '^ *+' conftest.er1 >conftest.err
50393 cat conftest.err >&5
50394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50395 (exit $ac_status); } &&
50396 { ac_try='test -z "$ac_c_werror_flag"
50397 || test ! -s conftest.err'
50398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50399 (eval $ac_try) 2>&5
50401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50402 (exit $ac_status); }; } &&
50403 { ac_try='test -s conftest$ac_exeext'
50404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50405 (eval $ac_try) 2>&5
50407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50408 (exit $ac_status); }; }; then
50409 eval "$as_ac_var=yes"
50411 echo "$as_me: failed program was:" >&5
50412 sed 's/^/| /' conftest.$ac_ext >&5
50414 eval "$as_ac_var=no"
50416 rm -f conftest.err conftest.$ac_objext \
50417 conftest$ac_exeext conftest.$ac_ext
50419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50420 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50421 if test `eval echo '${'$as_ac_var'}'` = yes; then
50422 cat >>confdefs.h <<_ACEOF
50423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50427 # strftime is in -lintl on SCO UNIX.
50428 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
50429 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
50430 if test "${ac_cv_lib_intl_strftime+set}" = set; then
50431 echo $ECHO_N "(cached) $ECHO_C" >&6
50433 ac_check_lib_save_LIBS=$LIBS
50434 LIBS="-lintl $LIBS"
50435 cat >conftest.$ac_ext <<_ACEOF
50438 cat confdefs.h >>conftest.$ac_ext
50439 cat >>conftest.$ac_ext <<_ACEOF
50440 /* end confdefs.h. */
50442 /* Override any gcc2 internal prototype to avoid an error. */
50446 /* We use char because int might match the return type of a gcc2
50447 builtin and then its argument prototype would still apply. */
50457 rm -f conftest.$ac_objext conftest$ac_exeext
50458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50459 (eval $ac_link) 2>conftest.er1
50461 grep -v '^ *+' conftest.er1 >conftest.err
50463 cat conftest.err >&5
50464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50465 (exit $ac_status); } &&
50466 { ac_try='test -z "$ac_c_werror_flag"
50467 || test ! -s conftest.err'
50468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50469 (eval $ac_try) 2>&5
50471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50472 (exit $ac_status); }; } &&
50473 { ac_try='test -s conftest$ac_exeext'
50474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50475 (eval $ac_try) 2>&5
50477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50478 (exit $ac_status); }; }; then
50479 ac_cv_lib_intl_strftime=yes
50481 echo "$as_me: failed program was:" >&5
50482 sed 's/^/| /' conftest.$ac_ext >&5
50484 ac_cv_lib_intl_strftime=no
50486 rm -f conftest.err conftest.$ac_objext \
50487 conftest$ac_exeext conftest.$ac_ext
50488 LIBS=$ac_check_lib_save_LIBS
50490 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
50491 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
50492 if test $ac_cv_lib_intl_strftime = yes; then
50493 cat >>confdefs.h <<\_ACEOF
50494 #define HAVE_STRFTIME 1
50497 LIBS="-lintl $LIBS"
50504 echo "$as_me:$LINENO: checking for inet_aton()" >&5
50505 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6
50506 if test "${ol_cv_func_inet_aton+set}" = set; then
50507 echo $ECHO_N "(cached) $ECHO_C" >&6
50509 cat >conftest.$ac_ext <<_ACEOF
50512 cat confdefs.h >>conftest.$ac_ext
50513 cat >>conftest.$ac_ext <<_ACEOF
50514 /* end confdefs.h. */
50516 #ifdef HAVE_SYS_TYPES_H
50517 # include <sys/types.h>
50519 #ifdef HAVE_SYS_SOCKET_H
50520 # include <sys/socket.h>
50521 # ifdef HAVE_SYS_SELECT_H
50522 # include <sys/select.h>
50524 # include <netinet/in.h>
50525 # ifdef HAVE_ARPA_INET_H
50526 # include <arpa/inet.h>
50534 int rc = inet_aton( "255.255.255.255", &in );
50539 rm -f conftest.$ac_objext conftest$ac_exeext
50540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50541 (eval $ac_link) 2>conftest.er1
50543 grep -v '^ *+' conftest.er1 >conftest.err
50545 cat conftest.err >&5
50546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50547 (exit $ac_status); } &&
50548 { ac_try='test -z "$ac_c_werror_flag"
50549 || test ! -s conftest.err'
50550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50551 (eval $ac_try) 2>&5
50553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50554 (exit $ac_status); }; } &&
50555 { ac_try='test -s conftest$ac_exeext'
50556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50557 (eval $ac_try) 2>&5
50559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50560 (exit $ac_status); }; }; then
50561 ol_cv_func_inet_aton=yes
50563 echo "$as_me: failed program was:" >&5
50564 sed 's/^/| /' conftest.$ac_ext >&5
50566 ol_cv_func_inet_aton=no
50568 rm -f conftest.err conftest.$ac_objext \
50569 conftest$ac_exeext conftest.$ac_ext
50571 echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
50572 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6
50573 if test $ol_cv_func_inet_aton != no; then
50575 cat >>confdefs.h <<\_ACEOF
50576 #define HAVE_INET_ATON 1
50582 echo "$as_me:$LINENO: checking for _spawnlp" >&5
50583 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6
50584 if test "${ac_cv_func__spawnlp+set}" = set; then
50585 echo $ECHO_N "(cached) $ECHO_C" >&6
50587 cat >conftest.$ac_ext <<_ACEOF
50590 cat confdefs.h >>conftest.$ac_ext
50591 cat >>conftest.$ac_ext <<_ACEOF
50592 /* end confdefs.h. */
50593 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
50594 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50595 #define _spawnlp innocuous__spawnlp
50597 /* System header to define __stub macros and hopefully few prototypes,
50598 which can conflict with char _spawnlp (); below.
50599 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50600 <limits.h> exists even on freestanding compilers. */
50603 # include <limits.h>
50605 # include <assert.h>
50610 /* Override any gcc2 internal prototype to avoid an error. */
50615 /* We use char because int might match the return type of a gcc2
50616 builtin and then its argument prototype would still apply. */
50618 /* The GNU C library defines this for functions which it implements
50619 to always fail with ENOSYS. Some functions are actually named
50620 something starting with __ and the normal name is an alias. */
50621 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
50624 char (*f) () = _spawnlp;
50633 return f != _spawnlp;
50638 rm -f conftest.$ac_objext conftest$ac_exeext
50639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50640 (eval $ac_link) 2>conftest.er1
50642 grep -v '^ *+' conftest.er1 >conftest.err
50644 cat conftest.err >&5
50645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50646 (exit $ac_status); } &&
50647 { ac_try='test -z "$ac_c_werror_flag"
50648 || test ! -s conftest.err'
50649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50650 (eval $ac_try) 2>&5
50652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50653 (exit $ac_status); }; } &&
50654 { ac_try='test -s conftest$ac_exeext'
50655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50656 (eval $ac_try) 2>&5
50658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50659 (exit $ac_status); }; }; then
50660 ac_cv_func__spawnlp=yes
50662 echo "$as_me: failed program was:" >&5
50663 sed 's/^/| /' conftest.$ac_ext >&5
50665 ac_cv_func__spawnlp=no
50667 rm -f conftest.err conftest.$ac_objext \
50668 conftest$ac_exeext conftest.$ac_ext
50670 echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
50671 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6
50672 if test $ac_cv_func__spawnlp = yes; then
50674 cat >>confdefs.h <<\_ACEOF
50675 #define HAVE_SPAWNLP 1
50681 echo "$as_me:$LINENO: checking for _snprintf" >&5
50682 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6
50683 if test "${ac_cv_func__snprintf+set}" = set; then
50684 echo $ECHO_N "(cached) $ECHO_C" >&6
50686 cat >conftest.$ac_ext <<_ACEOF
50689 cat confdefs.h >>conftest.$ac_ext
50690 cat >>conftest.$ac_ext <<_ACEOF
50691 /* end confdefs.h. */
50692 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
50693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50694 #define _snprintf innocuous__snprintf
50696 /* System header to define __stub macros and hopefully few prototypes,
50697 which can conflict with char _snprintf (); below.
50698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50699 <limits.h> exists even on freestanding compilers. */
50702 # include <limits.h>
50704 # include <assert.h>
50709 /* Override any gcc2 internal prototype to avoid an error. */
50714 /* We use char because int might match the return type of a gcc2
50715 builtin and then its argument prototype would still apply. */
50717 /* The GNU C library defines this for functions which it implements
50718 to always fail with ENOSYS. Some functions are actually named
50719 something starting with __ and the normal name is an alias. */
50720 #if defined (__stub__snprintf) || defined (__stub____snprintf)
50723 char (*f) () = _snprintf;
50732 return f != _snprintf;
50737 rm -f conftest.$ac_objext conftest$ac_exeext
50738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50739 (eval $ac_link) 2>conftest.er1
50741 grep -v '^ *+' conftest.er1 >conftest.err
50743 cat conftest.err >&5
50744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50745 (exit $ac_status); } &&
50746 { ac_try='test -z "$ac_c_werror_flag"
50747 || test ! -s conftest.err'
50748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50749 (eval $ac_try) 2>&5
50751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50752 (exit $ac_status); }; } &&
50753 { ac_try='test -s conftest$ac_exeext'
50754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50755 (eval $ac_try) 2>&5
50757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50758 (exit $ac_status); }; }; then
50759 ac_cv_func__snprintf=yes
50761 echo "$as_me: failed program was:" >&5
50762 sed 's/^/| /' conftest.$ac_ext >&5
50764 ac_cv_func__snprintf=no
50766 rm -f conftest.err conftest.$ac_objext \
50767 conftest$ac_exeext conftest.$ac_ext
50769 echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
50770 echo "${ECHO_T}$ac_cv_func__snprintf" >&6
50771 if test $ac_cv_func__snprintf = yes; then
50772 ac_cv_func_snprintf=yes
50774 cat >>confdefs.h <<\_ACEOF
50775 #define snprintf _snprintf
50782 echo "$as_me:$LINENO: checking for _vsnprintf" >&5
50783 echo $ECHO_N "checking for _vsnprintf... $ECHO_C" >&6
50784 if test "${ac_cv_func__vsnprintf+set}" = set; then
50785 echo $ECHO_N "(cached) $ECHO_C" >&6
50787 cat >conftest.$ac_ext <<_ACEOF
50790 cat confdefs.h >>conftest.$ac_ext
50791 cat >>conftest.$ac_ext <<_ACEOF
50792 /* end confdefs.h. */
50793 /* Define _vsnprintf to an innocuous variant, in case <limits.h> declares _vsnprintf.
50794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50795 #define _vsnprintf innocuous__vsnprintf
50797 /* System header to define __stub macros and hopefully few prototypes,
50798 which can conflict with char _vsnprintf (); below.
50799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50800 <limits.h> exists even on freestanding compilers. */
50803 # include <limits.h>
50805 # include <assert.h>
50810 /* Override any gcc2 internal prototype to avoid an error. */
50815 /* We use char because int might match the return type of a gcc2
50816 builtin and then its argument prototype would still apply. */
50817 char _vsnprintf ();
50818 /* The GNU C library defines this for functions which it implements
50819 to always fail with ENOSYS. Some functions are actually named
50820 something starting with __ and the normal name is an alias. */
50821 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
50824 char (*f) () = _vsnprintf;
50833 return f != _vsnprintf;
50838 rm -f conftest.$ac_objext conftest$ac_exeext
50839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50840 (eval $ac_link) 2>conftest.er1
50842 grep -v '^ *+' conftest.er1 >conftest.err
50844 cat conftest.err >&5
50845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50846 (exit $ac_status); } &&
50847 { ac_try='test -z "$ac_c_werror_flag"
50848 || test ! -s conftest.err'
50849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50850 (eval $ac_try) 2>&5
50852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50853 (exit $ac_status); }; } &&
50854 { ac_try='test -s conftest$ac_exeext'
50855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50856 (eval $ac_try) 2>&5
50858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50859 (exit $ac_status); }; }; then
50860 ac_cv_func__vsnprintf=yes
50862 echo "$as_me: failed program was:" >&5
50863 sed 's/^/| /' conftest.$ac_ext >&5
50865 ac_cv_func__vsnprintf=no
50867 rm -f conftest.err conftest.$ac_objext \
50868 conftest$ac_exeext conftest.$ac_ext
50870 echo "$as_me:$LINENO: result: $ac_cv_func__vsnprintf" >&5
50871 echo "${ECHO_T}$ac_cv_func__vsnprintf" >&6
50872 if test $ac_cv_func__vsnprintf = yes; then
50873 ac_cv_func_vsnprintf=yes
50875 cat >>confdefs.h <<\_ACEOF
50876 #define vsnprintf _vsnprintf
50884 for ac_func in vprintf
50886 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
50887 echo "$as_me:$LINENO: checking for $ac_func" >&5
50888 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
50889 if eval "test \"\${$as_ac_var+set}\" = set"; then
50890 echo $ECHO_N "(cached) $ECHO_C" >&6
50892 cat >conftest.$ac_ext <<_ACEOF
50895 cat confdefs.h >>conftest.$ac_ext
50896 cat >>conftest.$ac_ext <<_ACEOF
50897 /* end confdefs.h. */
50898 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
50899 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50900 #define $ac_func innocuous_$ac_func
50902 /* System header to define __stub macros and hopefully few prototypes,
50903 which can conflict with char $ac_func (); below.
50904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
50905 <limits.h> exists even on freestanding compilers. */
50908 # include <limits.h>
50910 # include <assert.h>
50915 /* Override any gcc2 internal prototype to avoid an error. */
50920 /* We use char because int might match the return type of a gcc2
50921 builtin and then its argument prototype would still apply. */
50923 /* The GNU C library defines this for functions which it implements
50924 to always fail with ENOSYS. Some functions are actually named
50925 something starting with __ and the normal name is an alias. */
50926 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
50929 char (*f) () = $ac_func;
50938 return f != $ac_func;
50943 rm -f conftest.$ac_objext conftest$ac_exeext
50944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
50945 (eval $ac_link) 2>conftest.er1
50947 grep -v '^ *+' conftest.er1 >conftest.err
50949 cat conftest.err >&5
50950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50951 (exit $ac_status); } &&
50952 { ac_try='test -z "$ac_c_werror_flag"
50953 || test ! -s conftest.err'
50954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50955 (eval $ac_try) 2>&5
50957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50958 (exit $ac_status); }; } &&
50959 { ac_try='test -s conftest$ac_exeext'
50960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
50961 (eval $ac_try) 2>&5
50963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
50964 (exit $ac_status); }; }; then
50965 eval "$as_ac_var=yes"
50967 echo "$as_me: failed program was:" >&5
50968 sed 's/^/| /' conftest.$ac_ext >&5
50970 eval "$as_ac_var=no"
50972 rm -f conftest.err conftest.$ac_objext \
50973 conftest$ac_exeext conftest.$ac_ext
50975 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
50976 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
50977 if test `eval echo '${'$as_ac_var'}'` = yes; then
50978 cat >>confdefs.h <<_ACEOF
50979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
50982 echo "$as_me:$LINENO: checking for _doprnt" >&5
50983 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
50984 if test "${ac_cv_func__doprnt+set}" = set; then
50985 echo $ECHO_N "(cached) $ECHO_C" >&6
50987 cat >conftest.$ac_ext <<_ACEOF
50990 cat confdefs.h >>conftest.$ac_ext
50991 cat >>conftest.$ac_ext <<_ACEOF
50992 /* end confdefs.h. */
50993 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
50994 For example, HP-UX 11i <limits.h> declares gettimeofday. */
50995 #define _doprnt innocuous__doprnt
50997 /* System header to define __stub macros and hopefully few prototypes,
50998 which can conflict with char _doprnt (); below.
50999 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51000 <limits.h> exists even on freestanding compilers. */
51003 # include <limits.h>
51005 # include <assert.h>
51010 /* Override any gcc2 internal prototype to avoid an error. */
51015 /* We use char because int might match the return type of a gcc2
51016 builtin and then its argument prototype would still apply. */
51018 /* The GNU C library defines this for functions which it implements
51019 to always fail with ENOSYS. Some functions are actually named
51020 something starting with __ and the normal name is an alias. */
51021 #if defined (__stub__doprnt) || defined (__stub____doprnt)
51024 char (*f) () = _doprnt;
51033 return f != _doprnt;
51038 rm -f conftest.$ac_objext conftest$ac_exeext
51039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51040 (eval $ac_link) 2>conftest.er1
51042 grep -v '^ *+' conftest.er1 >conftest.err
51044 cat conftest.err >&5
51045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51046 (exit $ac_status); } &&
51047 { ac_try='test -z "$ac_c_werror_flag"
51048 || test ! -s conftest.err'
51049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51050 (eval $ac_try) 2>&5
51052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51053 (exit $ac_status); }; } &&
51054 { ac_try='test -s conftest$ac_exeext'
51055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51056 (eval $ac_try) 2>&5
51058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51059 (exit $ac_status); }; }; then
51060 ac_cv_func__doprnt=yes
51062 echo "$as_me: failed program was:" >&5
51063 sed 's/^/| /' conftest.$ac_ext >&5
51065 ac_cv_func__doprnt=no
51067 rm -f conftest.err conftest.$ac_objext \
51068 conftest$ac_exeext conftest.$ac_ext
51070 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
51071 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
51072 if test $ac_cv_func__doprnt = yes; then
51074 cat >>confdefs.h <<\_ACEOF
51075 #define HAVE_DOPRNT 1
51085 if test $ac_cv_func_vprintf = yes ; then
51088 for ac_func in snprintf vsnprintf
51090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51091 echo "$as_me:$LINENO: checking for $ac_func" >&5
51092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51093 if eval "test \"\${$as_ac_var+set}\" = set"; then
51094 echo $ECHO_N "(cached) $ECHO_C" >&6
51096 cat >conftest.$ac_ext <<_ACEOF
51099 cat confdefs.h >>conftest.$ac_ext
51100 cat >>conftest.$ac_ext <<_ACEOF
51101 /* end confdefs.h. */
51102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51104 #define $ac_func innocuous_$ac_func
51106 /* System header to define __stub macros and hopefully few prototypes,
51107 which can conflict with char $ac_func (); below.
51108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51109 <limits.h> exists even on freestanding compilers. */
51112 # include <limits.h>
51114 # include <assert.h>
51119 /* Override any gcc2 internal prototype to avoid an error. */
51124 /* We use char because int might match the return type of a gcc2
51125 builtin and then its argument prototype would still apply. */
51127 /* The GNU C library defines this for functions which it implements
51128 to always fail with ENOSYS. Some functions are actually named
51129 something starting with __ and the normal name is an alias. */
51130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51133 char (*f) () = $ac_func;
51142 return f != $ac_func;
51147 rm -f conftest.$ac_objext conftest$ac_exeext
51148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51149 (eval $ac_link) 2>conftest.er1
51151 grep -v '^ *+' conftest.er1 >conftest.err
51153 cat conftest.err >&5
51154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51155 (exit $ac_status); } &&
51156 { ac_try='test -z "$ac_c_werror_flag"
51157 || test ! -s conftest.err'
51158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51159 (eval $ac_try) 2>&5
51161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51162 (exit $ac_status); }; } &&
51163 { ac_try='test -s conftest$ac_exeext'
51164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51165 (eval $ac_try) 2>&5
51167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51168 (exit $ac_status); }; }; then
51169 eval "$as_ac_var=yes"
51171 echo "$as_me: failed program was:" >&5
51172 sed 's/^/| /' conftest.$ac_ext >&5
51174 eval "$as_ac_var=no"
51176 rm -f conftest.err conftest.$ac_objext \
51177 conftest$ac_exeext conftest.$ac_ext
51179 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51180 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51181 if test `eval echo '${'$as_ac_var'}'` = yes; then
51182 cat >>confdefs.h <<_ACEOF
51183 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51300 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51301 echo "$as_me:$LINENO: checking for $ac_func" >&5
51302 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51303 if eval "test \"\${$as_ac_var+set}\" = set"; then
51304 echo $ECHO_N "(cached) $ECHO_C" >&6
51306 cat >conftest.$ac_ext <<_ACEOF
51309 cat confdefs.h >>conftest.$ac_ext
51310 cat >>conftest.$ac_ext <<_ACEOF
51311 /* end confdefs.h. */
51312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51314 #define $ac_func innocuous_$ac_func
51316 /* System header to define __stub macros and hopefully few prototypes,
51317 which can conflict with char $ac_func (); below.
51318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51319 <limits.h> exists even on freestanding compilers. */
51322 # include <limits.h>
51324 # include <assert.h>
51329 /* Override any gcc2 internal prototype to avoid an error. */
51334 /* We use char because int might match the return type of a gcc2
51335 builtin and then its argument prototype would still apply. */
51337 /* The GNU C library defines this for functions which it implements
51338 to always fail with ENOSYS. Some functions are actually named
51339 something starting with __ and the normal name is an alias. */
51340 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51343 char (*f) () = $ac_func;
51352 return f != $ac_func;
51357 rm -f conftest.$ac_objext conftest$ac_exeext
51358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51359 (eval $ac_link) 2>conftest.er1
51361 grep -v '^ *+' conftest.er1 >conftest.err
51363 cat conftest.err >&5
51364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51365 (exit $ac_status); } &&
51366 { ac_try='test -z "$ac_c_werror_flag"
51367 || test ! -s conftest.err'
51368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51369 (eval $ac_try) 2>&5
51371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51372 (exit $ac_status); }; } &&
51373 { ac_try='test -s conftest$ac_exeext'
51374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51375 (eval $ac_try) 2>&5
51377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51378 (exit $ac_status); }; }; then
51379 eval "$as_ac_var=yes"
51381 echo "$as_me: failed program was:" >&5
51382 sed 's/^/| /' conftest.$ac_ext >&5
51384 eval "$as_ac_var=no"
51386 rm -f conftest.err conftest.$ac_objext \
51387 conftest$ac_exeext conftest.$ac_ext
51389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51390 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51391 if test `eval echo '${'$as_ac_var'}'` = yes; then
51392 cat >>confdefs.h <<_ACEOF
51393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51402 for ac_func in getopt getpeereid
51404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
51405 echo "$as_me:$LINENO: checking for $ac_func" >&5
51406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
51407 if eval "test \"\${$as_ac_var+set}\" = set"; then
51408 echo $ECHO_N "(cached) $ECHO_C" >&6
51410 cat >conftest.$ac_ext <<_ACEOF
51413 cat confdefs.h >>conftest.$ac_ext
51414 cat >>conftest.$ac_ext <<_ACEOF
51415 /* end confdefs.h. */
51416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
51417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
51418 #define $ac_func innocuous_$ac_func
51420 /* System header to define __stub macros and hopefully few prototypes,
51421 which can conflict with char $ac_func (); below.
51422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
51423 <limits.h> exists even on freestanding compilers. */
51426 # include <limits.h>
51428 # include <assert.h>
51433 /* Override any gcc2 internal prototype to avoid an error. */
51438 /* We use char because int might match the return type of a gcc2
51439 builtin and then its argument prototype would still apply. */
51441 /* The GNU C library defines this for functions which it implements
51442 to always fail with ENOSYS. Some functions are actually named
51443 something starting with __ and the normal name is an alias. */
51444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
51447 char (*f) () = $ac_func;
51456 return f != $ac_func;
51461 rm -f conftest.$ac_objext conftest$ac_exeext
51462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51463 (eval $ac_link) 2>conftest.er1
51465 grep -v '^ *+' conftest.er1 >conftest.err
51467 cat conftest.err >&5
51468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51469 (exit $ac_status); } &&
51470 { ac_try='test -z "$ac_c_werror_flag"
51471 || test ! -s conftest.err'
51472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51473 (eval $ac_try) 2>&5
51475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51476 (exit $ac_status); }; } &&
51477 { ac_try='test -s conftest$ac_exeext'
51478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51479 (eval $ac_try) 2>&5
51481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51482 (exit $ac_status); }; }; then
51483 eval "$as_ac_var=yes"
51485 echo "$as_me: failed program was:" >&5
51486 sed 's/^/| /' conftest.$ac_ext >&5
51488 eval "$as_ac_var=no"
51490 rm -f conftest.err conftest.$ac_objext \
51491 conftest$ac_exeext conftest.$ac_ext
51493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
51494 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
51495 if test `eval echo '${'$as_ac_var'}'` = yes; then
51496 cat >>confdefs.h <<_ACEOF
51497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
51502 "$ac_func.$ac_objext" | \
51503 *" $ac_func.$ac_objext" | \
51504 "$ac_func.$ac_objext "* | \
51505 *" $ac_func.$ac_objext "* ) ;;
51506 *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
51514 if test "$ac_cv_func_getopt" != yes; then
51515 LIBSRCS="$LIBSRCS getopt.c"
51517 if test "$ac_cv_func_getpeereid" != yes; then
51518 echo "$as_me:$LINENO: checking for msg_accrights in msghdr" >&5
51519 echo $ECHO_N "checking for msg_accrights in msghdr... $ECHO_C" >&6
51520 if test "${ol_cv_msghdr_msg_accrights+set}" = set; then
51521 echo $ECHO_N "(cached) $ECHO_C" >&6
51523 cat >conftest.$ac_ext <<_ACEOF
51526 cat confdefs.h >>conftest.$ac_ext
51527 cat >>conftest.$ac_ext <<_ACEOF
51528 /* end confdefs.h. */
51529 #include <sys/socket.h>
51533 struct msghdr m; m.msg_accrightslen=0
51538 rm -f conftest.$ac_objext
51539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51540 (eval $ac_compile) 2>conftest.er1
51542 grep -v '^ *+' conftest.er1 >conftest.err
51544 cat conftest.err >&5
51545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51546 (exit $ac_status); } &&
51547 { ac_try='test -z "$ac_c_werror_flag"
51548 || test ! -s conftest.err'
51549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51550 (eval $ac_try) 2>&5
51552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51553 (exit $ac_status); }; } &&
51554 { ac_try='test -s conftest.$ac_objext'
51555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51556 (eval $ac_try) 2>&5
51558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51559 (exit $ac_status); }; }; then
51560 ol_cv_msghdr_msg_accrights=yes
51562 echo "$as_me: failed program was:" >&5
51563 sed 's/^/| /' conftest.$ac_ext >&5
51565 ol_cv_msghdr_msg_accrights=no
51567 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51569 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_accrights" >&5
51570 echo "${ECHO_T}$ol_cv_msghdr_msg_accrights" >&6
51571 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
51573 cat >>confdefs.h <<\_ACEOF
51574 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
51579 if test "$ac_cv_func_getpeereid" != yes; then
51580 echo "$as_me:$LINENO: checking for msg_control in msghdr" >&5
51581 echo $ECHO_N "checking for msg_control in msghdr... $ECHO_C" >&6
51582 if test "${ol_cv_msghdr_msg_control+set}" = set; then
51583 echo $ECHO_N "(cached) $ECHO_C" >&6
51585 cat >conftest.$ac_ext <<_ACEOF
51588 cat confdefs.h >>conftest.$ac_ext
51589 cat >>conftest.$ac_ext <<_ACEOF
51590 /* end confdefs.h. */
51591 #include <sys/socket.h>
51595 struct msghdr m; m.msg_control=(struct cmsghdr *)0
51600 rm -f conftest.$ac_objext
51601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51602 (eval $ac_compile) 2>conftest.er1
51604 grep -v '^ *+' conftest.er1 >conftest.err
51606 cat conftest.err >&5
51607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51608 (exit $ac_status); } &&
51609 { ac_try='test -z "$ac_c_werror_flag"
51610 || test ! -s conftest.err'
51611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51612 (eval $ac_try) 2>&5
51614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51615 (exit $ac_status); }; } &&
51616 { ac_try='test -s conftest.$ac_objext'
51617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51618 (eval $ac_try) 2>&5
51620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51621 (exit $ac_status); }; }; then
51622 ol_cv_msghdr_msg_control=yes
51624 echo "$as_me: failed program was:" >&5
51625 sed 's/^/| /' conftest.$ac_ext >&5
51627 ol_cv_msghdr_msg_control=no
51629 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51631 echo "$as_me:$LINENO: result: $ol_cv_msghdr_msg_control" >&5
51632 echo "${ECHO_T}$ol_cv_msghdr_msg_control" >&6
51633 if test $ol_cv_msghdr_msg_control = "yes" ; then
51635 cat >>confdefs.h <<\_ACEOF
51636 #define HAVE_MSGHDR_MSG_CONTROL 1
51642 LIBSRCS="$LIBSRCS getpeereid.c"
51644 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
51645 if test "$ac_cv_func_snprintf" != yes; then
51647 cat >>confdefs.h <<\_ACEOF
51648 #define snprintf ber_pvt_snprintf
51652 if test "$ac_cv_func_vsnprintf" != yes; then
51654 cat >>confdefs.h <<\_ACEOF
51655 #define vsnprintf ber_pvt_vsnprintf
51662 if test "$ol_enable_slapi" != no ; then
51664 for ac_header in ltdl.h
51666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
51667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51668 echo "$as_me:$LINENO: checking for $ac_header" >&5
51669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51671 echo $ECHO_N "(cached) $ECHO_C" >&6
51673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51674 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51676 # Is the header compilable?
51677 echo "$as_me:$LINENO: checking $ac_header usability" >&5
51678 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
51679 cat >conftest.$ac_ext <<_ACEOF
51682 cat confdefs.h >>conftest.$ac_ext
51683 cat >>conftest.$ac_ext <<_ACEOF
51684 /* end confdefs.h. */
51685 $ac_includes_default
51686 #include <$ac_header>
51688 rm -f conftest.$ac_objext
51689 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
51690 (eval $ac_compile) 2>conftest.er1
51692 grep -v '^ *+' conftest.er1 >conftest.err
51694 cat conftest.err >&5
51695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51696 (exit $ac_status); } &&
51697 { ac_try='test -z "$ac_c_werror_flag"
51698 || test ! -s conftest.err'
51699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51700 (eval $ac_try) 2>&5
51702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51703 (exit $ac_status); }; } &&
51704 { ac_try='test -s conftest.$ac_objext'
51705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51706 (eval $ac_try) 2>&5
51708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51709 (exit $ac_status); }; }; then
51710 ac_header_compiler=yes
51712 echo "$as_me: failed program was:" >&5
51713 sed 's/^/| /' conftest.$ac_ext >&5
51715 ac_header_compiler=no
51717 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
51718 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51719 echo "${ECHO_T}$ac_header_compiler" >&6
51721 # Is the header present?
51722 echo "$as_me:$LINENO: checking $ac_header presence" >&5
51723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
51724 cat >conftest.$ac_ext <<_ACEOF
51727 cat confdefs.h >>conftest.$ac_ext
51728 cat >>conftest.$ac_ext <<_ACEOF
51729 /* end confdefs.h. */
51730 #include <$ac_header>
51732 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
51733 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
51735 grep -v '^ *+' conftest.er1 >conftest.err
51737 cat conftest.err >&5
51738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51739 (exit $ac_status); } >/dev/null; then
51740 if test -s conftest.err; then
51741 ac_cpp_err=$ac_c_preproc_warn_flag
51742 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
51749 if test -z "$ac_cpp_err"; then
51750 ac_header_preproc=yes
51752 echo "$as_me: failed program was:" >&5
51753 sed 's/^/| /' conftest.$ac_ext >&5
51755 ac_header_preproc=no
51757 rm -f conftest.err conftest.$ac_ext
51758 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51759 echo "${ECHO_T}$ac_header_preproc" >&6
51761 # So? What about this header?
51762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51768 ac_header_preproc=yes
51771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
51774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
51775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
51778 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
51779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51785 ## ------------------------------------------ ##
51786 ## Report this to the AC_PACKAGE_NAME lists. ##
51787 ## ------------------------------------------ ##
51790 sed "s/^/$as_me: WARNING: /" >&2
51793 echo "$as_me:$LINENO: checking for $ac_header" >&5
51794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
51795 if eval "test \"\${$as_ac_Header+set}\" = set"; then
51796 echo $ECHO_N "(cached) $ECHO_C" >&6
51798 eval "$as_ac_Header=\$ac_header_preproc"
51800 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
51801 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
51804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
51805 cat >>confdefs.h <<_ACEOF
51806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
51814 if test $ac_cv_header_ltdl_h != yes ; then
51815 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
51816 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
51817 { (exit 1); exit 1; }; }
51819 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
51820 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
51821 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
51822 echo $ECHO_N "(cached) $ECHO_C" >&6
51824 ac_check_lib_save_LIBS=$LIBS
51825 LIBS="-lltdl $LIBS"
51826 cat >conftest.$ac_ext <<_ACEOF
51829 cat confdefs.h >>conftest.$ac_ext
51830 cat >>conftest.$ac_ext <<_ACEOF
51831 /* end confdefs.h. */
51833 /* Override any gcc2 internal prototype to avoid an error. */
51837 /* We use char because int might match the return type of a gcc2
51838 builtin and then its argument prototype would still apply. */
51848 rm -f conftest.$ac_objext conftest$ac_exeext
51849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
51850 (eval $ac_link) 2>conftest.er1
51852 grep -v '^ *+' conftest.er1 >conftest.err
51854 cat conftest.err >&5
51855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51856 (exit $ac_status); } &&
51857 { ac_try='test -z "$ac_c_werror_flag"
51858 || test ! -s conftest.err'
51859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51860 (eval $ac_try) 2>&5
51862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51863 (exit $ac_status); }; } &&
51864 { ac_try='test -s conftest$ac_exeext'
51865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
51866 (eval $ac_try) 2>&5
51868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
51869 (exit $ac_status); }; }; then
51870 ac_cv_lib_ltdl_lt_dlinit=yes
51872 echo "$as_me: failed program was:" >&5
51873 sed 's/^/| /' conftest.$ac_ext >&5
51875 ac_cv_lib_ltdl_lt_dlinit=no
51877 rm -f conftest.err conftest.$ac_objext \
51878 conftest$ac_exeext conftest.$ac_ext
51879 LIBS=$ac_check_lib_save_LIBS
51881 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
51882 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
51883 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
51886 LIBSLAPI=libslapi.a
51887 LIBSLAPITOOLS=../libslapi.a
51889 cat >>confdefs.h <<\_ACEOF
51890 #define HAVE_LIBLTDL 1
51895 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
51896 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
51897 { (exit 1); exit 1; }; }
51902 cat >>confdefs.h <<\_ACEOF
51903 #define LDAP_SLAPI 1
51908 if test "$ol_enable_debug" != no ; then
51910 cat >>confdefs.h <<\_ACEOF
51911 #define LDAP_DEBUG 1
51915 if test "$ol_enable_syslog" = yes ; then
51917 cat >>confdefs.h <<\_ACEOF
51918 #define LDAP_SYSLOG 1
51922 if test "$ol_link_kbind" != no ; then
51924 cat >>confdefs.h <<\_ACEOF
51925 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
51929 if test "$ol_enable_proctitle" != no ; then
51931 cat >>confdefs.h <<\_ACEOF
51932 #define LDAP_PROCTITLE 1
51936 if test "$ol_enable_referrals" != no ; then
51938 cat >>confdefs.h <<\_ACEOF
51939 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
51943 if test "$ol_enable_local" != no; then
51945 cat >>confdefs.h <<\_ACEOF
51946 #define LDAP_PF_LOCAL 1
51950 if test "$ol_link_ipv6" != no; then
51952 cat >>confdefs.h <<\_ACEOF
51953 #define LDAP_PF_INET6 1
51957 if test "$ol_enable_cleartext" != no ; then
51959 cat >>confdefs.h <<\_ACEOF
51960 #define SLAPD_CLEARTEXT 1
51964 if test "$ol_enable_crypt" != no ; then
51966 cat >>confdefs.h <<\_ACEOF
51967 #define SLAPD_CRYPT 1
51971 if test "$ol_link_spasswd" != no ; then
51973 cat >>confdefs.h <<\_ACEOF
51974 #define SLAPD_SPASSWD 1
51978 if test "$ol_enable_multimaster" != no ; then
51980 cat >>confdefs.h <<\_ACEOF
51981 #define SLAPD_MULTIMASTER 1
51985 if test "$ol_enable_rlookups" != no ; then
51987 cat >>confdefs.h <<\_ACEOF
51988 #define SLAPD_RLOOKUPS 1
51992 if test "$ol_enable_aci" != no ; then
51994 cat >>confdefs.h <<\_ACEOF
51995 #define SLAPD_ACI_ENABLED 1
52000 if test "$ol_link_modules" != no ; then
52002 cat >>confdefs.h <<\_ACEOF
52003 #define SLAPD_MODULES 1
52007 SLAPD_MODULES_LDFLAGS="-dlopen self"
52011 cat >>confdefs.h <<\_ACEOF
52012 #define SLAPD_MOD_STATIC 1
52016 cat >>confdefs.h <<\_ACEOF
52017 #define SLAPD_MOD_DYNAMIC 2
52021 if test "$ol_enable_bdb" != no ; then
52023 BUILD_BDB=$ol_enable_bdb
52024 if test "$ol_enable_bdb" = mod ; then
52025 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
52026 MFLAG=SLAPD_MOD_DYNAMIC
52028 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
52029 MFLAG=SLAPD_MOD_STATIC
52032 cat >>confdefs.h <<_ACEOF
52033 #define SLAPD_BDB $MFLAG
52038 if test "$ol_enable_dnssrv" != no ; then
52040 BUILD_DNSSRV=$ol_enable_dnssrv
52041 if test "$ol_enable_dnssrv" = mod ; then
52042 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
52043 MFLAG=SLAPD_MOD_DYNAMIC
52045 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
52046 MFLAG=SLAPD_MOD_STATIC
52049 cat >>confdefs.h <<_ACEOF
52050 #define SLAPD_DNSSRV $MFLAG
52055 if test "$ol_enable_hdb" != no ; then
52057 BUILD_HDB=$ol_enable_hdb
52058 if test "$ol_enable_hdb" = mod ; then
52059 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
52060 MFLAG=SLAPD_MOD_DYNAMIC
52062 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
52063 MFLAG=SLAPD_MOD_STATIC
52066 cat >>confdefs.h <<_ACEOF
52067 #define SLAPD_HDB $MFLAG
52072 if test "$ol_enable_ldap" != no ; then
52074 BUILD_LDAP=$ol_enable_ldap
52075 if test "$ol_enable_ldap" = mod ; then
52076 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
52077 MFLAG=SLAPD_MOD_DYNAMIC
52079 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
52080 MFLAG=SLAPD_MOD_STATIC
52083 cat >>confdefs.h <<_ACEOF
52084 #define SLAPD_LDAP $MFLAG
52089 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
52091 BUILD_LDBM=$ol_enable_ldbm
52092 if test "$ol_enable_ldbm" = mod ; then
52093 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
52094 MFLAG=SLAPD_MOD_DYNAMIC
52096 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
52097 MFLAG=SLAPD_MOD_STATIC
52100 cat >>confdefs.h <<_ACEOF
52101 #define SLAPD_LDBM $MFLAG
52106 if test "$ol_enable_meta" != no ; then
52108 BUILD_META=$ol_enable_meta
52110 if test "$ol_enable_meta" = mod ; then
52111 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
52112 MFLAG=SLAPD_MOD_DYNAMIC
52114 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
52115 MFLAG=SLAPD_MOD_STATIC
52118 cat >>confdefs.h <<_ACEOF
52119 #define SLAPD_META $MFLAG
52124 if test "$ol_enable_monitor" != no ; then
52126 BUILD_MONITOR=$ol_enable_monitor
52127 if test "$ol_enable_monitor" = mod ; then
52128 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
52129 MFLAG=SLAPD_MOD_DYNAMIC
52131 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
52132 MFLAG=SLAPD_MOD_STATIC
52135 cat >>confdefs.h <<_ACEOF
52136 #define SLAPD_MONITOR $MFLAG
52141 if test "$ol_enable_null" != no ; then
52143 BUILD_NULL=$ol_enable_null
52144 if test "$ol_enable_null" = mod ; then
52145 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
52146 MFLAG=SLAPD_MOD_DYNAMIC
52148 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
52149 MFLAG=SLAPD_MOD_STATIC
52152 cat >>confdefs.h <<_ACEOF
52153 #define SLAPD_NULL $MFLAG
52158 if test "$ol_enable_passwd" != no ; then
52160 BUILD_PASSWD=$ol_enable_passwd
52161 if test "$ol_enable_passwd" = mod ; then
52162 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
52163 MFLAG=SLAPD_MOD_DYNAMIC
52165 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
52166 MFLAG=SLAPD_MOD_STATIC
52169 cat >>confdefs.h <<_ACEOF
52170 #define SLAPD_PASSWD $MFLAG
52175 if test "$ol_link_perl" != no ; then
52177 BUILD_PERL=$ol_enable_perl
52178 if test "$ol_enable_perl" = mod ; then
52179 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
52180 MFLAG=SLAPD_MOD_DYNAMIC
52182 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
52183 MFLAG=SLAPD_MOD_STATIC
52186 cat >>confdefs.h <<_ACEOF
52187 #define SLAPD_PERL $MFLAG
52192 if test "$ol_enable_relay" != no ; then
52194 BUILD_RELAY=$ol_enable_relay
52195 if test "$ol_enable_relay" = mod ; then
52196 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
52197 MFLAG=SLAPD_MOD_DYNAMIC
52199 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
52200 MFLAG=SLAPD_MOD_STATIC
52203 cat >>confdefs.h <<_ACEOF
52204 #define SLAPD_RELAY $MFLAG
52209 if test "$ol_enable_shell" != no ; then
52210 if test "$ol_link_thread" != no ; then
52211 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
52212 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
52215 BUILD_SHELL=$ol_enable_shell
52216 if test "$ol_enable_shell" = mod ; then
52217 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
52218 MFLAG=SLAPD_MOD_DYNAMIC
52220 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
52221 MFLAG=SLAPD_MOD_STATIC
52224 cat >>confdefs.h <<_ACEOF
52225 #define SLAPD_SHELL $MFLAG
52230 if test "$ol_link_sql" != no ; then
52232 BUILD_SQL=$ol_enable_sql
52233 if test "$ol_enable_sql" = mod; then
52234 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
52235 MFLAG=SLAPD_MOD_DYNAMIC
52237 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
52238 MFLAG=SLAPD_MOD_STATIC
52241 cat >>confdefs.h <<_ACEOF
52242 #define SLAPD_SQL $MFLAG
52247 if test "$ol_enable_accesslog" != no ; then
52248 BUILD_ACCESSLOG=$ol_enable_accesslog
52249 if test "$ol_enable_accesslog" = mod ; then
52250 MFLAG=SLAPD_MOD_DYNAMIC
52251 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
52253 MFLAG=SLAPD_MOD_STATIC
52254 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
52257 cat >>confdefs.h <<_ACEOF
52258 #define SLAPD_OVER_ACCESSLOG $MFLAG
52263 if test "$ol_enable_denyop" != no ; then
52264 BUILD_DENYOP=$ol_enable_denyop
52265 if test "$ol_enable_denyop" = mod ; then
52266 MFLAG=SLAPD_MOD_DYNAMIC
52267 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
52269 MFLAG=SLAPD_MOD_STATIC
52270 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
52273 cat >>confdefs.h <<_ACEOF
52274 #define SLAPD_OVER_DENYOP $MFLAG
52279 if test "$ol_enable_dyngroup" != no ; then
52280 BUILD_DYNGROUP=$ol_enable_dyngroup
52281 if test "$ol_enable_dyngroup" = mod ; then
52282 MFLAG=SLAPD_MOD_DYNAMIC
52283 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
52285 MFLAG=SLAPD_MOD_STATIC
52286 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
52289 cat >>confdefs.h <<_ACEOF
52290 #define SLAPD_OVER_DYNGROUP $MFLAG
52295 if test "$ol_enable_dynlist" != no ; then
52296 BUILD_DYNLIST=$ol_enable_dynlist
52297 if test "$ol_enable_dynlist" = mod ; then
52298 MFLAG=SLAPD_MOD_DYNAMIC
52299 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
52301 MFLAG=SLAPD_MOD_STATIC
52302 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
52305 cat >>confdefs.h <<_ACEOF
52306 #define SLAPD_OVER_DYNLIST $MFLAG
52311 if test "$ol_enable_glue" != no ; then
52312 BUILD_GLUE=$ol_enable_glue
52313 if test "$ol_enable_glue" = mod ; then
52314 MFLAG=SLAPD_MOD_DYNAMIC
52315 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
52317 MFLAG=SLAPD_MOD_STATIC
52318 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
52321 cat >>confdefs.h <<_ACEOF
52322 #define SLAPD_OVER_GLUE $MFLAG
52327 if test "$ol_enable_lastmod" != no ; then
52328 BUILD_LASTMOD=$ol_enable_lastmod
52329 if test "$ol_enable_lastmod" = mod ; then
52330 MFLAG=SLAPD_MOD_DYNAMIC
52331 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
52333 MFLAG=SLAPD_MOD_STATIC
52334 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
52337 cat >>confdefs.h <<_ACEOF
52338 #define SLAPD_OVER_LASTMOD $MFLAG
52343 if test "$ol_enable_ppolicy" != no ; then
52344 BUILD_PPOLICY=$ol_enable_ppolicy
52345 if test "$ol_enable_ppolicy" = mod ; then
52346 MFLAG=SLAPD_MOD_DYNAMIC
52347 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
52349 MFLAG=SLAPD_MOD_STATIC
52350 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
52353 cat >>confdefs.h <<_ACEOF
52354 #define SLAPD_OVER_PPOLICY $MFLAG
52359 if test "$ol_enable_proxycache" != no ; then
52360 BUILD_PROXYCACHE=$ol_enable_proxycache
52361 if test "$ol_enable_proxycache" = mod ; then
52362 MFLAG=SLAPD_MOD_DYNAMIC
52363 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
52365 MFLAG=SLAPD_MOD_STATIC
52366 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
52369 cat >>confdefs.h <<_ACEOF
52370 #define SLAPD_OVER_PROXYCACHE $MFLAG
52375 if test "$ol_enable_refint" != no ; then
52376 BUILD_REFINT=$ol_enable_refint
52377 if test "$ol_enable_refint" = mod ; then
52378 MFLAG=SLAPD_MOD_DYNAMIC
52379 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
52381 MFLAG=SLAPD_MOD_STATIC
52382 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
52385 cat >>confdefs.h <<_ACEOF
52386 #define SLAPD_OVER_REFINT $MFLAG
52391 if test "$ol_enable_retcode" != no ; then
52392 BUILD_RETCODE=$ol_enable_retcode
52393 if test "$ol_enable_retcode" = mod ; then
52394 MFLAG=SLAPD_MOD_DYNAMIC
52395 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
52397 MFLAG=SLAPD_MOD_STATIC
52398 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
52401 cat >>confdefs.h <<_ACEOF
52402 #define SLAPD_OVER_RETCODE $MFLAG
52407 if test "$ol_enable_rwm" != no ; then
52409 BUILD_RWM=$ol_enable_rwm
52410 if test "$ol_enable_rwm" = mod ; then
52411 MFLAG=SLAPD_MOD_DYNAMIC
52412 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
52414 MFLAG=SLAPD_MOD_STATIC
52415 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
52418 cat >>confdefs.h <<_ACEOF
52419 #define SLAPD_OVER_RWM $MFLAG
52424 if test "$ol_enable_syncprov" != no ; then
52425 BUILD_SYNCPROV=$ol_enable_syncprov
52426 if test "$ol_enable_syncprov" = mod ; then
52427 MFLAG=SLAPD_MOD_DYNAMIC
52428 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
52430 MFLAG=SLAPD_MOD_STATIC
52431 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
52434 cat >>confdefs.h <<_ACEOF
52435 #define SLAPD_OVER_SYNCPROV $MFLAG
52440 if test "$ol_enable_translucent" != no ; then
52441 BUILD_TRANSLUCENT=$ol_enable_translucent
52442 if test "$ol_enable_translucent" = mod ; then
52443 MFLAG=SLAPD_MOD_DYNAMIC
52444 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
52446 MFLAG=SLAPD_MOD_STATIC
52447 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
52450 cat >>confdefs.h <<_ACEOF
52451 #define SLAPD_OVER_TRANSLUCENT $MFLAG
52456 if test "$ol_enable_unique" != no ; then
52457 BUILD_UNIQUE=$ol_enable_unique
52458 if test "$ol_enable_unique" = mod ; then
52459 MFLAG=SLAPD_MOD_DYNAMIC
52460 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
52462 MFLAG=SLAPD_MOD_STATIC
52463 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
52466 cat >>confdefs.h <<_ACEOF
52467 #define SLAPD_OVER_UNIQUE $MFLAG
52472 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
52473 $BUILD_SLAPD = yes ; then
52477 if test "$ol_enable_rewrite" != no ; then
52479 cat >>confdefs.h <<\_ACEOF
52480 #define ENABLE_REWRITE 1
52486 if test "$ol_enable_slapi" != no ; then
52488 cat >>confdefs.h <<\_ACEOF
52489 #define ENABLE_SLAPI 1
52493 SLAPD_SLAPI_DEPEND=libslapi.a
52498 if test "$ac_cv_mingw32" = yes ; then
52500 SLAPD_MODULES_LDFLAGS=
52583 # Check whether --with-xxinstall or --without-xxinstall was given.
52584 if test "${with_xxinstall+set}" = set; then
52585 withval="$with_xxinstall"
52590 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"
52592 ac_config_commands="$ac_config_commands default"
52596 test "x$prefix" = xNONE && prefix=$ac_default_prefix
52597 # Let make expand exec_prefix.
52598 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
52600 # VPATH may cause trouble with some makes, so we remove $(srcdir),
52601 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
52602 # trailing colons and then remove the whole line if VPATH becomes empty
52603 # (actually we leave an empty line to preserve line numbers).
52604 if test "x$srcdir" = x.; then
52605 ac_vpsub='/^[ ]*VPATH[ ]*=/{
52606 s/:*\$(srcdir):*/:/;
52607 s/:*\${srcdir}:*/:/;
52609 s/^\([^=]*=[ ]*\):*/\1/;
52615 DEFS=-DHAVE_CONFIG_H
52619 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
52620 # 1. Remove the extension, and $U if already installed.
52621 ac_i=`echo "$ac_i" |
52622 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
52624 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
52625 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
52627 LIBOBJS=$ac_libobjs
52629 LTLIBOBJS=$ac_ltlibobjs
52632 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
52633 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
52634 Usually this means the macro was only invoked conditionally." >&5
52635 echo "$as_me: error: conditional \"AMDEP\" was never defined.
52636 Usually this means the macro was only invoked conditionally." >&2;}
52637 { (exit 1); exit 1; }; }
52639 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
52640 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
52641 Usually this means the macro was only invoked conditionally." >&5
52642 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
52643 Usually this means the macro was only invoked conditionally." >&2;}
52644 { (exit 1); exit 1; }; }
52646 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
52647 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
52648 Usually this means the macro was only invoked conditionally." >&5
52649 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
52650 Usually this means the macro was only invoked conditionally." >&2;}
52651 { (exit 1); exit 1; }; }
52653 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
52654 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
52655 Usually this means the macro was only invoked conditionally." >&5
52656 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
52657 Usually this means the macro was only invoked conditionally." >&2;}
52658 { (exit 1); exit 1; }; }
52661 : ${CONFIG_STATUS=./config.status}
52662 ac_clean_files_save=$ac_clean_files
52663 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
52664 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
52665 echo "$as_me: creating $CONFIG_STATUS" >&6;}
52666 cat >$CONFIG_STATUS <<_ACEOF
52668 # Generated by $as_me.
52669 # Run this file to recreate the current configuration.
52670 # Compiler output produced by configure, useful for debugging
52671 # configure, is in config.log if it exists.
52674 ac_cs_recheck=false
52676 SHELL=\${CONFIG_SHELL-$SHELL}
52679 cat >>$CONFIG_STATUS <<\_ACEOF
52680 ## --------------------- ##
52681 ## M4sh Initialization. ##
52682 ## --------------------- ##
52684 # Be Bourne compatible
52685 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
52688 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
52689 # is contrary to our usage. Disable this feature.
52690 alias -g '${1+"$@"}'='"$@"'
52691 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
52694 DUALCASE=1; export DUALCASE # for MKS sh
52696 # Support unset when possible.
52697 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
52704 # Work around bugs in pre-3.0 UWIN ksh.
52705 $as_unset ENV MAIL MAILPATH
52712 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
52713 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
52714 LC_TELEPHONE LC_TIME
52716 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
52717 eval $as_var=C; export $as_var
52723 # Required to use basename.
52724 if expr a : '\(a\)' >/dev/null 2>&1; then
52730 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
52731 as_basename=basename
52737 # Name of the executable.
52738 as_me=`$as_basename "$0" ||
52739 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
52740 X"$0" : 'X\(//\)$' \| \
52741 X"$0" : 'X\(/\)$' \| \
52742 . : '\(.\)' 2>/dev/null ||
52744 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
52745 /^X\/\(\/\/\)$/{ s//\1/; q; }
52746 /^X\/\(\/\).*/{ s//\1/; q; }
52750 # PATH needs CR, and LINENO needs CR and PATH.
52751 # Avoid depending upon Character Ranges.
52752 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
52753 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
52754 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
52755 as_cr_digits='0123456789'
52756 as_cr_alnum=$as_cr_Letters$as_cr_digits
52758 # The user is always right.
52759 if test "${PATH_SEPARATOR+set}" != set; then
52760 echo "#! /bin/sh" >conf$$.sh
52761 echo "exit 0" >>conf$$.sh
52763 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
52772 as_lineno_1=$LINENO
52773 as_lineno_2=$LINENO
52774 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
52775 test "x$as_lineno_1" != "x$as_lineno_2" &&
52776 test "x$as_lineno_3" = "x$as_lineno_2" || {
52777 # Find who we are. Look in the path if we contain no path at all
52780 *[\\/]* ) as_myself=$0 ;;
52781 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52782 for as_dir in $PATH
52785 test -z "$as_dir" && as_dir=.
52786 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
52791 # We did not find ourselves, most probably we were run as `sh COMMAND'
52792 # in which case we are not to be found in the path.
52793 if test "x$as_myself" = x; then
52796 if test ! -f "$as_myself"; then
52797 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
52798 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
52799 { (exit 1); exit 1; }; }
52801 case $CONFIG_SHELL in
52803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52804 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
52807 test -z "$as_dir" && as_dir=.
52808 for as_base in sh bash ksh sh5; do
52811 if ("$as_dir/$as_base" -c '
52812 as_lineno_1=$LINENO
52813 as_lineno_2=$LINENO
52814 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
52815 test "x$as_lineno_1" != "x$as_lineno_2" &&
52816 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
52817 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
52818 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
52819 CONFIG_SHELL=$as_dir/$as_base
52820 export CONFIG_SHELL
52821 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
52829 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
52830 # uniformly replaced by the line number. The first 'sed' inserts a
52831 # line-number line before each line; the second 'sed' does the real
52832 # work. The second script uses 'N' to pair each line-number line
52833 # with the numbered line, and appends trailing '-' during
52834 # substitution so that $LINENO is not a special case at line end.
52835 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
52836 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
52837 sed '=' <$as_myself |
52842 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
52845 s,^['$as_cr_digits']*\n,,
52846 ' >$as_me.lineno &&
52847 chmod +x $as_me.lineno ||
52848 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
52849 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
52850 { (exit 1); exit 1; }; }
52852 # Don't try to exec as it changes $[0], causing all sort of problems
52853 # (the dirname of $[0] is not the place where we might find the
52854 # original and so on. Autoconf is especially sensible to this).
52856 # Exit status is that of the last command.
52861 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
52862 *c*,-n*) ECHO_N= ECHO_C='
52864 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
52865 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
52868 if expr a : '\(a\)' >/dev/null 2>&1; then
52874 rm -f conf$$ conf$$.exe conf$$.file
52876 if ln -s conf$$.file conf$$ 2>/dev/null; then
52877 # We could just check for DJGPP; but this test a) works b) is more generic
52878 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
52879 if test -f conf$$.exe; then
52880 # Don't use ln at all; we don't have any links
52885 elif ln conf$$.file conf$$ 2>/dev/null; then
52890 rm -f conf$$ conf$$.exe conf$$.file
52892 if mkdir -p . 2>/dev/null; then
52895 test -d ./-p && rmdir ./-p
52899 as_executable_p="test -f"
52901 # Sed expression to map a string onto a valid CPP name.
52902 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
52904 # Sed expression to map a string onto a valid variable name.
52905 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
52909 # We need space, tab and new line, in precisely that order.
52919 # Open the log real soon, to keep \$[0] and so on meaningful, and to
52920 # report actual input values of CONFIG_FILES etc. instead of their
52921 # values after options handling. Logging --version etc. is OK.
52925 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
52926 ## Running $as_me. ##
52931 This file was extended by $as_me, which was
52932 generated by GNU Autoconf 2.59. Invocation command line was
52934 CONFIG_FILES = $CONFIG_FILES
52935 CONFIG_HEADERS = $CONFIG_HEADERS
52936 CONFIG_LINKS = $CONFIG_LINKS
52937 CONFIG_COMMANDS = $CONFIG_COMMANDS
52941 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
52945 # Files that config.status was made for.
52946 if test -n "$ac_config_files"; then
52947 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
52950 if test -n "$ac_config_headers"; then
52951 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
52954 if test -n "$ac_config_links"; then
52955 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
52958 if test -n "$ac_config_commands"; then
52959 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
52962 cat >>$CONFIG_STATUS <<\_ACEOF
52965 \`$as_me' instantiates files from templates according to the
52966 current configuration.
52968 Usage: $0 [OPTIONS] [FILE]...
52970 -h, --help print this help, then exit
52971 -V, --version print version number, then exit
52972 -q, --quiet do not print progress messages
52973 -d, --debug don't remove temporary files
52974 --recheck update $as_me by reconfiguring in the same conditions
52975 --file=FILE[:TEMPLATE]
52976 instantiate the configuration file FILE
52977 --header=FILE[:TEMPLATE]
52978 instantiate the configuration header FILE
52980 Configuration files:
52983 Configuration headers:
52986 Configuration commands:
52989 Report bugs to <bug-autoconf@gnu.org>."
52992 cat >>$CONFIG_STATUS <<_ACEOF
52995 configured by $0, generated by GNU Autoconf 2.59,
52996 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
52998 Copyright (C) 2003 Free Software Foundation, Inc.
52999 This config.status script is free software; the Free Software Foundation
53000 gives unlimited permission to copy, distribute and modify it."
53005 cat >>$CONFIG_STATUS <<\_ACEOF
53006 # If no file are specified by the user, then we need to provide default
53007 # value. By we need to know if files were specified by the user.
53013 ac_option=`expr "x$1" : 'x\([^=]*\)='`
53014 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
53022 *) # This is not an option, so the user has probably given explicit
53025 ac_need_defaults=false;;
53029 # Handling of the options.
53031 cat >>$CONFIG_STATUS <<\_ACEOF
53032 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53034 --version | --vers* | -V )
53035 echo "$ac_cs_version"; exit 0 ;;
53037 # Conflict between --help and --header
53038 { { echo "$as_me:$LINENO: error: ambiguous option: $1
53039 Try \`$0 --help' for more information." >&5
53040 echo "$as_me: error: ambiguous option: $1
53041 Try \`$0 --help' for more information." >&2;}
53042 { (exit 1); exit 1; }; };;
53043 --help | --hel | -h )
53044 echo "$ac_cs_usage"; exit 0 ;;
53045 --debug | --d* | -d )
53047 --file | --fil | --fi | --f )
53049 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53050 ac_need_defaults=false;;
53051 --header | --heade | --head | --hea )
53053 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53054 ac_need_defaults=false;;
53055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53056 | -silent | --silent | --silen | --sile | --sil | --si | --s)
53059 # This is an error.
53060 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
53061 Try \`$0 --help' for more information." >&5
53062 echo "$as_me: error: unrecognized option: $1
53063 Try \`$0 --help' for more information." >&2;}
53064 { (exit 1); exit 1; }; } ;;
53066 *) ac_config_targets="$ac_config_targets $1" ;;
53072 ac_configure_extra_args=
53074 if $ac_cs_silent; then
53076 ac_configure_extra_args="$ac_configure_extra_args --silent"
53080 cat >>$CONFIG_STATUS <<_ACEOF
53081 if \$ac_cs_recheck; then
53082 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53083 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53088 cat >>$CONFIG_STATUS <<_ACEOF
53090 # INIT-COMMANDS section.
53093 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
53094 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
53100 cat >>$CONFIG_STATUS <<\_ACEOF
53101 for ac_config_target in $ac_config_targets
53103 case "$ac_config_target" in
53104 # Handling of arguments.
53105 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
53106 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
53107 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
53108 "doc/man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
53109 "doc/man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
53110 "doc/man/man5/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
53111 "doc/man/man8/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
53112 "clients/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
53113 "clients/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
53114 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
53115 "libraries/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
53116 "libraries/liblber/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53117 "libraries/libldap/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53118 "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" ;;
53119 "libraries/liblunicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53120 "libraries/liblutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
53121 "libraries/librewrite/Makefile" ) CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
53122 "servers/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
53123 "servers/slapd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
53124 "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" ;;
53125 "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" ;;
53126 "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" ;;
53127 "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" ;;
53128 "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" ;;
53129 "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" ;;
53130 "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" ;;
53131 "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" ;;
53132 "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" ;;
53133 "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" ;;
53134 "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" ;;
53135 "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" ;;
53136 "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" ;;
53137 "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" ;;
53138 "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" ;;
53139 "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" ;;
53140 "servers/slapd/overlays/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
53141 "servers/slurpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk" ;;
53142 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
53143 "tests/run" ) CONFIG_FILES="$CONFIG_FILES tests/run" ;;
53144 "tests/progs/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
53145 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
53146 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
53147 "include/portable.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
53148 "include/ldap_features.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
53149 "include/lber_types.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
53150 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53151 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53152 { (exit 1); exit 1; }; };;
53156 # If the user did not use the arguments to specify the items to instantiate,
53157 # then the envvar interface is used. Set only those that are not.
53158 # We use the long form for the default assignment because of an extremely
53159 # bizarre bug on SunOS 4.1.3.
53160 if $ac_need_defaults; then
53161 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53162 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53163 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53166 # Have a temporary directory for convenience. Make it in the build tree
53167 # simply because there is no reason to put it here, and in addition,
53168 # creating and moving files from /tmp can sometimes cause problems.
53169 # Create a temporary directory, and hook for its removal unless debugging.
53172 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
53173 trap '{ (exit 1); exit 1; }' 1 2 13 15
53176 # Create a (secure) tmp directory for tmp files.
53179 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
53180 test -n "$tmp" && test -d "$tmp"
53183 tmp=./confstat$$-$RANDOM
53184 (umask 077 && mkdir $tmp)
53187 echo "$me: cannot create a temporary directory in ." >&2
53188 { (exit 1); exit 1; }
53193 cat >>$CONFIG_STATUS <<_ACEOF
53196 # CONFIG_FILES section.
53199 # No need to generate the scripts if there are no CONFIG_FILES.
53200 # This happens for instance when ./config.status config.h
53201 if test -n "\$CONFIG_FILES"; then
53202 # Protect against being on the right side of a sed subst in config.status.
53203 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
53204 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
53205 s,@SHELL@,$SHELL,;t t
53206 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
53207 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
53208 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
53209 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
53210 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
53211 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
53212 s,@exec_prefix@,$exec_prefix,;t t
53213 s,@prefix@,$prefix,;t t
53214 s,@program_transform_name@,$program_transform_name,;t t
53215 s,@bindir@,$bindir,;t t
53216 s,@sbindir@,$sbindir,;t t
53217 s,@libexecdir@,$libexecdir,;t t
53218 s,@datadir@,$datadir,;t t
53219 s,@sysconfdir@,$sysconfdir,;t t
53220 s,@sharedstatedir@,$sharedstatedir,;t t
53221 s,@localstatedir@,$localstatedir,;t t
53222 s,@libdir@,$libdir,;t t
53223 s,@includedir@,$includedir,;t t
53224 s,@oldincludedir@,$oldincludedir,;t t
53225 s,@infodir@,$infodir,;t t
53226 s,@mandir@,$mandir,;t t
53227 s,@build_alias@,$build_alias,;t t
53228 s,@host_alias@,$host_alias,;t t
53229 s,@target_alias@,$target_alias,;t t
53230 s,@DEFS@,$DEFS,;t t
53231 s,@ECHO_C@,$ECHO_C,;t t
53232 s,@ECHO_N@,$ECHO_N,;t t
53233 s,@ECHO_T@,$ECHO_T,;t t
53234 s,@LIBS@,$LIBS,;t t
53235 s,@build@,$build,;t t
53236 s,@build_cpu@,$build_cpu,;t t
53237 s,@build_vendor@,$build_vendor,;t t
53238 s,@build_os@,$build_os,;t t
53239 s,@host@,$host,;t t
53240 s,@host_cpu@,$host_cpu,;t t
53241 s,@host_vendor@,$host_vendor,;t t
53242 s,@host_os@,$host_os,;t t
53243 s,@target@,$target,;t t
53244 s,@target_cpu@,$target_cpu,;t t
53245 s,@target_vendor@,$target_vendor,;t t
53246 s,@target_os@,$target_os,;t t
53247 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
53248 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
53249 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
53250 s,@CYGPATH_W@,$CYGPATH_W,;t t
53251 s,@PACKAGE@,$PACKAGE,;t t
53252 s,@VERSION@,$VERSION,;t t
53253 s,@ACLOCAL@,$ACLOCAL,;t t
53254 s,@AUTOCONF@,$AUTOCONF,;t t
53255 s,@AUTOMAKE@,$AUTOMAKE,;t t
53256 s,@AUTOHEADER@,$AUTOHEADER,;t t
53257 s,@MAKEINFO@,$MAKEINFO,;t t
53258 s,@install_sh@,$install_sh,;t t
53259 s,@STRIP@,$STRIP,;t t
53260 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
53261 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
53262 s,@mkdir_p@,$mkdir_p,;t t
53264 s,@SET_MAKE@,$SET_MAKE,;t t
53265 s,@am__leading_dot@,$am__leading_dot,;t t
53266 s,@AMTAR@,$AMTAR,;t t
53267 s,@am__tar@,$am__tar,;t t
53268 s,@am__untar@,$am__untar,;t t
53269 s,@OPENLDAP_LIBRELEASE@,$OPENLDAP_LIBRELEASE,;t t
53270 s,@OPENLDAP_LIBVERSION@,$OPENLDAP_LIBVERSION,;t t
53271 s,@OPENLDAP_RELEASE_DATE@,$OPENLDAP_RELEASE_DATE,;t t
53272 s,@top_builddir@,$top_builddir,;t t
53273 s,@ldap_subdir@,$ldap_subdir,;t t
53276 s,@CFLAGS@,$CFLAGS,;t t
53277 s,@LDFLAGS@,$LDFLAGS,;t t
53278 s,@CPPFLAGS@,$CPPFLAGS,;t t
53279 s,@ac_ct_CC@,$ac_ct_CC,;t t
53280 s,@EXEEXT@,$EXEEXT,;t t
53281 s,@OBJEXT@,$OBJEXT,;t t
53282 s,@DEPDIR@,$DEPDIR,;t t
53283 s,@am__include@,$am__include,;t t
53284 s,@am__quote@,$am__quote,;t t
53285 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
53286 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
53287 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
53288 s,@CCDEPMODE@,$CCDEPMODE,;t t
53289 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
53290 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
53291 s,@EGREP@,$EGREP,;t t
53292 s,@LN_S@,$LN_S,;t t
53293 s,@ECHO@,$ECHO,;t t
53294 s,@ac_ct_AR@,$ac_ct_AR,;t t
53295 s,@RANLIB@,$RANLIB,;t t
53296 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
53297 s,@DLLTOOL@,$DLLTOOL,;t t
53298 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
53300 s,@ac_ct_AS@,$ac_ct_AS,;t t
53301 s,@OBJDUMP@,$OBJDUMP,;t t
53302 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
53305 s,@CXXFLAGS@,$CXXFLAGS,;t t
53306 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
53307 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
53308 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
53309 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
53310 s,@CXXCPP@,$CXXCPP,;t t
53312 s,@FFLAGS@,$FFLAGS,;t t
53313 s,@ac_ct_F77@,$ac_ct_F77,;t t
53314 s,@LIBTOOL@,$LIBTOOL,;t t
53315 s,@PERLBIN@,$PERLBIN,;t t
53316 s,@OL_MKDEP@,$OL_MKDEP,;t t
53317 s,@OL_MKDEP_FLAGS@,$OL_MKDEP_FLAGS,;t t
53318 s,@LTSTATIC@,$LTSTATIC,;t t
53319 s,@LIBOBJS@,$LIBOBJS,;t t
53320 s,@LIBSRCS@,$LIBSRCS,;t t
53321 s,@PLAT@,$PLAT,;t t
53322 s,@WITH_SASL@,$WITH_SASL,;t t
53323 s,@WITH_TLS@,$WITH_TLS,;t t
53324 s,@WITH_MODULES_ENABLED@,$WITH_MODULES_ENABLED,;t t
53325 s,@BUILD_LIBS_DYNAMIC@,$BUILD_LIBS_DYNAMIC,;t t
53326 s,@BUILD_SLAPD@,$BUILD_SLAPD,;t t
53327 s,@BUILD_SLAPI@,$BUILD_SLAPI,;t t
53328 s,@SLAPD_SLAPI_DEPEND@,$SLAPD_SLAPI_DEPEND,;t t
53329 s,@BUILD_BDB@,$BUILD_BDB,;t t
53330 s,@BUILD_DNSSRV@,$BUILD_DNSSRV,;t t
53331 s,@BUILD_HDB@,$BUILD_HDB,;t t
53332 s,@BUILD_LDAP@,$BUILD_LDAP,;t t
53333 s,@BUILD_LDBM@,$BUILD_LDBM,;t t
53334 s,@BUILD_META@,$BUILD_META,;t t
53335 s,@BUILD_MONITOR@,$BUILD_MONITOR,;t t
53336 s,@BUILD_NULL@,$BUILD_NULL,;t t
53337 s,@BUILD_PASSWD@,$BUILD_PASSWD,;t t
53338 s,@BUILD_RELAY@,$BUILD_RELAY,;t t
53339 s,@BUILD_PERL@,$BUILD_PERL,;t t
53340 s,@BUILD_SHELL@,$BUILD_SHELL,;t t
53341 s,@BUILD_SQL@,$BUILD_SQL,;t t
53342 s,@BUILD_ACCESSLOG@,$BUILD_ACCESSLOG,;t t
53343 s,@BUILD_DENYOP@,$BUILD_DENYOP,;t t
53344 s,@BUILD_DYNGROUP@,$BUILD_DYNGROUP,;t t
53345 s,@BUILD_DYNLIST@,$BUILD_DYNLIST,;t t
53346 s,@BUILD_GLUE@,$BUILD_GLUE,;t t
53347 s,@BUILD_LASTMOD@,$BUILD_LASTMOD,;t t
53348 s,@BUILD_PPOLICY@,$BUILD_PPOLICY,;t t
53349 s,@BUILD_PROXYCACHE@,$BUILD_PROXYCACHE,;t t
53350 s,@BUILD_REFINT@,$BUILD_REFINT,;t t
53351 s,@BUILD_RETCODE@,$BUILD_RETCODE,;t t
53352 s,@BUILD_RWM@,$BUILD_RWM,;t t
53353 s,@BUILD_SYNCPROV@,$BUILD_SYNCPROV,;t t
53354 s,@BUILD_TRANSLUCENT@,$BUILD_TRANSLUCENT,;t t
53355 s,@BUILD_UNIQUE@,$BUILD_UNIQUE,;t t
53356 s,@BUILD_SLURPD@,$BUILD_SLURPD,;t t
53357 s,@LDAP_LIBS@,$LDAP_LIBS,;t t
53358 s,@SLAPD_LIBS@,$SLAPD_LIBS,;t t
53359 s,@SLURPD_LIBS@,$SLURPD_LIBS,;t t
53360 s,@LDBM_LIBS@,$LDBM_LIBS,;t t
53361 s,@LTHREAD_LIBS@,$LTHREAD_LIBS,;t t
53362 s,@LUTIL_LIBS@,$LUTIL_LIBS,;t t
53363 s,@WRAP_LIBS@,$WRAP_LIBS,;t t
53364 s,@SLAPD_MODULES_CPPFLAGS@,$SLAPD_MODULES_CPPFLAGS,;t t
53365 s,@SLAPD_MODULES_LDFLAGS@,$SLAPD_MODULES_LDFLAGS,;t t
53366 s,@SLAPD_NO_STATIC@,$SLAPD_NO_STATIC,;t t
53367 s,@SLAPD_STATIC_BACKENDS@,$SLAPD_STATIC_BACKENDS,;t t
53368 s,@SLAPD_DYNAMIC_BACKENDS@,$SLAPD_DYNAMIC_BACKENDS,;t t
53369 s,@SLAPD_STATIC_OVERLAYS@,$SLAPD_STATIC_OVERLAYS,;t t
53370 s,@SLAPD_DYNAMIC_OVERLAYS@,$SLAPD_DYNAMIC_OVERLAYS,;t t
53371 s,@PERL_CPPFLAGS@,$PERL_CPPFLAGS,;t t
53372 s,@SLAPD_PERL_LDFLAGS@,$SLAPD_PERL_LDFLAGS,;t t
53373 s,@MOD_PERL_LDFLAGS@,$MOD_PERL_LDFLAGS,;t t
53374 s,@KRB4_LIBS@,$KRB4_LIBS,;t t
53375 s,@KRB5_LIBS@,$KRB5_LIBS,;t t
53376 s,@SASL_LIBS@,$SASL_LIBS,;t t
53377 s,@TLS_LIBS@,$TLS_LIBS,;t t
53378 s,@MODULES_LIBS@,$MODULES_LIBS,;t t
53379 s,@SLAPI_LIBS@,$SLAPI_LIBS,;t t
53380 s,@LIBSLAPI@,$LIBSLAPI,;t t
53381 s,@LIBSLAPITOOLS@,$LIBSLAPITOOLS,;t t
53382 s,@AUTH_LIBS@,$AUTH_LIBS,;t t
53383 s,@SLAPD_SLP_LIBS@,$SLAPD_SLP_LIBS,;t t
53384 s,@SLAPD_GMP_LIBS@,$SLAPD_GMP_LIBS,;t t
53385 s,@SLAPD_SQL_LDFLAGS@,$SLAPD_SQL_LDFLAGS,;t t
53386 s,@SLAPD_SQL_LIBS@,$SLAPD_SQL_LIBS,;t t
53387 s,@SLAPD_SQL_INCLUDES@,$SLAPD_SQL_INCLUDES,;t t
53388 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
53393 cat >>$CONFIG_STATUS <<\_ACEOF
53394 # Split the substitutions into bite-sized pieces for seds with
53395 # small command number limits, like on Digital OSF/1 and HP-UX.
53396 ac_max_sed_lines=48
53397 ac_sed_frag=1 # Number of current file.
53398 ac_beg=1 # First line for current file.
53399 ac_end=$ac_max_sed_lines # Line after last line for current file.
53402 while $ac_more_lines; do
53403 if test $ac_beg -gt 1; then
53404 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53406 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
53408 if test ! -s $tmp/subs.frag; then
53409 ac_more_lines=false
53411 # The purpose of the label and of the branching condition is to
53412 # speed up the sed processing (if there are no `@' at all, there
53413 # is no need to browse any of the substitutions).
53414 # These are the two extra sed commands mentioned above.
53416 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
53417 if test -z "$ac_sed_cmds"; then
53418 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
53420 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
53422 ac_sed_frag=`expr $ac_sed_frag + 1`
53424 ac_end=`expr $ac_end + $ac_max_sed_lines`
53427 if test -z "$ac_sed_cmds"; then
53430 fi # test -n "$CONFIG_FILES"
53433 cat >>$CONFIG_STATUS <<\_ACEOF
53434 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
53435 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
53437 - | *:- | *:-:* ) # input from stdin
53439 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53440 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53441 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53442 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53443 * ) ac_file_in=$ac_file.in ;;
53446 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
53447 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
53448 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53449 X"$ac_file" : 'X\(//\)[^/]' \| \
53450 X"$ac_file" : 'X\(//\)$' \| \
53451 X"$ac_file" : 'X\(/\)' \| \
53452 . : '\(.\)' 2>/dev/null ||
53454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53455 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53456 /^X\(\/\/\)$/{ s//\1/; q; }
53457 /^X\(\/\).*/{ s//\1/; q; }
53459 { if $as_mkdir_p; then
53464 while test ! -d "$as_dir"; do
53465 as_dirs="$as_dir $as_dirs"
53466 as_dir=`(dirname "$as_dir") 2>/dev/null ||
53467 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53468 X"$as_dir" : 'X\(//\)[^/]' \| \
53469 X"$as_dir" : 'X\(//\)$' \| \
53470 X"$as_dir" : 'X\(/\)' \| \
53471 . : '\(.\)' 2>/dev/null ||
53473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53474 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53475 /^X\(\/\/\)$/{ s//\1/; q; }
53476 /^X\(\/\).*/{ s//\1/; q; }
53479 test ! -n "$as_dirs" || mkdir $as_dirs
53480 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
53481 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
53482 { (exit 1); exit 1; }; }; }
53486 if test "$ac_dir" != .; then
53487 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
53488 # A "../" for each directory in $ac_dir_suffix.
53489 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
53491 ac_dir_suffix= ac_top_builddir=
53495 .) # No --srcdir option. We are building in place.
53497 if test -z "$ac_top_builddir"; then
53500 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
53502 [\\/]* | ?:[\\/]* ) # Absolute path.
53503 ac_srcdir=$srcdir$ac_dir_suffix;
53504 ac_top_srcdir=$srcdir ;;
53505 *) # Relative path.
53506 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
53507 ac_top_srcdir=$ac_top_builddir$srcdir ;;
53510 # Do not use `cd foo && pwd` to compute absolute paths, because
53511 # the directories may not exist.
53513 .) ac_abs_builddir="$ac_dir";;
53516 .) ac_abs_builddir=`pwd`;;
53517 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
53518 *) ac_abs_builddir=`pwd`/"$ac_dir";;
53521 case $ac_abs_builddir in
53522 .) ac_abs_top_builddir=${ac_top_builddir}.;;
53524 case ${ac_top_builddir}. in
53525 .) ac_abs_top_builddir=$ac_abs_builddir;;
53526 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
53527 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
53530 case $ac_abs_builddir in
53531 .) ac_abs_srcdir=$ac_srcdir;;
53534 .) ac_abs_srcdir=$ac_abs_builddir;;
53535 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
53536 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
53539 case $ac_abs_builddir in
53540 .) ac_abs_top_srcdir=$ac_top_srcdir;;
53542 case $ac_top_srcdir in
53543 .) ac_abs_top_srcdir=$ac_abs_builddir;;
53544 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
53545 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
53551 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
53552 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
53555 if test x"$ac_file" != x-; then
53556 { echo "$as_me:$LINENO: creating $ac_file" >&5
53557 echo "$as_me: creating $ac_file" >&6;}
53560 # Let's still pretend it is `configure' which instantiates (i.e., don't
53561 # use $as_me), people would be surprised to read:
53562 # /* config.h. Generated by config.status. */
53563 if test x"$ac_file" = x-; then
53566 configure_input="$ac_file. "
53568 configure_input=$configure_input"Generated from `echo $ac_file_in |
53569 sed 's,.*/,,'` by configure."
53571 # First look for the input files in the build tree, otherwise in the
53573 ac_file_inputs=`IFS=:
53574 for f in $ac_file_in; do
53576 -) echo $tmp/stdin ;;
53578 # Absolute (can't be DOS-style, as IFS=:)
53579 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53580 echo "$as_me: error: cannot find input file: $f" >&2;}
53581 { (exit 1); exit 1; }; }
53584 if test -f "$f"; then
53587 elif test -f "$srcdir/$f"; then
53592 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53593 echo "$as_me: error: cannot find input file: $f" >&2;}
53594 { (exit 1); exit 1; }; }
53597 done` || { (exit 1); exit 1; }
53599 cat >>$CONFIG_STATUS <<_ACEOF
53603 cat >>$CONFIG_STATUS <<\_ACEOF
53605 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53606 s,@configure_input@,$configure_input,;t t
53607 s,@srcdir@,$ac_srcdir,;t t
53608 s,@abs_srcdir@,$ac_abs_srcdir,;t t
53609 s,@top_srcdir@,$ac_top_srcdir,;t t
53610 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
53611 s,@builddir@,$ac_builddir,;t t
53612 s,@abs_builddir@,$ac_abs_builddir,;t t
53613 s,@top_builddir@,$ac_top_builddir,;t t
53614 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
53615 s,@INSTALL@,$ac_INSTALL,;t t
53616 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
53618 if test x"$ac_file" != x-; then
53619 mv $tmp/out $ac_file
53627 cat >>$CONFIG_STATUS <<\_ACEOF
53630 # CONFIG_HEADER section.
53633 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
53634 # NAME is the cpp macro being defined and VALUE is the value it is being given.
53636 # ac_d sets the value in "#define NAME VALUE" lines.
53637 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
53638 ac_dB='[ ].*$,\1#\2'
53641 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
53642 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
53643 ac_uB='$,\1#\2define\3'
53647 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
53648 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
53650 - | *:- | *:-:* ) # input from stdin
53652 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53653 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53654 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
53655 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
53656 * ) ac_file_in=$ac_file.in ;;
53659 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
53660 echo "$as_me: creating $ac_file" >&6;}
53662 # First look for the input files in the build tree, otherwise in the
53664 ac_file_inputs=`IFS=:
53665 for f in $ac_file_in; do
53667 -) echo $tmp/stdin ;;
53669 # Absolute (can't be DOS-style, as IFS=:)
53670 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53671 echo "$as_me: error: cannot find input file: $f" >&2;}
53672 { (exit 1); exit 1; }; }
53673 # Do quote $f, to prevent DOS paths from being IFS'd.
53676 if test -f "$f"; then
53679 elif test -f "$srcdir/$f"; then
53684 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
53685 echo "$as_me: error: cannot find input file: $f" >&2;}
53686 { (exit 1); exit 1; }; }
53689 done` || { (exit 1); exit 1; }
53690 # Remove the trailing spaces.
53691 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
53695 # Transform confdefs.h into two sed scripts, `conftest.defines' and
53696 # `conftest.undefs', that substitutes the proper values into
53697 # config.h.in to produce config.h. The first handles `#define'
53698 # templates, and the second `#undef' templates.
53699 # And first: Protect against being on the right side of a sed subst in
53700 # config.status. Protect against being in an unquoted here document
53701 # in config.status.
53702 rm -f conftest.defines conftest.undefs
53703 # Using a here document instead of a string reduces the quoting nightmare.
53704 # Putting comments in sed scripts is not portable.
53706 # `end' is used to avoid that the second main sed command (meant for
53707 # 0-ary CPP macros) applies to n-ary macro definitions.
53708 # See the Autoconf documentation for `clear'.
53709 cat >confdef2sed.sed <<\_ACEOF
53714 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
53716 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
53719 # If some macros were called several times there might be several times
53720 # the same #defines, which is useless. Nevertheless, we may not want to
53721 # sort them, since we want the *last* AC-DEFINE to be honored.
53722 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
53723 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
53724 rm -f confdef2sed.sed
53726 # This sed command replaces #undef with comments. This is necessary, for
53727 # example, in the case of _POSIX_SOURCE, which is predefined and required
53728 # on some systems where configure will not decide to define it.
53729 cat >>conftest.undefs <<\_ACEOF
53730 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
53733 # Break up conftest.defines because some shells have a limit on the size
53734 # of here documents, and old seds have small limits too (100 cmds).
53735 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
53736 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
53737 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
53738 echo ' :' >>$CONFIG_STATUS
53739 rm -f conftest.tail
53740 while grep . conftest.defines >/dev/null
53742 # Write a limited-size here document to $tmp/defines.sed.
53743 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
53744 # Speed up: don't consider the non `#define' lines.
53745 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
53746 # Work around the forget-to-reset-the-flag bug.
53747 echo 't clr' >>$CONFIG_STATUS
53748 echo ': clr' >>$CONFIG_STATUS
53749 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
53751 sed -f $tmp/defines.sed $tmp/in >$tmp/out
53753 mv $tmp/out $tmp/in
53755 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
53756 rm -f conftest.defines
53757 mv conftest.tail conftest.defines
53759 rm -f conftest.defines
53760 echo ' fi # grep' >>$CONFIG_STATUS
53761 echo >>$CONFIG_STATUS
53763 # Break up conftest.undefs because some shells have a limit on the size
53764 # of here documents, and old seds have small limits too (100 cmds).
53765 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
53766 rm -f conftest.tail
53767 while grep . conftest.undefs >/dev/null
53769 # Write a limited-size here document to $tmp/undefs.sed.
53770 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
53771 # Speed up: don't consider the non `#undef'
53772 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
53773 # Work around the forget-to-reset-the-flag bug.
53774 echo 't clr' >>$CONFIG_STATUS
53775 echo ': clr' >>$CONFIG_STATUS
53776 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
53778 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
53780 mv $tmp/out $tmp/in
53782 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
53783 rm -f conftest.undefs
53784 mv conftest.tail conftest.undefs
53786 rm -f conftest.undefs
53788 cat >>$CONFIG_STATUS <<\_ACEOF
53789 # Let's still pretend it is `configure' which instantiates (i.e., don't
53790 # use $as_me), people would be surprised to read:
53791 # /* config.h. Generated by config.status. */
53792 if test x"$ac_file" = x-; then
53793 echo "/* Generated by configure. */" >$tmp/config.h
53795 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
53797 cat $tmp/in >>$tmp/config.h
53799 if test x"$ac_file" != x-; then
53800 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
53801 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
53802 echo "$as_me: $ac_file is unchanged" >&6;}
53804 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
53805 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53806 X"$ac_file" : 'X\(//\)[^/]' \| \
53807 X"$ac_file" : 'X\(//\)$' \| \
53808 X"$ac_file" : 'X\(/\)' \| \
53809 . : '\(.\)' 2>/dev/null ||
53811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53812 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53813 /^X\(\/\/\)$/{ s//\1/; q; }
53814 /^X\(\/\).*/{ s//\1/; q; }
53816 { if $as_mkdir_p; then
53821 while test ! -d "$as_dir"; do
53822 as_dirs="$as_dir $as_dirs"
53823 as_dir=`(dirname "$as_dir") 2>/dev/null ||
53824 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53825 X"$as_dir" : 'X\(//\)[^/]' \| \
53826 X"$as_dir" : 'X\(//\)$' \| \
53827 X"$as_dir" : 'X\(/\)' \| \
53828 . : '\(.\)' 2>/dev/null ||
53830 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53831 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53832 /^X\(\/\/\)$/{ s//\1/; q; }
53833 /^X\(\/\).*/{ s//\1/; q; }
53836 test ! -n "$as_dirs" || mkdir $as_dirs
53837 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
53838 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
53839 { (exit 1); exit 1; }; }; }
53842 mv $tmp/config.h $ac_file
53846 rm -f $tmp/config.h
53848 # Compute $ac_file's index in $config_headers.
53850 for _am_header in $config_headers :; do
53851 case $_am_header in
53852 $ac_file | $ac_file:* )
53855 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
53858 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
53859 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53860 X$ac_file : 'X\(//\)[^/]' \| \
53861 X$ac_file : 'X\(//\)$' \| \
53862 X$ac_file : 'X\(/\)' \| \
53863 . : '\(.\)' 2>/dev/null ||
53865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53867 /^X\(\/\/\)$/{ s//\1/; q; }
53868 /^X\(\/\).*/{ s//\1/; q; }
53869 s/.*/./; q'`/stamp-h$_am_stamp_count
53872 cat >>$CONFIG_STATUS <<\_ACEOF
53875 # CONFIG_COMMANDS section.
53877 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
53878 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
53879 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
53880 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
53881 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53882 X"$ac_dest" : 'X\(//\)[^/]' \| \
53883 X"$ac_dest" : 'X\(//\)$' \| \
53884 X"$ac_dest" : 'X\(/\)' \| \
53885 . : '\(.\)' 2>/dev/null ||
53887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53888 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53889 /^X\(\/\/\)$/{ s//\1/; q; }
53890 /^X\(\/\).*/{ s//\1/; q; }
53892 { if $as_mkdir_p; then
53897 while test ! -d "$as_dir"; do
53898 as_dirs="$as_dir $as_dirs"
53899 as_dir=`(dirname "$as_dir") 2>/dev/null ||
53900 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53901 X"$as_dir" : 'X\(//\)[^/]' \| \
53902 X"$as_dir" : 'X\(//\)$' \| \
53903 X"$as_dir" : 'X\(/\)' \| \
53904 . : '\(.\)' 2>/dev/null ||
53906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
53907 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
53908 /^X\(\/\/\)$/{ s//\1/; q; }
53909 /^X\(\/\).*/{ s//\1/; q; }
53912 test ! -n "$as_dirs" || mkdir $as_dirs
53913 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
53914 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
53915 { (exit 1); exit 1; }; }; }
53919 if test "$ac_dir" != .; then
53920 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
53921 # A "../" for each directory in $ac_dir_suffix.
53922 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
53924 ac_dir_suffix= ac_top_builddir=
53928 .) # No --srcdir option. We are building in place.
53930 if test -z "$ac_top_builddir"; then
53933 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
53935 [\\/]* | ?:[\\/]* ) # Absolute path.
53936 ac_srcdir=$srcdir$ac_dir_suffix;
53937 ac_top_srcdir=$srcdir ;;
53938 *) # Relative path.
53939 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
53940 ac_top_srcdir=$ac_top_builddir$srcdir ;;
53943 # Do not use `cd foo && pwd` to compute absolute paths, because
53944 # the directories may not exist.
53946 .) ac_abs_builddir="$ac_dir";;
53949 .) ac_abs_builddir=`pwd`;;
53950 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
53951 *) ac_abs_builddir=`pwd`/"$ac_dir";;
53954 case $ac_abs_builddir in
53955 .) ac_abs_top_builddir=${ac_top_builddir}.;;
53957 case ${ac_top_builddir}. in
53958 .) ac_abs_top_builddir=$ac_abs_builddir;;
53959 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
53960 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
53963 case $ac_abs_builddir in
53964 .) ac_abs_srcdir=$ac_srcdir;;
53967 .) ac_abs_srcdir=$ac_abs_builddir;;
53968 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
53969 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
53972 case $ac_abs_builddir in
53973 .) ac_abs_top_srcdir=$ac_top_srcdir;;
53975 case $ac_top_srcdir in
53976 .) ac_abs_top_srcdir=$ac_abs_builddir;;
53977 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
53978 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
53983 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
53984 echo "$as_me: executing $ac_dest commands" >&6;}
53986 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
53987 # Strip MF so we end up with the name of the file.
53988 mf=`echo "$mf" | sed -e 's/:.*$//'`
53989 # Check whether this is an Automake generated Makefile or not.
53990 # We used to match only the files named `Makefile.in', but
53991 # some people rename them; so instead we look at the file content.
53992 # Grep'ing the first line is not enough: some people post-process
53993 # each Makefile.in and add a new line on top of each file to say so.
53994 # So let's grep whole file.
53995 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
53996 dirpart=`(dirname "$mf") 2>/dev/null ||
53997 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
53998 X"$mf" : 'X\(//\)[^/]' \| \
53999 X"$mf" : 'X\(//\)$' \| \
54000 X"$mf" : 'X\(/\)' \| \
54001 . : '\(.\)' 2>/dev/null ||
54003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54004 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54005 /^X\(\/\/\)$/{ s//\1/; q; }
54006 /^X\(\/\).*/{ s//\1/; q; }
54011 # Extract the definition of DEPDIR, am__include, and am__quote
54012 # from the Makefile without running `make'.
54013 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
54014 test -z "$DEPDIR" && continue
54015 am__include=`sed -n 's/^am__include = //p' < "$mf"`
54016 test -z "am__include" && continue
54017 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
54018 # When using ansi2knr, U may be empty or an underscore; expand it
54019 U=`sed -n 's/^U = //p' < "$mf"`
54020 # Find all dependency output files, they are included files with
54021 # $(DEPDIR) in their names. We invoke sed twice because it is the
54022 # simplest approach to changing $(DEPDIR) to its actual value in the
54024 for file in `sed -n "
54025 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
54026 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
54027 # Make sure the directory exists.
54028 test -f "$dirpart/$file" && continue
54029 fdir=`(dirname "$file") 2>/dev/null ||
54030 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54031 X"$file" : 'X\(//\)[^/]' \| \
54032 X"$file" : 'X\(//\)$' \| \
54033 X"$file" : 'X\(/\)' \| \
54034 . : '\(.\)' 2>/dev/null ||
54036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54037 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54038 /^X\(\/\/\)$/{ s//\1/; q; }
54039 /^X\(\/\).*/{ s//\1/; q; }
54041 { if $as_mkdir_p; then
54042 mkdir -p $dirpart/$fdir
54044 as_dir=$dirpart/$fdir
54046 while test ! -d "$as_dir"; do
54047 as_dirs="$as_dir $as_dirs"
54048 as_dir=`(dirname "$as_dir") 2>/dev/null ||
54049 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54050 X"$as_dir" : 'X\(//\)[^/]' \| \
54051 X"$as_dir" : 'X\(//\)$' \| \
54052 X"$as_dir" : 'X\(/\)' \| \
54053 . : '\(.\)' 2>/dev/null ||
54055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
54056 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
54057 /^X\(\/\/\)$/{ s//\1/; q; }
54058 /^X\(\/\).*/{ s//\1/; q; }
54061 test ! -n "$as_dirs" || mkdir $as_dirs
54062 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
54063 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
54064 { (exit 1); exit 1; }; }; }
54066 # echo "creating $dirpart/$file"
54067 echo '# dummy' > "$dirpart/$file"
54074 BACKENDSC="servers/slapd/backends.c"
54075 echo "Making $BACKENDSC"
54077 cat > $BACKENDSC << ENDX
54078 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
54080 * Copyright 1998-2005 The OpenLDAP Foundation.
54081 * All rights reserved.
54083 * Redistribution and use in source and binary forms, with or without
54084 * modification, are permitted only as authorized by the OpenLDAP
54087 * A copy of this license is available in the file LICENSE in the
54088 * top-level directory of the distribution or, alternatively, at
54089 * <http://www.OpenLDAP.org/license.html>.
54091 /* This file is automatically generated by configure; please do not edit. */
54093 #include "portable.h"
54097 if test "${STATIC_BACKENDS}"; then
54098 for b in config ${STATIC_BACKENDS}; do
54099 bb=`echo "${b}" | sed -e 's/back-//'`
54100 cat >> $BACKENDSC << ENDX
54101 extern BI_init ${bb}_back_initialize;
54105 cat >> $BACKENDSC << ENDX
54107 BackendInfo slap_binfo[] = {
54110 for b in config ${STATIC_BACKENDS}; do
54111 bb=`echo "${b}" | sed -e 's/back-//'`
54112 echo " Add ${bb} ..."
54113 cat >> $BACKENDSC << ENDX
54114 { "${bb}", ${bb}_back_initialize },
54118 cat >> $BACKENDSC << ENDX
54122 /* end of generated file */
54126 echo Please run \"make depend\" to build dependencies
54132 cat >>$CONFIG_STATUS <<\_ACEOF
54134 { (exit 0); exit 0; }
54136 chmod +x $CONFIG_STATUS
54137 ac_clean_files=$ac_clean_files_save
54140 # configure is writing to config.log, and then calls config.status.
54141 # config.status does its own redirection, appending to config.log.
54142 # Unfortunately, on DOS this fails, as config.log is still kept open
54143 # by configure, so config.status won't be able to write to it; its
54144 # output is simply discarded. So we exec the FD to /dev/null,
54145 # effectively closing config.log, so it can be properly (re)opened and
54146 # appended to by config.status. When coming back to configure, we
54147 # need to make the FD available again.
54148 if test "$no_create" != yes; then
54150 ac_config_status_args=
54151 test "$silent" = yes &&
54152 ac_config_status_args="$ac_config_status_args --quiet"
54154 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54156 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54157 # would make configure fail if this is the last instruction.
54158 $ac_cs_success || { (exit 1); exit 1; }