3 # from OpenLDAP: pkg/ldap/configure.in,v 1.559 2004/11/30 22:25:26 slim Exp
5 # This work is part of OpenLDAP Software <http://www.openldap.org/>.
7 # Copyright 1998-2004 The OpenLDAP Foundation.
10 # Redistribution and use in source and binary forms, with or without
11 # modification, are permitted only as authorized by the OpenLDAP
14 # A copy of this license is available in the file LICENSE in the
15 # top-level directory of the distribution or, alternatively, at
16 # <http://www.OpenLDAP.org/license.html>.
18 echo "Copyright 1998-2004 The OpenLDAP Foundation. All rights reserved."
19 echo " Restrictions apply, see COPYRIGHT and LICENSE files."
21 # Guess values for system-dependent variables and create Makefiles.
22 # Generated automatically using autoconf version 2.13.1
23 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
25 # This configure script is free software; the Free Software Foundation
26 # gives unlimited permission to copy, distribute and modify it.
30 ac_default_prefix=/usr/local
31 # Any additions from configure.in:
32 ac_default_prefix=/usr/local
34 --with-subdir=DIR change default subdirectory used for installs"
36 --enable-debug enable debugging [yes]"
38 --enable-dynamic enable linking built binaries with dynamic libs [no]"
40 --enable-syslog enable syslog support [auto]"
42 --enable-proctitle enable proctitle support [yes]"
44 --enable-ipv6 enable IPv6 support [auto]"
46 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
48 --with-cyrus-sasl with Cyrus SASL support [auto]"
50 --with-fetch with fetch(3) URL support [auto]"
52 --with-threads with threads [auto]"
54 --with-tls with TLS/SSL support [auto]"
56 --with-yielding-select with implicitly yielding select [auto]"
58 --with-multiple-precision
59 multiple precision support for statistics
60 auto|bignum|gmp [auto]"
63 SLAPD (Standalone LDAP Daemon) Options:"
65 --enable-slapd enable building slapd [yes]"
67 --enable-aci enable per-object ACIs (experimental) [no]"
69 --enable-cleartext enable cleartext passwords [yes]"
71 --enable-crypt enable crypt(3) passwords [no]"
73 --enable-lmpasswd enable LAN Manager passwords [no]"
75 --enable-spasswd enable (Cyrus) SASL password verification [no]"
77 --enable-modules enable dynamic module support [no]"
79 --enable-rewrite enable DN rewriting in back-ldap and the rwm overlay [auto]"
81 --enable-rlookups enable reverse lookups of client hostnames [no]"
83 --enable-slapi enable SLAPI support (experimental) [no]"
85 --enable-slp enable SLPv2 support [no]"
87 --enable-wrappers enable tcp wrapper support [no]"
90 SLAPD Backend Options:"
92 --enable-backends enable all available backends no|yes|mod [no]"
94 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]"
96 --enable-dnssrv enable dnssrv backend no|yes|mod [no]"
98 --enable-hdb enable Hierarchical DB backend no|yes|mod [no]"
100 --enable-ldap enable ldap backend no|yes|mod [no]"
102 --enable-ldbm enable ldbm backend no|yes|mod [no]"
104 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
106 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
108 --enable-meta enable metadirectory backend no|yes|mod [no]"
110 --enable-monitor enable monitor backend no|yes|mod [yes]"
112 --enable-null enable null backend no|yes|mod [no]"
114 --enable-passwd enable passwd backend no|yes|mod [no]"
116 --enable-perl enable perl backend no|yes|mod [no]"
118 --enable-relay enable relay backend no|yes|mod [yes]"
120 --enable-shell enable shell backend no|yes|mod [no]"
122 --enable-sql enable sql backend no|yes|mod [no]"
125 SLAPD Overlay Options:"
127 --enable-overlays enable all available overlays no|yes|mod [no]"
129 --enable-chain LDAP Chain Response no|yes|mod [no]"
131 --enable-denyop Deny Operation overlay no|yes|mod [no]"
133 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]"
135 --enable-lastmod Last Modification overlay no|yes|mod [no]"
137 --enable-ppolicy Password Policy overlay no|yes|mod [no]"
139 --enable-proxycache Proxy Cache overlay no|yes|mod [no]"
141 --enable-refint Referential Integrity overlay no|yes|mod [no]"
143 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]"
145 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]"
147 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]"
150 SLURPD (Replication Daemon) Options:"
152 --enable-slurpd enable building slurpd [auto]"
155 Library Generation & Linking Options"
157 --enable-static[=PKGS] build static libraries [default=yes]"
159 --enable-shared[=PKGS] build shared libraries [default=yes]"
161 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
163 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
165 # Find the correct PATH separator. Usually this is `:', but
166 # DJGPP uses `;' like DOS.
167 if test "X${PATH_SEPARATOR+set}" != Xset; then
168 UNAME=${UNAME-`uname 2>/dev/null`}
170 *-DOS) lt_cv_sys_path_separator=';' ;;
171 *) lt_cv_sys_path_separator=':' ;;
173 PATH_SEPARATOR=$lt_cv_sys_path_separator
177 # Check that we are running under the correct shell.
178 SHELL=${CONFIG_SHELL-/bin/sh}
182 # Remove one level of quotation (which was required for Make).
183 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
188 if test "X$1" = X--no-reexec; then
189 # Discard the --no-reexec flag, and continue.
191 elif test "X$1" = X--fallback-echo; then
192 # Avoid inline document here, it may be left over
194 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
195 # Yippee, $echo works!
198 # Restart under the correct shell.
199 exec $SHELL "$0" --no-reexec ${1+"$@"}
202 if test "X$1" = X--fallback-echo; then
203 # used as fallback echo
211 # The HP-UX ksh and POSIX shell print the target directory to stdout
213 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
215 if test -z "$ECHO"; then
216 if test "X${echo_test_string+set}" != Xset; then
217 # find a string as large as possible, as long as the shell can cope with it
218 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
219 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
220 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
221 echo_test_string="`eval $cmd`" &&
222 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
229 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
230 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
231 test "X$echo_testing_string" = "X$echo_test_string"; then
234 # The Solaris, AIX, and Digital Unix default echo programs unquote
235 # backslashes. This makes it impossible to quote backslashes using
236 # echo "$something" | sed 's/\\/\\\\/g'
238 # So, first we look for a working echo in the user's PATH.
240 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
241 for dir in $PATH /usr/ucb; do
242 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
243 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
244 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
245 test "X$echo_testing_string" = "X$echo_test_string"; then
252 if test "X$echo" = Xecho; then
253 # We didn't find a better echo, so look for alternatives.
254 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
255 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
256 test "X$echo_testing_string" = "X$echo_test_string"; then
257 # This shell has a builtin print -r that does the trick.
259 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
260 test "X$CONFIG_SHELL" != X/bin/ksh; then
261 # If we have ksh, try running configure again with it.
262 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
263 export ORIGINAL_CONFIG_SHELL
264 CONFIG_SHELL=/bin/ksh
266 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
271 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
272 test "X$echo_testing_string" = "X$echo_test_string"; then
275 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
276 test "X$echo_testing_string" = 'X\t' &&
277 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
278 test "X$echo_testing_string" = "X$echo_test_string"; then
279 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
281 SHELL="$CONFIG_SHELL"
283 echo="$CONFIG_SHELL $0 --fallback-echo"
284 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
285 test "X$echo_testing_string" = 'X\t' &&
286 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
287 test "X$echo_testing_string" = "X$echo_test_string"; then
288 echo="$CONFIG_SHELL $0 --fallback-echo"
290 # maybe with a smaller string...
293 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
294 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
301 if test "$prev" != 'sed 50q "$0"'; then
302 echo_test_string=`eval $prev`
303 export echo_test_string
304 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
306 # Oops. We lost completely, so just stick with echo.
315 # Copy echo and quote the copy suitably for passing to libtool from
316 # the Makefile, instead of quoting the original, which is used later.
318 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
319 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
324 --disable-libtool-lock avoid locking (might break parallel builds)"
326 --with-pic try to use only PIC/non-PIC objects [default=use both]"
329 See INSTALL file for further details."
331 # Initialize some variables set by options.
332 # The variables have the same names as the options, with
333 # dashes changed to underlines.
335 cache_file=./config.cache
344 program_transform_name=s,x,x,
352 bindir='${exec_prefix}/bin'
353 sbindir='${exec_prefix}/sbin'
354 libexecdir='${exec_prefix}/libexec'
355 datadir='${prefix}/share'
356 sysconfdir='${prefix}/etc'
357 sharedstatedir='${prefix}/com'
358 localstatedir='${prefix}/var'
359 libdir='${exec_prefix}/lib'
360 includedir='${prefix}/include'
361 oldincludedir='/usr/include'
362 infodir='${prefix}/info'
363 mandir='${prefix}/man'
365 # Initialize some other variables.
368 SHELL=${CONFIG_SHELL-/bin/sh}
369 # Maximum number of lines to put in a shell here document.
376 # If the previous option needs an argument, assign it.
377 if test -n "$ac_prev"; then
378 eval "$ac_prev=\$ac_option"
384 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
388 # Accept the important Cygnus configure options, so we can diagnose typos.
392 -bindir | --bindir | --bindi | --bind | --bin | --bi)
394 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
395 bindir="$ac_optarg" ;;
397 -build | --build | --buil | --bui | --bu)
399 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
400 build="$ac_optarg" ;;
402 -cache-file | --cache-file | --cache-fil | --cache-fi \
403 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
404 ac_prev=cache_file ;;
405 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
406 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
407 cache_file="$ac_optarg" ;;
409 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
411 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
413 datadir="$ac_optarg" ;;
415 -disable-* | --disable-*)
416 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
417 # Reject names that are not valid shell variable names.
418 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
419 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
421 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
422 eval "enable_${ac_feature}=no" ;;
424 -enable-* | --enable-*)
425 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
426 # Reject names that are not valid shell variable names.
427 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
428 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
430 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
435 eval "enable_${ac_feature}='$ac_optarg'" ;;
437 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
438 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
439 | --exec | --exe | --ex)
440 ac_prev=exec_prefix ;;
441 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
442 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
443 | --exec=* | --exe=* | --ex=*)
444 exec_prefix="$ac_optarg" ;;
446 -gas | --gas | --ga | --g)
447 # Obsolete; use --with-gas.
450 -help | --help | --hel | --he)
451 # Omit some internal or obsolete options to make the list less imposing.
452 # This message is too long to be a string in the A/UX 3.1 sh.
454 Usage: configure [options] [host]
455 Options: [defaults in brackets after descriptions]
457 --cache-file=FILE cache test results in FILE
458 --help print this message
459 --no-create do not create output files
460 --quiet, --silent do not print \`checking...' messages
461 --version print the version of autoconf that created configure
462 Directory and file names:
463 --prefix=PREFIX install architecture-independent files in PREFIX
465 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
467 --bindir=DIR user executables in DIR [EPREFIX/bin]
468 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
469 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
470 --datadir=DIR read-only architecture-independent data in DIR
472 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
473 --sharedstatedir=DIR modifiable architecture-independent data in DIR
475 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
476 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
477 --includedir=DIR C header files in DIR [PREFIX/include]
478 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
479 --infodir=DIR info documentation in DIR [PREFIX/info]
480 --mandir=DIR man documentation in DIR [PREFIX/man]
481 --srcdir=DIR find the sources in DIR [configure dir or ..]
482 --program-prefix=PREFIX prepend PREFIX to installed program names
483 --program-suffix=SUFFIX append SUFFIX to installed program names
484 --program-transform-name=PROGRAM
485 run sed PROGRAM on installed program names
489 --build=BUILD configure for building on BUILD [BUILD=HOST]
490 --host=HOST configure for HOST [guessed]
491 --target=TARGET configure for TARGET [TARGET=HOST]
492 Features and packages:
493 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
494 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
497 --x-includes=DIR X include files are in DIR
498 --x-libraries=DIR X library files are in DIR
500 if test -n "$ac_help"; then
501 echo "--enable and --with options recognized:$ac_help"
505 -host | --host | --hos | --ho)
507 -host=* | --host=* | --hos=* | --ho=*)
510 -includedir | --includedir | --includedi | --included | --include \
511 | --includ | --inclu | --incl | --inc)
512 ac_prev=includedir ;;
513 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
514 | --includ=* | --inclu=* | --incl=* | --inc=*)
515 includedir="$ac_optarg" ;;
517 -infodir | --infodir | --infodi | --infod | --info | --inf)
519 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
520 infodir="$ac_optarg" ;;
522 -libdir | --libdir | --libdi | --libd)
524 -libdir=* | --libdir=* | --libdi=* | --libd=*)
525 libdir="$ac_optarg" ;;
527 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
528 | --libexe | --libex | --libe)
529 ac_prev=libexecdir ;;
530 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
531 | --libexe=* | --libex=* | --libe=*)
532 libexecdir="$ac_optarg" ;;
534 -localstatedir | --localstatedir | --localstatedi | --localstated \
535 | --localstate | --localstat | --localsta | --localst \
536 | --locals | --local | --loca | --loc | --lo)
537 ac_prev=localstatedir ;;
538 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
539 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
540 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
541 localstatedir="$ac_optarg" ;;
543 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
545 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
546 mandir="$ac_optarg" ;;
549 # Obsolete; use --without-fp.
552 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
556 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
557 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
560 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
561 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
562 | --oldin | --oldi | --old | --ol | --o)
563 ac_prev=oldincludedir ;;
564 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
565 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
566 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
567 oldincludedir="$ac_optarg" ;;
569 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
571 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
572 prefix="$ac_optarg" ;;
574 -program-prefix | --program-prefix | --program-prefi | --program-pref \
575 | --program-pre | --program-pr | --program-p)
576 ac_prev=program_prefix ;;
577 -program-prefix=* | --program-prefix=* | --program-prefi=* \
578 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
579 program_prefix="$ac_optarg" ;;
581 -program-suffix | --program-suffix | --program-suffi | --program-suff \
582 | --program-suf | --program-su | --program-s)
583 ac_prev=program_suffix ;;
584 -program-suffix=* | --program-suffix=* | --program-suffi=* \
585 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
586 program_suffix="$ac_optarg" ;;
588 -program-transform-name | --program-transform-name \
589 | --program-transform-nam | --program-transform-na \
590 | --program-transform-n | --program-transform- \
591 | --program-transform | --program-transfor \
592 | --program-transfo | --program-transf \
593 | --program-trans | --program-tran \
594 | --progr-tra | --program-tr | --program-t)
595 ac_prev=program_transform_name ;;
596 -program-transform-name=* | --program-transform-name=* \
597 | --program-transform-nam=* | --program-transform-na=* \
598 | --program-transform-n=* | --program-transform-=* \
599 | --program-transform=* | --program-transfor=* \
600 | --program-transfo=* | --program-transf=* \
601 | --program-trans=* | --program-tran=* \
602 | --progr-tra=* | --program-tr=* | --program-t=*)
603 program_transform_name="$ac_optarg" ;;
605 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
606 | -silent | --silent | --silen | --sile | --sil)
609 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
611 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
613 sbindir="$ac_optarg" ;;
615 -sharedstatedir | --sharedstatedir | --sharedstatedi \
616 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
617 | --sharedst | --shareds | --shared | --share | --shar \
619 ac_prev=sharedstatedir ;;
620 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
621 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
622 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
624 sharedstatedir="$ac_optarg" ;;
626 -site | --site | --sit)
628 -site=* | --site=* | --sit=*)
631 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
633 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
634 srcdir="$ac_optarg" ;;
636 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
637 | --syscon | --sysco | --sysc | --sys | --sy)
638 ac_prev=sysconfdir ;;
639 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
640 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
641 sysconfdir="$ac_optarg" ;;
643 -target | --target | --targe | --targ | --tar | --ta | --t)
645 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
646 target="$ac_optarg" ;;
648 -v | -verbose | --verbose | --verbos | --verbo | --verb)
651 -version | --version | --versio | --versi | --vers)
652 echo "configure generated by autoconf version 2.13.1"
656 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
657 # Reject names that are not valid shell variable names.
658 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
659 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
661 ac_package=`echo $ac_package| sed 's/-/_/g'`
666 eval "with_${ac_package}='$ac_optarg'" ;;
668 -without-* | --without-*)
669 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
670 # Reject names that are not valid shell variable names.
671 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
672 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
674 ac_package=`echo $ac_package| sed 's/-/_/g'`
675 eval "with_${ac_package}=no" ;;
678 # Obsolete; use --with-x.
681 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
682 | --x-incl | --x-inc | --x-in | --x-i)
683 ac_prev=x_includes ;;
684 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
685 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
686 x_includes="$ac_optarg" ;;
688 -x-libraries | --x-libraries | --x-librarie | --x-librari \
689 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
690 ac_prev=x_libraries ;;
691 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
692 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
693 x_libraries="$ac_optarg" ;;
695 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
699 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
700 echo "configure: warning: $ac_option: invalid host type" 1>&2
702 if test "x$nonopt" != xNONE; then
703 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
711 if test -n "$ac_prev"; then
712 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
715 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
717 # File descriptor usage:
720 # 2 errors and warnings
721 # 3 some systems may open it to /dev/tty
722 # 4 used on the Kubota Titan
723 # 6 checking for... messages and results
724 # 5 compiler messages saved in config.log
725 if test "$silent" = yes; then
733 This file contains any messages produced by compilers while
734 running configure, to aid debugging if configure makes a mistake.
737 # Strip out --no-create and --no-recursion so they do not pile up.
738 # Also quote any args containing shell metacharacters.
743 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
744 | --no-cr | --no-c) ;;
745 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
746 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
747 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
748 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
749 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
754 # Only set these to C if already set. These must not be set unconditionally
755 # because not all systems understand e.g. LANG=C (notably SCO).
756 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
757 # Non-C LC_CTYPE values break the ctype check.
758 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
759 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
760 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
761 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
763 # confdefs.h avoids OS command line length limits that DEFS can exceed.
764 rm -rf conftest* confdefs.h
765 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
768 # A filename unique to this package, relative to the directory that
769 # configure is in, which we can look for to find out if srcdir is correct.
770 ac_unique_file=build/version.sh
772 # Find the source files, if location was not specified.
773 if test -z "$srcdir"; then
774 ac_srcdir_defaulted=yes
775 # Try the directory containing this script, then its parent.
777 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
778 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
780 if test ! -r $srcdir/$ac_unique_file; then
784 ac_srcdir_defaulted=no
786 if test ! -r $srcdir/$ac_unique_file; then
787 if test "$ac_srcdir_defaulted" = yes; then
788 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
790 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
793 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
795 # Prefer explicitly selected file to automatically selected ones.
796 if test -z "$CONFIG_SITE"; then
797 if test "x$prefix" != xNONE; then
798 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
800 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
803 for ac_site_file in $CONFIG_SITE; do
804 if test -r "$ac_site_file"; then
805 echo "loading site script $ac_site_file"
812 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
813 ac_cpp='$CPP $CPPFLAGS'
814 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
815 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
816 cross_compiling=$ac_cv_prog_cc_cross
820 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
821 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
822 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
829 ac_n= ac_c='\c' ac_t=
833 # set unset (borrowed from autoconf 2.49c)
834 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
840 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
843 for ac_dir in build $srcdir/build; do
844 if test -f $ac_dir/install-sh; then
846 ac_install_sh="$ac_aux_dir/install-sh -c"
848 elif test -f $ac_dir/install.sh; then
850 ac_install_sh="$ac_aux_dir/install.sh -c"
852 elif test -f $ac_dir/shtool; then
854 ac_install_sh="$ac_aux_dir/shtool install -c"
858 if test -z "$ac_aux_dir"; then
859 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
861 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
862 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
863 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
865 eval `$ac_aux_dir/version.sh`
866 if test -z "$OL_STRING"; then
867 { echo "configure: error: could not determine version" 1>&2; exit 1; }
870 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
871 ac_cv_shtool="$ac_aux_dir/shtool"
873 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
876 SHTOOL="$ac_cv_shtool"
878 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
879 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
882 if test -d $ac_aux_dir/CVS; then
883 OPENLDAP_CVS="(from CVS sources) "
886 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
889 echo $ac_n "checking host system type""... $ac_c" 1>&6
890 echo "configure:891: checking host system type" >&5
891 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
893 # Make sure we can run config.sub.
894 if $ac_config_sub sun4 >/dev/null 2>&1; then :
895 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
898 ac_cv_host_alias=$host
899 case "$ac_cv_host_alias" in
903 if ac_cv_host_alias=`$ac_config_guess`; then :
904 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
906 *) ac_cv_host_alias=$nonopt ;;
910 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
911 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
912 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
913 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
915 echo $ac_n "(cached) $ac_c" 1>&6
918 echo "$ac_t""$ac_cv_host" 1>&6
921 host_alias=$ac_cv_host_alias
922 host_cpu=$ac_cv_host_cpu
923 host_vendor=$ac_cv_host_vendor
924 host_os=$ac_cv_host_os
930 echo $ac_n "checking target system type""... $ac_c" 1>&6
931 echo "configure:932: checking target system type" >&5
932 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
934 # Make sure we can run config.sub.
935 if $ac_config_sub sun4 >/dev/null 2>&1; then :
936 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
939 ac_cv_target_alias=$target
940 case "$ac_cv_target_alias" in
944 ac_cv_target_alias=$host_alias ;;
946 *) ac_cv_target_alias=$nonopt ;;
950 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
951 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
952 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
953 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
955 echo $ac_n "(cached) $ac_c" 1>&6
958 echo "$ac_t""$ac_cv_target" 1>&6
961 target_alias=$ac_cv_target_alias
962 target_cpu=$ac_cv_target_cpu
963 target_vendor=$ac_cv_target_vendor
964 target_os=$ac_cv_target_os
970 echo $ac_n "checking build system type""... $ac_c" 1>&6
971 echo "configure:972: checking build system type" >&5
972 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
974 # Make sure we can run config.sub.
975 if $ac_config_sub sun4 >/dev/null 2>&1; then :
976 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
979 ac_cv_build_alias=$build
980 case "$ac_cv_build_alias" in
984 ac_cv_build_alias=$host_alias ;;
986 *) ac_cv_build_alias=$nonopt ;;
990 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
991 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
992 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
993 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
995 echo $ac_n "(cached) $ac_c" 1>&6
998 echo "$ac_t""$ac_cv_build" 1>&6
1001 build_alias=$ac_cv_build_alias
1002 build_cpu=$ac_cv_build_cpu
1003 build_vendor=$ac_cv_build_vendor
1004 build_os=$ac_cv_build_os
1010 # Do some error checking and defaulting for the host and target type.
1012 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1015 # 1. You are not allowed to specify --host, --target, and nonopt at the
1017 # 2. Host defaults to nonopt.
1018 # 3. If nonopt is not specified, then host defaults to the current host,
1019 # as determined by config.guess.
1020 # 4. Target and build default to nonopt.
1021 # 5. If nonopt is not specified, then target and build default to host.
1023 # The aliases save the names the user supplied, while $host etc.
1024 # will get canonicalized.
1025 case $host---$target---$nonopt in
1026 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1027 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1030 test "$host_alias" != "$target_alias" &&
1031 test "$program_prefix$program_suffix$program_transform_name" = \
1033 program_prefix=${target_alias}-
1036 # Find a good install program. We prefer a C program (faster),
1037 # so one script is as good as another. But avoid the broken or
1038 # incompatible versions:
1039 # SysV /etc/install, /usr/sbin/install
1040 # SunOS /usr/etc/install
1041 # IRIX /sbin/install
1043 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1044 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1045 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1046 # ./install, which can be erroneously created by make from ./install.sh.
1047 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1048 echo "configure:1049: checking for a BSD compatible install" >&5
1049 if test -z "$INSTALL"; then
1050 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1051 echo $ac_n "(cached) $ac_c" 1>&6
1053 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1054 for ac_dir in $PATH; do
1055 # Account for people who put trailing slashes in PATH elements.
1057 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1059 # OSF1 and SCO ODT 3.0 have their own names for install.
1060 # Don't use installbsd from OSF since it installs stuff as root
1062 for ac_prog in ginstall scoinst install; do
1063 if test -f $ac_dir/$ac_prog; then
1064 if test $ac_prog = install &&
1065 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1066 # AIX install. It has an incompatible calling convention.
1068 elif test $ac_prog = install &&
1069 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1070 # program-specific install script used by HP pwplus--don't use.
1073 ac_cv_path_install="$ac_dir/$ac_prog -c"
1084 if test "${ac_cv_path_install+set}" = set; then
1085 INSTALL="$ac_cv_path_install"
1087 # As a last resort, use the slow shell script. We don't cache a
1088 # path for INSTALL within a source directory, because that will
1089 # break other packages using the cache if that directory is
1090 # removed, or if the path is relative.
1091 INSTALL="$ac_install_sh"
1094 echo "$ac_t""$INSTALL" 1>&6
1096 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1097 # It thinks the first close brace ends the variable substitution.
1098 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1100 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1102 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1104 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1105 echo "configure:1106: checking whether build environment is sane" >&5
1108 echo timestamp > conftestfile
1109 # Do `set' in a subshell so we don't clobber the current shell's
1110 # arguments. Must try -L first in case configure is actually a
1111 # symlink; some systems play weird games with the mod time of symlinks
1112 # (eg FreeBSD returns the mod time of the symlink's containing
1115 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1116 if test "$*" = "X"; then
1118 set X `ls -t $srcdir/configure conftestfile`
1120 if test "$*" != "X $srcdir/configure conftestfile" \
1121 && test "$*" != "X conftestfile $srcdir/configure"; then
1123 # If neither matched, then we have a broken ls. This can happen
1124 # if, for instance, CONFIG_SHELL is bash and it inherits a
1125 # broken ls alias from the environment. This has actually
1126 # happened. Such a system could not be considered "sane".
1127 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1128 alias in your environment" 1>&2; exit 1; }
1131 test "$2" = conftestfile
1137 { echo "configure: error: newly created file is older than distributed files!
1138 Check your system clock" 1>&2; exit 1; }
1141 echo "$ac_t""yes" 1>&6
1142 if test "$program_transform_name" = s,x,x,; then
1143 program_transform_name=
1145 # Double any \ or $. echo might interpret backslashes.
1146 cat <<\EOF_SED > conftestsed
1147 s,\\,\\\\,g; s,\$,$$,g
1149 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1152 test "$program_prefix" != NONE &&
1153 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1154 # Use a double $ so make ignores it.
1155 test "$program_suffix" != NONE &&
1156 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1158 # sed with no file args requires a program.
1159 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1161 for ac_prog in mawk gawk nawk awk
1163 # Extract the first word of "$ac_prog", so it can be a program name with args.
1164 set dummy $ac_prog; ac_word=$2
1165 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1166 echo "configure:1167: checking for $ac_word" >&5
1167 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1168 echo $ac_n "(cached) $ac_c" 1>&6
1170 if test -n "$AWK"; then
1171 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1175 for ac_dir in $ac_dummy; do
1176 test -z "$ac_dir" && ac_dir=.
1177 if test -f $ac_dir/$ac_word; then
1178 ac_cv_prog_AWK="$ac_prog"
1185 AWK="$ac_cv_prog_AWK"
1186 if test -n "$AWK"; then
1187 echo "$ac_t""$AWK" 1>&6
1189 echo "$ac_t""no" 1>&6
1192 test -n "$AWK" && break
1195 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1196 echo "configure:1197: checking whether ${MAKE-make} sets \${MAKE}" >&5
1197 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1198 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1201 cat > conftestmake <<\EOF
1203 @echo 'ac_maketemp="${MAKE}"'
1205 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1206 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1207 if test -n "$ac_maketemp"; then
1208 eval ac_cv_prog_make_${ac_make}_set=yes
1210 eval ac_cv_prog_make_${ac_make}_set=no
1214 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1215 echo "$ac_t""yes" 1>&6
1218 echo "$ac_t""no" 1>&6
1219 SET_MAKE="MAKE=${MAKE-make}"
1228 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1229 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1234 missing_dir=`cd $ac_aux_dir && pwd`
1235 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1236 echo "configure:1237: checking for working aclocal" >&5
1237 # Run test in a subshell; some versions of sh will print an error if
1238 # an executable is not found, even if stderr is redirected.
1239 # Redirect stdin to placate older versions of autoconf. Sigh.
1240 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1242 echo "$ac_t""found" 1>&6
1244 ACLOCAL="$missing_dir/missing aclocal"
1245 echo "$ac_t""missing" 1>&6
1248 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1249 echo "configure:1250: checking for working autoconf" >&5
1250 # Run test in a subshell; some versions of sh will print an error if
1251 # an executable is not found, even if stderr is redirected.
1252 # Redirect stdin to placate older versions of autoconf. Sigh.
1253 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1255 echo "$ac_t""found" 1>&6
1257 AUTOCONF="$missing_dir/missing autoconf"
1258 echo "$ac_t""missing" 1>&6
1261 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1262 echo "configure:1263: checking for working automake" >&5
1263 # Run test in a subshell; some versions of sh will print an error if
1264 # an executable is not found, even if stderr is redirected.
1265 # Redirect stdin to placate older versions of autoconf. Sigh.
1266 if (automake --version) < /dev/null > /dev/null 2>&1; then
1268 echo "$ac_t""found" 1>&6
1270 AUTOMAKE="$missing_dir/missing automake"
1271 echo "$ac_t""missing" 1>&6
1274 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1275 echo "configure:1276: checking for working autoheader" >&5
1276 # Run test in a subshell; some versions of sh will print an error if
1277 # an executable is not found, even if stderr is redirected.
1278 # Redirect stdin to placate older versions of autoconf. Sigh.
1279 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1280 AUTOHEADER=autoheader
1281 echo "$ac_t""found" 1>&6
1283 AUTOHEADER="$missing_dir/missing autoheader"
1284 echo "$ac_t""missing" 1>&6
1287 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1288 echo "configure:1289: checking for working makeinfo" >&5
1289 # Run test in a subshell; some versions of sh will print an error if
1290 # an executable is not found, even if stderr is redirected.
1291 # Redirect stdin to placate older versions of autoconf. Sigh.
1292 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1294 echo "$ac_t""found" 1>&6
1296 MAKEINFO="$missing_dir/missing makeinfo"
1297 echo "$ac_t""missing" 1>&6
1300 install_sh="$missing_dir/install-sh"
1301 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1303 for ac_prog in gnutar gtar tar
1305 # Extract the first word of "$ac_prog", so it can be a program name with args.
1306 set dummy $ac_prog; ac_word=$2
1307 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1308 echo "configure:1309: checking for $ac_word" >&5
1309 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1310 echo $ac_n "(cached) $ac_c" 1>&6
1312 if test -n "$AMTAR"; then
1313 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1315 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1317 for ac_dir in $ac_dummy; do
1318 test -z "$ac_dir" && ac_dir=.
1319 if test -f $ac_dir/$ac_word; then
1320 ac_cv_prog_AMTAR="$ac_prog"
1327 AMTAR="$ac_cv_prog_AMTAR"
1328 if test -n "$AMTAR"; then
1329 echo "$ac_t""$AMTAR" 1>&6
1331 echo "$ac_t""no" 1>&6
1334 test -n "$AMTAR" && break
1339 if test -n "$AMTAR"; then
1340 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1345 cat >> confdefs.h <<EOF
1346 #define OPENLDAP_PACKAGE "$PACKAGE"
1349 cat >> confdefs.h <<EOF
1350 #define OPENLDAP_VERSION "$VERSION"
1354 cat >> confdefs.h <<EOF
1355 #define LDAP_VENDOR_VERSION $OL_API_INC
1358 cat >> confdefs.h <<EOF
1359 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1362 cat >> confdefs.h <<EOF
1363 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1366 cat >> confdefs.h <<EOF
1367 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1371 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
1373 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
1375 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1379 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1380 echo "configure:1381: checking configure arguments" >&5
1385 ldap_subdir="/openldap"
1387 # Check whether --with-subdir or --without-subdir was given.
1388 if test "${with_subdir+set}" = set; then
1389 withval="$with_subdir"
1396 ldap_subdir="$withval"
1399 ldap_subdir="/$withval"
1406 # OpenLDAP --enable-debug
1407 # Check whether --enable-debug or --disable-debug was given.
1408 if test "${enable_debug+set}" = set; then
1409 enableval="$enable_debug"
1412 for ol_val in auto yes no ; do
1413 if test "$enableval" = "$ol_val" ; then
1417 if test "$ol_arg" = "invalid" ; then
1418 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1420 ol_enable_debug="$ol_arg"
1423 ol_enable_debug="yes"
1425 # end --enable-debug
1426 # OpenLDAP --enable-dynamic
1427 # Check whether --enable-dynamic or --disable-dynamic was given.
1428 if test "${enable_dynamic+set}" = set; then
1429 enableval="$enable_dynamic"
1432 for ol_val in auto yes no ; do
1433 if test "$enableval" = "$ol_val" ; then
1437 if test "$ol_arg" = "invalid" ; then
1438 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1440 ol_enable_dynamic="$ol_arg"
1443 ol_enable_dynamic="no"
1445 # end --enable-dynamic
1446 # OpenLDAP --enable-syslog
1447 # Check whether --enable-syslog or --disable-syslog was given.
1448 if test "${enable_syslog+set}" = set; then
1449 enableval="$enable_syslog"
1452 for ol_val in auto yes no ; do
1453 if test "$enableval" = "$ol_val" ; then
1457 if test "$ol_arg" = "invalid" ; then
1458 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1460 ol_enable_syslog="$ol_arg"
1463 ol_enable_syslog="auto"
1465 # end --enable-syslog
1466 # OpenLDAP --enable-proctitle
1467 # Check whether --enable-proctitle or --disable-proctitle was given.
1468 if test "${enable_proctitle+set}" = set; then
1469 enableval="$enable_proctitle"
1472 for ol_val in auto yes no ; do
1473 if test "$enableval" = "$ol_val" ; then
1477 if test "$ol_arg" = "invalid" ; then
1478 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1480 ol_enable_proctitle="$ol_arg"
1483 ol_enable_proctitle="yes"
1485 # end --enable-proctitle
1486 ol_enable_referrals=${ol_enable_referrals-no}
1487 ol_enable_kbind=${ol_enable_kbind-no}
1488 # OpenLDAP --enable-ipv6
1489 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1490 if test "${enable_ipv6+set}" = set; then
1491 enableval="$enable_ipv6"
1494 for ol_val in auto yes no ; do
1495 if test "$enableval" = "$ol_val" ; then
1499 if test "$ol_arg" = "invalid" ; then
1500 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1502 ol_enable_ipv6="$ol_arg"
1505 ol_enable_ipv6="auto"
1508 # OpenLDAP --enable-local
1509 # Check whether --enable-local or --disable-local was given.
1510 if test "${enable_local+set}" = set; then
1511 enableval="$enable_local"
1514 for ol_val in auto yes no ; do
1515 if test "$enableval" = "$ol_val" ; then
1519 if test "$ol_arg" = "invalid" ; then
1520 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1522 ol_enable_local="$ol_arg"
1525 ol_enable_local="auto"
1527 # end --enable-local
1530 # OpenLDAP --with-cyrus_sasl
1531 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1532 if test "${with_cyrus_sasl+set}" = set; then
1533 withval="$with_cyrus_sasl"
1536 for ol_val in auto yes no ; do
1537 if test "$withval" = "$ol_val" ; then
1541 if test "$ol_arg" = "invalid" ; then
1542 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1544 ol_with_cyrus_sasl="$ol_arg"
1547 ol_with_cyrus_sasl="auto"
1549 # end --with-cyrus_sasl
1551 # OpenLDAP --with-fetch
1552 # Check whether --with-fetch or --without-fetch was given.
1553 if test "${with_fetch+set}" = set; then
1554 withval="$with_fetch"
1557 for ol_val in auto yes no ; do
1558 if test "$withval" = "$ol_val" ; then
1562 if test "$ol_arg" = "invalid" ; then
1563 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1565 ol_with_fetch="$ol_arg"
1568 ol_with_fetch="auto"
1572 ol_with_kerberos=${ol_with_kerberos-auto}
1573 # OpenLDAP --with-threads
1574 # Check whether --with-threads or --without-threads was given.
1575 if test "${with_threads+set}" = set; then
1576 withval="$with_threads"
1579 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1580 if test "$withval" = "$ol_val" ; then
1584 if test "$ol_arg" = "invalid" ; then
1585 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1587 ol_with_threads="$ol_arg"
1590 ol_with_threads="auto"
1592 # end --with-threads
1594 # OpenLDAP --with-tls
1595 # Check whether --with-tls or --without-tls was given.
1596 if test "${with_tls+set}" = set; then
1600 for ol_val in auto ssleay openssl yes no ; do
1601 if test "$withval" = "$ol_val" ; then
1605 if test "$ol_arg" = "invalid" ; then
1606 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1608 ol_with_tls="$ol_arg"
1615 # OpenLDAP --with-yielding_select
1616 # Check whether --with-yielding_select or --without-yielding_select was given.
1617 if test "${with_yielding_select+set}" = set; then
1618 withval="$with_yielding_select"
1621 for ol_val in auto yes no manual ; do
1622 if test "$withval" = "$ol_val" ; then
1626 if test "$ol_arg" = "invalid" ; then
1627 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1629 ol_with_yielding_select="$ol_arg"
1632 ol_with_yielding_select="auto"
1634 # end --with-yielding_select
1636 # OpenLDAP --with-multiple_precision
1637 # Check whether --with-multiple_precision or --without-multiple_precision was given.
1638 if test "${with_multiple_precision+set}" = set; then
1639 withval="$with_multiple_precision"
1642 for ol_val in auto bignum gmp yes no ; do
1643 if test "$withval" = "$ol_val" ; then
1647 if test "$ol_arg" = "invalid" ; then
1648 { echo "configure: error: bad value $withval for --with-multiple_precision" 1>&2; exit 1; }
1650 ol_with_multiple_precision="$ol_arg"
1653 ol_with_multiple_precision="auto"
1655 # end --with-multiple_precision
1659 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1660 if test "${with_xxslapdoptions+set}" = set; then
1661 withval="$with_xxslapdoptions"
1665 # OpenLDAP --enable-slapd
1666 # Check whether --enable-slapd or --disable-slapd was given.
1667 if test "${enable_slapd+set}" = set; then
1668 enableval="$enable_slapd"
1671 for ol_val in auto yes no ; do
1672 if test "$enableval" = "$ol_val" ; then
1676 if test "$ol_arg" = "invalid" ; then
1677 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1679 ol_enable_slapd="$ol_arg"
1682 ol_enable_slapd="yes"
1684 # end --enable-slapd
1685 # OpenLDAP --enable-aci
1686 # Check whether --enable-aci or --disable-aci was given.
1687 if test "${enable_aci+set}" = set; then
1688 enableval="$enable_aci"
1691 for ol_val in auto yes no ; do
1692 if test "$enableval" = "$ol_val" ; then
1696 if test "$ol_arg" = "invalid" ; then
1697 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1699 ol_enable_aci="$ol_arg"
1705 # OpenLDAP --enable-cleartext
1706 # Check whether --enable-cleartext or --disable-cleartext was given.
1707 if test "${enable_cleartext+set}" = set; then
1708 enableval="$enable_cleartext"
1711 for ol_val in auto yes no ; do
1712 if test "$enableval" = "$ol_val" ; then
1716 if test "$ol_arg" = "invalid" ; then
1717 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1719 ol_enable_cleartext="$ol_arg"
1722 ol_enable_cleartext="yes"
1724 # end --enable-cleartext
1725 # OpenLDAP --enable-crypt
1726 # Check whether --enable-crypt or --disable-crypt was given.
1727 if test "${enable_crypt+set}" = set; then
1728 enableval="$enable_crypt"
1731 for ol_val in auto yes no ; do
1732 if test "$enableval" = "$ol_val" ; then
1736 if test "$ol_arg" = "invalid" ; then
1737 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1739 ol_enable_crypt="$ol_arg"
1742 ol_enable_crypt="no"
1744 # end --enable-crypt
1745 # OpenLDAP --enable-lmpasswd
1746 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1747 if test "${enable_lmpasswd+set}" = set; then
1748 enableval="$enable_lmpasswd"
1751 for ol_val in auto yes no ; do
1752 if test "$enableval" = "$ol_val" ; then
1756 if test "$ol_arg" = "invalid" ; then
1757 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1759 ol_enable_lmpasswd="$ol_arg"
1762 ol_enable_lmpasswd="no"
1764 # end --enable-lmpasswd
1765 # OpenLDAP --enable-spasswd
1766 # Check whether --enable-spasswd or --disable-spasswd was given.
1767 if test "${enable_spasswd+set}" = set; then
1768 enableval="$enable_spasswd"
1771 for ol_val in auto yes no ; do
1772 if test "$enableval" = "$ol_val" ; then
1776 if test "$ol_arg" = "invalid" ; then
1777 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1779 ol_enable_spasswd="$ol_arg"
1782 ol_enable_spasswd="no"
1784 # end --enable-spasswd
1785 # OpenLDAP --enable-modules
1786 # Check whether --enable-modules or --disable-modules was given.
1787 if test "${enable_modules+set}" = set; then
1788 enableval="$enable_modules"
1791 for ol_val in auto yes no ; do
1792 if test "$enableval" = "$ol_val" ; then
1796 if test "$ol_arg" = "invalid" ; then
1797 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1799 ol_enable_modules="$ol_arg"
1802 ol_enable_modules="no"
1804 # end --enable-modules
1805 ol_enable_multimaster=${ol_enable_multimaster-no}
1806 # OpenLDAP --enable-rewrite
1807 # Check whether --enable-rewrite or --disable-rewrite was given.
1808 if test "${enable_rewrite+set}" = set; then
1809 enableval="$enable_rewrite"
1812 for ol_val in auto yes no ; do
1813 if test "$enableval" = "$ol_val" ; then
1817 if test "$ol_arg" = "invalid" ; then
1818 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1820 ol_enable_rewrite="$ol_arg"
1823 ol_enable_rewrite="auto"
1825 # end --enable-rewrite
1826 # OpenLDAP --enable-rlookups
1827 # Check whether --enable-rlookups or --disable-rlookups was given.
1828 if test "${enable_rlookups+set}" = set; then
1829 enableval="$enable_rlookups"
1832 for ol_val in auto yes no ; do
1833 if test "$enableval" = "$ol_val" ; then
1837 if test "$ol_arg" = "invalid" ; then
1838 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1840 ol_enable_rlookups="$ol_arg"
1843 ol_enable_rlookups="no"
1845 # end --enable-rlookups
1846 # OpenLDAP --enable-slapi
1847 # Check whether --enable-slapi or --disable-slapi was given.
1848 if test "${enable_slapi+set}" = set; then
1849 enableval="$enable_slapi"
1852 for ol_val in auto yes no ; do
1853 if test "$enableval" = "$ol_val" ; then
1857 if test "$ol_arg" = "invalid" ; then
1858 { echo "configure: error: bad value $enableval for --enable-slapi" 1>&2; exit 1; }
1860 ol_enable_slapi="$ol_arg"
1863 ol_enable_slapi="no"
1865 # end --enable-slapi
1866 # OpenLDAP --enable-slp
1867 # Check whether --enable-slp or --disable-slp was given.
1868 if test "${enable_slp+set}" = set; then
1869 enableval="$enable_slp"
1872 for ol_val in auto yes no ; do
1873 if test "$enableval" = "$ol_val" ; then
1877 if test "$ol_arg" = "invalid" ; then
1878 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1880 ol_enable_slp="$ol_arg"
1886 # OpenLDAP --enable-wrappers
1887 # Check whether --enable-wrappers or --disable-wrappers was given.
1888 if test "${enable_wrappers+set}" = set; then
1889 enableval="$enable_wrappers"
1892 for ol_val in auto yes no ; do
1893 if test "$enableval" = "$ol_val" ; then
1897 if test "$ol_arg" = "invalid" ; then
1898 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1900 ol_enable_wrappers="$ol_arg"
1903 ol_enable_wrappers="no"
1905 # end --enable-wrappers
1907 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
1908 passwd perl relay shell sql"
1910 # Check whether --with-xxslapbackends or --without-xxslapbackends was given.
1911 if test "${with_xxslapbackends+set}" = set; then
1912 withval="$with_xxslapbackends"
1917 # OpenLDAP --enable-backends
1918 # Check whether --enable-backends or --disable-backends was given.
1919 if test "${enable_backends+set}" = set; then
1920 enableval="$enable_backends"
1923 for ol_val in no yes mod ; do
1924 if test "$enableval" = "$ol_val" ; then
1928 if test "$ol_arg" = "invalid" ; then
1929 { echo "configure: error: bad value $enableval for --enable-backends" 1>&2; exit 1; }
1931 ol_enable_backends="$ol_arg"
1934 ol_enable_backends="no"
1936 # end --enable-backends
1937 # OpenLDAP --enable-bdb
1938 # Check whether --enable-bdb or --disable-bdb was given.
1939 if test "${enable_bdb+set}" = set; then
1940 enableval="$enable_bdb"
1943 for ol_val in no yes mod ; do
1944 if test "$enableval" = "$ol_val" ; then
1948 if test "$ol_arg" = "invalid" ; then
1949 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1951 ol_enable_bdb="$ol_arg"
1957 # OpenLDAP --enable-dnssrv
1958 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1959 if test "${enable_dnssrv+set}" = set; then
1960 enableval="$enable_dnssrv"
1963 for ol_val in no yes mod ; do
1964 if test "$enableval" = "$ol_val" ; then
1968 if test "$ol_arg" = "invalid" ; then
1969 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1971 ol_enable_dnssrv="$ol_arg"
1974 ol_enable_dnssrv="no"
1976 # end --enable-dnssrv
1977 # OpenLDAP --enable-hdb
1978 # Check whether --enable-hdb or --disable-hdb was given.
1979 if test "${enable_hdb+set}" = set; then
1980 enableval="$enable_hdb"
1983 for ol_val in no yes mod ; do
1984 if test "$enableval" = "$ol_val" ; then
1988 if test "$ol_arg" = "invalid" ; then
1989 { echo "configure: error: bad value $enableval for --enable-hdb" 1>&2; exit 1; }
1991 ol_enable_hdb="$ol_arg"
1997 # OpenLDAP --enable-ldap
1998 # Check whether --enable-ldap or --disable-ldap was given.
1999 if test "${enable_ldap+set}" = set; then
2000 enableval="$enable_ldap"
2003 for ol_val in no yes mod ; do
2004 if test "$enableval" = "$ol_val" ; then
2008 if test "$ol_arg" = "invalid" ; then
2009 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2011 ol_enable_ldap="$ol_arg"
2017 # OpenLDAP --enable-ldbm
2018 # Check whether --enable-ldbm or --disable-ldbm was given.
2019 if test "${enable_ldbm+set}" = set; then
2020 enableval="$enable_ldbm"
2023 for ol_val in no yes mod ; do
2024 if test "$enableval" = "$ol_val" ; then
2028 if test "$ol_arg" = "invalid" ; then
2029 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2031 ol_enable_ldbm="$ol_arg"
2037 # OpenLDAP --with-ldbm_api
2038 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2039 if test "${with_ldbm_api+set}" = set; then
2040 withval="$with_ldbm_api"
2043 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2044 if test "$withval" = "$ol_val" ; then
2048 if test "$ol_arg" = "invalid" ; then
2049 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2051 ol_with_ldbm_api="$ol_arg"
2054 ol_with_ldbm_api="auto"
2056 # end --with-ldbm_api
2058 # OpenLDAP --with-ldbm_type
2059 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2060 if test "${with_ldbm_type+set}" = set; then
2061 withval="$with_ldbm_type"
2064 for ol_val in auto btree hash ; do
2065 if test "$withval" = "$ol_val" ; then
2069 if test "$ol_arg" = "invalid" ; then
2070 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2072 ol_with_ldbm_type="$ol_arg"
2075 ol_with_ldbm_type="auto"
2077 # end --with-ldbm_type
2079 # OpenLDAP --enable-meta
2080 # Check whether --enable-meta or --disable-meta was given.
2081 if test "${enable_meta+set}" = set; then
2082 enableval="$enable_meta"
2085 for ol_val in no yes mod ; do
2086 if test "$enableval" = "$ol_val" ; then
2090 if test "$ol_arg" = "invalid" ; then
2091 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2093 ol_enable_meta="$ol_arg"
2099 # OpenLDAP --enable-monitor
2100 # Check whether --enable-monitor or --disable-monitor was given.
2101 if test "${enable_monitor+set}" = set; then
2102 enableval="$enable_monitor"
2105 for ol_val in no yes mod ; do
2106 if test "$enableval" = "$ol_val" ; then
2110 if test "$ol_arg" = "invalid" ; then
2111 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2113 ol_enable_monitor="$ol_arg"
2116 ol_enable_monitor="yes"
2118 # end --enable-monitor
2119 # OpenLDAP --enable-null
2120 # Check whether --enable-null or --disable-null was given.
2121 if test "${enable_null+set}" = set; then
2122 enableval="$enable_null"
2125 for ol_val in no yes mod ; do
2126 if test "$enableval" = "$ol_val" ; then
2130 if test "$ol_arg" = "invalid" ; then
2131 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2133 ol_enable_null="$ol_arg"
2139 # OpenLDAP --enable-passwd
2140 # Check whether --enable-passwd or --disable-passwd was given.
2141 if test "${enable_passwd+set}" = set; then
2142 enableval="$enable_passwd"
2145 for ol_val in no yes mod ; do
2146 if test "$enableval" = "$ol_val" ; then
2150 if test "$ol_arg" = "invalid" ; then
2151 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2153 ol_enable_passwd="$ol_arg"
2156 ol_enable_passwd="no"
2158 # end --enable-passwd
2159 # OpenLDAP --enable-perl
2160 # Check whether --enable-perl or --disable-perl was given.
2161 if test "${enable_perl+set}" = set; then
2162 enableval="$enable_perl"
2165 for ol_val in no yes mod ; do
2166 if test "$enableval" = "$ol_val" ; then
2170 if test "$ol_arg" = "invalid" ; then
2171 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2173 ol_enable_perl="$ol_arg"
2179 # OpenLDAP --enable-relay
2180 # Check whether --enable-relay or --disable-relay was given.
2181 if test "${enable_relay+set}" = set; then
2182 enableval="$enable_relay"
2185 for ol_val in no yes mod ; do
2186 if test "$enableval" = "$ol_val" ; then
2190 if test "$ol_arg" = "invalid" ; then
2191 { echo "configure: error: bad value $enableval for --enable-relay" 1>&2; exit 1; }
2193 ol_enable_relay="$ol_arg"
2196 ol_enable_relay="yes"
2198 # end --enable-relay
2199 # OpenLDAP --enable-shell
2200 # Check whether --enable-shell or --disable-shell was given.
2201 if test "${enable_shell+set}" = set; then
2202 enableval="$enable_shell"
2205 for ol_val in no yes mod ; do
2206 if test "$enableval" = "$ol_val" ; then
2210 if test "$ol_arg" = "invalid" ; then
2211 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2213 ol_enable_shell="$ol_arg"
2216 ol_enable_shell="no"
2218 # end --enable-shell
2219 # OpenLDAP --enable-sql
2220 # Check whether --enable-sql or --disable-sql was given.
2221 if test "${enable_sql+set}" = set; then
2222 enableval="$enable_sql"
2225 for ol_val in no yes mod ; do
2226 if test "$enableval" = "$ol_val" ; then
2230 if test "$ol_arg" = "invalid" ; then
2231 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2233 ol_enable_sql="$ol_arg"
2240 Overlays="chain denyop dyngroup lastmod ppolicy proxycache rwm \
2241 refint syncprov unique"
2243 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
2244 if test "${with_xxslapoverlays+set}" = set; then
2245 withval="$with_xxslapoverlays"
2250 # OpenLDAP --enable-overlays
2251 # Check whether --enable-overlays or --disable-overlays was given.
2252 if test "${enable_overlays+set}" = set; then
2253 enableval="$enable_overlays"
2256 for ol_val in no yes mod ; do
2257 if test "$enableval" = "$ol_val" ; then
2261 if test "$ol_arg" = "invalid" ; then
2262 { echo "configure: error: bad value $enableval for --enable-overlays" 1>&2; exit 1; }
2264 ol_enable_overlays="$ol_arg"
2267 ol_enable_overlays="no"
2269 # end --enable-overlays
2270 # OpenLDAP --enable-chain
2271 # Check whether --enable-chain or --disable-chain was given.
2272 if test "${enable_chain+set}" = set; then
2273 enableval="$enable_chain"
2276 for ol_val in no yes mod ; do
2277 if test "$enableval" = "$ol_val" ; then
2281 if test "$ol_arg" = "invalid" ; then
2282 { echo "configure: error: bad value $enableval for --enable-chain" 1>&2; exit 1; }
2284 ol_enable_chain="$ol_arg"
2287 ol_enable_chain="no"
2289 # end --enable-chain
2291 # OpenLDAP --enable-denyop
2292 # Check whether --enable-denyop or --disable-denyop was given.
2293 if test "${enable_denyop+set}" = set; then
2294 enableval="$enable_denyop"
2297 for ol_val in no yes mod ; do
2298 if test "$enableval" = "$ol_val" ; then
2302 if test "$ol_arg" = "invalid" ; then
2303 { echo "configure: error: bad value $enableval for --enable-denyop" 1>&2; exit 1; }
2305 ol_enable_denyop="$ol_arg"
2308 ol_enable_denyop="no"
2310 # end --enable-denyop
2312 # OpenLDAP --enable-dyngroup
2313 # Check whether --enable-dyngroup or --disable-dyngroup was given.
2314 if test "${enable_dyngroup+set}" = set; then
2315 enableval="$enable_dyngroup"
2318 for ol_val in no yes mod ; do
2319 if test "$enableval" = "$ol_val" ; then
2323 if test "$ol_arg" = "invalid" ; then
2324 { echo "configure: error: bad value $enableval for --enable-dyngroup" 1>&2; exit 1; }
2326 ol_enable_dyngroup="$ol_arg"
2329 ol_enable_dyngroup="no"
2331 # end --enable-dyngroup
2333 # OpenLDAP --enable-lastmod
2334 # Check whether --enable-lastmod or --disable-lastmod was given.
2335 if test "${enable_lastmod+set}" = set; then
2336 enableval="$enable_lastmod"
2339 for ol_val in no yes mod ; do
2340 if test "$enableval" = "$ol_val" ; then
2344 if test "$ol_arg" = "invalid" ; then
2345 { echo "configure: error: bad value $enableval for --enable-lastmod" 1>&2; exit 1; }
2347 ol_enable_lastmod="$ol_arg"
2350 ol_enable_lastmod="no"
2352 # end --enable-lastmod
2354 # OpenLDAP --enable-ppolicy
2355 # Check whether --enable-ppolicy or --disable-ppolicy was given.
2356 if test "${enable_ppolicy+set}" = set; then
2357 enableval="$enable_ppolicy"
2360 for ol_val in no yes mod ; do
2361 if test "$enableval" = "$ol_val" ; then
2365 if test "$ol_arg" = "invalid" ; then
2366 { echo "configure: error: bad value $enableval for --enable-ppolicy" 1>&2; exit 1; }
2368 ol_enable_ppolicy="$ol_arg"
2371 ol_enable_ppolicy="no"
2373 # end --enable-ppolicy
2375 # OpenLDAP --enable-proxycache
2376 # Check whether --enable-proxycache or --disable-proxycache was given.
2377 if test "${enable_proxycache+set}" = set; then
2378 enableval="$enable_proxycache"
2381 for ol_val in no yes mod ; do
2382 if test "$enableval" = "$ol_val" ; then
2386 if test "$ol_arg" = "invalid" ; then
2387 { echo "configure: error: bad value $enableval for --enable-proxycache" 1>&2; exit 1; }
2389 ol_enable_proxycache="$ol_arg"
2392 ol_enable_proxycache="no"
2394 # end --enable-proxycache
2396 # OpenLDAP --enable-refint
2397 # Check whether --enable-refint or --disable-refint was given.
2398 if test "${enable_refint+set}" = set; then
2399 enableval="$enable_refint"
2402 for ol_val in no yes mod ; do
2403 if test "$enableval" = "$ol_val" ; then
2407 if test "$ol_arg" = "invalid" ; then
2408 { echo "configure: error: bad value $enableval for --enable-refint" 1>&2; exit 1; }
2410 ol_enable_refint="$ol_arg"
2413 ol_enable_refint="no"
2415 # end --enable-refint
2417 # OpenLDAP --enable-rwm
2418 # Check whether --enable-rwm or --disable-rwm was given.
2419 if test "${enable_rwm+set}" = set; then
2420 enableval="$enable_rwm"
2423 for ol_val in no yes mod ; do
2424 if test "$enableval" = "$ol_val" ; then
2428 if test "$ol_arg" = "invalid" ; then
2429 { echo "configure: error: bad value $enableval for --enable-rwm" 1>&2; exit 1; }
2431 ol_enable_rwm="$ol_arg"
2438 # OpenLDAP --enable-syncprov
2439 # Check whether --enable-syncprov or --disable-syncprov was given.
2440 if test "${enable_syncprov+set}" = set; then
2441 enableval="$enable_syncprov"
2444 for ol_val in no yes mod ; do
2445 if test "$enableval" = "$ol_val" ; then
2449 if test "$ol_arg" = "invalid" ; then
2450 { echo "configure: error: bad value $enableval for --enable-syncprov" 1>&2; exit 1; }
2452 ol_enable_syncprov="$ol_arg"
2455 ol_enable_syncprov="yes"
2457 # end --enable-syncprov
2459 # OpenLDAP --enable-unique
2460 # Check whether --enable-unique or --disable-unique was given.
2461 if test "${enable_unique+set}" = set; then
2462 enableval="$enable_unique"
2465 for ol_val in no yes mod ; do
2466 if test "$enableval" = "$ol_val" ; then
2470 if test "$ol_arg" = "invalid" ; then
2471 { echo "configure: error: bad value $enableval for --enable-unique" 1>&2; exit 1; }
2473 ol_enable_unique="$ol_arg"
2476 ol_enable_unique="no"
2478 # end --enable-unique
2482 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2483 if test "${with_xxslurpdoptions+set}" = set; then
2484 withval="$with_xxslurpdoptions"
2488 # OpenLDAP --enable-slurpd
2489 # Check whether --enable-slurpd or --disable-slurpd was given.
2490 if test "${enable_slurpd+set}" = set; then
2491 enableval="$enable_slurpd"
2494 for ol_val in auto yes no ; do
2495 if test "$enableval" = "$ol_val" ; then
2499 if test "$ol_arg" = "invalid" ; then
2500 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2502 ol_enable_slurpd="$ol_arg"
2505 ol_enable_slurpd="auto"
2507 # end --enable-slurpd
2509 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2510 if test "${with_xxliboptions+set}" = set; then
2511 withval="$with_xxliboptions"
2515 # Check whether --enable-static or --disable-static was given.
2516 if test "${enable_static+set}" = set; then
2517 enableval="$enable_static"
2518 p=${PACKAGE-default}
2520 yes) enable_static=yes ;;
2521 no) enable_static=no ;;
2524 # Look at the argument we got. We use all the common list separators.
2525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2526 for pkg in $enableval; do
2527 if test "X$pkg" = "X$p"; then
2538 # Check whether --enable-shared or --disable-shared was given.
2539 if test "${enable_shared+set}" = set; then
2540 enableval="$enable_shared"
2541 p=${PACKAGE-default}
2543 yes) enable_shared=yes ;;
2544 no) enable_shared=no ;;
2547 # Look at the argument we got. We use all the common list separators.
2548 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2549 for pkg in $enableval; do
2550 if test "X$pkg" = "X$p"; then
2563 # Activate any backends that were not explicitly enabled.
2564 # Note that back_bdb defaults to "yes" so this loop won't touch it.
2565 if test $ol_enable_backends != no ; then
2566 for i in $Backends; do
2567 eval "ol_tmp=\$ol_enable_$i"
2568 if test $ol_tmp = no ; then
2569 eval "ol_enable_$i=$ol_enable_backends"
2573 # Activate the overlays
2574 if test $ol_enable_overlays != no ; then
2575 for i in $Overlays; do
2576 eval "ol_tmp=\$ol_enable_$i"
2577 if test $ol_tmp = no ; then
2578 eval "ol_enable_$i=$ol_enable_overlays"
2584 if test $ol_enable_slapd = no ; then
2585 if test $ol_enable_slapi = yes ; then
2586 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2588 if test $ol_enable_backends != no ; then
2589 echo "configure: warning: slapd disabled, ignoring --enable-backends argument" 1>&2
2591 for i in $Backends; do
2592 eval "ol_tmp=\$ol_enable_$i"
2593 if test $ol_tmp != no ; then
2594 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2595 eval "ol_enable_$i=no"
2598 if test $ol_enable_modules = yes ; then
2599 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2601 if test $ol_enable_multimaster = yes ; then
2602 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2604 if test $ol_enable_wrappers = yes ; then
2605 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2607 if test $ol_enable_rlookups = yes ; then
2608 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2610 if test $ol_enable_aci = yes ; then
2611 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2613 if test $ol_with_ldbm_api != auto ; then
2614 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2616 if test $ol_with_ldbm_type != auto ; then
2617 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2619 if test $ol_enable_slurpd = yes ; then
2620 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2622 if test $ol_enable_rewrite = yes ; then
2623 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2625 if test $ol_enable_overlays != no ; then
2626 echo "configure: warning: slapd disabled, ignoring --enable-overlays argument" 1>&2
2628 for i in $Overlays; do
2629 eval "ol_tmp=\$ol_enable_$i"
2630 if test $ol_tmp != no ; then
2631 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2632 eval "ol_enable_$i=no"
2636 # force settings to no
2639 ol_enable_backends=no
2640 ol_enable_overlays=no
2641 ol_enable_modules=no
2642 ol_enable_multimaster=no
2643 ol_enable_rlookups=no
2645 ol_enable_wrappers=no
2648 ol_with_ldbm_type=no
2652 ol_enable_rewrite=no
2654 elif test $ol_enable_ldbm = no ; then
2656 if test $ol_with_ldbm_api != auto ; then
2657 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2660 if test $ol_with_ldbm_type != auto ; then
2661 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2664 if test $ol_enable_modules != yes -a \
2665 $ol_enable_bdb = no -a \
2666 $ol_enable_dnssrv = no -a \
2667 $ol_enable_hdb = no -a \
2668 $ol_enable_ldap = no -a \
2669 $ol_enable_meta = no -a \
2670 $ol_enable_monitor = no -a \
2671 $ol_enable_null = no -a \
2672 $ol_enable_passwd = no -a \
2673 $ol_enable_perl = no -a \
2674 $ol_enable_relay = no -a \
2675 $ol_enable_shell = no -a \
2676 $ol_enable_sql = no ; then
2678 if test $ol_enable_slapd = yes ; then
2679 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2681 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2687 ol_with_ldbm_type=no
2689 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
2690 ol_with_ldbm_api=berkeley
2694 if test $ol_with_ldbm_api = gdbm -a \
2695 $ol_with_ldbm_type = btree ; then
2696 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2698 if test $ol_with_ldbm_api = mdbm -a \
2699 $ol_with_ldbm_type = btree ; then
2700 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2702 if test $ol_with_ldbm_api = ndbm -a \
2703 $ol_with_ldbm_type = btree ; then
2704 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2707 if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
2708 if test $ol_with_ldbm_api = auto ; then
2709 ol_with_ldbm_api=berkeley
2710 elif test $ol_with_ldbm_api != berkeley ; then
2711 { echo "configure: error: LDBM API not compatible with BDB/HDB" 1>&2; exit 1; }
2716 if test $ol_enable_chain != no -a $ol_enable_ldap = no ; then
2717 { echo "configure: error: --enable-chain requires --enable-ldap" 1>&2; exit 1; }
2720 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
2721 { echo "configure: error: --enable-meta requires --enable-ldap" 1>&2; exit 1; }
2724 if test $ol_enable_slurpd = yes ; then
2725 if test $ol_with_threads = no ; then
2726 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2730 if test $ol_enable_lmpasswd = yes ; then
2731 if test $ol_with_tls = no ; then
2732 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2736 if test $ol_enable_kbind = yes ; then
2737 if test $ol_with_kerberos = no ; then
2738 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2739 elif test $ol_with_kerberos = auto ; then
2740 ol_with_kerberos=yes
2743 elif test $ol_enable_kbind = no ; then
2744 if test $ol_with_kerberos = auto ; then
2746 elif test $ol_with_kerberos != no ; then
2747 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2752 if test $ol_enable_spasswd = yes ; then
2753 if test $ol_with_cyrus_sasl = no ; then
2754 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2756 ol_with_cyrus_sasl=yes
2759 echo "$ac_t""done" 1>&6
2801 SLAPD_DYNAMIC_OVERLAYS=
2803 SLAPD_MODULES_LDFLAGS=
2804 SLAPD_MODULES_CPPFLAGS=
2806 SLAPD_STATIC_BACKENDS=
2807 SLAPD_DYNAMIC_BACKENDS=
2831 cat >> confdefs.h <<\EOF
2832 #define HAVE_MKVERSION 1
2840 *-*-aix*) if test -z "$CC" ; then
2841 case "$ol_with_threads" in
2842 auto | yes | posix) ol_aix_threads=yes ;;
2848 if test $ol_aix_threads = yes ; then
2849 if test -z "${CC}" ; then
2850 for ac_prog in cc_r xlc_r cc
2852 # Extract the first word of "$ac_prog", so it can be a program name with args.
2853 set dummy $ac_prog; ac_word=$2
2854 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2855 echo "configure:2856: checking for $ac_word" >&5
2856 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2857 echo $ac_n "(cached) $ac_c" 1>&6
2859 if test -n "$CC"; then
2860 ac_cv_prog_CC="$CC" # Let the user override the test.
2862 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2864 for ac_dir in $ac_dummy; do
2865 test -z "$ac_dir" && ac_dir=.
2866 if test -f $ac_dir/$ac_word; then
2867 ac_cv_prog_CC="$ac_prog"
2875 if test -n "$CC"; then
2876 echo "$ac_t""$CC" 1>&6
2878 echo "$ac_t""no" 1>&6
2881 test -n "$CC" && break
2885 if test "$CC" = cc ; then
2886 if test $ol_with_threads != auto ; then
2887 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2889 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2895 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2896 ol_with_threads=posix
2897 ol_cv_pthread_create=yes
2901 if test -z "${CC}"; then
2902 for ac_prog in cc gcc
2904 # Extract the first word of "$ac_prog", so it can be a program name with args.
2905 set dummy $ac_prog; ac_word=$2
2906 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2907 echo "configure:2908: checking for $ac_word" >&5
2908 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2909 echo $ac_n "(cached) $ac_c" 1>&6
2911 if test -n "$CC"; then
2912 ac_cv_prog_CC="$CC" # Let the user override the test.
2914 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2916 for ac_dir in $ac_dummy; do
2917 test -z "$ac_dir" && ac_dir=.
2918 if test -f $ac_dir/$ac_word; then
2919 ac_cv_prog_CC="$ac_prog"
2927 if test -n "$CC"; then
2928 echo "$ac_t""$CC" 1>&6
2930 echo "$ac_t""no" 1>&6
2933 test -n "$CC" && break
2935 test -n "$CC" || CC="missing"
2938 if test "${CC}" = "missing" ; then
2939 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
2943 if test -z "${AR}"; then
2944 for ac_prog in ar gar
2946 # Extract the first word of "$ac_prog", so it can be a program name with args.
2947 set dummy $ac_prog; ac_word=$2
2948 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2949 echo "configure:2950: checking for $ac_word" >&5
2950 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
2951 echo $ac_n "(cached) $ac_c" 1>&6
2953 if test -n "$AR"; then
2954 ac_cv_prog_AR="$AR" # Let the user override the test.
2956 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2958 for ac_dir in $ac_dummy; do
2959 test -z "$ac_dir" && ac_dir=.
2960 if test -f $ac_dir/$ac_word; then
2961 ac_cv_prog_AR="$ac_prog"
2969 if test -n "$AR"; then
2970 echo "$ac_t""$AR" 1>&6
2972 echo "$ac_t""no" 1>&6
2975 test -n "$AR" && break
2977 test -n "$AR" || AR="missing"
2980 if test "${AR}" = "missing" ; then
2981 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
2987 # Find the correct PATH separator. Usually this is `:', but
2988 # DJGPP uses `;' like DOS.
2989 if test "X${PATH_SEPARATOR+set}" != Xset; then
2990 UNAME=${UNAME-`uname 2>/dev/null`}
2992 *-DOS) lt_cv_sys_path_separator=';' ;;
2993 *) lt_cv_sys_path_separator=':' ;;
2995 PATH_SEPARATOR=$lt_cv_sys_path_separator
2998 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2999 echo "configure:3000: checking for Cygwin environment" >&5
3000 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3001 echo $ac_n "(cached) $ac_c" 1>&6
3003 cat > conftest.$ac_ext <<EOF
3004 #line 3005 "configure"
3005 #include "confdefs.h"
3010 #define __CYGWIN__ __CYGWIN32__
3015 if { (eval echo configure:3016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3019 echo "configure: failed program was:" >&5
3020 cat conftest.$ac_ext >&5
3027 echo "$ac_t""$ac_cv_cygwin" 1>&6
3029 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3030 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3031 echo "configure:3032: checking for mingw32 environment" >&5
3032 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3033 echo $ac_n "(cached) $ac_c" 1>&6
3035 cat > conftest.$ac_ext <<EOF
3036 #line 3037 "configure"
3037 #include "confdefs.h"
3043 if { (eval echo configure:3044: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3047 echo "configure: failed program was:" >&5
3048 cat conftest.$ac_ext >&5
3055 echo "$ac_t""$ac_cv_mingw32" 1>&6
3057 test "$ac_cv_mingw32" = yes && MINGW32=yes
3058 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3059 echo "configure:3060: checking for EMX OS/2 environment" >&5
3060 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3061 echo $ac_n "(cached) $ac_c" 1>&6
3063 cat > conftest.$ac_ext <<EOF
3064 #line 3065 "configure"
3065 #include "confdefs.h"
3071 if { (eval echo configure:3072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3075 echo "configure: failed program was:" >&5
3076 cat conftest.$ac_ext >&5
3083 echo "$ac_t""$ac_cv_emxos2" 1>&6
3085 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3086 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3087 echo "configure:3088: checking how to run the C preprocessor" >&5
3088 # On Suns, sometimes $CPP names a directory.
3089 if test -n "$CPP" && test -d "$CPP"; then
3092 if test -z "$CPP"; then
3093 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3094 echo $ac_n "(cached) $ac_c" 1>&6
3096 # This must be in double quotes, not single quotes, because CPP may get
3097 # substituted into the Makefile and "${CC-cc}" will confuse make.
3099 # On the NeXT, cc -E runs the code through the compiler's parser,
3100 # not just through cpp.
3101 cat > conftest.$ac_ext <<EOF
3102 #line 3103 "configure"
3103 #include "confdefs.h"
3107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3108 { (eval echo configure:3109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3110 if test -z "$ac_err"; then
3114 echo "configure: failed program was:" >&5
3115 cat conftest.$ac_ext >&5
3117 CPP="${CC-cc} -E -traditional-cpp"
3118 cat > conftest.$ac_ext <<EOF
3119 #line 3120 "configure"
3120 #include "confdefs.h"
3124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3125 { (eval echo configure:3126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3127 if test -z "$ac_err"; then
3131 echo "configure: failed program was:" >&5
3132 cat conftest.$ac_ext >&5
3134 CPP="${CC-cc} -nologo -E"
3135 cat > conftest.$ac_ext <<EOF
3136 #line 3137 "configure"
3137 #include "confdefs.h"
3141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3142 { (eval echo configure:3143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3143 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3144 if test -z "$ac_err"; then
3148 echo "configure: failed program was:" >&5
3149 cat conftest.$ac_ext >&5
3158 ac_cv_prog_CPP="$CPP"
3160 CPP="$ac_cv_prog_CPP"
3162 ac_cv_prog_CPP="$CPP"
3164 echo "$ac_t""$CPP" 1>&6
3166 # Check whether --enable-fast-install or --disable-fast-install was given.
3167 if test "${enable_fast_install+set}" = set; then
3168 enableval="$enable_fast_install"
3169 p=${PACKAGE-default}
3171 yes) enable_fast_install=yes ;;
3172 no) enable_fast_install=no ;;
3174 enable_fast_install=no
3175 # Look at the argument we got. We use all the common list separators.
3176 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3177 for pkg in $enableval; do
3178 if test "X$pkg" = "X$p"; then
3179 enable_fast_install=yes
3186 enable_fast_install=yes
3189 # Extract the first word of "gcc", so it can be a program name with args.
3190 set dummy gcc; ac_word=$2
3191 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3192 echo "configure:3193: checking for $ac_word" >&5
3193 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3194 echo $ac_n "(cached) $ac_c" 1>&6
3196 if test -n "$CC"; then
3197 ac_cv_prog_CC="$CC" # Let the user override the test.
3199 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3201 for ac_dir in $ac_dummy; do
3202 test -z "$ac_dir" && ac_dir=.
3203 if test -f $ac_dir/$ac_word; then
3212 if test -n "$CC"; then
3213 echo "$ac_t""$CC" 1>&6
3215 echo "$ac_t""no" 1>&6
3218 if test -z "$CC"; then
3219 # Extract the first word of "cc", so it can be a program name with args.
3220 set dummy cc; ac_word=$2
3221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3222 echo "configure:3223: checking for $ac_word" >&5
3223 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3224 echo $ac_n "(cached) $ac_c" 1>&6
3226 if test -n "$CC"; then
3227 ac_cv_prog_CC="$CC" # Let the user override the test.
3229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3232 for ac_dir in $ac_dummy; do
3233 test -z "$ac_dir" && ac_dir=.
3234 if test -f $ac_dir/$ac_word; then
3235 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3236 ac_prog_rejected=yes
3244 if test $ac_prog_rejected = yes; then
3245 # We found a bogon in the path, so make sure we never use it.
3246 set dummy $ac_cv_prog_CC
3248 if test $# -gt 0; then
3249 # We chose a different compiler from the bogus one.
3250 # However, it has the same basename, so the bogon will be chosen
3251 # first if we set CC to just the basename; use the full file name.
3253 set dummy "$ac_dir/$ac_word" "$@"
3261 if test -n "$CC"; then
3262 echo "$ac_t""$CC" 1>&6
3264 echo "$ac_t""no" 1>&6
3267 if test -z "$CC"; then
3268 case "`uname -s`" in
3269 *win32* | *WIN32* | *CYGWIN*)
3270 # Extract the first word of "cl", so it can be a program name with args.
3271 set dummy cl; ac_word=$2
3272 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3273 echo "configure:3274: checking for $ac_word" >&5
3274 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3275 echo $ac_n "(cached) $ac_c" 1>&6
3277 if test -n "$CC"; then
3278 ac_cv_prog_CC="$CC" # Let the user override the test.
3280 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3282 for ac_dir in $ac_dummy; do
3283 test -z "$ac_dir" && ac_dir=.
3284 if test -f $ac_dir/$ac_word; then
3293 if test -n "$CC"; then
3294 echo "$ac_t""$CC" 1>&6
3296 echo "$ac_t""no" 1>&6
3301 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3304 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3305 echo "configure:3306: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3308 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3309 ac_cpp='$CPP $CPPFLAGS'
3310 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3311 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3312 cross_compiling=$ac_cv_prog_cc_cross
3314 cat > conftest.$ac_ext << EOF
3316 #line 3317 "configure"
3317 #include "confdefs.h"
3321 if { (eval echo configure:3322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3322 ac_cv_prog_cc_works=yes
3323 # If we can't run a trivial program, we are probably using a cross compiler.
3324 if (./conftest; exit) 2>/dev/null; then
3325 ac_cv_prog_cc_cross=no
3327 ac_cv_prog_cc_cross=yes
3330 echo "configure: failed program was:" >&5
3331 cat conftest.$ac_ext >&5
3332 ac_cv_prog_cc_works=no
3336 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3337 ac_cpp='$CPP $CPPFLAGS'
3338 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3339 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3340 cross_compiling=$ac_cv_prog_cc_cross
3342 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3343 if test $ac_cv_prog_cc_works = no; then
3344 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3346 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3347 echo "configure:3348: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3348 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3349 cross_compiling=$ac_cv_prog_cc_cross
3351 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3352 echo "configure:3353: checking whether we are using GNU C" >&5
3353 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3354 echo $ac_n "(cached) $ac_c" 1>&6
3356 cat > conftest.c <<EOF
3361 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3362: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3368 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3370 if test $ac_cv_prog_gcc = yes; then
3376 ac_test_CFLAGS="${CFLAGS+set}"
3377 ac_save_CFLAGS="$CFLAGS"
3379 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3380 echo "configure:3381: checking whether ${CC-cc} accepts -g" >&5
3381 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3382 echo $ac_n "(cached) $ac_c" 1>&6
3384 echo 'void f(){}' > conftest.c
3385 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3394 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3395 if test "$ac_test_CFLAGS" = set; then
3396 CFLAGS="$ac_save_CFLAGS"
3397 elif test $ac_cv_prog_cc_g = yes; then
3398 if test "$GCC" = yes; then
3404 if test "$GCC" = yes; then
3411 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3412 if test "${with_gnu_ld+set}" = set; then
3413 withval="$with_gnu_ld"
3414 test "$withval" = no || with_gnu_ld=yes
3420 if test "$GCC" = yes; then
3421 # Check if gcc -print-prog-name=ld gives a path.
3422 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3423 echo "configure:3424: checking for ld used by GCC" >&5
3426 # gcc leaves a trailing carriage return which upsets mingw
3427 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3429 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3432 # Accept absolute paths.
3433 [\\/]* | [A-Za-z]:[\\/]*)
3434 re_direlt='/[^/][^/]*/\.\./'
3435 # Canonicalize the path of ld
3436 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3437 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3438 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3440 test -z "$LD" && LD="$ac_prog"
3443 # If it fails, then pretend we aren't using GCC.
3447 # If it is relative, then search for the first ld in PATH.
3451 elif test "$with_gnu_ld" = yes; then
3452 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3453 echo "configure:3454: checking for GNU ld" >&5
3455 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3456 echo "configure:3457: checking for non-GNU ld" >&5
3458 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3459 echo $ac_n "(cached) $ac_c" 1>&6
3461 if test -z "$LD"; then
3462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3463 for ac_dir in $PATH; do
3464 test -z "$ac_dir" && ac_dir=.
3465 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3466 lt_cv_path_LD="$ac_dir/$ac_prog"
3467 # Check to see if the program is GNU ld. I'd rather use --version,
3468 # but apparently some GNU ld's only accept -v.
3469 # Break only if it was the GNU/non-GNU ld that we prefer.
3470 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3471 test "$with_gnu_ld" != no && break
3473 test "$with_gnu_ld" != yes && break
3479 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3484 if test -n "$LD"; then
3485 echo "$ac_t""$LD" 1>&6
3487 echo "$ac_t""no" 1>&6
3489 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3490 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3491 echo "configure:3492: checking if the linker ($LD) is GNU ld" >&5
3492 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3493 echo $ac_n "(cached) $ac_c" 1>&6
3495 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3496 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3497 lt_cv_prog_gnu_ld=yes
3499 lt_cv_prog_gnu_ld=no
3503 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3504 with_gnu_ld=$lt_cv_prog_gnu_ld
3507 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3508 echo "configure:3509: checking for $LD option to reload object files" >&5
3509 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3510 echo $ac_n "(cached) $ac_c" 1>&6
3512 lt_cv_ld_reload_flag='-r'
3515 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3516 reload_flag=$lt_cv_ld_reload_flag
3517 test -n "$reload_flag" && reload_flag=" $reload_flag"
3519 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3520 echo "configure:3521: checking for BSD-compatible nm" >&5
3521 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3522 echo $ac_n "(cached) $ac_c" 1>&6
3524 if test -n "$NM"; then
3525 # Let the user override the test.
3528 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3529 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3530 test -z "$ac_dir" && ac_dir=.
3531 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3532 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3533 # Check to see if the nm accepts a BSD-compat flag.
3534 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3535 # nm: unknown option "B" ignored
3536 # Tru64's nm complains that /dev/null is an invalid object file
3537 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3538 lt_cv_path_NM="$tmp_nm -B"
3540 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3541 lt_cv_path_NM="$tmp_nm -p"
3544 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3545 continue # so that we can try to find one that supports BSD flags
3550 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3555 echo "$ac_t""$NM" 1>&6
3557 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3558 echo "configure:3559: checking for a sed that does not truncate output" >&5
3559 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3560 echo $ac_n "(cached) $ac_c" 1>&6
3562 # Loop through the user's path and test for sed and gsed.
3563 # Then use that list of sed's as ones to test for truncation.
3564 as_executable_p="test -f"
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569 test -z "$as_dir" && as_dir=.
3570 for ac_prog in sed gsed; do
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3573 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3579 # Create a temporary directory, and hook for its removal unless debugging.
3582 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3583 trap '{ (exit 1); exit 1; }' 1 2 13 15
3586 # Create a (secure) tmp directory for tmp files.
3589 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3590 test -n "$tmp" && test -d "$tmp"
3593 tmp=$TMPDIR/sed$$-$RANDOM
3594 (umask 077 && mkdir $tmp)
3597 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3598 { (exit 1); exit 1; }
3602 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3603 # along with /bin/sed that truncates output.
3604 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3605 test ! -f ${_sed} && break
3606 cat /dev/null > "$tmp/sed.in"
3608 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3609 # Check for GNU sed and select it if it is found.
3610 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3611 lt_cv_path_SED=${_sed}
3615 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3616 mv "$tmp/sed.tmp" "$tmp/sed.in"
3617 cp "$tmp/sed.in" "$tmp/sed.nl"
3618 echo >>"$tmp/sed.nl"
3619 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3620 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3621 # 40000 chars as input seems more than enough
3622 test $_count -gt 10 && break
3623 _count=`expr $_count + 1`
3624 if test $_count -gt $_max; then
3626 lt_cv_path_SED=$_sed
3634 if test "X$SED" != "X"; then
3639 echo "$ac_t""$SED" 1>&6
3641 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3642 echo "configure:3643: checking whether ln -s works" >&5
3643 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3644 echo $ac_n "(cached) $ac_c" 1>&6
3647 if ln -s X conftestdata 2>/dev/null
3650 ac_cv_prog_LN_S="ln -s"
3655 LN_S="$ac_cv_prog_LN_S"
3656 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3657 echo "$ac_t""yes" 1>&6
3659 echo "$ac_t""no" 1>&6
3662 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3663 echo "configure:3664: checking how to recognise dependent libraries" >&5
3664 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3665 echo $ac_n "(cached) $ac_c" 1>&6
3667 lt_cv_file_magic_cmd='$MAGIC_CMD'
3668 lt_cv_file_magic_test_file=
3669 lt_cv_deplibs_check_method='unknown'
3670 # Need to set the preceding variable on all platforms that support
3671 # interlibrary dependencies.
3672 # 'none' -- dependencies not supported.
3673 # `unknown' -- same as none, but documents that we really don't know.
3674 # 'pass_all' -- all dependencies passed with no checks.
3675 # 'test_compile' -- check by making test program.
3676 # 'file_magic [[regex]]' -- check by looking for files in library path
3677 # which responds to the $file_magic_cmd with a given egrep regex.
3678 # If you have `file' or equivalent on your system and you're not sure
3679 # whether `pass_all' will *always* work, you probably want this one.
3683 lt_cv_deplibs_check_method=pass_all
3687 lt_cv_deplibs_check_method=pass_all
3691 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3692 lt_cv_file_magic_cmd='/usr/bin/file -L'
3693 lt_cv_file_magic_test_file=/shlib/libc.so
3696 cygwin* | mingw* | pw32*)
3697 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3698 lt_cv_file_magic_cmd='$OBJDUMP -f'
3701 darwin* | rhapsody*)
3702 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3703 lt_cv_file_magic_cmd='/usr/bin/file -L'
3705 rhapsody* | darwin1.[012])
3706 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3709 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3715 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3718 # Not sure whether the presence of OpenBSD here was a mistake.
3719 # Let's accept both of them until this is cleared up.
3720 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3721 lt_cv_file_magic_cmd=/usr/bin/file
3722 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3726 lt_cv_deplibs_check_method=pass_all
3731 lt_cv_deplibs_check_method=pass_all
3735 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3736 lt_cv_file_magic_cmd=/usr/bin/file
3737 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3740 irix5* | irix6* | nonstopux*)
3742 irix5* | nonstopux*)
3743 # this will be overridden with pass_all, but let us keep it just in case
3744 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3748 *-32|*"-32 ") libmagic=32-bit;;
3749 *-n32|*"-n32 ") libmagic=N32;;
3750 *-64|*"-64 ") libmagic=64-bit;;
3751 *) libmagic=never-match;;
3753 # this will be overridden with pass_all, but let us keep it just in case
3754 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3757 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3758 lt_cv_deplibs_check_method=pass_all
3761 # This must be Linux ELF.
3764 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3765 lt_cv_deplibs_check_method=pass_all ;;
3767 # glibc up to 2.1.1 does not perform some relocations on ARM
3768 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3770 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3774 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3775 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3777 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3782 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3783 lt_cv_file_magic_cmd=/usr/bin/file
3784 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3788 lt_cv_file_magic_cmd=/usr/bin/file
3789 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3790 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3791 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3793 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3798 lt_cv_deplibs_check_method=pass_all
3801 osf3* | osf4* | osf5*)
3802 # this will be overridden with pass_all, but let us keep it just in case
3803 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3804 lt_cv_file_magic_test_file=/shlib/libc.so
3805 lt_cv_deplibs_check_method=pass_all
3809 lt_cv_deplibs_check_method=pass_all
3813 lt_cv_deplibs_check_method=pass_all
3814 lt_cv_file_magic_test_file=/lib/libc.so
3817 sysv5uw[78]* | sysv4*uw2*)
3818 lt_cv_deplibs_check_method=pass_all
3821 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3822 case $host_vendor in
3824 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]'
3825 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3828 lt_cv_deplibs_check_method=pass_all
3831 lt_cv_file_magic_cmd='/bin/file'
3832 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3835 lt_cv_file_magic_cmd='/bin/file'
3836 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3837 lt_cv_file_magic_test_file=/lib/libc.so
3840 lt_cv_deplibs_check_method=pass_all
3848 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3849 file_magic_cmd=$lt_cv_file_magic_cmd
3850 deplibs_check_method=$lt_cv_deplibs_check_method
3852 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3853 echo "configure:3854: checking for object suffix" >&5
3854 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3855 echo $ac_n "(cached) $ac_c" 1>&6
3858 echo 'int i = 1;' > conftest.$ac_ext
3859 if { (eval echo configure:3860: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3860 for ac_file in conftest.*; do
3863 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3867 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3872 echo "$ac_t""$ac_cv_objext" 1>&6
3873 OBJEXT=$ac_cv_objext
3874 ac_objext=$ac_cv_objext
3879 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3880 echo "configure:3881: checking for executable suffix" >&5
3881 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3882 echo $ac_n "(cached) $ac_c" 1>&6
3884 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3888 echo 'int main () { return 0; }' > conftest.$ac_ext
3890 if { (eval echo configure:3891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3891 for file in conftest.*; do
3893 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3894 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3898 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3901 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3906 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3907 echo "$ac_t""${ac_cv_exeext}" 1>&6
3910 if test $host != $build; then
3911 ac_tool_prefix=${host_alias}-
3919 # Check for command to grab the raw symbol name followed by C symbol from nm.
3920 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3921 echo "configure:3922: checking command to parse $NM output" >&5
3922 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
3923 echo $ac_n "(cached) $ac_c" 1>&6
3926 # These are sane defaults that work on at least a few old systems.
3927 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3929 # Character class describing NM global symbol codes.
3930 symcode='[BCDEGRST]'
3932 # Regexp to match symbols that can be accessed directly from C.
3933 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3935 # Transform the above into a raw symbol and a C symbol.
3936 symxfrm='\1 \2\3 \3'
3938 # Transform an extracted symbol line into a proper C declaration
3939 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3941 # Transform an extracted symbol line into symbol name and symbol address
3942 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3944 # Define system-specific variables.
3949 cygwin* | mingw* | pw32*)
3950 symcode='[ABCDGISTW]'
3952 hpux*) # Its linker distinguishes data from code symbols
3953 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3954 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3957 symcode='[BCDEGRST]'
3960 symcode='[BCDEGQRST]'
3970 # Handle CRLF in mingw tool chain
3974 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3978 # If we're using GNU nm, then use its standard symbol codes.
3979 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3980 symcode='[ABCDGISTW]'
3983 # Try without a prefix undercore, then with it.
3984 for ac_symprfx in "" "_"; do
3986 # Write the raw and C identifiers.
3987 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3989 # Check to see that the pipe works correctly.
3992 cat > conftest.$ac_ext <<EOF
3997 void nm_test_func(){}
4001 int main(){nm_test_var='a';nm_test_func();return(0);}
4004 if { (eval echo configure:4005: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4005 # Now try to grab the symbols.
4007 if { (eval echo configure:4008: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
4008 # Try sorting and uniquifying the output.
4009 if sort "$nlist" | uniq > "$nlist"T; then
4010 mv -f "$nlist"T "$nlist"
4015 # Make sure that we snagged all the symbols we need.
4016 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4017 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4018 cat <<EOF > conftest.$ac_ext
4024 # Now generate the symbol file.
4025 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4027 cat <<EOF >> conftest.$ac_ext
4028 #if defined (__STDC__) && __STDC__
4029 # define lt_ptr void *
4031 # define lt_ptr char *
4035 /* The mapping between symbol names and symbols. */
4040 lt_preloaded_symbols[] =
4043 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4044 cat <<\EOF >> conftest.$ac_ext
4052 # Now try linking the two files.
4053 mv conftest.$ac_objext conftstm.$ac_objext
4055 save_CFLAGS="$CFLAGS"
4056 LIBS="conftstm.$ac_objext"
4057 CFLAGS="$CFLAGS$no_builtin_flag"
4058 if { (eval echo configure:4059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4062 CFLAGS="$save_CFLAGS"
4064 echo "cannot find nm_test_func in $nlist" >&5
4067 echo "cannot find nm_test_var in $nlist" >&5
4070 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4073 echo "$progname: failed program was:" >&5
4074 cat conftest.$ac_ext >&5
4076 rm -f conftest* conftst*
4078 # Do not use the global_symbol_pipe unless it works.
4079 if test "$pipe_works" = yes; then
4082 lt_cv_sys_global_symbol_pipe=
4088 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4089 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4090 global_symbol_to_cdecl=
4091 global_symbol_to_c_name_address=
4093 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4094 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4096 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4098 echo "$ac_t""failed" 1>&6
4100 echo "$ac_t""ok" 1>&6
4103 for ac_hdr in dlfcn.h
4105 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4106 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4107 echo "configure:4108: checking for $ac_hdr" >&5
4108 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4109 echo $ac_n "(cached) $ac_c" 1>&6
4111 cat > conftest.$ac_ext <<EOF
4112 #line 4113 "configure"
4113 #include "confdefs.h"
4116 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4117 { (eval echo configure:4118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4118 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4119 if test -z "$ac_err"; then
4121 eval "ac_cv_header_$ac_safe=yes"
4124 echo "configure: failed program was:" >&5
4125 cat conftest.$ac_ext >&5
4127 eval "ac_cv_header_$ac_safe=no"
4131 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4132 echo "$ac_t""yes" 1>&6
4133 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4134 cat >> confdefs.h <<EOF
4135 #define $ac_tr_hdr 1
4139 echo "$ac_t""no" 1>&6
4148 # Only perform the check for file, if the check method requires it
4149 case $deplibs_check_method in
4151 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4152 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4153 echo "configure:4154: checking for ${ac_tool_prefix}file" >&5
4154 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4155 echo $ac_n "(cached) $ac_c" 1>&6
4159 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4162 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4165 ac_save_MAGIC_CMD="$MAGIC_CMD"
4166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4167 ac_dummy="/usr/bin:$PATH"
4168 for ac_dir in $ac_dummy; do
4169 test -z "$ac_dir" && ac_dir=.
4170 if test -f $ac_dir/${ac_tool_prefix}file; then
4171 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4172 if test -n "$file_magic_test_file"; then
4173 case $deplibs_check_method in
4175 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4176 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4177 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4178 egrep "$file_magic_regex" > /dev/null; then
4183 *** Warning: the command libtool uses to detect shared libraries,
4184 *** $file_magic_cmd, produces output that libtool cannot recognize.
4185 *** The result is that libtool may fail to recognize shared libraries
4186 *** as such. This will affect the creation of libtool libraries that
4187 *** depend on shared libraries, but programs linked with such libtool
4188 *** libraries will work regardless of this problem. Nevertheless, you
4189 *** may want to report the problem to your system manager and/or to
4190 *** bug-libtool@gnu.org
4200 MAGIC_CMD="$ac_save_MAGIC_CMD"
4205 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4206 if test -n "$MAGIC_CMD"; then
4207 echo "$ac_t""$MAGIC_CMD" 1>&6
4209 echo "$ac_t""no" 1>&6
4212 if test -z "$lt_cv_path_MAGIC_CMD"; then
4213 if test -n "$ac_tool_prefix"; then
4214 echo $ac_n "checking for file""... $ac_c" 1>&6
4215 echo "configure:4216: checking for file" >&5
4216 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4217 echo $ac_n "(cached) $ac_c" 1>&6
4221 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4224 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4227 ac_save_MAGIC_CMD="$MAGIC_CMD"
4228 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4229 ac_dummy="/usr/bin:$PATH"
4230 for ac_dir in $ac_dummy; do
4231 test -z "$ac_dir" && ac_dir=.
4232 if test -f $ac_dir/file; then
4233 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4234 if test -n "$file_magic_test_file"; then
4235 case $deplibs_check_method in
4237 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4238 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4239 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4240 egrep "$file_magic_regex" > /dev/null; then
4245 *** Warning: the command libtool uses to detect shared libraries,
4246 *** $file_magic_cmd, produces output that libtool cannot recognize.
4247 *** The result is that libtool may fail to recognize shared libraries
4248 *** as such. This will affect the creation of libtool libraries that
4249 *** depend on shared libraries, but programs linked with such libtool
4250 *** libraries will work regardless of this problem. Nevertheless, you
4251 *** may want to report the problem to your system manager and/or to
4252 *** bug-libtool@gnu.org
4262 MAGIC_CMD="$ac_save_MAGIC_CMD"
4267 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4268 if test -n "$MAGIC_CMD"; then
4269 echo "$ac_t""$MAGIC_CMD" 1>&6
4271 echo "$ac_t""no" 1>&6
4283 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4284 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4285 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4286 echo "configure:4287: checking for $ac_word" >&5
4287 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4288 echo $ac_n "(cached) $ac_c" 1>&6
4290 if test -n "$RANLIB"; then
4291 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4295 for ac_dir in $ac_dummy; do
4296 test -z "$ac_dir" && ac_dir=.
4297 if test -f $ac_dir/$ac_word; then
4298 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4305 RANLIB="$ac_cv_prog_RANLIB"
4306 if test -n "$RANLIB"; then
4307 echo "$ac_t""$RANLIB" 1>&6
4309 echo "$ac_t""no" 1>&6
4313 if test -z "$ac_cv_prog_RANLIB"; then
4314 if test -n "$ac_tool_prefix"; then
4315 # Extract the first word of "ranlib", so it can be a program name with args.
4316 set dummy ranlib; ac_word=$2
4317 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4318 echo "configure:4319: checking for $ac_word" >&5
4319 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4320 echo $ac_n "(cached) $ac_c" 1>&6
4322 if test -n "$RANLIB"; then
4323 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4325 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4327 for ac_dir in $ac_dummy; do
4328 test -z "$ac_dir" && ac_dir=.
4329 if test -f $ac_dir/$ac_word; then
4330 ac_cv_prog_RANLIB="ranlib"
4335 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4338 RANLIB="$ac_cv_prog_RANLIB"
4339 if test -n "$RANLIB"; then
4340 echo "$ac_t""$RANLIB" 1>&6
4342 echo "$ac_t""no" 1>&6
4350 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4351 set dummy ${ac_tool_prefix}strip; ac_word=$2
4352 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4353 echo "configure:4354: checking for $ac_word" >&5
4354 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4355 echo $ac_n "(cached) $ac_c" 1>&6
4357 if test -n "$STRIP"; then
4358 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4362 for ac_dir in $ac_dummy; do
4363 test -z "$ac_dir" && ac_dir=.
4364 if test -f $ac_dir/$ac_word; then
4365 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4372 STRIP="$ac_cv_prog_STRIP"
4373 if test -n "$STRIP"; then
4374 echo "$ac_t""$STRIP" 1>&6
4376 echo "$ac_t""no" 1>&6
4380 if test -z "$ac_cv_prog_STRIP"; then
4381 if test -n "$ac_tool_prefix"; then
4382 # Extract the first word of "strip", so it can be a program name with args.
4383 set dummy strip; ac_word=$2
4384 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4385 echo "configure:4386: checking for $ac_word" >&5
4386 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4387 echo $ac_n "(cached) $ac_c" 1>&6
4389 if test -n "$STRIP"; then
4390 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4392 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4394 for ac_dir in $ac_dummy; do
4395 test -z "$ac_dir" && ac_dir=.
4396 if test -f $ac_dir/$ac_word; then
4397 ac_cv_prog_STRIP="strip"
4402 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4405 STRIP="$ac_cv_prog_STRIP"
4406 if test -n "$STRIP"; then
4407 echo "$ac_t""$STRIP" 1>&6
4409 echo "$ac_t""no" 1>&6
4419 enable_win32_dll=yes
4421 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4422 if test "${enable_libtool_lock+set}" = set; then
4423 enableval="$enable_libtool_lock"
4427 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4429 # Some flags need to be propagated to the compiler or linker for good
4433 # Find out which ABI we are using.
4434 echo '#line 4435 "configure"' > conftest.$ac_ext
4435 if { (eval echo configure:4436: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4436 case `/usr/bin/file conftest.$ac_objext` in
4452 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4453 SAVE_CFLAGS="$CFLAGS"
4454 CFLAGS="$CFLAGS -belf"
4455 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4456 echo "configure:4457: checking whether the C compiler needs -belf" >&5
4457 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4458 echo $ac_n "(cached) $ac_c" 1>&6
4462 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4463 ac_cpp='$CPP $CPPFLAGS'
4464 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4465 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4466 cross_compiling=$ac_cv_prog_cc_cross
4468 cat > conftest.$ac_ext <<EOF
4469 #line 4470 "configure"
4470 #include "confdefs.h"
4476 if { (eval echo configure:4477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4478 lt_cv_cc_needs_belf=yes
4480 echo "configure: failed program was:" >&5
4481 cat conftest.$ac_ext >&5
4483 lt_cv_cc_needs_belf=no
4487 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4488 ac_cpp='$CPP $CPPFLAGS'
4489 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4490 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4491 cross_compiling=$ac_cv_prog_cc_cross
4495 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4496 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4497 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4498 CFLAGS="$SAVE_CFLAGS"
4502 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4503 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4504 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4505 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4506 echo "configure:4507: checking for $ac_word" >&5
4507 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4508 echo $ac_n "(cached) $ac_c" 1>&6
4510 if test -n "$DLLTOOL"; then
4511 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4513 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4515 for ac_dir in $ac_dummy; do
4516 test -z "$ac_dir" && ac_dir=.
4517 if test -f $ac_dir/$ac_word; then
4518 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4525 DLLTOOL="$ac_cv_prog_DLLTOOL"
4526 if test -n "$DLLTOOL"; then
4527 echo "$ac_t""$DLLTOOL" 1>&6
4529 echo "$ac_t""no" 1>&6
4533 if test -z "$ac_cv_prog_DLLTOOL"; then
4534 if test -n "$ac_tool_prefix"; then
4535 # Extract the first word of "dlltool", so it can be a program name with args.
4536 set dummy dlltool; ac_word=$2
4537 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4538 echo "configure:4539: checking for $ac_word" >&5
4539 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4540 echo $ac_n "(cached) $ac_c" 1>&6
4542 if test -n "$DLLTOOL"; then
4543 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4547 for ac_dir in $ac_dummy; do
4548 test -z "$ac_dir" && ac_dir=.
4549 if test -f $ac_dir/$ac_word; then
4550 ac_cv_prog_DLLTOOL="dlltool"
4555 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4558 DLLTOOL="$ac_cv_prog_DLLTOOL"
4559 if test -n "$DLLTOOL"; then
4560 echo "$ac_t""$DLLTOOL" 1>&6
4562 echo "$ac_t""no" 1>&6
4570 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4571 set dummy ${ac_tool_prefix}as; ac_word=$2
4572 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4573 echo "configure:4574: checking for $ac_word" >&5
4574 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4575 echo $ac_n "(cached) $ac_c" 1>&6
4577 if test -n "$AS"; then
4578 ac_cv_prog_AS="$AS" # Let the user override the test.
4580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4582 for ac_dir in $ac_dummy; do
4583 test -z "$ac_dir" && ac_dir=.
4584 if test -f $ac_dir/$ac_word; then
4585 ac_cv_prog_AS="${ac_tool_prefix}as"
4593 if test -n "$AS"; then
4594 echo "$ac_t""$AS" 1>&6
4596 echo "$ac_t""no" 1>&6
4600 if test -z "$ac_cv_prog_AS"; then
4601 if test -n "$ac_tool_prefix"; then
4602 # Extract the first word of "as", so it can be a program name with args.
4603 set dummy as; ac_word=$2
4604 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4605 echo "configure:4606: checking for $ac_word" >&5
4606 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4607 echo $ac_n "(cached) $ac_c" 1>&6
4609 if test -n "$AS"; then
4610 ac_cv_prog_AS="$AS" # Let the user override the test.
4612 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4614 for ac_dir in $ac_dummy; do
4615 test -z "$ac_dir" && ac_dir=.
4616 if test -f $ac_dir/$ac_word; then
4622 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4626 if test -n "$AS"; then
4627 echo "$ac_t""$AS" 1>&6
4629 echo "$ac_t""no" 1>&6
4637 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4638 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4639 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4640 echo "configure:4641: checking for $ac_word" >&5
4641 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4642 echo $ac_n "(cached) $ac_c" 1>&6
4644 if test -n "$OBJDUMP"; then
4645 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4647 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4649 for ac_dir in $ac_dummy; do
4650 test -z "$ac_dir" && ac_dir=.
4651 if test -f $ac_dir/$ac_word; then
4652 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4659 OBJDUMP="$ac_cv_prog_OBJDUMP"
4660 if test -n "$OBJDUMP"; then
4661 echo "$ac_t""$OBJDUMP" 1>&6
4663 echo "$ac_t""no" 1>&6
4667 if test -z "$ac_cv_prog_OBJDUMP"; then
4668 if test -n "$ac_tool_prefix"; then
4669 # Extract the first word of "objdump", so it can be a program name with args.
4670 set dummy objdump; ac_word=$2
4671 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4672 echo "configure:4673: checking for $ac_word" >&5
4673 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4674 echo $ac_n "(cached) $ac_c" 1>&6
4676 if test -n "$OBJDUMP"; then
4677 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4679 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4681 for ac_dir in $ac_dummy; do
4682 test -z "$ac_dir" && ac_dir=.
4683 if test -f $ac_dir/$ac_word; then
4684 ac_cv_prog_OBJDUMP="objdump"
4689 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4692 OBJDUMP="$ac_cv_prog_OBJDUMP"
4693 if test -n "$OBJDUMP"; then
4694 echo "$ac_t""$OBJDUMP" 1>&6
4696 echo "$ac_t""no" 1>&6
4705 # recent cygwin and mingw systems supply a stub DllMain which the user
4706 # can override, but on older systems we have to supply one
4707 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4708 echo "configure:4709: checking if libtool should supply DllMain function" >&5
4709 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4710 echo $ac_n "(cached) $ac_c" 1>&6
4712 cat > conftest.$ac_ext <<EOF
4713 #line 4714 "configure"
4714 #include "confdefs.h"
4717 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4721 if { (eval echo configure:4722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4723 lt_cv_need_dllmain=no
4725 echo "configure: failed program was:" >&5
4726 cat conftest.$ac_ext >&5
4728 lt_cv_need_dllmain=yes
4733 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4736 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4737 # old mingw systems require "-dll" to link a DLL, while more recent ones
4739 SAVE_CFLAGS="$CFLAGS"
4740 CFLAGS="$CFLAGS -mdll"
4741 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4742 echo "configure:4743: checking how to link DLLs" >&5
4743 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4744 echo $ac_n "(cached) $ac_c" 1>&6
4746 cat > conftest.$ac_ext <<EOF
4747 #line 4748 "configure"
4748 #include "confdefs.h"
4754 if { (eval echo configure:4755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4756 lt_cv_cc_dll_switch=-mdll
4758 echo "configure: failed program was:" >&5
4759 cat conftest.$ac_ext >&5
4761 lt_cv_cc_dll_switch=-dll
4766 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4767 CFLAGS="$SAVE_CFLAGS" ;;
4768 *-*-cygwin* | *-*-pw32*)
4769 # cygwin systems need to pass --dll to the linker, and not link
4770 # crt.o which will require a WinMain@16 definition.
4771 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4777 # Sed substitution that helps us do robust quoting. It backslashifies
4778 # metacharacters that are still active within double-quoted strings.
4779 Xsed='sed -e s/^X//'
4780 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4782 # Same as above, but do not quote variable references.
4783 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4785 # Sed substitution to delay expansion of an escaped shell variable in a
4786 # double_quote_subst'ed string.
4787 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4793 default_ofile=libtool
4794 can_build_shared=yes
4796 # All known linkers require a `.a' archive for static linking (except M$VC,
4797 # which needs '.lib').
4799 ltmain="$ac_aux_dir/ltmain.sh"
4800 ofile="$default_ofile"
4801 with_gnu_ld="$lt_cv_prog_gnu_ld"
4802 need_locks="$enable_libtool_lock"
4805 old_CFLAGS="$CFLAGS"
4807 # Set sane defaults for various variables
4808 test -z "$AR" && AR=ar
4809 test -z "$AR_FLAGS" && AR_FLAGS=cru
4810 test -z "$AS" && AS=as
4811 test -z "$CC" && CC=cc
4812 test -z "$DLLTOOL" && DLLTOOL=dlltool
4813 test -z "$LD" && LD=ld
4814 test -z "$LN_S" && LN_S="ln -s"
4815 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4816 test -z "$NM" && NM=nm
4817 test -z "$OBJDUMP" && OBJDUMP=objdump
4818 test -z "$RANLIB" && RANLIB=:
4819 test -z "$STRIP" && STRIP=:
4820 test -z "$ac_objext" && ac_objext=o
4822 if test x"$host" != x"$build"; then
4823 ac_tool_prefix=${host_alias}-
4828 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4831 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4836 # AIX sometimes has problems with the GCC collect2 program. For some
4837 # reason, if we set the COLLECT_NAMES environment variable, the problems
4838 # vanish in a puff of smoke.
4839 if test "X${COLLECT_NAMES+set}" != Xset; then
4841 export COLLECT_NAMES
4846 # Determine commands to create old-style static archives.
4847 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4848 old_postinstall_cmds='chmod 644 $oldlib'
4849 old_postuninstall_cmds=
4851 if test -n "$RANLIB"; then
4854 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4857 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4860 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4863 # Allow CC to be a program name with arguments.
4867 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4868 echo "configure:4869: checking for objdir" >&5
4869 rm -f .libs 2>/dev/null
4870 mkdir .libs 2>/dev/null
4871 if test -d .libs; then
4874 # MS-DOS does not allow filenames that begin with a dot.
4877 rmdir .libs 2>/dev/null
4878 echo "$ac_t""$objdir" 1>&6
4881 # Check whether --with-pic or --without-pic was given.
4882 if test "${with_pic+set}" = set; then
4889 test -z "$pic_mode" && pic_mode=default
4891 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4892 # in isolation, and that seeing it set (from the cache) indicates that
4893 # the associated values are set (in the cache) correctly too.
4894 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4895 echo "configure:4896: checking for $compiler option to produce PIC" >&5
4896 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4897 echo $ac_n "(cached) $ac_c" 1>&6
4900 lt_cv_prog_cc_shlib=
4902 lt_cv_prog_cc_static=
4903 lt_cv_prog_cc_no_builtin=
4904 lt_cv_prog_cc_can_build_shared=$can_build_shared
4906 if test "$GCC" = yes; then
4907 lt_cv_prog_cc_wl='-Wl,'
4908 lt_cv_prog_cc_static='-static'
4912 # Below there is a dirty hack to force normal static linking with -ldl
4913 # The problem is because libdl dynamically linked with both libc and
4914 # libC (AIX C++ library), which obviously doesn't included in libraries
4915 # list by gcc. This cause undefined symbols with -static flags.
4916 # This hack allows C programs to be linked with "-static -ldl", but
4917 # not sure about C++ programs.
4918 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4921 # FIXME: we need at least 68020 code to build shared libraries, but
4922 # adding the `-m68020' flag to GCC prevents building anything better,
4924 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4926 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4927 # PIC is the default for these OSes.
4929 darwin* | rhapsody*)
4930 # PIC is the default on this platform
4931 # Common symbols not allowed in MH_DYLIB files
4932 lt_cv_prog_cc_pic='-fno-common'
4934 cygwin* | mingw* | pw32* | os2*)
4935 # This hack is so that the source file can tell whether it is being
4936 # built for inclusion in a dll (and should export symbols for example).
4937 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4940 if test -d /usr/nec; then
4941 lt_cv_prog_cc_pic=-Kconform_pic
4945 lt_cv_prog_cc_pic='-fPIC'
4949 # PORTME Check for PIC flags for the system compiler.
4951 aix3* | aix4* | aix5*)
4952 lt_cv_prog_cc_wl='-Wl,'
4953 # All AIX code is PIC.
4954 if test "$host_cpu" = ia64; then
4955 # AIX 5 now supports IA64 processor
4956 lt_cv_prog_cc_static='-Bstatic'
4958 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4962 hpux9* | hpux10* | hpux11*)
4963 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4964 lt_cv_prog_cc_wl='-Wl,'
4965 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4966 lt_cv_prog_cc_pic='+Z'
4969 irix5* | irix6* | nonstopux*)
4970 lt_cv_prog_cc_wl='-Wl,'
4971 lt_cv_prog_cc_static='-non_shared'
4972 # PIC (with -KPIC) is the default.
4975 cygwin* | mingw* | pw32* | os2*)
4976 # This hack is so that the source file can tell whether it is being
4977 # built for inclusion in a dll (and should export symbols for example).
4978 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4982 lt_cv_prog_cc_pic='-KPIC'
4983 lt_cv_prog_cc_static='-Bstatic'
4987 # XPLINK code is PIC by default
4990 osf3* | osf4* | osf5*)
4991 # All OSF/1 code is PIC.
4992 lt_cv_prog_cc_wl='-Wl,'
4993 lt_cv_prog_cc_static='-non_shared'
4997 lt_cv_prog_cc_pic='-Kpic'
4998 lt_cv_prog_cc_static='-dn'
4999 lt_cv_prog_cc_shlib='-belf'
5003 lt_cv_prog_cc_pic='-KPIC'
5004 lt_cv_prog_cc_static='-Bstatic'
5005 lt_cv_prog_cc_wl='-Wl,'
5009 lt_cv_prog_cc_pic='-PIC'
5010 lt_cv_prog_cc_static='-Bstatic'
5011 lt_cv_prog_cc_wl='-Qoption ld '
5014 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5015 lt_cv_prog_cc_pic='-KPIC'
5016 lt_cv_prog_cc_static='-Bstatic'
5017 lt_cv_prog_cc_wl='-Wl,'
5021 lt_cv_prog_cc_pic='-pic'
5022 lt_cv_prog_cc_static='-Bstatic'
5026 if test -d /usr/nec ;then
5027 lt_cv_prog_cc_pic='-Kconform_pic'
5028 lt_cv_prog_cc_static='-Bstatic'
5033 lt_cv_prog_cc_can_build_shared=no
5040 if test -z "$lt_cv_prog_cc_pic"; then
5041 echo "$ac_t""none" 1>&6
5043 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5045 # Check to make sure the pic_flag actually works.
5046 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5047 echo "configure:5048: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5048 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5049 echo $ac_n "(cached) $ac_c" 1>&6
5051 save_CFLAGS="$CFLAGS"
5052 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5053 cat > conftest.$ac_ext <<EOF
5054 #line 5055 "configure"
5055 #include "confdefs.h"
5061 if { (eval echo configure:5062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5064 hpux9* | hpux10* | hpux11*)
5065 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5066 # they create non-PIC objects. So, if there were any warnings, we
5067 # assume that PIC is not supported.
5068 if test -s conftest.err; then
5069 lt_cv_prog_cc_pic_works=no
5071 lt_cv_prog_cc_pic_works=yes
5075 lt_cv_prog_cc_pic_works=yes
5080 echo "configure: failed program was:" >&5
5081 cat conftest.$ac_ext >&5
5083 lt_cv_prog_cc_pic_works=no
5087 CFLAGS="$save_CFLAGS"
5092 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5094 lt_cv_prog_cc_can_build_shared=no
5096 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5099 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5102 # Check for any special shared library compilation flags.
5103 if test -n "$lt_cv_prog_cc_shlib"; then
5104 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5105 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5107 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5108 lt_cv_prog_cc_can_build_shared=no
5112 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5113 echo "configure:5114: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5114 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5115 echo $ac_n "(cached) $ac_c" 1>&6
5117 lt_cv_prog_cc_static_works=no
5118 save_LDFLAGS="$LDFLAGS"
5119 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5120 cat > conftest.$ac_ext <<EOF
5121 #line 5122 "configure"
5122 #include "confdefs.h"
5128 if { (eval echo configure:5129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5130 lt_cv_prog_cc_static_works=yes
5132 echo "configure: failed program was:" >&5
5133 cat conftest.$ac_ext >&5
5136 LDFLAGS="$save_LDFLAGS"
5141 # Belt *and* braces to stop my trousers falling down:
5142 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5143 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5145 pic_flag="$lt_cv_prog_cc_pic"
5146 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5147 wl="$lt_cv_prog_cc_wl"
5148 link_static_flag="$lt_cv_prog_cc_static"
5149 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5150 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5153 # Check to see if options -o and -c are simultaneously supported by compiler
5154 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5155 echo "configure:5156: checking if $compiler supports -c -o file.$ac_objext" >&5
5156 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5157 echo $ac_n "(cached) $ac_c" 1>&6
5160 $rm -r conftest 2>/dev/null
5163 echo "int some_variable = 0;" > conftest.$ac_ext
5165 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5166 # that will create temporary files in the current directory regardless of
5167 # the output directory. Thus, making CWD read-only will cause this test
5168 # to fail, enabling locking or at least warning the user not to do parallel
5171 save_CFLAGS="$CFLAGS"
5172 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5174 if { (eval echo configure:5175: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5175 # The compiler can only warn and ignore the option if not recognized
5176 # So say no if there are warnings
5177 if test -s out/conftest.err; then
5178 lt_cv_compiler_c_o=no
5180 lt_cv_compiler_c_o=yes
5183 # Append any errors to the config.log.
5184 cat out/conftest.err 1>&5
5185 lt_cv_compiler_c_o=no
5187 CFLAGS="$save_CFLAGS"
5193 $rm -r conftest 2>/dev/null
5197 compiler_c_o=$lt_cv_compiler_c_o
5198 echo "$ac_t""$compiler_c_o" 1>&6
5200 if test x"$compiler_c_o" = x"yes"; then
5201 # Check to see if we can write to a .lo
5202 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5203 echo "configure:5204: checking if $compiler supports -c -o file.lo" >&5
5204 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5205 echo $ac_n "(cached) $ac_c" 1>&6
5208 lt_cv_compiler_o_lo=no
5209 save_CFLAGS="$CFLAGS"
5210 CFLAGS="$CFLAGS -c -o conftest.lo"
5211 save_objext="$ac_objext"
5213 cat > conftest.$ac_ext <<EOF
5214 #line 5215 "configure"
5215 #include "confdefs.h"
5218 int some_variable = 0;
5221 if { (eval echo configure:5222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5223 # The compiler can only warn and ignore the option if not recognized
5224 # So say no if there are warnings
5225 if test -s conftest.err; then
5226 lt_cv_compiler_o_lo=no
5228 lt_cv_compiler_o_lo=yes
5232 echo "configure: failed program was:" >&5
5233 cat conftest.$ac_ext >&5
5236 ac_objext="$save_objext"
5237 CFLAGS="$save_CFLAGS"
5241 compiler_o_lo=$lt_cv_compiler_o_lo
5242 echo "$ac_t""$compiler_o_lo" 1>&6
5247 # Check to see if we can do hard links to lock some files if needed
5248 hard_links="nottested"
5249 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5250 # do not overwrite the value of need_locks provided by the user
5251 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5252 echo "configure:5253: checking if we can lock with hard links" >&5
5255 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5257 ln conftest.a conftest.b 2>&5 || hard_links=no
5258 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5259 echo "$ac_t""$hard_links" 1>&6
5260 if test "$hard_links" = no; then
5261 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5268 if test "$GCC" = yes; then
5269 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5270 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5271 echo "configure:5272: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5272 echo "int some_variable = 0;" > conftest.$ac_ext
5273 save_CFLAGS="$CFLAGS"
5274 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5275 compiler_rtti_exceptions=no
5276 cat > conftest.$ac_ext <<EOF
5277 #line 5278 "configure"
5278 #include "confdefs.h"
5281 int some_variable = 0;
5284 if { (eval echo configure:5285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5286 # The compiler can only warn and ignore the option if not recognized
5287 # So say no if there are warnings
5288 if test -s conftest.err; then
5289 compiler_rtti_exceptions=no
5291 compiler_rtti_exceptions=yes
5295 echo "configure: failed program was:" >&5
5296 cat conftest.$ac_ext >&5
5299 CFLAGS="$save_CFLAGS"
5300 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5302 if test "$compiler_rtti_exceptions" = "yes"; then
5303 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5305 no_builtin_flag=' -fno-builtin'
5309 # See if the linker supports building shared libraries.
5310 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5311 echo "configure:5312: checking whether the linker ($LD) supports shared libraries" >&5
5313 allow_undefined_flag=
5315 need_lib_prefix=unknown
5316 need_version=unknown
5317 # when you set need_version to no, make sure it does not cause -set_version
5318 # flags to be left without arguments
5320 archive_expsym_cmds=
5321 old_archive_from_new_cmds=
5322 old_archive_from_expsyms_cmds=
5323 export_dynamic_flag_spec=
5324 whole_archive_flag_spec=
5325 thread_safe_flag_spec=
5326 hardcode_into_libs=no
5327 hardcode_libdir_flag_spec=
5328 hardcode_libdir_separator=
5331 hardcode_shlibpath_var=unsupported
5333 link_all_deplibs=unknown
5334 always_export_symbols=no
5335 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5336 # include_expsyms should be a list of space-separated symbols to be *always*
5337 # included in the symbol list
5339 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5340 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5341 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5342 # as well as any symbol that contains `d'.
5343 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5344 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5345 # platforms (ab)use it in PIC code, but their linkers get confused if
5346 # the symbol is explicitly referenced. Since portable code cannot
5347 # rely on this symbol name, it's probably fine to never include it in
5348 # preloaded symbol tables.
5349 extract_expsyms_cmds=
5352 cygwin* | mingw* | pw32*)
5353 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5354 # When not using gcc, we currently assume that we are using
5355 # Microsoft Visual C++.
5356 if test "$GCC" != yes; then
5366 if test "$with_gnu_ld" = yes; then
5367 # If archive_cmds runs LD, not CC, wlarc should be empty
5370 # See if GNU ld supports shared libraries.
5372 aix3* | aix4* | aix5*)
5373 # On AIX, the GNU linker is very broken
5374 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5378 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5379 *** to be unable to reliably create shared libraries on AIX.
5380 *** Therefore, libtool is disabling shared libraries support. If you
5381 *** really care for shared libraries, you may want to modify your PATH
5382 *** so that a non-GNU linker is found, and then restart.
5388 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)'
5389 hardcode_libdir_flag_spec='-L$libdir'
5390 hardcode_minus_L=yes
5392 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5393 # that the semantics of dynamic libraries on AmigaOS, at least up
5394 # to version 4, is to share data among multiple programs linked
5395 # with the same dynamic library. Since this doesn't match the
5396 # behavior of shared libraries on other platforms, we can use
5402 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5403 allow_undefined_flag=unsupported
5404 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5405 # support --undefined. This deserves some investigation. FIXME
5406 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5412 cygwin* | mingw* | pw32*)
5413 # hardcode_libdir_flag_spec is actually meaningless, as there is
5414 # no search path for DLLs.
5415 hardcode_libdir_flag_spec='-L$libdir'
5416 allow_undefined_flag=unsupported
5417 always_export_symbols=yes
5419 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5420 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5421 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5422 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5423 else $CC -o impgen impgen.c ; fi)~
5424 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5426 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5428 # cygwin and mingw dlls have different entry points and sets of symbols
5430 # FIXME: what about values for MSVC?
5431 dll_entry=__cygwin_dll_entry@12
5432 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5436 dll_entry=_DllMainCRTStartup@12
5437 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5441 # mingw and cygwin differ, and it's simplest to just exclude the union
5442 # of the two symbol sets.
5443 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5445 # recent cygwin and mingw systems supply a stub DllMain which the user
5446 # can override, but on older systems we have to supply one (in ltdll.c)
5447 if test "x$lt_cv_need_dllmain" = "xyes"; then
5448 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5449 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5450 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5456 # Extract the symbol export list from an `--export-all' def file,
5457 # then regenerate the def file from the symbol export list, so that
5458 # the compiled dll only exports the symbol export list.
5459 # Be careful not to strip the DATA tag left be newer dlltools.
5460 export_symbols_cmds="$ltdll_cmds"'
5461 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5462 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5464 # If the export-symbols file already is a .def file (1st line
5465 # is EXPORTS), use it as is.
5466 # If DATA tags from a recent dlltool are present, honour them!
5467 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5468 cp $export_symbols $output_objdir/$soname-def;
5470 echo EXPORTS > $output_objdir/$soname-def;
5472 cat $export_symbols | while read symbol; do
5475 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5476 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5477 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5479 _lt_hint=`expr 1 + \$_lt_hint`;
5483 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5484 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5485 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5486 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5487 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5491 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5492 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5495 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5496 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5501 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5505 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5506 *** create shared libraries on Solaris systems. Therefore, libtool
5507 *** is disabling shared libraries support. We urge you to upgrade GNU
5508 *** binutils to release 2.9.1 or newer. Another option is to modify
5509 *** your PATH or compiler configuration so that the native linker is
5510 *** used, and then restart.
5513 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5514 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5515 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5522 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5525 hardcode_shlibpath_var=no
5529 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5530 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5531 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5538 if test "$ld_shlibs" = yes; then
5539 runpath_var=LD_RUN_PATH
5540 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5541 export_dynamic_flag_spec='${wl}--export-dynamic'
5543 cygwin* | mingw* | pw32*)
5544 # dlltool doesn't understand --whole-archive et. al.
5545 whole_archive_flag_spec=
5548 # ancient GNU ld didn't support --whole-archive et. al.
5549 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5550 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5552 whole_archive_flag_spec=
5558 # PORTME fill in a description of your system's linker (not GNU ld)
5561 allow_undefined_flag=unsupported
5562 always_export_symbols=yes
5563 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'
5564 # Note: this linker hardcodes the directories in LIBPATH if there
5565 # are no directories specified by -L.
5566 hardcode_minus_L=yes
5567 if test "$GCC" = yes && test -z "$link_static_flag"; then
5568 # Neither direct hardcoding nor static linking is supported with a
5570 hardcode_direct=unsupported
5575 if test "$host_cpu" = ia64; then
5576 # On IA64, the linker does run time linking by default, so we don't
5577 # have to do anything special.
5578 aix_use_runtimelinking=no
5579 exp_sym_flag='-Bexport'
5582 aix_use_runtimelinking=no
5584 # Test if we are trying to use run time linking or normal
5585 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5586 # need to do runtime linking.
5587 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5588 for ld_flag in $LDFLAGS; do
5591 aix_use_runtimelinking=yes
5598 exp_sym_flag='-bexport'
5599 no_entry_flag='-bnoentry'
5602 # When large executables or shared objects are built, AIX ld can
5603 # have problems creating the table of contents. If linking a library
5604 # or program results in "error TOC overflow" add -mminimal-toc to
5605 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5606 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5610 hardcode_libdir_separator=':'
5611 if test "$GCC" = yes; then
5612 case $host_os in aix4.[012]|aix4.[012].*)
5613 collect2name=`${CC} -print-prog-name=collect2`
5614 if test -f "$collect2name" && \
5615 strings "$collect2name" | grep resolve_lib_name >/dev/null
5617 # We have reworked collect2
5620 # We have old collect2
5621 hardcode_direct=unsupported
5622 # It fails to find uninstalled libraries when the uninstalled
5623 # path is not listed in the libpath. Setting hardcode_minus_L
5624 # to unsupported forces relinking
5625 hardcode_minus_L=yes
5626 hardcode_libdir_flag_spec='-L$libdir'
5627 hardcode_libdir_separator=
5631 shared_flag='-shared'
5634 if test "$host_cpu" = ia64; then
5635 shared_flag='${wl}-G'
5637 if test "$aix_use_runtimelinking" = yes; then
5638 shared_flag='${wl}-G'
5640 shared_flag='${wl}-bM:SRE'
5645 # It seems that -bexpall can do strange things, so it is better to
5646 # generate a list of symbols to export.
5647 always_export_symbols=yes
5648 if test "$aix_use_runtimelinking" = yes; then
5649 # Warning - without using the other runtime loading flags (-brtl),
5650 # -berok will link without error, but may produce a broken library.
5651 allow_undefined_flag='-berok'
5652 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5653 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"
5655 if test "$host_cpu" = ia64; then
5656 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5657 allow_undefined_flag="-z nodefs"
5658 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5660 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5661 # Warning - without using the other run time loading flags,
5662 # -berok will link without error, but may produce a broken library.
5663 allow_undefined_flag='${wl}-berok'
5664 # This is a bit strange, but is similar to how AIX traditionally builds
5665 # it's shared libraries.
5666 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5672 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)'
5673 hardcode_libdir_flag_spec='-L$libdir'
5674 hardcode_minus_L=yes
5675 # see comment about different semantics on the GNU ld section
5679 cygwin* | mingw* | pw32*)
5680 # When not using gcc, we currently assume that we are using
5681 # Microsoft Visual C++.
5682 # hardcode_libdir_flag_spec is actually meaningless, as there is
5683 # no search path for DLLs.
5684 hardcode_libdir_flag_spec=' '
5685 allow_undefined_flag=unsupported
5686 # Tell ltmain to make .lib files, not .a files.
5688 # FIXME: Setting linknames here is a bad hack.
5689 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5690 # The linker will automatically build a .lib file if we build a DLL.
5691 old_archive_from_new_cmds='true'
5692 # FIXME: Should let the user specify the lib program.
5693 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5694 fix_srcfile_path='`cygpath -w "$srcfile"`'
5697 darwin* | rhapsody*)
5699 rhapsody* | darwin1.[012])
5700 allow_undefined_flag='-undefined suppress'
5703 allow_undefined_flag='-flat_namespace -undefined suppress'
5706 # FIXME: Relying on posixy $() will cause problems for
5707 # cross-compilation, but unfortunately the echo tests do not
5708 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5709 # `"' quotes if we put them in here... so don't!
5710 archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
5711 # We need to add '_' to the symbols in $export_symbols first
5712 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5714 hardcode_shlibpath_var=no
5715 whole_archive_flag_spec='-all_load $convenience'
5722 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5723 # support. Future versions do this automatically, but an explicit c++rt0.o
5724 # does not break anything, and helps significantly (at the cost of a little
5727 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5728 hardcode_libdir_flag_spec='-R$libdir'
5730 hardcode_shlibpath_var=no
5733 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5735 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5737 hardcode_minus_L=yes
5738 hardcode_shlibpath_var=no
5741 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5743 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5744 hardcode_libdir_flag_spec='-R$libdir'
5746 hardcode_shlibpath_var=no
5749 hpux9* | hpux10* | hpux11*)
5751 hpux9*) 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' ;;
5752 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5754 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5755 hardcode_libdir_separator=:
5757 hardcode_minus_L=yes # Not in the search PATH, but as the default
5758 # location of the library.
5759 export_dynamic_flag_spec='${wl}-E'
5762 irix5* | irix6* | nonstopux*)
5763 if test "$GCC" = yes; then
5764 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'
5765 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5767 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'
5768 hardcode_libdir_flag_spec='-rpath $libdir'
5770 hardcode_libdir_separator=:
5771 link_all_deplibs=yes
5775 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5776 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5778 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5780 hardcode_libdir_flag_spec='-R$libdir'
5782 hardcode_shlibpath_var=no
5786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5788 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5789 hardcode_libdir_separator=:
5790 hardcode_shlibpath_var=no
5795 hardcode_shlibpath_var=no
5796 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5797 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5798 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5799 export_dynamic_flag_spec='${wl}-E'
5802 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5803 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5804 hardcode_libdir_flag_spec='-R$libdir'
5807 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5808 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5815 archive_cmds="\$CC -Wl,DLL \$libobjs \$deplibs \$compiler_flags -o \$lib &&
5816 cp \$linknames \$output_objdir && linknames=''"
5817 export_dynamic_flag_spec="-Wl,DLL"
5821 hardcode_libdir_flag_spec='-L$libdir'
5822 hardcode_minus_L=yes
5823 allow_undefined_flag=unsupported
5824 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'
5825 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5829 if test "$GCC" = yes; then
5830 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5831 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'
5833 allow_undefined_flag=' -expect_unresolved \*'
5834 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'
5836 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5837 hardcode_libdir_separator=:
5840 osf4* | osf5*) # as osf3* with the addition of -msym flag
5841 if test "$GCC" = yes; then
5842 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5843 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'
5844 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5846 allow_undefined_flag=' -expect_unresolved \*'
5847 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'
5848 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5849 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5851 #Both c and cxx compiler support -rpath directly
5852 hardcode_libdir_flag_spec='-rpath $libdir'
5854 hardcode_libdir_separator=:
5858 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5859 hardcode_shlibpath_var=no
5860 runpath_var=LD_RUN_PATH
5861 hardcode_runpath_var=yes
5862 export_dynamic_flag_spec='${wl}-Bexport'
5866 # gcc --version < 3.0 without binutils cannot create self contained
5867 # shared libraries reliably, requiring libgcc.a to resolve some of
5868 # the object symbols generated in some cases. Libraries that use
5869 # assert need libgcc.a to resolve __eprintf, for example. Linking
5870 # a copy of libgcc.a into every shared library to guarantee resolving
5871 # such symbols causes other problems: According to Tim Van Holder
5872 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5873 # (to the application) exception stack for one thing.
5874 no_undefined_flag=' -z defs'
5875 if test "$GCC" = yes; then
5876 case `$CC --version 2>/dev/null` in
5880 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5881 *** create self contained shared libraries on Solaris systems, without
5882 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5883 *** -no-undefined support, which will at least allow you to build shared
5884 *** libraries. However, you may find that when you link such libraries
5885 *** into an application without using GCC, you have to manually add
5886 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5887 *** upgrade to a newer version of GCC. Another option is to rebuild your
5888 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5895 # $CC -shared without GNU ld will not create a library from C++
5896 # object files and a static libstdc++, better avoid it by now
5897 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5898 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5899 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5900 hardcode_libdir_flag_spec='-R$libdir'
5901 hardcode_shlibpath_var=no
5903 solaris2.[0-5] | solaris2.[0-5].*) ;;
5904 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5905 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5907 link_all_deplibs=yes
5911 if test "x$host_vendor" = xsequent; then
5912 # Use $CC to link under sequent, because it throws in some extra .o
5913 # files that make .init and .fini sections work.
5914 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5916 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5918 hardcode_libdir_flag_spec='-L$libdir'
5920 hardcode_minus_L=yes
5921 hardcode_shlibpath_var=no
5925 case $host_vendor in
5927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5928 hardcode_direct=yes # is this really true???
5931 ## LD is ld it makes a PLAMLIB
5932 ## CC just makes a GrossModule.
5933 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5934 reload_cmds='$CC -r -o $output$reload_objs'
5938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5939 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5942 runpath_var='LD_RUN_PATH'
5943 hardcode_shlibpath_var=no
5947 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5948 hardcode_shlibpath_var=no
5949 export_dynamic_flag_spec='-Bexport'
5953 no_undefined_flag=' -z text'
5954 # $CC -shared without GNU ld will not create a library from C++
5955 # object files and a static libstdc++, better avoid it by now
5956 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5957 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5958 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5959 hardcode_libdir_flag_spec=
5960 hardcode_shlibpath_var=no
5961 runpath_var='LD_RUN_PATH'
5965 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5966 hardcode_libdir_flag_spec='-L$libdir'
5967 hardcode_shlibpath_var=no
5971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5972 hardcode_libdir_flag_spec='-L$libdir'
5973 hardcode_shlibpath_var=no
5977 if test -d /usr/nec; then
5978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5979 hardcode_shlibpath_var=no
5980 runpath_var=LD_RUN_PATH
5981 hardcode_runpath_var=yes
5987 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5990 hardcode_shlibpath_var=no
5991 hardcode_runpath_var=yes
5992 runpath_var=LD_RUN_PATH
5995 sysv5uw7* | unixware7*)
5996 no_undefined_flag='${wl}-z ${wl}text'
5997 if test "$GCC" = yes; then
5998 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6000 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6002 runpath_var='LD_RUN_PATH'
6003 hardcode_shlibpath_var=no
6011 echo "$ac_t""$ld_shlibs" 1>&6
6012 test "$ld_shlibs" = no && can_build_shared=no
6014 # Check hardcoding attributes.
6015 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6016 echo "configure:6017: checking how to hardcode library paths into programs" >&5
6018 if test -n "$hardcode_libdir_flag_spec" || \
6019 test -n "$runpath_var"; then
6021 # We can hardcode non-existant directories.
6022 if test "$hardcode_direct" != no &&
6023 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6024 # have to relink, otherwise we might link with an installed library
6025 # when we should be linking with a yet-to-be-installed one
6026 ## test "$hardcode_shlibpath_var" != no &&
6027 test "$hardcode_minus_L" != no; then
6028 # Linking always hardcodes the temporary library directory.
6029 hardcode_action=relink
6031 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6032 hardcode_action=immediate
6035 # We cannot hardcode anything, or else we can only hardcode existing
6037 hardcode_action=unsupported
6039 echo "$ac_t""$hardcode_action" 1>&6
6043 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6044 echo "configure:6045: checking whether stripping libraries is possible" >&5
6045 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6046 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6047 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6048 echo "$ac_t""yes" 1>&6
6050 echo "$ac_t""no" 1>&6
6053 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6054 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6056 # PORTME Fill in your ld.so characteristics
6057 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6058 echo "configure:6059: checking dynamic linker characteristics" >&5
6060 libname_spec='lib$name'
6067 shlibpath_overrides_runpath=unknown
6069 dynamic_linker="$host_os ld.so"
6070 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6071 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6076 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6077 shlibpath_var=LIBPATH
6079 # AIX has no versioning support, so we append a major version to the name.
6080 soname_spec='${libname}${release}.so$major'
6087 hardcode_into_libs=yes
6088 if test "$host_cpu" = ia64; then
6089 # AIX 5 supports IA64
6090 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6091 shlibpath_var=LD_LIBRARY_PATH
6093 # With GCC up to 2.95.x, collect2 would create an import file
6094 # for dependence libraries. The import file would start with
6095 # the line `#! .'. This would cause the generated library to
6096 # depend on `.', always an invalid library. This was fixed in
6097 # development snapshots of GCC prior to 3.0.
6099 aix4 | aix4.[01] | aix4.[01].*)
6100 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6102 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6109 # AIX (on Power*) has no versioning support, so currently we can
6110 # not hardcode correct soname into executable. Probably we can
6111 # add versioning support to collect2, so additional links can
6112 # be useful in future.
6113 if test "$aix_use_runtimelinking" = yes; then
6114 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6115 # instead of lib<name>.a to let people know that these are not
6116 # typical AIX shared libraries.
6117 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6119 # We preserve .a as extension for shared libraries through AIX4.2
6120 # and later when we are not doing run time linking.
6121 library_names_spec='${libname}${release}.a $libname.a'
6122 soname_spec='${libname}${release}.so$major'
6124 shlibpath_var=LIBPATH
6126 hardcode_into_libs=yes
6130 library_names_spec='$libname.ixlibrary $libname.a'
6131 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6132 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'
6136 library_names_spec='${libname}.so'
6137 dynamic_linker="$host_os ld.so"
6138 shlibpath_var=LIBRARY_PATH
6144 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6145 soname_spec='${libname}${release}.so$major'
6146 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6147 shlibpath_var=LD_LIBRARY_PATH
6148 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6149 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6150 export_dynamic_flag_spec=-rdynamic
6151 # the default ld.so.conf also contains /usr/contrib/lib and
6152 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6153 # libtool to hard-code these into programs
6156 cygwin* | mingw* | pw32*)
6157 version_type=windows
6160 case $GCC,$host_os in
6162 library_names_spec='$libname.dll.a'
6163 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6164 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6165 dldir=$destdir/`dirname \$dlpath`~
6166 test -d \$dldir || mkdir -p \$dldir~
6167 $install_prog .libs/$dlname \$dldir/$dlname'
6168 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6169 dlpath=$dir/\$dldll~
6173 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6174 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6177 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6180 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6183 dynamic_linker='Win32 ld.exe'
6184 # FIXME: first we should search . and the directory the executable is in
6188 darwin* | rhapsody*)
6189 dynamic_linker="$host_os dyld"
6193 # FIXME: Relying on posixy $() will cause problems for
6194 # cross-compilation, but unfortunately the echo tests do not
6195 # yet detect zsh echo's removal of \ escapes.
6196 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6197 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6198 shlibpath_overrides_runpath=yes
6199 shlibpath_var=DYLD_LIBRARY_PATH
6207 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6208 version_type=freebsd-$objformat
6209 case $version_type in
6211 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6216 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6220 shlibpath_var=LD_LIBRARY_PATH
6223 shlibpath_overrides_runpath=yes
6226 shlibpath_overrides_runpath=no
6227 hardcode_into_libs=yes
6236 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6237 soname_spec='${libname}${release}.so$major'
6238 shlibpath_var=LD_LIBRARY_PATH
6239 hardcode_into_libs=yes
6242 hpux9* | hpux10* | hpux11*)
6243 # Give a soname corresponding to the major version so that dld.sl refuses to
6244 # link against other versions.
6245 dynamic_linker="$host_os dld.sl"
6249 shlibpath_var=SHLIB_PATH
6250 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6251 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6252 soname_spec='${libname}${release}.sl$major'
6253 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6254 postinstall_cmds='chmod 555 $lib'
6257 irix5* | irix6* | nonstopux*)
6259 nonstopux*) version_type=nonstopux ;;
6260 *) version_type=irix ;;
6264 soname_spec='${libname}${release}.so$major'
6265 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6267 irix5* | nonstopux*)
6271 case $LD in # libtool.m4 will add one of these switches to LD
6272 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6273 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6274 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6275 *) libsuff= shlibsuff= libmagic=never-match;;
6279 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6280 shlibpath_overrides_runpath=no
6281 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6282 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6285 # No shared lib support for Linux oldld, aout, or coff.
6286 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6290 # This must be Linux ELF.
6295 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6296 soname_spec='${libname}${release}.so$major'
6297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6298 shlibpath_var=LD_LIBRARY_PATH
6299 shlibpath_overrides_runpath=no
6300 # This implies no fast_install, which is unacceptable.
6301 # Some rework will be needed to allow for fast_install
6302 # before this can be enabled.
6303 hardcode_into_libs=yes
6305 # We used to test for /lib/ld.so.1 and disable shared libraries on
6306 # powerpc, because MkLinux only supported shared libraries with the
6307 # GNU dynamic linker. Since this was broken with cross compilers,
6308 # most powerpc-linux boxes support dynamic linking these days and
6309 # people can always --disable-shared, the test was removed, and we
6310 # assume the GNU/Linux dynamic linker is in use.
6311 dynamic_linker='GNU/Linux ld.so'
6318 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6319 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6321 dynamic_linker='NetBSD (a.out) ld.so'
6323 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6324 soname_spec='${libname}${release}.so$major'
6325 dynamic_linker='NetBSD ld.elf_so'
6327 shlibpath_var=LD_LIBRARY_PATH
6328 shlibpath_overrides_runpath=yes
6329 hardcode_into_libs=yes
6334 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6335 shlibpath_var=LD_LIBRARY_PATH
6336 shlibpath_overrides_runpath=yes
6343 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6345 openbsd2.[89] | openbsd2.[89].*)
6346 shlibpath_overrides_runpath=no
6349 shlibpath_overrides_runpath=yes
6353 shlibpath_overrides_runpath=yes
6355 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6357 shlibpath_var=LD_LIBRARY_PATH
6363 shlibpath_overrides_runpath=yes
6364 shlibpath_var=LIBPATH
6365 postinstall_cmds="rm \$destdir/\$linkname; cp \$linkname \$destdir; chmod a+x \$lib"
6366 # the library's exports are in libname.x; this is the file that must
6367 # actually be linked with to use a DLL.
6368 library_names_spec="\${libname}\${release}.so\$versuffix \${libname}.x"
6372 libname_spec='$name'
6374 library_names_spec='$libname.dll $libname.a'
6375 dynamic_linker='OS/2 ld.exe'
6376 shlibpath_var=LIBPATH
6379 osf3* | osf4* | osf5*)
6382 soname_spec='${libname}${release}.so$major'
6383 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6384 shlibpath_var=LD_LIBRARY_PATH
6385 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6386 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6387 hardcode_into_libs=yes
6392 soname_spec='${libname}${release}.so$major'
6393 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6394 shlibpath_var=LD_LIBRARY_PATH
6401 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6402 soname_spec='${libname}${release}.so$major'
6403 shlibpath_var=LD_LIBRARY_PATH
6404 shlibpath_overrides_runpath=yes
6405 hardcode_into_libs=yes
6406 # ldd complains unless libraries are executable
6407 postinstall_cmds='chmod +x $lib'
6412 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6413 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6414 shlibpath_var=LD_LIBRARY_PATH
6415 shlibpath_overrides_runpath=yes
6416 if test "$with_gnu_ld" = yes; then
6422 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6424 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6425 soname_spec='${libname}${release}.so$major'
6426 shlibpath_var=LD_LIBRARY_PATH
6427 case $host_vendor in
6429 shlibpath_overrides_runpath=no
6431 export_dynamic_flag_spec='${wl}-Blargedynsym'
6432 runpath_var=LD_RUN_PATH
6440 shlibpath_overrides_runpath=no
6441 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6448 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6449 soname_spec='${libname}${release}.so$major'
6450 shlibpath_var=LD_LIBRARY_PATH
6457 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6458 soname_spec='${libname}${release}.so$major'
6459 shlibpath_var=LD_LIBRARY_PATH
6463 if test -d /usr/nec ;then
6465 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6466 soname_spec='$libname.so.$major'
6467 shlibpath_var=LD_LIBRARY_PATH
6475 echo "$ac_t""$dynamic_linker" 1>&6
6476 test "$dynamic_linker" = no && can_build_shared=no
6478 # Report the final consequences.
6479 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6480 echo "configure:6481: checking if libtool supports shared libraries" >&5
6481 echo "$ac_t""$can_build_shared" 1>&6
6483 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6484 echo "configure:6485: checking whether to build shared libraries" >&5
6485 test "$can_build_shared" = "no" && enable_shared=no
6487 # On AIX, shared libraries and static libraries use the same namespace, and
6488 # are all built from PIC.
6491 test "$enable_shared" = yes && enable_static=no
6492 if test -n "$RANLIB"; then
6493 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6494 postinstall_cmds='$RANLIB $lib'
6499 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6500 test "$enable_shared" = yes && enable_static=no
6504 echo "$ac_t""$enable_shared" 1>&6
6506 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6507 echo "configure:6508: checking whether to build static libraries" >&5
6508 # Make sure either enable_shared or enable_static is yes.
6509 test "$enable_shared" = yes || enable_static=yes
6510 echo "$ac_t""$enable_static" 1>&6
6512 if test "$hardcode_action" = relink; then
6513 # Fast installation is not supported
6514 enable_fast_install=no
6515 elif test "$shlibpath_overrides_runpath" = yes ||
6516 test "$enable_shared" = no; then
6517 # Fast installation is not necessary
6518 enable_fast_install=needless
6521 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6522 if test "$GCC" = yes; then
6523 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6526 if test "x$enable_dlopen" != xyes; then
6527 enable_dlopen=unknown
6528 enable_dlopen_self=unknown
6529 enable_dlopen_self_static=unknown
6536 lt_cv_dlopen="load_add_on"
6538 lt_cv_dlopen_self=yes
6541 cygwin* | mingw* | pw32*)
6542 lt_cv_dlopen="LoadLibrary"
6547 echo $ac_n "checking for dllload""... $ac_c" 1>&6
6548 echo "configure:6549: checking for dllload" >&5
6549 if eval "test \"\${ac_cv_func_dllload+set}\" = set"; then
6550 echo $ac_n "(cached) $ac_c" 1>&6
6552 cat > conftest.$ac_ext <<EOF
6553 #line 6554 "configure"
6554 #include "confdefs.h"
6555 /* System header to define __stub macros and hopefully few prototypes,
6556 which can conflict with char dllload(); below. */
6558 /* Override any gcc2 internal prototype to avoid an error. */
6559 /* We use char because int might match the return type of a gcc2
6560 builtin and then its argument prototype would still apply. */
6566 /* The GNU C library defines this for functions which it implements
6567 to always fail with ENOSYS. Some functions are actually named
6568 something starting with __ and the normal name is an alias. */
6569 #if defined (__stub_dllload) || defined (__stub___dllload)
6577 if { (eval echo configure:6578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6579 eval "ac_cv_func_dllload=yes"
6581 echo "configure: failed program was:" >&5
6582 cat conftest.$ac_ext >&5
6584 eval "ac_cv_func_dllload=no"
6589 if eval "test \"`echo '$ac_cv_func_'dllload`\" = yes"; then
6590 echo "$ac_t""yes" 1>&6
6591 lt_cv_dlopen="dllload"
6593 echo "$ac_t""no" 1>&6
6594 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6595 echo "configure:6596: checking for shl_load" >&5
6596 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6597 echo $ac_n "(cached) $ac_c" 1>&6
6599 cat > conftest.$ac_ext <<EOF
6600 #line 6601 "configure"
6601 #include "confdefs.h"
6602 /* System header to define __stub macros and hopefully few prototypes,
6603 which can conflict with char shl_load(); below. */
6605 /* Override any gcc2 internal prototype to avoid an error. */
6606 /* We use char because int might match the return type of a gcc2
6607 builtin and then its argument prototype would still apply. */
6613 /* The GNU C library defines this for functions which it implements
6614 to always fail with ENOSYS. Some functions are actually named
6615 something starting with __ and the normal name is an alias. */
6616 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6624 if { (eval echo configure:6625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6626 eval "ac_cv_func_shl_load=yes"
6628 echo "configure: failed program was:" >&5
6629 cat conftest.$ac_ext >&5
6631 eval "ac_cv_func_shl_load=no"
6636 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6637 echo "$ac_t""yes" 1>&6
6638 lt_cv_dlopen="shl_load"
6640 echo "$ac_t""no" 1>&6
6641 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6642 echo "configure:6643: checking for shl_load in -ldld" >&5
6643 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6644 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6645 echo $ac_n "(cached) $ac_c" 1>&6
6647 ac_save_LIBS="$LIBS"
6649 cat > conftest.$ac_ext <<EOF
6650 #line 6651 "configure"
6651 #include "confdefs.h"
6652 /* Override any gcc2 internal prototype to avoid an error. */
6653 /* We use char because int might match the return type of a gcc2
6654 builtin and then its argument prototype would still apply. */
6661 if { (eval echo configure:6662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6663 eval "ac_cv_lib_$ac_lib_var=yes"
6665 echo "configure: failed program was:" >&5
6666 cat conftest.$ac_ext >&5
6668 eval "ac_cv_lib_$ac_lib_var=no"
6671 LIBS="$ac_save_LIBS"
6674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6675 echo "$ac_t""yes" 1>&6
6676 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6678 echo "$ac_t""no" 1>&6
6679 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6680 echo "configure:6681: checking for dlopen" >&5
6681 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6682 echo $ac_n "(cached) $ac_c" 1>&6
6684 cat > conftest.$ac_ext <<EOF
6685 #line 6686 "configure"
6686 #include "confdefs.h"
6687 /* System header to define __stub macros and hopefully few prototypes,
6688 which can conflict with char dlopen(); below. */
6690 /* Override any gcc2 internal prototype to avoid an error. */
6691 /* We use char because int might match the return type of a gcc2
6692 builtin and then its argument prototype would still apply. */
6698 /* The GNU C library defines this for functions which it implements
6699 to always fail with ENOSYS. Some functions are actually named
6700 something starting with __ and the normal name is an alias. */
6701 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6709 if { (eval echo configure:6710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6711 eval "ac_cv_func_dlopen=yes"
6713 echo "configure: failed program was:" >&5
6714 cat conftest.$ac_ext >&5
6716 eval "ac_cv_func_dlopen=no"
6721 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6722 echo "$ac_t""yes" 1>&6
6723 lt_cv_dlopen="dlopen"
6725 echo "$ac_t""no" 1>&6
6726 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6727 echo "configure:6728: checking for dlopen in -ldl" >&5
6728 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6729 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6730 echo $ac_n "(cached) $ac_c" 1>&6
6732 ac_save_LIBS="$LIBS"
6734 cat > conftest.$ac_ext <<EOF
6735 #line 6736 "configure"
6736 #include "confdefs.h"
6737 /* Override any gcc2 internal prototype to avoid an error. */
6738 /* We use char because int might match the return type of a gcc2
6739 builtin and then its argument prototype would still apply. */
6746 if { (eval echo configure:6747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6748 eval "ac_cv_lib_$ac_lib_var=yes"
6750 echo "configure: failed program was:" >&5
6751 cat conftest.$ac_ext >&5
6753 eval "ac_cv_lib_$ac_lib_var=no"
6756 LIBS="$ac_save_LIBS"
6759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6760 echo "$ac_t""yes" 1>&6
6761 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6763 echo "$ac_t""no" 1>&6
6764 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6765 echo "configure:6766: checking for dlopen in -lsvld" >&5
6766 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6767 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6768 echo $ac_n "(cached) $ac_c" 1>&6
6770 ac_save_LIBS="$LIBS"
6772 cat > conftest.$ac_ext <<EOF
6773 #line 6774 "configure"
6774 #include "confdefs.h"
6775 /* Override any gcc2 internal prototype to avoid an error. */
6776 /* We use char because int might match the return type of a gcc2
6777 builtin and then its argument prototype would still apply. */
6784 if { (eval echo configure:6785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6786 eval "ac_cv_lib_$ac_lib_var=yes"
6788 echo "configure: failed program was:" >&5
6789 cat conftest.$ac_ext >&5
6791 eval "ac_cv_lib_$ac_lib_var=no"
6794 LIBS="$ac_save_LIBS"
6797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6798 echo "$ac_t""yes" 1>&6
6799 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6801 echo "$ac_t""no" 1>&6
6802 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6803 echo "configure:6804: checking for dld_link in -ldld" >&5
6804 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6805 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6806 echo $ac_n "(cached) $ac_c" 1>&6
6808 ac_save_LIBS="$LIBS"
6810 cat > conftest.$ac_ext <<EOF
6811 #line 6812 "configure"
6812 #include "confdefs.h"
6813 /* Override any gcc2 internal prototype to avoid an error. */
6814 /* We use char because int might match the return type of a gcc2
6815 builtin and then its argument prototype would still apply. */
6822 if { (eval echo configure:6823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6824 eval "ac_cv_lib_$ac_lib_var=yes"
6826 echo "configure: failed program was:" >&5
6827 cat conftest.$ac_ext >&5
6829 eval "ac_cv_lib_$ac_lib_var=no"
6832 LIBS="$ac_save_LIBS"
6835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6836 echo "$ac_t""yes" 1>&6
6837 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6839 echo "$ac_t""no" 1>&6
6863 if test "x$lt_cv_dlopen" != xno; then
6869 case $lt_cv_dlopen in
6871 save_CPPFLAGS="$CPPFLAGS"
6872 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6874 save_LDFLAGS="$LDFLAGS"
6875 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6878 LIBS="$lt_cv_dlopen_libs $LIBS"
6880 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6881 echo "configure:6882: checking whether a program can dlopen itself" >&5
6882 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6883 echo $ac_n "(cached) $ac_c" 1>&6
6885 if test "$cross_compiling" = yes; then :
6886 lt_cv_dlopen_self=cross
6888 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6889 lt_status=$lt_dlunknown
6890 cat > conftest.$ac_ext <<EOF
6891 #line 6892 "configure"
6892 #include "confdefs.h"
6901 # define LT_DLGLOBAL RTLD_GLOBAL
6904 # define LT_DLGLOBAL DL_GLOBAL
6906 # define LT_DLGLOBAL 0
6910 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6911 find out it does not work in some platform. */
6912 #ifndef LT_DLLAZY_OR_NOW
6914 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6917 # define LT_DLLAZY_OR_NOW DL_LAZY
6920 # define LT_DLLAZY_OR_NOW RTLD_NOW
6923 # define LT_DLLAZY_OR_NOW DL_NOW
6925 # define LT_DLLAZY_OR_NOW 0
6933 extern "C" void exit (int);
6936 void fnord() { int i=42;}
6939 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6940 int status = $lt_dlunknown;
6944 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6945 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6946 /* dlclose (self); */
6952 if { (eval echo configure:6953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6953 (./conftest; exit; ) 2>/dev/null
6956 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6957 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6958 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6961 # compilation failed
6962 lt_cv_dlopen_self=no
6970 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6972 if test "x$lt_cv_dlopen_self" = xyes; then
6973 LDFLAGS="$LDFLAGS $link_static_flag"
6974 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6975 echo "configure:6976: checking whether a statically linked program can dlopen itself" >&5
6976 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6977 echo $ac_n "(cached) $ac_c" 1>&6
6979 if test "$cross_compiling" = yes; then :
6980 lt_cv_dlopen_self_static=cross
6982 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6983 lt_status=$lt_dlunknown
6984 cat > conftest.$ac_ext <<EOF
6985 #line 6986 "configure"
6986 #include "confdefs.h"
6995 # define LT_DLGLOBAL RTLD_GLOBAL
6998 # define LT_DLGLOBAL DL_GLOBAL
7000 # define LT_DLGLOBAL 0
7004 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7005 find out it does not work in some platform. */
7006 #ifndef LT_DLLAZY_OR_NOW
7008 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7011 # define LT_DLLAZY_OR_NOW DL_LAZY
7014 # define LT_DLLAZY_OR_NOW RTLD_NOW
7017 # define LT_DLLAZY_OR_NOW DL_NOW
7019 # define LT_DLLAZY_OR_NOW 0
7027 extern "C" void exit (int);
7030 void fnord() { int i=42;}
7033 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7034 int status = $lt_dlunknown;
7038 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7039 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7040 /* dlclose (self); */
7046 if { (eval echo configure:7047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7047 (./conftest; exit; ) 2>/dev/null
7050 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7051 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7052 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7055 # compilation failed
7056 lt_cv_dlopen_self_static=no
7064 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7067 CPPFLAGS="$save_CPPFLAGS"
7068 LDFLAGS="$save_LDFLAGS"
7073 case $lt_cv_dlopen_self in
7074 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7075 *) enable_dlopen_self=unknown ;;
7078 case $lt_cv_dlopen_self_static in
7079 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7080 *) enable_dlopen_self_static=unknown ;;
7085 if test "$enable_shared" = yes && test "$GCC" = yes; then
7086 case $archive_cmds in
7088 # FIXME: we may have to deal with multi-command sequences.
7091 # Test whether the compiler implicitly links with -lc since on some
7092 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7093 # to ld, don't add -lc before -lgcc.
7094 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7095 echo "configure:7096: checking whether -lc should be explicitly linked in" >&5
7096 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7097 echo $ac_n "(cached) $ac_c" 1>&6
7100 echo 'static int dummy;' > conftest.$ac_ext
7102 if { (eval echo configure:7103: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7105 libobjs=conftest.$ac_objext
7107 wl=$lt_cv_prog_cc_wl
7113 save_allow_undefined_flag=$allow_undefined_flag
7114 allow_undefined_flag=
7115 if { (eval echo configure:7116: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
7117 lt_cv_archive_cmds_need_lc=no
7119 lt_cv_archive_cmds_need_lc=yes
7121 allow_undefined_flag=$save_allow_undefined_flag
7123 cat conftest.err 1>&5
7127 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7131 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7133 # The second clause should only fire when bootstrapping the
7134 # libtool distribution, otherwise you forgot to ship ltmain.sh
7135 # with your package, and you will get complaints that there are
7136 # no rules to generate ltmain.sh.
7137 if test -f "$ltmain"; then
7140 # If there is no Makefile yet, we rely on a make rule to execute
7141 # `config.status --recheck' to rerun these tests and create the
7142 # libtool script then.
7143 test -f Makefile && make "$ltmain"
7146 if test -f "$ltmain"; then
7147 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7150 echo creating $ofile
7152 # Now quote all the things that may contain metacharacters while being
7153 # careful not to overquote the AC_SUBSTed values. We take copies of the
7154 # variables and quote the copies for generation of the libtool script.
7155 for var in echo old_CC old_CFLAGS SED \
7156 AR AR_FLAGS CC LD LN_S NM SHELL \
7157 reload_flag reload_cmds wl \
7158 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7159 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7160 library_names_spec soname_spec \
7161 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7162 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7163 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7164 old_striplib striplib file_magic_cmd export_symbols_cmds \
7165 deplibs_check_method allow_undefined_flag no_undefined_flag \
7166 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7167 global_symbol_to_c_name_address \
7168 hardcode_libdir_flag_spec hardcode_libdir_separator \
7169 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7170 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7173 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7174 old_postinstall_cmds | old_postuninstall_cmds | \
7175 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7176 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7177 postinstall_cmds | postuninstall_cmds | \
7178 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7179 # Double-quote double-evaled strings.
7180 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7183 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7188 cat <<__EOF__ > "${ofile}T"
7191 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7192 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7193 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7195 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7196 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7198 # This program is free software; you can redistribute it and/or modify
7199 # it under the terms of the GNU General Public License as published by
7200 # the Free Software Foundation; either version 2 of the License, or
7201 # (at your option) any later version.
7203 # This program is distributed in the hope that it will be useful, but
7204 # WITHOUT ANY WARRANTY; without even the implied warranty of
7205 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7206 # General Public License for more details.
7208 # You should have received a copy of the GNU General Public License
7209 # along with this program; if not, write to the Free Software
7210 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7212 # As a special exception to the GNU General Public License, if you
7213 # distribute this file as part of a program that contains a
7214 # configuration script generated by Autoconf, you may include it under
7215 # the same distribution terms that you use for the rest of that program.
7217 # A sed that does not truncate output.
7220 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7221 Xsed="${SED} -e s/^X//"
7223 # The HP-UX ksh and POSIX shell print the target directory to stdout
7225 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7227 # ### BEGIN LIBTOOL CONFIG
7229 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7231 # Shell to use when invoking shell scripts.
7234 # Whether or not to build shared libraries.
7235 build_libtool_libs=$enable_shared
7237 # Whether or not to build static libraries.
7238 build_old_libs=$enable_static
7240 # Whether or not to add -lc for building shared libraries.
7241 build_libtool_need_lc=$need_lc
7243 # Whether or not to optimize for fast installation.
7244 fast_install=$enable_fast_install
7247 host_alias=$host_alias
7250 # An echo program that does not interpret backslashes.
7255 AR_FLAGS=$lt_AR_FLAGS
7257 # The default C compiler.
7260 # Is the compiler the GNU C compiler?
7263 # The linker used to build libraries.
7266 # Whether we need hard or soft links.
7269 # A BSD-compatible nm program.
7272 # A symbol stripping program
7275 # Used to examine libraries when file_magic_cmd begins "file"
7276 MAGIC_CMD=$MAGIC_CMD
7278 # Used on cygwin: DLL creation program.
7281 # Used on cygwin: object dumper.
7284 # Used on cygwin: assembler.
7287 # The name of the directory that contains temporary libtool files.
7290 # How to create reloadable object files.
7291 reload_flag=$lt_reload_flag
7292 reload_cmds=$lt_reload_cmds
7294 # How to pass a linker flag through the compiler.
7297 # Object file suffix (normally "o").
7300 # Old archive suffix (normally "a").
7303 # Executable file suffix (normally "").
7306 # Additional compiler flags for building library objects.
7307 pic_flag=$lt_pic_flag
7310 # Does compiler simultaneously support -c and -o options?
7311 compiler_c_o=$lt_compiler_c_o
7313 # Can we write directly to a .lo ?
7314 compiler_o_lo=$lt_compiler_o_lo
7316 # Must we lock files when doing compilation ?
7317 need_locks=$lt_need_locks
7319 # Do we need the lib prefix for modules?
7320 need_lib_prefix=$need_lib_prefix
7322 # Do we need a version for libraries?
7323 need_version=$need_version
7325 # Whether dlopen is supported.
7326 dlopen_support=$enable_dlopen
7328 # Whether dlopen of programs is supported.
7329 dlopen_self=$enable_dlopen_self
7331 # Whether dlopen of statically linked programs is supported.
7332 dlopen_self_static=$enable_dlopen_self_static
7334 # Compiler flag to prevent dynamic linking.
7335 link_static_flag=$lt_link_static_flag
7337 # Compiler flag to turn off builtin functions.
7338 no_builtin_flag=$lt_no_builtin_flag
7340 # Compiler flag to allow reflexive dlopens.
7341 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7343 # Compiler flag to generate shared objects directly from archives.
7344 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7346 # Compiler flag to generate thread-safe objects.
7347 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7349 # Library versioning type.
7350 version_type=$version_type
7352 # Format of library name prefix.
7353 libname_spec=$lt_libname_spec
7355 # List of archive names. First name is the real one, the rest are links.
7356 # The last name is the one that the linker finds with -lNAME.
7357 library_names_spec=$lt_library_names_spec
7359 # The coded name of the library, if different from the real name.
7360 soname_spec=$lt_soname_spec
7362 # Commands used to build and install an old-style archive.
7364 old_archive_cmds=$lt_old_archive_cmds
7365 old_postinstall_cmds=$lt_old_postinstall_cmds
7366 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7368 # Create an old-style archive from a shared archive.
7369 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7371 # Create a temporary old-style archive to link instead of a shared archive.
7372 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7374 # Commands used to build and install a shared archive.
7375 archive_cmds=$lt_archive_cmds
7376 archive_expsym_cmds=$lt_archive_expsym_cmds
7377 postinstall_cmds=$lt_postinstall_cmds
7378 postuninstall_cmds=$lt_postuninstall_cmds
7380 # Commands to strip libraries.
7381 old_striplib=$lt_old_striplib
7382 striplib=$lt_striplib
7384 # Method to check whether dependent libraries are shared objects.
7385 deplibs_check_method=$lt_deplibs_check_method
7387 # Command to use when deplibs_check_method == file_magic.
7388 file_magic_cmd=$lt_file_magic_cmd
7390 # Flag that allows shared libraries with undefined symbols to be built.
7391 allow_undefined_flag=$lt_allow_undefined_flag
7393 # Flag that forces no undefined symbols.
7394 no_undefined_flag=$lt_no_undefined_flag
7396 # Commands used to finish a libtool library installation in a directory.
7397 finish_cmds=$lt_finish_cmds
7399 # Same as above, but a single script fragment to be evaled but not shown.
7400 finish_eval=$lt_finish_eval
7402 # Take the output of nm and produce a listing of raw symbols and C names.
7403 global_symbol_pipe=$lt_global_symbol_pipe
7405 # Transform the output of nm in a proper C declaration
7406 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7408 # Transform the output of nm in a C name address pair
7409 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7411 # This is the shared library runtime path variable.
7412 runpath_var=$runpath_var
7414 # This is the shared library path variable.
7415 shlibpath_var=$shlibpath_var
7417 # Is shlibpath searched before the hard-coded library search path?
7418 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7420 # How to hardcode a shared library path into an executable.
7421 hardcode_action=$hardcode_action
7423 # Whether we should hardcode library paths into libraries.
7424 hardcode_into_libs=$hardcode_into_libs
7426 # Flag to hardcode \$libdir into a binary during linking.
7427 # This must work even if \$libdir does not exist.
7428 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7430 # Whether we need a single -rpath flag with a separated argument.
7431 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7433 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7435 hardcode_direct=$hardcode_direct
7437 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7439 hardcode_minus_L=$hardcode_minus_L
7441 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7442 # the resulting binary.
7443 hardcode_shlibpath_var=$hardcode_shlibpath_var
7445 # Variables whose values should be saved in libtool wrapper scripts and
7446 # restored at relink time.
7447 variables_saved_for_relink="$variables_saved_for_relink"
7449 # Whether libtool must link a program against all its dependency libraries.
7450 link_all_deplibs=$link_all_deplibs
7452 # Compile-time system search path for libraries
7453 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7455 # Run-time system search path for libraries
7456 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7458 # Fix the shell variable \$srcfile for the compiler.
7459 fix_srcfile_path="$fix_srcfile_path"
7461 # Set to yes if exported symbols are required.
7462 always_export_symbols=$always_export_symbols
7464 # The commands to list exported symbols.
7465 export_symbols_cmds=$lt_export_symbols_cmds
7467 # The commands to extract the exported symbol list from a shared archive.
7468 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7470 # Symbols that should not be listed in the preloaded symbols.
7471 exclude_expsyms=$lt_exclude_expsyms
7473 # Symbols that must always be exported.
7474 include_expsyms=$lt_include_expsyms
7476 # ### END LIBTOOL CONFIG
7482 cat <<\EOF >> "${ofile}T"
7484 # AIX sometimes has problems with the GCC collect2 program. For some
7485 # reason, if we set the COLLECT_NAMES environment variable, the problems
7486 # vanish in a puff of smoke.
7487 if test "X${COLLECT_NAMES+set}" != Xset; then
7489 export COLLECT_NAMES
7496 cygwin* | mingw* | pw32* | os2*)
7497 cat <<'EOF' >> "${ofile}T"
7498 # This is a source program that is used to create dlls on Windows
7499 # Don't remove nor modify the starting and closing comments
7500 # /* ltdll.c starts here */
7501 # #define WIN32_LEAN_AND_MEAN
7502 # #include <windows.h>
7503 # #undef WIN32_LEAN_AND_MEAN
7504 # #include <stdio.h>
7506 # #ifndef __CYGWIN__
7507 # # ifdef __CYGWIN32__
7508 # # define __CYGWIN__ __CYGWIN32__
7512 # #ifdef __cplusplus
7515 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7516 # #ifdef __cplusplus
7521 # #include <cygwin/cygwin_dll.h>
7522 # DECLARE_CYGWIN_DLL( DllMain );
7524 # HINSTANCE __hDllInstance_base;
7527 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7529 # __hDllInstance_base = hInst;
7532 # /* ltdll.c ends here */
7533 # This is a source program that is used to create import libraries
7534 # on Windows for dlls which lack them. Don't remove nor modify the
7535 # starting and closing comments
7536 # /* impgen.c starts here */
7537 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7539 # This file is part of GNU libtool.
7541 # This program is free software; you can redistribute it and/or modify
7542 # it under the terms of the GNU General Public License as published by
7543 # the Free Software Foundation; either version 2 of the License, or
7544 # (at your option) any later version.
7546 # This program is distributed in the hope that it will be useful,
7547 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7548 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7549 # GNU General Public License for more details.
7551 # You should have received a copy of the GNU General Public License
7552 # along with this program; if not, write to the Free Software
7553 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7556 # #include <stdio.h> /* for printf() */
7557 # #include <unistd.h> /* for open(), lseek(), read() */
7558 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7559 # #include <string.h> /* for strdup() */
7561 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7563 # #define O_BINARY 0
7566 # static unsigned int
7567 # pe_get16 (fd, offset)
7571 # unsigned char b[2];
7572 # lseek (fd, offset, SEEK_SET);
7574 # return b[0] + (b[1]<<8);
7577 # static unsigned int
7578 # pe_get32 (fd, offset)
7582 # unsigned char b[4];
7583 # lseek (fd, offset, SEEK_SET);
7585 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7588 # static unsigned int
7592 # unsigned char *b = ptr;
7593 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7602 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7603 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7604 # unsigned long name_rvas, nexp;
7605 # unsigned char *expdata, *erva;
7606 # char *filename, *dll_name;
7608 # filename = argv[1];
7610 # dll = open(filename, O_RDONLY|O_BINARY);
7614 # dll_name = filename;
7616 # for (i=0; filename[i]; i++)
7617 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7618 # dll_name = filename + i +1;
7620 # pe_header_offset = pe_get32 (dll, 0x3c);
7621 # opthdr_ofs = pe_header_offset + 4 + 20;
7622 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7624 # if (num_entries < 1) /* no exports */
7627 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7628 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7629 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7630 # secptr = (pe_header_offset + 4 + 20 +
7631 # pe_get16 (dll, pe_header_offset + 4 + 16));
7634 # for (i = 0; i < nsections; i++)
7637 # unsigned long secptr1 = secptr + 40 * i;
7638 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7639 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7640 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7641 # lseek(dll, secptr1, SEEK_SET);
7642 # read(dll, sname, 8);
7643 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7645 # expptr = fptr + (export_rva - vaddr);
7646 # if (export_rva + export_size > vaddr + vsize)
7647 # export_size = vsize - (export_rva - vaddr);
7652 # expdata = (unsigned char*)malloc(export_size);
7653 # lseek (dll, expptr, SEEK_SET);
7654 # read (dll, expdata, export_size);
7655 # erva = expdata - export_rva;
7657 # nexp = pe_as32 (expdata+24);
7658 # name_rvas = pe_as32 (expdata+32);
7660 # printf ("EXPORTS\n");
7661 # for (i = 0; i<nexp; i++)
7663 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7664 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7669 # /* impgen.c ends here */
7675 # We use sed instead of cat because bash on DJGPP gets confused if
7676 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7677 # text mode, it properly converts lines to CR/LF. This bash problem
7678 # is reportedly fixed, but why not run on old versions too?
7679 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7681 mv -f "${ofile}T" "$ofile" || \
7682 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7690 # This can be used to rebuild libtool when needed
7691 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7693 # Always use our own libtool.
7694 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7696 # Prevent multiple expansion
7701 if test $ol_enable_perl != no ; then
7702 # Extract the first word of "perl", so it can be a program name with args.
7703 set dummy perl; ac_word=$2
7704 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7705 echo "configure:7706: checking for $ac_word" >&5
7706 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7707 echo $ac_n "(cached) $ac_c" 1>&6
7711 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7714 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7717 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7719 for ac_dir in $ac_dummy; do
7720 test -z "$ac_dir" && ac_dir=.
7721 if test -f $ac_dir/$ac_word; then
7722 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7727 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7731 PERLBIN="$ac_cv_path_PERLBIN"
7732 if test -n "$PERLBIN"; then
7733 echo "$ac_t""$PERLBIN" 1>&6
7735 echo "$ac_t""no" 1>&6
7739 if test "no$PERLBIN" = "no" ; then
7740 if test $ol_enable_perl = yes ; then
7741 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7745 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7746 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
7748 if test x"$ol_enable_perl" = "xyes" ; then
7749 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
7751 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
7757 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7758 echo "configure:7759: checking how to run the C preprocessor" >&5
7759 # On Suns, sometimes $CPP names a directory.
7760 if test -n "$CPP" && test -d "$CPP"; then
7763 if test -z "$CPP"; then
7764 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7765 echo $ac_n "(cached) $ac_c" 1>&6
7767 # This must be in double quotes, not single quotes, because CPP may get
7768 # substituted into the Makefile and "${CC-cc}" will confuse make.
7770 # On the NeXT, cc -E runs the code through the compiler's parser,
7771 # not just through cpp.
7772 cat > conftest.$ac_ext <<EOF
7773 #line 7774 "configure"
7774 #include "confdefs.h"
7778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7779 { (eval echo configure:7780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7781 if test -z "$ac_err"; then
7785 echo "configure: failed program was:" >&5
7786 cat conftest.$ac_ext >&5
7788 CPP="${CC-cc} -E -traditional-cpp"
7789 cat > conftest.$ac_ext <<EOF
7790 #line 7791 "configure"
7791 #include "confdefs.h"
7795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7796 { (eval echo configure:7797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7797 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7798 if test -z "$ac_err"; then
7802 echo "configure: failed program was:" >&5
7803 cat conftest.$ac_ext >&5
7805 CPP="${CC-cc} -nologo -E"
7806 cat > conftest.$ac_ext <<EOF
7807 #line 7808 "configure"
7808 #include "confdefs.h"
7812 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7813 { (eval echo configure:7814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7814 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7815 if test -z "$ac_err"; then
7819 echo "configure: failed program was:" >&5
7820 cat conftest.$ac_ext >&5
7829 ac_cv_prog_CPP="$CPP"
7831 CPP="$ac_cv_prog_CPP"
7833 ac_cv_prog_CPP="$CPP"
7835 echo "$ac_t""$CPP" 1>&6
7839 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7840 echo "configure:7841: checking for Cygwin environment" >&5
7841 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7842 echo $ac_n "(cached) $ac_c" 1>&6
7844 cat > conftest.$ac_ext <<EOF
7845 #line 7846 "configure"
7846 #include "confdefs.h"
7851 #define __CYGWIN__ __CYGWIN32__
7856 if { (eval echo configure:7857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7860 echo "configure: failed program was:" >&5
7861 cat conftest.$ac_ext >&5
7868 echo "$ac_t""$ac_cv_cygwin" 1>&6
7870 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7871 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7872 echo "configure:7873: checking for mingw32 environment" >&5
7873 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7874 echo $ac_n "(cached) $ac_c" 1>&6
7876 cat > conftest.$ac_ext <<EOF
7877 #line 7878 "configure"
7878 #include "confdefs.h"
7884 if { (eval echo configure:7885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7888 echo "configure: failed program was:" >&5
7889 cat conftest.$ac_ext >&5
7896 echo "$ac_t""$ac_cv_mingw32" 1>&6
7898 test "$ac_cv_mingw32" = yes && MINGW32=yes
7902 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7903 echo "configure:7904: checking for executable suffix" >&5
7904 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
7905 echo $ac_n "(cached) $ac_c" 1>&6
7907 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
7911 echo 'int main () { return 0; }' > conftest.$ac_ext
7913 if { (eval echo configure:7914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7914 for file in conftest.*; do
7916 *.c | *.C | *.o | *.obj | *.xcoff) ;;
7917 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
7921 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7924 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
7929 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
7930 echo "$ac_t""${ac_cv_exeext}" 1>&6
7933 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
7934 echo "configure:7935: checking for object suffix" >&5
7935 if eval "test \"\${ac_cv_objext+set}\" = set"; then
7936 echo $ac_n "(cached) $ac_c" 1>&6
7939 echo 'int i = 1;' > conftest.$ac_ext
7940 if { (eval echo configure:7941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7941 for ac_file in conftest.*; do
7944 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
7948 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
7953 echo "$ac_t""$ac_cv_objext" 1>&6
7954 OBJEXT=$ac_cv_objext
7955 ac_objext=$ac_cv_objext
7958 cat >> confdefs.h <<EOF
7959 #define EXEEXT "${EXEEXT}"
7963 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
7964 echo "configure:7965: checking for be_app in -lbe" >&5
7965 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
7966 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7967 echo $ac_n "(cached) $ac_c" 1>&6
7969 ac_save_LIBS="$LIBS"
7970 LIBS="-lbe -lroot -lnet $LIBS"
7971 cat > conftest.$ac_ext <<EOF
7972 #line 7973 "configure"
7973 #include "confdefs.h"
7974 /* Override any gcc2 internal prototype to avoid an error. */
7975 /* We use char because int might match the return type of a gcc2
7976 builtin and then its argument prototype would still apply. */
7983 if { (eval echo configure:7984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7985 eval "ac_cv_lib_$ac_lib_var=yes"
7987 echo "configure: failed program was:" >&5
7988 cat conftest.$ac_ext >&5
7990 eval "ac_cv_lib_$ac_lib_var=no"
7993 LIBS="$ac_save_LIBS"
7996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7997 echo "$ac_t""yes" 1>&6
7998 LIBS="$LIBS -lbe -lroot -lnet"
8000 echo "$ac_t""no" 1>&6
8008 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8009 echo "configure:8010: checking for ${CC-cc} option to accept ANSI C" >&5
8010 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8011 echo $ac_n "(cached) $ac_c" 1>&6
8013 am_cv_prog_cc_stdc=no
8015 # Don't try gcc -ansi; that turns off useful extensions and
8016 # breaks some systems' header files.
8017 # AIX -qlanglvl=ansi
8018 # Ultrix and OSF/1 -std1
8019 # HP-UX 10.20 and later -Ae
8020 # HP-UX older versions -Aa -D_HPUX_SOURCE
8021 # SVR4 -Xc -D__EXTENSIONS__
8022 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8024 CC="$ac_save_CC $ac_arg"
8025 cat > conftest.$ac_ext <<EOF
8026 #line 8027 "configure"
8027 #include "confdefs.h"
8030 #include <sys/types.h>
8031 #include <sys/stat.h>
8032 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8033 struct buf { int x; };
8034 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8035 static char *e (p, i)
8041 static char *f (char * (*g) (char **, int), char **p, ...)
8046 s = g (p, va_arg (v,int));
8050 int test (int i, double x);
8051 struct s1 {int (*f) (int a);};
8052 struct s2 {int (*f) (double a);};
8053 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8059 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8063 if { (eval echo configure:8064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8065 am_cv_prog_cc_stdc="$ac_arg"; break
8067 echo "configure: failed program was:" >&5
8068 cat conftest.$ac_ext >&5
8076 if test -z "$am_cv_prog_cc_stdc"; then
8077 echo "$ac_t""none needed" 1>&6
8079 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8081 case "x$am_cv_prog_cc_stdc" in
8083 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8086 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8087 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8090 # test for make depend flag
8093 if test -z "${MKDEP}"; then
8095 if test -z "${MKDEP_FLAGS}"; then
8096 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8097 echo "configure:8098: checking for ${OL_MKDEP} depend flag" >&5
8098 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8099 echo $ac_n "(cached) $ac_c" 1>&6
8103 for flag in "-M" "-xM"; do
8104 cat > conftest.c <<EOF
8107 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8108 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8110 if test ! -f conftest."${ac_object}" ; then
8112 OL_MKDEP_FLAGS="$flag"
8121 echo "$ac_t""$ol_cv_mkdep" 1>&6
8124 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8129 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8134 if test "${ol_cv_mkdep}" = no ; then
8135 # this will soon become an error
8136 echo "configure: warning: do not know how to generate dependencies" 1>&2
8139 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8140 echo "configure:8141: checking for afopen in -ls" >&5
8141 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8142 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8143 echo $ac_n "(cached) $ac_c" 1>&6
8145 ac_save_LIBS="$LIBS"
8147 cat > conftest.$ac_ext <<EOF
8148 #line 8149 "configure"
8149 #include "confdefs.h"
8150 /* Override any gcc2 internal prototype to avoid an error. */
8151 /* We use char because int might match the return type of a gcc2
8152 builtin and then its argument prototype would still apply. */
8159 if { (eval echo configure:8160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8161 eval "ac_cv_lib_$ac_lib_var=yes"
8163 echo "configure: failed program was:" >&5
8164 cat conftest.$ac_ext >&5
8166 eval "ac_cv_lib_$ac_lib_var=no"
8169 LIBS="$ac_save_LIBS"
8172 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8173 echo "$ac_t""yes" 1>&6
8176 cat >> confdefs.h <<\EOF
8177 #define HAVE_AIX_SECURITY 1
8182 echo "$ac_t""no" 1>&6
8188 ac_cv_func_getopt=no
8189 cat >> confdefs.h <<\EOF
8190 #define BOTH_STRINGS_H 1
8197 WITH_MODULES_ENABLED=no
8198 if test $ol_enable_modules != no ; then
8199 for ac_hdr in ltdl.h
8201 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8202 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8203 echo "configure:8204: checking for $ac_hdr" >&5
8204 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8205 echo $ac_n "(cached) $ac_c" 1>&6
8207 cat > conftest.$ac_ext <<EOF
8208 #line 8209 "configure"
8209 #include "confdefs.h"
8212 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8213 { (eval echo configure:8214: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8214 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8215 if test -z "$ac_err"; then
8217 eval "ac_cv_header_$ac_safe=yes"
8220 echo "configure: failed program was:" >&5
8221 cat conftest.$ac_ext >&5
8223 eval "ac_cv_header_$ac_safe=no"
8227 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8228 echo "$ac_t""yes" 1>&6
8229 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8230 cat >> confdefs.h <<EOF
8231 #define $ac_tr_hdr 1
8235 echo "$ac_t""no" 1>&6
8240 if test $ac_cv_header_ltdl_h = no ; then
8241 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8244 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8245 echo "configure:8246: checking for lt_dlinit in -lltdl" >&5
8246 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8247 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8248 echo $ac_n "(cached) $ac_c" 1>&6
8250 ac_save_LIBS="$LIBS"
8252 cat > conftest.$ac_ext <<EOF
8253 #line 8254 "configure"
8254 #include "confdefs.h"
8255 /* Override any gcc2 internal prototype to avoid an error. */
8256 /* We use char because int might match the return type of a gcc2
8257 builtin and then its argument prototype would still apply. */
8264 if { (eval echo configure:8265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8266 eval "ac_cv_lib_$ac_lib_var=yes"
8268 echo "configure: failed program was:" >&5
8269 cat conftest.$ac_ext >&5
8271 eval "ac_cv_lib_$ac_lib_var=no"
8274 LIBS="$ac_save_LIBS"
8277 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8278 echo "$ac_t""yes" 1>&6
8281 cat >> confdefs.h <<\EOF
8282 #define HAVE_LIBLTDL 1
8287 echo "$ac_t""no" 1>&6
8291 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8292 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8295 WITH_MODULES_ENABLED=yes
8298 for i in $Backends; do
8299 eval "ol_tmp=\$ol_enable_$i"
8300 if test $ol_tmp = mod ; then
8301 echo "configure: warning: building static $i backend" 1>&2
8302 eval "ol_enable_$i=yes"
8305 for i in $Overlays; do
8306 eval "ol_tmp=\$ol_enable_$i"
8307 if test $ol_tmp = mod ; then
8308 echo "configure: warning: building static $i overlay" 1>&2
8309 eval "ol_enable_$i=yes"
8315 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8316 echo "configure:8317: checking for EBCDIC" >&5
8317 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8318 echo $ac_n "(cached) $ac_c" 1>&6
8321 cat > conftest.$ac_ext <<EOF
8322 #line 8323 "configure"
8323 #include "confdefs.h"
8326 #include <__ASCII__/generate_error.h>
8330 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8331 { (eval echo configure:8332: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8332 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8333 if test -z "$ac_err"; then
8335 ol_cv_cpp_ebcdic=yes
8338 echo "configure: failed program was:" >&5
8339 cat conftest.$ac_ext >&5
8346 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8347 if test $ol_cv_cpp_ebcdic = yes ; then
8348 cat >> confdefs.h <<\EOF
8349 #define HAVE_EBCDIC 1
8354 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8355 echo "configure:8356: checking for ANSI C header files" >&5
8356 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8357 echo $ac_n "(cached) $ac_c" 1>&6
8359 cat > conftest.$ac_ext <<EOF
8360 #line 8361 "configure"
8361 #include "confdefs.h"
8367 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8368 { (eval echo configure:8369: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8369 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8370 if test -z "$ac_err"; then
8372 ol_cv_header_stdc=yes
8375 echo "configure: failed program was:" >&5
8376 cat conftest.$ac_ext >&5
8378 ol_cv_header_stdc=no
8382 if test $ol_cv_header_stdc = yes; then
8383 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8384 cat > conftest.$ac_ext <<EOF
8385 #line 8386 "configure"
8386 #include "confdefs.h"
8389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8390 egrep "memchr" >/dev/null 2>&1; then
8394 ol_cv_header_stdc=no
8400 if test $ol_cv_header_stdc = yes; then
8401 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8402 cat > conftest.$ac_ext <<EOF
8403 #line 8404 "configure"
8404 #include "confdefs.h"
8407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8408 egrep "free" >/dev/null 2>&1; then
8412 ol_cv_header_stdc=no
8418 if test $ol_cv_header_stdc = yes; then
8419 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8420 if test "$cross_compiling" = yes; then
8423 cat > conftest.$ac_ext <<EOF
8424 #line 8425 "configure"
8425 #include "confdefs.h"
8428 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8429 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8431 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8432 || ('j' <= (c) && (c) <= 'r') \
8433 || ('s' <= (c) && (c) <= 'z'))
8434 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8436 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8437 int main () { int i; for (i = 0; i < 256; i++)
8438 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8442 if { (eval echo configure:8443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8446 echo "configure: failed program was:" >&5
8447 cat conftest.$ac_ext >&5
8449 ol_cv_header_stdc=no
8457 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8458 if test $ol_cv_header_stdc = yes; then
8459 cat >> confdefs.h <<\EOF
8460 #define STDC_HEADERS 1
8464 ac_cv_header_stdc=disable
8467 if test $ol_cv_header_stdc != yes; then
8468 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8472 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8474 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8475 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8476 echo "configure:8477: checking for $ac_hdr that defines DIR" >&5
8477 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8478 echo $ac_n "(cached) $ac_c" 1>&6
8480 cat > conftest.$ac_ext <<EOF
8481 #line 8482 "configure"
8482 #include "confdefs.h"
8483 #include <sys/types.h>
8489 if { (eval echo configure:8490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8491 eval "ac_cv_header_dirent_$ac_safe=yes"
8493 echo "configure: failed program was:" >&5
8494 cat conftest.$ac_ext >&5
8496 eval "ac_cv_header_dirent_$ac_safe=no"
8500 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8501 echo "$ac_t""yes" 1>&6
8502 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8503 cat >> confdefs.h <<EOF
8504 #define $ac_tr_hdr 1
8506 ac_header_dirent=$ac_hdr; break
8508 echo "$ac_t""no" 1>&6
8511 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8512 if test $ac_header_dirent = dirent.h; then
8513 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8514 echo "configure:8515: checking for opendir in -ldir" >&5
8515 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8516 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8517 echo $ac_n "(cached) $ac_c" 1>&6
8519 ac_save_LIBS="$LIBS"
8521 cat > conftest.$ac_ext <<EOF
8522 #line 8523 "configure"
8523 #include "confdefs.h"
8524 /* Override any gcc2 internal prototype to avoid an error. */
8525 /* We use char because int might match the return type of a gcc2
8526 builtin and then its argument prototype would still apply. */
8533 if { (eval echo configure:8534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8535 eval "ac_cv_lib_$ac_lib_var=yes"
8537 echo "configure: failed program was:" >&5
8538 cat conftest.$ac_ext >&5
8540 eval "ac_cv_lib_$ac_lib_var=no"
8543 LIBS="$ac_save_LIBS"
8546 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8547 echo "$ac_t""yes" 1>&6
8550 echo "$ac_t""no" 1>&6
8554 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8555 echo "configure:8556: checking for opendir in -lx" >&5
8556 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8557 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8558 echo $ac_n "(cached) $ac_c" 1>&6
8560 ac_save_LIBS="$LIBS"
8562 cat > conftest.$ac_ext <<EOF
8563 #line 8564 "configure"
8564 #include "confdefs.h"
8565 /* Override any gcc2 internal prototype to avoid an error. */
8566 /* We use char because int might match the return type of a gcc2
8567 builtin and then its argument prototype would still apply. */
8574 if { (eval echo configure:8575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8576 eval "ac_cv_lib_$ac_lib_var=yes"
8578 echo "configure: failed program was:" >&5
8579 cat conftest.$ac_ext >&5
8581 eval "ac_cv_lib_$ac_lib_var=no"
8584 LIBS="$ac_save_LIBS"
8587 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8588 echo "$ac_t""yes" 1>&6
8591 echo "$ac_t""no" 1>&6
8596 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8597 echo "configure:8598: checking for sys/wait.h that is POSIX.1 compatible" >&5
8598 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8599 echo $ac_n "(cached) $ac_c" 1>&6
8601 cat > conftest.$ac_ext <<EOF
8602 #line 8603 "configure"
8603 #include "confdefs.h"
8604 #include <sys/types.h>
8605 #include <sys/wait.h>
8607 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8610 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8615 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8618 if { (eval echo configure:8619: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8620 ac_cv_header_sys_wait_h=yes
8622 echo "configure: failed program was:" >&5
8623 cat conftest.$ac_ext >&5
8625 ac_cv_header_sys_wait_h=no
8630 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8631 if test $ac_cv_header_sys_wait_h = yes; then
8632 cat >> confdefs.h <<\EOF
8633 #define HAVE_SYS_WAIT_H 1
8638 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8639 echo "configure:8640: checking POSIX termios" >&5
8640 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8641 echo $ac_n "(cached) $ac_c" 1>&6
8643 cat > conftest.$ac_ext <<EOF
8644 #line 8645 "configure"
8645 #include "confdefs.h"
8646 #include <sys/types.h>
8648 #include <termios.h>
8650 /* SunOS 4.0.3 has termios.h but not the library calls. */
8654 if { (eval echo configure:8655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8656 am_cv_sys_posix_termios=yes
8658 echo "configure: failed program was:" >&5
8659 cat conftest.$ac_ext >&5
8661 am_cv_sys_posix_termios=no
8666 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8669 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8670 echo "configure:8671: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8671 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8672 echo $ac_n "(cached) $ac_c" 1>&6
8674 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8676 gwinsz_in_termios_h=no
8677 if test $am_cv_sys_posix_termios = yes; then
8678 cat > conftest.$ac_ext <<EOF
8679 #line 8680 "configure"
8680 #include "confdefs.h"
8681 #include <sys/types.h>
8682 # include <termios.h>
8688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8689 egrep "yes" >/dev/null 2>&1; then
8691 gwinsz_in_termios_h=yes
8697 if test $gwinsz_in_termios_h = no; then
8698 cat > conftest.$ac_ext <<EOF
8699 #line 8700 "configure"
8700 #include "confdefs.h"
8701 #include <sys/types.h>
8702 # include <sys/ioctl.h>
8708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8709 egrep "yes" >/dev/null 2>&1; then
8711 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8719 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8720 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8721 cat >> confdefs.h <<\EOF
8722 #define GWINSZ_IN_SYS_IOCTL 1
8727 if test $am_cv_sys_posix_termios = yes ; then
8728 cat >> confdefs.h <<\EOF
8729 #define HAVE_POSIX_TERMIOS 1
8785 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8786 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8787 echo "configure:8788: checking for $ac_hdr" >&5
8788 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8789 echo $ac_n "(cached) $ac_c" 1>&6
8791 cat > conftest.$ac_ext <<EOF
8792 #line 8793 "configure"
8793 #include "confdefs.h"
8796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8797 { (eval echo configure:8798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8798 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8799 if test -z "$ac_err"; then
8801 eval "ac_cv_header_$ac_safe=yes"
8804 echo "configure: failed program was:" >&5
8805 cat conftest.$ac_ext >&5
8807 eval "ac_cv_header_$ac_safe=no"
8811 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8812 echo "$ac_t""yes" 1>&6
8813 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8814 cat >> confdefs.h <<EOF
8815 #define $ac_tr_hdr 1
8819 echo "$ac_t""no" 1>&6
8826 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
8827 echo "configure:8828: checking for sigset in -lV3" >&5
8828 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
8829 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8830 echo $ac_n "(cached) $ac_c" 1>&6
8832 ac_save_LIBS="$LIBS"
8834 cat > conftest.$ac_ext <<EOF
8835 #line 8836 "configure"
8836 #include "confdefs.h"
8837 /* Override any gcc2 internal prototype to avoid an error. */
8838 /* We use char because int might match the return type of a gcc2
8839 builtin and then its argument prototype would still apply. */
8846 if { (eval echo configure:8847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8848 eval "ac_cv_lib_$ac_lib_var=yes"
8850 echo "configure: failed program was:" >&5
8851 cat conftest.$ac_ext >&5
8853 eval "ac_cv_lib_$ac_lib_var=no"
8856 LIBS="$ac_save_LIBS"
8859 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8860 echo "$ac_t""yes" 1>&6
8861 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8862 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8863 cat >> confdefs.h <<EOF
8864 #define $ac_tr_lib 1
8870 echo "$ac_t""no" 1>&6
8874 if test "$ac_cv_header_winsock_h" = yes; then
8875 echo $ac_n "checking for winsock""... $ac_c" 1>&6
8876 echo "configure:8877: checking for winsock" >&5
8877 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
8878 echo $ac_n "(cached) $ac_c" 1>&6
8881 for curlib in ws2_32 wsock32; do
8882 LIBS="$LIBS -l$curlib"
8883 cat > conftest.$ac_ext <<EOF
8884 #line 8885 "configure"
8885 #include "confdefs.h"
8886 #include <winsock.h>
8891 select(0,NULL,NULL,NULL,NULL);
8893 gethostname(NULL,0);
8897 if { (eval echo configure:8898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8901 echo "configure: failed program was:" >&5
8902 cat conftest.$ac_ext >&5
8908 if test $ol_cv_winsock = yes; then
8909 cat >> confdefs.h <<\EOF
8910 #define HAVE_WINSOCK 1
8913 ac_cv_func_socket=yes
8914 ac_cv_func_select=yes
8915 ac_cv_func_closesocket=yes
8916 ac_cv_func_gethostname=yes
8917 if test $curlib = ws2_32; then
8918 ol_cv_winsock=winsock2
8919 cat >> confdefs.h <<\EOF
8920 #define HAVE_WINSOCK2 1
8930 echo "$ac_t""$ol_cv_winsock" 1>&6
8934 echo $ac_n "checking for socket""... $ac_c" 1>&6
8935 echo "configure:8936: checking for socket" >&5
8936 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
8937 echo $ac_n "(cached) $ac_c" 1>&6
8939 cat > conftest.$ac_ext <<EOF
8940 #line 8941 "configure"
8941 #include "confdefs.h"
8942 /* System header to define __stub macros and hopefully few prototypes,
8943 which can conflict with char socket(); below. */
8945 /* Override any gcc2 internal prototype to avoid an error. */
8946 /* We use char because int might match the return type of a gcc2
8947 builtin and then its argument prototype would still apply. */
8953 /* The GNU C library defines this for functions which it implements
8954 to always fail with ENOSYS. Some functions are actually named
8955 something starting with __ and the normal name is an alias. */
8956 #if defined (__stub_socket) || defined (__stub___socket)
8964 if { (eval echo configure:8965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8966 eval "ac_cv_func_socket=yes"
8968 echo "configure: failed program was:" >&5
8969 cat conftest.$ac_ext >&5
8971 eval "ac_cv_func_socket=no"
8976 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
8977 echo "$ac_t""yes" 1>&6
8980 echo "$ac_t""no" 1>&6
8982 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
8983 echo "configure:8984: checking for main in -lsocket" >&5
8984 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
8985 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8986 echo $ac_n "(cached) $ac_c" 1>&6
8988 ac_save_LIBS="$LIBS"
8989 LIBS="-lsocket $LIBS"
8990 cat > conftest.$ac_ext <<EOF
8991 #line 8992 "configure"
8992 #include "confdefs.h"
8998 if { (eval echo configure:8999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9000 eval "ac_cv_lib_$ac_lib_var=yes"
9002 echo "configure: failed program was:" >&5
9003 cat conftest.$ac_ext >&5
9005 eval "ac_cv_lib_$ac_lib_var=no"
9008 LIBS="$ac_save_LIBS"
9011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9012 echo "$ac_t""yes" 1>&6
9013 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9014 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9015 cat >> confdefs.h <<EOF
9016 #define $ac_tr_lib 1
9019 LIBS="-lsocket $LIBS"
9022 echo "$ac_t""no" 1>&6
9025 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9026 echo "configure:9027: checking for main in -lnet" >&5
9027 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9028 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9029 echo $ac_n "(cached) $ac_c" 1>&6
9031 ac_save_LIBS="$LIBS"
9033 cat > conftest.$ac_ext <<EOF
9034 #line 9035 "configure"
9035 #include "confdefs.h"
9041 if { (eval echo configure:9042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9043 eval "ac_cv_lib_$ac_lib_var=yes"
9045 echo "configure: failed program was:" >&5
9046 cat conftest.$ac_ext >&5
9048 eval "ac_cv_lib_$ac_lib_var=no"
9051 LIBS="$ac_save_LIBS"
9054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9055 echo "$ac_t""yes" 1>&6
9056 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9057 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9058 cat >> confdefs.h <<EOF
9059 #define $ac_tr_lib 1
9065 echo "$ac_t""no" 1>&6
9068 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9069 echo "configure:9070: checking for main in -lnsl_s" >&5
9070 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9071 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9072 echo $ac_n "(cached) $ac_c" 1>&6
9074 ac_save_LIBS="$LIBS"
9075 LIBS="-lnsl_s $LIBS"
9076 cat > conftest.$ac_ext <<EOF
9077 #line 9078 "configure"
9078 #include "confdefs.h"
9084 if { (eval echo configure:9085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9086 eval "ac_cv_lib_$ac_lib_var=yes"
9088 echo "configure: failed program was:" >&5
9089 cat conftest.$ac_ext >&5
9091 eval "ac_cv_lib_$ac_lib_var=no"
9094 LIBS="$ac_save_LIBS"
9097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9098 echo "$ac_t""yes" 1>&6
9099 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9100 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9101 cat >> confdefs.h <<EOF
9102 #define $ac_tr_lib 1
9105 LIBS="-lnsl_s $LIBS"
9108 echo "$ac_t""no" 1>&6
9111 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9112 echo "configure:9113: checking for main in -lnsl" >&5
9113 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9114 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9115 echo $ac_n "(cached) $ac_c" 1>&6
9117 ac_save_LIBS="$LIBS"
9119 cat > conftest.$ac_ext <<EOF
9120 #line 9121 "configure"
9121 #include "confdefs.h"
9127 if { (eval echo configure:9128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9129 eval "ac_cv_lib_$ac_lib_var=yes"
9131 echo "configure: failed program was:" >&5
9132 cat conftest.$ac_ext >&5
9134 eval "ac_cv_lib_$ac_lib_var=no"
9137 LIBS="$ac_save_LIBS"
9140 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9141 echo "$ac_t""yes" 1>&6
9142 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9143 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9144 cat >> confdefs.h <<EOF
9145 #define $ac_tr_lib 1
9151 echo "$ac_t""no" 1>&6
9154 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9155 echo "configure:9156: checking for socket in -linet" >&5
9156 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9157 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9158 echo $ac_n "(cached) $ac_c" 1>&6
9160 ac_save_LIBS="$LIBS"
9162 cat > conftest.$ac_ext <<EOF
9163 #line 9164 "configure"
9164 #include "confdefs.h"
9165 /* Override any gcc2 internal prototype to avoid an error. */
9166 /* We use char because int might match the return type of a gcc2
9167 builtin and then its argument prototype would still apply. */
9174 if { (eval echo configure:9175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9176 eval "ac_cv_lib_$ac_lib_var=yes"
9178 echo "configure: failed program was:" >&5
9179 cat conftest.$ac_ext >&5
9181 eval "ac_cv_lib_$ac_lib_var=no"
9184 LIBS="$ac_save_LIBS"
9187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9188 echo "$ac_t""yes" 1>&6
9189 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9190 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9191 cat >> confdefs.h <<EOF
9192 #define $ac_tr_lib 1
9198 echo "$ac_t""no" 1>&6
9201 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9202 echo "configure:9203: checking for main in -lgen" >&5
9203 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9204 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9205 echo $ac_n "(cached) $ac_c" 1>&6
9207 ac_save_LIBS="$LIBS"
9209 cat > conftest.$ac_ext <<EOF
9210 #line 9211 "configure"
9211 #include "confdefs.h"
9217 if { (eval echo configure:9218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9219 eval "ac_cv_lib_$ac_lib_var=yes"
9221 echo "configure: failed program was:" >&5
9222 cat conftest.$ac_ext >&5
9224 eval "ac_cv_lib_$ac_lib_var=no"
9227 LIBS="$ac_save_LIBS"
9230 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9231 echo "$ac_t""yes" 1>&6
9232 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9233 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9234 cat >> confdefs.h <<EOF
9235 #define $ac_tr_lib 1
9241 echo "$ac_t""no" 1>&6
9248 echo $ac_n "checking for select""... $ac_c" 1>&6
9249 echo "configure:9250: checking for select" >&5
9250 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9251 echo $ac_n "(cached) $ac_c" 1>&6
9253 cat > conftest.$ac_ext <<EOF
9254 #line 9255 "configure"
9255 #include "confdefs.h"
9256 /* System header to define __stub macros and hopefully few prototypes,
9257 which can conflict with char select(); below. */
9259 /* Override any gcc2 internal prototype to avoid an error. */
9260 /* We use char because int might match the return type of a gcc2
9261 builtin and then its argument prototype would still apply. */
9267 /* The GNU C library defines this for functions which it implements
9268 to always fail with ENOSYS. Some functions are actually named
9269 something starting with __ and the normal name is an alias. */
9270 #if defined (__stub_select) || defined (__stub___select)
9278 if { (eval echo configure:9279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9280 eval "ac_cv_func_select=yes"
9282 echo "configure: failed program was:" >&5
9283 cat conftest.$ac_ext >&5
9285 eval "ac_cv_func_select=no"
9290 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9291 echo "$ac_t""yes" 1>&6
9294 echo "$ac_t""no" 1>&6
9295 { echo "configure: error: select() required." 1>&2; exit 1; }
9299 if test "${ac_cv_header_winsock_h}" != yes; then
9300 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9301 echo "configure:9302: checking types of arguments for select()" >&5
9302 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9303 echo $ac_n "(cached) $ac_c" 1>&6
9305 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9306 echo $ac_n "(cached) $ac_c" 1>&6
9308 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9309 echo $ac_n "(cached) $ac_c" 1>&6
9311 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9312 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9313 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9314 cat > conftest.$ac_ext <<EOF
9315 #line 9316 "configure"
9316 #include "confdefs.h"
9317 #ifdef HAVE_SYS_TYPES_H
9318 #include <sys/types.h>
9320 #ifdef HAVE_SYS_TIME_H
9321 #include <sys/time.h>
9323 #ifdef HAVE_SYS_SELECT_H
9324 #include <sys/select.h>
9326 #ifdef HAVE_SYS_SOCKET_H
9327 #include <sys/socket.h>
9329 extern select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);
9334 if { (eval echo configure:9335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9336 ac_not_found=no ; break 3
9338 echo "configure: failed program was:" >&5
9339 cat conftest.$ac_ext >&5
9353 if test "$ac_not_found" = yes; then
9354 ac_cv_func_select_arg1=int
9355 ac_cv_func_select_arg234='int *'
9356 ac_cv_func_select_arg5='struct timeval *'
9358 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9359 cat >> confdefs.h <<EOF
9360 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9363 cat >> confdefs.h <<EOF
9364 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9367 cat >> confdefs.h <<EOF
9368 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9377 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9378 echo "configure:9379: checking for $ac_func" >&5
9379 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9380 echo $ac_n "(cached) $ac_c" 1>&6
9382 cat > conftest.$ac_ext <<EOF
9383 #line 9384 "configure"
9384 #include "confdefs.h"
9385 /* System header to define __stub macros and hopefully few prototypes,
9386 which can conflict with char $ac_func(); below. */
9388 /* Override any gcc2 internal prototype to avoid an error. */
9389 /* We use char because int might match the return type of a gcc2
9390 builtin and then its argument prototype would still apply. */
9396 /* The GNU C library defines this for functions which it implements
9397 to always fail with ENOSYS. Some functions are actually named
9398 something starting with __ and the normal name is an alias. */
9399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9407 if { (eval echo configure:9408: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9409 eval "ac_cv_func_$ac_func=yes"
9411 echo "configure: failed program was:" >&5
9412 cat conftest.$ac_ext >&5
9414 eval "ac_cv_func_$ac_func=no"
9419 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9420 echo "$ac_t""yes" 1>&6
9421 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9422 cat >> confdefs.h <<EOF
9423 #define $ac_tr_func 1
9427 echo "$ac_t""no" 1>&6
9431 for ac_hdr in poll.h
9433 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9434 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9435 echo "configure:9436: checking for $ac_hdr" >&5
9436 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9437 echo $ac_n "(cached) $ac_c" 1>&6
9439 cat > conftest.$ac_ext <<EOF
9440 #line 9441 "configure"
9441 #include "confdefs.h"
9444 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9445 { (eval echo configure:9446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9446 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9447 if test -z "$ac_err"; then
9449 eval "ac_cv_header_$ac_safe=yes"
9452 echo "configure: failed program was:" >&5
9453 cat conftest.$ac_ext >&5
9455 eval "ac_cv_header_$ac_safe=no"
9459 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9460 echo "$ac_t""yes" 1>&6
9461 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9462 cat >> confdefs.h <<EOF
9463 #define $ac_tr_hdr 1
9467 echo "$ac_t""no" 1>&6
9472 for ac_hdr in sys/epoll.h
9474 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9475 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9476 echo "configure:9477: checking for $ac_hdr" >&5
9477 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9478 echo $ac_n "(cached) $ac_c" 1>&6
9480 cat > conftest.$ac_ext <<EOF
9481 #line 9482 "configure"
9482 #include "confdefs.h"
9485 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9486 { (eval echo configure:9487: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9487 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9488 if test -z "$ac_err"; then
9490 eval "ac_cv_header_$ac_safe=yes"
9493 echo "configure: failed program was:" >&5
9494 cat conftest.$ac_ext >&5
9496 eval "ac_cv_header_$ac_safe=no"
9500 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9501 echo "$ac_t""yes" 1>&6
9502 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9503 cat >> confdefs.h <<EOF
9504 #define $ac_tr_hdr 1
9508 echo "$ac_t""no" 1>&6
9512 if test "${ac_cv_header_sys_epoll_h}" = yes; then
9513 echo $ac_n "checking for epoll system call""... $ac_c" 1>&6
9514 echo "configure:9515: checking for epoll system call" >&5
9515 if test "$cross_compiling" = yes; then
9516 echo "$ac_t""no" 1>&6
9518 cat > conftest.$ac_ext <<EOF
9519 #line 9520 "configure"
9520 #include "confdefs.h"
9521 int main(int argc, char *argv)
9523 int epfd = epoll_create(256);
9524 exit (epfd == -1 ? 1 : 0);
9527 if { (eval echo configure:9528: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9529 echo "$ac_t""yes" 1>&6
9530 cat >> confdefs.h <<\EOF
9531 #define HAVE_EPOLL 1
9535 echo "configure: failed program was:" >&5
9536 cat conftest.$ac_ext >&5
9538 echo "$ac_t""no" 1>&6
9546 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
9547 echo "configure:9548: checking declaration of sys_errlist" >&5
9548 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
9549 echo $ac_n "(cached) $ac_c" 1>&6
9552 cat > conftest.$ac_ext <<EOF
9553 #line 9554 "configure"
9554 #include "confdefs.h"
9557 #include <sys/types.h>
9563 char *c = (char *) *sys_errlist
9566 if { (eval echo configure:9567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9568 ol_cv_dcl_sys_errlist=yes
9569 ol_cv_have_sys_errlist=yes
9571 echo "configure: failed program was:" >&5
9572 cat conftest.$ac_ext >&5
9574 ol_cv_dcl_sys_errlist=no
9579 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
9581 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
9582 if test $ol_cv_dcl_sys_errlist = no ; then
9583 cat >> confdefs.h <<\EOF
9584 #define DECL_SYS_ERRLIST 1
9588 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
9589 echo "configure:9590: checking existence of sys_errlist" >&5
9590 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
9591 echo $ac_n "(cached) $ac_c" 1>&6
9594 cat > conftest.$ac_ext <<EOF
9595 #line 9596 "configure"
9596 #include "confdefs.h"
9599 char *c = (char *) *sys_errlist
9602 if { (eval echo configure:9603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9604 ol_cv_have_sys_errlist=yes
9606 echo "configure: failed program was:" >&5
9607 cat conftest.$ac_ext >&5
9609 ol_cv_have_sys_errlist=no
9614 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
9616 if test $ol_cv_have_sys_errlist = yes ; then
9617 cat >> confdefs.h <<\EOF
9618 #define HAVE_SYS_ERRLIST 1
9622 for ac_func in strerror strerror_r
9624 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9625 echo "configure:9626: checking for $ac_func" >&5
9626 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9627 echo $ac_n "(cached) $ac_c" 1>&6
9629 cat > conftest.$ac_ext <<EOF
9630 #line 9631 "configure"
9631 #include "confdefs.h"
9632 /* System header to define __stub macros and hopefully few prototypes,
9633 which can conflict with char $ac_func(); below. */
9635 /* Override any gcc2 internal prototype to avoid an error. */
9636 /* We use char because int might match the return type of a gcc2
9637 builtin and then its argument prototype would still apply. */
9643 /* The GNU C library defines this for functions which it implements
9644 to always fail with ENOSYS. Some functions are actually named
9645 something starting with __ and the normal name is an alias. */
9646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9654 if { (eval echo configure:9655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9656 eval "ac_cv_func_$ac_func=yes"
9658 echo "configure: failed program was:" >&5
9659 cat conftest.$ac_ext >&5
9661 eval "ac_cv_func_$ac_func=no"
9666 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9667 echo "$ac_t""yes" 1>&6
9668 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9669 cat >> confdefs.h <<EOF
9670 #define $ac_tr_func 1
9674 echo "$ac_t""no" 1>&6
9678 ol_cv_func_strerror_r=no
9679 if test "${ac_cv_func_strerror_r}" = yes ; then
9680 echo $ac_n "checking non-posix strerror_r""... $ac_c" 1>&6
9681 echo "configure:9682: checking non-posix strerror_r" >&5
9682 if eval "test \"\${ol_cv_nonposix_strerror_r+set}\" = set"; then
9683 echo $ac_n "(cached) $ac_c" 1>&6
9686 cat > conftest.$ac_ext <<EOF
9687 #line 9688 "configure"
9688 #include "confdefs.h"
9691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9692 egrep "strerror_r" >/dev/null 2>&1; then
9694 ol_decl_strerror_r=yes
9697 ol_decl_strerror_r=no
9701 if test $ol_decl_strerror_r = yes ; then
9702 cat > conftest.$ac_ext <<EOF
9703 #line 9704 "configure"
9704 #include "confdefs.h"
9707 /* from autoconf 2.59 */
9709 char x = *strerror_r (0, buf, sizeof buf);
9710 char *p = strerror_r (0, buf, sizeof buf);
9714 if { (eval echo configure:9715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9716 ol_cv_nonposix_strerror_r=yes
9718 echo "configure: failed program was:" >&5
9719 cat conftest.$ac_ext >&5
9721 ol_cv_nonposix_strerror_r=no
9725 if test "$cross_compiling" = yes; then
9726 ol_cv_nonposix_strerror=no
9728 cat > conftest.$ac_ext <<EOF
9729 #line 9730 "configure"
9730 #include "confdefs.h"
9735 strerror_r( 1, buf, sizeof buf );
9736 exit( buf[0] == 0 );
9740 if { (eval echo configure:9741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9742 ol_cv_nonposix_strerror_r=yes
9744 echo "configure: failed program was:" >&5
9745 cat conftest.$ac_ext >&5
9747 ol_cv_nonposix_strerror=no
9756 echo "$ac_t""$ol_cv_nonposix_strerror_r" 1>&6
9757 if test $ol_cv_nonposix_strerror_r = yes ; then
9758 cat >> confdefs.h <<\EOF
9759 #define HAVE_NONPOSIX_STRERROR_R 1
9764 elif test "${ac_cv_func_strerror}" = no ; then
9765 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
9766 echo "configure:9767: checking declaration of sys_errlist" >&5
9767 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
9768 echo $ac_n "(cached) $ac_c" 1>&6
9771 cat > conftest.$ac_ext <<EOF
9772 #line 9773 "configure"
9773 #include "confdefs.h"
9776 #include <sys/types.h>
9782 char *c = (char *) *sys_errlist
9785 if { (eval echo configure:9786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9787 ol_cv_dcl_sys_errlist=yes
9788 ol_cv_have_sys_errlist=yes
9790 echo "configure: failed program was:" >&5
9791 cat conftest.$ac_ext >&5
9793 ol_cv_dcl_sys_errlist=no
9798 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
9800 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
9801 if test $ol_cv_dcl_sys_errlist = no ; then
9802 cat >> confdefs.h <<\EOF
9803 #define DECL_SYS_ERRLIST 1
9807 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
9808 echo "configure:9809: checking existence of sys_errlist" >&5
9809 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
9810 echo $ac_n "(cached) $ac_c" 1>&6
9813 cat > conftest.$ac_ext <<EOF
9814 #line 9815 "configure"
9815 #include "confdefs.h"
9818 char *c = (char *) *sys_errlist
9821 if { (eval echo configure:9822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9823 ol_cv_have_sys_errlist=yes
9825 echo "configure: failed program was:" >&5
9826 cat conftest.$ac_ext >&5
9828 ol_cv_have_sys_errlist=no
9833 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
9835 if test $ol_cv_have_sys_errlist = yes ; then
9836 cat >> confdefs.h <<\EOF
9837 #define HAVE_SYS_ERRLIST 1
9845 for ac_hdr in regex.h
9847 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9848 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9849 echo "configure:9850: checking for $ac_hdr" >&5
9850 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9851 echo $ac_n "(cached) $ac_c" 1>&6
9853 cat > conftest.$ac_ext <<EOF
9854 #line 9855 "configure"
9855 #include "confdefs.h"
9858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9859 { (eval echo configure:9860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9861 if test -z "$ac_err"; then
9863 eval "ac_cv_header_$ac_safe=yes"
9866 echo "configure: failed program was:" >&5
9867 cat conftest.$ac_ext >&5
9869 eval "ac_cv_header_$ac_safe=no"
9873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9874 echo "$ac_t""yes" 1>&6
9875 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9876 cat >> confdefs.h <<EOF
9877 #define $ac_tr_hdr 1
9881 echo "$ac_t""no" 1>&6
9885 if test "$ac_cv_header_regex_h" != yes ; then
9886 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9889 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9890 echo "configure:9891: checking for library containing regfree" >&5
9891 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9892 echo $ac_n "(cached) $ac_c" 1>&6
9894 ac_func_search_save_LIBS="$LIBS"
9895 ac_cv_search_regfree="no"
9896 cat > conftest.$ac_ext <<EOF
9897 #line 9898 "configure"
9898 #include "confdefs.h"
9899 /* Override any gcc2 internal prototype to avoid an error. */
9900 /* We use char because int might match the return type of a gcc2
9901 builtin and then its argument prototype would still apply. */
9908 if { (eval echo configure:9909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9910 ac_cv_search_regfree="none required"
9912 echo "configure: failed program was:" >&5
9913 cat conftest.$ac_ext >&5
9916 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9917 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9918 cat > conftest.$ac_ext <<EOF
9919 #line 9920 "configure"
9920 #include "confdefs.h"
9921 /* Override any gcc2 internal prototype to avoid an error. */
9922 /* We use char because int might match the return type of a gcc2
9923 builtin and then its argument prototype would still apply. */
9930 if { (eval echo configure:9931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9932 ac_cv_search_regfree="-l$ac_lib"
9935 echo "configure: failed program was:" >&5
9936 cat conftest.$ac_ext >&5
9940 LIBS="$ac_func_search_save_LIBS"
9943 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9944 if test "$ac_cv_search_regfree" != "no"; then
9945 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9948 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9952 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9953 echo "configure:9954: checking for compatible POSIX regex" >&5
9954 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9955 echo $ac_n "(cached) $ac_c" 1>&6
9958 if test "$cross_compiling" = yes; then
9959 ol_cv_c_posix_regex=cross
9961 cat > conftest.$ac_ext <<EOF
9962 #line 9963 "configure"
9963 #include "confdefs.h"
9965 #include <sys/types.h>
9967 static char *pattern, *string;
9975 if(regcomp(&re, pattern, 0)) {
9979 string = "ALL MATCH";
9981 rc = regexec(&re, string, 0, (void*)0, 0);
9988 if { (eval echo configure:9989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9990 ol_cv_c_posix_regex=yes
9992 echo "configure: failed program was:" >&5
9993 cat conftest.$ac_ext >&5
9995 ol_cv_c_posix_regex=no
10002 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
10004 if test "$ol_cv_c_posix_regex" = no ; then
10005 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
10010 for ac_hdr in sys/uuid.h
10012 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10013 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10014 echo "configure:10015: checking for $ac_hdr" >&5
10015 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10016 echo $ac_n "(cached) $ac_c" 1>&6
10018 cat > conftest.$ac_ext <<EOF
10019 #line 10020 "configure"
10020 #include "confdefs.h"
10023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10024 { (eval echo configure:10025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10026 if test -z "$ac_err"; then
10028 eval "ac_cv_header_$ac_safe=yes"
10031 echo "configure: failed program was:" >&5
10032 cat conftest.$ac_ext >&5
10034 eval "ac_cv_header_$ac_safe=no"
10038 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10039 echo "$ac_t""yes" 1>&6
10040 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10041 cat >> confdefs.h <<EOF
10042 #define $ac_tr_hdr 1
10046 echo "$ac_t""no" 1>&6
10050 if test $ac_cv_header_sys_uuid_h = yes ; then
10053 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
10054 echo "configure:10055: checking for library containing uuid_to_str" >&5
10055 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
10056 echo $ac_n "(cached) $ac_c" 1>&6
10058 ac_func_search_save_LIBS="$LIBS"
10059 ac_cv_search_uuid_to_str="no"
10060 cat > conftest.$ac_ext <<EOF
10061 #line 10062 "configure"
10062 #include "confdefs.h"
10063 /* Override any gcc2 internal prototype to avoid an error. */
10064 /* We use char because int might match the return type of a gcc2
10065 builtin and then its argument prototype would still apply. */
10066 char uuid_to_str();
10072 if { (eval echo configure:10073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10074 ac_cv_search_uuid_to_str="none required"
10076 echo "configure: failed program was:" >&5
10077 cat conftest.$ac_ext >&5
10080 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
10081 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10082 cat > conftest.$ac_ext <<EOF
10083 #line 10084 "configure"
10084 #include "confdefs.h"
10085 /* Override any gcc2 internal prototype to avoid an error. */
10086 /* We use char because int might match the return type of a gcc2
10087 builtin and then its argument prototype would still apply. */
10088 char uuid_to_str();
10094 if { (eval echo configure:10095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10096 ac_cv_search_uuid_to_str="-l$ac_lib"
10099 echo "configure: failed program was:" >&5
10100 cat conftest.$ac_ext >&5
10104 LIBS="$ac_func_search_save_LIBS"
10107 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
10108 if test "$ac_cv_search_uuid_to_str" != "no"; then
10109 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
10116 if test have_uuid = yes ; then
10117 cat >> confdefs.h <<\EOF
10118 #define HAVE_UUID_TO_STR 1
10122 test "$ac_cv_search_uuid_to_str" = "none required" || \
10123 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
10127 if test $have_uuid = no ; then
10128 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
10129 echo "configure:10130: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
10131 LIBS="$LIBS -lrpcrt4"
10132 cat > conftest.$ac_ext <<EOF
10133 #line 10134 "configure"
10134 #include "confdefs.h"
10136 int __stdcall UuidCreate(void *);
10137 int __stdcall UuidToStringA(void *,void **);
10142 UuidToStringA(0,0);
10146 if { (eval echo configure:10147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10150 echo "configure: failed program was:" >&5
10151 cat conftest.$ac_ext >&5
10156 if test $need_rpcrt = yes; then
10157 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
10160 echo "$ac_t""$need_rpcrt" 1>&6
10164 echo $ac_n "checking for res_query""... $ac_c" 1>&6
10165 echo "configure:10166: checking for res_query" >&5
10166 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
10167 echo $ac_n "(cached) $ac_c" 1>&6
10169 cat > conftest.$ac_ext <<EOF
10170 #line 10171 "configure"
10171 #include "confdefs.h"
10172 /* System header to define __stub macros and hopefully few prototypes,
10173 which can conflict with char res_query(); below. */
10174 #include <assert.h>
10175 /* Override any gcc2 internal prototype to avoid an error. */
10176 /* We use char because int might match the return type of a gcc2
10177 builtin and then its argument prototype would still apply. */
10183 /* The GNU C library defines this for functions which it implements
10184 to always fail with ENOSYS. Some functions are actually named
10185 something starting with __ and the normal name is an alias. */
10186 #if defined (__stub_res_query) || defined (__stub___res_query)
10194 if { (eval echo configure:10195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10196 eval "ac_cv_func_res_query=yes"
10198 echo "configure: failed program was:" >&5
10199 cat conftest.$ac_ext >&5
10201 eval "ac_cv_func_res_query=no"
10206 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
10207 echo "$ac_t""yes" 1>&6
10210 echo "$ac_t""no" 1>&6
10213 if test $ac_cv_func_res_query = no ; then
10214 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
10215 echo "configure:10216: checking for __res_query" >&5
10216 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
10217 echo $ac_n "(cached) $ac_c" 1>&6
10219 cat > conftest.$ac_ext <<EOF
10220 #line 10221 "configure"
10221 #include "confdefs.h"
10222 /* System header to define __stub macros and hopefully few prototypes,
10223 which can conflict with char __res_query(); below. */
10224 #include <assert.h>
10225 /* Override any gcc2 internal prototype to avoid an error. */
10226 /* We use char because int might match the return type of a gcc2
10227 builtin and then its argument prototype would still apply. */
10228 char __res_query();
10233 /* The GNU C library defines this for functions which it implements
10234 to always fail with ENOSYS. Some functions are actually named
10235 something starting with __ and the normal name is an alias. */
10236 #if defined (__stub___res_query) || defined (__stub_____res_query)
10244 if { (eval echo configure:10245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10246 eval "ac_cv_func___res_query=yes"
10248 echo "configure: failed program was:" >&5
10249 cat conftest.$ac_ext >&5
10251 eval "ac_cv_func___res_query=no"
10256 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
10257 echo "$ac_t""yes" 1>&6
10260 echo "$ac_t""no" 1>&6
10263 ac_cv_func_res_query=$ac_cv_func___res_query
10266 if test $ac_cv_func_res_query = no ; then
10267 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
10268 echo "configure:10269: checking for res_query in -lbind" >&5
10269 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
10270 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10271 echo $ac_n "(cached) $ac_c" 1>&6
10273 ac_save_LIBS="$LIBS"
10274 LIBS="-lbind $LIBS"
10275 cat > conftest.$ac_ext <<EOF
10276 #line 10277 "configure"
10277 #include "confdefs.h"
10278 /* Override any gcc2 internal prototype to avoid an error. */
10279 /* We use char because int might match the return type of a gcc2
10280 builtin and then its argument prototype would still apply. */
10287 if { (eval echo configure:10288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10289 eval "ac_cv_lib_$ac_lib_var=yes"
10291 echo "configure: failed program was:" >&5
10292 cat conftest.$ac_ext >&5
10294 eval "ac_cv_lib_$ac_lib_var=no"
10297 LIBS="$ac_save_LIBS"
10300 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10301 echo "$ac_t""yes" 1>&6
10302 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10303 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10304 cat >> confdefs.h <<EOF
10305 #define $ac_tr_lib 1
10308 LIBS="-lbind $LIBS"
10311 echo "$ac_t""no" 1>&6
10314 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10317 if test $ac_cv_func_res_query = no ; then
10318 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10319 echo "configure:10320: checking for __res_query in -lbind" >&5
10320 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10321 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10322 echo $ac_n "(cached) $ac_c" 1>&6
10324 ac_save_LIBS="$LIBS"
10325 LIBS="-lbind $LIBS"
10326 cat > conftest.$ac_ext <<EOF
10327 #line 10328 "configure"
10328 #include "confdefs.h"
10329 /* Override any gcc2 internal prototype to avoid an error. */
10330 /* We use char because int might match the return type of a gcc2
10331 builtin and then its argument prototype would still apply. */
10332 char __res_query();
10338 if { (eval echo configure:10339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10340 eval "ac_cv_lib_$ac_lib_var=yes"
10342 echo "configure: failed program was:" >&5
10343 cat conftest.$ac_ext >&5
10345 eval "ac_cv_lib_$ac_lib_var=no"
10348 LIBS="$ac_save_LIBS"
10351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10352 echo "$ac_t""yes" 1>&6
10353 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10354 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10355 cat >> confdefs.h <<EOF
10356 #define $ac_tr_lib 1
10359 LIBS="-lbind $LIBS"
10362 echo "$ac_t""no" 1>&6
10365 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10368 if test $ac_cv_func_res_query = no ; then
10369 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10370 echo "configure:10371: checking for res_query in -lresolv" >&5
10371 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10372 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10373 echo $ac_n "(cached) $ac_c" 1>&6
10375 ac_save_LIBS="$LIBS"
10376 LIBS="-lresolv $LIBS"
10377 cat > conftest.$ac_ext <<EOF
10378 #line 10379 "configure"
10379 #include "confdefs.h"
10380 /* Override any gcc2 internal prototype to avoid an error. */
10381 /* We use char because int might match the return type of a gcc2
10382 builtin and then its argument prototype would still apply. */
10389 if { (eval echo configure:10390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10391 eval "ac_cv_lib_$ac_lib_var=yes"
10393 echo "configure: failed program was:" >&5
10394 cat conftest.$ac_ext >&5
10396 eval "ac_cv_lib_$ac_lib_var=no"
10399 LIBS="$ac_save_LIBS"
10402 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10403 echo "$ac_t""yes" 1>&6
10404 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10405 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10406 cat >> confdefs.h <<EOF
10407 #define $ac_tr_lib 1
10410 LIBS="-lresolv $LIBS"
10413 echo "$ac_t""no" 1>&6
10416 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10419 if test $ac_cv_func_res_query = no ; then
10420 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10421 echo "configure:10422: checking for __res_query in -lresolv" >&5
10422 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10423 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10424 echo $ac_n "(cached) $ac_c" 1>&6
10426 ac_save_LIBS="$LIBS"
10427 LIBS="-lresolv $LIBS"
10428 cat > conftest.$ac_ext <<EOF
10429 #line 10430 "configure"
10430 #include "confdefs.h"
10431 /* Override any gcc2 internal prototype to avoid an error. */
10432 /* We use char because int might match the return type of a gcc2
10433 builtin and then its argument prototype would still apply. */
10434 char __res_query();
10440 if { (eval echo configure:10441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10442 eval "ac_cv_lib_$ac_lib_var=yes"
10444 echo "configure: failed program was:" >&5
10445 cat conftest.$ac_ext >&5
10447 eval "ac_cv_lib_$ac_lib_var=no"
10450 LIBS="$ac_save_LIBS"
10453 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10454 echo "$ac_t""yes" 1>&6
10455 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10456 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10457 cat >> confdefs.h <<EOF
10458 #define $ac_tr_lib 1
10461 LIBS="-lresolv $LIBS"
10464 echo "$ac_t""no" 1>&6
10467 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10470 if test $ac_cv_func_res_query = no ; then
10471 echo $ac_n "checking for _res_9_query in -lresolv""... $ac_c" 1>&6
10472 echo "configure:10473: checking for _res_9_query in -lresolv" >&5
10473 ac_lib_var=`echo resolv'_'_res_9_query | sed 'y%./+-:%__p__%'`
10474 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10475 echo $ac_n "(cached) $ac_c" 1>&6
10477 ac_save_LIBS="$LIBS"
10478 LIBS="-lresolv $LIBS"
10479 cat > conftest.$ac_ext <<EOF
10480 #line 10481 "configure"
10481 #include "confdefs.h"
10482 /* Override any gcc2 internal prototype to avoid an error. */
10483 /* We use char because int might match the return type of a gcc2
10484 builtin and then its argument prototype would still apply. */
10485 char _res_9_query();
10491 if { (eval echo configure:10492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10493 eval "ac_cv_lib_$ac_lib_var=yes"
10495 echo "configure: failed program was:" >&5
10496 cat conftest.$ac_ext >&5
10498 eval "ac_cv_lib_$ac_lib_var=no"
10501 LIBS="$ac_save_LIBS"
10504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10505 echo "$ac_t""yes" 1>&6
10506 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10507 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10508 cat >> confdefs.h <<EOF
10509 #define $ac_tr_lib 1
10512 LIBS="-lresolv $LIBS"
10515 echo "$ac_t""no" 1>&6
10518 ac_cv_func_res_query=$ac_cv_lib_resolv_res_9_query
10521 if test "$ac_cv_func_res_query" = yes ; then
10522 cat >> confdefs.h <<\EOF
10523 #define HAVE_RES_QUERY 1
10527 if test $ol_enable_dnssrv != no ; then
10532 if test "$ol_enable_dnssrv" != no -a "$ol_link_dnssrv" = no ; then
10533 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10536 for ac_func in hstrerror
10538 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10539 echo "configure:10540: checking for $ac_func" >&5
10540 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10541 echo $ac_n "(cached) $ac_c" 1>&6
10543 cat > conftest.$ac_ext <<EOF
10544 #line 10545 "configure"
10545 #include "confdefs.h"
10546 /* System header to define __stub macros and hopefully few prototypes,
10547 which can conflict with char $ac_func(); below. */
10548 #include <assert.h>
10549 /* Override any gcc2 internal prototype to avoid an error. */
10550 /* We use char because int might match the return type of a gcc2
10551 builtin and then its argument prototype would still apply. */
10557 /* The GNU C library defines this for functions which it implements
10558 to always fail with ENOSYS. Some functions are actually named
10559 something starting with __ and the normal name is an alias. */
10560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10568 if { (eval echo configure:10569: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10570 eval "ac_cv_func_$ac_func=yes"
10572 echo "configure: failed program was:" >&5
10573 cat conftest.$ac_ext >&5
10575 eval "ac_cv_func_$ac_func=no"
10580 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10581 echo "$ac_t""yes" 1>&6
10582 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10583 cat >> confdefs.h <<EOF
10584 #define $ac_tr_func 1
10588 echo "$ac_t""no" 1>&6
10593 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
10595 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10596 echo "configure:10597: checking for $ac_func" >&5
10597 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10598 echo $ac_n "(cached) $ac_c" 1>&6
10600 cat > conftest.$ac_ext <<EOF
10601 #line 10602 "configure"
10602 #include "confdefs.h"
10603 /* System header to define __stub macros and hopefully few prototypes,
10604 which can conflict with char $ac_func(); below. */
10605 #include <assert.h>
10606 /* Override any gcc2 internal prototype to avoid an error. */
10607 /* We use char because int might match the return type of a gcc2
10608 builtin and then its argument prototype would still apply. */
10614 /* The GNU C library defines this for functions which it implements
10615 to always fail with ENOSYS. Some functions are actually named
10616 something starting with __ and the normal name is an alias. */
10617 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10625 if { (eval echo configure:10626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10627 eval "ac_cv_func_$ac_func=yes"
10629 echo "configure: failed program was:" >&5
10630 cat conftest.$ac_ext >&5
10632 eval "ac_cv_func_$ac_func=no"
10637 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10638 echo "$ac_t""yes" 1>&6
10639 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10640 cat >> confdefs.h <<EOF
10641 #define $ac_tr_func 1
10645 echo "$ac_t""no" 1>&6
10651 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10652 if test $ol_enable_ipv6 = yes ; then
10653 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10655 elif test $ol_enable_ipv6 != no ; then
10656 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10657 echo "configure:10658: checking INET6_ADDRSTRLEN" >&5
10658 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10659 echo $ac_n "(cached) $ac_c" 1>&6
10662 cat > conftest.$ac_ext <<EOF
10663 #line 10664 "configure"
10664 #include "confdefs.h"
10666 # include <netinet/in.h>
10667 # ifdef INET6_ADDRSTRLEN
10668 __has_inet6_addrstrlen__;
10672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10673 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10675 ol_cv_inet6_addrstrlen=yes
10678 ol_cv_inet6_addrstrlen=no
10684 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10687 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10688 echo "configure:10689: checking struct sockaddr_storage" >&5
10689 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10690 echo $ac_n "(cached) $ac_c" 1>&6
10693 cat > conftest.$ac_ext <<EOF
10694 #line 10695 "configure"
10695 #include "confdefs.h"
10697 #include <sys/types.h>
10698 #include <sys/socket.h>
10702 struct sockaddr_storage ss;
10706 if { (eval echo configure:10707: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10708 ol_cv_struct_sockaddr_storage=yes
10710 echo "configure: failed program was:" >&5
10711 cat conftest.$ac_ext >&5
10713 ol_cv_struct_sockaddr_storage=no
10718 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10720 if test $ol_cv_inet6_addrstrlen = yes \
10721 -a $ol_cv_struct_sockaddr_storage = yes ; then
10723 elif test $ol_enable_ipv6 = yes \
10724 -a $ol_cv_inet6_addrstrlen = no ; then
10725 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10726 elif test $ol_enable_ipv6 = yes \
10727 -a $ol_cv_struct_sockaddr_storage = no ; then
10728 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10732 if test $ol_enable_local != no ; then
10733 for ac_hdr in sys/un.h
10735 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10737 echo "configure:10738: checking for $ac_hdr" >&5
10738 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10739 echo $ac_n "(cached) $ac_c" 1>&6
10741 cat > conftest.$ac_ext <<EOF
10742 #line 10743 "configure"
10743 #include "confdefs.h"
10746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10747 { (eval echo configure:10748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10749 if test -z "$ac_err"; then
10751 eval "ac_cv_header_$ac_safe=yes"
10754 echo "configure: failed program was:" >&5
10755 cat conftest.$ac_ext >&5
10757 eval "ac_cv_header_$ac_safe=no"
10761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10762 echo "$ac_t""yes" 1>&6
10763 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10764 cat >> confdefs.h <<EOF
10765 #define $ac_tr_hdr 1
10769 echo "$ac_t""no" 1>&6
10774 if test $ol_enable_local = auto ; then
10775 ol_enable_local=$ac_cv_header_sys_un_h
10776 elif test $ac_cv_header_sys_un_h = no ; then
10777 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10785 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10786 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10787 -o $ol_with_kerberos = k425 ; then
10789 for ac_hdr in krb5.h
10791 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10792 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10793 echo "configure:10794: checking for $ac_hdr" >&5
10794 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10795 echo $ac_n "(cached) $ac_c" 1>&6
10797 cat > conftest.$ac_ext <<EOF
10798 #line 10799 "configure"
10799 #include "confdefs.h"
10802 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10803 { (eval echo configure:10804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10804 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10805 if test -z "$ac_err"; then
10807 eval "ac_cv_header_$ac_safe=yes"
10810 echo "configure: failed program was:" >&5
10811 cat conftest.$ac_ext >&5
10813 eval "ac_cv_header_$ac_safe=no"
10817 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10818 echo "$ac_t""yes" 1>&6
10819 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10820 cat >> confdefs.h <<EOF
10821 #define $ac_tr_hdr 1
10825 echo "$ac_t""no" 1>&6
10830 if test $ac_cv_header_krb5_h = yes ; then
10831 for ac_hdr in heim_err.h
10833 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10834 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10835 echo "configure:10836: checking for $ac_hdr" >&5
10836 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10837 echo $ac_n "(cached) $ac_c" 1>&6
10839 cat > conftest.$ac_ext <<EOF
10840 #line 10841 "configure"
10841 #include "confdefs.h"
10844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10845 { (eval echo configure:10846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10847 if test -z "$ac_err"; then
10849 eval "ac_cv_header_$ac_safe=yes"
10852 echo "configure: failed program was:" >&5
10853 cat conftest.$ac_ext >&5
10855 eval "ac_cv_header_$ac_safe=no"
10859 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10860 echo "$ac_t""yes" 1>&6
10861 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10862 cat >> confdefs.h <<EOF
10863 #define $ac_tr_hdr 1
10867 echo "$ac_t""no" 1>&6
10871 if test $ac_cv_header_heim_err_h = yes ; then
10877 if test $krb5_impl = mit; then
10878 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10879 echo "configure:10880: checking for main in -lk5crypto" >&5
10880 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10881 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10882 echo $ac_n "(cached) $ac_c" 1>&6
10884 ac_save_LIBS="$LIBS"
10885 LIBS="-lk5crypto $LIBS"
10886 cat > conftest.$ac_ext <<EOF
10887 #line 10888 "configure"
10888 #include "confdefs.h"
10894 if { (eval echo configure:10895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10896 eval "ac_cv_lib_$ac_lib_var=yes"
10898 echo "configure: failed program was:" >&5
10899 cat conftest.$ac_ext >&5
10901 eval "ac_cv_lib_$ac_lib_var=no"
10904 LIBS="$ac_save_LIBS"
10907 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10908 echo "$ac_t""yes" 1>&6
10909 krb5crypto=k5crypto
10911 echo "$ac_t""no" 1>&6
10916 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10917 echo "configure:10918: checking for main in -lkrb5" >&5
10918 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10919 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10920 echo $ac_n "(cached) $ac_c" 1>&6
10922 ac_save_LIBS="$LIBS"
10923 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10924 cat > conftest.$ac_ext <<EOF
10925 #line 10926 "configure"
10926 #include "confdefs.h"
10932 if { (eval echo configure:10933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10934 eval "ac_cv_lib_$ac_lib_var=yes"
10936 echo "configure: failed program was:" >&5
10937 cat conftest.$ac_ext >&5
10939 eval "ac_cv_lib_$ac_lib_var=no"
10942 LIBS="$ac_save_LIBS"
10945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10946 echo "$ac_t""yes" 1>&6
10948 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10950 echo "$ac_t""no" 1>&6
10955 elif test $krb5_impl = heimdal; then
10956 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10957 echo "configure:10958: checking for main in -ldes" >&5
10958 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10959 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10960 echo $ac_n "(cached) $ac_c" 1>&6
10962 ac_save_LIBS="$LIBS"
10964 cat > conftest.$ac_ext <<EOF
10965 #line 10966 "configure"
10966 #include "confdefs.h"
10972 if { (eval echo configure:10973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10974 eval "ac_cv_lib_$ac_lib_var=yes"
10976 echo "configure: failed program was:" >&5
10977 cat conftest.$ac_ext >&5
10979 eval "ac_cv_lib_$ac_lib_var=no"
10982 LIBS="$ac_save_LIBS"
10985 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10986 echo "$ac_t""yes" 1>&6
10989 echo "$ac_t""no" 1>&6
10994 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10995 echo "configure:10996: checking for main in -lkrb5" >&5
10996 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10997 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10998 echo $ac_n "(cached) $ac_c" 1>&6
11000 ac_save_LIBS="$LIBS"
11001 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
11002 cat > conftest.$ac_ext <<EOF
11003 #line 11004 "configure"
11004 #include "confdefs.h"
11010 if { (eval echo configure:11011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11012 eval "ac_cv_lib_$ac_lib_var=yes"
11014 echo "configure: failed program was:" >&5
11015 cat conftest.$ac_ext >&5
11017 eval "ac_cv_lib_$ac_lib_var=no"
11020 LIBS="$ac_save_LIBS"
11023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11024 echo "$ac_t""yes" 1>&6
11026 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
11028 echo "$ac_t""no" 1>&6
11033 cat >> confdefs.h <<\EOF
11034 #define HAVE_HEIMDAL_KERBEROS 1
11040 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
11043 if test $have_krb5 = yes ; then
11046 cat >> confdefs.h <<\EOF
11047 #define HAVE_KRB5 1
11051 if test $ol_with_kerberos = k5only ; then
11052 ol_with_kerberos=found
11055 elif test $ol_with_kerberos != auto ; then
11056 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
11062 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
11063 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
11065 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
11067 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11068 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11069 echo "configure:11070: checking for $ac_hdr" >&5
11070 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11071 echo $ac_n "(cached) $ac_c" 1>&6
11073 cat > conftest.$ac_ext <<EOF
11074 #line 11075 "configure"
11075 #include "confdefs.h"
11078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11079 { (eval echo configure:11080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11081 if test -z "$ac_err"; then
11083 eval "ac_cv_header_$ac_safe=yes"
11086 echo "configure: failed program was:" >&5
11087 cat conftest.$ac_ext >&5
11089 eval "ac_cv_header_$ac_safe=no"
11093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11094 echo "$ac_t""yes" 1>&6
11095 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11096 cat >> confdefs.h <<EOF
11097 #define $ac_tr_hdr 1
11101 echo "$ac_t""no" 1>&6
11106 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
11107 if test $krb5_impl = mit; then
11108 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
11109 echo "configure:11110: checking for main in -lkrb4" >&5
11110 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
11111 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11112 echo $ac_n "(cached) $ac_c" 1>&6
11114 ac_save_LIBS="$LIBS"
11115 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
11116 cat > conftest.$ac_ext <<EOF
11117 #line 11118 "configure"
11118 #include "confdefs.h"
11124 if { (eval echo configure:11125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11126 eval "ac_cv_lib_$ac_lib_var=yes"
11128 echo "configure: failed program was:" >&5
11129 cat conftest.$ac_ext >&5
11131 eval "ac_cv_lib_$ac_lib_var=no"
11134 LIBS="$ac_save_LIBS"
11137 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11138 echo "$ac_t""yes" 1>&6
11140 KRB4_LIBS="-lkrb4 -ldes425"
11142 echo "$ac_t""no" 1>&6
11147 elif test $krb5_impl = heimdal; then
11148 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
11149 echo "configure:11150: checking for main in -lkrb4" >&5
11150 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
11151 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11152 echo $ac_n "(cached) $ac_c" 1>&6
11154 ac_save_LIBS="$LIBS"
11155 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
11156 cat > conftest.$ac_ext <<EOF
11157 #line 11158 "configure"
11158 #include "confdefs.h"
11164 if { (eval echo configure:11165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11166 eval "ac_cv_lib_$ac_lib_var=yes"
11168 echo "configure: failed program was:" >&5
11169 cat conftest.$ac_ext >&5
11171 eval "ac_cv_lib_$ac_lib_var=no"
11174 LIBS="$ac_save_LIBS"
11177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11178 echo "$ac_t""yes" 1>&6
11182 echo "$ac_t""no" 1>&6
11189 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
11192 if test $have_k425 = yes ; then
11193 ol_with_kerberos=found
11196 cat >> confdefs.h <<\EOF
11197 #define HAVE_KRB425 1
11200 cat >> confdefs.h <<\EOF
11201 #define HAVE_KRB4 1
11205 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
11206 echo "configure:11207: checking for des_debug in Kerberos libraries" >&5
11207 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
11208 echo $ac_n "(cached) $ac_c" 1>&6
11212 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
11213 cat > conftest.$ac_ext <<EOF
11214 #line 11215 "configure"
11215 #include "confdefs.h"
11217 #include <kerberosIV/krb.h>
11218 #include <kerberosIV/des.h>
11219 extern int des_debug;
11227 if { (eval echo configure:11228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11229 ol_cv_var_des_debug=yes
11231 echo "configure: failed program was:" >&5
11232 cat conftest.$ac_ext >&5
11234 ol_cv_var_des_debug=no
11241 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
11243 if test $ol_cv_var_des_debug = yes ; then
11244 cat >> confdefs.h <<\EOF
11245 #define HAVE_DES_DEBUG 1
11255 if test $ol_link_krb5 = yes ; then
11256 ol_with_kerberos=found
11259 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
11260 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
11262 for ac_hdr in krb.h des.h krb-archaeology.h
11264 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11265 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11266 echo "configure:11267: checking for $ac_hdr" >&5
11267 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11268 echo $ac_n "(cached) $ac_c" 1>&6
11270 cat > conftest.$ac_ext <<EOF
11271 #line 11272 "configure"
11272 #include "confdefs.h"
11275 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11276 { (eval echo configure:11277: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11277 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11278 if test -z "$ac_err"; then
11280 eval "ac_cv_header_$ac_safe=yes"
11283 echo "configure: failed program was:" >&5
11284 cat conftest.$ac_ext >&5
11286 eval "ac_cv_header_$ac_safe=no"
11290 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11291 echo "$ac_t""yes" 1>&6
11292 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11293 cat >> confdefs.h <<EOF
11294 #define $ac_tr_hdr 1
11298 echo "$ac_t""no" 1>&6
11303 if test $ac_cv_header_krb_h = yes ; then
11304 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
11305 echo "configure:11306: checking for main in -lkrb" >&5
11306 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
11307 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11308 echo $ac_n "(cached) $ac_c" 1>&6
11310 ac_save_LIBS="$LIBS"
11311 LIBS="-lkrb -ldes $LIBS"
11312 cat > conftest.$ac_ext <<EOF
11313 #line 11314 "configure"
11314 #include "confdefs.h"
11320 if { (eval echo configure:11321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11322 eval "ac_cv_lib_$ac_lib_var=yes"
11324 echo "configure: failed program was:" >&5
11325 cat conftest.$ac_ext >&5
11327 eval "ac_cv_lib_$ac_lib_var=no"
11330 LIBS="$ac_save_LIBS"
11333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11334 echo "$ac_t""yes" 1>&6
11337 echo "$ac_t""no" 1>&6
11342 if test $have_k4 = yes ; then
11343 ol_with_kerberos=found
11346 cat >> confdefs.h <<\EOF
11347 #define HAVE_KRB4 1
11351 KRB4_LIBS="-lkrb -ldes"
11353 if test $ac_cv_header_krb_archaeology_h = yes ; then
11354 cat >> confdefs.h <<\EOF
11355 #define HAVE_KTH_KERBEROS 1
11363 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
11366 elif test $ol_enable_kbind = yes ; then
11367 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
11370 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
11371 cat >> confdefs.h <<\EOF
11372 #define HAVE_KERBEROS 1
11376 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
11377 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
11382 if test $ol_with_tls != no ; then
11383 for ac_hdr in openssl/ssl.h ssl.h
11385 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11386 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11387 echo "configure:11388: checking for $ac_hdr" >&5
11388 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11389 echo $ac_n "(cached) $ac_c" 1>&6
11391 cat > conftest.$ac_ext <<EOF
11392 #line 11393 "configure"
11393 #include "confdefs.h"
11396 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11397 { (eval echo configure:11398: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11398 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11399 if test -z "$ac_err"; then
11401 eval "ac_cv_header_$ac_safe=yes"
11404 echo "configure: failed program was:" >&5
11405 cat conftest.$ac_ext >&5
11407 eval "ac_cv_header_$ac_safe=no"
11411 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11412 echo "$ac_t""yes" 1>&6
11413 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11414 cat >> confdefs.h <<EOF
11415 #define $ac_tr_hdr 1
11419 echo "$ac_t""no" 1>&6
11424 if test $ac_cv_header_openssl_ssl_h = yes \
11425 -o $ac_cv_header_ssl_h = yes ; then
11426 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11427 echo "configure:11428: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11428 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11429 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11430 echo $ac_n "(cached) $ac_c" 1>&6
11432 ac_save_LIBS="$LIBS"
11433 LIBS="-lssl -lcrypto $LIBS"
11434 cat > conftest.$ac_ext <<EOF
11435 #line 11436 "configure"
11436 #include "confdefs.h"
11437 /* Override any gcc2 internal prototype to avoid an error. */
11438 /* We use char because int might match the return type of a gcc2
11439 builtin and then its argument prototype would still apply. */
11440 char SSLeay_add_ssl_algorithms();
11443 SSLeay_add_ssl_algorithms()
11446 if { (eval echo configure:11447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11448 eval "ac_cv_lib_$ac_lib_var=yes"
11450 echo "configure: failed program was:" >&5
11451 cat conftest.$ac_ext >&5
11453 eval "ac_cv_lib_$ac_lib_var=no"
11456 LIBS="$ac_save_LIBS"
11459 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11460 echo "$ac_t""yes" 1>&6
11464 echo "$ac_t""no" 1>&6
11469 if test $have_ssleay = no ; then
11470 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11471 echo "configure:11472: checking for SSL_library_init in -lssl" >&5
11472 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11473 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11474 echo $ac_n "(cached) $ac_c" 1>&6
11476 ac_save_LIBS="$LIBS"
11477 LIBS="-lssl -lcrypto $LIBS"
11478 cat > conftest.$ac_ext <<EOF
11479 #line 11480 "configure"
11480 #include "confdefs.h"
11481 /* Override any gcc2 internal prototype to avoid an error. */
11482 /* We use char because int might match the return type of a gcc2
11483 builtin and then its argument prototype would still apply. */
11484 char SSL_library_init();
11490 if { (eval echo configure:11491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11492 eval "ac_cv_lib_$ac_lib_var=yes"
11494 echo "configure: failed program was:" >&5
11495 cat conftest.$ac_ext >&5
11497 eval "ac_cv_lib_$ac_lib_var=no"
11500 LIBS="$ac_save_LIBS"
11503 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11504 echo "$ac_t""yes" 1>&6
11508 echo "$ac_t""no" 1>&6
11514 if test $have_ssleay = no ; then
11515 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11516 echo "configure:11517: checking for ssl3_accept in -lssl" >&5
11517 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11518 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11519 echo $ac_n "(cached) $ac_c" 1>&6
11521 ac_save_LIBS="$LIBS"
11522 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11523 cat > conftest.$ac_ext <<EOF
11524 #line 11525 "configure"
11525 #include "confdefs.h"
11526 /* Override any gcc2 internal prototype to avoid an error. */
11527 /* We use char because int might match the return type of a gcc2
11528 builtin and then its argument prototype would still apply. */
11529 char ssl3_accept();
11535 if { (eval echo configure:11536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11537 eval "ac_cv_lib_$ac_lib_var=yes"
11539 echo "configure: failed program was:" >&5
11540 cat conftest.$ac_ext >&5
11542 eval "ac_cv_lib_$ac_lib_var=no"
11545 LIBS="$ac_save_LIBS"
11548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11549 echo "$ac_t""yes" 1>&6
11553 echo "$ac_t""no" 1>&6
11559 if test $have_ssleay = yes ; then
11563 cat >> confdefs.h <<\EOF
11564 #define HAVE_SSLEAY 1
11568 if test $need_rsaref = yes; then
11569 cat >> confdefs.h <<\EOF
11570 #define HAVE_RSAREF 1
11574 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11576 TLS_LIBS="-lssl -lcrypto"
11579 echo $ac_n "checking OpenSSL library version (CRL checking capability)""... $ac_c" 1>&6
11580 echo "configure:11581: checking OpenSSL library version (CRL checking capability)" >&5
11581 if eval "test \"\${ol_cv_ssl_crl_compat+set}\" = set"; then
11582 echo $ac_n "(cached) $ac_c" 1>&6
11585 cat > conftest.$ac_ext <<EOF
11586 #line 11587 "configure"
11587 #include "confdefs.h"
11589 #ifdef HAVE_OPENSSL_SSL_H
11590 #include <openssl/ssl.h>
11595 /* Require 0.9.7d+ */
11596 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
11597 char *__ssl_compat = "0.9.7d";
11601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11602 egrep "__ssl_compat" >/dev/null 2>&1; then
11604 ol_cv_ssl_crl_compat=yes
11607 ol_cv_ssl_crl_compat=no
11613 echo "$ac_t""$ol_cv_ssl_crl_compat" 1>&6
11615 if test $ol_cv_ssl_crl_compat = no ; then
11618 cat >> confdefs.h <<\EOF
11619 #define HAVE_OPENSSL_CRL 1
11626 echo "configure: warning: TLS data protection not supported!" 1>&2
11630 if test $ol_link_tls = yes ; then
11631 cat >> confdefs.h <<\EOF
11637 elif test $ol_with_tls = auto ; then
11638 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11639 echo "configure: warning: TLS data protection not supported!" 1>&2
11641 elif test $ol_with_tls != no ; then
11642 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11645 if test $ol_enable_lmpasswd != no; then
11646 if test $ol_link_tls != yes ; then
11647 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11650 cat >> confdefs.h <<\EOF
11651 #define SLAPD_LMHASH 1
11658 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11659 -o $ol_with_threads = nt ; then
11662 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11663 echo "configure:11664: checking for _beginthread" >&5
11664 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11665 echo $ac_n "(cached) $ac_c" 1>&6
11667 cat > conftest.$ac_ext <<EOF
11668 #line 11669 "configure"
11669 #include "confdefs.h"
11670 /* System header to define __stub macros and hopefully few prototypes,
11671 which can conflict with char _beginthread(); below. */
11672 #include <assert.h>
11673 /* Override any gcc2 internal prototype to avoid an error. */
11674 /* We use char because int might match the return type of a gcc2
11675 builtin and then its argument prototype would still apply. */
11676 char _beginthread();
11681 /* The GNU C library defines this for functions which it implements
11682 to always fail with ENOSYS. Some functions are actually named
11683 something starting with __ and the normal name is an alias. */
11684 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11692 if { (eval echo configure:11693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11694 eval "ac_cv_func__beginthread=yes"
11696 echo "configure: failed program was:" >&5
11697 cat conftest.$ac_ext >&5
11699 eval "ac_cv_func__beginthread=no"
11704 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11705 echo "$ac_t""yes" 1>&6
11708 echo "$ac_t""no" 1>&6
11712 if test $ac_cv_func__beginthread = yes ; then
11713 cat >> confdefs.h <<\EOF
11714 #define HAVE_NT_THREADS 1
11717 ol_cv_nt_threads=yes
11721 if test "$ol_cv_nt_threads" = yes ; then
11723 ol_with_threads=found
11724 ol_with_yielding_select=yes
11726 cat >> confdefs.h <<\EOF
11727 #define HAVE_NT_SERVICE_MANAGER 1
11730 cat >> confdefs.h <<\EOF
11731 #define HAVE_NT_EVENT_LOG 1
11736 if test $ol_with_threads = nt ; then
11737 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11741 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11742 -o $ol_with_threads = posix ; then
11744 for ac_hdr in pthread.h
11746 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11747 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11748 echo "configure:11749: checking for $ac_hdr" >&5
11749 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11750 echo $ac_n "(cached) $ac_c" 1>&6
11752 cat > conftest.$ac_ext <<EOF
11753 #line 11754 "configure"
11754 #include "confdefs.h"
11757 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11758 { (eval echo configure:11759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11759 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11760 if test -z "$ac_err"; then
11762 eval "ac_cv_header_$ac_safe=yes"
11765 echo "configure: failed program was:" >&5
11766 cat conftest.$ac_ext >&5
11768 eval "ac_cv_header_$ac_safe=no"
11772 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11773 echo "$ac_t""yes" 1>&6
11774 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11775 cat >> confdefs.h <<EOF
11776 #define $ac_tr_hdr 1
11780 echo "$ac_t""no" 1>&6
11785 if test $ac_cv_header_pthread_h = yes ; then
11786 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11787 echo "configure:11788: checking POSIX thread version" >&5
11788 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11789 echo $ac_n "(cached) $ac_c" 1>&6
11792 cat > conftest.$ac_ext <<EOF
11793 #line 11794 "configure"
11794 #include "confdefs.h"
11796 # include <pthread.h>
11800 int i = PTHREAD_CREATE_JOINABLE;
11804 if { (eval echo configure:11805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11807 cat > conftest.$ac_ext <<EOF
11808 #line 11809 "configure"
11809 #include "confdefs.h"
11810 #include <pthread.h>
11812 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11813 egrep "pthread_detach" >/dev/null 2>&1; then
11815 ol_cv_pthread_version=10
11818 ol_cv_pthread_version=8
11823 echo "configure: failed program was:" >&5
11824 cat conftest.$ac_ext >&5
11827 cat > conftest.$ac_ext <<EOF
11828 #line 11829 "configure"
11829 #include "confdefs.h"
11831 # include <pthread.h>
11832 # ifdef PTHREAD_CREATE_UNDETACHED
11837 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11838 egrep "draft7" >/dev/null 2>&1; then
11840 ol_cv_pthread_version=7
11844 cat > conftest.$ac_ext <<EOF
11845 #line 11846 "configure"
11846 #include "confdefs.h"
11847 #include <pthread.h>
11849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11850 egrep "pthread_attr_init" >/dev/null 2>&1; then
11852 ol_cv_pthread_version=6
11856 cat > conftest.$ac_ext <<EOF
11857 #line 11858 "configure"
11858 #include "confdefs.h"
11860 # include <pthread.h>
11861 #ifdef PTHREAD_MUTEX_INITIALIZER
11866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11867 egrep "draft5" >/dev/null 2>&1; then
11869 ol_cv_pthread_version=5
11872 ol_cv_pthread_version=4
11887 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11890 if test $ol_cv_pthread_version != 0 ; then
11891 cat >> confdefs.h <<EOF
11892 #define HAVE_PTHREADS $ol_cv_pthread_version
11896 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11899 # consider threads found
11900 ol_with_threads=found
11903 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11904 echo "configure:11905: checking for LinuxThreads pthread.h" >&5
11905 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11906 echo $ac_n "(cached) $ac_c" 1>&6
11908 cat > conftest.$ac_ext <<EOF
11909 #line 11910 "configure"
11910 #include "confdefs.h"
11911 #include <pthread.h>
11913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11914 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11916 ol_cv_header_linux_threads=yes
11919 ol_cv_header_linux_threads=no
11926 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11927 if test $ol_cv_header_linux_threads = yes; then
11928 cat >> confdefs.h <<\EOF
11929 #define HAVE_LINUX_THREADS 1
11935 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11936 echo "configure:11937: checking for GNU Pth pthread.h" >&5
11937 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11938 echo $ac_n "(cached) $ac_c" 1>&6
11940 cat > conftest.$ac_ext <<EOF
11941 #line 11942 "configure"
11942 #include "confdefs.h"
11943 #include <pthread.h>
11944 #ifdef _POSIX_THREAD_IS_GNU_PTH
11949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11950 egrep "__gnu_pth__" >/dev/null 2>&1; then
11952 ol_cv_header_gnu_pth_pthread_h=yes
11955 ol_cv_header_gnu_pth_pthread_h=no
11962 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11965 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11966 for ac_hdr in sched.h
11968 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11969 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11970 echo "configure:11971: checking for $ac_hdr" >&5
11971 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11972 echo $ac_n "(cached) $ac_c" 1>&6
11974 cat > conftest.$ac_ext <<EOF
11975 #line 11976 "configure"
11976 #include "confdefs.h"
11979 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11980 { (eval echo configure:11981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11981 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11982 if test -z "$ac_err"; then
11984 eval "ac_cv_header_$ac_safe=yes"
11987 echo "configure: failed program was:" >&5
11988 cat conftest.$ac_ext >&5
11990 eval "ac_cv_header_$ac_safe=no"
11994 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11995 echo "$ac_t""yes" 1>&6
11996 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11997 cat >> confdefs.h <<EOF
11998 #define $ac_tr_hdr 1
12002 echo "$ac_t""no" 1>&6
12009 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
12010 echo "configure:12011: checking for pthread_create in default libraries" >&5
12011 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
12012 echo $ac_n "(cached) $ac_c" 1>&6
12015 if test "$cross_compiling" = yes; then
12016 cat > conftest.$ac_ext <<EOF
12017 #line 12018 "configure"
12018 #include "confdefs.h"
12019 /* pthread test headers */
12020 #include <pthread.h>
12021 #if HAVE_PTHREADS < 7
12025 #define NULL (void*)0
12028 static void *task(p)
12031 return (void *) (p == NULL);
12036 /* pthread test function */
12037 #ifndef PTHREAD_CREATE_DETACHED
12038 #define PTHREAD_CREATE_DETACHED 1
12042 int detach = PTHREAD_CREATE_DETACHED;
12044 #if HAVE_PTHREADS > 4
12045 /* Final pthreads */
12046 pthread_attr_t attr;
12048 status = pthread_attr_init(&attr);
12049 if( status ) return status;
12051 #if HAVE_PTHREADS < 7
12052 status = pthread_attr_setdetachstate(&attr, &detach);
12053 if( status < 0 ) status = errno;
12055 status = pthread_attr_setdetachstate(&attr, detach);
12057 if( status ) return status;
12058 status = pthread_create( &t, &attr, task, NULL );
12059 #if HAVE_PTHREADS < 7
12060 if( status < 0 ) status = errno;
12062 if( status ) return status;
12064 /* Draft 4 pthreads */
12065 status = pthread_create( &t, pthread_attr_default, task, NULL );
12066 if( status ) return errno;
12068 /* give thread a chance to complete */
12069 /* it should remain joinable and hence detachable */
12072 status = pthread_detach( &t );
12073 if( status ) return errno;
12076 #ifdef HAVE_LINUX_THREADS
12077 pthread_kill_other_threads_np();
12084 if { (eval echo configure:12085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12086 ol_cv_pthread_create=yes
12088 echo "configure: failed program was:" >&5
12089 cat conftest.$ac_ext >&5
12091 ol_cv_pthread_create=no
12095 cat > conftest.$ac_ext <<EOF
12096 #line 12097 "configure"
12097 #include "confdefs.h"
12098 /* pthread test headers */
12099 #include <pthread.h>
12100 #if HAVE_PTHREADS < 7
12104 #define NULL (void*)0
12107 static void *task(p)
12110 return (void *) (p == NULL);
12114 int main(argc, argv)
12119 /* pthread test function */
12120 #ifndef PTHREAD_CREATE_DETACHED
12121 #define PTHREAD_CREATE_DETACHED 1
12125 int detach = PTHREAD_CREATE_DETACHED;
12127 #if HAVE_PTHREADS > 4
12128 /* Final pthreads */
12129 pthread_attr_t attr;
12131 status = pthread_attr_init(&attr);
12132 if( status ) return status;
12134 #if HAVE_PTHREADS < 7
12135 status = pthread_attr_setdetachstate(&attr, &detach);
12136 if( status < 0 ) status = errno;
12138 status = pthread_attr_setdetachstate(&attr, detach);
12140 if( status ) return status;
12141 status = pthread_create( &t, &attr, task, NULL );
12142 #if HAVE_PTHREADS < 7
12143 if( status < 0 ) status = errno;
12145 if( status ) return status;
12147 /* Draft 4 pthreads */
12148 status = pthread_create( &t, pthread_attr_default, task, NULL );
12149 if( status ) return errno;
12151 /* give thread a chance to complete */
12152 /* it should remain joinable and hence detachable */
12155 status = pthread_detach( &t );
12156 if( status ) return errno;
12159 #ifdef HAVE_LINUX_THREADS
12160 pthread_kill_other_threads_np();
12168 if { (eval echo configure:12169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12170 ol_cv_pthread_create=yes
12172 echo "configure: failed program was:" >&5
12173 cat conftest.$ac_ext >&5
12175 ol_cv_pthread_create=no
12182 echo "$ac_t""$ol_cv_pthread_create" 1>&6
12184 if test $ol_cv_pthread_create != no ; then
12185 ol_link_threads=posix
12186 ol_link_pthreads=""
12189 # Pthread try link: -kthread (ol_cv_pthread_kthread)
12190 if test "$ol_link_threads" = no ; then
12192 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
12193 echo "configure:12194: checking for pthread link with -kthread" >&5
12194 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
12195 echo $ac_n "(cached) $ac_c" 1>&6
12200 LIBS="-kthread $LIBS"
12202 if test "$cross_compiling" = yes; then
12203 cat > conftest.$ac_ext <<EOF
12204 #line 12205 "configure"
12205 #include "confdefs.h"
12206 /* pthread test headers */
12207 #include <pthread.h>
12208 #if HAVE_PTHREADS < 7
12212 #define NULL (void*)0
12215 static void *task(p)
12218 return (void *) (p == NULL);
12223 /* pthread test function */
12224 #ifndef PTHREAD_CREATE_DETACHED
12225 #define PTHREAD_CREATE_DETACHED 1
12229 int detach = PTHREAD_CREATE_DETACHED;
12231 #if HAVE_PTHREADS > 4
12232 /* Final pthreads */
12233 pthread_attr_t attr;
12235 status = pthread_attr_init(&attr);
12236 if( status ) return status;
12238 #if HAVE_PTHREADS < 7
12239 status = pthread_attr_setdetachstate(&attr, &detach);
12240 if( status < 0 ) status = errno;
12242 status = pthread_attr_setdetachstate(&attr, detach);
12244 if( status ) return status;
12245 status = pthread_create( &t, &attr, task, NULL );
12246 #if HAVE_PTHREADS < 7
12247 if( status < 0 ) status = errno;
12249 if( status ) return status;
12251 /* Draft 4 pthreads */
12252 status = pthread_create( &t, pthread_attr_default, task, NULL );
12253 if( status ) return errno;
12255 /* give thread a chance to complete */
12256 /* it should remain joinable and hence detachable */
12259 status = pthread_detach( &t );
12260 if( status ) return errno;
12263 #ifdef HAVE_LINUX_THREADS
12264 pthread_kill_other_threads_np();
12271 if { (eval echo configure:12272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12273 ol_cv_pthread_kthread=yes
12275 echo "configure: failed program was:" >&5
12276 cat conftest.$ac_ext >&5
12278 ol_cv_pthread_kthread=no
12282 cat > conftest.$ac_ext <<EOF
12283 #line 12284 "configure"
12284 #include "confdefs.h"
12285 /* pthread test headers */
12286 #include <pthread.h>
12287 #if HAVE_PTHREADS < 7
12291 #define NULL (void*)0
12294 static void *task(p)
12297 return (void *) (p == NULL);
12301 int main(argc, argv)
12306 /* pthread test function */
12307 #ifndef PTHREAD_CREATE_DETACHED
12308 #define PTHREAD_CREATE_DETACHED 1
12312 int detach = PTHREAD_CREATE_DETACHED;
12314 #if HAVE_PTHREADS > 4
12315 /* Final pthreads */
12316 pthread_attr_t attr;
12318 status = pthread_attr_init(&attr);
12319 if( status ) return status;
12321 #if HAVE_PTHREADS < 7
12322 status = pthread_attr_setdetachstate(&attr, &detach);
12323 if( status < 0 ) status = errno;
12325 status = pthread_attr_setdetachstate(&attr, detach);
12327 if( status ) return status;
12328 status = pthread_create( &t, &attr, task, NULL );
12329 #if HAVE_PTHREADS < 7
12330 if( status < 0 ) status = errno;
12332 if( status ) return status;
12334 /* Draft 4 pthreads */
12335 status = pthread_create( &t, pthread_attr_default, task, NULL );
12336 if( status ) return errno;
12338 /* give thread a chance to complete */
12339 /* it should remain joinable and hence detachable */
12342 status = pthread_detach( &t );
12343 if( status ) return errno;
12346 #ifdef HAVE_LINUX_THREADS
12347 pthread_kill_other_threads_np();
12355 if { (eval echo configure:12356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12357 ol_cv_pthread_kthread=yes
12359 echo "configure: failed program was:" >&5
12360 cat conftest.$ac_ext >&5
12362 ol_cv_pthread_kthread=no
12373 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12375 if test $ol_cv_pthread_kthread = yes ; then
12376 ol_link_pthreads="-kthread"
12377 ol_link_threads=posix
12381 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12382 if test "$ol_link_threads" = no ; then
12384 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12385 echo "configure:12386: checking for pthread link with -pthread" >&5
12386 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12387 echo $ac_n "(cached) $ac_c" 1>&6
12392 LIBS="-pthread $LIBS"
12394 if test "$cross_compiling" = yes; then
12395 cat > conftest.$ac_ext <<EOF
12396 #line 12397 "configure"
12397 #include "confdefs.h"
12398 /* pthread test headers */
12399 #include <pthread.h>
12400 #if HAVE_PTHREADS < 7
12404 #define NULL (void*)0
12407 static void *task(p)
12410 return (void *) (p == NULL);
12415 /* pthread test function */
12416 #ifndef PTHREAD_CREATE_DETACHED
12417 #define PTHREAD_CREATE_DETACHED 1
12421 int detach = PTHREAD_CREATE_DETACHED;
12423 #if HAVE_PTHREADS > 4
12424 /* Final pthreads */
12425 pthread_attr_t attr;
12427 status = pthread_attr_init(&attr);
12428 if( status ) return status;
12430 #if HAVE_PTHREADS < 7
12431 status = pthread_attr_setdetachstate(&attr, &detach);
12432 if( status < 0 ) status = errno;
12434 status = pthread_attr_setdetachstate(&attr, detach);
12436 if( status ) return status;
12437 status = pthread_create( &t, &attr, task, NULL );
12438 #if HAVE_PTHREADS < 7
12439 if( status < 0 ) status = errno;
12441 if( status ) return status;
12443 /* Draft 4 pthreads */
12444 status = pthread_create( &t, pthread_attr_default, task, NULL );
12445 if( status ) return errno;
12447 /* give thread a chance to complete */
12448 /* it should remain joinable and hence detachable */
12451 status = pthread_detach( &t );
12452 if( status ) return errno;
12455 #ifdef HAVE_LINUX_THREADS
12456 pthread_kill_other_threads_np();
12463 if { (eval echo configure:12464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12465 ol_cv_pthread_pthread=yes
12467 echo "configure: failed program was:" >&5
12468 cat conftest.$ac_ext >&5
12470 ol_cv_pthread_pthread=no
12474 cat > conftest.$ac_ext <<EOF
12475 #line 12476 "configure"
12476 #include "confdefs.h"
12477 /* pthread test headers */
12478 #include <pthread.h>
12479 #if HAVE_PTHREADS < 7
12483 #define NULL (void*)0
12486 static void *task(p)
12489 return (void *) (p == NULL);
12493 int main(argc, argv)
12498 /* pthread test function */
12499 #ifndef PTHREAD_CREATE_DETACHED
12500 #define PTHREAD_CREATE_DETACHED 1
12504 int detach = PTHREAD_CREATE_DETACHED;
12506 #if HAVE_PTHREADS > 4
12507 /* Final pthreads */
12508 pthread_attr_t attr;
12510 status = pthread_attr_init(&attr);
12511 if( status ) return status;
12513 #if HAVE_PTHREADS < 7
12514 status = pthread_attr_setdetachstate(&attr, &detach);
12515 if( status < 0 ) status = errno;
12517 status = pthread_attr_setdetachstate(&attr, detach);
12519 if( status ) return status;
12520 status = pthread_create( &t, &attr, task, NULL );
12521 #if HAVE_PTHREADS < 7
12522 if( status < 0 ) status = errno;
12524 if( status ) return status;
12526 /* Draft 4 pthreads */
12527 status = pthread_create( &t, pthread_attr_default, task, NULL );
12528 if( status ) return errno;
12530 /* give thread a chance to complete */
12531 /* it should remain joinable and hence detachable */
12534 status = pthread_detach( &t );
12535 if( status ) return errno;
12538 #ifdef HAVE_LINUX_THREADS
12539 pthread_kill_other_threads_np();
12547 if { (eval echo configure:12548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12549 ol_cv_pthread_pthread=yes
12551 echo "configure: failed program was:" >&5
12552 cat conftest.$ac_ext >&5
12554 ol_cv_pthread_pthread=no
12565 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12567 if test $ol_cv_pthread_pthread = yes ; then
12568 ol_link_pthreads="-pthread"
12569 ol_link_threads=posix
12573 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12574 if test "$ol_link_threads" = no ; then
12576 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12577 echo "configure:12578: checking for pthread link with -pthreads" >&5
12578 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12579 echo $ac_n "(cached) $ac_c" 1>&6
12584 LIBS="-pthreads $LIBS"
12586 if test "$cross_compiling" = yes; then
12587 cat > conftest.$ac_ext <<EOF
12588 #line 12589 "configure"
12589 #include "confdefs.h"
12590 /* pthread test headers */
12591 #include <pthread.h>
12592 #if HAVE_PTHREADS < 7
12596 #define NULL (void*)0
12599 static void *task(p)
12602 return (void *) (p == NULL);
12607 /* pthread test function */
12608 #ifndef PTHREAD_CREATE_DETACHED
12609 #define PTHREAD_CREATE_DETACHED 1
12613 int detach = PTHREAD_CREATE_DETACHED;
12615 #if HAVE_PTHREADS > 4
12616 /* Final pthreads */
12617 pthread_attr_t attr;
12619 status = pthread_attr_init(&attr);
12620 if( status ) return status;
12622 #if HAVE_PTHREADS < 7
12623 status = pthread_attr_setdetachstate(&attr, &detach);
12624 if( status < 0 ) status = errno;
12626 status = pthread_attr_setdetachstate(&attr, detach);
12628 if( status ) return status;
12629 status = pthread_create( &t, &attr, task, NULL );
12630 #if HAVE_PTHREADS < 7
12631 if( status < 0 ) status = errno;
12633 if( status ) return status;
12635 /* Draft 4 pthreads */
12636 status = pthread_create( &t, pthread_attr_default, task, NULL );
12637 if( status ) return errno;
12639 /* give thread a chance to complete */
12640 /* it should remain joinable and hence detachable */
12643 status = pthread_detach( &t );
12644 if( status ) return errno;
12647 #ifdef HAVE_LINUX_THREADS
12648 pthread_kill_other_threads_np();
12655 if { (eval echo configure:12656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12657 ol_cv_pthread_pthreads=yes
12659 echo "configure: failed program was:" >&5
12660 cat conftest.$ac_ext >&5
12662 ol_cv_pthread_pthreads=no
12666 cat > conftest.$ac_ext <<EOF
12667 #line 12668 "configure"
12668 #include "confdefs.h"
12669 /* pthread test headers */
12670 #include <pthread.h>
12671 #if HAVE_PTHREADS < 7
12675 #define NULL (void*)0
12678 static void *task(p)
12681 return (void *) (p == NULL);
12685 int main(argc, argv)
12690 /* pthread test function */
12691 #ifndef PTHREAD_CREATE_DETACHED
12692 #define PTHREAD_CREATE_DETACHED 1
12696 int detach = PTHREAD_CREATE_DETACHED;
12698 #if HAVE_PTHREADS > 4
12699 /* Final pthreads */
12700 pthread_attr_t attr;
12702 status = pthread_attr_init(&attr);
12703 if( status ) return status;
12705 #if HAVE_PTHREADS < 7
12706 status = pthread_attr_setdetachstate(&attr, &detach);
12707 if( status < 0 ) status = errno;
12709 status = pthread_attr_setdetachstate(&attr, detach);
12711 if( status ) return status;
12712 status = pthread_create( &t, &attr, task, NULL );
12713 #if HAVE_PTHREADS < 7
12714 if( status < 0 ) status = errno;
12716 if( status ) return status;
12718 /* Draft 4 pthreads */
12719 status = pthread_create( &t, pthread_attr_default, task, NULL );
12720 if( status ) return errno;
12722 /* give thread a chance to complete */
12723 /* it should remain joinable and hence detachable */
12726 status = pthread_detach( &t );
12727 if( status ) return errno;
12730 #ifdef HAVE_LINUX_THREADS
12731 pthread_kill_other_threads_np();
12739 if { (eval echo configure:12740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12741 ol_cv_pthread_pthreads=yes
12743 echo "configure: failed program was:" >&5
12744 cat conftest.$ac_ext >&5
12746 ol_cv_pthread_pthreads=no
12757 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12759 if test $ol_cv_pthread_pthreads = yes ; then
12760 ol_link_pthreads="-pthreads"
12761 ol_link_threads=posix
12765 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12766 if test "$ol_link_threads" = no ; then
12768 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12769 echo "configure:12770: checking for pthread link with -mthreads" >&5
12770 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12771 echo $ac_n "(cached) $ac_c" 1>&6
12776 LIBS="-mthreads $LIBS"
12778 if test "$cross_compiling" = yes; then
12779 cat > conftest.$ac_ext <<EOF
12780 #line 12781 "configure"
12781 #include "confdefs.h"
12782 /* pthread test headers */
12783 #include <pthread.h>
12784 #if HAVE_PTHREADS < 7
12788 #define NULL (void*)0
12791 static void *task(p)
12794 return (void *) (p == NULL);
12799 /* pthread test function */
12800 #ifndef PTHREAD_CREATE_DETACHED
12801 #define PTHREAD_CREATE_DETACHED 1
12805 int detach = PTHREAD_CREATE_DETACHED;
12807 #if HAVE_PTHREADS > 4
12808 /* Final pthreads */
12809 pthread_attr_t attr;
12811 status = pthread_attr_init(&attr);
12812 if( status ) return status;
12814 #if HAVE_PTHREADS < 7
12815 status = pthread_attr_setdetachstate(&attr, &detach);
12816 if( status < 0 ) status = errno;
12818 status = pthread_attr_setdetachstate(&attr, detach);
12820 if( status ) return status;
12821 status = pthread_create( &t, &attr, task, NULL );
12822 #if HAVE_PTHREADS < 7
12823 if( status < 0 ) status = errno;
12825 if( status ) return status;
12827 /* Draft 4 pthreads */
12828 status = pthread_create( &t, pthread_attr_default, task, NULL );
12829 if( status ) return errno;
12831 /* give thread a chance to complete */
12832 /* it should remain joinable and hence detachable */
12835 status = pthread_detach( &t );
12836 if( status ) return errno;
12839 #ifdef HAVE_LINUX_THREADS
12840 pthread_kill_other_threads_np();
12847 if { (eval echo configure:12848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12849 ol_cv_pthread_mthreads=yes
12851 echo "configure: failed program was:" >&5
12852 cat conftest.$ac_ext >&5
12854 ol_cv_pthread_mthreads=no
12858 cat > conftest.$ac_ext <<EOF
12859 #line 12860 "configure"
12860 #include "confdefs.h"
12861 /* pthread test headers */
12862 #include <pthread.h>
12863 #if HAVE_PTHREADS < 7
12867 #define NULL (void*)0
12870 static void *task(p)
12873 return (void *) (p == NULL);
12877 int main(argc, argv)
12882 /* pthread test function */
12883 #ifndef PTHREAD_CREATE_DETACHED
12884 #define PTHREAD_CREATE_DETACHED 1
12888 int detach = PTHREAD_CREATE_DETACHED;
12890 #if HAVE_PTHREADS > 4
12891 /* Final pthreads */
12892 pthread_attr_t attr;
12894 status = pthread_attr_init(&attr);
12895 if( status ) return status;
12897 #if HAVE_PTHREADS < 7
12898 status = pthread_attr_setdetachstate(&attr, &detach);
12899 if( status < 0 ) status = errno;
12901 status = pthread_attr_setdetachstate(&attr, detach);
12903 if( status ) return status;
12904 status = pthread_create( &t, &attr, task, NULL );
12905 #if HAVE_PTHREADS < 7
12906 if( status < 0 ) status = errno;
12908 if( status ) return status;
12910 /* Draft 4 pthreads */
12911 status = pthread_create( &t, pthread_attr_default, task, NULL );
12912 if( status ) return errno;
12914 /* give thread a chance to complete */
12915 /* it should remain joinable and hence detachable */
12918 status = pthread_detach( &t );
12919 if( status ) return errno;
12922 #ifdef HAVE_LINUX_THREADS
12923 pthread_kill_other_threads_np();
12931 if { (eval echo configure:12932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12933 ol_cv_pthread_mthreads=yes
12935 echo "configure: failed program was:" >&5
12936 cat conftest.$ac_ext >&5
12938 ol_cv_pthread_mthreads=no
12949 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12951 if test $ol_cv_pthread_mthreads = yes ; then
12952 ol_link_pthreads="-mthreads"
12953 ol_link_threads=posix
12957 # Pthread try link: -thread (ol_cv_pthread_thread)
12958 if test "$ol_link_threads" = no ; then
12960 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12961 echo "configure:12962: checking for pthread link with -thread" >&5
12962 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12963 echo $ac_n "(cached) $ac_c" 1>&6
12968 LIBS="-thread $LIBS"
12970 if test "$cross_compiling" = yes; then
12971 cat > conftest.$ac_ext <<EOF
12972 #line 12973 "configure"
12973 #include "confdefs.h"
12974 /* pthread test headers */
12975 #include <pthread.h>
12976 #if HAVE_PTHREADS < 7
12980 #define NULL (void*)0
12983 static void *task(p)
12986 return (void *) (p == NULL);
12991 /* pthread test function */
12992 #ifndef PTHREAD_CREATE_DETACHED
12993 #define PTHREAD_CREATE_DETACHED 1
12997 int detach = PTHREAD_CREATE_DETACHED;
12999 #if HAVE_PTHREADS > 4
13000 /* Final pthreads */
13001 pthread_attr_t attr;
13003 status = pthread_attr_init(&attr);
13004 if( status ) return status;
13006 #if HAVE_PTHREADS < 7
13007 status = pthread_attr_setdetachstate(&attr, &detach);
13008 if( status < 0 ) status = errno;
13010 status = pthread_attr_setdetachstate(&attr, detach);
13012 if( status ) return status;
13013 status = pthread_create( &t, &attr, task, NULL );
13014 #if HAVE_PTHREADS < 7
13015 if( status < 0 ) status = errno;
13017 if( status ) return status;
13019 /* Draft 4 pthreads */
13020 status = pthread_create( &t, pthread_attr_default, task, NULL );
13021 if( status ) return errno;
13023 /* give thread a chance to complete */
13024 /* it should remain joinable and hence detachable */
13027 status = pthread_detach( &t );
13028 if( status ) return errno;
13031 #ifdef HAVE_LINUX_THREADS
13032 pthread_kill_other_threads_np();
13039 if { (eval echo configure:13040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13041 ol_cv_pthread_thread=yes
13043 echo "configure: failed program was:" >&5
13044 cat conftest.$ac_ext >&5
13046 ol_cv_pthread_thread=no
13050 cat > conftest.$ac_ext <<EOF
13051 #line 13052 "configure"
13052 #include "confdefs.h"
13053 /* pthread test headers */
13054 #include <pthread.h>
13055 #if HAVE_PTHREADS < 7
13059 #define NULL (void*)0
13062 static void *task(p)
13065 return (void *) (p == NULL);
13069 int main(argc, argv)
13074 /* pthread test function */
13075 #ifndef PTHREAD_CREATE_DETACHED
13076 #define PTHREAD_CREATE_DETACHED 1
13080 int detach = PTHREAD_CREATE_DETACHED;
13082 #if HAVE_PTHREADS > 4
13083 /* Final pthreads */
13084 pthread_attr_t attr;
13086 status = pthread_attr_init(&attr);
13087 if( status ) return status;
13089 #if HAVE_PTHREADS < 7
13090 status = pthread_attr_setdetachstate(&attr, &detach);
13091 if( status < 0 ) status = errno;
13093 status = pthread_attr_setdetachstate(&attr, detach);
13095 if( status ) return status;
13096 status = pthread_create( &t, &attr, task, NULL );
13097 #if HAVE_PTHREADS < 7
13098 if( status < 0 ) status = errno;
13100 if( status ) return status;
13102 /* Draft 4 pthreads */
13103 status = pthread_create( &t, pthread_attr_default, task, NULL );
13104 if( status ) return errno;
13106 /* give thread a chance to complete */
13107 /* it should remain joinable and hence detachable */
13110 status = pthread_detach( &t );
13111 if( status ) return errno;
13114 #ifdef HAVE_LINUX_THREADS
13115 pthread_kill_other_threads_np();
13123 if { (eval echo configure:13124: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13125 ol_cv_pthread_thread=yes
13127 echo "configure: failed program was:" >&5
13128 cat conftest.$ac_ext >&5
13130 ol_cv_pthread_thread=no
13141 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
13143 if test $ol_cv_pthread_thread = yes ; then
13144 ol_link_pthreads="-thread"
13145 ol_link_threads=posix
13150 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
13151 if test "$ol_link_threads" = no ; then
13152 # try -lpthread -lmach -lexc -lc_r
13153 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
13154 echo "configure:13155: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
13155 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
13156 echo $ac_n "(cached) $ac_c" 1>&6
13161 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
13163 if test "$cross_compiling" = yes; then
13164 cat > conftest.$ac_ext <<EOF
13165 #line 13166 "configure"
13166 #include "confdefs.h"
13167 /* pthread test headers */
13168 #include <pthread.h>
13169 #if HAVE_PTHREADS < 7
13173 #define NULL (void*)0
13176 static void *task(p)
13179 return (void *) (p == NULL);
13184 /* pthread test function */
13185 #ifndef PTHREAD_CREATE_DETACHED
13186 #define PTHREAD_CREATE_DETACHED 1
13190 int detach = PTHREAD_CREATE_DETACHED;
13192 #if HAVE_PTHREADS > 4
13193 /* Final pthreads */
13194 pthread_attr_t attr;
13196 status = pthread_attr_init(&attr);
13197 if( status ) return status;
13199 #if HAVE_PTHREADS < 7
13200 status = pthread_attr_setdetachstate(&attr, &detach);
13201 if( status < 0 ) status = errno;
13203 status = pthread_attr_setdetachstate(&attr, detach);
13205 if( status ) return status;
13206 status = pthread_create( &t, &attr, task, NULL );
13207 #if HAVE_PTHREADS < 7
13208 if( status < 0 ) status = errno;
13210 if( status ) return status;
13212 /* Draft 4 pthreads */
13213 status = pthread_create( &t, pthread_attr_default, task, NULL );
13214 if( status ) return errno;
13216 /* give thread a chance to complete */
13217 /* it should remain joinable and hence detachable */
13220 status = pthread_detach( &t );
13221 if( status ) return errno;
13224 #ifdef HAVE_LINUX_THREADS
13225 pthread_kill_other_threads_np();
13232 if { (eval echo configure:13233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13234 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13236 echo "configure: failed program was:" >&5
13237 cat conftest.$ac_ext >&5
13239 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13243 cat > conftest.$ac_ext <<EOF
13244 #line 13245 "configure"
13245 #include "confdefs.h"
13246 /* pthread test headers */
13247 #include <pthread.h>
13248 #if HAVE_PTHREADS < 7
13252 #define NULL (void*)0
13255 static void *task(p)
13258 return (void *) (p == NULL);
13262 int main(argc, argv)
13267 /* pthread test function */
13268 #ifndef PTHREAD_CREATE_DETACHED
13269 #define PTHREAD_CREATE_DETACHED 1
13273 int detach = PTHREAD_CREATE_DETACHED;
13275 #if HAVE_PTHREADS > 4
13276 /* Final pthreads */
13277 pthread_attr_t attr;
13279 status = pthread_attr_init(&attr);
13280 if( status ) return status;
13282 #if HAVE_PTHREADS < 7
13283 status = pthread_attr_setdetachstate(&attr, &detach);
13284 if( status < 0 ) status = errno;
13286 status = pthread_attr_setdetachstate(&attr, detach);
13288 if( status ) return status;
13289 status = pthread_create( &t, &attr, task, NULL );
13290 #if HAVE_PTHREADS < 7
13291 if( status < 0 ) status = errno;
13293 if( status ) return status;
13295 /* Draft 4 pthreads */
13296 status = pthread_create( &t, pthread_attr_default, task, NULL );
13297 if( status ) return errno;
13299 /* give thread a chance to complete */
13300 /* it should remain joinable and hence detachable */
13303 status = pthread_detach( &t );
13304 if( status ) return errno;
13307 #ifdef HAVE_LINUX_THREADS
13308 pthread_kill_other_threads_np();
13316 if { (eval echo configure:13317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13318 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13320 echo "configure: failed program was:" >&5
13321 cat conftest.$ac_ext >&5
13323 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13334 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13336 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13337 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13338 ol_link_threads=posix
13342 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13343 if test "$ol_link_threads" = no ; then
13344 # try -lpthread -lmach -lexc
13345 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13346 echo "configure:13347: checking for pthread link with -lpthread -lmach -lexc" >&5
13347 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13348 echo $ac_n "(cached) $ac_c" 1>&6
13353 LIBS="-lpthread -lmach -lexc $LIBS"
13355 if test "$cross_compiling" = yes; then
13356 cat > conftest.$ac_ext <<EOF
13357 #line 13358 "configure"
13358 #include "confdefs.h"
13359 /* pthread test headers */
13360 #include <pthread.h>
13361 #if HAVE_PTHREADS < 7
13365 #define NULL (void*)0
13368 static void *task(p)
13371 return (void *) (p == NULL);
13376 /* pthread test function */
13377 #ifndef PTHREAD_CREATE_DETACHED
13378 #define PTHREAD_CREATE_DETACHED 1
13382 int detach = PTHREAD_CREATE_DETACHED;
13384 #if HAVE_PTHREADS > 4
13385 /* Final pthreads */
13386 pthread_attr_t attr;
13388 status = pthread_attr_init(&attr);
13389 if( status ) return status;
13391 #if HAVE_PTHREADS < 7
13392 status = pthread_attr_setdetachstate(&attr, &detach);
13393 if( status < 0 ) status = errno;
13395 status = pthread_attr_setdetachstate(&attr, detach);
13397 if( status ) return status;
13398 status = pthread_create( &t, &attr, task, NULL );
13399 #if HAVE_PTHREADS < 7
13400 if( status < 0 ) status = errno;
13402 if( status ) return status;
13404 /* Draft 4 pthreads */
13405 status = pthread_create( &t, pthread_attr_default, task, NULL );
13406 if( status ) return errno;
13408 /* give thread a chance to complete */
13409 /* it should remain joinable and hence detachable */
13412 status = pthread_detach( &t );
13413 if( status ) return errno;
13416 #ifdef HAVE_LINUX_THREADS
13417 pthread_kill_other_threads_np();
13424 if { (eval echo configure:13425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13426 ol_cv_pthread_lpthread_lmach_lexc=yes
13428 echo "configure: failed program was:" >&5
13429 cat conftest.$ac_ext >&5
13431 ol_cv_pthread_lpthread_lmach_lexc=no
13435 cat > conftest.$ac_ext <<EOF
13436 #line 13437 "configure"
13437 #include "confdefs.h"
13438 /* pthread test headers */
13439 #include <pthread.h>
13440 #if HAVE_PTHREADS < 7
13444 #define NULL (void*)0
13447 static void *task(p)
13450 return (void *) (p == NULL);
13454 int main(argc, argv)
13459 /* pthread test function */
13460 #ifndef PTHREAD_CREATE_DETACHED
13461 #define PTHREAD_CREATE_DETACHED 1
13465 int detach = PTHREAD_CREATE_DETACHED;
13467 #if HAVE_PTHREADS > 4
13468 /* Final pthreads */
13469 pthread_attr_t attr;
13471 status = pthread_attr_init(&attr);
13472 if( status ) return status;
13474 #if HAVE_PTHREADS < 7
13475 status = pthread_attr_setdetachstate(&attr, &detach);
13476 if( status < 0 ) status = errno;
13478 status = pthread_attr_setdetachstate(&attr, detach);
13480 if( status ) return status;
13481 status = pthread_create( &t, &attr, task, NULL );
13482 #if HAVE_PTHREADS < 7
13483 if( status < 0 ) status = errno;
13485 if( status ) return status;
13487 /* Draft 4 pthreads */
13488 status = pthread_create( &t, pthread_attr_default, task, NULL );
13489 if( status ) return errno;
13491 /* give thread a chance to complete */
13492 /* it should remain joinable and hence detachable */
13495 status = pthread_detach( &t );
13496 if( status ) return errno;
13499 #ifdef HAVE_LINUX_THREADS
13500 pthread_kill_other_threads_np();
13508 if { (eval echo configure:13509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13510 ol_cv_pthread_lpthread_lmach_lexc=yes
13512 echo "configure: failed program was:" >&5
13513 cat conftest.$ac_ext >&5
13515 ol_cv_pthread_lpthread_lmach_lexc=no
13526 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13528 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13529 ol_link_pthreads="-lpthread -lmach -lexc"
13530 ol_link_threads=posix
13535 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13536 if test "$ol_link_threads" = no ; then
13537 # try -lpthread -Wl,-woff,85
13538 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13539 echo "configure:13540: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13540 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13541 echo $ac_n "(cached) $ac_c" 1>&6
13546 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13548 if test "$cross_compiling" = yes; then
13549 cat > conftest.$ac_ext <<EOF
13550 #line 13551 "configure"
13551 #include "confdefs.h"
13552 /* pthread test headers */
13553 #include <pthread.h>
13554 #if HAVE_PTHREADS < 7
13558 #define NULL (void*)0
13561 static void *task(p)
13564 return (void *) (p == NULL);
13569 /* pthread test function */
13570 #ifndef PTHREAD_CREATE_DETACHED
13571 #define PTHREAD_CREATE_DETACHED 1
13575 int detach = PTHREAD_CREATE_DETACHED;
13577 #if HAVE_PTHREADS > 4
13578 /* Final pthreads */
13579 pthread_attr_t attr;
13581 status = pthread_attr_init(&attr);
13582 if( status ) return status;
13584 #if HAVE_PTHREADS < 7
13585 status = pthread_attr_setdetachstate(&attr, &detach);
13586 if( status < 0 ) status = errno;
13588 status = pthread_attr_setdetachstate(&attr, detach);
13590 if( status ) return status;
13591 status = pthread_create( &t, &attr, task, NULL );
13592 #if HAVE_PTHREADS < 7
13593 if( status < 0 ) status = errno;
13595 if( status ) return status;
13597 /* Draft 4 pthreads */
13598 status = pthread_create( &t, pthread_attr_default, task, NULL );
13599 if( status ) return errno;
13601 /* give thread a chance to complete */
13602 /* it should remain joinable and hence detachable */
13605 status = pthread_detach( &t );
13606 if( status ) return errno;
13609 #ifdef HAVE_LINUX_THREADS
13610 pthread_kill_other_threads_np();
13617 if { (eval echo configure:13618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13619 ol_cv_pthread_lib_lpthread_woff=yes
13621 echo "configure: failed program was:" >&5
13622 cat conftest.$ac_ext >&5
13624 ol_cv_pthread_lib_lpthread_woff=no
13628 cat > conftest.$ac_ext <<EOF
13629 #line 13630 "configure"
13630 #include "confdefs.h"
13631 /* pthread test headers */
13632 #include <pthread.h>
13633 #if HAVE_PTHREADS < 7
13637 #define NULL (void*)0
13640 static void *task(p)
13643 return (void *) (p == NULL);
13647 int main(argc, argv)
13652 /* pthread test function */
13653 #ifndef PTHREAD_CREATE_DETACHED
13654 #define PTHREAD_CREATE_DETACHED 1
13658 int detach = PTHREAD_CREATE_DETACHED;
13660 #if HAVE_PTHREADS > 4
13661 /* Final pthreads */
13662 pthread_attr_t attr;
13664 status = pthread_attr_init(&attr);
13665 if( status ) return status;
13667 #if HAVE_PTHREADS < 7
13668 status = pthread_attr_setdetachstate(&attr, &detach);
13669 if( status < 0 ) status = errno;
13671 status = pthread_attr_setdetachstate(&attr, detach);
13673 if( status ) return status;
13674 status = pthread_create( &t, &attr, task, NULL );
13675 #if HAVE_PTHREADS < 7
13676 if( status < 0 ) status = errno;
13678 if( status ) return status;
13680 /* Draft 4 pthreads */
13681 status = pthread_create( &t, pthread_attr_default, task, NULL );
13682 if( status ) return errno;
13684 /* give thread a chance to complete */
13685 /* it should remain joinable and hence detachable */
13688 status = pthread_detach( &t );
13689 if( status ) return errno;
13692 #ifdef HAVE_LINUX_THREADS
13693 pthread_kill_other_threads_np();
13701 if { (eval echo configure:13702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13703 ol_cv_pthread_lib_lpthread_woff=yes
13705 echo "configure: failed program was:" >&5
13706 cat conftest.$ac_ext >&5
13708 ol_cv_pthread_lib_lpthread_woff=no
13719 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13721 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13722 ol_link_pthreads="-lpthread -Wl,-woff,85"
13723 ol_link_threads=posix
13728 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13729 if test "$ol_link_threads" = no ; then
13731 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13732 echo "configure:13733: checking for pthread link with -lpthread" >&5
13733 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13734 echo $ac_n "(cached) $ac_c" 1>&6
13739 LIBS="-lpthread $LIBS"
13741 if test "$cross_compiling" = yes; then
13742 cat > conftest.$ac_ext <<EOF
13743 #line 13744 "configure"
13744 #include "confdefs.h"
13745 /* pthread test headers */
13746 #include <pthread.h>
13747 #if HAVE_PTHREADS < 7
13751 #define NULL (void*)0
13754 static void *task(p)
13757 return (void *) (p == NULL);
13762 /* pthread test function */
13763 #ifndef PTHREAD_CREATE_DETACHED
13764 #define PTHREAD_CREATE_DETACHED 1
13768 int detach = PTHREAD_CREATE_DETACHED;
13770 #if HAVE_PTHREADS > 4
13771 /* Final pthreads */
13772 pthread_attr_t attr;
13774 status = pthread_attr_init(&attr);
13775 if( status ) return status;
13777 #if HAVE_PTHREADS < 7
13778 status = pthread_attr_setdetachstate(&attr, &detach);
13779 if( status < 0 ) status = errno;
13781 status = pthread_attr_setdetachstate(&attr, detach);
13783 if( status ) return status;
13784 status = pthread_create( &t, &attr, task, NULL );
13785 #if HAVE_PTHREADS < 7
13786 if( status < 0 ) status = errno;
13788 if( status ) return status;
13790 /* Draft 4 pthreads */
13791 status = pthread_create( &t, pthread_attr_default, task, NULL );
13792 if( status ) return errno;
13794 /* give thread a chance to complete */
13795 /* it should remain joinable and hence detachable */
13798 status = pthread_detach( &t );
13799 if( status ) return errno;
13802 #ifdef HAVE_LINUX_THREADS
13803 pthread_kill_other_threads_np();
13810 if { (eval echo configure:13811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13812 ol_cv_pthread_lpthread=yes
13814 echo "configure: failed program was:" >&5
13815 cat conftest.$ac_ext >&5
13817 ol_cv_pthread_lpthread=no
13821 cat > conftest.$ac_ext <<EOF
13822 #line 13823 "configure"
13823 #include "confdefs.h"
13824 /* pthread test headers */
13825 #include <pthread.h>
13826 #if HAVE_PTHREADS < 7
13830 #define NULL (void*)0
13833 static void *task(p)
13836 return (void *) (p == NULL);
13840 int main(argc, argv)
13845 /* pthread test function */
13846 #ifndef PTHREAD_CREATE_DETACHED
13847 #define PTHREAD_CREATE_DETACHED 1
13851 int detach = PTHREAD_CREATE_DETACHED;
13853 #if HAVE_PTHREADS > 4
13854 /* Final pthreads */
13855 pthread_attr_t attr;
13857 status = pthread_attr_init(&attr);
13858 if( status ) return status;
13860 #if HAVE_PTHREADS < 7
13861 status = pthread_attr_setdetachstate(&attr, &detach);
13862 if( status < 0 ) status = errno;
13864 status = pthread_attr_setdetachstate(&attr, detach);
13866 if( status ) return status;
13867 status = pthread_create( &t, &attr, task, NULL );
13868 #if HAVE_PTHREADS < 7
13869 if( status < 0 ) status = errno;
13871 if( status ) return status;
13873 /* Draft 4 pthreads */
13874 status = pthread_create( &t, pthread_attr_default, task, NULL );
13875 if( status ) return errno;
13877 /* give thread a chance to complete */
13878 /* it should remain joinable and hence detachable */
13881 status = pthread_detach( &t );
13882 if( status ) return errno;
13885 #ifdef HAVE_LINUX_THREADS
13886 pthread_kill_other_threads_np();
13894 if { (eval echo configure:13895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13896 ol_cv_pthread_lpthread=yes
13898 echo "configure: failed program was:" >&5
13899 cat conftest.$ac_ext >&5
13901 ol_cv_pthread_lpthread=no
13912 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13914 if test $ol_cv_pthread_lpthread = yes ; then
13915 ol_link_pthreads="-lpthread"
13916 ol_link_threads=posix
13920 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13921 if test "$ol_link_threads" = no ; then
13923 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13924 echo "configure:13925: checking for pthread link with -lc_r" >&5
13925 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13926 echo $ac_n "(cached) $ac_c" 1>&6
13933 if test "$cross_compiling" = yes; then
13934 cat > conftest.$ac_ext <<EOF
13935 #line 13936 "configure"
13936 #include "confdefs.h"
13937 /* pthread test headers */
13938 #include <pthread.h>
13939 #if HAVE_PTHREADS < 7
13943 #define NULL (void*)0
13946 static void *task(p)
13949 return (void *) (p == NULL);
13954 /* pthread test function */
13955 #ifndef PTHREAD_CREATE_DETACHED
13956 #define PTHREAD_CREATE_DETACHED 1
13960 int detach = PTHREAD_CREATE_DETACHED;
13962 #if HAVE_PTHREADS > 4
13963 /* Final pthreads */
13964 pthread_attr_t attr;
13966 status = pthread_attr_init(&attr);
13967 if( status ) return status;
13969 #if HAVE_PTHREADS < 7
13970 status = pthread_attr_setdetachstate(&attr, &detach);
13971 if( status < 0 ) status = errno;
13973 status = pthread_attr_setdetachstate(&attr, detach);
13975 if( status ) return status;
13976 status = pthread_create( &t, &attr, task, NULL );
13977 #if HAVE_PTHREADS < 7
13978 if( status < 0 ) status = errno;
13980 if( status ) return status;
13982 /* Draft 4 pthreads */
13983 status = pthread_create( &t, pthread_attr_default, task, NULL );
13984 if( status ) return errno;
13986 /* give thread a chance to complete */
13987 /* it should remain joinable and hence detachable */
13990 status = pthread_detach( &t );
13991 if( status ) return errno;
13994 #ifdef HAVE_LINUX_THREADS
13995 pthread_kill_other_threads_np();
14002 if { (eval echo configure:14003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14004 ol_cv_pthread_lc_r=yes
14006 echo "configure: failed program was:" >&5
14007 cat conftest.$ac_ext >&5
14009 ol_cv_pthread_lc_r=no
14013 cat > conftest.$ac_ext <<EOF
14014 #line 14015 "configure"
14015 #include "confdefs.h"
14016 /* pthread test headers */
14017 #include <pthread.h>
14018 #if HAVE_PTHREADS < 7
14022 #define NULL (void*)0
14025 static void *task(p)
14028 return (void *) (p == NULL);
14032 int main(argc, argv)
14037 /* pthread test function */
14038 #ifndef PTHREAD_CREATE_DETACHED
14039 #define PTHREAD_CREATE_DETACHED 1
14043 int detach = PTHREAD_CREATE_DETACHED;
14045 #if HAVE_PTHREADS > 4
14046 /* Final pthreads */
14047 pthread_attr_t attr;
14049 status = pthread_attr_init(&attr);
14050 if( status ) return status;
14052 #if HAVE_PTHREADS < 7
14053 status = pthread_attr_setdetachstate(&attr, &detach);
14054 if( status < 0 ) status = errno;
14056 status = pthread_attr_setdetachstate(&attr, detach);
14058 if( status ) return status;
14059 status = pthread_create( &t, &attr, task, NULL );
14060 #if HAVE_PTHREADS < 7
14061 if( status < 0 ) status = errno;
14063 if( status ) return status;
14065 /* Draft 4 pthreads */
14066 status = pthread_create( &t, pthread_attr_default, task, NULL );
14067 if( status ) return errno;
14069 /* give thread a chance to complete */
14070 /* it should remain joinable and hence detachable */
14073 status = pthread_detach( &t );
14074 if( status ) return errno;
14077 #ifdef HAVE_LINUX_THREADS
14078 pthread_kill_other_threads_np();
14086 if { (eval echo configure:14087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14088 ol_cv_pthread_lc_r=yes
14090 echo "configure: failed program was:" >&5
14091 cat conftest.$ac_ext >&5
14093 ol_cv_pthread_lc_r=no
14104 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
14106 if test $ol_cv_pthread_lc_r = yes ; then
14107 ol_link_pthreads="-lc_r"
14108 ol_link_threads=posix
14113 # Pthread try link: -threads (ol_cv_pthread_threads)
14114 if test "$ol_link_threads" = no ; then
14116 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
14117 echo "configure:14118: checking for pthread link with -threads" >&5
14118 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
14119 echo $ac_n "(cached) $ac_c" 1>&6
14124 LIBS="-threads $LIBS"
14126 if test "$cross_compiling" = yes; then
14127 cat > conftest.$ac_ext <<EOF
14128 #line 14129 "configure"
14129 #include "confdefs.h"
14130 /* pthread test headers */
14131 #include <pthread.h>
14132 #if HAVE_PTHREADS < 7
14136 #define NULL (void*)0
14139 static void *task(p)
14142 return (void *) (p == NULL);
14147 /* pthread test function */
14148 #ifndef PTHREAD_CREATE_DETACHED
14149 #define PTHREAD_CREATE_DETACHED 1
14153 int detach = PTHREAD_CREATE_DETACHED;
14155 #if HAVE_PTHREADS > 4
14156 /* Final pthreads */
14157 pthread_attr_t attr;
14159 status = pthread_attr_init(&attr);
14160 if( status ) return status;
14162 #if HAVE_PTHREADS < 7
14163 status = pthread_attr_setdetachstate(&attr, &detach);
14164 if( status < 0 ) status = errno;
14166 status = pthread_attr_setdetachstate(&attr, detach);
14168 if( status ) return status;
14169 status = pthread_create( &t, &attr, task, NULL );
14170 #if HAVE_PTHREADS < 7
14171 if( status < 0 ) status = errno;
14173 if( status ) return status;
14175 /* Draft 4 pthreads */
14176 status = pthread_create( &t, pthread_attr_default, task, NULL );
14177 if( status ) return errno;
14179 /* give thread a chance to complete */
14180 /* it should remain joinable and hence detachable */
14183 status = pthread_detach( &t );
14184 if( status ) return errno;
14187 #ifdef HAVE_LINUX_THREADS
14188 pthread_kill_other_threads_np();
14195 if { (eval echo configure:14196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14197 ol_cv_pthread_threads=yes
14199 echo "configure: failed program was:" >&5
14200 cat conftest.$ac_ext >&5
14202 ol_cv_pthread_threads=no
14206 cat > conftest.$ac_ext <<EOF
14207 #line 14208 "configure"
14208 #include "confdefs.h"
14209 /* pthread test headers */
14210 #include <pthread.h>
14211 #if HAVE_PTHREADS < 7
14215 #define NULL (void*)0
14218 static void *task(p)
14221 return (void *) (p == NULL);
14225 int main(argc, argv)
14230 /* pthread test function */
14231 #ifndef PTHREAD_CREATE_DETACHED
14232 #define PTHREAD_CREATE_DETACHED 1
14236 int detach = PTHREAD_CREATE_DETACHED;
14238 #if HAVE_PTHREADS > 4
14239 /* Final pthreads */
14240 pthread_attr_t attr;
14242 status = pthread_attr_init(&attr);
14243 if( status ) return status;
14245 #if HAVE_PTHREADS < 7
14246 status = pthread_attr_setdetachstate(&attr, &detach);
14247 if( status < 0 ) status = errno;
14249 status = pthread_attr_setdetachstate(&attr, detach);
14251 if( status ) return status;
14252 status = pthread_create( &t, &attr, task, NULL );
14253 #if HAVE_PTHREADS < 7
14254 if( status < 0 ) status = errno;
14256 if( status ) return status;
14258 /* Draft 4 pthreads */
14259 status = pthread_create( &t, pthread_attr_default, task, NULL );
14260 if( status ) return errno;
14262 /* give thread a chance to complete */
14263 /* it should remain joinable and hence detachable */
14266 status = pthread_detach( &t );
14267 if( status ) return errno;
14270 #ifdef HAVE_LINUX_THREADS
14271 pthread_kill_other_threads_np();
14279 if { (eval echo configure:14280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14281 ol_cv_pthread_threads=yes
14283 echo "configure: failed program was:" >&5
14284 cat conftest.$ac_ext >&5
14286 ol_cv_pthread_threads=no
14297 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
14299 if test $ol_cv_pthread_threads = yes ; then
14300 ol_link_pthreads="-threads"
14301 ol_link_threads=posix
14306 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
14307 if test "$ol_link_threads" = no ; then
14308 # try -lpthreads -lmach -lexc -lc_r
14309 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
14310 echo "configure:14311: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
14311 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
14312 echo $ac_n "(cached) $ac_c" 1>&6
14317 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
14319 if test "$cross_compiling" = yes; then
14320 cat > conftest.$ac_ext <<EOF
14321 #line 14322 "configure"
14322 #include "confdefs.h"
14323 /* pthread test headers */
14324 #include <pthread.h>
14325 #if HAVE_PTHREADS < 7
14329 #define NULL (void*)0
14332 static void *task(p)
14335 return (void *) (p == NULL);
14340 /* pthread test function */
14341 #ifndef PTHREAD_CREATE_DETACHED
14342 #define PTHREAD_CREATE_DETACHED 1
14346 int detach = PTHREAD_CREATE_DETACHED;
14348 #if HAVE_PTHREADS > 4
14349 /* Final pthreads */
14350 pthread_attr_t attr;
14352 status = pthread_attr_init(&attr);
14353 if( status ) return status;
14355 #if HAVE_PTHREADS < 7
14356 status = pthread_attr_setdetachstate(&attr, &detach);
14357 if( status < 0 ) status = errno;
14359 status = pthread_attr_setdetachstate(&attr, detach);
14361 if( status ) return status;
14362 status = pthread_create( &t, &attr, task, NULL );
14363 #if HAVE_PTHREADS < 7
14364 if( status < 0 ) status = errno;
14366 if( status ) return status;
14368 /* Draft 4 pthreads */
14369 status = pthread_create( &t, pthread_attr_default, task, NULL );
14370 if( status ) return errno;
14372 /* give thread a chance to complete */
14373 /* it should remain joinable and hence detachable */
14376 status = pthread_detach( &t );
14377 if( status ) return errno;
14380 #ifdef HAVE_LINUX_THREADS
14381 pthread_kill_other_threads_np();
14388 if { (eval echo configure:14389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14390 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14392 echo "configure: failed program was:" >&5
14393 cat conftest.$ac_ext >&5
14395 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14399 cat > conftest.$ac_ext <<EOF
14400 #line 14401 "configure"
14401 #include "confdefs.h"
14402 /* pthread test headers */
14403 #include <pthread.h>
14404 #if HAVE_PTHREADS < 7
14408 #define NULL (void*)0
14411 static void *task(p)
14414 return (void *) (p == NULL);
14418 int main(argc, argv)
14423 /* pthread test function */
14424 #ifndef PTHREAD_CREATE_DETACHED
14425 #define PTHREAD_CREATE_DETACHED 1
14429 int detach = PTHREAD_CREATE_DETACHED;
14431 #if HAVE_PTHREADS > 4
14432 /* Final pthreads */
14433 pthread_attr_t attr;
14435 status = pthread_attr_init(&attr);
14436 if( status ) return status;
14438 #if HAVE_PTHREADS < 7
14439 status = pthread_attr_setdetachstate(&attr, &detach);
14440 if( status < 0 ) status = errno;
14442 status = pthread_attr_setdetachstate(&attr, detach);
14444 if( status ) return status;
14445 status = pthread_create( &t, &attr, task, NULL );
14446 #if HAVE_PTHREADS < 7
14447 if( status < 0 ) status = errno;
14449 if( status ) return status;
14451 /* Draft 4 pthreads */
14452 status = pthread_create( &t, pthread_attr_default, task, NULL );
14453 if( status ) return errno;
14455 /* give thread a chance to complete */
14456 /* it should remain joinable and hence detachable */
14459 status = pthread_detach( &t );
14460 if( status ) return errno;
14463 #ifdef HAVE_LINUX_THREADS
14464 pthread_kill_other_threads_np();
14472 if { (eval echo configure:14473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14474 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14476 echo "configure: failed program was:" >&5
14477 cat conftest.$ac_ext >&5
14479 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14490 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14492 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14493 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14494 ol_link_threads=posix
14498 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14499 if test "$ol_link_threads" = no ; then
14500 # try -lpthreads -lmach -lexc
14501 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14502 echo "configure:14503: checking for pthread link with -lpthreads -lmach -lexc" >&5
14503 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14504 echo $ac_n "(cached) $ac_c" 1>&6
14509 LIBS="-lpthreads -lmach -lexc $LIBS"
14511 if test "$cross_compiling" = yes; then
14512 cat > conftest.$ac_ext <<EOF
14513 #line 14514 "configure"
14514 #include "confdefs.h"
14515 /* pthread test headers */
14516 #include <pthread.h>
14517 #if HAVE_PTHREADS < 7
14521 #define NULL (void*)0
14524 static void *task(p)
14527 return (void *) (p == NULL);
14532 /* pthread test function */
14533 #ifndef PTHREAD_CREATE_DETACHED
14534 #define PTHREAD_CREATE_DETACHED 1
14538 int detach = PTHREAD_CREATE_DETACHED;
14540 #if HAVE_PTHREADS > 4
14541 /* Final pthreads */
14542 pthread_attr_t attr;
14544 status = pthread_attr_init(&attr);
14545 if( status ) return status;
14547 #if HAVE_PTHREADS < 7
14548 status = pthread_attr_setdetachstate(&attr, &detach);
14549 if( status < 0 ) status = errno;
14551 status = pthread_attr_setdetachstate(&attr, detach);
14553 if( status ) return status;
14554 status = pthread_create( &t, &attr, task, NULL );
14555 #if HAVE_PTHREADS < 7
14556 if( status < 0 ) status = errno;
14558 if( status ) return status;
14560 /* Draft 4 pthreads */
14561 status = pthread_create( &t, pthread_attr_default, task, NULL );
14562 if( status ) return errno;
14564 /* give thread a chance to complete */
14565 /* it should remain joinable and hence detachable */
14568 status = pthread_detach( &t );
14569 if( status ) return errno;
14572 #ifdef HAVE_LINUX_THREADS
14573 pthread_kill_other_threads_np();
14580 if { (eval echo configure:14581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14582 ol_cv_pthread_lpthreads_lmach_lexc=yes
14584 echo "configure: failed program was:" >&5
14585 cat conftest.$ac_ext >&5
14587 ol_cv_pthread_lpthreads_lmach_lexc=no
14591 cat > conftest.$ac_ext <<EOF
14592 #line 14593 "configure"
14593 #include "confdefs.h"
14594 /* pthread test headers */
14595 #include <pthread.h>
14596 #if HAVE_PTHREADS < 7
14600 #define NULL (void*)0
14603 static void *task(p)
14606 return (void *) (p == NULL);
14610 int main(argc, argv)
14615 /* pthread test function */
14616 #ifndef PTHREAD_CREATE_DETACHED
14617 #define PTHREAD_CREATE_DETACHED 1
14621 int detach = PTHREAD_CREATE_DETACHED;
14623 #if HAVE_PTHREADS > 4
14624 /* Final pthreads */
14625 pthread_attr_t attr;
14627 status = pthread_attr_init(&attr);
14628 if( status ) return status;
14630 #if HAVE_PTHREADS < 7
14631 status = pthread_attr_setdetachstate(&attr, &detach);
14632 if( status < 0 ) status = errno;
14634 status = pthread_attr_setdetachstate(&attr, detach);
14636 if( status ) return status;
14637 status = pthread_create( &t, &attr, task, NULL );
14638 #if HAVE_PTHREADS < 7
14639 if( status < 0 ) status = errno;
14641 if( status ) return status;
14643 /* Draft 4 pthreads */
14644 status = pthread_create( &t, pthread_attr_default, task, NULL );
14645 if( status ) return errno;
14647 /* give thread a chance to complete */
14648 /* it should remain joinable and hence detachable */
14651 status = pthread_detach( &t );
14652 if( status ) return errno;
14655 #ifdef HAVE_LINUX_THREADS
14656 pthread_kill_other_threads_np();
14664 if { (eval echo configure:14665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14666 ol_cv_pthread_lpthreads_lmach_lexc=yes
14668 echo "configure: failed program was:" >&5
14669 cat conftest.$ac_ext >&5
14671 ol_cv_pthread_lpthreads_lmach_lexc=no
14682 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14684 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14685 ol_link_pthreads="-lpthreads -lmach -lexc"
14686 ol_link_threads=posix
14690 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14691 if test "$ol_link_threads" = no ; then
14692 # try -lpthreads -lexc
14693 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14694 echo "configure:14695: checking for pthread link with -lpthreads -lexc" >&5
14695 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14696 echo $ac_n "(cached) $ac_c" 1>&6
14701 LIBS="-lpthreads -lexc $LIBS"
14703 if test "$cross_compiling" = yes; then
14704 cat > conftest.$ac_ext <<EOF
14705 #line 14706 "configure"
14706 #include "confdefs.h"
14707 /* pthread test headers */
14708 #include <pthread.h>
14709 #if HAVE_PTHREADS < 7
14713 #define NULL (void*)0
14716 static void *task(p)
14719 return (void *) (p == NULL);
14724 /* pthread test function */
14725 #ifndef PTHREAD_CREATE_DETACHED
14726 #define PTHREAD_CREATE_DETACHED 1
14730 int detach = PTHREAD_CREATE_DETACHED;
14732 #if HAVE_PTHREADS > 4
14733 /* Final pthreads */
14734 pthread_attr_t attr;
14736 status = pthread_attr_init(&attr);
14737 if( status ) return status;
14739 #if HAVE_PTHREADS < 7
14740 status = pthread_attr_setdetachstate(&attr, &detach);
14741 if( status < 0 ) status = errno;
14743 status = pthread_attr_setdetachstate(&attr, detach);
14745 if( status ) return status;
14746 status = pthread_create( &t, &attr, task, NULL );
14747 #if HAVE_PTHREADS < 7
14748 if( status < 0 ) status = errno;
14750 if( status ) return status;
14752 /* Draft 4 pthreads */
14753 status = pthread_create( &t, pthread_attr_default, task, NULL );
14754 if( status ) return errno;
14756 /* give thread a chance to complete */
14757 /* it should remain joinable and hence detachable */
14760 status = pthread_detach( &t );
14761 if( status ) return errno;
14764 #ifdef HAVE_LINUX_THREADS
14765 pthread_kill_other_threads_np();
14772 if { (eval echo configure:14773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14774 ol_cv_pthread_lpthreads_lexc=yes
14776 echo "configure: failed program was:" >&5
14777 cat conftest.$ac_ext >&5
14779 ol_cv_pthread_lpthreads_lexc=no
14783 cat > conftest.$ac_ext <<EOF
14784 #line 14785 "configure"
14785 #include "confdefs.h"
14786 /* pthread test headers */
14787 #include <pthread.h>
14788 #if HAVE_PTHREADS < 7
14792 #define NULL (void*)0
14795 static void *task(p)
14798 return (void *) (p == NULL);
14802 int main(argc, argv)
14807 /* pthread test function */
14808 #ifndef PTHREAD_CREATE_DETACHED
14809 #define PTHREAD_CREATE_DETACHED 1
14813 int detach = PTHREAD_CREATE_DETACHED;
14815 #if HAVE_PTHREADS > 4
14816 /* Final pthreads */
14817 pthread_attr_t attr;
14819 status = pthread_attr_init(&attr);
14820 if( status ) return status;
14822 #if HAVE_PTHREADS < 7
14823 status = pthread_attr_setdetachstate(&attr, &detach);
14824 if( status < 0 ) status = errno;
14826 status = pthread_attr_setdetachstate(&attr, detach);
14828 if( status ) return status;
14829 status = pthread_create( &t, &attr, task, NULL );
14830 #if HAVE_PTHREADS < 7
14831 if( status < 0 ) status = errno;
14833 if( status ) return status;
14835 /* Draft 4 pthreads */
14836 status = pthread_create( &t, pthread_attr_default, task, NULL );
14837 if( status ) return errno;
14839 /* give thread a chance to complete */
14840 /* it should remain joinable and hence detachable */
14843 status = pthread_detach( &t );
14844 if( status ) return errno;
14847 #ifdef HAVE_LINUX_THREADS
14848 pthread_kill_other_threads_np();
14856 if { (eval echo configure:14857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14858 ol_cv_pthread_lpthreads_lexc=yes
14860 echo "configure: failed program was:" >&5
14861 cat conftest.$ac_ext >&5
14863 ol_cv_pthread_lpthreads_lexc=no
14874 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14876 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14877 ol_link_pthreads="-lpthreads -lexc"
14878 ol_link_threads=posix
14883 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14884 if test "$ol_link_threads" = no ; then
14886 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14887 echo "configure:14888: checking for pthread link with -lpthreads" >&5
14888 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14889 echo $ac_n "(cached) $ac_c" 1>&6
14894 LIBS="-lpthreads $LIBS"
14896 if test "$cross_compiling" = yes; then
14897 cat > conftest.$ac_ext <<EOF
14898 #line 14899 "configure"
14899 #include "confdefs.h"
14900 /* pthread test headers */
14901 #include <pthread.h>
14902 #if HAVE_PTHREADS < 7
14906 #define NULL (void*)0
14909 static void *task(p)
14912 return (void *) (p == NULL);
14917 /* pthread test function */
14918 #ifndef PTHREAD_CREATE_DETACHED
14919 #define PTHREAD_CREATE_DETACHED 1
14923 int detach = PTHREAD_CREATE_DETACHED;
14925 #if HAVE_PTHREADS > 4
14926 /* Final pthreads */
14927 pthread_attr_t attr;
14929 status = pthread_attr_init(&attr);
14930 if( status ) return status;
14932 #if HAVE_PTHREADS < 7
14933 status = pthread_attr_setdetachstate(&attr, &detach);
14934 if( status < 0 ) status = errno;
14936 status = pthread_attr_setdetachstate(&attr, detach);
14938 if( status ) return status;
14939 status = pthread_create( &t, &attr, task, NULL );
14940 #if HAVE_PTHREADS < 7
14941 if( status < 0 ) status = errno;
14943 if( status ) return status;
14945 /* Draft 4 pthreads */
14946 status = pthread_create( &t, pthread_attr_default, task, NULL );
14947 if( status ) return errno;
14949 /* give thread a chance to complete */
14950 /* it should remain joinable and hence detachable */
14953 status = pthread_detach( &t );
14954 if( status ) return errno;
14957 #ifdef HAVE_LINUX_THREADS
14958 pthread_kill_other_threads_np();
14965 if { (eval echo configure:14966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14967 ol_cv_pthread_lib_lpthreads=yes
14969 echo "configure: failed program was:" >&5
14970 cat conftest.$ac_ext >&5
14972 ol_cv_pthread_lib_lpthreads=no
14976 cat > conftest.$ac_ext <<EOF
14977 #line 14978 "configure"
14978 #include "confdefs.h"
14979 /* pthread test headers */
14980 #include <pthread.h>
14981 #if HAVE_PTHREADS < 7
14985 #define NULL (void*)0
14988 static void *task(p)
14991 return (void *) (p == NULL);
14995 int main(argc, argv)
15000 /* pthread test function */
15001 #ifndef PTHREAD_CREATE_DETACHED
15002 #define PTHREAD_CREATE_DETACHED 1
15006 int detach = PTHREAD_CREATE_DETACHED;
15008 #if HAVE_PTHREADS > 4
15009 /* Final pthreads */
15010 pthread_attr_t attr;
15012 status = pthread_attr_init(&attr);
15013 if( status ) return status;
15015 #if HAVE_PTHREADS < 7
15016 status = pthread_attr_setdetachstate(&attr, &detach);
15017 if( status < 0 ) status = errno;
15019 status = pthread_attr_setdetachstate(&attr, detach);
15021 if( status ) return status;
15022 status = pthread_create( &t, &attr, task, NULL );
15023 #if HAVE_PTHREADS < 7
15024 if( status < 0 ) status = errno;
15026 if( status ) return status;
15028 /* Draft 4 pthreads */
15029 status = pthread_create( &t, pthread_attr_default, task, NULL );
15030 if( status ) return errno;
15032 /* give thread a chance to complete */
15033 /* it should remain joinable and hence detachable */
15036 status = pthread_detach( &t );
15037 if( status ) return errno;
15040 #ifdef HAVE_LINUX_THREADS
15041 pthread_kill_other_threads_np();
15049 if { (eval echo configure:15050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15051 ol_cv_pthread_lib_lpthreads=yes
15053 echo "configure: failed program was:" >&5
15054 cat conftest.$ac_ext >&5
15056 ol_cv_pthread_lib_lpthreads=no
15067 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
15069 if test $ol_cv_pthread_lib_lpthreads = yes ; then
15070 ol_link_pthreads="-lpthreads"
15071 ol_link_threads=posix
15076 if test $ol_link_threads != no ; then
15077 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
15079 save_CPPFLAGS="$CPPFLAGS"
15081 LIBS="$LTHREAD_LIBS $LIBS"
15083 for ac_func in sched_yield pthread_yield thr_yield
15085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15086 echo "configure:15087: checking for $ac_func" >&5
15087 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15088 echo $ac_n "(cached) $ac_c" 1>&6
15090 cat > conftest.$ac_ext <<EOF
15091 #line 15092 "configure"
15092 #include "confdefs.h"
15093 /* System header to define __stub macros and hopefully few prototypes,
15094 which can conflict with char $ac_func(); below. */
15095 #include <assert.h>
15096 /* Override any gcc2 internal prototype to avoid an error. */
15097 /* We use char because int might match the return type of a gcc2
15098 builtin and then its argument prototype would still apply. */
15104 /* The GNU C library defines this for functions which it implements
15105 to always fail with ENOSYS. Some functions are actually named
15106 something starting with __ and the normal name is an alias. */
15107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15115 if { (eval echo configure:15116: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15117 eval "ac_cv_func_$ac_func=yes"
15119 echo "configure: failed program was:" >&5
15120 cat conftest.$ac_ext >&5
15122 eval "ac_cv_func_$ac_func=no"
15127 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15128 echo "$ac_t""yes" 1>&6
15129 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15130 cat >> confdefs.h <<EOF
15131 #define $ac_tr_func 1
15135 echo "$ac_t""no" 1>&6
15140 if test $ac_cv_func_sched_yield = no -a \
15141 $ac_cv_func_pthread_yield = no -a \
15142 $ac_cv_func_thr_yield = no ; then
15143 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
15144 echo "configure:15145: checking for sched_yield in -lrt" >&5
15145 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
15146 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15147 echo $ac_n "(cached) $ac_c" 1>&6
15149 ac_save_LIBS="$LIBS"
15151 cat > conftest.$ac_ext <<EOF
15152 #line 15153 "configure"
15153 #include "confdefs.h"
15154 /* Override any gcc2 internal prototype to avoid an error. */
15155 /* We use char because int might match the return type of a gcc2
15156 builtin and then its argument prototype would still apply. */
15157 char sched_yield();
15163 if { (eval echo configure:15164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15165 eval "ac_cv_lib_$ac_lib_var=yes"
15167 echo "configure: failed program was:" >&5
15168 cat conftest.$ac_ext >&5
15170 eval "ac_cv_lib_$ac_lib_var=no"
15173 LIBS="$ac_save_LIBS"
15176 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15177 echo "$ac_t""yes" 1>&6
15178 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
15179 cat >> confdefs.h <<\EOF
15180 #define HAVE_SCHED_YIELD 1
15183 ac_cv_func_sched_yield=yes
15185 echo "$ac_t""no" 1>&6
15186 ac_cv_func_sched_yield=no
15190 if test $ac_cv_func_sched_yield = no -a \
15191 $ac_cv_func_pthread_yield = no -a \
15192 "$ac_cv_func_thr_yield" = no ; then
15193 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
15196 for ac_func in pthread_kill pthread_rwlock_destroy
15198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15199 echo "configure:15200: checking for $ac_func" >&5
15200 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15201 echo $ac_n "(cached) $ac_c" 1>&6
15203 cat > conftest.$ac_ext <<EOF
15204 #line 15205 "configure"
15205 #include "confdefs.h"
15206 /* System header to define __stub macros and hopefully few prototypes,
15207 which can conflict with char $ac_func(); below. */
15208 #include <assert.h>
15209 /* Override any gcc2 internal prototype to avoid an error. */
15210 /* We use char because int might match the return type of a gcc2
15211 builtin and then its argument prototype would still apply. */
15217 /* The GNU C library defines this for functions which it implements
15218 to always fail with ENOSYS. Some functions are actually named
15219 something starting with __ and the normal name is an alias. */
15220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15228 if { (eval echo configure:15229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15230 eval "ac_cv_func_$ac_func=yes"
15232 echo "configure: failed program was:" >&5
15233 cat conftest.$ac_ext >&5
15235 eval "ac_cv_func_$ac_func=no"
15240 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15241 echo "$ac_t""yes" 1>&6
15242 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15243 cat >> confdefs.h <<EOF
15244 #define $ac_tr_func 1
15248 echo "$ac_t""no" 1>&6
15253 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
15254 echo "configure:15255: checking for pthread_detach with <pthread.h>" >&5
15255 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
15256 echo $ac_n "(cached) $ac_c" 1>&6
15259 cat > conftest.$ac_ext <<EOF
15260 #line 15261 "configure"
15261 #include "confdefs.h"
15263 #include <pthread.h>
15265 #define NULL (void*)0
15269 pthread_detach(NULL);
15272 if { (eval echo configure:15273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15274 ol_cv_func_pthread_detach=yes
15276 echo "configure: failed program was:" >&5
15277 cat conftest.$ac_ext >&5
15279 ol_cv_func_pthread_detach=no
15285 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
15287 if test $ol_cv_func_pthread_detach = no ; then
15288 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
15291 cat >> confdefs.h <<\EOF
15292 #define HAVE_PTHREAD_DETACH 1
15297 pthread_setconcurrency \
15298 pthread_getconcurrency \
15299 thr_setconcurrency \
15300 thr_getconcurrency \
15303 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15304 echo "configure:15305: checking for $ac_func" >&5
15305 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15306 echo $ac_n "(cached) $ac_c" 1>&6
15308 cat > conftest.$ac_ext <<EOF
15309 #line 15310 "configure"
15310 #include "confdefs.h"
15311 /* System header to define __stub macros and hopefully few prototypes,
15312 which can conflict with char $ac_func(); below. */
15313 #include <assert.h>
15314 /* Override any gcc2 internal prototype to avoid an error. */
15315 /* We use char because int might match the return type of a gcc2
15316 builtin and then its argument prototype would still apply. */
15322 /* The GNU C library defines this for functions which it implements
15323 to always fail with ENOSYS. Some functions are actually named
15324 something starting with __ and the normal name is an alias. */
15325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15333 if { (eval echo configure:15334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15335 eval "ac_cv_func_$ac_func=yes"
15337 echo "configure: failed program was:" >&5
15338 cat conftest.$ac_ext >&5
15340 eval "ac_cv_func_$ac_func=no"
15345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15346 echo "$ac_t""yes" 1>&6
15347 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15348 cat >> confdefs.h <<EOF
15349 #define $ac_tr_func 1
15353 echo "$ac_t""no" 1>&6
15359 for ac_func in pthread_kill_other_threads_np
15361 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15362 echo "configure:15363: checking for $ac_func" >&5
15363 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15364 echo $ac_n "(cached) $ac_c" 1>&6
15366 cat > conftest.$ac_ext <<EOF
15367 #line 15368 "configure"
15368 #include "confdefs.h"
15369 /* System header to define __stub macros and hopefully few prototypes,
15370 which can conflict with char $ac_func(); below. */
15371 #include <assert.h>
15372 /* Override any gcc2 internal prototype to avoid an error. */
15373 /* We use char because int might match the return type of a gcc2
15374 builtin and then its argument prototype would still apply. */
15380 /* The GNU C library defines this for functions which it implements
15381 to always fail with ENOSYS. Some functions are actually named
15382 something starting with __ and the normal name is an alias. */
15383 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15391 if { (eval echo configure:15392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15393 eval "ac_cv_func_$ac_func=yes"
15395 echo "configure: failed program was:" >&5
15396 cat conftest.$ac_ext >&5
15398 eval "ac_cv_func_$ac_func=no"
15403 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15404 echo "$ac_t""yes" 1>&6
15405 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15406 cat >> confdefs.h <<EOF
15407 #define $ac_tr_func 1
15411 echo "$ac_t""no" 1>&6
15415 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15416 echo "configure:15417: checking for LinuxThreads implementation" >&5
15417 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15418 echo $ac_n "(cached) $ac_c" 1>&6
15420 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15423 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15428 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15429 echo "configure:15430: checking for LinuxThreads consistency" >&5
15430 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15431 echo $ac_n "(cached) $ac_c" 1>&6
15434 if test $ol_cv_header_linux_threads = yes -a \
15435 $ol_cv_sys_linux_threads = yes; then
15436 ol_cv_linux_threads=yes
15437 elif test $ol_cv_header_linux_threads = no -a \
15438 $ol_cv_sys_linux_threads = no; then
15439 ol_cv_linux_threads=no
15441 ol_cv_linux_threads=error
15446 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15449 if test $ol_cv_linux_threads = error; then
15450 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15453 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15454 echo "configure:15455: checking if pthread_create() works" >&5
15455 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15456 echo $ac_n "(cached) $ac_c" 1>&6
15459 if test "$cross_compiling" = yes; then
15460 ol_cv_pthread_create_works=yes
15462 cat > conftest.$ac_ext <<EOF
15463 #line 15464 "configure"
15464 #include "confdefs.h"
15465 /* pthread test headers */
15466 #include <pthread.h>
15467 #if HAVE_PTHREADS < 7
15471 #define NULL (void*)0
15474 static void *task(p)
15477 return (void *) (p == NULL);
15481 int main(argc, argv)
15486 /* pthread test function */
15487 #ifndef PTHREAD_CREATE_DETACHED
15488 #define PTHREAD_CREATE_DETACHED 1
15492 int detach = PTHREAD_CREATE_DETACHED;
15494 #if HAVE_PTHREADS > 4
15495 /* Final pthreads */
15496 pthread_attr_t attr;
15498 status = pthread_attr_init(&attr);
15499 if( status ) return status;
15501 #if HAVE_PTHREADS < 7
15502 status = pthread_attr_setdetachstate(&attr, &detach);
15503 if( status < 0 ) status = errno;
15505 status = pthread_attr_setdetachstate(&attr, detach);
15507 if( status ) return status;
15508 status = pthread_create( &t, &attr, task, NULL );
15509 #if HAVE_PTHREADS < 7
15510 if( status < 0 ) status = errno;
15512 if( status ) return status;
15514 /* Draft 4 pthreads */
15515 status = pthread_create( &t, pthread_attr_default, task, NULL );
15516 if( status ) return errno;
15518 /* give thread a chance to complete */
15519 /* it should remain joinable and hence detachable */
15522 status = pthread_detach( &t );
15523 if( status ) return errno;
15526 #ifdef HAVE_LINUX_THREADS
15527 pthread_kill_other_threads_np();
15535 if { (eval echo configure:15536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15537 ol_cv_pthread_create_works=yes
15539 echo "configure: failed program was:" >&5
15540 cat conftest.$ac_ext >&5
15542 ol_cv_pthread_create_works=no
15549 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15551 if test $ol_cv_pthread_create_works = no ; then
15552 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15555 if test $ol_with_yielding_select = auto ; then
15556 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15557 echo "configure:15558: checking if select yields when using pthreads" >&5
15558 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15559 echo $ac_n "(cached) $ac_c" 1>&6
15562 if test "$cross_compiling" = yes; then
15563 ol_cv_pthread_select_yields=cross
15565 cat > conftest.$ac_ext <<EOF
15566 #line 15567 "configure"
15567 #include "confdefs.h"
15569 #include <sys/types.h>
15570 #include <sys/time.h>
15571 #include <unistd.h>
15572 #include <pthread.h>
15574 #define NULL (void*) 0
15577 static int fildes[2];
15579 static void *task(p)
15591 FD_SET(fildes[0], &rfds);
15593 /* we're not interested in any fds */
15594 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15601 exit(0); /* if we exit here, the select blocked the whole process */
15604 int main(argc, argv)
15610 /* create a pipe to select */
15611 if(pipe(&fildes[0])) {
15616 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15617 (void) pthread_setconcurrency(2);
15619 #ifdef HAVE_THR_SETCONCURRENCY
15620 /* Set Solaris LWP concurrency to 2 */
15621 thr_setconcurrency(2);
15625 #if HAVE_PTHREADS < 6
15626 pthread_create(&t, pthread_attr_default, task, NULL);
15628 pthread_create(&t, NULL, task, NULL);
15631 /* make sure task runs first */
15634 #elif defined( HAVE_SCHED_YIELD )
15636 #elif defined( HAVE_PTHREAD_YIELD )
15643 if { (eval echo configure:15644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15645 ol_cv_pthread_select_yields=no
15647 echo "configure: failed program was:" >&5
15648 cat conftest.$ac_ext >&5
15650 ol_cv_pthread_select_yields=yes
15657 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15659 if test $ol_cv_pthread_select_yields = cross ; then
15660 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15663 if test $ol_cv_pthread_select_yields = yes ; then
15664 ol_with_yielding_select=yes
15668 CPPFLAGS="$save_CPPFLAGS"
15671 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15675 if test $ol_with_threads = posix ; then
15676 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15680 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15681 -o $ol_with_threads = mach ; then
15683 for ac_hdr in mach/cthreads.h cthreads.h
15685 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15686 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15687 echo "configure:15688: checking for $ac_hdr" >&5
15688 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15689 echo $ac_n "(cached) $ac_c" 1>&6
15691 cat > conftest.$ac_ext <<EOF
15692 #line 15693 "configure"
15693 #include "confdefs.h"
15696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15697 { (eval echo configure:15698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15699 if test -z "$ac_err"; then
15701 eval "ac_cv_header_$ac_safe=yes"
15704 echo "configure: failed program was:" >&5
15705 cat conftest.$ac_ext >&5
15707 eval "ac_cv_header_$ac_safe=no"
15711 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15712 echo "$ac_t""yes" 1>&6
15713 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15714 cat >> confdefs.h <<EOF
15715 #define $ac_tr_hdr 1
15719 echo "$ac_t""no" 1>&6
15723 if test $ac_cv_header_mach_cthreads_h = yes ; then
15724 ol_with_threads=found
15726 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15727 echo "configure:15728: checking for cthread_fork" >&5
15728 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15729 echo $ac_n "(cached) $ac_c" 1>&6
15731 cat > conftest.$ac_ext <<EOF
15732 #line 15733 "configure"
15733 #include "confdefs.h"
15734 /* System header to define __stub macros and hopefully few prototypes,
15735 which can conflict with char cthread_fork(); below. */
15736 #include <assert.h>
15737 /* Override any gcc2 internal prototype to avoid an error. */
15738 /* We use char because int might match the return type of a gcc2
15739 builtin and then its argument prototype would still apply. */
15740 char cthread_fork();
15745 /* The GNU C library defines this for functions which it implements
15746 to always fail with ENOSYS. Some functions are actually named
15747 something starting with __ and the normal name is an alias. */
15748 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15756 if { (eval echo configure:15757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15758 eval "ac_cv_func_cthread_fork=yes"
15760 echo "configure: failed program was:" >&5
15761 cat conftest.$ac_ext >&5
15763 eval "ac_cv_func_cthread_fork=no"
15768 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15769 echo "$ac_t""yes" 1>&6
15770 ol_link_threads=yes
15772 echo "$ac_t""no" 1>&6
15776 if test $ol_link_threads = no ; then
15777 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15778 echo "configure:15779: checking for cthread_fork with -all_load" >&5
15779 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15780 echo $ac_n "(cached) $ac_c" 1>&6
15784 LIBS="-all_load $LIBS"
15785 cat > conftest.$ac_ext <<EOF
15786 #line 15787 "configure"
15787 #include "confdefs.h"
15788 #include <mach/cthreads.h>
15791 cthread_fork((void *)0, (void *)0);
15795 if { (eval echo configure:15796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15797 ol_cv_cthread_all_load=yes
15799 echo "configure: failed program was:" >&5
15800 cat conftest.$ac_ext >&5
15802 ol_cv_cthread_all_load=no
15809 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15811 if test $ol_cv_cthread_all_load = yes ; then
15812 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15813 ol_link_threads=mach
15814 ol_with_threads=found
15818 elif test $ac_cv_header_cthreads_h = yes ; then
15820 ol_with_threads=found
15823 LIBS="$LIBS -lthreads"
15824 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15825 echo "configure:15826: checking for cthread_fork" >&5
15826 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15827 echo $ac_n "(cached) $ac_c" 1>&6
15829 cat > conftest.$ac_ext <<EOF
15830 #line 15831 "configure"
15831 #include "confdefs.h"
15832 /* System header to define __stub macros and hopefully few prototypes,
15833 which can conflict with char cthread_fork(); below. */
15834 #include <assert.h>
15835 /* Override any gcc2 internal prototype to avoid an error. */
15836 /* We use char because int might match the return type of a gcc2
15837 builtin and then its argument prototype would still apply. */
15838 char cthread_fork();
15843 /* The GNU C library defines this for functions which it implements
15844 to always fail with ENOSYS. Some functions are actually named
15845 something starting with __ and the normal name is an alias. */
15846 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15854 if { (eval echo configure:15855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15856 eval "ac_cv_func_cthread_fork=yes"
15858 echo "configure: failed program was:" >&5
15859 cat conftest.$ac_ext >&5
15861 eval "ac_cv_func_cthread_fork=no"
15866 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15867 echo "$ac_t""yes" 1>&6
15868 ol_link_threads=yes
15870 echo "$ac_t""no" 1>&6
15875 if test $ol_link_threads = yes ; then
15876 LTHREAD_LIBS="-lthreads"
15877 ol_link_threads=mach
15878 ol_with_threads=found
15880 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15883 elif test $ol_with_threads = mach ; then
15884 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15887 if test $ol_link_threads = mach ; then
15888 cat >> confdefs.h <<\EOF
15889 #define HAVE_MACH_CTHREADS 1
15892 elif test $ol_with_threads = found ; then
15893 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15897 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15898 -o $ol_with_threads = pth ; then
15900 for ac_hdr in pth.h
15902 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15903 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15904 echo "configure:15905: checking for $ac_hdr" >&5
15905 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15906 echo $ac_n "(cached) $ac_c" 1>&6
15908 cat > conftest.$ac_ext <<EOF
15909 #line 15910 "configure"
15910 #include "confdefs.h"
15913 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15914 { (eval echo configure:15915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15915 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15916 if test -z "$ac_err"; then
15918 eval "ac_cv_header_$ac_safe=yes"
15921 echo "configure: failed program was:" >&5
15922 cat conftest.$ac_ext >&5
15924 eval "ac_cv_header_$ac_safe=no"
15928 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15929 echo "$ac_t""yes" 1>&6
15930 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15931 cat >> confdefs.h <<EOF
15932 #define $ac_tr_hdr 1
15936 echo "$ac_t""no" 1>&6
15941 if test $ac_cv_header_pth_h = yes ; then
15942 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15943 echo "configure:15944: checking for pth_version in -lpth" >&5
15944 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15945 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15946 echo $ac_n "(cached) $ac_c" 1>&6
15948 ac_save_LIBS="$LIBS"
15950 cat > conftest.$ac_ext <<EOF
15951 #line 15952 "configure"
15952 #include "confdefs.h"
15953 /* Override any gcc2 internal prototype to avoid an error. */
15954 /* We use char because int might match the return type of a gcc2
15955 builtin and then its argument prototype would still apply. */
15956 char pth_version();
15962 if { (eval echo configure:15963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15964 eval "ac_cv_lib_$ac_lib_var=yes"
15966 echo "configure: failed program was:" >&5
15967 cat conftest.$ac_ext >&5
15969 eval "ac_cv_lib_$ac_lib_var=no"
15972 LIBS="$ac_save_LIBS"
15975 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15976 echo "$ac_t""yes" 1>&6
15979 echo "$ac_t""no" 1>&6
15984 if test $have_pth = yes ; then
15985 cat >> confdefs.h <<\EOF
15986 #define HAVE_GNU_PTH 1
15989 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15990 ol_link_threads=pth
15991 ol_with_threads=found
15993 if test $ol_with_yielding_select = auto ; then
15994 ol_with_yielding_select=yes
16000 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16001 -o $ol_with_threads = lwp ; then
16003 for ac_hdr in thread.h synch.h
16005 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16006 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16007 echo "configure:16008: checking for $ac_hdr" >&5
16008 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16009 echo $ac_n "(cached) $ac_c" 1>&6
16011 cat > conftest.$ac_ext <<EOF
16012 #line 16013 "configure"
16013 #include "confdefs.h"
16016 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16017 { (eval echo configure:16018: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16018 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16019 if test -z "$ac_err"; then
16021 eval "ac_cv_header_$ac_safe=yes"
16024 echo "configure: failed program was:" >&5
16025 cat conftest.$ac_ext >&5
16027 eval "ac_cv_header_$ac_safe=no"
16031 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16032 echo "$ac_t""yes" 1>&6
16033 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16034 cat >> confdefs.h <<EOF
16035 #define $ac_tr_hdr 1
16039 echo "$ac_t""no" 1>&6
16043 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
16044 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
16045 echo "configure:16046: checking for thr_create in -lthread" >&5
16046 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
16047 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16048 echo $ac_n "(cached) $ac_c" 1>&6
16050 ac_save_LIBS="$LIBS"
16051 LIBS="-lthread $LIBS"
16052 cat > conftest.$ac_ext <<EOF
16053 #line 16054 "configure"
16054 #include "confdefs.h"
16055 /* Override any gcc2 internal prototype to avoid an error. */
16056 /* We use char because int might match the return type of a gcc2
16057 builtin and then its argument prototype would still apply. */
16064 if { (eval echo configure:16065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16066 eval "ac_cv_lib_$ac_lib_var=yes"
16068 echo "configure: failed program was:" >&5
16069 cat conftest.$ac_ext >&5
16071 eval "ac_cv_lib_$ac_lib_var=no"
16074 LIBS="$ac_save_LIBS"
16077 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16078 echo "$ac_t""yes" 1>&6
16081 echo "$ac_t""no" 1>&6
16086 if test $have_thr = yes ; then
16087 cat >> confdefs.h <<\EOF
16091 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
16092 ol_link_threads=thr
16094 if test $ol_with_yielding_select = auto ; then
16095 ol_with_yielding_select=yes
16099 thr_setconcurrency \
16100 thr_getconcurrency \
16103 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16104 echo "configure:16105: checking for $ac_func" >&5
16105 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16106 echo $ac_n "(cached) $ac_c" 1>&6
16108 cat > conftest.$ac_ext <<EOF
16109 #line 16110 "configure"
16110 #include "confdefs.h"
16111 /* System header to define __stub macros and hopefully few prototypes,
16112 which can conflict with char $ac_func(); below. */
16113 #include <assert.h>
16114 /* Override any gcc2 internal prototype to avoid an error. */
16115 /* We use char because int might match the return type of a gcc2
16116 builtin and then its argument prototype would still apply. */
16122 /* The GNU C library defines this for functions which it implements
16123 to always fail with ENOSYS. Some functions are actually named
16124 something starting with __ and the normal name is an alias. */
16125 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16133 if { (eval echo configure:16134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16135 eval "ac_cv_func_$ac_func=yes"
16137 echo "configure: failed program was:" >&5
16138 cat conftest.$ac_ext >&5
16140 eval "ac_cv_func_$ac_func=no"
16145 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16146 echo "$ac_t""yes" 1>&6
16147 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16148 cat >> confdefs.h <<EOF
16149 #define $ac_tr_func 1
16153 echo "$ac_t""no" 1>&6
16160 for ac_hdr in lwp/lwp.h
16162 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16163 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16164 echo "configure:16165: checking for $ac_hdr" >&5
16165 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16166 echo $ac_n "(cached) $ac_c" 1>&6
16168 cat > conftest.$ac_ext <<EOF
16169 #line 16170 "configure"
16170 #include "confdefs.h"
16173 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16174 { (eval echo configure:16175: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16175 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16176 if test -z "$ac_err"; then
16178 eval "ac_cv_header_$ac_safe=yes"
16181 echo "configure: failed program was:" >&5
16182 cat conftest.$ac_ext >&5
16184 eval "ac_cv_header_$ac_safe=no"
16188 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16189 echo "$ac_t""yes" 1>&6
16190 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16191 cat >> confdefs.h <<EOF
16192 #define $ac_tr_hdr 1
16196 echo "$ac_t""no" 1>&6
16200 if test $ac_cv_header_lwp_lwp_h = yes ; then
16201 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
16202 echo "configure:16203: checking for lwp_create in -llwp" >&5
16203 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
16204 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16205 echo $ac_n "(cached) $ac_c" 1>&6
16207 ac_save_LIBS="$LIBS"
16209 cat > conftest.$ac_ext <<EOF
16210 #line 16211 "configure"
16211 #include "confdefs.h"
16212 /* Override any gcc2 internal prototype to avoid an error. */
16213 /* We use char because int might match the return type of a gcc2
16214 builtin and then its argument prototype would still apply. */
16221 if { (eval echo configure:16222: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16223 eval "ac_cv_lib_$ac_lib_var=yes"
16225 echo "configure: failed program was:" >&5
16226 cat conftest.$ac_ext >&5
16228 eval "ac_cv_lib_$ac_lib_var=no"
16231 LIBS="$ac_save_LIBS"
16234 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16235 echo "$ac_t""yes" 1>&6
16238 echo "$ac_t""no" 1>&6
16243 if test $have_lwp = yes ; then
16244 cat >> confdefs.h <<\EOF
16248 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
16249 ol_link_threads=lwp
16251 if test $ol_with_yielding_select = auto ; then
16252 ol_with_yielding_select=no
16258 if test $ol_with_yielding_select = yes ; then
16259 cat >> confdefs.h <<\EOF
16260 #define HAVE_YIELDING_SELECT 1
16265 if test $ol_with_threads = manual ; then
16266 ol_link_threads=yes
16268 echo "configure: warning: thread defines and link options must be set manually" 1>&2
16270 for ac_hdr in pthread.h sched.h
16272 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16273 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16274 echo "configure:16275: checking for $ac_hdr" >&5
16275 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16276 echo $ac_n "(cached) $ac_c" 1>&6
16278 cat > conftest.$ac_ext <<EOF
16279 #line 16280 "configure"
16280 #include "confdefs.h"
16283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16284 { (eval echo configure:16285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16286 if test -z "$ac_err"; then
16288 eval "ac_cv_header_$ac_safe=yes"
16291 echo "configure: failed program was:" >&5
16292 cat conftest.$ac_ext >&5
16294 eval "ac_cv_header_$ac_safe=no"
16298 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16299 echo "$ac_t""yes" 1>&6
16300 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16301 cat >> confdefs.h <<EOF
16302 #define $ac_tr_hdr 1
16306 echo "$ac_t""no" 1>&6
16310 for ac_func in sched_yield pthread_yield
16312 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16313 echo "configure:16314: checking for $ac_func" >&5
16314 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16315 echo $ac_n "(cached) $ac_c" 1>&6
16317 cat > conftest.$ac_ext <<EOF
16318 #line 16319 "configure"
16319 #include "confdefs.h"
16320 /* System header to define __stub macros and hopefully few prototypes,
16321 which can conflict with char $ac_func(); below. */
16322 #include <assert.h>
16323 /* Override any gcc2 internal prototype to avoid an error. */
16324 /* We use char because int might match the return type of a gcc2
16325 builtin and then its argument prototype would still apply. */
16331 /* The GNU C library defines this for functions which it implements
16332 to always fail with ENOSYS. Some functions are actually named
16333 something starting with __ and the normal name is an alias. */
16334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16342 if { (eval echo configure:16343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16344 eval "ac_cv_func_$ac_func=yes"
16346 echo "configure: failed program was:" >&5
16347 cat conftest.$ac_ext >&5
16349 eval "ac_cv_func_$ac_func=no"
16354 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16355 echo "$ac_t""yes" 1>&6
16356 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16357 cat >> confdefs.h <<EOF
16358 #define $ac_tr_func 1
16362 echo "$ac_t""no" 1>&6
16367 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16368 echo "configure:16369: checking for LinuxThreads pthread.h" >&5
16369 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16370 echo $ac_n "(cached) $ac_c" 1>&6
16372 cat > conftest.$ac_ext <<EOF
16373 #line 16374 "configure"
16374 #include "confdefs.h"
16375 #include <pthread.h>
16377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16378 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16380 ol_cv_header_linux_threads=yes
16383 ol_cv_header_linux_threads=no
16390 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16391 if test $ol_cv_header_linux_threads = yes; then
16392 cat >> confdefs.h <<\EOF
16393 #define HAVE_LINUX_THREADS 1
16399 for ac_hdr in mach/cthreads.h
16401 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16402 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16403 echo "configure:16404: checking for $ac_hdr" >&5
16404 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16405 echo $ac_n "(cached) $ac_c" 1>&6
16407 cat > conftest.$ac_ext <<EOF
16408 #line 16409 "configure"
16409 #include "confdefs.h"
16412 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16413 { (eval echo configure:16414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16414 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16415 if test -z "$ac_err"; then
16417 eval "ac_cv_header_$ac_safe=yes"
16420 echo "configure: failed program was:" >&5
16421 cat conftest.$ac_ext >&5
16423 eval "ac_cv_header_$ac_safe=no"
16427 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16428 echo "$ac_t""yes" 1>&6
16429 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16430 cat >> confdefs.h <<EOF
16431 #define $ac_tr_hdr 1
16435 echo "$ac_t""no" 1>&6
16439 for ac_hdr in lwp/lwp.h
16441 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16442 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16443 echo "configure:16444: checking for $ac_hdr" >&5
16444 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16445 echo $ac_n "(cached) $ac_c" 1>&6
16447 cat > conftest.$ac_ext <<EOF
16448 #line 16449 "configure"
16449 #include "confdefs.h"
16452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16453 { (eval echo configure:16454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16454 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16455 if test -z "$ac_err"; then
16457 eval "ac_cv_header_$ac_safe=yes"
16460 echo "configure: failed program was:" >&5
16461 cat conftest.$ac_ext >&5
16463 eval "ac_cv_header_$ac_safe=no"
16467 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16468 echo "$ac_t""yes" 1>&6
16469 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16470 cat >> confdefs.h <<EOF
16471 #define $ac_tr_hdr 1
16475 echo "$ac_t""no" 1>&6
16479 for ac_hdr in thread.h synch.h
16481 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16482 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16483 echo "configure:16484: checking for $ac_hdr" >&5
16484 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16485 echo $ac_n "(cached) $ac_c" 1>&6
16487 cat > conftest.$ac_ext <<EOF
16488 #line 16489 "configure"
16489 #include "confdefs.h"
16492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16493 { (eval echo configure:16494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16495 if test -z "$ac_err"; then
16497 eval "ac_cv_header_$ac_safe=yes"
16500 echo "configure: failed program was:" >&5
16501 cat conftest.$ac_ext >&5
16503 eval "ac_cv_header_$ac_safe=no"
16507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16508 echo "$ac_t""yes" 1>&6
16509 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16510 cat >> confdefs.h <<EOF
16511 #define $ac_tr_hdr 1
16515 echo "$ac_t""no" 1>&6
16521 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16522 cat >> confdefs.h <<\EOF
16523 #define REENTRANT 1
16526 cat >> confdefs.h <<\EOF
16527 #define _REENTRANT 1
16530 cat >> confdefs.h <<\EOF
16531 #define THREAD_SAFE 1
16534 cat >> confdefs.h <<\EOF
16535 #define _THREAD_SAFE 1
16538 cat >> confdefs.h <<\EOF
16539 #define THREADSAFE 1
16542 cat >> confdefs.h <<\EOF
16543 #define _THREADSAFE 1
16546 cat >> confdefs.h <<\EOF
16547 #define _SGI_MP_SOURCE 1
16551 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16552 echo "configure:16553: checking for thread specific errno" >&5
16553 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16554 echo $ac_n "(cached) $ac_c" 1>&6
16557 cat > conftest.$ac_ext <<EOF
16558 #line 16559 "configure"
16559 #include "confdefs.h"
16565 if { (eval echo configure:16566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16567 ol_cv_errno_thread_specific=yes
16569 echo "configure: failed program was:" >&5
16570 cat conftest.$ac_ext >&5
16572 ol_cv_errno_thread_specific=no
16578 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16580 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16581 echo "configure:16582: checking for thread specific h_errno" >&5
16582 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16583 echo $ac_n "(cached) $ac_c" 1>&6
16586 cat > conftest.$ac_ext <<EOF
16587 #line 16588 "configure"
16588 #include "confdefs.h"
16594 if { (eval echo configure:16595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16596 ol_cv_h_errno_thread_specific=yes
16598 echo "configure: failed program was:" >&5
16599 cat conftest.$ac_ext >&5
16601 ol_cv_h_errno_thread_specific=no
16607 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16609 if test $ol_cv_errno_thread_specific != yes \
16610 -o $ol_cv_h_errno_thread_specific != yes ; then
16611 LIBS="$LTHREAD_LIBS $LIBS"
16617 if test $ol_link_threads = no ; then
16618 if test $ol_with_threads = yes ; then
16619 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16622 if test $ol_with_threads = auto ; then
16623 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16627 cat >> confdefs.h <<\EOF
16628 #define NO_THREADS 1
16634 if test $ol_link_threads != no ; then
16635 cat >> confdefs.h <<\EOF
16636 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16643 gethostbyname_r gethostbyaddr_r \
16646 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16647 echo "configure:16648: checking for $ac_func" >&5
16648 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16649 echo $ac_n "(cached) $ac_c" 1>&6
16651 cat > conftest.$ac_ext <<EOF
16652 #line 16653 "configure"
16653 #include "confdefs.h"
16654 /* System header to define __stub macros and hopefully few prototypes,
16655 which can conflict with char $ac_func(); below. */
16656 #include <assert.h>
16657 /* Override any gcc2 internal prototype to avoid an error. */
16658 /* We use char because int might match the return type of a gcc2
16659 builtin and then its argument prototype would still apply. */
16665 /* The GNU C library defines this for functions which it implements
16666 to always fail with ENOSYS. Some functions are actually named
16667 something starting with __ and the normal name is an alias. */
16668 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16676 if { (eval echo configure:16677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16678 eval "ac_cv_func_$ac_func=yes"
16680 echo "configure: failed program was:" >&5
16681 cat conftest.$ac_ext >&5
16683 eval "ac_cv_func_$ac_func=no"
16688 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16689 echo "$ac_t""yes" 1>&6
16690 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16691 cat >> confdefs.h <<EOF
16692 #define $ac_tr_func 1
16696 echo "$ac_t""no" 1>&6
16701 if test "$ac_cv_func_ctime_r" = no ; then
16702 ol_cv_func_ctime_r_nargs=0
16704 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16705 echo "configure:16706: checking number of arguments of ctime_r" >&5
16706 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16707 echo $ac_n "(cached) $ac_c" 1>&6
16709 cat > conftest.$ac_ext <<EOF
16710 #line 16711 "configure"
16711 #include "confdefs.h"
16714 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16717 if { (eval echo configure:16718: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16719 ol_cv_func_ctime_r_nargs3=yes
16721 echo "configure: failed program was:" >&5
16722 cat conftest.$ac_ext >&5
16724 ol_cv_func_ctime_r_nargs3=no
16728 cat > conftest.$ac_ext <<EOF
16729 #line 16730 "configure"
16730 #include "confdefs.h"
16733 time_t ti; char *buffer; ctime_r(&ti,buffer);
16736 if { (eval echo configure:16737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16738 ol_cv_func_ctime_r_nargs2=yes
16740 echo "configure: failed program was:" >&5
16741 cat conftest.$ac_ext >&5
16743 ol_cv_func_ctime_r_nargs2=no
16747 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16748 $ol_cv_func_ctime_r_nargs2 = no ; then
16750 ol_cv_func_ctime_r_nargs=3
16752 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16753 $ol_cv_func_ctime_r_nargs2 = yes ; then
16755 ol_cv_func_ctime_r_nargs=2
16758 ol_cv_func_ctime_r_nargs=0
16763 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16765 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16766 cat >> confdefs.h <<EOF
16767 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16774 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16775 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16776 echo "configure:16777: checking number of arguments of gethostbyname_r" >&5
16777 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16778 echo $ac_n "(cached) $ac_c" 1>&6
16780 cat > conftest.$ac_ext <<EOF
16781 #line 16782 "configure"
16782 #include "confdefs.h"
16783 #include <sys/types.h>
16784 #include <sys/socket.h>
16785 #include <netinet/in.h>
16787 #define BUFSIZE (sizeof(struct hostent)+10)
16789 struct hostent hent; char buffer[BUFSIZE];
16790 int bufsize=BUFSIZE;int h_errno;
16791 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16792 buffer, bufsize, &h_errno);
16795 if { (eval echo configure:16796: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16797 ol_cv_func_gethostbyname_r_nargs5=yes
16799 echo "configure: failed program was:" >&5
16800 cat conftest.$ac_ext >&5
16802 ol_cv_func_gethostbyname_r_nargs5=no
16806 cat > conftest.$ac_ext <<EOF
16807 #line 16808 "configure"
16808 #include "confdefs.h"
16809 #include <sys/types.h>
16810 #include <sys/socket.h>
16811 #include <netinet/in.h>
16813 #define BUFSIZE (sizeof(struct hostent)+10)
16815 struct hostent hent;struct hostent *rhent;
16816 char buffer[BUFSIZE];
16817 int bufsize=BUFSIZE;int h_errno;
16818 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16822 if { (eval echo configure:16823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16824 ol_cv_func_gethostbyname_r_nargs6=yes
16826 echo "configure: failed program was:" >&5
16827 cat conftest.$ac_ext >&5
16829 ol_cv_func_gethostbyname_r_nargs6=no
16833 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16834 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16836 ol_cv_func_gethostbyname_r_nargs=5
16838 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16839 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16841 ol_cv_func_gethostbyname_r_nargs=6
16844 ol_cv_func_gethostbyname_r_nargs=0
16849 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16850 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16851 cat >> confdefs.h <<EOF
16852 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16858 ol_cv_func_gethostbyname_r_nargs=0
16861 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16862 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16863 echo "configure:16864: checking number of arguments of gethostbyaddr_r" >&5
16864 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16865 echo $ac_n "(cached) $ac_c" 1>&6
16867 cat > conftest.$ac_ext <<EOF
16868 #line 16869 "configure"
16869 #include "confdefs.h"
16870 #include <sys/types.h>
16871 #include <sys/socket.h>
16872 #include <netinet/in.h>
16874 #define BUFSIZE (sizeof(struct hostent)+10)
16876 struct hostent hent; char buffer[BUFSIZE];
16877 struct in_addr add;
16878 size_t alen=sizeof(struct in_addr);
16879 int bufsize=BUFSIZE;int h_errno;
16880 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16881 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16884 if { (eval echo configure:16885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16886 ol_cv_func_gethostbyaddr_r_nargs7=yes
16888 echo "configure: failed program was:" >&5
16889 cat conftest.$ac_ext >&5
16891 ol_cv_func_gethostbyaddr_r_nargs7=no
16895 cat > conftest.$ac_ext <<EOF
16896 #line 16897 "configure"
16897 #include "confdefs.h"
16898 #include <sys/types.h>
16899 #include <sys/socket.h>
16900 #include <netinet/in.h>
16902 #define BUFSIZE (sizeof(struct hostent)+10)
16904 struct hostent hent;
16905 struct hostent *rhent; char buffer[BUFSIZE];
16906 struct in_addr add;
16907 size_t alen=sizeof(struct in_addr);
16908 int bufsize=BUFSIZE;int h_errno;
16909 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16910 alen, AF_INET, &hent, buffer, bufsize,
16914 if { (eval echo configure:16915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16916 ol_cv_func_gethostbyaddr_r_nargs8=yes
16918 echo "configure: failed program was:" >&5
16919 cat conftest.$ac_ext >&5
16921 ol_cv_func_gethostbyaddr_r_nargs8=no
16925 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16926 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16928 ol_cv_func_gethostbyaddr_r_nargs=7
16930 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16931 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16933 ol_cv_func_gethostbyaddr_r_nargs=8
16936 ol_cv_func_gethostbyaddr_r_nargs=0
16941 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16942 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16943 cat >> confdefs.h <<EOF
16944 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16950 ol_cv_func_gethostbyaddr_r_nargs=0
16955 if test $ol_with_ldbm_api = auto \
16956 -o $ol_with_ldbm_api = berkeley \
16957 -o $ol_with_ldbm_api = bcompat ; then
16959 if test $ol_with_ldbm_api = bcompat; then \
16960 for ac_hdr in db_185.h db.h
16962 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16963 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16964 echo "configure:16965: checking for $ac_hdr" >&5
16965 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16966 echo $ac_n "(cached) $ac_c" 1>&6
16968 cat > conftest.$ac_ext <<EOF
16969 #line 16970 "configure"
16970 #include "confdefs.h"
16973 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16974 { (eval echo configure:16975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16975 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16976 if test -z "$ac_err"; then
16978 eval "ac_cv_header_$ac_safe=yes"
16981 echo "configure: failed program was:" >&5
16982 cat conftest.$ac_ext >&5
16984 eval "ac_cv_header_$ac_safe=no"
16988 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16989 echo "$ac_t""yes" 1>&6
16990 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16991 cat >> confdefs.h <<EOF
16992 #define $ac_tr_hdr 1
16996 echo "$ac_t""no" 1>&6
17000 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
17001 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
17002 echo "configure:17003: checking if Berkeley DB header compatibility" >&5
17003 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
17004 echo $ac_n "(cached) $ac_c" 1>&6
17007 cat > conftest.$ac_ext <<EOF
17008 #line 17009 "configure"
17009 #include "confdefs.h"
17012 # include <db_185.h>
17017 /* this check could be improved */
17018 #ifndef DB_VERSION_MAJOR
17019 # define DB_VERSION_MAJOR 1
17022 #if DB_VERSION_MAJOR == 1
17027 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17028 egrep "__db_version_1" >/dev/null 2>&1; then
17030 ol_cv_header_db1=yes
17033 ol_cv_header_db1=no
17039 echo "$ac_t""$ol_cv_header_db1" 1>&6
17041 if test $ol_cv_header_db1 = yes ; then
17043 if test $ol_cv_lib_db = no ; then
17044 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17045 echo "configure:17046: checking for Berkeley DB link (default)" >&5
17046 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17047 echo $ac_n "(cached) $ac_c" 1>&6
17052 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17054 cat > conftest.$ac_ext <<EOF
17055 #line 17056 "configure"
17056 #include "confdefs.h"
17058 #ifdef HAVE_DB_185_H
17059 # include <db_185.h>
17064 #ifndef DB_VERSION_MAJOR
17065 # define DB_VERSION_MAJOR 1
17069 #define NULL ((void*)0)
17074 #if DB_VERSION_MAJOR > 1
17077 int major, minor, patch;
17079 version = db_version( &major, &minor, &patch );
17081 if( major != DB_VERSION_MAJOR ||
17082 minor < DB_VERSION_MINOR )
17084 printf("Berkeley DB version mismatch\n"
17085 "\theader: %s\n\tlibrary: %s\n",
17086 DB_VERSION_STRING, version);
17092 #if DB_VERSION_MAJOR > 2
17093 db_env_create( NULL, 0 );
17094 #elif DB_VERSION_MAJOR > 1
17095 db_appexit( NULL );
17097 (void) dbopen( NULL, 0, 0, 0, NULL);
17102 if { (eval echo configure:17103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17106 echo "configure: failed program was:" >&5
17107 cat conftest.$ac_ext >&5
17117 echo "$ac_t""$ol_cv_db_none" 1>&6
17119 if test $ol_cv_db_none = yes ; then
17124 if test $ol_cv_lib_db = no ; then
17125 echo $ac_n "checking for Berkeley DB link (-ldb43)""... $ac_c" 1>&6
17126 echo "configure:17127: checking for Berkeley DB link (-ldb43)" >&5
17127 if eval "test \"\${ol_cv_db_db43+set}\" = set"; then
17128 echo $ac_n "(cached) $ac_c" 1>&6
17133 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17135 cat > conftest.$ac_ext <<EOF
17136 #line 17137 "configure"
17137 #include "confdefs.h"
17139 #ifdef HAVE_DB_185_H
17140 # include <db_185.h>
17145 #ifndef DB_VERSION_MAJOR
17146 # define DB_VERSION_MAJOR 1
17150 #define NULL ((void*)0)
17155 #if DB_VERSION_MAJOR > 1
17158 int major, minor, patch;
17160 version = db_version( &major, &minor, &patch );
17162 if( major != DB_VERSION_MAJOR ||
17163 minor < DB_VERSION_MINOR )
17165 printf("Berkeley DB version mismatch\n"
17166 "\theader: %s\n\tlibrary: %s\n",
17167 DB_VERSION_STRING, version);
17173 #if DB_VERSION_MAJOR > 2
17174 db_env_create( NULL, 0 );
17175 #elif DB_VERSION_MAJOR > 1
17176 db_appexit( NULL );
17178 (void) dbopen( NULL, 0, 0, 0, NULL);
17183 if { (eval echo configure:17184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17187 echo "configure: failed program was:" >&5
17188 cat conftest.$ac_ext >&5
17198 echo "$ac_t""$ol_cv_db_db43" 1>&6
17200 if test $ol_cv_db_db43 = yes ; then
17201 ol_cv_lib_db=-ldb43
17205 if test $ol_cv_lib_db = no ; then
17206 echo $ac_n "checking for Berkeley DB link (-ldb-43)""... $ac_c" 1>&6
17207 echo "configure:17208: checking for Berkeley DB link (-ldb-43)" >&5
17208 if eval "test \"\${ol_cv_db_db_43+set}\" = set"; then
17209 echo $ac_n "(cached) $ac_c" 1>&6
17214 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17216 cat > conftest.$ac_ext <<EOF
17217 #line 17218 "configure"
17218 #include "confdefs.h"
17220 #ifdef HAVE_DB_185_H
17221 # include <db_185.h>
17226 #ifndef DB_VERSION_MAJOR
17227 # define DB_VERSION_MAJOR 1
17231 #define NULL ((void*)0)
17236 #if DB_VERSION_MAJOR > 1
17239 int major, minor, patch;
17241 version = db_version( &major, &minor, &patch );
17243 if( major != DB_VERSION_MAJOR ||
17244 minor < DB_VERSION_MINOR )
17246 printf("Berkeley DB version mismatch\n"
17247 "\theader: %s\n\tlibrary: %s\n",
17248 DB_VERSION_STRING, version);
17254 #if DB_VERSION_MAJOR > 2
17255 db_env_create( NULL, 0 );
17256 #elif DB_VERSION_MAJOR > 1
17257 db_appexit( NULL );
17259 (void) dbopen( NULL, 0, 0, 0, NULL);
17264 if { (eval echo configure:17265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17268 echo "configure: failed program was:" >&5
17269 cat conftest.$ac_ext >&5
17279 echo "$ac_t""$ol_cv_db_db_43" 1>&6
17281 if test $ol_cv_db_db_43 = yes ; then
17282 ol_cv_lib_db=-ldb-43
17286 if test $ol_cv_lib_db = no ; then
17287 echo $ac_n "checking for Berkeley DB link (-ldb-4.3)""... $ac_c" 1>&6
17288 echo "configure:17289: checking for Berkeley DB link (-ldb-4.3)" >&5
17289 if eval "test \"\${ol_cv_db_db_4_dot_3+set}\" = set"; then
17290 echo $ac_n "(cached) $ac_c" 1>&6
17295 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17297 cat > conftest.$ac_ext <<EOF
17298 #line 17299 "configure"
17299 #include "confdefs.h"
17301 #ifdef HAVE_DB_185_H
17302 # include <db_185.h>
17307 #ifndef DB_VERSION_MAJOR
17308 # define DB_VERSION_MAJOR 1
17312 #define NULL ((void*)0)
17317 #if DB_VERSION_MAJOR > 1
17320 int major, minor, patch;
17322 version = db_version( &major, &minor, &patch );
17324 if( major != DB_VERSION_MAJOR ||
17325 minor < DB_VERSION_MINOR )
17327 printf("Berkeley DB version mismatch\n"
17328 "\theader: %s\n\tlibrary: %s\n",
17329 DB_VERSION_STRING, version);
17335 #if DB_VERSION_MAJOR > 2
17336 db_env_create( NULL, 0 );
17337 #elif DB_VERSION_MAJOR > 1
17338 db_appexit( NULL );
17340 (void) dbopen( NULL, 0, 0, 0, NULL);
17345 if { (eval echo configure:17346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17347 ol_cv_db_db_4_dot_3=yes
17349 echo "configure: failed program was:" >&5
17350 cat conftest.$ac_ext >&5
17352 ol_cv_db_db_4_dot_3=no
17360 echo "$ac_t""$ol_cv_db_db_4_dot_3" 1>&6
17362 if test $ol_cv_db_db_4_dot_3 = yes ; then
17363 ol_cv_lib_db=-ldb-4.3
17367 if test $ol_cv_lib_db = no ; then
17368 echo $ac_n "checking for Berkeley DB link (-ldb-4-3)""... $ac_c" 1>&6
17369 echo "configure:17370: checking for Berkeley DB link (-ldb-4-3)" >&5
17370 if eval "test \"\${ol_cv_db_db_4_3+set}\" = set"; then
17371 echo $ac_n "(cached) $ac_c" 1>&6
17376 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17378 cat > conftest.$ac_ext <<EOF
17379 #line 17380 "configure"
17380 #include "confdefs.h"
17382 #ifdef HAVE_DB_185_H
17383 # include <db_185.h>
17388 #ifndef DB_VERSION_MAJOR
17389 # define DB_VERSION_MAJOR 1
17393 #define NULL ((void*)0)
17398 #if DB_VERSION_MAJOR > 1
17401 int major, minor, patch;
17403 version = db_version( &major, &minor, &patch );
17405 if( major != DB_VERSION_MAJOR ||
17406 minor < DB_VERSION_MINOR )
17408 printf("Berkeley DB version mismatch\n"
17409 "\theader: %s\n\tlibrary: %s\n",
17410 DB_VERSION_STRING, version);
17416 #if DB_VERSION_MAJOR > 2
17417 db_env_create( NULL, 0 );
17418 #elif DB_VERSION_MAJOR > 1
17419 db_appexit( NULL );
17421 (void) dbopen( NULL, 0, 0, 0, NULL);
17426 if { (eval echo configure:17427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17428 ol_cv_db_db_4_3=yes
17430 echo "configure: failed program was:" >&5
17431 cat conftest.$ac_ext >&5
17441 echo "$ac_t""$ol_cv_db_db_4_3" 1>&6
17443 if test $ol_cv_db_db_4_3 = yes ; then
17444 ol_cv_lib_db=-ldb-4-3
17448 if test $ol_cv_lib_db = no ; then
17449 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
17450 echo "configure:17451: checking for Berkeley DB link (-ldb42)" >&5
17451 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
17452 echo $ac_n "(cached) $ac_c" 1>&6
17457 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17459 cat > conftest.$ac_ext <<EOF
17460 #line 17461 "configure"
17461 #include "confdefs.h"
17463 #ifdef HAVE_DB_185_H
17464 # include <db_185.h>
17469 #ifndef DB_VERSION_MAJOR
17470 # define DB_VERSION_MAJOR 1
17474 #define NULL ((void*)0)
17479 #if DB_VERSION_MAJOR > 1
17482 int major, minor, patch;
17484 version = db_version( &major, &minor, &patch );
17486 if( major != DB_VERSION_MAJOR ||
17487 minor < DB_VERSION_MINOR )
17489 printf("Berkeley DB version mismatch\n"
17490 "\theader: %s\n\tlibrary: %s\n",
17491 DB_VERSION_STRING, version);
17497 #if DB_VERSION_MAJOR > 2
17498 db_env_create( NULL, 0 );
17499 #elif DB_VERSION_MAJOR > 1
17500 db_appexit( NULL );
17502 (void) dbopen( NULL, 0, 0, 0, NULL);
17507 if { (eval echo configure:17508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17511 echo "configure: failed program was:" >&5
17512 cat conftest.$ac_ext >&5
17522 echo "$ac_t""$ol_cv_db_db42" 1>&6
17524 if test $ol_cv_db_db42 = yes ; then
17525 ol_cv_lib_db=-ldb42
17529 if test $ol_cv_lib_db = no ; then
17530 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
17531 echo "configure:17532: checking for Berkeley DB link (-ldb-42)" >&5
17532 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
17533 echo $ac_n "(cached) $ac_c" 1>&6
17538 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17540 cat > conftest.$ac_ext <<EOF
17541 #line 17542 "configure"
17542 #include "confdefs.h"
17544 #ifdef HAVE_DB_185_H
17545 # include <db_185.h>
17550 #ifndef DB_VERSION_MAJOR
17551 # define DB_VERSION_MAJOR 1
17555 #define NULL ((void*)0)
17560 #if DB_VERSION_MAJOR > 1
17563 int major, minor, patch;
17565 version = db_version( &major, &minor, &patch );
17567 if( major != DB_VERSION_MAJOR ||
17568 minor < DB_VERSION_MINOR )
17570 printf("Berkeley DB version mismatch\n"
17571 "\theader: %s\n\tlibrary: %s\n",
17572 DB_VERSION_STRING, version);
17578 #if DB_VERSION_MAJOR > 2
17579 db_env_create( NULL, 0 );
17580 #elif DB_VERSION_MAJOR > 1
17581 db_appexit( NULL );
17583 (void) dbopen( NULL, 0, 0, 0, NULL);
17588 if { (eval echo configure:17589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17592 echo "configure: failed program was:" >&5
17593 cat conftest.$ac_ext >&5
17603 echo "$ac_t""$ol_cv_db_db_42" 1>&6
17605 if test $ol_cv_db_db_42 = yes ; then
17606 ol_cv_lib_db=-ldb-42
17610 if test $ol_cv_lib_db = no ; then
17611 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
17612 echo "configure:17613: checking for Berkeley DB link (-ldb-4.2)" >&5
17613 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
17614 echo $ac_n "(cached) $ac_c" 1>&6
17619 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17621 cat > conftest.$ac_ext <<EOF
17622 #line 17623 "configure"
17623 #include "confdefs.h"
17625 #ifdef HAVE_DB_185_H
17626 # include <db_185.h>
17631 #ifndef DB_VERSION_MAJOR
17632 # define DB_VERSION_MAJOR 1
17636 #define NULL ((void*)0)
17641 #if DB_VERSION_MAJOR > 1
17644 int major, minor, patch;
17646 version = db_version( &major, &minor, &patch );
17648 if( major != DB_VERSION_MAJOR ||
17649 minor < DB_VERSION_MINOR )
17651 printf("Berkeley DB version mismatch\n"
17652 "\theader: %s\n\tlibrary: %s\n",
17653 DB_VERSION_STRING, version);
17659 #if DB_VERSION_MAJOR > 2
17660 db_env_create( NULL, 0 );
17661 #elif DB_VERSION_MAJOR > 1
17662 db_appexit( NULL );
17664 (void) dbopen( NULL, 0, 0, 0, NULL);
17669 if { (eval echo configure:17670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17671 ol_cv_db_db_4_dot_2=yes
17673 echo "configure: failed program was:" >&5
17674 cat conftest.$ac_ext >&5
17676 ol_cv_db_db_4_dot_2=no
17684 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
17686 if test $ol_cv_db_db_4_dot_2 = yes ; then
17687 ol_cv_lib_db=-ldb-4.2
17691 if test $ol_cv_lib_db = no ; then
17692 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
17693 echo "configure:17694: checking for Berkeley DB link (-ldb-4-2)" >&5
17694 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
17695 echo $ac_n "(cached) $ac_c" 1>&6
17700 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17702 cat > conftest.$ac_ext <<EOF
17703 #line 17704 "configure"
17704 #include "confdefs.h"
17706 #ifdef HAVE_DB_185_H
17707 # include <db_185.h>
17712 #ifndef DB_VERSION_MAJOR
17713 # define DB_VERSION_MAJOR 1
17717 #define NULL ((void*)0)
17722 #if DB_VERSION_MAJOR > 1
17725 int major, minor, patch;
17727 version = db_version( &major, &minor, &patch );
17729 if( major != DB_VERSION_MAJOR ||
17730 minor < DB_VERSION_MINOR )
17732 printf("Berkeley DB version mismatch\n"
17733 "\theader: %s\n\tlibrary: %s\n",
17734 DB_VERSION_STRING, version);
17740 #if DB_VERSION_MAJOR > 2
17741 db_env_create( NULL, 0 );
17742 #elif DB_VERSION_MAJOR > 1
17743 db_appexit( NULL );
17745 (void) dbopen( NULL, 0, 0, 0, NULL);
17750 if { (eval echo configure:17751: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17752 ol_cv_db_db_4_2=yes
17754 echo "configure: failed program was:" >&5
17755 cat conftest.$ac_ext >&5
17765 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
17767 if test $ol_cv_db_db_4_2 = yes ; then
17768 ol_cv_lib_db=-ldb-4-2
17772 if test $ol_cv_lib_db = no ; then
17773 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17774 echo "configure:17775: checking for Berkeley DB link (-ldb-4)" >&5
17775 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17776 echo $ac_n "(cached) $ac_c" 1>&6
17781 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17783 cat > conftest.$ac_ext <<EOF
17784 #line 17785 "configure"
17785 #include "confdefs.h"
17787 #ifdef HAVE_DB_185_H
17788 # include <db_185.h>
17793 #ifndef DB_VERSION_MAJOR
17794 # define DB_VERSION_MAJOR 1
17798 #define NULL ((void*)0)
17803 #if DB_VERSION_MAJOR > 1
17806 int major, minor, patch;
17808 version = db_version( &major, &minor, &patch );
17810 if( major != DB_VERSION_MAJOR ||
17811 minor < DB_VERSION_MINOR )
17813 printf("Berkeley DB version mismatch\n"
17814 "\theader: %s\n\tlibrary: %s\n",
17815 DB_VERSION_STRING, version);
17821 #if DB_VERSION_MAJOR > 2
17822 db_env_create( NULL, 0 );
17823 #elif DB_VERSION_MAJOR > 1
17824 db_appexit( NULL );
17826 (void) dbopen( NULL, 0, 0, 0, NULL);
17831 if { (eval echo configure:17832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17835 echo "configure: failed program was:" >&5
17836 cat conftest.$ac_ext >&5
17846 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17848 if test $ol_cv_db_db_4 = yes ; then
17849 ol_cv_lib_db=-ldb-4
17853 if test $ol_cv_lib_db = no ; then
17854 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17855 echo "configure:17856: checking for Berkeley DB link (-ldb4)" >&5
17856 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17857 echo $ac_n "(cached) $ac_c" 1>&6
17862 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17864 cat > conftest.$ac_ext <<EOF
17865 #line 17866 "configure"
17866 #include "confdefs.h"
17868 #ifdef HAVE_DB_185_H
17869 # include <db_185.h>
17874 #ifndef DB_VERSION_MAJOR
17875 # define DB_VERSION_MAJOR 1
17879 #define NULL ((void*)0)
17884 #if DB_VERSION_MAJOR > 1
17887 int major, minor, patch;
17889 version = db_version( &major, &minor, &patch );
17891 if( major != DB_VERSION_MAJOR ||
17892 minor < DB_VERSION_MINOR )
17894 printf("Berkeley DB version mismatch\n"
17895 "\theader: %s\n\tlibrary: %s\n",
17896 DB_VERSION_STRING, version);
17902 #if DB_VERSION_MAJOR > 2
17903 db_env_create( NULL, 0 );
17904 #elif DB_VERSION_MAJOR > 1
17905 db_appexit( NULL );
17907 (void) dbopen( NULL, 0, 0, 0, NULL);
17912 if { (eval echo configure:17913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17916 echo "configure: failed program was:" >&5
17917 cat conftest.$ac_ext >&5
17927 echo "$ac_t""$ol_cv_db_db4" 1>&6
17929 if test $ol_cv_db_db4 = yes ; then
17934 if test $ol_cv_lib_db = no ; then
17935 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17936 echo "configure:17937: checking for Berkeley DB link (-ldb)" >&5
17937 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17938 echo $ac_n "(cached) $ac_c" 1>&6
17943 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17945 cat > conftest.$ac_ext <<EOF
17946 #line 17947 "configure"
17947 #include "confdefs.h"
17949 #ifdef HAVE_DB_185_H
17950 # include <db_185.h>
17955 #ifndef DB_VERSION_MAJOR
17956 # define DB_VERSION_MAJOR 1
17960 #define NULL ((void*)0)
17965 #if DB_VERSION_MAJOR > 1
17968 int major, minor, patch;
17970 version = db_version( &major, &minor, &patch );
17972 if( major != DB_VERSION_MAJOR ||
17973 minor < DB_VERSION_MINOR )
17975 printf("Berkeley DB version mismatch\n"
17976 "\theader: %s\n\tlibrary: %s\n",
17977 DB_VERSION_STRING, version);
17983 #if DB_VERSION_MAJOR > 2
17984 db_env_create( NULL, 0 );
17985 #elif DB_VERSION_MAJOR > 1
17986 db_appexit( NULL );
17988 (void) dbopen( NULL, 0, 0, 0, NULL);
17993 if { (eval echo configure:17994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17997 echo "configure: failed program was:" >&5
17998 cat conftest.$ac_ext >&5
18008 echo "$ac_t""$ol_cv_db_db" 1>&6
18010 if test $ol_cv_db_db = yes ; then
18015 if test $ol_cv_lib_db = no ; then
18016 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
18017 echo "configure:18018: checking for Berkeley DB link (-ldb41)" >&5
18018 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
18019 echo $ac_n "(cached) $ac_c" 1>&6
18024 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18026 cat > conftest.$ac_ext <<EOF
18027 #line 18028 "configure"
18028 #include "confdefs.h"
18030 #ifdef HAVE_DB_185_H
18031 # include <db_185.h>
18036 #ifndef DB_VERSION_MAJOR
18037 # define DB_VERSION_MAJOR 1
18041 #define NULL ((void*)0)
18046 #if DB_VERSION_MAJOR > 1
18049 int major, minor, patch;
18051 version = db_version( &major, &minor, &patch );
18053 if( major != DB_VERSION_MAJOR ||
18054 minor < DB_VERSION_MINOR )
18056 printf("Berkeley DB version mismatch\n"
18057 "\theader: %s\n\tlibrary: %s\n",
18058 DB_VERSION_STRING, version);
18064 #if DB_VERSION_MAJOR > 2
18065 db_env_create( NULL, 0 );
18066 #elif DB_VERSION_MAJOR > 1
18067 db_appexit( NULL );
18069 (void) dbopen( NULL, 0, 0, 0, NULL);
18074 if { (eval echo configure:18075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18078 echo "configure: failed program was:" >&5
18079 cat conftest.$ac_ext >&5
18089 echo "$ac_t""$ol_cv_db_db41" 1>&6
18091 if test $ol_cv_db_db41 = yes ; then
18092 ol_cv_lib_db=-ldb41
18096 if test $ol_cv_lib_db = no ; then
18097 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
18098 echo "configure:18099: checking for Berkeley DB link (-ldb-41)" >&5
18099 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
18100 echo $ac_n "(cached) $ac_c" 1>&6
18105 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18107 cat > conftest.$ac_ext <<EOF
18108 #line 18109 "configure"
18109 #include "confdefs.h"
18111 #ifdef HAVE_DB_185_H
18112 # include <db_185.h>
18117 #ifndef DB_VERSION_MAJOR
18118 # define DB_VERSION_MAJOR 1
18122 #define NULL ((void*)0)
18127 #if DB_VERSION_MAJOR > 1
18130 int major, minor, patch;
18132 version = db_version( &major, &minor, &patch );
18134 if( major != DB_VERSION_MAJOR ||
18135 minor < DB_VERSION_MINOR )
18137 printf("Berkeley DB version mismatch\n"
18138 "\theader: %s\n\tlibrary: %s\n",
18139 DB_VERSION_STRING, version);
18145 #if DB_VERSION_MAJOR > 2
18146 db_env_create( NULL, 0 );
18147 #elif DB_VERSION_MAJOR > 1
18148 db_appexit( NULL );
18150 (void) dbopen( NULL, 0, 0, 0, NULL);
18155 if { (eval echo configure:18156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18159 echo "configure: failed program was:" >&5
18160 cat conftest.$ac_ext >&5
18170 echo "$ac_t""$ol_cv_db_db_41" 1>&6
18172 if test $ol_cv_db_db_41 = yes ; then
18173 ol_cv_lib_db=-ldb-41
18177 if test $ol_cv_lib_db = no ; then
18178 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
18179 echo "configure:18180: checking for Berkeley DB link (-ldb-4.1)" >&5
18180 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
18181 echo $ac_n "(cached) $ac_c" 1>&6
18186 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18188 cat > conftest.$ac_ext <<EOF
18189 #line 18190 "configure"
18190 #include "confdefs.h"
18192 #ifdef HAVE_DB_185_H
18193 # include <db_185.h>
18198 #ifndef DB_VERSION_MAJOR
18199 # define DB_VERSION_MAJOR 1
18203 #define NULL ((void*)0)
18208 #if DB_VERSION_MAJOR > 1
18211 int major, minor, patch;
18213 version = db_version( &major, &minor, &patch );
18215 if( major != DB_VERSION_MAJOR ||
18216 minor < DB_VERSION_MINOR )
18218 printf("Berkeley DB version mismatch\n"
18219 "\theader: %s\n\tlibrary: %s\n",
18220 DB_VERSION_STRING, version);
18226 #if DB_VERSION_MAJOR > 2
18227 db_env_create( NULL, 0 );
18228 #elif DB_VERSION_MAJOR > 1
18229 db_appexit( NULL );
18231 (void) dbopen( NULL, 0, 0, 0, NULL);
18236 if { (eval echo configure:18237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18238 ol_cv_db_db_4_dot_1=yes
18240 echo "configure: failed program was:" >&5
18241 cat conftest.$ac_ext >&5
18243 ol_cv_db_db_4_dot_1=no
18251 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
18253 if test $ol_cv_db_db_4_dot_1 = yes ; then
18254 ol_cv_lib_db=-ldb-4.1
18258 if test $ol_cv_lib_db = no ; then
18259 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
18260 echo "configure:18261: checking for Berkeley DB link (-ldb-4-1)" >&5
18261 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
18262 echo $ac_n "(cached) $ac_c" 1>&6
18267 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18269 cat > conftest.$ac_ext <<EOF
18270 #line 18271 "configure"
18271 #include "confdefs.h"
18273 #ifdef HAVE_DB_185_H
18274 # include <db_185.h>
18279 #ifndef DB_VERSION_MAJOR
18280 # define DB_VERSION_MAJOR 1
18284 #define NULL ((void*)0)
18289 #if DB_VERSION_MAJOR > 1
18292 int major, minor, patch;
18294 version = db_version( &major, &minor, &patch );
18296 if( major != DB_VERSION_MAJOR ||
18297 minor < DB_VERSION_MINOR )
18299 printf("Berkeley DB version mismatch\n"
18300 "\theader: %s\n\tlibrary: %s\n",
18301 DB_VERSION_STRING, version);
18307 #if DB_VERSION_MAJOR > 2
18308 db_env_create( NULL, 0 );
18309 #elif DB_VERSION_MAJOR > 1
18310 db_appexit( NULL );
18312 (void) dbopen( NULL, 0, 0, 0, NULL);
18317 if { (eval echo configure:18318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18319 ol_cv_db_db_4_1=yes
18321 echo "configure: failed program was:" >&5
18322 cat conftest.$ac_ext >&5
18332 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
18334 if test $ol_cv_db_db_4_1 = yes ; then
18335 ol_cv_lib_db=-ldb-4-1
18339 if test $ol_cv_lib_db = no ; then
18340 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
18341 echo "configure:18342: checking for Berkeley DB link (-ldb3)" >&5
18342 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
18343 echo $ac_n "(cached) $ac_c" 1>&6
18348 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18350 cat > conftest.$ac_ext <<EOF
18351 #line 18352 "configure"
18352 #include "confdefs.h"
18354 #ifdef HAVE_DB_185_H
18355 # include <db_185.h>
18360 #ifndef DB_VERSION_MAJOR
18361 # define DB_VERSION_MAJOR 1
18365 #define NULL ((void*)0)
18370 #if DB_VERSION_MAJOR > 1
18373 int major, minor, patch;
18375 version = db_version( &major, &minor, &patch );
18377 if( major != DB_VERSION_MAJOR ||
18378 minor < DB_VERSION_MINOR )
18380 printf("Berkeley DB version mismatch\n"
18381 "\theader: %s\n\tlibrary: %s\n",
18382 DB_VERSION_STRING, version);
18388 #if DB_VERSION_MAJOR > 2
18389 db_env_create( NULL, 0 );
18390 #elif DB_VERSION_MAJOR > 1
18391 db_appexit( NULL );
18393 (void) dbopen( NULL, 0, 0, 0, NULL);
18398 if { (eval echo configure:18399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18402 echo "configure: failed program was:" >&5
18403 cat conftest.$ac_ext >&5
18413 echo "$ac_t""$ol_cv_db_db3" 1>&6
18415 if test $ol_cv_db_db3 = yes ; then
18420 if test $ol_cv_lib_db = no ; then
18421 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
18422 echo "configure:18423: checking for Berkeley DB link (-ldb-3)" >&5
18423 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
18424 echo $ac_n "(cached) $ac_c" 1>&6
18429 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18431 cat > conftest.$ac_ext <<EOF
18432 #line 18433 "configure"
18433 #include "confdefs.h"
18435 #ifdef HAVE_DB_185_H
18436 # include <db_185.h>
18441 #ifndef DB_VERSION_MAJOR
18442 # define DB_VERSION_MAJOR 1
18446 #define NULL ((void*)0)
18451 #if DB_VERSION_MAJOR > 1
18454 int major, minor, patch;
18456 version = db_version( &major, &minor, &patch );
18458 if( major != DB_VERSION_MAJOR ||
18459 minor < DB_VERSION_MINOR )
18461 printf("Berkeley DB version mismatch\n"
18462 "\theader: %s\n\tlibrary: %s\n",
18463 DB_VERSION_STRING, version);
18469 #if DB_VERSION_MAJOR > 2
18470 db_env_create( NULL, 0 );
18471 #elif DB_VERSION_MAJOR > 1
18472 db_appexit( NULL );
18474 (void) dbopen( NULL, 0, 0, 0, NULL);
18479 if { (eval echo configure:18480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18483 echo "configure: failed program was:" >&5
18484 cat conftest.$ac_ext >&5
18494 echo "$ac_t""$ol_cv_db_db_3" 1>&6
18496 if test $ol_cv_db_db_3 = yes ; then
18497 ol_cv_lib_db=-ldb-3
18501 if test $ol_cv_lib_db = no ; then
18502 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
18503 echo "configure:18504: checking for Berkeley DB link (-ldb2)" >&5
18504 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
18505 echo $ac_n "(cached) $ac_c" 1>&6
18510 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18512 cat > conftest.$ac_ext <<EOF
18513 #line 18514 "configure"
18514 #include "confdefs.h"
18516 #ifdef HAVE_DB_185_H
18517 # include <db_185.h>
18522 #ifndef DB_VERSION_MAJOR
18523 # define DB_VERSION_MAJOR 1
18527 #define NULL ((void*)0)
18532 #if DB_VERSION_MAJOR > 1
18535 int major, minor, patch;
18537 version = db_version( &major, &minor, &patch );
18539 if( major != DB_VERSION_MAJOR ||
18540 minor < DB_VERSION_MINOR )
18542 printf("Berkeley DB version mismatch\n"
18543 "\theader: %s\n\tlibrary: %s\n",
18544 DB_VERSION_STRING, version);
18550 #if DB_VERSION_MAJOR > 2
18551 db_env_create( NULL, 0 );
18552 #elif DB_VERSION_MAJOR > 1
18553 db_appexit( NULL );
18555 (void) dbopen( NULL, 0, 0, 0, NULL);
18560 if { (eval echo configure:18561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18564 echo "configure: failed program was:" >&5
18565 cat conftest.$ac_ext >&5
18575 echo "$ac_t""$ol_cv_db_db2" 1>&6
18577 if test $ol_cv_db_db2 = yes ; then
18582 if test $ol_cv_lib_db = no ; then
18583 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
18584 echo "configure:18585: checking for Berkeley DB link (-ldb-2)" >&5
18585 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
18586 echo $ac_n "(cached) $ac_c" 1>&6
18591 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18593 cat > conftest.$ac_ext <<EOF
18594 #line 18595 "configure"
18595 #include "confdefs.h"
18597 #ifdef HAVE_DB_185_H
18598 # include <db_185.h>
18603 #ifndef DB_VERSION_MAJOR
18604 # define DB_VERSION_MAJOR 1
18608 #define NULL ((void*)0)
18613 #if DB_VERSION_MAJOR > 1
18616 int major, minor, patch;
18618 version = db_version( &major, &minor, &patch );
18620 if( major != DB_VERSION_MAJOR ||
18621 minor < DB_VERSION_MINOR )
18623 printf("Berkeley DB version mismatch\n"
18624 "\theader: %s\n\tlibrary: %s\n",
18625 DB_VERSION_STRING, version);
18631 #if DB_VERSION_MAJOR > 2
18632 db_env_create( NULL, 0 );
18633 #elif DB_VERSION_MAJOR > 1
18634 db_appexit( NULL );
18636 (void) dbopen( NULL, 0, 0, 0, NULL);
18641 if { (eval echo configure:18642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18645 echo "configure: failed program was:" >&5
18646 cat conftest.$ac_ext >&5
18656 echo "$ac_t""$ol_cv_db_db_2" 1>&6
18658 if test $ol_cv_db_db_2 = yes ; then
18659 ol_cv_lib_db=-ldb-2
18663 if test $ol_cv_lib_db = no ; then
18664 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18665 echo "configure:18666: checking for Berkeley DB link (-ldb1)" >&5
18666 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18667 echo $ac_n "(cached) $ac_c" 1>&6
18672 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18674 cat > conftest.$ac_ext <<EOF
18675 #line 18676 "configure"
18676 #include "confdefs.h"
18678 #ifdef HAVE_DB_185_H
18679 # include <db_185.h>
18684 #ifndef DB_VERSION_MAJOR
18685 # define DB_VERSION_MAJOR 1
18689 #define NULL ((void*)0)
18694 #if DB_VERSION_MAJOR > 1
18697 int major, minor, patch;
18699 version = db_version( &major, &minor, &patch );
18701 if( major != DB_VERSION_MAJOR ||
18702 minor < DB_VERSION_MINOR )
18704 printf("Berkeley DB version mismatch\n"
18705 "\theader: %s\n\tlibrary: %s\n",
18706 DB_VERSION_STRING, version);
18712 #if DB_VERSION_MAJOR > 2
18713 db_env_create( NULL, 0 );
18714 #elif DB_VERSION_MAJOR > 1
18715 db_appexit( NULL );
18717 (void) dbopen( NULL, 0, 0, 0, NULL);
18722 if { (eval echo configure:18723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18726 echo "configure: failed program was:" >&5
18727 cat conftest.$ac_ext >&5
18737 echo "$ac_t""$ol_cv_db_db1" 1>&6
18739 if test $ol_cv_db_db1 = yes ; then
18744 if test $ol_cv_lib_db = no ; then
18745 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18746 echo "configure:18747: checking for Berkeley DB link (-ldb-1)" >&5
18747 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18748 echo $ac_n "(cached) $ac_c" 1>&6
18753 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18755 cat > conftest.$ac_ext <<EOF
18756 #line 18757 "configure"
18757 #include "confdefs.h"
18759 #ifdef HAVE_DB_185_H
18760 # include <db_185.h>
18765 #ifndef DB_VERSION_MAJOR
18766 # define DB_VERSION_MAJOR 1
18770 #define NULL ((void*)0)
18775 #if DB_VERSION_MAJOR > 1
18778 int major, minor, patch;
18780 version = db_version( &major, &minor, &patch );
18782 if( major != DB_VERSION_MAJOR ||
18783 minor < DB_VERSION_MINOR )
18785 printf("Berkeley DB version mismatch\n"
18786 "\theader: %s\n\tlibrary: %s\n",
18787 DB_VERSION_STRING, version);
18793 #if DB_VERSION_MAJOR > 2
18794 db_env_create( NULL, 0 );
18795 #elif DB_VERSION_MAJOR > 1
18796 db_appexit( NULL );
18798 (void) dbopen( NULL, 0, 0, 0, NULL);
18803 if { (eval echo configure:18804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18807 echo "configure: failed program was:" >&5
18808 cat conftest.$ac_ext >&5
18818 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18820 if test $ol_cv_db_db_1 = yes ; then
18821 ol_cv_lib_db=-ldb-1
18826 if test "$ol_cv_lib_db" != no ; then
18827 ol_cv_berkeley_db=yes
18833 ol_cv_berkeley_db=no
18836 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18837 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18838 echo "configure:18839: checking for $ac_hdr" >&5
18839 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18840 echo $ac_n "(cached) $ac_c" 1>&6
18842 cat > conftest.$ac_ext <<EOF
18843 #line 18844 "configure"
18844 #include "confdefs.h"
18847 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18848 { (eval echo configure:18849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18849 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18850 if test -z "$ac_err"; then
18852 eval "ac_cv_header_$ac_safe=yes"
18855 echo "configure: failed program was:" >&5
18856 cat conftest.$ac_ext >&5
18858 eval "ac_cv_header_$ac_safe=no"
18862 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18863 echo "$ac_t""yes" 1>&6
18864 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18865 cat >> confdefs.h <<EOF
18866 #define $ac_tr_hdr 1
18870 echo "$ac_t""no" 1>&6
18874 if test $ac_cv_header_db_h = yes; then
18876 if test $ol_cv_lib_db = no ; then
18877 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
18878 echo "configure:18879: checking for Berkeley DB link (default)" >&5
18879 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
18880 echo $ac_n "(cached) $ac_c" 1>&6
18885 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18887 cat > conftest.$ac_ext <<EOF
18888 #line 18889 "configure"
18889 #include "confdefs.h"
18891 #ifdef HAVE_DB_185_H
18892 # include <db_185.h>
18897 #ifndef DB_VERSION_MAJOR
18898 # define DB_VERSION_MAJOR 1
18902 #define NULL ((void*)0)
18907 #if DB_VERSION_MAJOR > 1
18910 int major, minor, patch;
18912 version = db_version( &major, &minor, &patch );
18914 if( major != DB_VERSION_MAJOR ||
18915 minor < DB_VERSION_MINOR )
18917 printf("Berkeley DB version mismatch\n"
18918 "\theader: %s\n\tlibrary: %s\n",
18919 DB_VERSION_STRING, version);
18925 #if DB_VERSION_MAJOR > 2
18926 db_env_create( NULL, 0 );
18927 #elif DB_VERSION_MAJOR > 1
18928 db_appexit( NULL );
18930 (void) dbopen( NULL, 0, 0, 0, NULL);
18935 if { (eval echo configure:18936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18939 echo "configure: failed program was:" >&5
18940 cat conftest.$ac_ext >&5
18950 echo "$ac_t""$ol_cv_db_none" 1>&6
18952 if test $ol_cv_db_none = yes ; then
18957 if test $ol_cv_lib_db = no ; then
18958 echo $ac_n "checking for Berkeley DB link (-ldb43)""... $ac_c" 1>&6
18959 echo "configure:18960: checking for Berkeley DB link (-ldb43)" >&5
18960 if eval "test \"\${ol_cv_db_db43+set}\" = set"; then
18961 echo $ac_n "(cached) $ac_c" 1>&6
18966 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18968 cat > conftest.$ac_ext <<EOF
18969 #line 18970 "configure"
18970 #include "confdefs.h"
18972 #ifdef HAVE_DB_185_H
18973 # include <db_185.h>
18978 #ifndef DB_VERSION_MAJOR
18979 # define DB_VERSION_MAJOR 1
18983 #define NULL ((void*)0)
18988 #if DB_VERSION_MAJOR > 1
18991 int major, minor, patch;
18993 version = db_version( &major, &minor, &patch );
18995 if( major != DB_VERSION_MAJOR ||
18996 minor < DB_VERSION_MINOR )
18998 printf("Berkeley DB version mismatch\n"
18999 "\theader: %s\n\tlibrary: %s\n",
19000 DB_VERSION_STRING, version);
19006 #if DB_VERSION_MAJOR > 2
19007 db_env_create( NULL, 0 );
19008 #elif DB_VERSION_MAJOR > 1
19009 db_appexit( NULL );
19011 (void) dbopen( NULL, 0, 0, 0, NULL);
19016 if { (eval echo configure:19017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19020 echo "configure: failed program was:" >&5
19021 cat conftest.$ac_ext >&5
19031 echo "$ac_t""$ol_cv_db_db43" 1>&6
19033 if test $ol_cv_db_db43 = yes ; then
19034 ol_cv_lib_db=-ldb43
19038 if test $ol_cv_lib_db = no ; then
19039 echo $ac_n "checking for Berkeley DB link (-ldb-43)""... $ac_c" 1>&6
19040 echo "configure:19041: checking for Berkeley DB link (-ldb-43)" >&5
19041 if eval "test \"\${ol_cv_db_db_43+set}\" = set"; then
19042 echo $ac_n "(cached) $ac_c" 1>&6
19047 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19049 cat > conftest.$ac_ext <<EOF
19050 #line 19051 "configure"
19051 #include "confdefs.h"
19053 #ifdef HAVE_DB_185_H
19054 # include <db_185.h>
19059 #ifndef DB_VERSION_MAJOR
19060 # define DB_VERSION_MAJOR 1
19064 #define NULL ((void*)0)
19069 #if DB_VERSION_MAJOR > 1
19072 int major, minor, patch;
19074 version = db_version( &major, &minor, &patch );
19076 if( major != DB_VERSION_MAJOR ||
19077 minor < DB_VERSION_MINOR )
19079 printf("Berkeley DB version mismatch\n"
19080 "\theader: %s\n\tlibrary: %s\n",
19081 DB_VERSION_STRING, version);
19087 #if DB_VERSION_MAJOR > 2
19088 db_env_create( NULL, 0 );
19089 #elif DB_VERSION_MAJOR > 1
19090 db_appexit( NULL );
19092 (void) dbopen( NULL, 0, 0, 0, NULL);
19097 if { (eval echo configure:19098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19101 echo "configure: failed program was:" >&5
19102 cat conftest.$ac_ext >&5
19112 echo "$ac_t""$ol_cv_db_db_43" 1>&6
19114 if test $ol_cv_db_db_43 = yes ; then
19115 ol_cv_lib_db=-ldb-43
19119 if test $ol_cv_lib_db = no ; then
19120 echo $ac_n "checking for Berkeley DB link (-ldb-4.3)""... $ac_c" 1>&6
19121 echo "configure:19122: checking for Berkeley DB link (-ldb-4.3)" >&5
19122 if eval "test \"\${ol_cv_db_db_4_dot_3+set}\" = set"; then
19123 echo $ac_n "(cached) $ac_c" 1>&6
19128 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19130 cat > conftest.$ac_ext <<EOF
19131 #line 19132 "configure"
19132 #include "confdefs.h"
19134 #ifdef HAVE_DB_185_H
19135 # include <db_185.h>
19140 #ifndef DB_VERSION_MAJOR
19141 # define DB_VERSION_MAJOR 1
19145 #define NULL ((void*)0)
19150 #if DB_VERSION_MAJOR > 1
19153 int major, minor, patch;
19155 version = db_version( &major, &minor, &patch );
19157 if( major != DB_VERSION_MAJOR ||
19158 minor < DB_VERSION_MINOR )
19160 printf("Berkeley DB version mismatch\n"
19161 "\theader: %s\n\tlibrary: %s\n",
19162 DB_VERSION_STRING, version);
19168 #if DB_VERSION_MAJOR > 2
19169 db_env_create( NULL, 0 );
19170 #elif DB_VERSION_MAJOR > 1
19171 db_appexit( NULL );
19173 (void) dbopen( NULL, 0, 0, 0, NULL);
19178 if { (eval echo configure:19179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19180 ol_cv_db_db_4_dot_3=yes
19182 echo "configure: failed program was:" >&5
19183 cat conftest.$ac_ext >&5
19185 ol_cv_db_db_4_dot_3=no
19193 echo "$ac_t""$ol_cv_db_db_4_dot_3" 1>&6
19195 if test $ol_cv_db_db_4_dot_3 = yes ; then
19196 ol_cv_lib_db=-ldb-4.3
19200 if test $ol_cv_lib_db = no ; then
19201 echo $ac_n "checking for Berkeley DB link (-ldb-4-3)""... $ac_c" 1>&6
19202 echo "configure:19203: checking for Berkeley DB link (-ldb-4-3)" >&5
19203 if eval "test \"\${ol_cv_db_db_4_3+set}\" = set"; then
19204 echo $ac_n "(cached) $ac_c" 1>&6
19209 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19211 cat > conftest.$ac_ext <<EOF
19212 #line 19213 "configure"
19213 #include "confdefs.h"
19215 #ifdef HAVE_DB_185_H
19216 # include <db_185.h>
19221 #ifndef DB_VERSION_MAJOR
19222 # define DB_VERSION_MAJOR 1
19226 #define NULL ((void*)0)
19231 #if DB_VERSION_MAJOR > 1
19234 int major, minor, patch;
19236 version = db_version( &major, &minor, &patch );
19238 if( major != DB_VERSION_MAJOR ||
19239 minor < DB_VERSION_MINOR )
19241 printf("Berkeley DB version mismatch\n"
19242 "\theader: %s\n\tlibrary: %s\n",
19243 DB_VERSION_STRING, version);
19249 #if DB_VERSION_MAJOR > 2
19250 db_env_create( NULL, 0 );
19251 #elif DB_VERSION_MAJOR > 1
19252 db_appexit( NULL );
19254 (void) dbopen( NULL, 0, 0, 0, NULL);
19259 if { (eval echo configure:19260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19261 ol_cv_db_db_4_3=yes
19263 echo "configure: failed program was:" >&5
19264 cat conftest.$ac_ext >&5
19274 echo "$ac_t""$ol_cv_db_db_4_3" 1>&6
19276 if test $ol_cv_db_db_4_3 = yes ; then
19277 ol_cv_lib_db=-ldb-4-3
19281 if test $ol_cv_lib_db = no ; then
19282 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
19283 echo "configure:19284: checking for Berkeley DB link (-ldb42)" >&5
19284 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
19285 echo $ac_n "(cached) $ac_c" 1>&6
19290 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19292 cat > conftest.$ac_ext <<EOF
19293 #line 19294 "configure"
19294 #include "confdefs.h"
19296 #ifdef HAVE_DB_185_H
19297 # include <db_185.h>
19302 #ifndef DB_VERSION_MAJOR
19303 # define DB_VERSION_MAJOR 1
19307 #define NULL ((void*)0)
19312 #if DB_VERSION_MAJOR > 1
19315 int major, minor, patch;
19317 version = db_version( &major, &minor, &patch );
19319 if( major != DB_VERSION_MAJOR ||
19320 minor < DB_VERSION_MINOR )
19322 printf("Berkeley DB version mismatch\n"
19323 "\theader: %s\n\tlibrary: %s\n",
19324 DB_VERSION_STRING, version);
19330 #if DB_VERSION_MAJOR > 2
19331 db_env_create( NULL, 0 );
19332 #elif DB_VERSION_MAJOR > 1
19333 db_appexit( NULL );
19335 (void) dbopen( NULL, 0, 0, 0, NULL);
19340 if { (eval echo configure:19341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19344 echo "configure: failed program was:" >&5
19345 cat conftest.$ac_ext >&5
19355 echo "$ac_t""$ol_cv_db_db42" 1>&6
19357 if test $ol_cv_db_db42 = yes ; then
19358 ol_cv_lib_db=-ldb42
19362 if test $ol_cv_lib_db = no ; then
19363 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
19364 echo "configure:19365: checking for Berkeley DB link (-ldb-42)" >&5
19365 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
19366 echo $ac_n "(cached) $ac_c" 1>&6
19371 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19373 cat > conftest.$ac_ext <<EOF
19374 #line 19375 "configure"
19375 #include "confdefs.h"
19377 #ifdef HAVE_DB_185_H
19378 # include <db_185.h>
19383 #ifndef DB_VERSION_MAJOR
19384 # define DB_VERSION_MAJOR 1
19388 #define NULL ((void*)0)
19393 #if DB_VERSION_MAJOR > 1
19396 int major, minor, patch;
19398 version = db_version( &major, &minor, &patch );
19400 if( major != DB_VERSION_MAJOR ||
19401 minor < DB_VERSION_MINOR )
19403 printf("Berkeley DB version mismatch\n"
19404 "\theader: %s\n\tlibrary: %s\n",
19405 DB_VERSION_STRING, version);
19411 #if DB_VERSION_MAJOR > 2
19412 db_env_create( NULL, 0 );
19413 #elif DB_VERSION_MAJOR > 1
19414 db_appexit( NULL );
19416 (void) dbopen( NULL, 0, 0, 0, NULL);
19421 if { (eval echo configure:19422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19425 echo "configure: failed program was:" >&5
19426 cat conftest.$ac_ext >&5
19436 echo "$ac_t""$ol_cv_db_db_42" 1>&6
19438 if test $ol_cv_db_db_42 = yes ; then
19439 ol_cv_lib_db=-ldb-42
19443 if test $ol_cv_lib_db = no ; then
19444 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
19445 echo "configure:19446: checking for Berkeley DB link (-ldb-4.2)" >&5
19446 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
19447 echo $ac_n "(cached) $ac_c" 1>&6
19452 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19454 cat > conftest.$ac_ext <<EOF
19455 #line 19456 "configure"
19456 #include "confdefs.h"
19458 #ifdef HAVE_DB_185_H
19459 # include <db_185.h>
19464 #ifndef DB_VERSION_MAJOR
19465 # define DB_VERSION_MAJOR 1
19469 #define NULL ((void*)0)
19474 #if DB_VERSION_MAJOR > 1
19477 int major, minor, patch;
19479 version = db_version( &major, &minor, &patch );
19481 if( major != DB_VERSION_MAJOR ||
19482 minor < DB_VERSION_MINOR )
19484 printf("Berkeley DB version mismatch\n"
19485 "\theader: %s\n\tlibrary: %s\n",
19486 DB_VERSION_STRING, version);
19492 #if DB_VERSION_MAJOR > 2
19493 db_env_create( NULL, 0 );
19494 #elif DB_VERSION_MAJOR > 1
19495 db_appexit( NULL );
19497 (void) dbopen( NULL, 0, 0, 0, NULL);
19502 if { (eval echo configure:19503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19504 ol_cv_db_db_4_dot_2=yes
19506 echo "configure: failed program was:" >&5
19507 cat conftest.$ac_ext >&5
19509 ol_cv_db_db_4_dot_2=no
19517 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
19519 if test $ol_cv_db_db_4_dot_2 = yes ; then
19520 ol_cv_lib_db=-ldb-4.2
19524 if test $ol_cv_lib_db = no ; then
19525 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
19526 echo "configure:19527: checking for Berkeley DB link (-ldb-4-2)" >&5
19527 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
19528 echo $ac_n "(cached) $ac_c" 1>&6
19533 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19535 cat > conftest.$ac_ext <<EOF
19536 #line 19537 "configure"
19537 #include "confdefs.h"
19539 #ifdef HAVE_DB_185_H
19540 # include <db_185.h>
19545 #ifndef DB_VERSION_MAJOR
19546 # define DB_VERSION_MAJOR 1
19550 #define NULL ((void*)0)
19555 #if DB_VERSION_MAJOR > 1
19558 int major, minor, patch;
19560 version = db_version( &major, &minor, &patch );
19562 if( major != DB_VERSION_MAJOR ||
19563 minor < DB_VERSION_MINOR )
19565 printf("Berkeley DB version mismatch\n"
19566 "\theader: %s\n\tlibrary: %s\n",
19567 DB_VERSION_STRING, version);
19573 #if DB_VERSION_MAJOR > 2
19574 db_env_create( NULL, 0 );
19575 #elif DB_VERSION_MAJOR > 1
19576 db_appexit( NULL );
19578 (void) dbopen( NULL, 0, 0, 0, NULL);
19583 if { (eval echo configure:19584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19585 ol_cv_db_db_4_2=yes
19587 echo "configure: failed program was:" >&5
19588 cat conftest.$ac_ext >&5
19598 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
19600 if test $ol_cv_db_db_4_2 = yes ; then
19601 ol_cv_lib_db=-ldb-4-2
19605 if test $ol_cv_lib_db = no ; then
19606 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
19607 echo "configure:19608: checking for Berkeley DB link (-ldb-4)" >&5
19608 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
19609 echo $ac_n "(cached) $ac_c" 1>&6
19614 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19616 cat > conftest.$ac_ext <<EOF
19617 #line 19618 "configure"
19618 #include "confdefs.h"
19620 #ifdef HAVE_DB_185_H
19621 # include <db_185.h>
19626 #ifndef DB_VERSION_MAJOR
19627 # define DB_VERSION_MAJOR 1
19631 #define NULL ((void*)0)
19636 #if DB_VERSION_MAJOR > 1
19639 int major, minor, patch;
19641 version = db_version( &major, &minor, &patch );
19643 if( major != DB_VERSION_MAJOR ||
19644 minor < DB_VERSION_MINOR )
19646 printf("Berkeley DB version mismatch\n"
19647 "\theader: %s\n\tlibrary: %s\n",
19648 DB_VERSION_STRING, version);
19654 #if DB_VERSION_MAJOR > 2
19655 db_env_create( NULL, 0 );
19656 #elif DB_VERSION_MAJOR > 1
19657 db_appexit( NULL );
19659 (void) dbopen( NULL, 0, 0, 0, NULL);
19664 if { (eval echo configure:19665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19668 echo "configure: failed program was:" >&5
19669 cat conftest.$ac_ext >&5
19679 echo "$ac_t""$ol_cv_db_db_4" 1>&6
19681 if test $ol_cv_db_db_4 = yes ; then
19682 ol_cv_lib_db=-ldb-4
19686 if test $ol_cv_lib_db = no ; then
19687 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
19688 echo "configure:19689: checking for Berkeley DB link (-ldb4)" >&5
19689 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
19690 echo $ac_n "(cached) $ac_c" 1>&6
19695 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19697 cat > conftest.$ac_ext <<EOF
19698 #line 19699 "configure"
19699 #include "confdefs.h"
19701 #ifdef HAVE_DB_185_H
19702 # include <db_185.h>
19707 #ifndef DB_VERSION_MAJOR
19708 # define DB_VERSION_MAJOR 1
19712 #define NULL ((void*)0)
19717 #if DB_VERSION_MAJOR > 1
19720 int major, minor, patch;
19722 version = db_version( &major, &minor, &patch );
19724 if( major != DB_VERSION_MAJOR ||
19725 minor < DB_VERSION_MINOR )
19727 printf("Berkeley DB version mismatch\n"
19728 "\theader: %s\n\tlibrary: %s\n",
19729 DB_VERSION_STRING, version);
19735 #if DB_VERSION_MAJOR > 2
19736 db_env_create( NULL, 0 );
19737 #elif DB_VERSION_MAJOR > 1
19738 db_appexit( NULL );
19740 (void) dbopen( NULL, 0, 0, 0, NULL);
19745 if { (eval echo configure:19746: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19749 echo "configure: failed program was:" >&5
19750 cat conftest.$ac_ext >&5
19760 echo "$ac_t""$ol_cv_db_db4" 1>&6
19762 if test $ol_cv_db_db4 = yes ; then
19767 if test $ol_cv_lib_db = no ; then
19768 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
19769 echo "configure:19770: checking for Berkeley DB link (-ldb)" >&5
19770 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
19771 echo $ac_n "(cached) $ac_c" 1>&6
19776 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19778 cat > conftest.$ac_ext <<EOF
19779 #line 19780 "configure"
19780 #include "confdefs.h"
19782 #ifdef HAVE_DB_185_H
19783 # include <db_185.h>
19788 #ifndef DB_VERSION_MAJOR
19789 # define DB_VERSION_MAJOR 1
19793 #define NULL ((void*)0)
19798 #if DB_VERSION_MAJOR > 1
19801 int major, minor, patch;
19803 version = db_version( &major, &minor, &patch );
19805 if( major != DB_VERSION_MAJOR ||
19806 minor < DB_VERSION_MINOR )
19808 printf("Berkeley DB version mismatch\n"
19809 "\theader: %s\n\tlibrary: %s\n",
19810 DB_VERSION_STRING, version);
19816 #if DB_VERSION_MAJOR > 2
19817 db_env_create( NULL, 0 );
19818 #elif DB_VERSION_MAJOR > 1
19819 db_appexit( NULL );
19821 (void) dbopen( NULL, 0, 0, 0, NULL);
19826 if { (eval echo configure:19827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19830 echo "configure: failed program was:" >&5
19831 cat conftest.$ac_ext >&5
19841 echo "$ac_t""$ol_cv_db_db" 1>&6
19843 if test $ol_cv_db_db = yes ; then
19848 if test $ol_cv_lib_db = no ; then
19849 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
19850 echo "configure:19851: checking for Berkeley DB link (-ldb41)" >&5
19851 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
19852 echo $ac_n "(cached) $ac_c" 1>&6
19857 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19859 cat > conftest.$ac_ext <<EOF
19860 #line 19861 "configure"
19861 #include "confdefs.h"
19863 #ifdef HAVE_DB_185_H
19864 # include <db_185.h>
19869 #ifndef DB_VERSION_MAJOR
19870 # define DB_VERSION_MAJOR 1
19874 #define NULL ((void*)0)
19879 #if DB_VERSION_MAJOR > 1
19882 int major, minor, patch;
19884 version = db_version( &major, &minor, &patch );
19886 if( major != DB_VERSION_MAJOR ||
19887 minor < DB_VERSION_MINOR )
19889 printf("Berkeley DB version mismatch\n"
19890 "\theader: %s\n\tlibrary: %s\n",
19891 DB_VERSION_STRING, version);
19897 #if DB_VERSION_MAJOR > 2
19898 db_env_create( NULL, 0 );
19899 #elif DB_VERSION_MAJOR > 1
19900 db_appexit( NULL );
19902 (void) dbopen( NULL, 0, 0, 0, NULL);
19907 if { (eval echo configure:19908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19911 echo "configure: failed program was:" >&5
19912 cat conftest.$ac_ext >&5
19922 echo "$ac_t""$ol_cv_db_db41" 1>&6
19924 if test $ol_cv_db_db41 = yes ; then
19925 ol_cv_lib_db=-ldb41
19929 if test $ol_cv_lib_db = no ; then
19930 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
19931 echo "configure:19932: checking for Berkeley DB link (-ldb-41)" >&5
19932 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
19933 echo $ac_n "(cached) $ac_c" 1>&6
19938 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19940 cat > conftest.$ac_ext <<EOF
19941 #line 19942 "configure"
19942 #include "confdefs.h"
19944 #ifdef HAVE_DB_185_H
19945 # include <db_185.h>
19950 #ifndef DB_VERSION_MAJOR
19951 # define DB_VERSION_MAJOR 1
19955 #define NULL ((void*)0)
19960 #if DB_VERSION_MAJOR > 1
19963 int major, minor, patch;
19965 version = db_version( &major, &minor, &patch );
19967 if( major != DB_VERSION_MAJOR ||
19968 minor < DB_VERSION_MINOR )
19970 printf("Berkeley DB version mismatch\n"
19971 "\theader: %s\n\tlibrary: %s\n",
19972 DB_VERSION_STRING, version);
19978 #if DB_VERSION_MAJOR > 2
19979 db_env_create( NULL, 0 );
19980 #elif DB_VERSION_MAJOR > 1
19981 db_appexit( NULL );
19983 (void) dbopen( NULL, 0, 0, 0, NULL);
19988 if { (eval echo configure:19989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19992 echo "configure: failed program was:" >&5
19993 cat conftest.$ac_ext >&5
20003 echo "$ac_t""$ol_cv_db_db_41" 1>&6
20005 if test $ol_cv_db_db_41 = yes ; then
20006 ol_cv_lib_db=-ldb-41
20010 if test $ol_cv_lib_db = no ; then
20011 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
20012 echo "configure:20013: checking for Berkeley DB link (-ldb-4.1)" >&5
20013 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
20014 echo $ac_n "(cached) $ac_c" 1>&6
20019 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20021 cat > conftest.$ac_ext <<EOF
20022 #line 20023 "configure"
20023 #include "confdefs.h"
20025 #ifdef HAVE_DB_185_H
20026 # include <db_185.h>
20031 #ifndef DB_VERSION_MAJOR
20032 # define DB_VERSION_MAJOR 1
20036 #define NULL ((void*)0)
20041 #if DB_VERSION_MAJOR > 1
20044 int major, minor, patch;
20046 version = db_version( &major, &minor, &patch );
20048 if( major != DB_VERSION_MAJOR ||
20049 minor < DB_VERSION_MINOR )
20051 printf("Berkeley DB version mismatch\n"
20052 "\theader: %s\n\tlibrary: %s\n",
20053 DB_VERSION_STRING, version);
20059 #if DB_VERSION_MAJOR > 2
20060 db_env_create( NULL, 0 );
20061 #elif DB_VERSION_MAJOR > 1
20062 db_appexit( NULL );
20064 (void) dbopen( NULL, 0, 0, 0, NULL);
20069 if { (eval echo configure:20070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20071 ol_cv_db_db_4_dot_1=yes
20073 echo "configure: failed program was:" >&5
20074 cat conftest.$ac_ext >&5
20076 ol_cv_db_db_4_dot_1=no
20084 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
20086 if test $ol_cv_db_db_4_dot_1 = yes ; then
20087 ol_cv_lib_db=-ldb-4.1
20091 if test $ol_cv_lib_db = no ; then
20092 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
20093 echo "configure:20094: checking for Berkeley DB link (-ldb-4-1)" >&5
20094 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
20095 echo $ac_n "(cached) $ac_c" 1>&6
20100 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20102 cat > conftest.$ac_ext <<EOF
20103 #line 20104 "configure"
20104 #include "confdefs.h"
20106 #ifdef HAVE_DB_185_H
20107 # include <db_185.h>
20112 #ifndef DB_VERSION_MAJOR
20113 # define DB_VERSION_MAJOR 1
20117 #define NULL ((void*)0)
20122 #if DB_VERSION_MAJOR > 1
20125 int major, minor, patch;
20127 version = db_version( &major, &minor, &patch );
20129 if( major != DB_VERSION_MAJOR ||
20130 minor < DB_VERSION_MINOR )
20132 printf("Berkeley DB version mismatch\n"
20133 "\theader: %s\n\tlibrary: %s\n",
20134 DB_VERSION_STRING, version);
20140 #if DB_VERSION_MAJOR > 2
20141 db_env_create( NULL, 0 );
20142 #elif DB_VERSION_MAJOR > 1
20143 db_appexit( NULL );
20145 (void) dbopen( NULL, 0, 0, 0, NULL);
20150 if { (eval echo configure:20151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20152 ol_cv_db_db_4_1=yes
20154 echo "configure: failed program was:" >&5
20155 cat conftest.$ac_ext >&5
20165 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
20167 if test $ol_cv_db_db_4_1 = yes ; then
20168 ol_cv_lib_db=-ldb-4-1
20172 if test $ol_cv_lib_db = no ; then
20173 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
20174 echo "configure:20175: checking for Berkeley DB link (-ldb3)" >&5
20175 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
20176 echo $ac_n "(cached) $ac_c" 1>&6
20181 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20183 cat > conftest.$ac_ext <<EOF
20184 #line 20185 "configure"
20185 #include "confdefs.h"
20187 #ifdef HAVE_DB_185_H
20188 # include <db_185.h>
20193 #ifndef DB_VERSION_MAJOR
20194 # define DB_VERSION_MAJOR 1
20198 #define NULL ((void*)0)
20203 #if DB_VERSION_MAJOR > 1
20206 int major, minor, patch;
20208 version = db_version( &major, &minor, &patch );
20210 if( major != DB_VERSION_MAJOR ||
20211 minor < DB_VERSION_MINOR )
20213 printf("Berkeley DB version mismatch\n"
20214 "\theader: %s\n\tlibrary: %s\n",
20215 DB_VERSION_STRING, version);
20221 #if DB_VERSION_MAJOR > 2
20222 db_env_create( NULL, 0 );
20223 #elif DB_VERSION_MAJOR > 1
20224 db_appexit( NULL );
20226 (void) dbopen( NULL, 0, 0, 0, NULL);
20231 if { (eval echo configure:20232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20235 echo "configure: failed program was:" >&5
20236 cat conftest.$ac_ext >&5
20246 echo "$ac_t""$ol_cv_db_db3" 1>&6
20248 if test $ol_cv_db_db3 = yes ; then
20253 if test $ol_cv_lib_db = no ; then
20254 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
20255 echo "configure:20256: checking for Berkeley DB link (-ldb-3)" >&5
20256 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
20257 echo $ac_n "(cached) $ac_c" 1>&6
20262 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20264 cat > conftest.$ac_ext <<EOF
20265 #line 20266 "configure"
20266 #include "confdefs.h"
20268 #ifdef HAVE_DB_185_H
20269 # include <db_185.h>
20274 #ifndef DB_VERSION_MAJOR
20275 # define DB_VERSION_MAJOR 1
20279 #define NULL ((void*)0)
20284 #if DB_VERSION_MAJOR > 1
20287 int major, minor, patch;
20289 version = db_version( &major, &minor, &patch );
20291 if( major != DB_VERSION_MAJOR ||
20292 minor < DB_VERSION_MINOR )
20294 printf("Berkeley DB version mismatch\n"
20295 "\theader: %s\n\tlibrary: %s\n",
20296 DB_VERSION_STRING, version);
20302 #if DB_VERSION_MAJOR > 2
20303 db_env_create( NULL, 0 );
20304 #elif DB_VERSION_MAJOR > 1
20305 db_appexit( NULL );
20307 (void) dbopen( NULL, 0, 0, 0, NULL);
20312 if { (eval echo configure:20313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20316 echo "configure: failed program was:" >&5
20317 cat conftest.$ac_ext >&5
20327 echo "$ac_t""$ol_cv_db_db_3" 1>&6
20329 if test $ol_cv_db_db_3 = yes ; then
20330 ol_cv_lib_db=-ldb-3
20334 if test $ol_cv_lib_db = no ; then
20335 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
20336 echo "configure:20337: checking for Berkeley DB link (-ldb2)" >&5
20337 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
20338 echo $ac_n "(cached) $ac_c" 1>&6
20343 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20345 cat > conftest.$ac_ext <<EOF
20346 #line 20347 "configure"
20347 #include "confdefs.h"
20349 #ifdef HAVE_DB_185_H
20350 # include <db_185.h>
20355 #ifndef DB_VERSION_MAJOR
20356 # define DB_VERSION_MAJOR 1
20360 #define NULL ((void*)0)
20365 #if DB_VERSION_MAJOR > 1
20368 int major, minor, patch;
20370 version = db_version( &major, &minor, &patch );
20372 if( major != DB_VERSION_MAJOR ||
20373 minor < DB_VERSION_MINOR )
20375 printf("Berkeley DB version mismatch\n"
20376 "\theader: %s\n\tlibrary: %s\n",
20377 DB_VERSION_STRING, version);
20383 #if DB_VERSION_MAJOR > 2
20384 db_env_create( NULL, 0 );
20385 #elif DB_VERSION_MAJOR > 1
20386 db_appexit( NULL );
20388 (void) dbopen( NULL, 0, 0, 0, NULL);
20393 if { (eval echo configure:20394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20397 echo "configure: failed program was:" >&5
20398 cat conftest.$ac_ext >&5
20408 echo "$ac_t""$ol_cv_db_db2" 1>&6
20410 if test $ol_cv_db_db2 = yes ; then
20415 if test $ol_cv_lib_db = no ; then
20416 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
20417 echo "configure:20418: checking for Berkeley DB link (-ldb-2)" >&5
20418 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
20419 echo $ac_n "(cached) $ac_c" 1>&6
20424 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20426 cat > conftest.$ac_ext <<EOF
20427 #line 20428 "configure"
20428 #include "confdefs.h"
20430 #ifdef HAVE_DB_185_H
20431 # include <db_185.h>
20436 #ifndef DB_VERSION_MAJOR
20437 # define DB_VERSION_MAJOR 1
20441 #define NULL ((void*)0)
20446 #if DB_VERSION_MAJOR > 1
20449 int major, minor, patch;
20451 version = db_version( &major, &minor, &patch );
20453 if( major != DB_VERSION_MAJOR ||
20454 minor < DB_VERSION_MINOR )
20456 printf("Berkeley DB version mismatch\n"
20457 "\theader: %s\n\tlibrary: %s\n",
20458 DB_VERSION_STRING, version);
20464 #if DB_VERSION_MAJOR > 2
20465 db_env_create( NULL, 0 );
20466 #elif DB_VERSION_MAJOR > 1
20467 db_appexit( NULL );
20469 (void) dbopen( NULL, 0, 0, 0, NULL);
20474 if { (eval echo configure:20475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20478 echo "configure: failed program was:" >&5
20479 cat conftest.$ac_ext >&5
20489 echo "$ac_t""$ol_cv_db_db_2" 1>&6
20491 if test $ol_cv_db_db_2 = yes ; then
20492 ol_cv_lib_db=-ldb-2
20496 if test $ol_cv_lib_db = no ; then
20497 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
20498 echo "configure:20499: checking for Berkeley DB link (-ldb1)" >&5
20499 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
20500 echo $ac_n "(cached) $ac_c" 1>&6
20505 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20507 cat > conftest.$ac_ext <<EOF
20508 #line 20509 "configure"
20509 #include "confdefs.h"
20511 #ifdef HAVE_DB_185_H
20512 # include <db_185.h>
20517 #ifndef DB_VERSION_MAJOR
20518 # define DB_VERSION_MAJOR 1
20522 #define NULL ((void*)0)
20527 #if DB_VERSION_MAJOR > 1
20530 int major, minor, patch;
20532 version = db_version( &major, &minor, &patch );
20534 if( major != DB_VERSION_MAJOR ||
20535 minor < DB_VERSION_MINOR )
20537 printf("Berkeley DB version mismatch\n"
20538 "\theader: %s\n\tlibrary: %s\n",
20539 DB_VERSION_STRING, version);
20545 #if DB_VERSION_MAJOR > 2
20546 db_env_create( NULL, 0 );
20547 #elif DB_VERSION_MAJOR > 1
20548 db_appexit( NULL );
20550 (void) dbopen( NULL, 0, 0, 0, NULL);
20555 if { (eval echo configure:20556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20559 echo "configure: failed program was:" >&5
20560 cat conftest.$ac_ext >&5
20570 echo "$ac_t""$ol_cv_db_db1" 1>&6
20572 if test $ol_cv_db_db1 = yes ; then
20577 if test $ol_cv_lib_db = no ; then
20578 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
20579 echo "configure:20580: checking for Berkeley DB link (-ldb-1)" >&5
20580 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
20581 echo $ac_n "(cached) $ac_c" 1>&6
20586 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20588 cat > conftest.$ac_ext <<EOF
20589 #line 20590 "configure"
20590 #include "confdefs.h"
20592 #ifdef HAVE_DB_185_H
20593 # include <db_185.h>
20598 #ifndef DB_VERSION_MAJOR
20599 # define DB_VERSION_MAJOR 1
20603 #define NULL ((void*)0)
20608 #if DB_VERSION_MAJOR > 1
20611 int major, minor, patch;
20613 version = db_version( &major, &minor, &patch );
20615 if( major != DB_VERSION_MAJOR ||
20616 minor < DB_VERSION_MINOR )
20618 printf("Berkeley DB version mismatch\n"
20619 "\theader: %s\n\tlibrary: %s\n",
20620 DB_VERSION_STRING, version);
20626 #if DB_VERSION_MAJOR > 2
20627 db_env_create( NULL, 0 );
20628 #elif DB_VERSION_MAJOR > 1
20629 db_appexit( NULL );
20631 (void) dbopen( NULL, 0, 0, 0, NULL);
20636 if { (eval echo configure:20637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20640 echo "configure: failed program was:" >&5
20641 cat conftest.$ac_ext >&5
20651 echo "$ac_t""$ol_cv_db_db_1" 1>&6
20653 if test $ol_cv_db_db_1 = yes ; then
20654 ol_cv_lib_db=-ldb-1
20659 if test "$ol_cv_lib_db" != no ; then
20660 ol_cv_berkeley_db=yes
20661 echo $ac_n "checking for Berkeley DB version match""... $ac_c" 1>&6
20662 echo "configure:20663: checking for Berkeley DB version match" >&5
20663 if eval "test \"\${ol_cv_berkeley_db_version+set}\" = set"; then
20664 echo $ac_n "(cached) $ac_c" 1>&6
20668 LIBS="$LTHREAD_LIBS $LIBS"
20669 if test $ol_cv_lib_db != yes ; then
20670 LIBS="$ol_cv_lib_db $LIBS"
20673 if test "$cross_compiling" = yes; then
20674 ol_cv_berkeley_db_version=cross
20676 cat > conftest.$ac_ext <<EOF
20677 #line 20678 "configure"
20678 #include "confdefs.h"
20680 #ifdef HAVE_DB_185_H
20685 #ifndef DB_VERSION_MAJOR
20686 # define DB_VERSION_MAJOR 1
20689 #define NULL ((void *)0)
20693 #if DB_VERSION_MAJOR > 1
20695 int major, minor, patch;
20697 version = db_version( &major, &minor, &patch );
20699 if( major != DB_VERSION_MAJOR || minor < DB_VERSION_MINOR ) {
20700 printf("Berkeley DB version mismatch\n"
20701 "\theader: %s\n\tlibrary: %s\n",
20702 DB_VERSION_STRING, version);
20710 if { (eval echo configure:20711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20712 ol_cv_berkeley_db_version=yes
20714 echo "configure: failed program was:" >&5
20715 cat conftest.$ac_ext >&5
20717 ol_cv_berkeley_db_version=no
20727 echo "$ac_t""$ol_cv_berkeley_db_version" 1>&6
20729 if test $ol_cv_berkeley_db_version = no ; then
20730 { echo "configure: error: Berkeley DB version mismatch" 1>&2; exit 1; }
20733 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
20734 echo "configure:20735: checking for Berkeley DB thread support" >&5
20735 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
20736 echo $ac_n "(cached) $ac_c" 1>&6
20740 LIBS="$LTHREAD_LIBS $LIBS"
20741 if test $ol_cv_lib_db != yes ; then
20742 LIBS="$ol_cv_lib_db $LIBS"
20745 if test "$cross_compiling" = yes; then
20746 ol_cv_berkeley_db_thread=cross
20748 cat > conftest.$ac_ext <<EOF
20749 #line 20750 "configure"
20750 #include "confdefs.h"
20752 #ifdef HAVE_DB_185_H
20758 #define NULL ((void *)0)
20763 u_int32_t flags = DB_CREATE |
20769 #if DB_VERSION_MAJOR > 2
20770 DB_ENV *env = NULL;
20772 rc = db_env_create( &env, 0 );
20774 flags |= DB_INIT_MPOOL;
20775 #ifdef DB_MPOOL_PRIVATE
20776 flags |= DB_MPOOL_PRIVATE;
20780 printf("BerkeleyDB: %s\n", db_strerror(rc) );
20784 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
20785 rc = env->open( env, NULL, flags, 0 );
20787 rc = env->open( env, NULL, NULL, flags, 0 );
20791 rc = env->close( env, 0 );
20795 printf("BerkeleyDB: %s\n", db_strerror(rc) );
20801 memset( &env, '\0', sizeof(env) );
20803 rc = db_appinit( NULL, NULL, &env, flags );
20806 db_appexit( &env );
20809 unlink("__db_mpool.share");
20810 unlink("__db_lock.share");
20816 if { (eval echo configure:20817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
20818 ol_cv_berkeley_db_thread=yes
20820 echo "configure: failed program was:" >&5
20821 cat conftest.$ac_ext >&5
20823 ol_cv_berkeley_db_thread=no
20833 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
20835 if test $ol_cv_berkeley_db_thread != no ; then
20836 cat >> confdefs.h <<\EOF
20837 #define HAVE_BERKELEY_DB_THREAD 1
20847 if test $ol_cv_berkeley_db != no ; then
20848 cat >> confdefs.h <<\EOF
20849 #define HAVE_BERKELEY_DB 1
20853 ol_link_ldbm=berkeley
20854 ol_with_ldbm_api=berkeley
20856 if test $ol_with_ldbm_type = hash ; then
20857 cat >> confdefs.h <<\EOF
20858 #define LDBM_USE_DBHASH 1
20862 cat >> confdefs.h <<\EOF
20863 #define LDBM_USE_DBBTREE 1
20868 if test $ol_cv_lib_db != yes ; then
20869 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
20874 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
20875 if test $ol_link_ldbm != berkeley ; then
20876 { echo "configure: error: BDB/HDB: BerkeleyDB not available" 1>&2; exit 1; }
20878 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
20879 echo "configure:20880: checking Berkeley DB version for BDB backend" >&5
20880 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
20881 echo $ac_n "(cached) $ac_c" 1>&6
20884 cat > conftest.$ac_ext <<EOF
20885 #line 20886 "configure"
20886 #include "confdefs.h"
20890 /* this check could be improved */
20891 #ifndef DB_VERSION_MAJOR
20892 # define DB_VERSION_MAJOR 1
20894 #ifndef DB_VERSION_MINOR
20895 # define DB_VERSION_MINOR 0
20898 /* require 4.2 or later */
20899 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
20900 __db_version_compat
20904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20905 egrep "__db_version_compat" >/dev/null 2>&1; then
20907 ol_cv_bdb_compat=yes
20910 ol_cv_bdb_compat=no
20916 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
20919 if test $ol_cv_bdb_compat != yes ; then
20920 { echo "configure: error: BDB/HDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
20925 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
20926 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
20927 ol_with_ldbm_api=none
20930 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
20931 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
20932 echo "configure:20933: checking for MDBM library" >&5
20933 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
20934 echo $ac_n "(cached) $ac_c" 1>&6
20937 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
20938 echo "configure:20939: checking for mdbm_set_chain" >&5
20939 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
20940 echo $ac_n "(cached) $ac_c" 1>&6
20942 cat > conftest.$ac_ext <<EOF
20943 #line 20944 "configure"
20944 #include "confdefs.h"
20945 /* System header to define __stub macros and hopefully few prototypes,
20946 which can conflict with char mdbm_set_chain(); below. */
20947 #include <assert.h>
20948 /* Override any gcc2 internal prototype to avoid an error. */
20949 /* We use char because int might match the return type of a gcc2
20950 builtin and then its argument prototype would still apply. */
20951 char mdbm_set_chain();
20956 /* The GNU C library defines this for functions which it implements
20957 to always fail with ENOSYS. Some functions are actually named
20958 something starting with __ and the normal name is an alias. */
20959 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
20962 f = mdbm_set_chain;
20967 if { (eval echo configure:20968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20969 eval "ac_cv_func_mdbm_set_chain=yes"
20971 echo "configure: failed program was:" >&5
20972 cat conftest.$ac_ext >&5
20974 eval "ac_cv_func_mdbm_set_chain=no"
20979 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
20980 echo "$ac_t""yes" 1>&6
20983 echo "$ac_t""no" 1>&6
20985 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
20986 echo "configure:20987: checking for mdbm_set_chain in -lmdbm" >&5
20987 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
20988 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20989 echo $ac_n "(cached) $ac_c" 1>&6
20991 ac_save_LIBS="$LIBS"
20992 LIBS="-lmdbm $LIBS"
20993 cat > conftest.$ac_ext <<EOF
20994 #line 20995 "configure"
20995 #include "confdefs.h"
20996 /* Override any gcc2 internal prototype to avoid an error. */
20997 /* We use char because int might match the return type of a gcc2
20998 builtin and then its argument prototype would still apply. */
20999 char mdbm_set_chain();
21005 if { (eval echo configure:21006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21007 eval "ac_cv_lib_$ac_lib_var=yes"
21009 echo "configure: failed program was:" >&5
21010 cat conftest.$ac_ext >&5
21012 eval "ac_cv_lib_$ac_lib_var=no"
21015 LIBS="$ac_save_LIBS"
21018 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21019 echo "$ac_t""yes" 1>&6
21020 ol_cv_lib_mdbm=-lmdbm
21022 echo "$ac_t""no" 1>&6
21033 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
21036 for ac_hdr in mdbm.h
21038 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21039 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21040 echo "configure:21041: checking for $ac_hdr" >&5
21041 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21042 echo $ac_n "(cached) $ac_c" 1>&6
21044 cat > conftest.$ac_ext <<EOF
21045 #line 21046 "configure"
21046 #include "confdefs.h"
21049 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21050 { (eval echo configure:21051: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21051 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21052 if test -z "$ac_err"; then
21054 eval "ac_cv_header_$ac_safe=yes"
21057 echo "configure: failed program was:" >&5
21058 cat conftest.$ac_ext >&5
21060 eval "ac_cv_header_$ac_safe=no"
21064 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21065 echo "$ac_t""yes" 1>&6
21066 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21067 cat >> confdefs.h <<EOF
21068 #define $ac_tr_hdr 1
21072 echo "$ac_t""no" 1>&6
21076 echo $ac_n "checking for db""... $ac_c" 1>&6
21077 echo "configure:21078: checking for db" >&5
21078 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
21079 echo $ac_n "(cached) $ac_c" 1>&6
21082 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
21090 echo "$ac_t""$ol_cv_mdbm" 1>&6
21091 if test $ol_cv_mdbm = yes ; then
21092 cat >> confdefs.h <<\EOF
21093 #define HAVE_MDBM 1
21099 if test $ol_cv_mdbm = yes ; then
21101 ol_with_ldbm_api=mdbm
21102 if test $ol_cv_lib_mdbm != yes ; then
21103 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
21108 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
21109 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
21110 echo "configure:21111: checking for GDBM library" >&5
21111 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
21112 echo $ac_n "(cached) $ac_c" 1>&6
21115 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
21116 echo "configure:21117: checking for gdbm_open" >&5
21117 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
21118 echo $ac_n "(cached) $ac_c" 1>&6
21120 cat > conftest.$ac_ext <<EOF
21121 #line 21122 "configure"
21122 #include "confdefs.h"
21123 /* System header to define __stub macros and hopefully few prototypes,
21124 which can conflict with char gdbm_open(); below. */
21125 #include <assert.h>
21126 /* Override any gcc2 internal prototype to avoid an error. */
21127 /* We use char because int might match the return type of a gcc2
21128 builtin and then its argument prototype would still apply. */
21134 /* The GNU C library defines this for functions which it implements
21135 to always fail with ENOSYS. Some functions are actually named
21136 something starting with __ and the normal name is an alias. */
21137 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
21145 if { (eval echo configure:21146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21147 eval "ac_cv_func_gdbm_open=yes"
21149 echo "configure: failed program was:" >&5
21150 cat conftest.$ac_ext >&5
21152 eval "ac_cv_func_gdbm_open=no"
21157 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
21158 echo "$ac_t""yes" 1>&6
21161 echo "$ac_t""no" 1>&6
21163 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
21164 echo "configure:21165: checking for gdbm_open in -lgdbm" >&5
21165 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
21166 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21167 echo $ac_n "(cached) $ac_c" 1>&6
21169 ac_save_LIBS="$LIBS"
21170 LIBS="-lgdbm $LIBS"
21171 cat > conftest.$ac_ext <<EOF
21172 #line 21173 "configure"
21173 #include "confdefs.h"
21174 /* Override any gcc2 internal prototype to avoid an error. */
21175 /* We use char because int might match the return type of a gcc2
21176 builtin and then its argument prototype would still apply. */
21183 if { (eval echo configure:21184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21185 eval "ac_cv_lib_$ac_lib_var=yes"
21187 echo "configure: failed program was:" >&5
21188 cat conftest.$ac_ext >&5
21190 eval "ac_cv_lib_$ac_lib_var=no"
21193 LIBS="$ac_save_LIBS"
21196 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21197 echo "$ac_t""yes" 1>&6
21198 ol_cv_lib_gdbm=-lgdbm
21200 echo "$ac_t""no" 1>&6
21211 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
21214 for ac_hdr in gdbm.h
21216 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21217 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21218 echo "configure:21219: checking for $ac_hdr" >&5
21219 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21220 echo $ac_n "(cached) $ac_c" 1>&6
21222 cat > conftest.$ac_ext <<EOF
21223 #line 21224 "configure"
21224 #include "confdefs.h"
21227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21228 { (eval echo configure:21229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21230 if test -z "$ac_err"; then
21232 eval "ac_cv_header_$ac_safe=yes"
21235 echo "configure: failed program was:" >&5
21236 cat conftest.$ac_ext >&5
21238 eval "ac_cv_header_$ac_safe=no"
21242 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21243 echo "$ac_t""yes" 1>&6
21244 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21245 cat >> confdefs.h <<EOF
21246 #define $ac_tr_hdr 1
21250 echo "$ac_t""no" 1>&6
21254 echo $ac_n "checking for db""... $ac_c" 1>&6
21255 echo "configure:21256: checking for db" >&5
21256 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
21257 echo $ac_n "(cached) $ac_c" 1>&6
21260 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
21268 echo "$ac_t""$ol_cv_gdbm" 1>&6
21269 if test $ol_cv_gdbm = yes ; then
21270 cat >> confdefs.h <<\EOF
21271 #define HAVE_GDBM 1
21277 if test $ol_cv_gdbm = yes ; then
21279 ol_with_ldbm_api=gdbm
21281 if test $ol_cv_lib_gdbm != yes ; then
21282 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
21287 if test $ol_with_ldbm_api = ndbm ; then
21288 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
21289 echo "configure:21290: checking for NDBM library" >&5
21290 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
21291 echo $ac_n "(cached) $ac_c" 1>&6
21294 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
21295 echo "configure:21296: checking for dbm_open" >&5
21296 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
21297 echo $ac_n "(cached) $ac_c" 1>&6
21299 cat > conftest.$ac_ext <<EOF
21300 #line 21301 "configure"
21301 #include "confdefs.h"
21302 /* System header to define __stub macros and hopefully few prototypes,
21303 which can conflict with char dbm_open(); below. */
21304 #include <assert.h>
21305 /* Override any gcc2 internal prototype to avoid an error. */
21306 /* We use char because int might match the return type of a gcc2
21307 builtin and then its argument prototype would still apply. */
21313 /* The GNU C library defines this for functions which it implements
21314 to always fail with ENOSYS. Some functions are actually named
21315 something starting with __ and the normal name is an alias. */
21316 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
21324 if { (eval echo configure:21325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21326 eval "ac_cv_func_dbm_open=yes"
21328 echo "configure: failed program was:" >&5
21329 cat conftest.$ac_ext >&5
21331 eval "ac_cv_func_dbm_open=no"
21336 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
21337 echo "$ac_t""yes" 1>&6
21340 echo "$ac_t""no" 1>&6
21342 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
21343 echo "configure:21344: checking for dbm_open in -lndbm" >&5
21344 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
21345 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21346 echo $ac_n "(cached) $ac_c" 1>&6
21348 ac_save_LIBS="$LIBS"
21349 LIBS="-lndbm $LIBS"
21350 cat > conftest.$ac_ext <<EOF
21351 #line 21352 "configure"
21352 #include "confdefs.h"
21353 /* Override any gcc2 internal prototype to avoid an error. */
21354 /* We use char because int might match the return type of a gcc2
21355 builtin and then its argument prototype would still apply. */
21362 if { (eval echo configure:21363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21364 eval "ac_cv_lib_$ac_lib_var=yes"
21366 echo "configure: failed program was:" >&5
21367 cat conftest.$ac_ext >&5
21369 eval "ac_cv_lib_$ac_lib_var=no"
21372 LIBS="$ac_save_LIBS"
21375 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21376 echo "$ac_t""yes" 1>&6
21377 ol_cv_lib_ndbm=-lndbm
21379 echo "$ac_t""no" 1>&6
21381 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
21382 echo "configure:21383: checking for dbm_open in -ldbm" >&5
21383 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
21384 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21385 echo $ac_n "(cached) $ac_c" 1>&6
21387 ac_save_LIBS="$LIBS"
21389 cat > conftest.$ac_ext <<EOF
21390 #line 21391 "configure"
21391 #include "confdefs.h"
21392 /* Override any gcc2 internal prototype to avoid an error. */
21393 /* We use char because int might match the return type of a gcc2
21394 builtin and then its argument prototype would still apply. */
21401 if { (eval echo configure:21402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21403 eval "ac_cv_lib_$ac_lib_var=yes"
21405 echo "configure: failed program was:" >&5
21406 cat conftest.$ac_ext >&5
21408 eval "ac_cv_lib_$ac_lib_var=no"
21411 LIBS="$ac_save_LIBS"
21414 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21415 echo "$ac_t""yes" 1>&6
21416 ol_cv_lib_ndbm=-ldbm
21418 echo "$ac_t""no" 1>&6
21431 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
21434 for ac_hdr in ndbm.h
21436 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21437 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21438 echo "configure:21439: checking for $ac_hdr" >&5
21439 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21440 echo $ac_n "(cached) $ac_c" 1>&6
21442 cat > conftest.$ac_ext <<EOF
21443 #line 21444 "configure"
21444 #include "confdefs.h"
21447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21448 { (eval echo configure:21449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21450 if test -z "$ac_err"; then
21452 eval "ac_cv_header_$ac_safe=yes"
21455 echo "configure: failed program was:" >&5
21456 cat conftest.$ac_ext >&5
21458 eval "ac_cv_header_$ac_safe=no"
21462 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21463 echo "$ac_t""yes" 1>&6
21464 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21465 cat >> confdefs.h <<EOF
21466 #define $ac_tr_hdr 1
21470 echo "$ac_t""no" 1>&6
21474 echo $ac_n "checking for db""... $ac_c" 1>&6
21475 echo "configure:21476: checking for db" >&5
21476 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
21477 echo $ac_n "(cached) $ac_c" 1>&6
21480 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
21488 echo "$ac_t""$ol_cv_ndbm" 1>&6
21489 if test $ol_cv_ndbm = yes ; then
21490 cat >> confdefs.h <<\EOF
21491 #define HAVE_NDBM 1
21497 if test $ol_cv_ndbm = yes ; then
21499 ol_with_ldbm_api=ndbm
21501 if test $ol_cv_lib_ndbm != yes ; then
21502 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
21507 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
21508 { echo "configure: error: could not find suitable LDBM backend" 1>&2; exit 1; }
21511 if test $ol_enable_bdb = yes -o \
21512 $ol_enable_hdb = yes -o \
21513 $ol_enable_ldbm = yes ; then
21514 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
21518 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
21519 BUILD_LIBS_DYNAMIC=shared
21520 cat >> confdefs.h <<\EOF
21521 #define LDAP_LIBS_DYNAMIC 1
21526 BUILD_LIBS_DYNAMIC=static
21530 if test $ol_enable_wrappers != no ; then
21531 for ac_hdr in tcpd.h
21533 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21534 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21535 echo "configure:21536: checking for $ac_hdr" >&5
21536 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21537 echo $ac_n "(cached) $ac_c" 1>&6
21539 cat > conftest.$ac_ext <<EOF
21540 #line 21541 "configure"
21541 #include "confdefs.h"
21544 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21545 { (eval echo configure:21546: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21546 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21547 if test -z "$ac_err"; then
21549 eval "ac_cv_header_$ac_safe=yes"
21552 echo "configure: failed program was:" >&5
21553 cat conftest.$ac_ext >&5
21555 eval "ac_cv_header_$ac_safe=no"
21559 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21560 echo "$ac_t""yes" 1>&6
21561 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21562 cat >> confdefs.h <<EOF
21563 #define $ac_tr_hdr 1
21566 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
21567 echo "configure:21568: checking for TCP wrappers library" >&5
21569 LIBS="$LIBS -lwrap"
21570 cat > conftest.$ac_ext <<EOF
21571 #line 21572 "configure"
21572 #include "confdefs.h"
21575 int allow_severity = 0;
21576 int deny_severity = 0;
21578 struct request_info *req;
21586 if { (eval echo configure:21587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21588 echo "$ac_t""-lwrap" 1>&6
21592 echo "configure: failed program was:" >&5
21593 cat conftest.$ac_ext >&5
21597 cat > conftest.$ac_ext <<EOF
21598 #line 21599 "configure"
21599 #include "confdefs.h"
21602 int allow_severity = 0;
21603 int deny_severity = 0;
21605 struct request_info *req;
21613 if { (eval echo configure:21614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21615 echo "$ac_t""-lwrap -lnsl" 1>&6
21617 LIBS="$save_LIBS -lnsl"
21619 echo "configure: failed program was:" >&5
21620 cat conftest.$ac_ext >&5
21623 echo "$ac_t""no" 1>&6
21631 echo "$ac_t""no" 1>&6
21637 if test $have_wrappers = yes ; then
21638 cat >> confdefs.h <<\EOF
21639 #define HAVE_TCPD 1
21643 elif test $ol_enable_wrappers = yes ; then
21644 { echo "configure: error: could not find TCP wrappers, select apppropriate options or disable" 1>&2; exit 1; }
21646 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
21651 if test $ol_enable_syslog != no ; then
21652 echo $ac_n "checking for openlog""... $ac_c" 1>&6
21653 echo "configure:21654: checking for openlog" >&5
21654 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
21655 echo $ac_n "(cached) $ac_c" 1>&6
21657 cat > conftest.$ac_ext <<EOF
21658 #line 21659 "configure"
21659 #include "confdefs.h"
21660 /* System header to define __stub macros and hopefully few prototypes,
21661 which can conflict with char openlog(); below. */
21662 #include <assert.h>
21663 /* Override any gcc2 internal prototype to avoid an error. */
21664 /* We use char because int might match the return type of a gcc2
21665 builtin and then its argument prototype would still apply. */
21671 /* The GNU C library defines this for functions which it implements
21672 to always fail with ENOSYS. Some functions are actually named
21673 something starting with __ and the normal name is an alias. */
21674 #if defined (__stub_openlog) || defined (__stub___openlog)
21682 if { (eval echo configure:21683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21684 eval "ac_cv_func_openlog=yes"
21686 echo "configure: failed program was:" >&5
21687 cat conftest.$ac_ext >&5
21689 eval "ac_cv_func_openlog=no"
21694 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
21695 echo "$ac_t""yes" 1>&6
21698 echo "$ac_t""no" 1>&6
21701 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
21702 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
21704 ol_enable_syslog=$ac_cv_func_openlog
21709 if test $ol_enable_sql != no ; then
21710 for ac_hdr in sql.h sqlext.h
21712 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21713 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21714 echo "configure:21715: checking for $ac_hdr" >&5
21715 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21716 echo $ac_n "(cached) $ac_c" 1>&6
21718 cat > conftest.$ac_ext <<EOF
21719 #line 21720 "configure"
21720 #include "confdefs.h"
21723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21724 { (eval echo configure:21725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21725 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21726 if test -z "$ac_err"; then
21728 eval "ac_cv_header_$ac_safe=yes"
21731 echo "configure: failed program was:" >&5
21732 cat conftest.$ac_ext >&5
21734 eval "ac_cv_header_$ac_safe=no"
21738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21739 echo "$ac_t""yes" 1>&6
21740 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21741 cat >> confdefs.h <<EOF
21742 #define $ac_tr_hdr 1
21746 echo "$ac_t""no" 1>&6
21747 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
21753 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
21754 echo "configure:21755: checking for SQLDriverConnect in -liodbc" >&5
21755 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
21756 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21757 echo $ac_n "(cached) $ac_c" 1>&6
21759 ac_save_LIBS="$LIBS"
21760 LIBS="-liodbc $LIBS"
21761 cat > conftest.$ac_ext <<EOF
21762 #line 21763 "configure"
21763 #include "confdefs.h"
21764 /* Override any gcc2 internal prototype to avoid an error. */
21765 /* We use char because int might match the return type of a gcc2
21766 builtin and then its argument prototype would still apply. */
21767 char SQLDriverConnect();
21773 if { (eval echo configure:21774: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21775 eval "ac_cv_lib_$ac_lib_var=yes"
21777 echo "configure: failed program was:" >&5
21778 cat conftest.$ac_ext >&5
21780 eval "ac_cv_lib_$ac_lib_var=no"
21783 LIBS="$ac_save_LIBS"
21786 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21787 echo "$ac_t""yes" 1>&6
21790 echo "$ac_t""no" 1>&6
21794 if test $have_iodbc = yes ; then
21795 ol_link_sql="-liodbc"
21797 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
21798 echo "configure:21799: checking for SQLDriverConnect in -lodbc" >&5
21799 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
21800 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21801 echo $ac_n "(cached) $ac_c" 1>&6
21803 ac_save_LIBS="$LIBS"
21804 LIBS="-lodbc $LIBS"
21805 cat > conftest.$ac_ext <<EOF
21806 #line 21807 "configure"
21807 #include "confdefs.h"
21808 /* Override any gcc2 internal prototype to avoid an error. */
21809 /* We use char because int might match the return type of a gcc2
21810 builtin and then its argument prototype would still apply. */
21811 char SQLDriverConnect();
21817 if { (eval echo configure:21818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21819 eval "ac_cv_lib_$ac_lib_var=yes"
21821 echo "configure: failed program was:" >&5
21822 cat conftest.$ac_ext >&5
21824 eval "ac_cv_lib_$ac_lib_var=no"
21827 LIBS="$ac_save_LIBS"
21830 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21831 echo "$ac_t""yes" 1>&6
21834 echo "$ac_t""no" 1>&6
21838 if test $have_odbc = yes ; then
21839 ol_link_sql="-lodbc"
21843 if test $ol_link_sql != no ; then
21844 SLAPD_SQL_LIBS="$ol_link_sql"
21846 elif test $ol_enable_sql != auto ; then
21847 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
21854 if test $ol_with_cyrus_sasl != no ; then
21855 for ac_hdr in sasl/sasl.h sasl.h
21857 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21858 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21859 echo "configure:21860: checking for $ac_hdr" >&5
21860 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21861 echo $ac_n "(cached) $ac_c" 1>&6
21863 cat > conftest.$ac_ext <<EOF
21864 #line 21865 "configure"
21865 #include "confdefs.h"
21868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21869 { (eval echo configure:21870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21871 if test -z "$ac_err"; then
21873 eval "ac_cv_header_$ac_safe=yes"
21876 echo "configure: failed program was:" >&5
21877 cat conftest.$ac_ext >&5
21879 eval "ac_cv_header_$ac_safe=no"
21883 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21884 echo "$ac_t""yes" 1>&6
21885 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21886 cat >> confdefs.h <<EOF
21887 #define $ac_tr_hdr 1
21891 echo "$ac_t""no" 1>&6
21896 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
21897 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
21898 echo "configure:21899: checking for sasl_client_init in -lsasl2" >&5
21899 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
21900 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21901 echo $ac_n "(cached) $ac_c" 1>&6
21903 ac_save_LIBS="$LIBS"
21904 LIBS="-lsasl2 $LIBS"
21905 cat > conftest.$ac_ext <<EOF
21906 #line 21907 "configure"
21907 #include "confdefs.h"
21908 /* Override any gcc2 internal prototype to avoid an error. */
21909 /* We use char because int might match the return type of a gcc2
21910 builtin and then its argument prototype would still apply. */
21911 char sasl_client_init();
21917 if { (eval echo configure:21918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21919 eval "ac_cv_lib_$ac_lib_var=yes"
21921 echo "configure: failed program was:" >&5
21922 cat conftest.$ac_ext >&5
21924 eval "ac_cv_lib_$ac_lib_var=no"
21927 LIBS="$ac_save_LIBS"
21930 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21931 echo "$ac_t""yes" 1>&6
21932 ol_link_sasl="-lsasl2"
21934 echo "$ac_t""no" 1>&6
21935 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
21936 echo "configure:21937: checking for sasl_client_init in -lsasl" >&5
21937 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
21938 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21939 echo $ac_n "(cached) $ac_c" 1>&6
21941 ac_save_LIBS="$LIBS"
21942 LIBS="-lsasl $LIBS"
21943 cat > conftest.$ac_ext <<EOF
21944 #line 21945 "configure"
21945 #include "confdefs.h"
21946 /* Override any gcc2 internal prototype to avoid an error. */
21947 /* We use char because int might match the return type of a gcc2
21948 builtin and then its argument prototype would still apply. */
21949 char sasl_client_init();
21955 if { (eval echo configure:21956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21957 eval "ac_cv_lib_$ac_lib_var=yes"
21959 echo "configure: failed program was:" >&5
21960 cat conftest.$ac_ext >&5
21962 eval "ac_cv_lib_$ac_lib_var=no"
21965 LIBS="$ac_save_LIBS"
21968 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21969 echo "$ac_t""yes" 1>&6
21970 ol_link_sasl="-lsasl"
21972 echo "$ac_t""no" 1>&6
21979 if test $ol_link_sasl = no ; then
21980 if test $ol_with_cyrus_sasl != auto ; then
21981 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
21983 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
21984 echo "configure: warning: SASL authentication not supported!" 1>&2
21985 if test $ol_link_tls = no ; then
21986 echo "configure: warning: Strong authentication not supported!" 1>&2
21990 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
21991 echo "configure:21992: checking Cyrus SASL library version" >&5
21992 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
21993 echo $ac_n "(cached) $ac_c" 1>&6
21996 cat > conftest.$ac_ext <<EOF
21997 #line 21998 "configure"
21998 #include "confdefs.h"
22000 #ifdef HAVE_SASL_SASL_H
22001 #include <sasl/sasl.h>
22006 /* Require 2.1.15+ */
22007 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
22008 char *__sasl_compat = "2.2+ or better okay (we guess)";
22009 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
22010 && SASL_VERSION_STEP >=15
22011 char *__sasl_compat = "2.1.15+ or better okay";
22015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22016 egrep "__sasl_compat" >/dev/null 2>&1; then
22018 ol_cv_sasl_compat=yes
22021 ol_cv_sasl_compat=no
22027 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
22029 if test $ol_cv_sasl_compat = no ; then
22031 { echo "configure: error: Cyrus SASL library located but is incompatible" 1>&2; exit 1; }
22034 cat >> confdefs.h <<\EOF
22035 #define HAVE_CYRUS_SASL 1
22038 SASL_LIBS="$ol_link_sasl"
22039 if test $ol_enable_spasswd != no ; then
22040 ol_link_spasswd=yes
22043 ac_save_LIBS="$LIBS"
22044 LIBS="$LIBS $ol_link_sasl"
22045 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
22046 echo "configure:22047: checking for sasl_version" >&5
22047 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
22048 echo $ac_n "(cached) $ac_c" 1>&6
22050 cat > conftest.$ac_ext <<EOF
22051 #line 22052 "configure"
22052 #include "confdefs.h"
22053 /* System header to define __stub macros and hopefully few prototypes,
22054 which can conflict with char sasl_version(); below. */
22055 #include <assert.h>
22056 /* Override any gcc2 internal prototype to avoid an error. */
22057 /* We use char because int might match the return type of a gcc2
22058 builtin and then its argument prototype would still apply. */
22059 char sasl_version();
22064 /* The GNU C library defines this for functions which it implements
22065 to always fail with ENOSYS. Some functions are actually named
22066 something starting with __ and the normal name is an alias. */
22067 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
22075 if { (eval echo configure:22076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22077 eval "ac_cv_func_sasl_version=yes"
22079 echo "configure: failed program was:" >&5
22080 cat conftest.$ac_ext >&5
22082 eval "ac_cv_func_sasl_version=no"
22087 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
22088 echo "$ac_t""yes" 1>&6
22089 cat >> confdefs.h <<\EOF
22090 #define HAVE_SASL_VERSION 1
22094 echo "$ac_t""no" 1>&6
22097 LIBS="$ac_save_LIBS"
22103 echo "configure: warning: SASL authentication not supported!" 1>&2
22104 if test $ol_link_tls = no ; then
22105 echo "configure: warning: Strong authentication not supported!" 1>&2
22109 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
22111 if test -r /dev/urandom ; then
22112 dev="/dev/urandom";
22113 elif test -r /idev/urandom ; then
22114 dev="/idev/urandom";
22115 elif test -r /dev/srandom ; then
22116 dev="/dev/srandom";
22117 elif test -r /dev/random ; then
22119 elif test -r /idev/random ; then
22120 dev="/idev/random";
22123 if test $dev != no ; then
22124 cat >> confdefs.h <<EOF
22125 #define URANDOM_DEVICE "$dev"
22132 if test $ol_with_fetch != no ; then
22134 LIBS="-lfetch -lcom_err $LIBS"
22135 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
22136 echo "configure:22137: checking fetch(3) library" >&5
22137 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
22138 echo $ac_n "(cached) $ac_c" 1>&6
22141 cat > conftest.$ac_ext <<EOF
22142 #line 22143 "configure"
22143 #include "confdefs.h"
22145 #include <sys/param.h>
22149 struct url *u = fetchParseURL("file:///");
22152 if { (eval echo configure:22153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22154 ol_cv_lib_fetch=yes
22156 echo "configure: failed program was:" >&5
22157 cat conftest.$ac_ext >&5
22164 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
22166 if test $ol_cv_lib_fetch != no ; then
22167 ol_link_fetch="-lfetch -lcom_err"
22168 cat >> confdefs.h <<\EOF
22169 #define HAVE_FETCH 1
22175 if test $ol_cv_lib_fetch != no ; then
22176 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
22177 ol_link_fetch=freebsd
22179 elif test $ol_with_fetch != auto ; then
22180 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
22184 if test $ol_enable_crypt != no ; then
22186 LIBS="$TLS_LIBS $LIBS"
22188 echo $ac_n "checking for crypt""... $ac_c" 1>&6
22189 echo "configure:22190: checking for crypt" >&5
22190 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
22191 echo $ac_n "(cached) $ac_c" 1>&6
22193 cat > conftest.$ac_ext <<EOF
22194 #line 22195 "configure"
22195 #include "confdefs.h"
22196 /* System header to define __stub macros and hopefully few prototypes,
22197 which can conflict with char crypt(); below. */
22198 #include <assert.h>
22199 /* Override any gcc2 internal prototype to avoid an error. */
22200 /* We use char because int might match the return type of a gcc2
22201 builtin and then its argument prototype would still apply. */
22207 /* The GNU C library defines this for functions which it implements
22208 to always fail with ENOSYS. Some functions are actually named
22209 something starting with __ and the normal name is an alias. */
22210 #if defined (__stub_crypt) || defined (__stub___crypt)
22218 if { (eval echo configure:22219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22220 eval "ac_cv_func_crypt=yes"
22222 echo "configure: failed program was:" >&5
22223 cat conftest.$ac_ext >&5
22225 eval "ac_cv_func_crypt=no"
22230 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
22231 echo "$ac_t""yes" 1>&6
22234 echo "$ac_t""no" 1>&6
22237 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
22238 echo "configure:22239: checking for crypt in -lcrypt" >&5
22239 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
22240 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22241 echo $ac_n "(cached) $ac_c" 1>&6
22243 ac_save_LIBS="$LIBS"
22244 LIBS="-lcrypt $LIBS"
22245 cat > conftest.$ac_ext <<EOF
22246 #line 22247 "configure"
22247 #include "confdefs.h"
22248 /* Override any gcc2 internal prototype to avoid an error. */
22249 /* We use char because int might match the return type of a gcc2
22250 builtin and then its argument prototype would still apply. */
22257 if { (eval echo configure:22258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22259 eval "ac_cv_lib_$ac_lib_var=yes"
22261 echo "configure: failed program was:" >&5
22262 cat conftest.$ac_ext >&5
22264 eval "ac_cv_lib_$ac_lib_var=no"
22267 LIBS="$ac_save_LIBS"
22270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22271 echo "$ac_t""yes" 1>&6
22272 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
22275 echo "$ac_t""no" 1>&6
22284 if test $have_crypt = yes ; then
22285 cat >> confdefs.h <<\EOF
22286 #define HAVE_CRYPT 1
22290 echo "configure: warning: could not find crypt" 1>&2
22291 if test $ol_enable_crypt = yes ; then
22292 { echo "configure: error: could not find crypt, select appropriate options or disable" 1>&2; exit 1; }
22295 echo "configure: warning: disabling crypt support" 1>&2
22300 if test $ol_enable_proctitle != no ; then
22301 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
22302 echo "configure:22303: checking for setproctitle" >&5
22303 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
22304 echo $ac_n "(cached) $ac_c" 1>&6
22306 cat > conftest.$ac_ext <<EOF
22307 #line 22308 "configure"
22308 #include "confdefs.h"
22309 /* System header to define __stub macros and hopefully few prototypes,
22310 which can conflict with char setproctitle(); below. */
22311 #include <assert.h>
22312 /* Override any gcc2 internal prototype to avoid an error. */
22313 /* We use char because int might match the return type of a gcc2
22314 builtin and then its argument prototype would still apply. */
22315 char setproctitle();
22320 /* The GNU C library defines this for functions which it implements
22321 to always fail with ENOSYS. Some functions are actually named
22322 something starting with __ and the normal name is an alias. */
22323 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
22331 if { (eval echo configure:22332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22333 eval "ac_cv_func_setproctitle=yes"
22335 echo "configure: failed program was:" >&5
22336 cat conftest.$ac_ext >&5
22338 eval "ac_cv_func_setproctitle=no"
22343 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
22344 echo "$ac_t""yes" 1>&6
22345 have_setproctitle=yes
22347 echo "$ac_t""no" 1>&6
22349 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
22350 echo "configure:22351: checking for setproctitle in -lutil" >&5
22351 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
22352 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22353 echo $ac_n "(cached) $ac_c" 1>&6
22355 ac_save_LIBS="$LIBS"
22356 LIBS="-lutil $LIBS"
22357 cat > conftest.$ac_ext <<EOF
22358 #line 22359 "configure"
22359 #include "confdefs.h"
22360 /* Override any gcc2 internal prototype to avoid an error. */
22361 /* We use char because int might match the return type of a gcc2
22362 builtin and then its argument prototype would still apply. */
22363 char setproctitle();
22369 if { (eval echo configure:22370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22371 eval "ac_cv_lib_$ac_lib_var=yes"
22373 echo "configure: failed program was:" >&5
22374 cat conftest.$ac_ext >&5
22376 eval "ac_cv_lib_$ac_lib_var=no"
22379 LIBS="$ac_save_LIBS"
22382 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22383 echo "$ac_t""yes" 1>&6
22384 have_setproctitle=yes
22385 LUTIL_LIBS="$LUTIL_LIBS -lutil"
22387 echo "$ac_t""no" 1>&6
22388 have_setproctitle=no
22389 LIBOBJS="$LIBOBJS setproctitle.o"
22390 LIBSRCS="$LIBSRCS setproctitle.c"
22396 if test $have_setproctitle = yes ; then
22397 cat >> confdefs.h <<\EOF
22398 #define HAVE_SETPROCTITLE 1
22404 if test $ol_enable_slp != no ; then
22405 for ac_hdr in slp.h
22407 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22408 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22409 echo "configure:22410: checking for $ac_hdr" >&5
22410 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22411 echo $ac_n "(cached) $ac_c" 1>&6
22413 cat > conftest.$ac_ext <<EOF
22414 #line 22415 "configure"
22415 #include "confdefs.h"
22418 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22419 { (eval echo configure:22420: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22420 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22421 if test -z "$ac_err"; then
22423 eval "ac_cv_header_$ac_safe=yes"
22426 echo "configure: failed program was:" >&5
22427 cat conftest.$ac_ext >&5
22429 eval "ac_cv_header_$ac_safe=no"
22433 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22434 echo "$ac_t""yes" 1>&6
22435 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22436 cat >> confdefs.h <<EOF
22437 #define $ac_tr_hdr 1
22441 echo "$ac_t""no" 1>&6
22446 if test $ac_cv_header_slp_h = yes ; then
22447 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
22448 echo "configure:22449: checking for SLPOpen in -lslp" >&5
22449 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
22450 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22451 echo $ac_n "(cached) $ac_c" 1>&6
22453 ac_save_LIBS="$LIBS"
22455 cat > conftest.$ac_ext <<EOF
22456 #line 22457 "configure"
22457 #include "confdefs.h"
22458 /* Override any gcc2 internal prototype to avoid an error. */
22459 /* We use char because int might match the return type of a gcc2
22460 builtin and then its argument prototype would still apply. */
22467 if { (eval echo configure:22468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22469 eval "ac_cv_lib_$ac_lib_var=yes"
22471 echo "configure: failed program was:" >&5
22472 cat conftest.$ac_ext >&5
22474 eval "ac_cv_lib_$ac_lib_var=no"
22477 LIBS="$ac_save_LIBS"
22480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22481 echo "$ac_t""yes" 1>&6
22484 echo "$ac_t""no" 1>&6
22488 if test $have_slp = yes ; then
22489 cat >> confdefs.h <<\EOF
22493 SLAPD_SLP_LIBS=-lslp
22496 elif test $ol_enable_slp = yes ; then
22497 { echo "configure: error: SLP not found" 1>&2; exit 1; }
22501 if test "$ol_with_multiple_precision" != "no" ; then
22505 for ac_hdr in openssl/bn.h bn.h
22507 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22508 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22509 echo "configure:22510: checking for $ac_hdr" >&5
22510 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22511 echo $ac_n "(cached) $ac_c" 1>&6
22513 cat > conftest.$ac_ext <<EOF
22514 #line 22515 "configure"
22515 #include "confdefs.h"
22518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22519 { (eval echo configure:22520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22521 if test -z "$ac_err"; then
22523 eval "ac_cv_header_$ac_safe=yes"
22526 echo "configure: failed program was:" >&5
22527 cat conftest.$ac_ext >&5
22529 eval "ac_cv_header_$ac_safe=no"
22533 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22534 echo "$ac_t""yes" 1>&6
22535 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22536 cat >> confdefs.h <<EOF
22537 #define $ac_tr_hdr 1
22541 echo "$ac_t""no" 1>&6
22545 for ac_hdr in openssl/crypto.h crypto.h
22547 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22548 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22549 echo "configure:22550: checking for $ac_hdr" >&5
22550 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22551 echo $ac_n "(cached) $ac_c" 1>&6
22553 cat > conftest.$ac_ext <<EOF
22554 #line 22555 "configure"
22555 #include "confdefs.h"
22558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22559 { (eval echo configure:22560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22561 if test -z "$ac_err"; then
22563 eval "ac_cv_header_$ac_safe=yes"
22566 echo "configure: failed program was:" >&5
22567 cat conftest.$ac_ext >&5
22569 eval "ac_cv_header_$ac_safe=no"
22573 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22574 echo "$ac_t""yes" 1>&6
22575 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22576 cat >> confdefs.h <<EOF
22577 #define $ac_tr_hdr 1
22581 echo "$ac_t""no" 1>&6
22585 for ac_hdr in gmp.h
22587 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22588 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22589 echo "configure:22590: checking for $ac_hdr" >&5
22590 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22591 echo $ac_n "(cached) $ac_c" 1>&6
22593 cat > conftest.$ac_ext <<EOF
22594 #line 22595 "configure"
22595 #include "confdefs.h"
22598 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22599 { (eval echo configure:22600: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22600 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22601 if test -z "$ac_err"; then
22603 eval "ac_cv_header_$ac_safe=yes"
22606 echo "configure: failed program was:" >&5
22607 cat conftest.$ac_ext >&5
22609 eval "ac_cv_header_$ac_safe=no"
22613 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22614 echo "$ac_t""yes" 1>&6
22615 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22616 cat >> confdefs.h <<EOF
22617 #define $ac_tr_hdr 1
22621 echo "$ac_t""no" 1>&6
22626 if test "$ol_with_tls" = "found" ; then
22628 ol_have_crypto_h=no
22630 if test "$ac_cv_header_openssl_bn_h" = "yes" \
22631 -o "$ac_cv_header_bn_h" = "yes" ; then
22635 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
22636 -o "$ac_cv_header_crypto_h" = "yes" ; then
22637 ol_have_crypto_h=yes
22640 if test "$ol_have_bn_h" = "yes" \
22641 -a "$ol_have_crypto_h" = "yes" ; then
22646 if test $ac_cv_header_gmp_h = yes ; then
22647 echo $ac_n "checking for __gmpz_add_ui in -lgmp""... $ac_c" 1>&6
22648 echo "configure:22649: checking for __gmpz_add_ui in -lgmp" >&5
22649 ac_lib_var=`echo gmp'_'__gmpz_add_ui | sed 'y%./+-:%__p__%'`
22650 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22651 echo $ac_n "(cached) $ac_c" 1>&6
22653 ac_save_LIBS="$LIBS"
22655 cat > conftest.$ac_ext <<EOF
22656 #line 22657 "configure"
22657 #include "confdefs.h"
22658 /* Override any gcc2 internal prototype to avoid an error. */
22659 /* We use char because int might match the return type of a gcc2
22660 builtin and then its argument prototype would still apply. */
22661 char __gmpz_add_ui();
22667 if { (eval echo configure:22668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22669 eval "ac_cv_lib_$ac_lib_var=yes"
22671 echo "configure: failed program was:" >&5
22672 cat conftest.$ac_ext >&5
22674 eval "ac_cv_lib_$ac_lib_var=no"
22677 LIBS="$ac_save_LIBS"
22680 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22681 echo "$ac_t""yes" 1>&6
22684 echo "$ac_t""no" 1>&6
22688 if test $have_gmp = yes ; then
22693 echo $ac_n "checking for multiple precision support""... $ac_c" 1>&6
22694 echo "configure:22695: checking for multiple precision support" >&5
22696 ol_mp_support="none"
22697 case "$ol_with_multiple_precision" in
22699 if test "$ol_have_bignum" = "yes" ; then
22700 ol_mp_support="bignum"
22702 if test "$ol_have_gmp" = "yes" ; then
22703 ol_mp_support="gmp"
22708 if test "$ol_have_bignum" != "yes" ; then
22709 { echo "configure: error: OpenSSL's BIGNUM not available" 1>&2; exit 1; }
22711 ol_mp_support="bignum"
22714 if test "$ol_have_gmp" != "yes" ; then
22715 { echo "configure: error: GMP not available" 1>&2; exit 1; }
22717 ol_mp_support="gmp"
22720 if test "$ol_have_bignum" = "yes" ; then
22721 ol_mp_support="bignum"
22722 elif test "$ol_have_gmp" = "yes" ; then
22723 ol_mp_support="gmp"
22725 { echo "configure: error: not available" 1>&2; exit 1; }
22730 case "$ol_mp_support" in
22732 cat >> confdefs.h <<\EOF
22733 #define HAVE_BIGNUM 1
22738 cat >> confdefs.h <<\EOF
22742 SLAPD_GMP_LIBS=-lgmp
22748 echo "$ac_t""$ol_mp_support" 1>&6
22752 echo $ac_n "checking long long""... $ac_c" 1>&6
22753 echo "configure:22754: checking long long" >&5
22754 if eval "test \"\${ol_cv_type_long_long+set}\" = set"; then
22755 echo $ac_n "(cached) $ac_c" 1>&6
22758 cat > conftest.$ac_ext <<EOF
22759 #line 22760 "configure"
22760 #include "confdefs.h"
22766 if { (eval echo configure:22767: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22768 ol_cv_type_long_long=yes
22770 echo "configure: failed program was:" >&5
22771 cat conftest.$ac_ext >&5
22773 ol_cv_type_long_long=no
22778 echo "$ac_t""$ol_cv_type_long_long" 1>&6
22779 if test $ol_cv_type_long_long = yes; then
22780 cat >> confdefs.h <<\EOF
22781 #define HAVE_LONG_LONG 1
22786 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
22787 echo "configure:22788: checking for ANSI C header files" >&5
22788 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
22789 echo $ac_n "(cached) $ac_c" 1>&6
22791 cat > conftest.$ac_ext <<EOF
22792 #line 22793 "configure"
22793 #include "confdefs.h"
22794 #include <stdlib.h>
22795 #include <stdarg.h>
22796 #include <string.h>
22799 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22800 { (eval echo configure:22801: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22801 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22802 if test -z "$ac_err"; then
22804 ac_cv_header_stdc=yes
22807 echo "configure: failed program was:" >&5
22808 cat conftest.$ac_ext >&5
22810 ac_cv_header_stdc=no
22814 if test $ac_cv_header_stdc = yes; then
22815 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22816 cat > conftest.$ac_ext <<EOF
22817 #line 22818 "configure"
22818 #include "confdefs.h"
22819 #include <string.h>
22821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22822 egrep "memchr" >/dev/null 2>&1; then
22826 ac_cv_header_stdc=no
22832 if test $ac_cv_header_stdc = yes; then
22833 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22834 cat > conftest.$ac_ext <<EOF
22835 #line 22836 "configure"
22836 #include "confdefs.h"
22837 #include <stdlib.h>
22839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22840 egrep "free" >/dev/null 2>&1; then
22844 ac_cv_header_stdc=no
22850 if test $ac_cv_header_stdc = yes; then
22851 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22852 if test "$cross_compiling" = yes; then
22855 cat > conftest.$ac_ext <<EOF
22856 #line 22857 "configure"
22857 #include "confdefs.h"
22859 #if ((' ' & 0x0FF) == 0x020)
22860 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22861 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22863 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
22864 || ('j' <= (c) && (c) <= 'r') \
22865 || ('s' <= (c) && (c) <= 'z'))
22866 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22868 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22869 int main () { int i; for (i = 0; i < 256; i++)
22870 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
22874 if { (eval echo configure:22875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22878 echo "configure: failed program was:" >&5
22879 cat conftest.$ac_ext >&5
22881 ac_cv_header_stdc=no
22889 echo "$ac_t""$ac_cv_header_stdc" 1>&6
22890 if test $ac_cv_header_stdc = yes; then
22891 cat >> confdefs.h <<\EOF
22892 #define STDC_HEADERS 1
22897 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
22898 echo "configure:22899: checking for mode_t" >&5
22899 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
22900 echo $ac_n "(cached) $ac_c" 1>&6
22902 cat > conftest.$ac_ext <<EOF
22903 #line 22904 "configure"
22904 #include "confdefs.h"
22905 #include <sys/types.h>
22907 #include <stdlib.h>
22908 #include <stddef.h>
22912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22913 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22915 eval "ac_cv_type_mode_t=yes"
22918 eval "ac_cv_type_mode_t=no"
22923 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
22924 echo "$ac_t""yes" 1>&6
22926 echo "$ac_t""no" 1>&6
22927 cat >> confdefs.h <<EOF
22933 echo $ac_n "checking for off_t""... $ac_c" 1>&6
22934 echo "configure:22935: checking for off_t" >&5
22935 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
22936 echo $ac_n "(cached) $ac_c" 1>&6
22938 cat > conftest.$ac_ext <<EOF
22939 #line 22940 "configure"
22940 #include "confdefs.h"
22941 #include <sys/types.h>
22943 #include <stdlib.h>
22944 #include <stddef.h>
22948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22949 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22951 eval "ac_cv_type_off_t=yes"
22954 eval "ac_cv_type_off_t=no"
22959 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
22960 echo "$ac_t""yes" 1>&6
22962 echo "$ac_t""no" 1>&6
22963 cat >> confdefs.h <<EOF
22969 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
22970 echo "configure:22971: checking for pid_t" >&5
22971 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
22972 echo $ac_n "(cached) $ac_c" 1>&6
22974 cat > conftest.$ac_ext <<EOF
22975 #line 22976 "configure"
22976 #include "confdefs.h"
22977 #include <sys/types.h>
22979 #include <stdlib.h>
22980 #include <stddef.h>
22984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22985 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22987 eval "ac_cv_type_pid_t=yes"
22990 eval "ac_cv_type_pid_t=no"
22995 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
22996 echo "$ac_t""yes" 1>&6
22998 echo "$ac_t""no" 1>&6
22999 cat >> confdefs.h <<EOF
23005 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
23006 echo "configure:23007: checking for ptrdiff_t" >&5
23007 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
23008 echo $ac_n "(cached) $ac_c" 1>&6
23010 cat > conftest.$ac_ext <<EOF
23011 #line 23012 "configure"
23012 #include "confdefs.h"
23013 #include <stddef.h>
23018 if { (eval echo configure:23019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23020 am_cv_type_ptrdiff_t=yes
23022 echo "configure: failed program was:" >&5
23023 cat conftest.$ac_ext >&5
23025 am_cv_type_ptrdiff_t=no
23030 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
23031 if test $am_cv_type_ptrdiff_t = yes; then
23032 cat >> confdefs.h <<\EOF
23033 #define HAVE_PTRDIFF_T 1
23038 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
23039 echo "configure:23040: checking return type of signal handlers" >&5
23040 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
23041 echo $ac_n "(cached) $ac_c" 1>&6
23043 cat > conftest.$ac_ext <<EOF
23044 #line 23045 "configure"
23045 #include "confdefs.h"
23046 #include <sys/types.h>
23047 #include <signal.h>
23052 extern "C" void (*signal (int, void (*)(int)))(int);
23054 void (*signal ()) ();
23061 if { (eval echo configure:23062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23063 ac_cv_type_signal=void
23065 echo "configure: failed program was:" >&5
23066 cat conftest.$ac_ext >&5
23068 ac_cv_type_signal=int
23073 echo "$ac_t""$ac_cv_type_signal" 1>&6
23074 cat >> confdefs.h <<EOF
23075 #define RETSIGTYPE $ac_cv_type_signal
23079 echo $ac_n "checking for size_t""... $ac_c" 1>&6
23080 echo "configure:23081: checking for size_t" >&5
23081 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
23082 echo $ac_n "(cached) $ac_c" 1>&6
23084 cat > conftest.$ac_ext <<EOF
23085 #line 23086 "configure"
23086 #include "confdefs.h"
23087 #include <sys/types.h>
23089 #include <stdlib.h>
23090 #include <stddef.h>
23094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23095 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
23097 eval "ac_cv_type_size_t=yes"
23100 eval "ac_cv_type_size_t=no"
23105 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
23106 echo "$ac_t""yes" 1>&6
23108 echo "$ac_t""no" 1>&6
23109 cat >> confdefs.h <<EOF
23110 #define size_t unsigned
23116 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
23117 echo "configure:23118: checking for ssize_t" >&5
23118 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
23119 echo $ac_n "(cached) $ac_c" 1>&6
23121 cat > conftest.$ac_ext <<EOF
23122 #line 23123 "configure"
23123 #include "confdefs.h"
23124 #include <sys/types.h>
23126 #include <stdlib.h>
23127 #include <stddef.h>
23131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23132 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
23134 eval "ac_cv_type_ssize_t=yes"
23137 eval "ac_cv_type_ssize_t=no"
23142 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
23143 echo "$ac_t""yes" 1>&6
23145 echo "$ac_t""no" 1>&6
23146 cat >> confdefs.h <<EOF
23147 #define ssize_t signed int
23152 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
23153 echo "configure:23154: checking for caddr_t" >&5
23154 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
23155 echo $ac_n "(cached) $ac_c" 1>&6
23157 cat > conftest.$ac_ext <<EOF
23158 #line 23159 "configure"
23159 #include "confdefs.h"
23160 #include <sys/types.h>
23162 #include <stdlib.h>
23163 #include <stddef.h>
23167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23168 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
23170 eval "ac_cv_type_caddr_t=yes"
23173 eval "ac_cv_type_caddr_t=no"
23178 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
23179 echo "$ac_t""yes" 1>&6
23181 echo "$ac_t""no" 1>&6
23182 cat >> confdefs.h <<EOF
23183 #define caddr_t char *
23189 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
23190 echo "configure:23191: checking for socklen_t" >&5
23191 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
23192 echo $ac_n "(cached) $ac_c" 1>&6
23194 cat > conftest.$ac_ext <<EOF
23195 #line 23196 "configure"
23196 #include "confdefs.h"
23198 #ifdef HAVE_SYS_TYPES_H
23199 #include <sys/types.h>
23201 #ifdef HAVE_SYS_SOCKET_H
23202 #include <sys/socket.h>
23209 if { (eval echo configure:23210: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23211 ol_cv_type_socklen_t=yes
23213 echo "configure: failed program was:" >&5
23214 cat conftest.$ac_ext >&5
23216 ol_cv_type_socklen_t=no
23221 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
23222 if test $ol_cv_type_socklen_t = no; then
23223 cat >> confdefs.h <<\EOF
23224 #define socklen_t int
23229 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
23230 echo "configure:23231: checking for member st_blksize in aggregate type struct stat" >&5
23231 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
23232 echo $ac_n "(cached) $ac_c" 1>&6
23234 cat > conftest.$ac_ext <<EOF
23235 #line 23236 "configure"
23236 #include "confdefs.h"
23237 #include <sys/types.h>
23238 #include <sys/stat.h>
23240 struct stat foo; foo.st_blksize;
23243 if { (eval echo configure:23244: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23245 ac_cv_c_struct_member_st_blksize=yes
23247 echo "configure: failed program was:" >&5
23248 cat conftest.$ac_ext >&5
23250 ac_cv_c_struct_member_st_blksize=no
23255 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
23256 st_blksize="$ac_cv_c_struct_member_st_blksize"
23257 if test $ac_cv_c_struct_member_st_blksize = yes; then
23258 cat >> confdefs.h <<\EOF
23259 #define HAVE_ST_BLKSIZE 1
23264 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
23265 echo "configure:23266: checking whether time.h and sys/time.h may both be included" >&5
23266 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
23267 echo $ac_n "(cached) $ac_c" 1>&6
23269 cat > conftest.$ac_ext <<EOF
23270 #line 23271 "configure"
23271 #include "confdefs.h"
23272 #include <sys/types.h>
23273 #include <sys/time.h>
23279 if { (eval echo configure:23280: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23281 ac_cv_header_time=yes
23283 echo "configure: failed program was:" >&5
23284 cat conftest.$ac_ext >&5
23286 ac_cv_header_time=no
23291 echo "$ac_t""$ac_cv_header_time" 1>&6
23292 if test $ac_cv_header_time = yes; then
23293 cat >> confdefs.h <<\EOF
23294 #define TIME_WITH_SYS_TIME 1
23299 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
23300 echo "configure:23301: checking whether struct tm is in sys/time.h or time.h" >&5
23301 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
23302 echo $ac_n "(cached) $ac_c" 1>&6
23304 cat > conftest.$ac_ext <<EOF
23305 #line 23306 "configure"
23306 #include "confdefs.h"
23307 #include <sys/types.h>
23310 struct tm *tp; tp->tm_sec;
23313 if { (eval echo configure:23314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23315 ac_cv_struct_tm=time.h
23317 echo "configure: failed program was:" >&5
23318 cat conftest.$ac_ext >&5
23320 ac_cv_struct_tm=sys/time.h
23325 echo "$ac_t""$ac_cv_struct_tm" 1>&6
23326 if test $ac_cv_struct_tm = sys/time.h; then
23327 cat >> confdefs.h <<\EOF
23328 #define TM_IN_SYS_TIME 1
23333 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
23334 echo "configure:23335: checking for uid_t in sys/types.h" >&5
23335 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
23336 echo $ac_n "(cached) $ac_c" 1>&6
23338 cat > conftest.$ac_ext <<EOF
23339 #line 23340 "configure"
23340 #include "confdefs.h"
23341 #include <sys/types.h>
23343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23344 egrep "uid_t" >/dev/null 2>&1; then
23346 ac_cv_type_uid_t=yes
23349 ac_cv_type_uid_t=no
23355 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
23356 if test $ac_cv_type_uid_t = no; then
23357 cat >> confdefs.h <<\EOF
23361 cat >> confdefs.h <<\EOF
23367 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
23368 echo "configure:23369: checking for sig_atomic_t" >&5
23369 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
23370 echo $ac_n "(cached) $ac_c" 1>&6
23372 cat > conftest.$ac_ext <<EOF
23373 #line 23374 "configure"
23374 #include "confdefs.h"
23375 #include <signal.h>
23377 sig_atomic_t atomic;
23380 if { (eval echo configure:23381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23382 ol_cv_type_sig_atomic_t=yes
23384 echo "configure: failed program was:" >&5
23385 cat conftest.$ac_ext >&5
23387 ol_cv_type_sig_atomic_t=no
23392 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
23393 if test $ol_cv_type_sig_atomic_t = no; then
23394 cat >> confdefs.h <<\EOF
23395 #define sig_atomic_t int
23402 # test for pw_gecos in struct passwd
23403 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
23404 echo "configure:23405: checking struct passwd for pw_gecos" >&5
23405 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
23406 echo $ac_n "(cached) $ac_c" 1>&6
23409 cat > conftest.$ac_ext <<EOF
23410 #line 23411 "configure"
23411 #include "confdefs.h"
23416 pwd.pw_gecos = pwd.pw_name;
23420 if { (eval echo configure:23421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23422 ol_cv_struct_passwd_pw_gecos=yes
23424 echo "configure: failed program was:" >&5
23425 cat conftest.$ac_ext >&5
23427 ol_cv_struct_passwd_pw_gecos=no
23432 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
23433 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
23434 cat >> confdefs.h <<\EOF
23435 #define HAVE_PW_GECOS 1
23440 # test for pw_passwd in struct passwd
23441 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
23442 echo "configure:23443: checking struct passwd for pw_passwd" >&5
23443 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
23444 echo $ac_n "(cached) $ac_c" 1>&6
23447 cat > conftest.$ac_ext <<EOF
23448 #line 23449 "configure"
23449 #include "confdefs.h"
23454 pwd.pw_passwd = pwd.pw_name;
23458 if { (eval echo configure:23459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23460 ol_cv_struct_passwd_pw_passwd=yes
23462 echo "configure: failed program was:" >&5
23463 cat conftest.$ac_ext >&5
23465 ol_cv_struct_passwd_pw_passwd=no
23470 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
23471 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
23472 cat >> confdefs.h <<\EOF
23473 #define HAVE_PW_PASSWD 1
23479 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
23480 echo "configure:23481: checking if toupper() requires islower()" >&5
23481 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
23482 echo $ac_n "(cached) $ac_c" 1>&6
23485 if test "$cross_compiling" = yes; then
23486 ol_cv_c_upper_lower=safe
23488 cat > conftest.$ac_ext <<EOF
23489 #line 23490 "configure"
23490 #include "confdefs.h"
23495 if ('C' == toupper('C'))
23501 if { (eval echo configure:23502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23503 ol_cv_c_upper_lower=no
23505 echo "configure: failed program was:" >&5
23506 cat conftest.$ac_ext >&5
23508 ol_cv_c_upper_lower=yes
23515 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
23516 if test $ol_cv_c_upper_lower != no ; then
23517 cat >> confdefs.h <<\EOF
23518 #define C_UPPER_LOWER 1
23523 echo $ac_n "checking for working const""... $ac_c" 1>&6
23524 echo "configure:23525: checking for working const" >&5
23525 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
23526 echo $ac_n "(cached) $ac_c" 1>&6
23528 cat > conftest.$ac_ext <<EOF
23529 #line 23530 "configure"
23530 #include "confdefs.h"
23534 /* Ultrix mips cc rejects this. */
23535 typedef int charset[2]; const charset x;
23536 /* SunOS 4.1.1 cc rejects this. */
23537 char const *const *ccp;
23539 /* NEC SVR4.0.2 mips cc rejects this. */
23540 struct point {int x, y;};
23541 static struct point const zero = {0,0};
23542 /* AIX XL C 1.02.0.0 rejects this.
23543 It does not let you subtract one const X* pointer from another in an arm
23544 of an if-expression whose if-part is not a constant expression */
23545 const char *g = "string";
23546 ccp = &g + (g ? g-g : 0);
23547 /* HPUX 7.0 cc rejects these. */
23550 ccp = (char const *const *) p;
23551 { /* SCO 3.2v4 cc rejects this. */
23553 char const *s = 0 ? (char *) 0 : (char const *) 0;
23557 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23558 int x[] = {25, 17};
23559 const int *foo = &x[0];
23562 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23563 typedef const int *iptr;
23567 { /* AIX XL C 1.02.0.0 rejects this saying
23568 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23569 struct s { int j; const int *ap[3]; };
23570 struct s *b; b->j = 5;
23572 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23573 const int foo = 10;
23578 if { (eval echo configure:23579: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23582 echo "configure: failed program was:" >&5
23583 cat conftest.$ac_ext >&5
23590 echo "$ac_t""$ac_cv_c_const" 1>&6
23591 if test $ac_cv_c_const = no; then
23592 cat >> confdefs.h <<\EOF
23598 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
23599 echo "configure:23600: checking if compiler understands volatile" >&5
23600 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
23601 echo $ac_n "(cached) $ac_c" 1>&6
23603 cat > conftest.$ac_ext <<EOF
23604 #line 23605 "configure"
23605 #include "confdefs.h"
23608 volatile int a; int * volatile b = x ? &y : &z;
23609 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
23613 if { (eval echo configure:23614: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23615 ol_cv_c_volatile=yes
23617 echo "configure: failed program was:" >&5
23618 cat conftest.$ac_ext >&5
23620 ol_cv_c_volatile=no
23625 echo "$ac_t""$ol_cv_c_volatile" 1>&6
23626 if test $ol_cv_c_volatile = yes; then
23629 cat >> confdefs.h <<\EOF
23636 if test $cross_compiling = yes ; then
23637 echo "configure: warning: Crossing compiling... all bets are off!" 1>&2
23638 cat >> confdefs.h <<\EOF
23639 #define CROSS_COMPILING 1
23643 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
23644 echo "configure:23645: checking whether byte ordering is bigendian" >&5
23645 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
23646 echo $ac_n "(cached) $ac_c" 1>&6
23648 ac_cv_c_bigendian=unknown
23649 # See if sys/param.h defines the BYTE_ORDER macro.
23650 cat > conftest.$ac_ext <<EOF
23651 #line 23652 "configure"
23652 #include "confdefs.h"
23653 #include <sys/types.h>
23654 #include <sys/param.h>
23657 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
23658 bogus endian macros
23662 if { (eval echo configure:23663: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23664 # It does; now see whether it defined to BIG_ENDIAN or not.
23665 cat > conftest.$ac_ext <<EOF
23666 #line 23667 "configure"
23667 #include "confdefs.h"
23668 #include <sys/types.h>
23669 #include <sys/param.h>
23672 #if BYTE_ORDER != BIG_ENDIAN
23677 if { (eval echo configure:23678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23679 ac_cv_c_bigendian=yes
23681 echo "configure: failed program was:" >&5
23682 cat conftest.$ac_ext >&5
23684 ac_cv_c_bigendian=no
23688 echo "configure: failed program was:" >&5
23689 cat conftest.$ac_ext >&5
23692 if test $ac_cv_c_bigendian = unknown; then
23693 if test "$cross_compiling" = yes; then
23694 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
23696 cat > conftest.$ac_ext <<EOF
23697 #line 23698 "configure"
23698 #include "confdefs.h"
23700 /* Are we little or big endian? From Harbison&Steele. */
23704 char c[sizeof (long)];
23707 exit (u.c[sizeof (long) - 1] == 1);
23710 if { (eval echo configure:23711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23712 ac_cv_c_bigendian=no
23714 echo "configure: failed program was:" >&5
23715 cat conftest.$ac_ext >&5
23717 ac_cv_c_bigendian=yes
23725 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
23726 if test $ac_cv_c_bigendian = yes; then
23727 cat >> confdefs.h <<\EOF
23728 #define WORDS_BIGENDIAN 1
23735 echo $ac_n "checking size of short""... $ac_c" 1>&6
23736 echo "configure:23737: checking size of short" >&5
23737 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
23738 echo $ac_n "(cached) $ac_c" 1>&6
23740 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23741 cat > conftest.$ac_ext <<EOF
23742 #line 23743 "configure"
23743 #include "confdefs.h"
23744 #include "confdefs.h"
23745 #include <stdlib.h>
23746 #include <sys/types.h>
23750 switch (0) case 0: case (sizeof (short) == $ac_size):;
23753 if { (eval echo configure:23754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23755 ac_cv_sizeof_short=$ac_size
23757 echo "configure: failed program was:" >&5
23758 cat conftest.$ac_ext >&5
23761 if test x$ac_cv_sizeof_short != x ; then break; fi
23766 if test x$ac_cv_sizeof_short = x ; then
23767 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
23769 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
23770 cat >> confdefs.h <<EOF
23771 #define SIZEOF_SHORT $ac_cv_sizeof_short
23775 echo $ac_n "checking size of int""... $ac_c" 1>&6
23776 echo "configure:23777: checking size of int" >&5
23777 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
23778 echo $ac_n "(cached) $ac_c" 1>&6
23780 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23781 cat > conftest.$ac_ext <<EOF
23782 #line 23783 "configure"
23783 #include "confdefs.h"
23784 #include "confdefs.h"
23785 #include <stdlib.h>
23786 #include <sys/types.h>
23790 switch (0) case 0: case (sizeof (int) == $ac_size):;
23793 if { (eval echo configure:23794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23795 ac_cv_sizeof_int=$ac_size
23797 echo "configure: failed program was:" >&5
23798 cat conftest.$ac_ext >&5
23801 if test x$ac_cv_sizeof_int != x ; then break; fi
23806 if test x$ac_cv_sizeof_int = x ; then
23807 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
23809 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
23810 cat >> confdefs.h <<EOF
23811 #define SIZEOF_INT $ac_cv_sizeof_int
23815 echo $ac_n "checking size of long""... $ac_c" 1>&6
23816 echo "configure:23817: checking size of long" >&5
23817 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
23818 echo $ac_n "(cached) $ac_c" 1>&6
23820 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23821 cat > conftest.$ac_ext <<EOF
23822 #line 23823 "configure"
23823 #include "confdefs.h"
23824 #include "confdefs.h"
23825 #include <stdlib.h>
23826 #include <sys/types.h>
23830 switch (0) case 0: case (sizeof (long) == $ac_size):;
23833 if { (eval echo configure:23834: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23835 ac_cv_sizeof_long=$ac_size
23837 echo "configure: failed program was:" >&5
23838 cat conftest.$ac_ext >&5
23841 if test x$ac_cv_sizeof_long != x ; then break; fi
23846 if test x$ac_cv_sizeof_long = x ; then
23847 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
23849 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
23850 cat >> confdefs.h <<EOF
23851 #define SIZEOF_LONG $ac_cv_sizeof_long
23855 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
23856 echo "configure:23857: checking size of wchar_t" >&5
23857 if eval "test \"\${ac_cv_sizeof_wchar_t+set}\" = set"; then
23858 echo $ac_n "(cached) $ac_c" 1>&6
23860 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23861 cat > conftest.$ac_ext <<EOF
23862 #line 23863 "configure"
23863 #include "confdefs.h"
23864 #include "confdefs.h"
23865 #include <stdlib.h>
23866 #include <sys/types.h>
23870 switch (0) case 0: case (sizeof (wchar_t) == $ac_size):;
23873 if { (eval echo configure:23874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23875 ac_cv_sizeof_wchar_t=$ac_size
23877 echo "configure: failed program was:" >&5
23878 cat conftest.$ac_ext >&5
23881 if test x$ac_cv_sizeof_wchar_t != x ; then break; fi
23886 if test x$ac_cv_sizeof_wchar_t = x ; then
23887 { echo "configure: error: cannot determine a size for wchar_t" 1>&2; exit 1; }
23889 echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
23890 cat >> confdefs.h <<EOF
23891 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23896 if test "$ac_cv_sizeof_int" -lt 4 ; then
23897 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
23899 cat >> confdefs.h <<\EOF
23900 #define LBER_INT_T long
23904 cat >> confdefs.h <<\EOF
23905 #define LBER_INT_T int
23910 cat >> confdefs.h <<\EOF
23911 #define LBER_LEN_T long
23914 cat >> confdefs.h <<\EOF
23915 #define LBER_SOCKET_T int
23918 cat >> confdefs.h <<\EOF
23919 #define LBER_TAG_T long
23923 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
23924 echo "configure:23925: checking for 8-bit clean memcmp" >&5
23925 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
23926 echo $ac_n "(cached) $ac_c" 1>&6
23928 if test "$cross_compiling" = yes; then
23929 ac_cv_func_memcmp_clean=no
23931 cat > conftest.$ac_ext <<EOF
23932 #line 23933 "configure"
23933 #include "confdefs.h"
23937 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
23938 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
23942 if { (eval echo configure:23943: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
23944 ac_cv_func_memcmp_clean=yes
23946 echo "configure: failed program was:" >&5
23947 cat conftest.$ac_ext >&5
23949 ac_cv_func_memcmp_clean=no
23956 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
23957 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
23959 echo $ac_n "checking for strftime""... $ac_c" 1>&6
23960 echo "configure:23961: checking for strftime" >&5
23961 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
23962 echo $ac_n "(cached) $ac_c" 1>&6
23964 cat > conftest.$ac_ext <<EOF
23965 #line 23966 "configure"
23966 #include "confdefs.h"
23967 /* System header to define __stub macros and hopefully few prototypes,
23968 which can conflict with char strftime(); below. */
23969 #include <assert.h>
23970 /* Override any gcc2 internal prototype to avoid an error. */
23971 /* We use char because int might match the return type of a gcc2
23972 builtin and then its argument prototype would still apply. */
23978 /* The GNU C library defines this for functions which it implements
23979 to always fail with ENOSYS. Some functions are actually named
23980 something starting with __ and the normal name is an alias. */
23981 #if defined (__stub_strftime) || defined (__stub___strftime)
23989 if { (eval echo configure:23990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23991 eval "ac_cv_func_strftime=yes"
23993 echo "configure: failed program was:" >&5
23994 cat conftest.$ac_ext >&5
23996 eval "ac_cv_func_strftime=no"
24001 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
24002 echo "$ac_t""yes" 1>&6
24003 cat >> confdefs.h <<\EOF
24004 #define HAVE_STRFTIME 1
24008 echo "$ac_t""no" 1>&6
24009 # strftime is in -lintl on SCO UNIX.
24010 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
24011 echo "configure:24012: checking for strftime in -lintl" >&5
24012 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
24013 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
24014 echo $ac_n "(cached) $ac_c" 1>&6
24016 ac_save_LIBS="$LIBS"
24017 LIBS="-lintl $LIBS"
24018 cat > conftest.$ac_ext <<EOF
24019 #line 24020 "configure"
24020 #include "confdefs.h"
24021 /* Override any gcc2 internal prototype to avoid an error. */
24022 /* We use char because int might match the return type of a gcc2
24023 builtin and then its argument prototype would still apply. */
24030 if { (eval echo configure:24031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24032 eval "ac_cv_lib_$ac_lib_var=yes"
24034 echo "configure: failed program was:" >&5
24035 cat conftest.$ac_ext >&5
24037 eval "ac_cv_lib_$ac_lib_var=no"
24040 LIBS="$ac_save_LIBS"
24043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
24044 echo "$ac_t""yes" 1>&6
24045 cat >> confdefs.h <<\EOF
24046 #define HAVE_STRFTIME 1
24049 LIBS="-lintl $LIBS"
24051 echo "$ac_t""no" 1>&6
24057 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
24058 echo "configure:24059: checking for inet_aton()" >&5
24059 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
24060 echo $ac_n "(cached) $ac_c" 1>&6
24062 cat > conftest.$ac_ext <<EOF
24063 #line 24064 "configure"
24064 #include "confdefs.h"
24066 #ifdef HAVE_SYS_TYPES_H
24067 # include <sys/types.h>
24069 #ifdef HAVE_SYS_SOCKET_H
24070 # include <sys/socket.h>
24071 # ifdef HAVE_SYS_SELECT_H
24072 # include <sys/select.h>
24074 # include <netinet/in.h>
24075 # ifdef HAVE_ARPA_INET_H
24076 # include <arpa/inet.h>
24082 int rc = inet_aton( "255.255.255.255", &in );
24085 if { (eval echo configure:24086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24087 ol_cv_func_inet_aton=yes
24089 echo "configure: failed program was:" >&5
24090 cat conftest.$ac_ext >&5
24092 ol_cv_func_inet_aton=no
24097 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
24098 if test $ol_cv_func_inet_aton != no; then
24099 cat >> confdefs.h <<\EOF
24100 #define HAVE_INET_ATON 1
24106 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
24107 echo "configure:24108: checking for _spawnlp" >&5
24108 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
24109 echo $ac_n "(cached) $ac_c" 1>&6
24111 cat > conftest.$ac_ext <<EOF
24112 #line 24113 "configure"
24113 #include "confdefs.h"
24114 /* System header to define __stub macros and hopefully few prototypes,
24115 which can conflict with char _spawnlp(); below. */
24116 #include <assert.h>
24117 /* Override any gcc2 internal prototype to avoid an error. */
24118 /* We use char because int might match the return type of a gcc2
24119 builtin and then its argument prototype would still apply. */
24125 /* The GNU C library defines this for functions which it implements
24126 to always fail with ENOSYS. Some functions are actually named
24127 something starting with __ and the normal name is an alias. */
24128 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
24136 if { (eval echo configure:24137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24138 eval "ac_cv_func__spawnlp=yes"
24140 echo "configure: failed program was:" >&5
24141 cat conftest.$ac_ext >&5
24143 eval "ac_cv_func__spawnlp=no"
24148 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
24149 echo "$ac_t""yes" 1>&6
24150 cat >> confdefs.h <<\EOF
24151 #define HAVE_SPAWNLP 1
24155 echo "$ac_t""no" 1>&6
24159 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
24160 echo "configure:24161: checking for _snprintf" >&5
24161 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
24162 echo $ac_n "(cached) $ac_c" 1>&6
24164 cat > conftest.$ac_ext <<EOF
24165 #line 24166 "configure"
24166 #include "confdefs.h"
24167 /* System header to define __stub macros and hopefully few prototypes,
24168 which can conflict with char _snprintf(); below. */
24169 #include <assert.h>
24170 /* Override any gcc2 internal prototype to avoid an error. */
24171 /* We use char because int might match the return type of a gcc2
24172 builtin and then its argument prototype would still apply. */
24178 /* The GNU C library defines this for functions which it implements
24179 to always fail with ENOSYS. Some functions are actually named
24180 something starting with __ and the normal name is an alias. */
24181 #if defined (__stub__snprintf) || defined (__stub____snprintf)
24189 if { (eval echo configure:24190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24191 eval "ac_cv_func__snprintf=yes"
24193 echo "configure: failed program was:" >&5
24194 cat conftest.$ac_ext >&5
24196 eval "ac_cv_func__snprintf=no"
24201 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
24202 echo "$ac_t""yes" 1>&6
24203 ac_cv_func_snprintf=yes
24204 cat >> confdefs.h <<\EOF
24205 #define snprintf _snprintf
24210 echo "$ac_t""no" 1>&6
24214 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
24215 echo "configure:24216: checking for _vsnprintf" >&5
24216 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
24217 echo $ac_n "(cached) $ac_c" 1>&6
24219 cat > conftest.$ac_ext <<EOF
24220 #line 24221 "configure"
24221 #include "confdefs.h"
24222 /* System header to define __stub macros and hopefully few prototypes,
24223 which can conflict with char _vsnprintf(); below. */
24224 #include <assert.h>
24225 /* Override any gcc2 internal prototype to avoid an error. */
24226 /* We use char because int might match the return type of a gcc2
24227 builtin and then its argument prototype would still apply. */
24233 /* The GNU C library defines this for functions which it implements
24234 to always fail with ENOSYS. Some functions are actually named
24235 something starting with __ and the normal name is an alias. */
24236 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
24244 if { (eval echo configure:24245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24246 eval "ac_cv_func__vsnprintf=yes"
24248 echo "configure: failed program was:" >&5
24249 cat conftest.$ac_ext >&5
24251 eval "ac_cv_func__vsnprintf=no"
24256 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
24257 echo "$ac_t""yes" 1>&6
24258 ac_cv_func_vsnprintf=yes
24259 cat >> confdefs.h <<\EOF
24260 #define vsnprintf _vsnprintf
24265 echo "$ac_t""no" 1>&6
24269 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
24270 echo "configure:24271: checking for vprintf" >&5
24271 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
24272 echo $ac_n "(cached) $ac_c" 1>&6
24274 cat > conftest.$ac_ext <<EOF
24275 #line 24276 "configure"
24276 #include "confdefs.h"
24277 /* System header to define __stub macros and hopefully few prototypes,
24278 which can conflict with char vprintf(); below. */
24279 #include <assert.h>
24280 /* Override any gcc2 internal prototype to avoid an error. */
24281 /* We use char because int might match the return type of a gcc2
24282 builtin and then its argument prototype would still apply. */
24288 /* The GNU C library defines this for functions which it implements
24289 to always fail with ENOSYS. Some functions are actually named
24290 something starting with __ and the normal name is an alias. */
24291 #if defined (__stub_vprintf) || defined (__stub___vprintf)
24299 if { (eval echo configure:24300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24301 eval "ac_cv_func_vprintf=yes"
24303 echo "configure: failed program was:" >&5
24304 cat conftest.$ac_ext >&5
24306 eval "ac_cv_func_vprintf=no"
24311 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
24312 echo "$ac_t""yes" 1>&6
24313 cat >> confdefs.h <<\EOF
24314 #define HAVE_VPRINTF 1
24318 echo "$ac_t""no" 1>&6
24321 if test "$ac_cv_func_vprintf" != yes; then
24322 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
24323 echo "configure:24324: checking for _doprnt" >&5
24324 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
24325 echo $ac_n "(cached) $ac_c" 1>&6
24327 cat > conftest.$ac_ext <<EOF
24328 #line 24329 "configure"
24329 #include "confdefs.h"
24330 /* System header to define __stub macros and hopefully few prototypes,
24331 which can conflict with char _doprnt(); below. */
24332 #include <assert.h>
24333 /* Override any gcc2 internal prototype to avoid an error. */
24334 /* We use char because int might match the return type of a gcc2
24335 builtin and then its argument prototype would still apply. */
24341 /* The GNU C library defines this for functions which it implements
24342 to always fail with ENOSYS. Some functions are actually named
24343 something starting with __ and the normal name is an alias. */
24344 #if defined (__stub__doprnt) || defined (__stub____doprnt)
24352 if { (eval echo configure:24353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24354 eval "ac_cv_func__doprnt=yes"
24356 echo "configure: failed program was:" >&5
24357 cat conftest.$ac_ext >&5
24359 eval "ac_cv_func__doprnt=no"
24364 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
24365 echo "$ac_t""yes" 1>&6
24366 cat >> confdefs.h <<\EOF
24367 #define HAVE_DOPRNT 1
24371 echo "$ac_t""no" 1>&6
24377 if test $ac_cv_func_vprintf = yes ; then
24378 for ac_func in snprintf vsnprintf
24380 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24381 echo "configure:24382: checking for $ac_func" >&5
24382 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
24383 echo $ac_n "(cached) $ac_c" 1>&6
24385 cat > conftest.$ac_ext <<EOF
24386 #line 24387 "configure"
24387 #include "confdefs.h"
24388 /* System header to define __stub macros and hopefully few prototypes,
24389 which can conflict with char $ac_func(); below. */
24390 #include <assert.h>
24391 /* Override any gcc2 internal prototype to avoid an error. */
24392 /* We use char because int might match the return type of a gcc2
24393 builtin and then its argument prototype would still apply. */
24399 /* The GNU C library defines this for functions which it implements
24400 to always fail with ENOSYS. Some functions are actually named
24401 something starting with __ and the normal name is an alias. */
24402 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24410 if { (eval echo configure:24411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24412 eval "ac_cv_func_$ac_func=yes"
24414 echo "configure: failed program was:" >&5
24415 cat conftest.$ac_ext >&5
24417 eval "ac_cv_func_$ac_func=no"
24422 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
24423 echo "$ac_t""yes" 1>&6
24424 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24425 cat >> confdefs.h <<EOF
24426 #define $ac_tr_func 1
24430 echo "$ac_t""no" 1>&6
24494 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24495 echo "configure:24496: checking for $ac_func" >&5
24496 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
24497 echo $ac_n "(cached) $ac_c" 1>&6
24499 cat > conftest.$ac_ext <<EOF
24500 #line 24501 "configure"
24501 #include "confdefs.h"
24502 /* System header to define __stub macros and hopefully few prototypes,
24503 which can conflict with char $ac_func(); below. */
24504 #include <assert.h>
24505 /* Override any gcc2 internal prototype to avoid an error. */
24506 /* We use char because int might match the return type of a gcc2
24507 builtin and then its argument prototype would still apply. */
24513 /* The GNU C library defines this for functions which it implements
24514 to always fail with ENOSYS. Some functions are actually named
24515 something starting with __ and the normal name is an alias. */
24516 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24524 if { (eval echo configure:24525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24526 eval "ac_cv_func_$ac_func=yes"
24528 echo "configure: failed program was:" >&5
24529 cat conftest.$ac_ext >&5
24531 eval "ac_cv_func_$ac_func=no"
24536 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
24537 echo "$ac_t""yes" 1>&6
24538 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24539 cat >> confdefs.h <<EOF
24540 #define $ac_tr_func 1
24544 echo "$ac_t""no" 1>&6
24549 for ac_func in getopt getpeereid
24551 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24552 echo "configure:24553: checking for $ac_func" >&5
24553 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
24554 echo $ac_n "(cached) $ac_c" 1>&6
24556 cat > conftest.$ac_ext <<EOF
24557 #line 24558 "configure"
24558 #include "confdefs.h"
24559 /* System header to define __stub macros and hopefully few prototypes,
24560 which can conflict with char $ac_func(); below. */
24561 #include <assert.h>
24562 /* Override any gcc2 internal prototype to avoid an error. */
24563 /* We use char because int might match the return type of a gcc2
24564 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_$ac_func) || defined (__stub___$ac_func)
24581 if { (eval echo configure:24582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24583 eval "ac_cv_func_$ac_func=yes"
24585 echo "configure: failed program was:" >&5
24586 cat conftest.$ac_ext >&5
24588 eval "ac_cv_func_$ac_func=no"
24593 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
24594 echo "$ac_t""yes" 1>&6
24595 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24596 cat >> confdefs.h <<EOF
24597 #define $ac_tr_func 1
24601 echo "$ac_t""no" 1>&6
24602 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
24608 if test "$ac_cv_func_getopt" != yes; then
24609 LIBSRCS="$LIBSRCS getopt.c"
24611 if test "$ac_cv_func_getpeereid" != yes; then
24612 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
24613 echo "configure:24614: checking for msg_accrights in msghdr" >&5
24614 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
24615 echo $ac_n "(cached) $ac_c" 1>&6
24617 cat > conftest.$ac_ext <<EOF
24618 #line 24619 "configure"
24619 #include "confdefs.h"
24620 #include <sys/socket.h>
24622 struct msghdr m; m.msg_accrightslen=0
24625 if { (eval echo configure:24626: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
24627 ol_cv_msghdr_msg_accrights=yes
24629 echo "configure: failed program was:" >&5
24630 cat conftest.$ac_ext >&5
24632 ol_cv_msghdr_msg_accrights=no
24638 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
24639 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
24640 cat >> confdefs.h <<\EOF
24641 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
24646 LIBSRCS="$LIBSRCS getpeereid.c"
24648 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
24649 if test "$ac_cv_func_snprintf" != yes; then
24650 cat >> confdefs.h <<\EOF
24651 #define snprintf ber_pvt_snprintf
24655 if test "$ac_cv_func_vsnprintf" != yes; then
24656 cat >> confdefs.h <<\EOF
24657 #define vsnprintf ber_pvt_vsnprintf
24664 if test "$ol_enable_slapi" != no ; then
24665 for ac_hdr in ltdl.h
24667 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
24668 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
24669 echo "configure:24670: checking for $ac_hdr" >&5
24670 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
24671 echo $ac_n "(cached) $ac_c" 1>&6
24673 cat > conftest.$ac_ext <<EOF
24674 #line 24675 "configure"
24675 #include "confdefs.h"
24678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24679 { (eval echo configure:24680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
24680 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
24681 if test -z "$ac_err"; then
24683 eval "ac_cv_header_$ac_safe=yes"
24686 echo "configure: failed program was:" >&5
24687 cat conftest.$ac_ext >&5
24689 eval "ac_cv_header_$ac_safe=no"
24693 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
24694 echo "$ac_t""yes" 1>&6
24695 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
24696 cat >> confdefs.h <<EOF
24697 #define $ac_tr_hdr 1
24701 echo "$ac_t""no" 1>&6
24706 if test $ac_cv_header_ltdl_h != yes ; then
24707 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
24709 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
24710 echo "configure:24711: checking for lt_dlinit in -lltdl" >&5
24711 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
24712 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
24713 echo $ac_n "(cached) $ac_c" 1>&6
24715 ac_save_LIBS="$LIBS"
24716 LIBS="-lltdl $LIBS"
24717 cat > conftest.$ac_ext <<EOF
24718 #line 24719 "configure"
24719 #include "confdefs.h"
24720 /* Override any gcc2 internal prototype to avoid an error. */
24721 /* We use char because int might match the return type of a gcc2
24722 builtin and then its argument prototype would still apply. */
24729 if { (eval echo configure:24730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24731 eval "ac_cv_lib_$ac_lib_var=yes"
24733 echo "configure: failed program was:" >&5
24734 cat conftest.$ac_ext >&5
24736 eval "ac_cv_lib_$ac_lib_var=no"
24739 LIBS="$ac_save_LIBS"
24742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
24743 echo "$ac_t""yes" 1>&6
24746 LIBSLAPI=libslapi.a
24747 LIBSLAPITOOLS=../libslapi.a
24748 cat >> confdefs.h <<\EOF
24749 #define HAVE_LIBLTDL 1
24754 echo "$ac_t""no" 1>&6
24755 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
24759 cat >> confdefs.h <<\EOF
24760 #define LDAP_SLAPI 1
24765 if test "$ol_enable_debug" != no ; then
24766 cat >> confdefs.h <<\EOF
24767 #define LDAP_DEBUG 1
24771 if test "$ol_enable_syslog" = yes ; then
24772 cat >> confdefs.h <<\EOF
24773 #define LDAP_SYSLOG 1
24777 if test "$ol_link_kbind" != no ; then
24778 cat >> confdefs.h <<\EOF
24779 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
24783 if test "$ol_enable_proctitle" != no ; then
24784 cat >> confdefs.h <<\EOF
24785 #define LDAP_PROCTITLE 1
24789 if test "$ol_enable_referrals" != no ; then
24790 cat >> confdefs.h <<\EOF
24791 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
24795 if test "$ol_enable_local" != no; then
24796 cat >> confdefs.h <<\EOF
24797 #define LDAP_PF_LOCAL 1
24801 if test "$ol_link_ipv6" != no; then
24802 cat >> confdefs.h <<\EOF
24803 #define LDAP_PF_INET6 1
24807 if test "$ol_enable_cleartext" != no ; then
24808 cat >> confdefs.h <<\EOF
24809 #define SLAPD_CLEARTEXT 1
24813 if test "$ol_enable_crypt" != no ; then
24814 cat >> confdefs.h <<\EOF
24815 #define SLAPD_CRYPT 1
24819 if test "$ol_link_spasswd" != no ; then
24820 cat >> confdefs.h <<\EOF
24821 #define SLAPD_SPASSWD 1
24825 if test "$ol_enable_multimaster" != no ; then
24826 cat >> confdefs.h <<\EOF
24827 #define SLAPD_MULTIMASTER 1
24831 if test "$ol_enable_rlookups" != no ; then
24832 cat >> confdefs.h <<\EOF
24833 #define SLAPD_RLOOKUPS 1
24837 if test "$ol_enable_aci" != no ; then
24838 cat >> confdefs.h <<\EOF
24839 #define SLAPD_ACI_ENABLED 1
24844 if test "$ol_link_modules" != no ; then
24845 cat >> confdefs.h <<\EOF
24846 #define SLAPD_MODULES 1
24850 SLAPD_MODULES_LDFLAGS="-dlopen self"
24853 cat >> confdefs.h <<\EOF
24854 #define SLAPD_MOD_STATIC 1
24857 cat >> confdefs.h <<\EOF
24858 #define SLAPD_MOD_DYNAMIC 2
24862 if test "$ol_enable_bdb" != no ; then
24864 BUILD_BDB=$ol_enable_bdb
24865 if test "$ol_enable_bdb" = mod ; then
24866 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
24867 MFLAG=SLAPD_MOD_DYNAMIC
24869 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
24870 MFLAG=SLAPD_MOD_STATIC
24872 cat >> confdefs.h <<EOF
24873 #define SLAPD_BDB $MFLAG
24878 if test "$ol_enable_dnssrv" != no ; then
24880 BUILD_DNSSRV=$ol_enable_dnssrv
24881 if test "$ol_enable_dnssrv" = mod ; then
24882 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
24883 MFLAG=SLAPD_MOD_DYNAMIC
24885 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
24886 MFLAG=SLAPD_MOD_STATIC
24888 cat >> confdefs.h <<EOF
24889 #define SLAPD_DNSSRV $MFLAG
24894 if test "$ol_enable_hdb" != no ; then
24896 BUILD_HDB=$ol_enable_hdb
24897 if test "$ol_enable_hdb" = mod ; then
24898 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
24899 MFLAG=SLAPD_MOD_DYNAMIC
24901 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
24902 MFLAG=SLAPD_MOD_STATIC
24904 cat >> confdefs.h <<EOF
24905 #define SLAPD_HDB $MFLAG
24910 if test "$ol_enable_ldap" != no ; then
24912 BUILD_LDAP=$ol_enable_ldap
24913 if test "$ol_enable_ldap" = mod ; then
24914 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
24915 MFLAG=SLAPD_MOD_DYNAMIC
24917 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
24918 MFLAG=SLAPD_MOD_STATIC
24920 cat >> confdefs.h <<EOF
24921 #define SLAPD_LDAP $MFLAG
24926 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
24928 BUILD_LDBM=$ol_enable_ldbm
24929 if test "$ol_enable_ldbm" = mod ; then
24930 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
24931 MFLAG=SLAPD_MOD_DYNAMIC
24933 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
24934 MFLAG=SLAPD_MOD_STATIC
24936 cat >> confdefs.h <<EOF
24937 #define SLAPD_LDBM $MFLAG
24942 if test "$ol_enable_meta" != no ; then
24944 BUILD_META=$ol_enable_meta
24946 if test "$ol_enable_meta" = mod ; then
24947 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
24948 MFLAG=SLAPD_MOD_DYNAMIC
24950 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
24951 MFLAG=SLAPD_MOD_STATIC
24953 cat >> confdefs.h <<EOF
24954 #define SLAPD_META $MFLAG
24959 if test "$ol_enable_monitor" != no ; then
24961 BUILD_MONITOR=$ol_enable_monitor
24962 if test "$ol_enable_monitor" = mod ; then
24963 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
24964 MFLAG=SLAPD_MOD_DYNAMIC
24966 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
24967 MFLAG=SLAPD_MOD_STATIC
24969 cat >> confdefs.h <<EOF
24970 #define SLAPD_MONITOR $MFLAG
24975 if test "$ol_enable_null" != no ; then
24977 BUILD_NULL=$ol_enable_null
24978 if test "$ol_enable_null" = mod ; then
24979 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
24980 MFLAG=SLAPD_MOD_DYNAMIC
24982 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
24983 MFLAG=SLAPD_MOD_STATIC
24985 cat >> confdefs.h <<EOF
24986 #define SLAPD_NULL $MFLAG
24991 if test "$ol_enable_passwd" != no ; then
24993 BUILD_PASSWD=$ol_enable_passwd
24994 if test "$ol_enable_passwd" = mod ; then
24995 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
24996 MFLAG=SLAPD_MOD_DYNAMIC
24998 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
24999 MFLAG=SLAPD_MOD_STATIC
25001 cat >> confdefs.h <<EOF
25002 #define SLAPD_PASSWD $MFLAG
25007 if test "$ol_link_perl" != no ; then
25009 BUILD_PERL=$ol_enable_perl
25010 if test "$ol_enable_perl" = mod ; then
25011 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
25012 MFLAG=SLAPD_MOD_DYNAMIC
25014 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
25015 MFLAG=SLAPD_MOD_STATIC
25017 cat >> confdefs.h <<EOF
25018 #define SLAPD_PERL $MFLAG
25023 if test "$ol_enable_relay" != no ; then
25025 BUILD_RELAY=$ol_enable_relay
25026 if test "$ol_enable_relay" = mod ; then
25027 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
25028 MFLAG=SLAPD_MOD_DYNAMIC
25030 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
25031 MFLAG=SLAPD_MOD_STATIC
25033 cat >> confdefs.h <<EOF
25034 #define SLAPD_RELAY $MFLAG
25039 if test "$ol_enable_shell" != no ; then
25040 if test "$ol_link_thread" != no ; then
25041 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
25044 BUILD_SHELL=$ol_enable_shell
25045 if test "$ol_enable_shell" = mod ; then
25046 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
25047 MFLAG=SLAPD_MOD_DYNAMIC
25049 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
25050 MFLAG=SLAPD_MOD_STATIC
25052 cat >> confdefs.h <<EOF
25053 #define SLAPD_SHELL $MFLAG
25058 if test "$ol_link_sql" != no ; then
25060 BUILD_SQL=$ol_enable_sql
25061 if test "$ol_enable_sql" = mod; then
25062 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
25063 MFLAG=SLAPD_MOD_DYNAMIC
25065 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
25066 MFLAG=SLAPD_MOD_STATIC
25068 cat >> confdefs.h <<EOF
25069 #define SLAPD_SQL $MFLAG
25074 if test "$ol_enable_chain" != no ; then
25075 BUILD_CHAIN=$ol_enable_chain
25076 if test "$ol_enable_chain" = mod ; then
25077 MFLAG=SLAPD_MOD_DYNAMIC
25078 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS chain.la"
25080 MFLAG=SLAPD_MOD_STATIC
25082 cat >> confdefs.h <<EOF
25083 #define SLAPD_OVER_CHAIN $MFLAG
25088 if test "$ol_enable_denyop" != no ; then
25089 BUILD_DENYOP=$ol_enable_denyop
25090 if test "$ol_enable_denyop" = mod ; then
25091 MFLAG=SLAPD_MOD_DYNAMIC
25092 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
25094 MFLAG=SLAPD_MOD_STATIC
25096 cat >> confdefs.h <<EOF
25097 #define SLAPD_OVER_DENYOP $MFLAG
25102 if test "$ol_enable_dyngroup" != no ; then
25103 BUILD_DYNGROUP=$ol_enable_dyngroup
25104 if test "$ol_enable_dyngroup" = mod ; then
25105 MFLAG=SLAPD_MOD_DYNAMIC
25106 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
25108 MFLAG=SLAPD_MOD_STATIC
25110 cat >> confdefs.h <<EOF
25111 #define SLAPD_OVER_DYNGROUP $MFLAG
25116 if test "$ol_enable_lastmod" != no ; then
25117 BUILD_LASTMOD=$ol_enable_lastmod
25118 if test "$ol_enable_lastmod" = mod ; then
25119 MFLAG=SLAPD_MOD_DYNAMIC
25120 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
25122 MFLAG=SLAPD_MOD_STATIC
25124 cat >> confdefs.h <<EOF
25125 #define SLAPD_OVER_LASTMOD $MFLAG
25130 if test "$ol_enable_ppolicy" != no ; then
25131 BUILD_PPOLICY=$ol_enable_ppolicy
25132 if test "$ol_enable_ppolicy" = mod ; then
25133 MFLAG=SLAPD_MOD_DYNAMIC
25134 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
25136 MFLAG=SLAPD_MOD_STATIC
25138 cat >> confdefs.h <<EOF
25139 #define SLAPD_OVER_PPOLICY $MFLAG
25144 if test "$ol_enable_proxycache" != no ; then
25145 BUILD_PROXYCACHE=$ol_enable_proxycache
25146 if test "$ol_enable_proxycache" = mod ; then
25147 MFLAG=SLAPD_MOD_DYNAMIC
25148 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
25150 MFLAG=SLAPD_MOD_STATIC
25152 cat >> confdefs.h <<EOF
25153 #define SLAPD_OVER_PROXYCACHE $MFLAG
25158 if test "$ol_enable_refint" != no ; then
25159 BUILD_REFINT=$ol_enable_refint
25160 if test "$ol_enable_refint" = mod ; then
25161 MFLAG=SLAPD_MOD_DYNAMIC
25162 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
25164 MFLAG=SLAPD_MOD_STATIC
25166 cat >> confdefs.h <<EOF
25167 #define SLAPD_OVER_REFINT $MFLAG
25172 if test "$ol_enable_rwm" != no ; then
25174 BUILD_RWM=$ol_enable_rwm
25175 if test "$ol_enable_rwm" = mod ; then
25176 MFLAG=SLAPD_MOD_DYNAMIC
25177 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
25179 MFLAG=SLAPD_MOD_STATIC
25181 cat >> confdefs.h <<EOF
25182 #define SLAPD_OVER_RWM $MFLAG
25187 if test "$ol_enable_syncprov" != no ; then
25188 BUILD_SYNCPROV=$ol_enable_syncprov
25189 if test "$ol_enable_syncprov" = mod ; then
25190 MFLAG=SLAPD_MOD_DYNAMIC
25191 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
25193 MFLAG=SLAPD_MOD_STATIC
25195 cat >> confdefs.h <<EOF
25196 #define SLAPD_OVER_SYNCPROV $MFLAG
25201 if test "$ol_enable_unique" != no ; then
25202 BUILD_UNIQUE=$ol_enable_unique
25203 if test "$ol_enable_unique" = mod ; then
25204 MFLAG=SLAPD_MOD_DYNAMIC
25205 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
25207 MFLAG=SLAPD_MOD_STATIC
25209 cat >> confdefs.h <<EOF
25210 #define SLAPD_OVER_UNIQUE $MFLAG
25215 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
25216 $BUILD_SLAPD = yes ; then
25220 if test "$ol_enable_rewrite" != no ; then
25221 cat >> confdefs.h <<\EOF
25222 #define ENABLE_REWRITE 1
25228 if test "$ol_enable_slapi" != no ; then
25229 cat >> confdefs.h <<\EOF
25230 #define ENABLE_SLAPI 1
25234 SLAPD_SLAPI_DEPEND=libslapi.a
25239 if test "$ac_cv_mingw32" = yes ; then
25241 SLAPD_MODULES_LDFLAGS=
25246 if test -z "$SLAPD_STATIC_BACKENDS"; then
25247 SLAPD_NO_STATIC='#'
25252 BACKEND_HEADER=servers/slapd/backend.h
25253 cat > $BACKEND_HEADER << EOF
25254 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
25256 * Copyright 1998-2004 The OpenLDAP Foundation.
25257 * All rights reserved.
25259 * Redistribution and use in source and binary forms, with or without
25260 * modification, are permitted only as authorized by the OpenLDAP
25263 * A copy of this license is available in the file LICENSE in the
25264 * top-level directory of the distribution or, alternatively, at
25265 * <http://www.OpenLDAP.org/license.html>.
25267 /* This file is automatically generated by configure; please do not edit.
25272 for b in $SLAPD_STATIC_BACKENDS; do
25273 bb=`echo "$b" | sed -e 's;back-;;'`
25275 cat >> $BACKEND_HEADER << EOF
25276 extern BI_init ${bb}_back_initialize;
25280 cat >> $BACKEND_HEADER << EOF
25282 static BackendInfo binfo[] = {
25285 for b in $SLAPD_STATIC_BACKENDS; do
25286 bb=`echo "$b" | sed -e 's;back-;;'`
25288 cat >> $BACKEND_HEADER << EOF
25289 { "$bb", ${bb}_back_initialize },
25293 cat >> $BACKEND_HEADER << EOF
25297 /* end of generated file */
25372 # Check whether --with-xxinstall or --without-xxinstall was given.
25373 if test "${with_xxinstall+set}" = set; then
25374 withval="$with_xxinstall"
25382 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
25384 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25385 # Let make expand exec_prefix.
25386 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25388 # Any assignment to VPATH causes Sun make to only execute
25389 # the first set of double-colon rules, so remove it if not needed.
25390 # If there is a colon in the path, we need to keep it.
25391 if test "x$srcdir" = x.; then
25392 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
25395 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
25397 DEFS=-DHAVE_CONFIG_H
25399 # Without the "./", some shells look in PATH for config.status.
25400 : ${CONFIG_STATUS=./config.status}
25402 echo creating $CONFIG_STATUS
25403 rm -f $CONFIG_STATUS
25404 cat > $CONFIG_STATUS <<EOF
25406 # Generated automatically by configure.
25407 # Run this file to recreate the current configuration.
25408 # This directory was configured as follows,
25409 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25411 # $0 $ac_configure_args
25413 # Compiler output produced by configure, useful for debugging
25414 # configure, is in ./config.log if it exists.
25416 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
25419 case "\$ac_option" in
25420 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25421 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
25422 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
25423 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
25424 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
25426 -help | --help | --hel | --he | --h)
25427 echo "\$ac_cs_usage"; exit 0 ;;
25428 *) echo "\$ac_cs_usage"; exit 1 ;;
25432 ac_given_srcdir=$srcdir
25433 ac_given_INSTALL="$INSTALL"
25435 trap 'rm -fr `echo "\
25436 Makefile:build/top.mk:Makefile.in:build/dir.mk \
25437 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
25438 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
25439 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
25440 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
25441 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
25442 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
25443 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
25444 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
25445 include/Makefile:build/top.mk:include/Makefile.in \
25446 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
25447 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
25448 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
25449 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
25450 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
25451 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
25452 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
25453 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
25454 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
25455 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
25456 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
25457 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
25458 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
25459 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
25460 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
25461 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
25462 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
25463 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
25464 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
25465 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
25466 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
25467 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
25468 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
25469 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
25470 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
25471 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
25472 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
25474 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
25475 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
25477 cat >> $CONFIG_STATUS <<EOF
25479 # Protect against being on the right side of a sed subst in config.status.
25480 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
25481 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
25485 s%@CFLAGS@%$CFLAGS%g
25486 s%@CPPFLAGS@%$CPPFLAGS%g
25487 s%@CXXFLAGS@%$CXXFLAGS%g
25488 s%@FFLAGS@%$FFLAGS%g
25490 s%@LDFLAGS@%$LDFLAGS%g
25492 s%@exec_prefix@%$exec_prefix%g
25493 s%@prefix@%$prefix%g
25494 s%@program_transform_name@%$program_transform_name%g
25495 s%@bindir@%$bindir%g
25496 s%@sbindir@%$sbindir%g
25497 s%@libexecdir@%$libexecdir%g
25498 s%@datadir@%$datadir%g
25499 s%@sysconfdir@%$sysconfdir%g
25500 s%@sharedstatedir@%$sharedstatedir%g
25501 s%@localstatedir@%$localstatedir%g
25502 s%@libdir@%$libdir%g
25503 s%@includedir@%$includedir%g
25504 s%@oldincludedir@%$oldincludedir%g
25505 s%@infodir@%$infodir%g
25506 s%@mandir@%$mandir%g
25508 s%@host_alias@%$host_alias%g
25509 s%@host_cpu@%$host_cpu%g
25510 s%@host_vendor@%$host_vendor%g
25511 s%@host_os@%$host_os%g
25512 s%@target@%$target%g
25513 s%@target_alias@%$target_alias%g
25514 s%@target_cpu@%$target_cpu%g
25515 s%@target_vendor@%$target_vendor%g
25516 s%@target_os@%$target_os%g
25518 s%@build_alias@%$build_alias%g
25519 s%@build_cpu@%$build_cpu%g
25520 s%@build_vendor@%$build_vendor%g
25521 s%@build_os@%$build_os%g
25522 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
25523 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
25524 s%@INSTALL_DATA@%$INSTALL_DATA%g
25525 s%@PACKAGE@%$PACKAGE%g
25526 s%@VERSION@%$VERSION%g
25527 s%@ACLOCAL@%$ACLOCAL%g
25528 s%@AUTOCONF@%$AUTOCONF%g
25529 s%@AUTOMAKE@%$AUTOMAKE%g
25530 s%@AUTOHEADER@%$AUTOHEADER%g
25531 s%@MAKEINFO@%$MAKEINFO%g
25532 s%@install_sh@%$install_sh%g
25535 s%@AMTARFLAGS@%$AMTARFLAGS%g
25536 s%@SET_MAKE@%$SET_MAKE%g
25537 s%@OPENLDAP_LIBRELEASE@%$OPENLDAP_LIBRELEASE%g
25538 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
25539 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
25540 s%@top_builddir@%$top_builddir%g
25541 s%@ldap_subdir@%$ldap_subdir%g
25545 s%@OBJEXT@%$OBJEXT%g
25546 s%@EXEEXT@%$EXEEXT%g
25548 s%@RANLIB@%$RANLIB%g
25550 s%@DLLTOOL@%$DLLTOOL%g
25552 s%@OBJDUMP@%$OBJDUMP%g
25554 s%@LIBTOOL@%$LIBTOOL%g
25555 s%@PERLBIN@%$PERLBIN%g
25556 s%@OL_MKDEP@%$OL_MKDEP%g
25557 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
25558 s%@LTSTATIC@%$LTSTATIC%g
25559 s%@LIBOBJS@%$LIBOBJS%g
25560 s%@LIBSRCS@%$LIBSRCS%g
25562 s%@WITH_SASL@%$WITH_SASL%g
25563 s%@WITH_TLS@%$WITH_TLS%g
25564 s%@WITH_MODULES_ENABLED@%$WITH_MODULES_ENABLED%g
25565 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
25566 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
25567 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
25568 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
25569 s%@BUILD_BDB@%$BUILD_BDB%g
25570 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
25571 s%@BUILD_HDB@%$BUILD_HDB%g
25572 s%@BUILD_LDAP@%$BUILD_LDAP%g
25573 s%@BUILD_LDBM@%$BUILD_LDBM%g
25574 s%@BUILD_META@%$BUILD_META%g
25575 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
25576 s%@BUILD_NULL@%$BUILD_NULL%g
25577 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
25578 s%@BUILD_RELAY@%$BUILD_RELAY%g
25579 s%@BUILD_PERL@%$BUILD_PERL%g
25580 s%@BUILD_SHELL@%$BUILD_SHELL%g
25581 s%@BUILD_SQL@%$BUILD_SQL%g
25582 s%@BUILD_CHAIN@%$BUILD_CHAIN%g
25583 s%@BUILD_DENYOP@%$BUILD_DENYOP%g
25584 s%@BUILD_DYNGROUP@%$BUILD_DYNGROUP%g
25585 s%@BUILD_LASTMOD@%$BUILD_LASTMOD%g
25586 s%@BUILD_PPOLICY@%$BUILD_PPOLICY%g
25587 s%@BUILD_PROXYCACHE@%$BUILD_PROXYCACHE%g
25588 s%@BUILD_REFINT@%$BUILD_REFINT%g
25589 s%@BUILD_RWM@%$BUILD_RWM%g
25590 s%@BUILD_SYNCPROV@%$BUILD_SYNCPROV%g
25591 s%@BUILD_UNIQUE@%$BUILD_UNIQUE%g
25592 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
25593 s%@LDAP_LIBS@%$LDAP_LIBS%g
25594 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
25595 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
25596 s%@LDBM_LIBS@%$LDBM_LIBS%g
25597 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
25598 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
25599 s%@WRAP_LIBS@%$WRAP_LIBS%g
25600 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
25601 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
25602 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
25603 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
25604 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
25605 s%@SLAPD_DYNAMIC_OVERLAYS@%$SLAPD_DYNAMIC_OVERLAYS%g
25606 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
25607 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
25608 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
25609 s%@KRB4_LIBS@%$KRB4_LIBS%g
25610 s%@KRB5_LIBS@%$KRB5_LIBS%g
25611 s%@SASL_LIBS@%$SASL_LIBS%g
25612 s%@TLS_LIBS@%$TLS_LIBS%g
25613 s%@MODULES_LIBS@%$MODULES_LIBS%g
25614 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
25615 s%@LIBSLAPI@%$LIBSLAPI%g
25616 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
25617 s%@AUTH_LIBS@%$AUTH_LIBS%g
25618 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
25619 s%@SLAPD_GMP_LIBS@%$SLAPD_GMP_LIBS%g
25620 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
25621 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
25622 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
25627 cat >> $CONFIG_STATUS <<\EOF
25629 # Split the substitutions into bite-sized pieces for seds with
25630 # small command number limits, like on Digital OSF/1 and HP-UX.
25631 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
25632 ac_file=1 # Number of current file.
25633 ac_beg=1 # First line for current file.
25634 ac_end=$ac_max_sed_cmds # Line after last line for current file.
25637 while $ac_more_lines; do
25638 if test $ac_beg -gt 1; then
25639 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
25641 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
25643 if test ! -s conftest.s$ac_file; then
25644 ac_more_lines=false
25645 rm -f conftest.s$ac_file
25647 if test -z "$ac_sed_cmds"; then
25648 ac_sed_cmds="sed -f conftest.s$ac_file"
25650 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
25652 ac_file=`expr $ac_file + 1`
25654 ac_end=`expr $ac_end + $ac_max_sed_cmds`
25657 if test -z "$ac_sed_cmds"; then
25662 cat >> $CONFIG_STATUS <<EOF
25664 CONFIG_FILES=\${CONFIG_FILES-"\
25665 Makefile:build/top.mk:Makefile.in:build/dir.mk \
25666 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
25667 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
25668 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
25669 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
25670 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
25671 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
25672 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
25673 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
25674 include/Makefile:build/top.mk:include/Makefile.in \
25675 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
25676 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
25677 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
25678 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
25679 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
25680 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
25681 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
25682 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
25683 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
25684 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
25685 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
25686 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
25687 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
25688 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
25689 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
25690 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
25691 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
25692 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
25693 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
25694 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
25695 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
25696 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
25697 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
25698 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
25699 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
25700 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
25701 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
25703 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
25706 cat >> $CONFIG_STATUS <<\EOF
25707 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
25708 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25710 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
25711 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25712 *) ac_file_in="${ac_file}.in" ;;
25715 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
25717 # Remove last slash and all that follows it. Not all systems have dirname.
25718 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
25719 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
25720 # The file is in a subdirectory.
25721 test ! -d "$ac_dir" && mkdir "$ac_dir"
25722 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
25723 # A "../" for each directory in $ac_dir_suffix.
25724 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
25726 ac_dir_suffix= ac_dots=
25729 case "$ac_given_srcdir" in
25731 if test -z "$ac_dots"; then top_srcdir=.
25732 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
25733 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
25734 *) # Relative path.
25735 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
25736 top_srcdir="$ac_dots$ac_given_srcdir" ;;
25739 case "$ac_given_INSTALL" in
25740 [/$]*) INSTALL="$ac_given_INSTALL" ;;
25741 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
25744 echo creating "$ac_file"
25746 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
25748 *[Mm]akefile*) ac_comsub="1i\\
25749 # $configure_input" ;;
25753 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
25755 s%@configure_input@%$configure_input%g
25756 s%@srcdir@%$srcdir%g
25757 s%@top_srcdir@%$top_srcdir%g
25758 s%@INSTALL@%$INSTALL%g
25759 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
25763 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25764 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25766 # ac_d sets the value in "#define NAME VALUE" lines.
25767 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25768 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
25771 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
25772 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25773 ac_uB='\([ ]\)%\1#\2define\3'
25776 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25777 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25778 ac_eB='$%\1#\2define\3'
25782 if test "${CONFIG_HEADERS+set}" != set; then
25784 cat >> $CONFIG_STATUS <<EOF
25785 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
25787 cat >> $CONFIG_STATUS <<\EOF
25789 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
25790 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25792 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
25793 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25794 *) ac_file_in="${ac_file}.in" ;;
25797 echo creating $ac_file
25799 rm -f conftest.frag conftest.in conftest.out
25800 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
25801 cat $ac_file_inputs > conftest.in
25805 # Transform confdefs.h into a sed script conftest.vals that substitutes
25806 # the proper values into config.h.in to produce config.h. And first:
25807 # Protect against being on the right side of a sed subst in config.status.
25808 # Protect against being in an unquoted here document in config.status.
25809 rm -f conftest.vals
25810 cat > conftest.hdr <<\EOF
25813 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
25817 sed -n -f conftest.hdr confdefs.h > conftest.vals
25820 # This sed command replaces #undef with comments. This is necessary, for
25821 # example, in the case of _POSIX_SOURCE, which is predefined and required
25822 # on some systems where configure will not decide to define it.
25823 cat >> conftest.vals <<\EOF
25824 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
25827 # Break up conftest.vals because some shells have a limit on
25828 # the size of here documents, and old seds have small limits too.
25830 rm -f conftest.tail
25833 ac_lines=`grep -c . conftest.vals`
25834 # grep -c gives empty output for an empty file on some AIX systems.
25835 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
25836 # Write a limited-size here document to conftest.frag.
25837 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
25838 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
25840 sed -f conftest.frag conftest.in > conftest.out
25842 mv conftest.out conftest.in
25843 ' >> $CONFIG_STATUS
25844 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
25845 rm -f conftest.vals
25846 mv conftest.tail conftest.vals
25848 rm -f conftest.vals
25850 cat >> $CONFIG_STATUS <<\EOF
25851 rm -f conftest.frag conftest.h
25852 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
25853 cat conftest.in >> conftest.h
25855 if cmp -s $ac_file conftest.h 2>/dev/null; then
25856 echo "$ac_file is unchanged"
25859 # Remove last slash and all that follows it. Not all systems have dirname.
25860 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
25861 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
25862 # The file is in a subdirectory.
25863 test ! -d "$ac_dir" && mkdir "$ac_dir"
25866 mv conftest.h $ac_file
25871 cat >> $CONFIG_STATUS <<EOF
25874 cat >> $CONFIG_STATUS <<\EOF
25878 echo Please run \"make depend\" to build dependencies
25882 chmod +x $CONFIG_STATUS
25883 rm -fr confdefs* $ac_clean_files
25884 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1