3 # from OpenLDAP: pkg/ldap/configure.in,v 1.522 2004/04/07 04:26:03 kurt 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]"
59 SLAPD (Standalone LDAP Daemon) Options:"
61 --enable-slapd enable building slapd [yes]"
63 --enable-aci enable per-object ACIs (experimental) [no]"
65 --enable-cleartext enable cleartext passwords [yes]"
67 --enable-crypt enable crypt(3) passwords [no]"
69 --enable-lmpasswd enable LAN Manager passwords [no]"
71 --enable-spasswd enable (Cyrus) SASL password verification [no]"
73 --enable-modules enable dynamic module support [no]"
75 --enable-rewrite enable DN rewriting in back-ldap and the rwm overlay [auto]"
77 --enable-rlookups enable reverse lookups of client hostnames [no]"
79 --enable-slapi enable SLAPI support (experimental) [no]"
81 --enable-slp enable SLPv2 support [no]"
83 --enable-wrappers enable tcp wrapper support [no]"
85 --enable-bdb enable Berkeley DB backend [yes]"
87 --with-bdb-module module type static|dynamic [static]"
89 --enable-dnssrv enable dnssrv backend [no]"
91 --with-dnssrv-module module type static|dynamic [static]"
93 --enable-hdb enable Hierarchical DB backend [no]"
95 --with-hdb-module module type static|dynamic [static]"
97 --enable-ldap enable ldap backend [no]"
99 --with-ldap-module module type static|dynamic [static]"
101 --enable-ldbm enable ldbm backend [no]"
103 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
105 --with-ldbm-module module type static|dynamic [static]"
107 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
109 --enable-meta enable metadirectory backend [no]"
111 --with-meta-module module type static|dynamic [static]"
113 --enable-monitor enable monitor backend [yes]"
115 --with-monitor-module module type static|dynamic [static]"
117 --enable-null enable null backend [no]"
119 --with-null-module module type static|dynamic [static]"
121 --enable-passwd enable passwd backend [no]"
123 --with-passwd-module module type static|dynamic [static]"
125 --enable-perl enable perl backend [no]"
127 --with-perl-module module type static|dynamic [static]"
129 --enable-relay enable relay backend [yes]"
131 --with-relay-module module type static|dynamic [static]"
133 --enable-shell enable shell backend [no]"
135 --with-shell-module module type static|dynamic [static]"
137 --enable-sql enable sql backend [no]"
139 --with-sql-module module type static|dynamic [static]"
142 SLAPD Overlay Options:"
144 --enable-chain LDAP Chain Response no|yes|mod [no]"
146 --enable-denyop Deny Operation overlay no|yes|mod [no]"
148 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]"
150 --enable-ppolicy Password Policy overlay no|yes|mod [no]"
152 --enable-proxycache Proxy Cache overlay no|yes|mod [no]"
154 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]"
157 SLURPD (Replication Daemon) Options:"
159 --enable-slurpd enable building slurpd [auto]"
162 Library Generation & Linking Options"
164 --enable-static[=PKGS] build static libraries [default=yes]"
166 --enable-shared[=PKGS] build shared libraries [default=yes]"
168 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
170 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
172 # Find the correct PATH separator. Usually this is `:', but
173 # DJGPP uses `;' like DOS.
174 if test "X${PATH_SEPARATOR+set}" != Xset; then
175 UNAME=${UNAME-`uname 2>/dev/null`}
177 *-DOS) lt_cv_sys_path_separator=';' ;;
178 *) lt_cv_sys_path_separator=':' ;;
180 PATH_SEPARATOR=$lt_cv_sys_path_separator
184 # Check that we are running under the correct shell.
185 SHELL=${CONFIG_SHELL-/bin/sh}
189 # Remove one level of quotation (which was required for Make).
190 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
195 if test "X$1" = X--no-reexec; then
196 # Discard the --no-reexec flag, and continue.
198 elif test "X$1" = X--fallback-echo; then
199 # Avoid inline document here, it may be left over
201 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
202 # Yippee, $echo works!
205 # Restart under the correct shell.
206 exec $SHELL "$0" --no-reexec ${1+"$@"}
209 if test "X$1" = X--fallback-echo; then
210 # used as fallback echo
218 # The HP-UX ksh and POSIX shell print the target directory to stdout
220 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
222 if test -z "$ECHO"; then
223 if test "X${echo_test_string+set}" != Xset; then
224 # find a string as large as possible, as long as the shell can cope with it
225 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
226 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
227 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
228 echo_test_string="`eval $cmd`" &&
229 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
236 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
237 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
238 test "X$echo_testing_string" = "X$echo_test_string"; then
241 # The Solaris, AIX, and Digital Unix default echo programs unquote
242 # backslashes. This makes it impossible to quote backslashes using
243 # echo "$something" | sed 's/\\/\\\\/g'
245 # So, first we look for a working echo in the user's PATH.
247 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
248 for dir in $PATH /usr/ucb; do
249 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
250 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
251 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
252 test "X$echo_testing_string" = "X$echo_test_string"; then
259 if test "X$echo" = Xecho; then
260 # We didn't find a better echo, so look for alternatives.
261 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
262 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
263 test "X$echo_testing_string" = "X$echo_test_string"; then
264 # This shell has a builtin print -r that does the trick.
266 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
267 test "X$CONFIG_SHELL" != X/bin/ksh; then
268 # If we have ksh, try running configure again with it.
269 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
270 export ORIGINAL_CONFIG_SHELL
271 CONFIG_SHELL=/bin/ksh
273 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
277 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
278 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
279 test "X$echo_testing_string" = "X$echo_test_string"; then
282 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
283 test "X$echo_testing_string" = 'X\t' &&
284 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
285 test "X$echo_testing_string" = "X$echo_test_string"; then
286 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
288 SHELL="$CONFIG_SHELL"
290 echo="$CONFIG_SHELL $0 --fallback-echo"
291 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
292 test "X$echo_testing_string" = 'X\t' &&
293 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
294 test "X$echo_testing_string" = "X$echo_test_string"; then
295 echo="$CONFIG_SHELL $0 --fallback-echo"
297 # maybe with a smaller string...
300 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
301 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
308 if test "$prev" != 'sed 50q "$0"'; then
309 echo_test_string=`eval $prev`
310 export echo_test_string
311 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
313 # Oops. We lost completely, so just stick with echo.
322 # Copy echo and quote the copy suitably for passing to libtool from
323 # the Makefile, instead of quoting the original, which is used later.
325 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
326 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
331 --disable-libtool-lock avoid locking (might break parallel builds)"
333 --with-pic try to use only PIC/non-PIC objects [default=use both]"
336 See INSTALL file for further details."
338 # Initialize some variables set by options.
339 # The variables have the same names as the options, with
340 # dashes changed to underlines.
342 cache_file=./config.cache
351 program_transform_name=s,x,x,
359 bindir='${exec_prefix}/bin'
360 sbindir='${exec_prefix}/sbin'
361 libexecdir='${exec_prefix}/libexec'
362 datadir='${prefix}/share'
363 sysconfdir='${prefix}/etc'
364 sharedstatedir='${prefix}/com'
365 localstatedir='${prefix}/var'
366 libdir='${exec_prefix}/lib'
367 includedir='${prefix}/include'
368 oldincludedir='/usr/include'
369 infodir='${prefix}/info'
370 mandir='${prefix}/man'
372 # Initialize some other variables.
375 SHELL=${CONFIG_SHELL-/bin/sh}
376 # Maximum number of lines to put in a shell here document.
383 # If the previous option needs an argument, assign it.
384 if test -n "$ac_prev"; then
385 eval "$ac_prev=\$ac_option"
391 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
395 # Accept the important Cygnus configure options, so we can diagnose typos.
399 -bindir | --bindir | --bindi | --bind | --bin | --bi)
401 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
402 bindir="$ac_optarg" ;;
404 -build | --build | --buil | --bui | --bu)
406 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
407 build="$ac_optarg" ;;
409 -cache-file | --cache-file | --cache-fil | --cache-fi \
410 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
411 ac_prev=cache_file ;;
412 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
413 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
414 cache_file="$ac_optarg" ;;
416 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
418 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
420 datadir="$ac_optarg" ;;
422 -disable-* | --disable-*)
423 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
424 # Reject names that are not valid shell variable names.
425 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
426 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
428 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
429 eval "enable_${ac_feature}=no" ;;
431 -enable-* | --enable-*)
432 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
433 # Reject names that are not valid shell variable names.
434 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
435 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
437 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
442 eval "enable_${ac_feature}='$ac_optarg'" ;;
444 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
445 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
446 | --exec | --exe | --ex)
447 ac_prev=exec_prefix ;;
448 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
449 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
450 | --exec=* | --exe=* | --ex=*)
451 exec_prefix="$ac_optarg" ;;
453 -gas | --gas | --ga | --g)
454 # Obsolete; use --with-gas.
457 -help | --help | --hel | --he)
458 # Omit some internal or obsolete options to make the list less imposing.
459 # This message is too long to be a string in the A/UX 3.1 sh.
461 Usage: configure [options] [host]
462 Options: [defaults in brackets after descriptions]
464 --cache-file=FILE cache test results in FILE
465 --help print this message
466 --no-create do not create output files
467 --quiet, --silent do not print \`checking...' messages
468 --version print the version of autoconf that created configure
469 Directory and file names:
470 --prefix=PREFIX install architecture-independent files in PREFIX
472 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
474 --bindir=DIR user executables in DIR [EPREFIX/bin]
475 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
476 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
477 --datadir=DIR read-only architecture-independent data in DIR
479 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
480 --sharedstatedir=DIR modifiable architecture-independent data in DIR
482 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
483 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
484 --includedir=DIR C header files in DIR [PREFIX/include]
485 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
486 --infodir=DIR info documentation in DIR [PREFIX/info]
487 --mandir=DIR man documentation in DIR [PREFIX/man]
488 --srcdir=DIR find the sources in DIR [configure dir or ..]
489 --program-prefix=PREFIX prepend PREFIX to installed program names
490 --program-suffix=SUFFIX append SUFFIX to installed program names
491 --program-transform-name=PROGRAM
492 run sed PROGRAM on installed program names
496 --build=BUILD configure for building on BUILD [BUILD=HOST]
497 --host=HOST configure for HOST [guessed]
498 --target=TARGET configure for TARGET [TARGET=HOST]
499 Features and packages:
500 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
501 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
502 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
503 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
504 --x-includes=DIR X include files are in DIR
505 --x-libraries=DIR X library files are in DIR
507 if test -n "$ac_help"; then
508 echo "--enable and --with options recognized:$ac_help"
512 -host | --host | --hos | --ho)
514 -host=* | --host=* | --hos=* | --ho=*)
517 -includedir | --includedir | --includedi | --included | --include \
518 | --includ | --inclu | --incl | --inc)
519 ac_prev=includedir ;;
520 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
521 | --includ=* | --inclu=* | --incl=* | --inc=*)
522 includedir="$ac_optarg" ;;
524 -infodir | --infodir | --infodi | --infod | --info | --inf)
526 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
527 infodir="$ac_optarg" ;;
529 -libdir | --libdir | --libdi | --libd)
531 -libdir=* | --libdir=* | --libdi=* | --libd=*)
532 libdir="$ac_optarg" ;;
534 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
535 | --libexe | --libex | --libe)
536 ac_prev=libexecdir ;;
537 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
538 | --libexe=* | --libex=* | --libe=*)
539 libexecdir="$ac_optarg" ;;
541 -localstatedir | --localstatedir | --localstatedi | --localstated \
542 | --localstate | --localstat | --localsta | --localst \
543 | --locals | --local | --loca | --loc | --lo)
544 ac_prev=localstatedir ;;
545 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
546 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
547 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
548 localstatedir="$ac_optarg" ;;
550 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
552 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
553 mandir="$ac_optarg" ;;
556 # Obsolete; use --without-fp.
559 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
563 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
564 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
567 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
568 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
569 | --oldin | --oldi | --old | --ol | --o)
570 ac_prev=oldincludedir ;;
571 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
572 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
573 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
574 oldincludedir="$ac_optarg" ;;
576 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
578 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
579 prefix="$ac_optarg" ;;
581 -program-prefix | --program-prefix | --program-prefi | --program-pref \
582 | --program-pre | --program-pr | --program-p)
583 ac_prev=program_prefix ;;
584 -program-prefix=* | --program-prefix=* | --program-prefi=* \
585 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
586 program_prefix="$ac_optarg" ;;
588 -program-suffix | --program-suffix | --program-suffi | --program-suff \
589 | --program-suf | --program-su | --program-s)
590 ac_prev=program_suffix ;;
591 -program-suffix=* | --program-suffix=* | --program-suffi=* \
592 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
593 program_suffix="$ac_optarg" ;;
595 -program-transform-name | --program-transform-name \
596 | --program-transform-nam | --program-transform-na \
597 | --program-transform-n | --program-transform- \
598 | --program-transform | --program-transfor \
599 | --program-transfo | --program-transf \
600 | --program-trans | --program-tran \
601 | --progr-tra | --program-tr | --program-t)
602 ac_prev=program_transform_name ;;
603 -program-transform-name=* | --program-transform-name=* \
604 | --program-transform-nam=* | --program-transform-na=* \
605 | --program-transform-n=* | --program-transform-=* \
606 | --program-transform=* | --program-transfor=* \
607 | --program-transfo=* | --program-transf=* \
608 | --program-trans=* | --program-tran=* \
609 | --progr-tra=* | --program-tr=* | --program-t=*)
610 program_transform_name="$ac_optarg" ;;
612 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
613 | -silent | --silent | --silen | --sile | --sil)
616 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
618 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
620 sbindir="$ac_optarg" ;;
622 -sharedstatedir | --sharedstatedir | --sharedstatedi \
623 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
624 | --sharedst | --shareds | --shared | --share | --shar \
626 ac_prev=sharedstatedir ;;
627 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
628 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
629 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
631 sharedstatedir="$ac_optarg" ;;
633 -site | --site | --sit)
635 -site=* | --site=* | --sit=*)
638 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
640 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
641 srcdir="$ac_optarg" ;;
643 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
644 | --syscon | --sysco | --sysc | --sys | --sy)
645 ac_prev=sysconfdir ;;
646 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
647 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
648 sysconfdir="$ac_optarg" ;;
650 -target | --target | --targe | --targ | --tar | --ta | --t)
652 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
653 target="$ac_optarg" ;;
655 -v | -verbose | --verbose | --verbos | --verbo | --verb)
658 -version | --version | --versio | --versi | --vers)
659 echo "configure generated by autoconf version 2.13.1"
663 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
664 # Reject names that are not valid shell variable names.
665 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
666 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
668 ac_package=`echo $ac_package| sed 's/-/_/g'`
673 eval "with_${ac_package}='$ac_optarg'" ;;
675 -without-* | --without-*)
676 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
677 # Reject names that are not valid shell variable names.
678 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
679 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
681 ac_package=`echo $ac_package| sed 's/-/_/g'`
682 eval "with_${ac_package}=no" ;;
685 # Obsolete; use --with-x.
688 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
689 | --x-incl | --x-inc | --x-in | --x-i)
690 ac_prev=x_includes ;;
691 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
692 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
693 x_includes="$ac_optarg" ;;
695 -x-libraries | --x-libraries | --x-librarie | --x-librari \
696 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
697 ac_prev=x_libraries ;;
698 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
699 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
700 x_libraries="$ac_optarg" ;;
702 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
706 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
707 echo "configure: warning: $ac_option: invalid host type" 1>&2
709 if test "x$nonopt" != xNONE; then
710 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
718 if test -n "$ac_prev"; then
719 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
722 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
724 # File descriptor usage:
727 # 2 errors and warnings
728 # 3 some systems may open it to /dev/tty
729 # 4 used on the Kubota Titan
730 # 6 checking for... messages and results
731 # 5 compiler messages saved in config.log
732 if test "$silent" = yes; then
740 This file contains any messages produced by compilers while
741 running configure, to aid debugging if configure makes a mistake.
744 # Strip out --no-create and --no-recursion so they do not pile up.
745 # Also quote any args containing shell metacharacters.
750 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
751 | --no-cr | --no-c) ;;
752 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
753 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
754 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
755 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
756 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
761 # Only set these to C if already set. These must not be set unconditionally
762 # because not all systems understand e.g. LANG=C (notably SCO).
763 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
764 # Non-C LC_CTYPE values break the ctype check.
765 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
766 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
767 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
768 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
770 # confdefs.h avoids OS command line length limits that DEFS can exceed.
771 rm -rf conftest* confdefs.h
772 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
775 # A filename unique to this package, relative to the directory that
776 # configure is in, which we can look for to find out if srcdir is correct.
777 ac_unique_file=build/version.sh
779 # Find the source files, if location was not specified.
780 if test -z "$srcdir"; then
781 ac_srcdir_defaulted=yes
782 # Try the directory containing this script, then its parent.
784 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
785 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
787 if test ! -r $srcdir/$ac_unique_file; then
791 ac_srcdir_defaulted=no
793 if test ! -r $srcdir/$ac_unique_file; then
794 if test "$ac_srcdir_defaulted" = yes; then
795 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
797 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
800 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
802 # Prefer explicitly selected file to automatically selected ones.
803 if test -z "$CONFIG_SITE"; then
804 if test "x$prefix" != xNONE; then
805 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
807 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
810 for ac_site_file in $CONFIG_SITE; do
811 if test -r "$ac_site_file"; then
812 echo "loading site script $ac_site_file"
819 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
820 ac_cpp='$CPP $CPPFLAGS'
821 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
822 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
823 cross_compiling=$ac_cv_prog_cc_cross
827 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
828 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
829 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
836 ac_n= ac_c='\c' ac_t=
840 # set unset (borrowed from autoconf 2.49c)
841 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
847 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
850 for ac_dir in build $srcdir/build; do
851 if test -f $ac_dir/install-sh; then
853 ac_install_sh="$ac_aux_dir/install-sh -c"
855 elif test -f $ac_dir/install.sh; then
857 ac_install_sh="$ac_aux_dir/install.sh -c"
859 elif test -f $ac_dir/shtool; then
861 ac_install_sh="$ac_aux_dir/shtool install -c"
865 if test -z "$ac_aux_dir"; then
866 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
868 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
869 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
870 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
872 eval `$ac_aux_dir/version.sh`
873 if test -z "$OL_STRING"; then
874 { echo "configure: error: could not determine version" 1>&2; exit 1; }
877 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
878 ac_cv_shtool="$ac_aux_dir/shtool"
880 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
883 SHTOOL="$ac_cv_shtool"
885 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
886 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
889 if test -d $ac_aux_dir/CVS; then
890 OPENLDAP_CVS="(from CVS sources) "
893 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
896 echo $ac_n "checking host system type""... $ac_c" 1>&6
897 echo "configure:898: checking host system type" >&5
898 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
900 # Make sure we can run config.sub.
901 if $ac_config_sub sun4 >/dev/null 2>&1; then :
902 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
905 ac_cv_host_alias=$host
906 case "$ac_cv_host_alias" in
910 if ac_cv_host_alias=`$ac_config_guess`; then :
911 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
913 *) ac_cv_host_alias=$nonopt ;;
917 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
918 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
919 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
920 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
922 echo $ac_n "(cached) $ac_c" 1>&6
925 echo "$ac_t""$ac_cv_host" 1>&6
928 host_alias=$ac_cv_host_alias
929 host_cpu=$ac_cv_host_cpu
930 host_vendor=$ac_cv_host_vendor
931 host_os=$ac_cv_host_os
937 echo $ac_n "checking target system type""... $ac_c" 1>&6
938 echo "configure:939: checking target system type" >&5
939 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
941 # Make sure we can run config.sub.
942 if $ac_config_sub sun4 >/dev/null 2>&1; then :
943 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
946 ac_cv_target_alias=$target
947 case "$ac_cv_target_alias" in
951 ac_cv_target_alias=$host_alias ;;
953 *) ac_cv_target_alias=$nonopt ;;
957 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
958 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
959 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
960 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
962 echo $ac_n "(cached) $ac_c" 1>&6
965 echo "$ac_t""$ac_cv_target" 1>&6
968 target_alias=$ac_cv_target_alias
969 target_cpu=$ac_cv_target_cpu
970 target_vendor=$ac_cv_target_vendor
971 target_os=$ac_cv_target_os
977 echo $ac_n "checking build system type""... $ac_c" 1>&6
978 echo "configure:979: checking build system type" >&5
979 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
981 # Make sure we can run config.sub.
982 if $ac_config_sub sun4 >/dev/null 2>&1; then :
983 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
986 ac_cv_build_alias=$build
987 case "$ac_cv_build_alias" in
991 ac_cv_build_alias=$host_alias ;;
993 *) ac_cv_build_alias=$nonopt ;;
997 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
998 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
999 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1000 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1002 echo $ac_n "(cached) $ac_c" 1>&6
1005 echo "$ac_t""$ac_cv_build" 1>&6
1008 build_alias=$ac_cv_build_alias
1009 build_cpu=$ac_cv_build_cpu
1010 build_vendor=$ac_cv_build_vendor
1011 build_os=$ac_cv_build_os
1017 # Do some error checking and defaulting for the host and target type.
1019 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1022 # 1. You are not allowed to specify --host, --target, and nonopt at the
1024 # 2. Host defaults to nonopt.
1025 # 3. If nonopt is not specified, then host defaults to the current host,
1026 # as determined by config.guess.
1027 # 4. Target and build default to nonopt.
1028 # 5. If nonopt is not specified, then target and build default to host.
1030 # The aliases save the names the user supplied, while $host etc.
1031 # will get canonicalized.
1032 case $host---$target---$nonopt in
1033 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1034 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1037 test "$host_alias" != "$target_alias" &&
1038 test "$program_prefix$program_suffix$program_transform_name" = \
1040 program_prefix=${target_alias}-
1043 # Find a good install program. We prefer a C program (faster),
1044 # so one script is as good as another. But avoid the broken or
1045 # incompatible versions:
1046 # SysV /etc/install, /usr/sbin/install
1047 # SunOS /usr/etc/install
1048 # IRIX /sbin/install
1050 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1051 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1052 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1053 # ./install, which can be erroneously created by make from ./install.sh.
1054 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1055 echo "configure:1056: checking for a BSD compatible install" >&5
1056 if test -z "$INSTALL"; then
1057 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1058 echo $ac_n "(cached) $ac_c" 1>&6
1060 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1061 for ac_dir in $PATH; do
1062 # Account for people who put trailing slashes in PATH elements.
1064 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1066 # OSF1 and SCO ODT 3.0 have their own names for install.
1067 # Don't use installbsd from OSF since it installs stuff as root
1069 for ac_prog in ginstall scoinst install; do
1070 if test -f $ac_dir/$ac_prog; then
1071 if test $ac_prog = install &&
1072 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1073 # AIX install. It has an incompatible calling convention.
1075 elif test $ac_prog = install &&
1076 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1077 # program-specific install script used by HP pwplus--don't use.
1080 ac_cv_path_install="$ac_dir/$ac_prog -c"
1091 if test "${ac_cv_path_install+set}" = set; then
1092 INSTALL="$ac_cv_path_install"
1094 # As a last resort, use the slow shell script. We don't cache a
1095 # path for INSTALL within a source directory, because that will
1096 # break other packages using the cache if that directory is
1097 # removed, or if the path is relative.
1098 INSTALL="$ac_install_sh"
1101 echo "$ac_t""$INSTALL" 1>&6
1103 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1104 # It thinks the first close brace ends the variable substitution.
1105 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1107 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1109 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1111 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1112 echo "configure:1113: checking whether build environment is sane" >&5
1115 echo timestamp > conftestfile
1116 # Do `set' in a subshell so we don't clobber the current shell's
1117 # arguments. Must try -L first in case configure is actually a
1118 # symlink; some systems play weird games with the mod time of symlinks
1119 # (eg FreeBSD returns the mod time of the symlink's containing
1122 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1123 if test "$*" = "X"; then
1125 set X `ls -t $srcdir/configure conftestfile`
1127 if test "$*" != "X $srcdir/configure conftestfile" \
1128 && test "$*" != "X conftestfile $srcdir/configure"; then
1130 # If neither matched, then we have a broken ls. This can happen
1131 # if, for instance, CONFIG_SHELL is bash and it inherits a
1132 # broken ls alias from the environment. This has actually
1133 # happened. Such a system could not be considered "sane".
1134 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1135 alias in your environment" 1>&2; exit 1; }
1138 test "$2" = conftestfile
1144 { echo "configure: error: newly created file is older than distributed files!
1145 Check your system clock" 1>&2; exit 1; }
1148 echo "$ac_t""yes" 1>&6
1149 if test "$program_transform_name" = s,x,x,; then
1150 program_transform_name=
1152 # Double any \ or $. echo might interpret backslashes.
1153 cat <<\EOF_SED > conftestsed
1154 s,\\,\\\\,g; s,\$,$$,g
1156 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1159 test "$program_prefix" != NONE &&
1160 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1161 # Use a double $ so make ignores it.
1162 test "$program_suffix" != NONE &&
1163 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1165 # sed with no file args requires a program.
1166 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1168 for ac_prog in mawk gawk nawk awk
1170 # Extract the first word of "$ac_prog", so it can be a program name with args.
1171 set dummy $ac_prog; ac_word=$2
1172 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1173 echo "configure:1174: checking for $ac_word" >&5
1174 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1177 if test -n "$AWK"; then
1178 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1182 for ac_dir in $ac_dummy; do
1183 test -z "$ac_dir" && ac_dir=.
1184 if test -f $ac_dir/$ac_word; then
1185 ac_cv_prog_AWK="$ac_prog"
1192 AWK="$ac_cv_prog_AWK"
1193 if test -n "$AWK"; then
1194 echo "$ac_t""$AWK" 1>&6
1196 echo "$ac_t""no" 1>&6
1199 test -n "$AWK" && break
1202 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1203 echo "configure:1204: checking whether ${MAKE-make} sets \${MAKE}" >&5
1204 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1205 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1206 echo $ac_n "(cached) $ac_c" 1>&6
1208 cat > conftestmake <<\EOF
1210 @echo 'ac_maketemp="${MAKE}"'
1212 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1213 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1214 if test -n "$ac_maketemp"; then
1215 eval ac_cv_prog_make_${ac_make}_set=yes
1217 eval ac_cv_prog_make_${ac_make}_set=no
1221 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1222 echo "$ac_t""yes" 1>&6
1225 echo "$ac_t""no" 1>&6
1226 SET_MAKE="MAKE=${MAKE-make}"
1235 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1236 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1241 missing_dir=`cd $ac_aux_dir && pwd`
1242 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1243 echo "configure:1244: checking for working aclocal" >&5
1244 # Run test in a subshell; some versions of sh will print an error if
1245 # an executable is not found, even if stderr is redirected.
1246 # Redirect stdin to placate older versions of autoconf. Sigh.
1247 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1249 echo "$ac_t""found" 1>&6
1251 ACLOCAL="$missing_dir/missing aclocal"
1252 echo "$ac_t""missing" 1>&6
1255 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1256 echo "configure:1257: checking for working autoconf" >&5
1257 # Run test in a subshell; some versions of sh will print an error if
1258 # an executable is not found, even if stderr is redirected.
1259 # Redirect stdin to placate older versions of autoconf. Sigh.
1260 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1262 echo "$ac_t""found" 1>&6
1264 AUTOCONF="$missing_dir/missing autoconf"
1265 echo "$ac_t""missing" 1>&6
1268 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1269 echo "configure:1270: checking for working automake" >&5
1270 # Run test in a subshell; some versions of sh will print an error if
1271 # an executable is not found, even if stderr is redirected.
1272 # Redirect stdin to placate older versions of autoconf. Sigh.
1273 if (automake --version) < /dev/null > /dev/null 2>&1; then
1275 echo "$ac_t""found" 1>&6
1277 AUTOMAKE="$missing_dir/missing automake"
1278 echo "$ac_t""missing" 1>&6
1281 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1282 echo "configure:1283: checking for working autoheader" >&5
1283 # Run test in a subshell; some versions of sh will print an error if
1284 # an executable is not found, even if stderr is redirected.
1285 # Redirect stdin to placate older versions of autoconf. Sigh.
1286 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1287 AUTOHEADER=autoheader
1288 echo "$ac_t""found" 1>&6
1290 AUTOHEADER="$missing_dir/missing autoheader"
1291 echo "$ac_t""missing" 1>&6
1294 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1295 echo "configure:1296: checking for working makeinfo" >&5
1296 # Run test in a subshell; some versions of sh will print an error if
1297 # an executable is not found, even if stderr is redirected.
1298 # Redirect stdin to placate older versions of autoconf. Sigh.
1299 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1301 echo "$ac_t""found" 1>&6
1303 MAKEINFO="$missing_dir/missing makeinfo"
1304 echo "$ac_t""missing" 1>&6
1307 install_sh="$missing_dir/install-sh"
1308 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1310 for ac_prog in gnutar gtar tar
1312 # Extract the first word of "$ac_prog", so it can be a program name with args.
1313 set dummy $ac_prog; ac_word=$2
1314 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1315 echo "configure:1316: checking for $ac_word" >&5
1316 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1317 echo $ac_n "(cached) $ac_c" 1>&6
1319 if test -n "$AMTAR"; then
1320 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1324 for ac_dir in $ac_dummy; do
1325 test -z "$ac_dir" && ac_dir=.
1326 if test -f $ac_dir/$ac_word; then
1327 ac_cv_prog_AMTAR="$ac_prog"
1334 AMTAR="$ac_cv_prog_AMTAR"
1335 if test -n "$AMTAR"; then
1336 echo "$ac_t""$AMTAR" 1>&6
1338 echo "$ac_t""no" 1>&6
1341 test -n "$AMTAR" && break
1346 if test -n "$AMTAR"; then
1347 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1352 cat >> confdefs.h <<EOF
1353 #define OPENLDAP_PACKAGE "$PACKAGE"
1356 cat >> confdefs.h <<EOF
1357 #define OPENLDAP_VERSION "$VERSION"
1361 cat >> confdefs.h <<EOF
1362 #define LDAP_VENDOR_VERSION $OL_API_INC
1365 cat >> confdefs.h <<EOF
1366 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1369 cat >> confdefs.h <<EOF
1370 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1373 cat >> confdefs.h <<EOF
1374 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1378 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
1380 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
1382 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1386 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1387 echo "configure:1388: checking configure arguments" >&5
1392 ldap_subdir="/openldap"
1394 # Check whether --with-subdir or --without-subdir was given.
1395 if test "${with_subdir+set}" = set; then
1396 withval="$with_subdir"
1403 ldap_subdir="$withval"
1406 ldap_subdir="/$withval"
1413 # OpenLDAP --enable-debug
1414 # Check whether --enable-debug or --disable-debug was given.
1415 if test "${enable_debug+set}" = set; then
1416 enableval="$enable_debug"
1419 for ol_val in auto yes no ; do
1420 if test "$enableval" = "$ol_val" ; then
1424 if test "$ol_arg" = "invalid" ; then
1425 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1427 ol_enable_debug="$ol_arg"
1430 ol_enable_debug="yes"
1432 # end --enable-debug
1433 # OpenLDAP --enable-dynamic
1434 # Check whether --enable-dynamic or --disable-dynamic was given.
1435 if test "${enable_dynamic+set}" = set; then
1436 enableval="$enable_dynamic"
1439 for ol_val in auto yes no ; do
1440 if test "$enableval" = "$ol_val" ; then
1444 if test "$ol_arg" = "invalid" ; then
1445 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1447 ol_enable_dynamic="$ol_arg"
1450 ol_enable_dynamic="no"
1452 # end --enable-dynamic
1453 # OpenLDAP --enable-syslog
1454 # Check whether --enable-syslog or --disable-syslog was given.
1455 if test "${enable_syslog+set}" = set; then
1456 enableval="$enable_syslog"
1459 for ol_val in auto yes no ; do
1460 if test "$enableval" = "$ol_val" ; then
1464 if test "$ol_arg" = "invalid" ; then
1465 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1467 ol_enable_syslog="$ol_arg"
1470 ol_enable_syslog="auto"
1472 # end --enable-syslog
1473 # OpenLDAP --enable-proctitle
1474 # Check whether --enable-proctitle or --disable-proctitle was given.
1475 if test "${enable_proctitle+set}" = set; then
1476 enableval="$enable_proctitle"
1479 for ol_val in auto yes no ; do
1480 if test "$enableval" = "$ol_val" ; then
1484 if test "$ol_arg" = "invalid" ; then
1485 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1487 ol_enable_proctitle="$ol_arg"
1490 ol_enable_proctitle="yes"
1492 # end --enable-proctitle
1493 ol_enable_referrals=${ol_enable_referrals-no}
1494 ol_enable_kbind=${ol_enable_kbind-no}
1495 # OpenLDAP --enable-ipv6
1496 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1497 if test "${enable_ipv6+set}" = set; then
1498 enableval="$enable_ipv6"
1501 for ol_val in auto yes no ; do
1502 if test "$enableval" = "$ol_val" ; then
1506 if test "$ol_arg" = "invalid" ; then
1507 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1509 ol_enable_ipv6="$ol_arg"
1512 ol_enable_ipv6="auto"
1515 # OpenLDAP --enable-local
1516 # Check whether --enable-local or --disable-local was given.
1517 if test "${enable_local+set}" = set; then
1518 enableval="$enable_local"
1521 for ol_val in auto yes no ; do
1522 if test "$enableval" = "$ol_val" ; then
1526 if test "$ol_arg" = "invalid" ; then
1527 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1529 ol_enable_local="$ol_arg"
1532 ol_enable_local="auto"
1534 # end --enable-local
1537 # OpenLDAP --with-cyrus_sasl
1538 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1539 if test "${with_cyrus_sasl+set}" = set; then
1540 withval="$with_cyrus_sasl"
1543 for ol_val in auto yes no ; do
1544 if test "$withval" = "$ol_val" ; then
1548 if test "$ol_arg" = "invalid" ; then
1549 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1551 ol_with_cyrus_sasl="$ol_arg"
1554 ol_with_cyrus_sasl="auto"
1556 # end --with-cyrus_sasl
1558 # OpenLDAP --with-fetch
1559 # Check whether --with-fetch or --without-fetch was given.
1560 if test "${with_fetch+set}" = set; then
1561 withval="$with_fetch"
1564 for ol_val in auto yes no ; do
1565 if test "$withval" = "$ol_val" ; then
1569 if test "$ol_arg" = "invalid" ; then
1570 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1572 ol_with_fetch="$ol_arg"
1575 ol_with_fetch="auto"
1579 ol_with_kerberos=${ol_with_kerberos-auto}
1580 # OpenLDAP --with-threads
1581 # Check whether --with-threads or --without-threads was given.
1582 if test "${with_threads+set}" = set; then
1583 withval="$with_threads"
1586 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1587 if test "$withval" = "$ol_val" ; then
1591 if test "$ol_arg" = "invalid" ; then
1592 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1594 ol_with_threads="$ol_arg"
1597 ol_with_threads="auto"
1599 # end --with-threads
1601 # OpenLDAP --with-tls
1602 # Check whether --with-tls or --without-tls was given.
1603 if test "${with_tls+set}" = set; then
1607 for ol_val in auto ssleay openssl yes no ; do
1608 if test "$withval" = "$ol_val" ; then
1612 if test "$ol_arg" = "invalid" ; then
1613 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1615 ol_with_tls="$ol_arg"
1622 # OpenLDAP --with-yielding_select
1623 # Check whether --with-yielding_select or --without-yielding_select was given.
1624 if test "${with_yielding_select+set}" = set; then
1625 withval="$with_yielding_select"
1628 for ol_val in auto yes no manual ; do
1629 if test "$withval" = "$ol_val" ; then
1633 if test "$ol_arg" = "invalid" ; then
1634 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1636 ol_with_yielding_select="$ol_arg"
1639 ol_with_yielding_select="auto"
1641 # end --with-yielding_select
1645 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1646 if test "${with_xxslapdoptions+set}" = set; then
1647 withval="$with_xxslapdoptions"
1651 # OpenLDAP --enable-slapd
1652 # Check whether --enable-slapd or --disable-slapd was given.
1653 if test "${enable_slapd+set}" = set; then
1654 enableval="$enable_slapd"
1657 for ol_val in auto yes no ; do
1658 if test "$enableval" = "$ol_val" ; then
1662 if test "$ol_arg" = "invalid" ; then
1663 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1665 ol_enable_slapd="$ol_arg"
1668 ol_enable_slapd="yes"
1670 # end --enable-slapd
1671 # OpenLDAP --enable-aci
1672 # Check whether --enable-aci or --disable-aci was given.
1673 if test "${enable_aci+set}" = set; then
1674 enableval="$enable_aci"
1677 for ol_val in auto yes no ; do
1678 if test "$enableval" = "$ol_val" ; then
1682 if test "$ol_arg" = "invalid" ; then
1683 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1685 ol_enable_aci="$ol_arg"
1691 # OpenLDAP --enable-cleartext
1692 # Check whether --enable-cleartext or --disable-cleartext was given.
1693 if test "${enable_cleartext+set}" = set; then
1694 enableval="$enable_cleartext"
1697 for ol_val in auto yes no ; do
1698 if test "$enableval" = "$ol_val" ; then
1702 if test "$ol_arg" = "invalid" ; then
1703 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1705 ol_enable_cleartext="$ol_arg"
1708 ol_enable_cleartext="yes"
1710 # end --enable-cleartext
1711 # OpenLDAP --enable-crypt
1712 # Check whether --enable-crypt or --disable-crypt was given.
1713 if test "${enable_crypt+set}" = set; then
1714 enableval="$enable_crypt"
1717 for ol_val in auto yes no ; do
1718 if test "$enableval" = "$ol_val" ; then
1722 if test "$ol_arg" = "invalid" ; then
1723 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1725 ol_enable_crypt="$ol_arg"
1728 ol_enable_crypt="no"
1730 # end --enable-crypt
1731 # OpenLDAP --enable-lmpasswd
1732 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1733 if test "${enable_lmpasswd+set}" = set; then
1734 enableval="$enable_lmpasswd"
1737 for ol_val in auto yes no ; do
1738 if test "$enableval" = "$ol_val" ; then
1742 if test "$ol_arg" = "invalid" ; then
1743 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1745 ol_enable_lmpasswd="$ol_arg"
1748 ol_enable_lmpasswd="no"
1750 # end --enable-lmpasswd
1751 # OpenLDAP --enable-spasswd
1752 # Check whether --enable-spasswd or --disable-spasswd was given.
1753 if test "${enable_spasswd+set}" = set; then
1754 enableval="$enable_spasswd"
1757 for ol_val in auto yes no ; do
1758 if test "$enableval" = "$ol_val" ; then
1762 if test "$ol_arg" = "invalid" ; then
1763 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1765 ol_enable_spasswd="$ol_arg"
1768 ol_enable_spasswd="no"
1770 # end --enable-spasswd
1771 # OpenLDAP --enable-modules
1772 # Check whether --enable-modules or --disable-modules was given.
1773 if test "${enable_modules+set}" = set; then
1774 enableval="$enable_modules"
1777 for ol_val in auto yes no ; do
1778 if test "$enableval" = "$ol_val" ; then
1782 if test "$ol_arg" = "invalid" ; then
1783 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1785 ol_enable_modules="$ol_arg"
1788 ol_enable_modules="no"
1790 # end --enable-modules
1791 ol_enable_multimaster=${ol_enable_multimaster-no}
1792 # OpenLDAP --enable-rewrite
1793 # Check whether --enable-rewrite or --disable-rewrite was given.
1794 if test "${enable_rewrite+set}" = set; then
1795 enableval="$enable_rewrite"
1798 for ol_val in auto yes no ; do
1799 if test "$enableval" = "$ol_val" ; then
1803 if test "$ol_arg" = "invalid" ; then
1804 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1806 ol_enable_rewrite="$ol_arg"
1809 ol_enable_rewrite="auto"
1811 # end --enable-rewrite
1812 # OpenLDAP --enable-rlookups
1813 # Check whether --enable-rlookups or --disable-rlookups was given.
1814 if test "${enable_rlookups+set}" = set; then
1815 enableval="$enable_rlookups"
1818 for ol_val in auto yes no ; do
1819 if test "$enableval" = "$ol_val" ; then
1823 if test "$ol_arg" = "invalid" ; then
1824 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1826 ol_enable_rlookups="$ol_arg"
1829 ol_enable_rlookups="no"
1831 # end --enable-rlookups
1832 # OpenLDAP --enable-slapi
1833 # Check whether --enable-slapi or --disable-slapi was given.
1834 if test "${enable_slapi+set}" = set; then
1835 enableval="$enable_slapi"
1838 for ol_val in auto yes no ; do
1839 if test "$enableval" = "$ol_val" ; then
1843 if test "$ol_arg" = "invalid" ; then
1844 { echo "configure: error: bad value $enableval for --enable-slapi" 1>&2; exit 1; }
1846 ol_enable_slapi="$ol_arg"
1849 ol_enable_slapi="no"
1851 # end --enable-slapi
1852 # OpenLDAP --enable-slp
1853 # Check whether --enable-slp or --disable-slp was given.
1854 if test "${enable_slp+set}" = set; then
1855 enableval="$enable_slp"
1858 for ol_val in auto yes no ; do
1859 if test "$enableval" = "$ol_val" ; then
1863 if test "$ol_arg" = "invalid" ; then
1864 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1866 ol_enable_slp="$ol_arg"
1872 # OpenLDAP --enable-wrappers
1873 # Check whether --enable-wrappers or --disable-wrappers was given.
1874 if test "${enable_wrappers+set}" = set; then
1875 enableval="$enable_wrappers"
1878 for ol_val in auto yes no ; do
1879 if test "$enableval" = "$ol_val" ; then
1883 if test "$ol_arg" = "invalid" ; then
1884 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1886 ol_enable_wrappers="$ol_arg"
1889 ol_enable_wrappers="no"
1891 # end --enable-wrappers
1894 # OpenLDAP --enable-bdb
1895 # Check whether --enable-bdb or --disable-bdb was given.
1896 if test "${enable_bdb+set}" = set; then
1897 enableval="$enable_bdb"
1900 for ol_val in auto yes no ; do
1901 if test "$enableval" = "$ol_val" ; then
1905 if test "$ol_arg" = "invalid" ; then
1906 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1908 ol_enable_bdb="$ol_arg"
1914 # OpenLDAP --with-bdb_module
1915 # Check whether --with-bdb_module or --without-bdb_module was given.
1916 if test "${with_bdb_module+set}" = set; then
1917 withval="$with_bdb_module"
1920 for ol_val in static dynamic ; do
1921 if test "$withval" = "$ol_val" ; then
1925 if test "$ol_arg" = "invalid" ; then
1926 { echo "configure: error: bad value $withval for --with-bdb_module" 1>&2; exit 1; }
1928 ol_with_bdb_module="$ol_arg"
1931 ol_with_bdb_module="static"
1933 # end --with-bdb_module
1935 # OpenLDAP --enable-dnssrv
1936 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1937 if test "${enable_dnssrv+set}" = set; then
1938 enableval="$enable_dnssrv"
1941 for ol_val in auto yes no ; do
1942 if test "$enableval" = "$ol_val" ; then
1946 if test "$ol_arg" = "invalid" ; then
1947 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1949 ol_enable_dnssrv="$ol_arg"
1952 ol_enable_dnssrv="no"
1954 # end --enable-dnssrv
1955 # OpenLDAP --with-dnssrv_module
1956 # Check whether --with-dnssrv_module or --without-dnssrv_module was given.
1957 if test "${with_dnssrv_module+set}" = set; then
1958 withval="$with_dnssrv_module"
1961 for ol_val in static dynamic ; do
1962 if test "$withval" = "$ol_val" ; then
1966 if test "$ol_arg" = "invalid" ; then
1967 { echo "configure: error: bad value $withval for --with-dnssrv_module" 1>&2; exit 1; }
1969 ol_with_dnssrv_module="$ol_arg"
1972 ol_with_dnssrv_module="static"
1974 # end --with-dnssrv_module
1976 # OpenLDAP --enable-hdb
1977 # Check whether --enable-hdb or --disable-hdb was given.
1978 if test "${enable_hdb+set}" = set; then
1979 enableval="$enable_hdb"
1982 for ol_val in auto yes no ; do
1983 if test "$enableval" = "$ol_val" ; then
1987 if test "$ol_arg" = "invalid" ; then
1988 { echo "configure: error: bad value $enableval for --enable-hdb" 1>&2; exit 1; }
1990 ol_enable_hdb="$ol_arg"
1996 # OpenLDAP --with-hdb_module
1997 # Check whether --with-hdb_module or --without-hdb_module was given.
1998 if test "${with_hdb_module+set}" = set; then
1999 withval="$with_hdb_module"
2002 for ol_val in static dynamic ; do
2003 if test "$withval" = "$ol_val" ; then
2007 if test "$ol_arg" = "invalid" ; then
2008 { echo "configure: error: bad value $withval for --with-hdb_module" 1>&2; exit 1; }
2010 ol_with_hdb_module="$ol_arg"
2013 ol_with_hdb_module="static"
2015 # end --with-hdb_module
2017 # OpenLDAP --enable-ldap
2018 # Check whether --enable-ldap or --disable-ldap was given.
2019 if test "${enable_ldap+set}" = set; then
2020 enableval="$enable_ldap"
2023 for ol_val in auto yes no ; do
2024 if test "$enableval" = "$ol_val" ; then
2028 if test "$ol_arg" = "invalid" ; then
2029 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2031 ol_enable_ldap="$ol_arg"
2037 # OpenLDAP --with-ldap_module
2038 # Check whether --with-ldap_module or --without-ldap_module was given.
2039 if test "${with_ldap_module+set}" = set; then
2040 withval="$with_ldap_module"
2043 for ol_val in static dynamic ; do
2044 if test "$withval" = "$ol_val" ; then
2048 if test "$ol_arg" = "invalid" ; then
2049 { echo "configure: error: bad value $withval for --with-ldap_module" 1>&2; exit 1; }
2051 ol_with_ldap_module="$ol_arg"
2054 ol_with_ldap_module="static"
2056 # end --with-ldap_module
2058 # OpenLDAP --enable-ldbm
2059 # Check whether --enable-ldbm or --disable-ldbm was given.
2060 if test "${enable_ldbm+set}" = set; then
2061 enableval="$enable_ldbm"
2064 for ol_val in auto yes no ; do
2065 if test "$enableval" = "$ol_val" ; then
2069 if test "$ol_arg" = "invalid" ; then
2070 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2072 ol_enable_ldbm="$ol_arg"
2078 # OpenLDAP --with-ldbm_api
2079 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2080 if test "${with_ldbm_api+set}" = set; then
2081 withval="$with_ldbm_api"
2084 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2085 if test "$withval" = "$ol_val" ; then
2089 if test "$ol_arg" = "invalid" ; then
2090 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2092 ol_with_ldbm_api="$ol_arg"
2095 ol_with_ldbm_api="auto"
2097 # end --with-ldbm_api
2099 # OpenLDAP --with-ldbm_module
2100 # Check whether --with-ldbm_module or --without-ldbm_module was given.
2101 if test "${with_ldbm_module+set}" = set; then
2102 withval="$with_ldbm_module"
2105 for ol_val in static dynamic ; do
2106 if test "$withval" = "$ol_val" ; then
2110 if test "$ol_arg" = "invalid" ; then
2111 { echo "configure: error: bad value $withval for --with-ldbm_module" 1>&2; exit 1; }
2113 ol_with_ldbm_module="$ol_arg"
2116 ol_with_ldbm_module="static"
2118 # end --with-ldbm_module
2120 # OpenLDAP --with-ldbm_type
2121 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2122 if test "${with_ldbm_type+set}" = set; then
2123 withval="$with_ldbm_type"
2126 for ol_val in auto btree hash ; do
2127 if test "$withval" = "$ol_val" ; then
2131 if test "$ol_arg" = "invalid" ; then
2132 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2134 ol_with_ldbm_type="$ol_arg"
2137 ol_with_ldbm_type="auto"
2139 # end --with-ldbm_type
2141 # OpenLDAP --enable-meta
2142 # Check whether --enable-meta or --disable-meta was given.
2143 if test "${enable_meta+set}" = set; then
2144 enableval="$enable_meta"
2147 for ol_val in auto yes no ; do
2148 if test "$enableval" = "$ol_val" ; then
2152 if test "$ol_arg" = "invalid" ; then
2153 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2155 ol_enable_meta="$ol_arg"
2161 # OpenLDAP --with-meta_module
2162 # Check whether --with-meta_module or --without-meta_module was given.
2163 if test "${with_meta_module+set}" = set; then
2164 withval="$with_meta_module"
2167 for ol_val in static dynamic ; do
2168 if test "$withval" = "$ol_val" ; then
2172 if test "$ol_arg" = "invalid" ; then
2173 { echo "configure: error: bad value $withval for --with-meta_module" 1>&2; exit 1; }
2175 ol_with_meta_module="$ol_arg"
2178 ol_with_meta_module="static"
2180 # end --with-meta_module
2182 # OpenLDAP --enable-monitor
2183 # Check whether --enable-monitor or --disable-monitor was given.
2184 if test "${enable_monitor+set}" = set; then
2185 enableval="$enable_monitor"
2188 for ol_val in auto yes no ; do
2189 if test "$enableval" = "$ol_val" ; then
2193 if test "$ol_arg" = "invalid" ; then
2194 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2196 ol_enable_monitor="$ol_arg"
2199 ol_enable_monitor="yes"
2201 # end --enable-monitor
2202 # OpenLDAP --with-monitor_module
2203 # Check whether --with-monitor_module or --without-monitor_module was given.
2204 if test "${with_monitor_module+set}" = set; then
2205 withval="$with_monitor_module"
2208 for ol_val in static dynamic ; do
2209 if test "$withval" = "$ol_val" ; then
2213 if test "$ol_arg" = "invalid" ; then
2214 { echo "configure: error: bad value $withval for --with-monitor_module" 1>&2; exit 1; }
2216 ol_with_monitor_module="$ol_arg"
2219 ol_with_monitor_module="static"
2221 # end --with-monitor_module
2223 # OpenLDAP --enable-null
2224 # Check whether --enable-null or --disable-null was given.
2225 if test "${enable_null+set}" = set; then
2226 enableval="$enable_null"
2229 for ol_val in auto yes no ; do
2230 if test "$enableval" = "$ol_val" ; then
2234 if test "$ol_arg" = "invalid" ; then
2235 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2237 ol_enable_null="$ol_arg"
2243 # OpenLDAP --with-null_module
2244 # Check whether --with-null_module or --without-null_module was given.
2245 if test "${with_null_module+set}" = set; then
2246 withval="$with_null_module"
2249 for ol_val in static dynamic ; do
2250 if test "$withval" = "$ol_val" ; then
2254 if test "$ol_arg" = "invalid" ; then
2255 { echo "configure: error: bad value $withval for --with-null_module" 1>&2; exit 1; }
2257 ol_with_null_module="$ol_arg"
2260 ol_with_null_module="static"
2262 # end --with-null_module
2264 # OpenLDAP --enable-passwd
2265 # Check whether --enable-passwd or --disable-passwd was given.
2266 if test "${enable_passwd+set}" = set; then
2267 enableval="$enable_passwd"
2270 for ol_val in auto yes no ; do
2271 if test "$enableval" = "$ol_val" ; then
2275 if test "$ol_arg" = "invalid" ; then
2276 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2278 ol_enable_passwd="$ol_arg"
2281 ol_enable_passwd="no"
2283 # end --enable-passwd
2284 # OpenLDAP --with-passwd_module
2285 # Check whether --with-passwd_module or --without-passwd_module was given.
2286 if test "${with_passwd_module+set}" = set; then
2287 withval="$with_passwd_module"
2290 for ol_val in static dynamic ; do
2291 if test "$withval" = "$ol_val" ; then
2295 if test "$ol_arg" = "invalid" ; then
2296 { echo "configure: error: bad value $withval for --with-passwd_module" 1>&2; exit 1; }
2298 ol_with_passwd_module="$ol_arg"
2301 ol_with_passwd_module="static"
2303 # end --with-passwd_module
2305 # OpenLDAP --enable-perl
2306 # Check whether --enable-perl or --disable-perl was given.
2307 if test "${enable_perl+set}" = set; then
2308 enableval="$enable_perl"
2311 for ol_val in auto yes no ; do
2312 if test "$enableval" = "$ol_val" ; then
2316 if test "$ol_arg" = "invalid" ; then
2317 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2319 ol_enable_perl="$ol_arg"
2325 # OpenLDAP --with-perl_module
2326 # Check whether --with-perl_module or --without-perl_module was given.
2327 if test "${with_perl_module+set}" = set; then
2328 withval="$with_perl_module"
2331 for ol_val in static dynamic ; do
2332 if test "$withval" = "$ol_val" ; then
2336 if test "$ol_arg" = "invalid" ; then
2337 { echo "configure: error: bad value $withval for --with-perl_module" 1>&2; exit 1; }
2339 ol_with_perl_module="$ol_arg"
2342 ol_with_perl_module="static"
2344 # end --with-perl_module
2346 # OpenLDAP --enable-relay
2347 # Check whether --enable-relay or --disable-relay was given.
2348 if test "${enable_relay+set}" = set; then
2349 enableval="$enable_relay"
2352 for ol_val in auto yes no ; do
2353 if test "$enableval" = "$ol_val" ; then
2357 if test "$ol_arg" = "invalid" ; then
2358 { echo "configure: error: bad value $enableval for --enable-relay" 1>&2; exit 1; }
2360 ol_enable_relay="$ol_arg"
2363 ol_enable_relay="yes"
2365 # end --enable-relay
2366 # OpenLDAP --with-relay_module
2367 # Check whether --with-relay_module or --without-relay_module was given.
2368 if test "${with_relay_module+set}" = set; then
2369 withval="$with_relay_module"
2372 for ol_val in static dynamic ; do
2373 if test "$withval" = "$ol_val" ; then
2377 if test "$ol_arg" = "invalid" ; then
2378 { echo "configure: error: bad value $withval for --with-relay_module" 1>&2; exit 1; }
2380 ol_with_relay_module="$ol_arg"
2383 ol_with_relay_module="static"
2385 # end --with-relay_module
2387 # OpenLDAP --enable-shell
2388 # Check whether --enable-shell or --disable-shell was given.
2389 if test "${enable_shell+set}" = set; then
2390 enableval="$enable_shell"
2393 for ol_val in auto yes no ; do
2394 if test "$enableval" = "$ol_val" ; then
2398 if test "$ol_arg" = "invalid" ; then
2399 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2401 ol_enable_shell="$ol_arg"
2404 ol_enable_shell="no"
2406 # end --enable-shell
2407 # OpenLDAP --with-shell_module
2408 # Check whether --with-shell_module or --without-shell_module was given.
2409 if test "${with_shell_module+set}" = set; then
2410 withval="$with_shell_module"
2413 for ol_val in static dynamic ; do
2414 if test "$withval" = "$ol_val" ; then
2418 if test "$ol_arg" = "invalid" ; then
2419 { echo "configure: error: bad value $withval for --with-shell_module" 1>&2; exit 1; }
2421 ol_with_shell_module="$ol_arg"
2424 ol_with_shell_module="static"
2426 # end --with-shell_module
2428 # OpenLDAP --enable-sql
2429 # Check whether --enable-sql or --disable-sql was given.
2430 if test "${enable_sql+set}" = set; then
2431 enableval="$enable_sql"
2434 for ol_val in auto yes no ; do
2435 if test "$enableval" = "$ol_val" ; then
2439 if test "$ol_arg" = "invalid" ; then
2440 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2442 ol_enable_sql="$ol_arg"
2448 # OpenLDAP --with-sql_module
2449 # Check whether --with-sql_module or --without-sql_module was given.
2450 if test "${with_sql_module+set}" = set; then
2451 withval="$with_sql_module"
2454 for ol_val in static dynamic ; do
2455 if test "$withval" = "$ol_val" ; then
2459 if test "$ol_arg" = "invalid" ; then
2460 { echo "configure: error: bad value $withval for --with-sql_module" 1>&2; exit 1; }
2462 ol_with_sql_module="$ol_arg"
2465 ol_with_sql_module="static"
2467 # end --with-sql_module
2470 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
2471 if test "${with_xxslapoverlays+set}" = set; then
2472 withval="$with_xxslapoverlays"
2476 # OpenLDAP --enable-chain
2477 # Check whether --enable-chain or --disable-chain was given.
2478 if test "${enable_chain+set}" = set; then
2479 enableval="$enable_chain"
2482 for ol_val in no yes mod ; do
2483 if test "$enableval" = "$ol_val" ; then
2487 if test "$ol_arg" = "invalid" ; then
2488 { echo "configure: error: bad value $enableval for --enable-chain" 1>&2; exit 1; }
2490 ol_enable_chain="$ol_arg"
2493 ol_enable_chain="no"
2495 # end --enable-chain
2497 # OpenLDAP --enable-denyop
2498 # Check whether --enable-denyop or --disable-denyop was given.
2499 if test "${enable_denyop+set}" = set; then
2500 enableval="$enable_denyop"
2503 for ol_val in no yes mod ; do
2504 if test "$enableval" = "$ol_val" ; then
2508 if test "$ol_arg" = "invalid" ; then
2509 { echo "configure: error: bad value $enableval for --enable-denyop" 1>&2; exit 1; }
2511 ol_enable_denyop="$ol_arg"
2514 ol_enable_denyop="no"
2516 # end --enable-denyop
2518 # OpenLDAP --enable-dyngroup
2519 # Check whether --enable-dyngroup or --disable-dyngroup was given.
2520 if test "${enable_dyngroup+set}" = set; then
2521 enableval="$enable_dyngroup"
2524 for ol_val in no yes mod ; do
2525 if test "$enableval" = "$ol_val" ; then
2529 if test "$ol_arg" = "invalid" ; then
2530 { echo "configure: error: bad value $enableval for --enable-dyngroup" 1>&2; exit 1; }
2532 ol_enable_dyngroup="$ol_arg"
2535 ol_enable_dyngroup="no"
2537 # end --enable-dyngroup
2539 # OpenLDAP --enable-ppolicy
2540 # Check whether --enable-ppolicy or --disable-ppolicy was given.
2541 if test "${enable_ppolicy+set}" = set; then
2542 enableval="$enable_ppolicy"
2545 for ol_val in no yes mod ; do
2546 if test "$enableval" = "$ol_val" ; then
2550 if test "$ol_arg" = "invalid" ; then
2551 { echo "configure: error: bad value $enableval for --enable-ppolicy" 1>&2; exit 1; }
2553 ol_enable_ppolicy="$ol_arg"
2556 ol_enable_ppolicy="no"
2558 # end --enable-ppolicy
2560 # OpenLDAP --enable-proxycache
2561 # Check whether --enable-proxycache or --disable-proxycache was given.
2562 if test "${enable_proxycache+set}" = set; then
2563 enableval="$enable_proxycache"
2566 for ol_val in no yes mod ; do
2567 if test "$enableval" = "$ol_val" ; then
2571 if test "$ol_arg" = "invalid" ; then
2572 { echo "configure: error: bad value $enableval for --enable-proxycache" 1>&2; exit 1; }
2574 ol_enable_proxycache="$ol_arg"
2577 ol_enable_proxycache="no"
2579 # end --enable-proxycache
2581 # OpenLDAP --enable-rwm
2582 # Check whether --enable-rwm or --disable-rwm was given.
2583 if test "${enable_rwm+set}" = set; then
2584 enableval="$enable_rwm"
2587 for ol_val in no yes mod ; do
2588 if test "$enableval" = "$ol_val" ; then
2592 if test "$ol_arg" = "invalid" ; then
2593 { echo "configure: error: bad value $enableval for --enable-rwm" 1>&2; exit 1; }
2595 ol_enable_rwm="$ol_arg"
2603 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2604 if test "${with_xxslurpdoptions+set}" = set; then
2605 withval="$with_xxslurpdoptions"
2609 # OpenLDAP --enable-slurpd
2610 # Check whether --enable-slurpd or --disable-slurpd was given.
2611 if test "${enable_slurpd+set}" = set; then
2612 enableval="$enable_slurpd"
2615 for ol_val in auto yes no ; do
2616 if test "$enableval" = "$ol_val" ; then
2620 if test "$ol_arg" = "invalid" ; then
2621 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2623 ol_enable_slurpd="$ol_arg"
2626 ol_enable_slurpd="auto"
2628 # end --enable-slurpd
2630 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2631 if test "${with_xxliboptions+set}" = set; then
2632 withval="$with_xxliboptions"
2636 # Check whether --enable-static or --disable-static was given.
2637 if test "${enable_static+set}" = set; then
2638 enableval="$enable_static"
2639 p=${PACKAGE-default}
2641 yes) enable_static=yes ;;
2642 no) enable_static=no ;;
2645 # Look at the argument we got. We use all the common list separators.
2646 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2647 for pkg in $enableval; do
2648 if test "X$pkg" = "X$p"; then
2659 # Check whether --enable-shared or --disable-shared was given.
2660 if test "${enable_shared+set}" = set; then
2661 enableval="$enable_shared"
2662 p=${PACKAGE-default}
2664 yes) enable_shared=yes ;;
2665 no) enable_shared=no ;;
2668 # Look at the argument we got. We use all the common list separators.
2669 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2670 for pkg in $enableval; do
2671 if test "X$pkg" = "X$p"; then
2685 if test $ol_enable_slapd = no ; then
2686 if test $ol_enable_slapi = yes ; then
2687 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2689 if test $ol_enable_bdb = yes ; then
2690 echo "configure: warning: slapd disabled, ignoring --enable-bdb argument" 1>&2
2692 if test $ol_enable_dnssrv = yes ; then
2693 echo "configure: warning: slapd disabled, ignoring --enable-dnssrv argument" 1>&2
2695 if test $ol_enable_hdb = yes ; then
2696 echo "configure: warning: slapd disabled, ignoring --enable-hdb argument" 1>&2
2698 if test $ol_enable_ldap = yes ; then
2699 echo "configure: warning: slapd disabled, ignoring --enable-ldap argument" 1>&2
2701 if test $ol_enable_ldbm = yes ; then
2702 echo "configure: warning: slapd disabled, ignoring --enable-ldbm argument" 1>&2
2704 if test $ol_enable_meta = yes ; then
2705 echo "configure: warning: slapd disabled, ignoring --enable-meta argument" 1>&2
2707 if test $ol_enable_monitor = yes ; then
2708 echo "configure: warning: slapd disabled, ignoring --enable-monitor argument" 1>&2
2710 if test $ol_enable_null = yes ; then
2711 echo "configure: warning: slapd disabled, ignoring --enable-null argument" 1>&2
2713 if test $ol_enable_passwd = yes ; then
2714 echo "configure: warning: slapd disabled, ignoring --enable-passwd argument" 1>&2
2716 if test $ol_enable_perl = yes ; then
2717 echo "configure: warning: slapd disabled, ignoring --enable-perl argument" 1>&2
2719 if test $ol_enable_relay = yes ; then
2720 echo "configure: warning: slapd disabled, ignoring --enable-relay argument" 1>&2
2722 if test $ol_enable_shell = yes ; then
2723 echo "configure: warning: slapd disabled, ignoring --enable-shell argument" 1>&2
2725 if test $ol_enable_sql = yes ; then
2726 echo "configure: warning: slapd disabled, ignoring --enable-sql argument" 1>&2
2728 if test $ol_enable_modules = yes ; then
2729 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2731 if test $ol_enable_multimaster = yes ; then
2732 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2734 if test $ol_enable_wrappers = yes ; then
2735 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2737 if test $ol_enable_rlookups = yes ; then
2738 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2740 if test $ol_enable_aci = yes ; then
2741 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2743 if test $ol_with_ldbm_api != auto ; then
2744 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2746 if test $ol_with_ldbm_type != auto ; then
2747 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2749 if test $ol_with_bdb_module != static ; then
2750 echo "configure: warning: slapd disabled, ignoring --with-bdb-module argument" 1>&2
2752 if test $ol_with_dnssrv_module != static ; then
2753 echo "configure: warning: slapd disabled, ignoring --with-dnssrv-module argument" 1>&2
2755 if test $ol_with_hdb_module != static ; then
2756 echo "configure: warning: slapd disabled, ignoring --with-hdb-module argument" 1>&2
2758 if test $ol_with_ldap_module != static ; then
2759 echo "configure: warning: slapd disabled, ignoring --with-ldap-module argument" 1>&2
2761 if test $ol_with_ldbm_module != static ; then
2762 echo "configure: warning: slapd disabled, ignoring --with-ldbm-module argument" 1>&2
2764 if test $ol_with_meta_module != static ; then
2765 echo "configure: warning: slapd disabled, ignoring --with-meta-module argument" 1>&2
2767 if test $ol_with_monitor_module != static ; then
2768 echo "configure: warning: slapd disabled, ignoring --with-monitor-module argument" 1>&2
2770 if test $ol_with_null_module != static ; then
2771 echo "configure: warning: slapd disabled, ignoring --with-null-module argument" 1>&2
2773 if test $ol_with_passwd_module != static ; then
2774 echo "configure: warning: slapd disabled, ignoring --with-passwd-module argument" 1>&2
2776 if test $ol_with_perl_module != static ; then
2777 echo "configure: warning: slapd disabled, ignoring --with-perl-module argument" 1>&2
2779 if test $ol_with_relay_module != static ; then
2780 echo "configure: warning: slapd disabled, ignoring --with-relay-module argument" 1>&2
2782 if test $ol_with_shell_module != static ; then
2783 echo "configure: warning: slapd disabled, ignoring --with-shell-module argument" 1>&2
2785 if test $ol_with_sql_module != static ; then
2786 echo "configure: warning: slapd disabled, ignoring --with-sql-module argument" 1>&2
2788 if test $ol_enable_slurpd = yes ; then
2789 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2791 if test $ol_enable_rewrite = yes ; then
2792 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2794 if test $ol_with_chain != no ; then
2795 echo "configure: warning: slapd disabled, ignoring --with-chain argument" 1>&2
2797 if test $ol_with_denyop != no ; then
2798 echo "configure: warning: slapd disabled, ignoring --with-denyop argument" 1>&2
2800 if test $ol_with_dyngroup != no ; then
2801 echo "configure: warning: slapd disabled, ignoring --with-dyngroup argument" 1>&2
2803 if test $ol_with_ppolicy != no ; then
2804 echo "configure: warning: slapd disabled, ignoring --with-ppolicy argument" 1>&2
2806 if test $ol_with_proxycache != no ; then
2807 echo "configure: warning: slapd disabled, ignoring --with-proxycache argument" 1>&2
2809 if test $ol_with_rwm != no ; then
2810 echo "configure: warning: slapd disabled, ignoring --with-rwm argument" 1>&2
2813 # force settings to no
2821 ol_enable_monitor=no
2829 ol_enable_modules=no
2830 ol_enable_multimaster=no
2831 ol_enable_rlookups=no
2833 ol_enable_wrappers=no
2836 ol_with_ldbm_type=no
2838 ol_with_bdb_module=static
2839 ol_with_dnssrv_module=static
2840 ol_with_hdb_module=static
2841 ol_with_ldap_module=static
2842 ol_with_ldbm_module=static
2843 ol_with_meta_module=static
2844 ol_with_monitor_module=static
2845 ol_with_null_module=static
2846 ol_with_passwd_module=static
2847 ol_with_perl_module=static
2848 ol_with_relay_module=static
2849 ol_with_shell_module=static
2850 ol_with_sql_module=static
2854 ol_enable_rewrite=no
2858 ol_enable_dyngroup=no
2859 ol_enable_ppolicy=no
2860 ol_enable_proxycache=no
2863 elif test $ol_enable_ldbm = no ; then
2865 if test $ol_with_ldbm_api != auto ; then
2866 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2869 if test $ol_with_ldbm_type != auto ; then
2870 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2873 if test $ol_with_ldbm_module != static ; then
2874 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-module argument" 1>&2
2877 if test $ol_enable_modules != yes -a \
2878 $ol_enable_bdb = no -a \
2879 $ol_enable_dnssrv = no -a \
2880 $ol_enable_hdb = no -a \
2881 $ol_enable_ldap = no -a \
2882 $ol_enable_meta = no -a \
2883 $ol_enable_monitor = no -a \
2884 $ol_enable_null = no -a \
2885 $ol_enable_passwd = no -a \
2886 $ol_enable_perl = no -a \
2887 $ol_enable_relay = no -a \
2888 $ol_enable_shell = no -a \
2889 $ol_enable_sql = no ; then
2891 if test $ol_enable_slapd = yes ; then
2892 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2894 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2900 ol_with_ldbm_type=no
2901 ol_with_ldbm_module=static
2903 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
2904 ol_with_ldbm_api=berkeley
2908 if test $ol_with_ldbm_api = gdbm -a \
2909 $ol_with_ldbm_type = btree ; then
2910 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2912 if test $ol_with_ldbm_api = mdbm -a \
2913 $ol_with_ldbm_type = btree ; then
2914 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2916 if test $ol_with_ldbm_api = ndbm -a \
2917 $ol_with_ldbm_type = btree ; then
2918 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2921 if test $ol_enable_bdb = yes -o $ol_enable_hdb = yes ; then
2922 if test $ol_with_ldbm_api = auto ; then
2923 ol_with_ldbm_api=berkeley
2924 elif test $ol_with_ldbm_api != berkeley ; then
2925 { echo "configure: error: LDBM API not compatible with BDB/HDB" 1>&2; exit 1; }
2928 elif test $ol_enable_bdb = auto ; then
2929 if test $ol_with_ldbm_api != berkeley \
2930 -o $ol_with_ldbm_api != auto ; then
2931 echo "configure: warning: LDBM API not compatible with BDB, disabling BDB" 1>&2
2937 if test $ol_enable_chain != no -a $ol_enable_ldap = no ; then
2938 { echo "configure: error: --enable-chain requires --enable-ldap" 1>&2; exit 1; }
2941 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
2942 { echo "configure: error: --enable-meta requires --enable-ldap" 1>&2; exit 1; }
2945 if test $ol_enable_slurpd = yes ; then
2946 if test $ol_with_threads = no ; then
2947 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2951 if test $ol_enable_lmpasswd = yes ; then
2952 if test $ol_with_tls = no ; then
2953 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2957 if test $ol_enable_kbind = yes ; then
2958 if test $ol_with_kerberos = no ; then
2959 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2960 elif test $ol_with_kerberos = auto ; then
2961 ol_with_kerberos=yes
2964 elif test $ol_enable_kbind = no ; then
2965 if test $ol_with_kerberos = auto ; then
2967 elif test $ol_with_kerberos != no ; then
2968 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2973 if test $ol_enable_spasswd = yes ; then
2974 if test $ol_with_cyrus_sasl = no ; then
2975 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2977 ol_with_cyrus_sasl=yes
2980 echo "$ac_t""done" 1>&6
3012 BUILD_BDB_DYNAMIC=static
3013 BUILD_DNSSRV_DYNAMIC=static
3014 BUILD_HDB_DYNAMIC=static
3015 BUILD_LDAP_DYNAMIC=static
3016 BUILD_LDBM_DYNAMIC=static
3017 BUILD_META_DYNAMIC=static
3018 BUILD_MONITOR_DYNAMIC=static
3019 BUILD_NULL_DYNAMIC=static
3020 BUILD_PASSWD_DYNAMIC=static
3021 BUILD_PERL_DYNAMIC=static
3022 BUILD_RELAY_DYNAMIC=static
3023 BUILD_SHELL_DYNAMIC=static
3024 BUILD_SQL_DYNAMIC=static
3033 SLAPD_DYNAMIC_OVERLAYS=
3035 SLAPD_MODULES_LDFLAGS=
3036 SLAPD_MODULES_CPPFLAGS=
3038 SLAPD_STATIC_BACKENDS=
3039 SLAPD_DYNAMIC_BACKENDS=
3062 # Find a good install program. We prefer a C program (faster),
3063 # so one script is as good as another. But avoid the broken or
3064 # incompatible versions:
3065 # SysV /etc/install, /usr/sbin/install
3066 # SunOS /usr/etc/install
3067 # IRIX /sbin/install
3069 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3070 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3071 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3072 # ./install, which can be erroneously created by make from ./install.sh.
3073 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
3074 echo "configure:3075: checking for a BSD compatible install" >&5
3075 if test -z "$INSTALL"; then
3076 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
3077 echo $ac_n "(cached) $ac_c" 1>&6
3079 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
3080 for ac_dir in $PATH; do
3081 # Account for people who put trailing slashes in PATH elements.
3083 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
3085 # OSF1 and SCO ODT 3.0 have their own names for install.
3086 # Don't use installbsd from OSF since it installs stuff as root
3088 for ac_prog in ginstall scoinst install; do
3089 if test -f $ac_dir/$ac_prog; then
3090 if test $ac_prog = install &&
3091 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
3092 # AIX install. It has an incompatible calling convention.
3094 elif test $ac_prog = install &&
3095 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
3096 # program-specific install script used by HP pwplus--don't use.
3099 ac_cv_path_install="$ac_dir/$ac_prog -c"
3110 if test "${ac_cv_path_install+set}" = set; then
3111 INSTALL="$ac_cv_path_install"
3113 # As a last resort, use the slow shell script. We don't cache a
3114 # path for INSTALL within a source directory, because that will
3115 # break other packages using the cache if that directory is
3116 # removed, or if the path is relative.
3117 INSTALL="$ac_install_sh"
3120 echo "$ac_t""$INSTALL" 1>&6
3122 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3123 # It thinks the first close brace ends the variable substitution.
3124 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3126 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3128 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3131 cat >> confdefs.h <<\EOF
3132 #define HAVE_MKVERSION 1
3140 *-*-aix*) if test -z "$CC" ; then
3141 case "$ol_with_threads" in
3142 auto | yes | posix) ol_aix_threads=yes ;;
3148 if test $ol_aix_threads = yes ; then
3149 if test -z "${CC}" ; then
3150 for ac_prog in cc_r xlc_r cc
3152 # Extract the first word of "$ac_prog", so it can be a program name with args.
3153 set dummy $ac_prog; ac_word=$2
3154 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3155 echo "configure:3156: checking for $ac_word" >&5
3156 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3157 echo $ac_n "(cached) $ac_c" 1>&6
3159 if test -n "$CC"; then
3160 ac_cv_prog_CC="$CC" # Let the user override the test.
3162 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3164 for ac_dir in $ac_dummy; do
3165 test -z "$ac_dir" && ac_dir=.
3166 if test -f $ac_dir/$ac_word; then
3167 ac_cv_prog_CC="$ac_prog"
3175 if test -n "$CC"; then
3176 echo "$ac_t""$CC" 1>&6
3178 echo "$ac_t""no" 1>&6
3181 test -n "$CC" && break
3185 if test "$CC" = cc ; then
3186 if test $ol_with_threads != auto ; then
3187 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
3189 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
3195 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
3196 ol_with_threads=posix
3197 ol_cv_pthread_create=yes
3201 if test -z "${CC}"; then
3202 for ac_prog in cc gcc
3204 # Extract the first word of "$ac_prog", so it can be a program name with args.
3205 set dummy $ac_prog; ac_word=$2
3206 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3207 echo "configure:3208: checking for $ac_word" >&5
3208 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3209 echo $ac_n "(cached) $ac_c" 1>&6
3211 if test -n "$CC"; then
3212 ac_cv_prog_CC="$CC" # Let the user override the test.
3214 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3216 for ac_dir in $ac_dummy; do
3217 test -z "$ac_dir" && ac_dir=.
3218 if test -f $ac_dir/$ac_word; then
3219 ac_cv_prog_CC="$ac_prog"
3227 if test -n "$CC"; then
3228 echo "$ac_t""$CC" 1>&6
3230 echo "$ac_t""no" 1>&6
3233 test -n "$CC" && break
3235 test -n "$CC" || CC="missing"
3238 if test "${CC}" = "missing" ; then
3239 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
3243 if test -z "${AR}"; then
3244 for ac_prog in ar gar
3246 # Extract the first word of "$ac_prog", so it can be a program name with args.
3247 set dummy $ac_prog; ac_word=$2
3248 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3249 echo "configure:3250: checking for $ac_word" >&5
3250 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3251 echo $ac_n "(cached) $ac_c" 1>&6
3253 if test -n "$AR"; then
3254 ac_cv_prog_AR="$AR" # Let the user override the test.
3256 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3258 for ac_dir in $ac_dummy; do
3259 test -z "$ac_dir" && ac_dir=.
3260 if test -f $ac_dir/$ac_word; then
3261 ac_cv_prog_AR="$ac_prog"
3269 if test -n "$AR"; then
3270 echo "$ac_t""$AR" 1>&6
3272 echo "$ac_t""no" 1>&6
3275 test -n "$AR" && break
3277 test -n "$AR" || AR="missing"
3280 if test "${AR}" = "missing" ; then
3281 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3287 # Find the correct PATH separator. Usually this is `:', but
3288 # DJGPP uses `;' like DOS.
3289 if test "X${PATH_SEPARATOR+set}" != Xset; then
3290 UNAME=${UNAME-`uname 2>/dev/null`}
3292 *-DOS) lt_cv_sys_path_separator=';' ;;
3293 *) lt_cv_sys_path_separator=':' ;;
3295 PATH_SEPARATOR=$lt_cv_sys_path_separator
3298 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3299 echo "configure:3300: checking for Cygwin environment" >&5
3300 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3301 echo $ac_n "(cached) $ac_c" 1>&6
3303 cat > conftest.$ac_ext <<EOF
3304 #line 3305 "configure"
3305 #include "confdefs.h"
3310 #define __CYGWIN__ __CYGWIN32__
3315 if { (eval echo configure:3316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3319 echo "configure: failed program was:" >&5
3320 cat conftest.$ac_ext >&5
3327 echo "$ac_t""$ac_cv_cygwin" 1>&6
3329 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3330 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3331 echo "configure:3332: checking for mingw32 environment" >&5
3332 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3333 echo $ac_n "(cached) $ac_c" 1>&6
3335 cat > conftest.$ac_ext <<EOF
3336 #line 3337 "configure"
3337 #include "confdefs.h"
3343 if { (eval echo configure:3344: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3347 echo "configure: failed program was:" >&5
3348 cat conftest.$ac_ext >&5
3355 echo "$ac_t""$ac_cv_mingw32" 1>&6
3357 test "$ac_cv_mingw32" = yes && MINGW32=yes
3358 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3359 echo "configure:3360: checking for EMX OS/2 environment" >&5
3360 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3363 cat > conftest.$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3371 if { (eval echo configure:3372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3375 echo "configure: failed program was:" >&5
3376 cat conftest.$ac_ext >&5
3383 echo "$ac_t""$ac_cv_emxos2" 1>&6
3385 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3386 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3387 echo "configure:3388: checking how to run the C preprocessor" >&5
3388 # On Suns, sometimes $CPP names a directory.
3389 if test -n "$CPP" && test -d "$CPP"; then
3392 if test -z "$CPP"; then
3393 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3394 echo $ac_n "(cached) $ac_c" 1>&6
3396 # This must be in double quotes, not single quotes, because CPP may get
3397 # substituted into the Makefile and "${CC-cc}" will confuse make.
3399 # On the NeXT, cc -E runs the code through the compiler's parser,
3400 # not just through cpp.
3401 cat > conftest.$ac_ext <<EOF
3402 #line 3403 "configure"
3403 #include "confdefs.h"
3407 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3408 { (eval echo configure:3409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3409 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3410 if test -z "$ac_err"; then
3414 echo "configure: failed program was:" >&5
3415 cat conftest.$ac_ext >&5
3417 CPP="${CC-cc} -E -traditional-cpp"
3418 cat > conftest.$ac_ext <<EOF
3419 #line 3420 "configure"
3420 #include "confdefs.h"
3424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3425 { (eval echo configure:3426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3427 if test -z "$ac_err"; then
3431 echo "configure: failed program was:" >&5
3432 cat conftest.$ac_ext >&5
3434 CPP="${CC-cc} -nologo -E"
3435 cat > conftest.$ac_ext <<EOF
3436 #line 3437 "configure"
3437 #include "confdefs.h"
3441 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3442 { (eval echo configure:3443: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3443 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3444 if test -z "$ac_err"; then
3448 echo "configure: failed program was:" >&5
3449 cat conftest.$ac_ext >&5
3458 ac_cv_prog_CPP="$CPP"
3460 CPP="$ac_cv_prog_CPP"
3462 ac_cv_prog_CPP="$CPP"
3464 echo "$ac_t""$CPP" 1>&6
3466 # Check whether --enable-fast-install or --disable-fast-install was given.
3467 if test "${enable_fast_install+set}" = set; then
3468 enableval="$enable_fast_install"
3469 p=${PACKAGE-default}
3471 yes) enable_fast_install=yes ;;
3472 no) enable_fast_install=no ;;
3474 enable_fast_install=no
3475 # Look at the argument we got. We use all the common list separators.
3476 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3477 for pkg in $enableval; do
3478 if test "X$pkg" = "X$p"; then
3479 enable_fast_install=yes
3486 enable_fast_install=yes
3489 # Extract the first word of "gcc", so it can be a program name with args.
3490 set dummy gcc; ac_word=$2
3491 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3492 echo "configure:3493: checking for $ac_word" >&5
3493 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3494 echo $ac_n "(cached) $ac_c" 1>&6
3496 if test -n "$CC"; then
3497 ac_cv_prog_CC="$CC" # Let the user override the test.
3499 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3501 for ac_dir in $ac_dummy; do
3502 test -z "$ac_dir" && ac_dir=.
3503 if test -f $ac_dir/$ac_word; then
3512 if test -n "$CC"; then
3513 echo "$ac_t""$CC" 1>&6
3515 echo "$ac_t""no" 1>&6
3518 if test -z "$CC"; then
3519 # Extract the first word of "cc", so it can be a program name with args.
3520 set dummy cc; ac_word=$2
3521 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3522 echo "configure:3523: checking for $ac_word" >&5
3523 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3524 echo $ac_n "(cached) $ac_c" 1>&6
3526 if test -n "$CC"; then
3527 ac_cv_prog_CC="$CC" # Let the user override the test.
3529 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3532 for ac_dir in $ac_dummy; do
3533 test -z "$ac_dir" && ac_dir=.
3534 if test -f $ac_dir/$ac_word; then
3535 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3536 ac_prog_rejected=yes
3544 if test $ac_prog_rejected = yes; then
3545 # We found a bogon in the path, so make sure we never use it.
3546 set dummy $ac_cv_prog_CC
3548 if test $# -gt 0; then
3549 # We chose a different compiler from the bogus one.
3550 # However, it has the same basename, so the bogon will be chosen
3551 # first if we set CC to just the basename; use the full file name.
3553 set dummy "$ac_dir/$ac_word" "$@"
3561 if test -n "$CC"; then
3562 echo "$ac_t""$CC" 1>&6
3564 echo "$ac_t""no" 1>&6
3567 if test -z "$CC"; then
3568 case "`uname -s`" in
3569 *win32* | *WIN32* | *CYGWIN*)
3570 # Extract the first word of "cl", so it can be a program name with args.
3571 set dummy cl; ac_word=$2
3572 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3573 echo "configure:3574: checking for $ac_word" >&5
3574 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3575 echo $ac_n "(cached) $ac_c" 1>&6
3577 if test -n "$CC"; then
3578 ac_cv_prog_CC="$CC" # Let the user override the test.
3580 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3582 for ac_dir in $ac_dummy; do
3583 test -z "$ac_dir" && ac_dir=.
3584 if test -f $ac_dir/$ac_word; then
3593 if test -n "$CC"; then
3594 echo "$ac_t""$CC" 1>&6
3596 echo "$ac_t""no" 1>&6
3601 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3604 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3605 echo "configure:3606: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3608 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3609 ac_cpp='$CPP $CPPFLAGS'
3610 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3611 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3612 cross_compiling=$ac_cv_prog_cc_cross
3614 cat > conftest.$ac_ext << EOF
3616 #line 3617 "configure"
3617 #include "confdefs.h"
3621 if { (eval echo configure:3622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3622 ac_cv_prog_cc_works=yes
3623 # If we can't run a trivial program, we are probably using a cross compiler.
3624 if (./conftest; exit) 2>/dev/null; then
3625 ac_cv_prog_cc_cross=no
3627 ac_cv_prog_cc_cross=yes
3630 echo "configure: failed program was:" >&5
3631 cat conftest.$ac_ext >&5
3632 ac_cv_prog_cc_works=no
3636 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3637 ac_cpp='$CPP $CPPFLAGS'
3638 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3639 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3640 cross_compiling=$ac_cv_prog_cc_cross
3642 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3643 if test $ac_cv_prog_cc_works = no; then
3644 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3646 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3647 echo "configure:3648: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3648 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3649 cross_compiling=$ac_cv_prog_cc_cross
3651 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3652 echo "configure:3653: checking whether we are using GNU C" >&5
3653 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3654 echo $ac_n "(cached) $ac_c" 1>&6
3656 cat > conftest.c <<EOF
3661 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3662: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3668 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3670 if test $ac_cv_prog_gcc = yes; then
3676 ac_test_CFLAGS="${CFLAGS+set}"
3677 ac_save_CFLAGS="$CFLAGS"
3679 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3680 echo "configure:3681: checking whether ${CC-cc} accepts -g" >&5
3681 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3682 echo $ac_n "(cached) $ac_c" 1>&6
3684 echo 'void f(){}' > conftest.c
3685 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3694 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3695 if test "$ac_test_CFLAGS" = set; then
3696 CFLAGS="$ac_save_CFLAGS"
3697 elif test $ac_cv_prog_cc_g = yes; then
3698 if test "$GCC" = yes; then
3704 if test "$GCC" = yes; then
3711 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3712 if test "${with_gnu_ld+set}" = set; then
3713 withval="$with_gnu_ld"
3714 test "$withval" = no || with_gnu_ld=yes
3720 if test "$GCC" = yes; then
3721 # Check if gcc -print-prog-name=ld gives a path.
3722 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3723 echo "configure:3724: checking for ld used by GCC" >&5
3726 # gcc leaves a trailing carriage return which upsets mingw
3727 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3729 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3732 # Accept absolute paths.
3733 [\\/]* | [A-Za-z]:[\\/]*)
3734 re_direlt='/[^/][^/]*/\.\./'
3735 # Canonicalize the path of ld
3736 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3737 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3738 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3740 test -z "$LD" && LD="$ac_prog"
3743 # If it fails, then pretend we aren't using GCC.
3747 # If it is relative, then search for the first ld in PATH.
3751 elif test "$with_gnu_ld" = yes; then
3752 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3753 echo "configure:3754: checking for GNU ld" >&5
3755 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3756 echo "configure:3757: checking for non-GNU ld" >&5
3758 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3759 echo $ac_n "(cached) $ac_c" 1>&6
3761 if test -z "$LD"; then
3762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3763 for ac_dir in $PATH; do
3764 test -z "$ac_dir" && ac_dir=.
3765 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3766 lt_cv_path_LD="$ac_dir/$ac_prog"
3767 # Check to see if the program is GNU ld. I'd rather use --version,
3768 # but apparently some GNU ld's only accept -v.
3769 # Break only if it was the GNU/non-GNU ld that we prefer.
3770 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3771 test "$with_gnu_ld" != no && break
3773 test "$with_gnu_ld" != yes && break
3779 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3784 if test -n "$LD"; then
3785 echo "$ac_t""$LD" 1>&6
3787 echo "$ac_t""no" 1>&6
3789 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3790 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3791 echo "configure:3792: checking if the linker ($LD) is GNU ld" >&5
3792 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3793 echo $ac_n "(cached) $ac_c" 1>&6
3795 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3796 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3797 lt_cv_prog_gnu_ld=yes
3799 lt_cv_prog_gnu_ld=no
3803 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3804 with_gnu_ld=$lt_cv_prog_gnu_ld
3807 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3808 echo "configure:3809: checking for $LD option to reload object files" >&5
3809 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3810 echo $ac_n "(cached) $ac_c" 1>&6
3812 lt_cv_ld_reload_flag='-r'
3815 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3816 reload_flag=$lt_cv_ld_reload_flag
3817 test -n "$reload_flag" && reload_flag=" $reload_flag"
3819 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3820 echo "configure:3821: checking for BSD-compatible nm" >&5
3821 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3822 echo $ac_n "(cached) $ac_c" 1>&6
3824 if test -n "$NM"; then
3825 # Let the user override the test.
3828 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3829 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3830 test -z "$ac_dir" && ac_dir=.
3831 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3832 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3833 # Check to see if the nm accepts a BSD-compat flag.
3834 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3835 # nm: unknown option "B" ignored
3836 # Tru64's nm complains that /dev/null is an invalid object file
3837 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3838 lt_cv_path_NM="$tmp_nm -B"
3840 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3841 lt_cv_path_NM="$tmp_nm -p"
3844 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3845 continue # so that we can try to find one that supports BSD flags
3850 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3855 echo "$ac_t""$NM" 1>&6
3857 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3858 echo "configure:3859: checking for a sed that does not truncate output" >&5
3859 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3860 echo $ac_n "(cached) $ac_c" 1>&6
3862 # Loop through the user's path and test for sed and gsed.
3863 # Then use that list of sed's as ones to test for truncation.
3864 as_executable_p="test -f"
3865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869 test -z "$as_dir" && as_dir=.
3870 for ac_prog in sed gsed; do
3871 for ac_exec_ext in '' $ac_executable_extensions; do
3872 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3873 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3879 # Create a temporary directory, and hook for its removal unless debugging.
3882 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3883 trap '{ (exit 1); exit 1; }' 1 2 13 15
3886 # Create a (secure) tmp directory for tmp files.
3889 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3890 test -n "$tmp" && test -d "$tmp"
3893 tmp=$TMPDIR/sed$$-$RANDOM
3894 (umask 077 && mkdir $tmp)
3897 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3898 { (exit 1); exit 1; }
3902 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3903 # along with /bin/sed that truncates output.
3904 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3905 test ! -f ${_sed} && break
3906 cat /dev/null > "$tmp/sed.in"
3908 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3909 # Check for GNU sed and select it if it is found.
3910 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3911 lt_cv_path_SED=${_sed}
3915 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3916 mv "$tmp/sed.tmp" "$tmp/sed.in"
3917 cp "$tmp/sed.in" "$tmp/sed.nl"
3918 echo >>"$tmp/sed.nl"
3919 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3920 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3921 # 40000 chars as input seems more than enough
3922 test $_count -gt 10 && break
3923 _count=`expr $_count + 1`
3924 if test $_count -gt $_max; then
3926 lt_cv_path_SED=$_sed
3934 if test "X$SED" != "X"; then
3939 echo "$ac_t""$SED" 1>&6
3941 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3942 echo "configure:3943: checking whether ln -s works" >&5
3943 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3944 echo $ac_n "(cached) $ac_c" 1>&6
3947 if ln -s X conftestdata 2>/dev/null
3950 ac_cv_prog_LN_S="ln -s"
3955 LN_S="$ac_cv_prog_LN_S"
3956 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3957 echo "$ac_t""yes" 1>&6
3959 echo "$ac_t""no" 1>&6
3962 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3963 echo "configure:3964: checking how to recognise dependent libraries" >&5
3964 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3965 echo $ac_n "(cached) $ac_c" 1>&6
3967 lt_cv_file_magic_cmd='$MAGIC_CMD'
3968 lt_cv_file_magic_test_file=
3969 lt_cv_deplibs_check_method='unknown'
3970 # Need to set the preceding variable on all platforms that support
3971 # interlibrary dependencies.
3972 # 'none' -- dependencies not supported.
3973 # `unknown' -- same as none, but documents that we really don't know.
3974 # 'pass_all' -- all dependencies passed with no checks.
3975 # 'test_compile' -- check by making test program.
3976 # 'file_magic [[regex]]' -- check by looking for files in library path
3977 # which responds to the $file_magic_cmd with a given egrep regex.
3978 # If you have `file' or equivalent on your system and you're not sure
3979 # whether `pass_all' will *always* work, you probably want this one.
3983 lt_cv_deplibs_check_method=pass_all
3987 lt_cv_deplibs_check_method=pass_all
3991 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3992 lt_cv_file_magic_cmd='/usr/bin/file -L'
3993 lt_cv_file_magic_test_file=/shlib/libc.so
3996 cygwin* | mingw* | pw32*)
3997 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3998 lt_cv_file_magic_cmd='$OBJDUMP -f'
4001 darwin* | rhapsody*)
4002 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4003 lt_cv_file_magic_cmd='/usr/bin/file -L'
4005 rhapsody* | darwin1.[012])
4006 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4009 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4015 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4018 # Not sure whether the presence of OpenBSD here was a mistake.
4019 # Let's accept both of them until this is cleared up.
4020 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4021 lt_cv_file_magic_cmd=/usr/bin/file
4022 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4026 lt_cv_deplibs_check_method=pass_all
4031 lt_cv_deplibs_check_method=pass_all
4035 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4036 lt_cv_file_magic_cmd=/usr/bin/file
4037 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4040 irix5* | irix6* | nonstopux*)
4042 irix5* | nonstopux*)
4043 # this will be overridden with pass_all, but let us keep it just in case
4044 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4048 *-32|*"-32 ") libmagic=32-bit;;
4049 *-n32|*"-n32 ") libmagic=N32;;
4050 *-64|*"-64 ") libmagic=64-bit;;
4051 *) libmagic=never-match;;
4053 # this will be overridden with pass_all, but let us keep it just in case
4054 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4057 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4058 lt_cv_deplibs_check_method=pass_all
4061 # This must be Linux ELF.
4064 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
4065 lt_cv_deplibs_check_method=pass_all ;;
4067 # glibc up to 2.1.1 does not perform some relocations on ARM
4068 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4070 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4074 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4075 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4077 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4082 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4083 lt_cv_file_magic_cmd=/usr/bin/file
4084 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4088 lt_cv_file_magic_cmd=/usr/bin/file
4089 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4090 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4091 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4093 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4098 lt_cv_deplibs_check_method=pass_all
4101 osf3* | osf4* | osf5*)
4102 # this will be overridden with pass_all, but let us keep it just in case
4103 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4104 lt_cv_file_magic_test_file=/shlib/libc.so
4105 lt_cv_deplibs_check_method=pass_all
4109 lt_cv_deplibs_check_method=pass_all
4113 lt_cv_deplibs_check_method=pass_all
4114 lt_cv_file_magic_test_file=/lib/libc.so
4117 sysv5uw[78]* | sysv4*uw2*)
4118 lt_cv_deplibs_check_method=pass_all
4121 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4122 case $host_vendor in
4124 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]'
4125 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4128 lt_cv_deplibs_check_method=pass_all
4131 lt_cv_file_magic_cmd='/bin/file'
4132 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4135 lt_cv_file_magic_cmd='/bin/file'
4136 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4137 lt_cv_file_magic_test_file=/lib/libc.so
4140 lt_cv_deplibs_check_method=pass_all
4148 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
4149 file_magic_cmd=$lt_cv_file_magic_cmd
4150 deplibs_check_method=$lt_cv_deplibs_check_method
4152 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
4153 echo "configure:4154: checking for object suffix" >&5
4154 if eval "test \"\${ac_cv_objext+set}\" = set"; then
4155 echo $ac_n "(cached) $ac_c" 1>&6
4158 echo 'int i = 1;' > conftest.$ac_ext
4159 if { (eval echo configure:4160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4160 for ac_file in conftest.*; do
4163 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
4167 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
4172 echo "$ac_t""$ac_cv_objext" 1>&6
4173 OBJEXT=$ac_cv_objext
4174 ac_objext=$ac_cv_objext
4179 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
4180 echo "configure:4181: checking for executable suffix" >&5
4181 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
4182 echo $ac_n "(cached) $ac_c" 1>&6
4184 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
4188 echo 'int main () { return 0; }' > conftest.$ac_ext
4190 if { (eval echo configure:4191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
4191 for file in conftest.*; do
4193 *.c | *.C | *.o | *.obj | *.xcoff) ;;
4194 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
4198 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
4201 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4206 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4207 echo "$ac_t""${ac_cv_exeext}" 1>&6
4210 if test $host != $build; then
4211 ac_tool_prefix=${host_alias}-
4219 # Check for command to grab the raw symbol name followed by C symbol from nm.
4220 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
4221 echo "configure:4222: checking command to parse $NM output" >&5
4222 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
4223 echo $ac_n "(cached) $ac_c" 1>&6
4226 # These are sane defaults that work on at least a few old systems.
4227 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4229 # Character class describing NM global symbol codes.
4230 symcode='[BCDEGRST]'
4232 # Regexp to match symbols that can be accessed directly from C.
4233 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4235 # Transform the above into a raw symbol and a C symbol.
4236 symxfrm='\1 \2\3 \3'
4238 # Transform an extracted symbol line into a proper C declaration
4239 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4241 # Transform an extracted symbol line into symbol name and symbol address
4242 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'"
4244 # Define system-specific variables.
4249 cygwin* | mingw* | pw32*)
4250 symcode='[ABCDGISTW]'
4252 hpux*) # Its linker distinguishes data from code symbols
4253 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4254 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'"
4257 symcode='[BCDEGRST]'
4260 symcode='[BCDEGQRST]'
4270 # Handle CRLF in mingw tool chain
4274 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4278 # If we're using GNU nm, then use its standard symbol codes.
4279 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4280 symcode='[ABCDGISTW]'
4283 # Try without a prefix undercore, then with it.
4284 for ac_symprfx in "" "_"; do
4286 # Write the raw and C identifiers.
4287 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4289 # Check to see that the pipe works correctly.
4292 cat > conftest.$ac_ext <<EOF
4297 void nm_test_func(){}
4301 int main(){nm_test_var='a';nm_test_func();return(0);}
4304 if { (eval echo configure:4305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4305 # Now try to grab the symbols.
4307 if { (eval echo configure:4308: \"$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
4308 # Try sorting and uniquifying the output.
4309 if sort "$nlist" | uniq > "$nlist"T; then
4310 mv -f "$nlist"T "$nlist"
4315 # Make sure that we snagged all the symbols we need.
4316 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4317 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4318 cat <<EOF > conftest.$ac_ext
4324 # Now generate the symbol file.
4325 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4327 cat <<EOF >> conftest.$ac_ext
4328 #if defined (__STDC__) && __STDC__
4329 # define lt_ptr void *
4331 # define lt_ptr char *
4335 /* The mapping between symbol names and symbols. */
4340 lt_preloaded_symbols[] =
4343 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4344 cat <<\EOF >> conftest.$ac_ext
4352 # Now try linking the two files.
4353 mv conftest.$ac_objext conftstm.$ac_objext
4355 save_CFLAGS="$CFLAGS"
4356 LIBS="conftstm.$ac_objext"
4357 CFLAGS="$CFLAGS$no_builtin_flag"
4358 if { (eval echo configure:4359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4362 CFLAGS="$save_CFLAGS"
4364 echo "cannot find nm_test_func in $nlist" >&5
4367 echo "cannot find nm_test_var in $nlist" >&5
4370 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4373 echo "$progname: failed program was:" >&5
4374 cat conftest.$ac_ext >&5
4376 rm -f conftest* conftst*
4378 # Do not use the global_symbol_pipe unless it works.
4379 if test "$pipe_works" = yes; then
4382 lt_cv_sys_global_symbol_pipe=
4388 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4389 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4390 global_symbol_to_cdecl=
4391 global_symbol_to_c_name_address=
4393 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4394 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4396 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4398 echo "$ac_t""failed" 1>&6
4400 echo "$ac_t""ok" 1>&6
4403 for ac_hdr in dlfcn.h
4405 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4406 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4407 echo "configure:4408: checking for $ac_hdr" >&5
4408 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4409 echo $ac_n "(cached) $ac_c" 1>&6
4411 cat > conftest.$ac_ext <<EOF
4412 #line 4413 "configure"
4413 #include "confdefs.h"
4416 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4417 { (eval echo configure:4418: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4418 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4419 if test -z "$ac_err"; then
4421 eval "ac_cv_header_$ac_safe=yes"
4424 echo "configure: failed program was:" >&5
4425 cat conftest.$ac_ext >&5
4427 eval "ac_cv_header_$ac_safe=no"
4431 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4432 echo "$ac_t""yes" 1>&6
4433 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4434 cat >> confdefs.h <<EOF
4435 #define $ac_tr_hdr 1
4439 echo "$ac_t""no" 1>&6
4448 # Only perform the check for file, if the check method requires it
4449 case $deplibs_check_method in
4451 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4452 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4453 echo "configure:4454: checking for ${ac_tool_prefix}file" >&5
4454 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4455 echo $ac_n "(cached) $ac_c" 1>&6
4459 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4462 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4465 ac_save_MAGIC_CMD="$MAGIC_CMD"
4466 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4467 ac_dummy="/usr/bin:$PATH"
4468 for ac_dir in $ac_dummy; do
4469 test -z "$ac_dir" && ac_dir=.
4470 if test -f $ac_dir/${ac_tool_prefix}file; then
4471 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4472 if test -n "$file_magic_test_file"; then
4473 case $deplibs_check_method in
4475 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4476 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4477 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4478 egrep "$file_magic_regex" > /dev/null; then
4483 *** Warning: the command libtool uses to detect shared libraries,
4484 *** $file_magic_cmd, produces output that libtool cannot recognize.
4485 *** The result is that libtool may fail to recognize shared libraries
4486 *** as such. This will affect the creation of libtool libraries that
4487 *** depend on shared libraries, but programs linked with such libtool
4488 *** libraries will work regardless of this problem. Nevertheless, you
4489 *** may want to report the problem to your system manager and/or to
4490 *** bug-libtool@gnu.org
4500 MAGIC_CMD="$ac_save_MAGIC_CMD"
4505 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4506 if test -n "$MAGIC_CMD"; then
4507 echo "$ac_t""$MAGIC_CMD" 1>&6
4509 echo "$ac_t""no" 1>&6
4512 if test -z "$lt_cv_path_MAGIC_CMD"; then
4513 if test -n "$ac_tool_prefix"; then
4514 echo $ac_n "checking for file""... $ac_c" 1>&6
4515 echo "configure:4516: checking for file" >&5
4516 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4517 echo $ac_n "(cached) $ac_c" 1>&6
4521 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4524 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4527 ac_save_MAGIC_CMD="$MAGIC_CMD"
4528 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4529 ac_dummy="/usr/bin:$PATH"
4530 for ac_dir in $ac_dummy; do
4531 test -z "$ac_dir" && ac_dir=.
4532 if test -f $ac_dir/file; then
4533 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4534 if test -n "$file_magic_test_file"; then
4535 case $deplibs_check_method in
4537 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4538 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4539 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4540 egrep "$file_magic_regex" > /dev/null; then
4545 *** Warning: the command libtool uses to detect shared libraries,
4546 *** $file_magic_cmd, produces output that libtool cannot recognize.
4547 *** The result is that libtool may fail to recognize shared libraries
4548 *** as such. This will affect the creation of libtool libraries that
4549 *** depend on shared libraries, but programs linked with such libtool
4550 *** libraries will work regardless of this problem. Nevertheless, you
4551 *** may want to report the problem to your system manager and/or to
4552 *** bug-libtool@gnu.org
4562 MAGIC_CMD="$ac_save_MAGIC_CMD"
4567 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4568 if test -n "$MAGIC_CMD"; then
4569 echo "$ac_t""$MAGIC_CMD" 1>&6
4571 echo "$ac_t""no" 1>&6
4583 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4584 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4585 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4586 echo "configure:4587: checking for $ac_word" >&5
4587 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4588 echo $ac_n "(cached) $ac_c" 1>&6
4590 if test -n "$RANLIB"; then
4591 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4593 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4595 for ac_dir in $ac_dummy; do
4596 test -z "$ac_dir" && ac_dir=.
4597 if test -f $ac_dir/$ac_word; then
4598 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4605 RANLIB="$ac_cv_prog_RANLIB"
4606 if test -n "$RANLIB"; then
4607 echo "$ac_t""$RANLIB" 1>&6
4609 echo "$ac_t""no" 1>&6
4613 if test -z "$ac_cv_prog_RANLIB"; then
4614 if test -n "$ac_tool_prefix"; then
4615 # Extract the first word of "ranlib", so it can be a program name with args.
4616 set dummy ranlib; ac_word=$2
4617 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4618 echo "configure:4619: checking for $ac_word" >&5
4619 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4620 echo $ac_n "(cached) $ac_c" 1>&6
4622 if test -n "$RANLIB"; then
4623 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4625 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4627 for ac_dir in $ac_dummy; do
4628 test -z "$ac_dir" && ac_dir=.
4629 if test -f $ac_dir/$ac_word; then
4630 ac_cv_prog_RANLIB="ranlib"
4635 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4638 RANLIB="$ac_cv_prog_RANLIB"
4639 if test -n "$RANLIB"; then
4640 echo "$ac_t""$RANLIB" 1>&6
4642 echo "$ac_t""no" 1>&6
4650 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4651 set dummy ${ac_tool_prefix}strip; ac_word=$2
4652 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4653 echo "configure:4654: checking for $ac_word" >&5
4654 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4655 echo $ac_n "(cached) $ac_c" 1>&6
4657 if test -n "$STRIP"; then
4658 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4660 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4662 for ac_dir in $ac_dummy; do
4663 test -z "$ac_dir" && ac_dir=.
4664 if test -f $ac_dir/$ac_word; then
4665 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4672 STRIP="$ac_cv_prog_STRIP"
4673 if test -n "$STRIP"; then
4674 echo "$ac_t""$STRIP" 1>&6
4676 echo "$ac_t""no" 1>&6
4680 if test -z "$ac_cv_prog_STRIP"; then
4681 if test -n "$ac_tool_prefix"; then
4682 # Extract the first word of "strip", so it can be a program name with args.
4683 set dummy strip; ac_word=$2
4684 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4685 echo "configure:4686: checking for $ac_word" >&5
4686 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4687 echo $ac_n "(cached) $ac_c" 1>&6
4689 if test -n "$STRIP"; then
4690 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4692 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4694 for ac_dir in $ac_dummy; do
4695 test -z "$ac_dir" && ac_dir=.
4696 if test -f $ac_dir/$ac_word; then
4697 ac_cv_prog_STRIP="strip"
4702 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4705 STRIP="$ac_cv_prog_STRIP"
4706 if test -n "$STRIP"; then
4707 echo "$ac_t""$STRIP" 1>&6
4709 echo "$ac_t""no" 1>&6
4719 enable_win32_dll=yes
4721 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4722 if test "${enable_libtool_lock+set}" = set; then
4723 enableval="$enable_libtool_lock"
4727 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4729 # Some flags need to be propagated to the compiler or linker for good
4733 # Find out which ABI we are using.
4734 echo '#line 4735 "configure"' > conftest.$ac_ext
4735 if { (eval echo configure:4736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4736 case `/usr/bin/file conftest.$ac_objext` in
4752 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4753 SAVE_CFLAGS="$CFLAGS"
4754 CFLAGS="$CFLAGS -belf"
4755 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4756 echo "configure:4757: checking whether the C compiler needs -belf" >&5
4757 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4758 echo $ac_n "(cached) $ac_c" 1>&6
4762 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4763 ac_cpp='$CPP $CPPFLAGS'
4764 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4765 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4766 cross_compiling=$ac_cv_prog_cc_cross
4768 cat > conftest.$ac_ext <<EOF
4769 #line 4770 "configure"
4770 #include "confdefs.h"
4776 if { (eval echo configure:4777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4778 lt_cv_cc_needs_belf=yes
4780 echo "configure: failed program was:" >&5
4781 cat conftest.$ac_ext >&5
4783 lt_cv_cc_needs_belf=no
4787 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4788 ac_cpp='$CPP $CPPFLAGS'
4789 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4790 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4791 cross_compiling=$ac_cv_prog_cc_cross
4795 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4796 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4797 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4798 CFLAGS="$SAVE_CFLAGS"
4802 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4803 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4804 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4805 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4806 echo "configure:4807: checking for $ac_word" >&5
4807 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4808 echo $ac_n "(cached) $ac_c" 1>&6
4810 if test -n "$DLLTOOL"; then
4811 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4815 for ac_dir in $ac_dummy; do
4816 test -z "$ac_dir" && ac_dir=.
4817 if test -f $ac_dir/$ac_word; then
4818 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4825 DLLTOOL="$ac_cv_prog_DLLTOOL"
4826 if test -n "$DLLTOOL"; then
4827 echo "$ac_t""$DLLTOOL" 1>&6
4829 echo "$ac_t""no" 1>&6
4833 if test -z "$ac_cv_prog_DLLTOOL"; then
4834 if test -n "$ac_tool_prefix"; then
4835 # Extract the first word of "dlltool", so it can be a program name with args.
4836 set dummy dlltool; ac_word=$2
4837 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4838 echo "configure:4839: checking for $ac_word" >&5
4839 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4840 echo $ac_n "(cached) $ac_c" 1>&6
4842 if test -n "$DLLTOOL"; then
4843 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4845 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4847 for ac_dir in $ac_dummy; do
4848 test -z "$ac_dir" && ac_dir=.
4849 if test -f $ac_dir/$ac_word; then
4850 ac_cv_prog_DLLTOOL="dlltool"
4855 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4858 DLLTOOL="$ac_cv_prog_DLLTOOL"
4859 if test -n "$DLLTOOL"; then
4860 echo "$ac_t""$DLLTOOL" 1>&6
4862 echo "$ac_t""no" 1>&6
4870 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4871 set dummy ${ac_tool_prefix}as; ac_word=$2
4872 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4873 echo "configure:4874: checking for $ac_word" >&5
4874 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4875 echo $ac_n "(cached) $ac_c" 1>&6
4877 if test -n "$AS"; then
4878 ac_cv_prog_AS="$AS" # Let the user override the test.
4880 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4882 for ac_dir in $ac_dummy; do
4883 test -z "$ac_dir" && ac_dir=.
4884 if test -f $ac_dir/$ac_word; then
4885 ac_cv_prog_AS="${ac_tool_prefix}as"
4893 if test -n "$AS"; then
4894 echo "$ac_t""$AS" 1>&6
4896 echo "$ac_t""no" 1>&6
4900 if test -z "$ac_cv_prog_AS"; then
4901 if test -n "$ac_tool_prefix"; then
4902 # Extract the first word of "as", so it can be a program name with args.
4903 set dummy as; ac_word=$2
4904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4905 echo "configure:4906: checking for $ac_word" >&5
4906 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4907 echo $ac_n "(cached) $ac_c" 1>&6
4909 if test -n "$AS"; then
4910 ac_cv_prog_AS="$AS" # Let the user override the test.
4912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4914 for ac_dir in $ac_dummy; do
4915 test -z "$ac_dir" && ac_dir=.
4916 if test -f $ac_dir/$ac_word; then
4922 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4926 if test -n "$AS"; then
4927 echo "$ac_t""$AS" 1>&6
4929 echo "$ac_t""no" 1>&6
4937 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4938 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4939 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4940 echo "configure:4941: checking for $ac_word" >&5
4941 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4942 echo $ac_n "(cached) $ac_c" 1>&6
4944 if test -n "$OBJDUMP"; then
4945 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4947 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4949 for ac_dir in $ac_dummy; do
4950 test -z "$ac_dir" && ac_dir=.
4951 if test -f $ac_dir/$ac_word; then
4952 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4959 OBJDUMP="$ac_cv_prog_OBJDUMP"
4960 if test -n "$OBJDUMP"; then
4961 echo "$ac_t""$OBJDUMP" 1>&6
4963 echo "$ac_t""no" 1>&6
4967 if test -z "$ac_cv_prog_OBJDUMP"; then
4968 if test -n "$ac_tool_prefix"; then
4969 # Extract the first word of "objdump", so it can be a program name with args.
4970 set dummy objdump; ac_word=$2
4971 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4972 echo "configure:4973: checking for $ac_word" >&5
4973 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4974 echo $ac_n "(cached) $ac_c" 1>&6
4976 if test -n "$OBJDUMP"; then
4977 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4979 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4981 for ac_dir in $ac_dummy; do
4982 test -z "$ac_dir" && ac_dir=.
4983 if test -f $ac_dir/$ac_word; then
4984 ac_cv_prog_OBJDUMP="objdump"
4989 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4992 OBJDUMP="$ac_cv_prog_OBJDUMP"
4993 if test -n "$OBJDUMP"; then
4994 echo "$ac_t""$OBJDUMP" 1>&6
4996 echo "$ac_t""no" 1>&6
5005 # recent cygwin and mingw systems supply a stub DllMain which the user
5006 # can override, but on older systems we have to supply one
5007 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
5008 echo "configure:5009: checking if libtool should supply DllMain function" >&5
5009 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
5010 echo $ac_n "(cached) $ac_c" 1>&6
5012 cat > conftest.$ac_ext <<EOF
5013 #line 5014 "configure"
5014 #include "confdefs.h"
5017 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
5021 if { (eval echo configure:5022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5023 lt_cv_need_dllmain=no
5025 echo "configure: failed program was:" >&5
5026 cat conftest.$ac_ext >&5
5028 lt_cv_need_dllmain=yes
5033 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
5036 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
5037 # old mingw systems require "-dll" to link a DLL, while more recent ones
5039 SAVE_CFLAGS="$CFLAGS"
5040 CFLAGS="$CFLAGS -mdll"
5041 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
5042 echo "configure:5043: checking how to link DLLs" >&5
5043 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
5044 echo $ac_n "(cached) $ac_c" 1>&6
5046 cat > conftest.$ac_ext <<EOF
5047 #line 5048 "configure"
5048 #include "confdefs.h"
5054 if { (eval echo configure:5055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5056 lt_cv_cc_dll_switch=-mdll
5058 echo "configure: failed program was:" >&5
5059 cat conftest.$ac_ext >&5
5061 lt_cv_cc_dll_switch=-dll
5066 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
5067 CFLAGS="$SAVE_CFLAGS" ;;
5068 *-*-cygwin* | *-*-pw32*)
5069 # cygwin systems need to pass --dll to the linker, and not link
5070 # crt.o which will require a WinMain@16 definition.
5071 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
5077 # Sed substitution that helps us do robust quoting. It backslashifies
5078 # metacharacters that are still active within double-quoted strings.
5079 Xsed='sed -e s/^X//'
5080 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5082 # Same as above, but do not quote variable references.
5083 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5085 # Sed substitution to delay expansion of an escaped shell variable in a
5086 # double_quote_subst'ed string.
5087 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5093 default_ofile=libtool
5094 can_build_shared=yes
5096 # All known linkers require a `.a' archive for static linking (except M$VC,
5097 # which needs '.lib').
5099 ltmain="$ac_aux_dir/ltmain.sh"
5100 ofile="$default_ofile"
5101 with_gnu_ld="$lt_cv_prog_gnu_ld"
5102 need_locks="$enable_libtool_lock"
5105 old_CFLAGS="$CFLAGS"
5107 # Set sane defaults for various variables
5108 test -z "$AR" && AR=ar
5109 test -z "$AR_FLAGS" && AR_FLAGS=cru
5110 test -z "$AS" && AS=as
5111 test -z "$CC" && CC=cc
5112 test -z "$DLLTOOL" && DLLTOOL=dlltool
5113 test -z "$LD" && LD=ld
5114 test -z "$LN_S" && LN_S="ln -s"
5115 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5116 test -z "$NM" && NM=nm
5117 test -z "$OBJDUMP" && OBJDUMP=objdump
5118 test -z "$RANLIB" && RANLIB=:
5119 test -z "$STRIP" && STRIP=:
5120 test -z "$ac_objext" && ac_objext=o
5122 if test x"$host" != x"$build"; then
5123 ac_tool_prefix=${host_alias}-
5128 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5131 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5136 # AIX sometimes has problems with the GCC collect2 program. For some
5137 # reason, if we set the COLLECT_NAMES environment variable, the problems
5138 # vanish in a puff of smoke.
5139 if test "X${COLLECT_NAMES+set}" != Xset; then
5141 export COLLECT_NAMES
5146 # Determine commands to create old-style static archives.
5147 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5148 old_postinstall_cmds='chmod 644 $oldlib'
5149 old_postuninstall_cmds=
5151 if test -n "$RANLIB"; then
5154 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5157 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5160 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5163 # Allow CC to be a program name with arguments.
5167 echo $ac_n "checking for objdir""... $ac_c" 1>&6
5168 echo "configure:5169: checking for objdir" >&5
5169 rm -f .libs 2>/dev/null
5170 mkdir .libs 2>/dev/null
5171 if test -d .libs; then
5174 # MS-DOS does not allow filenames that begin with a dot.
5177 rmdir .libs 2>/dev/null
5178 echo "$ac_t""$objdir" 1>&6
5181 # Check whether --with-pic or --without-pic was given.
5182 if test "${with_pic+set}" = set; then
5189 test -z "$pic_mode" && pic_mode=default
5191 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5192 # in isolation, and that seeing it set (from the cache) indicates that
5193 # the associated values are set (in the cache) correctly too.
5194 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
5195 echo "configure:5196: checking for $compiler option to produce PIC" >&5
5196 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
5197 echo $ac_n "(cached) $ac_c" 1>&6
5200 lt_cv_prog_cc_shlib=
5202 lt_cv_prog_cc_static=
5203 lt_cv_prog_cc_no_builtin=
5204 lt_cv_prog_cc_can_build_shared=$can_build_shared
5206 if test "$GCC" = yes; then
5207 lt_cv_prog_cc_wl='-Wl,'
5208 lt_cv_prog_cc_static='-static'
5212 # Below there is a dirty hack to force normal static linking with -ldl
5213 # The problem is because libdl dynamically linked with both libc and
5214 # libC (AIX C++ library), which obviously doesn't included in libraries
5215 # list by gcc. This cause undefined symbols with -static flags.
5216 # This hack allows C programs to be linked with "-static -ldl", but
5217 # not sure about C++ programs.
5218 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5221 # FIXME: we need at least 68020 code to build shared libraries, but
5222 # adding the `-m68020' flag to GCC prevents building anything better,
5224 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5226 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5227 # PIC is the default for these OSes.
5229 darwin* | rhapsody*)
5230 # PIC is the default on this platform
5231 # Common symbols not allowed in MH_DYLIB files
5232 lt_cv_prog_cc_pic='-fno-common'
5234 cygwin* | mingw* | pw32* | os2*)
5235 # This hack is so that the source file can tell whether it is being
5236 # built for inclusion in a dll (and should export symbols for example).
5237 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5240 if test -d /usr/nec; then
5241 lt_cv_prog_cc_pic=-Kconform_pic
5245 lt_cv_prog_cc_pic='-fPIC'
5249 # PORTME Check for PIC flags for the system compiler.
5251 aix3* | aix4* | aix5*)
5252 lt_cv_prog_cc_wl='-Wl,'
5253 # All AIX code is PIC.
5254 if test "$host_cpu" = ia64; then
5255 # AIX 5 now supports IA64 processor
5256 lt_cv_prog_cc_static='-Bstatic'
5258 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5262 hpux9* | hpux10* | hpux11*)
5263 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5264 lt_cv_prog_cc_wl='-Wl,'
5265 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5266 lt_cv_prog_cc_pic='+Z'
5269 irix5* | irix6* | nonstopux*)
5270 lt_cv_prog_cc_wl='-Wl,'
5271 lt_cv_prog_cc_static='-non_shared'
5272 # PIC (with -KPIC) is the default.
5275 cygwin* | mingw* | pw32* | os2*)
5276 # This hack is so that the source file can tell whether it is being
5277 # built for inclusion in a dll (and should export symbols for example).
5278 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5282 lt_cv_prog_cc_pic='-KPIC'
5283 lt_cv_prog_cc_static='-Bstatic'
5287 # XPLINK code is PIC by default
5290 osf3* | osf4* | osf5*)
5291 # All OSF/1 code is PIC.
5292 lt_cv_prog_cc_wl='-Wl,'
5293 lt_cv_prog_cc_static='-non_shared'
5297 lt_cv_prog_cc_pic='-Kpic'
5298 lt_cv_prog_cc_static='-dn'
5299 lt_cv_prog_cc_shlib='-belf'
5303 lt_cv_prog_cc_pic='-KPIC'
5304 lt_cv_prog_cc_static='-Bstatic'
5305 lt_cv_prog_cc_wl='-Wl,'
5309 lt_cv_prog_cc_pic='-PIC'
5310 lt_cv_prog_cc_static='-Bstatic'
5311 lt_cv_prog_cc_wl='-Qoption ld '
5314 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5315 lt_cv_prog_cc_pic='-KPIC'
5316 lt_cv_prog_cc_static='-Bstatic'
5317 lt_cv_prog_cc_wl='-Wl,'
5321 lt_cv_prog_cc_pic='-pic'
5322 lt_cv_prog_cc_static='-Bstatic'
5326 if test -d /usr/nec ;then
5327 lt_cv_prog_cc_pic='-Kconform_pic'
5328 lt_cv_prog_cc_static='-Bstatic'
5333 lt_cv_prog_cc_can_build_shared=no
5340 if test -z "$lt_cv_prog_cc_pic"; then
5341 echo "$ac_t""none" 1>&6
5343 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5345 # Check to make sure the pic_flag actually works.
5346 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5347 echo "configure:5348: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5348 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5349 echo $ac_n "(cached) $ac_c" 1>&6
5351 save_CFLAGS="$CFLAGS"
5352 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5353 cat > conftest.$ac_ext <<EOF
5354 #line 5355 "configure"
5355 #include "confdefs.h"
5361 if { (eval echo configure:5362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5364 hpux9* | hpux10* | hpux11*)
5365 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5366 # they create non-PIC objects. So, if there were any warnings, we
5367 # assume that PIC is not supported.
5368 if test -s conftest.err; then
5369 lt_cv_prog_cc_pic_works=no
5371 lt_cv_prog_cc_pic_works=yes
5375 lt_cv_prog_cc_pic_works=yes
5380 echo "configure: failed program was:" >&5
5381 cat conftest.$ac_ext >&5
5383 lt_cv_prog_cc_pic_works=no
5387 CFLAGS="$save_CFLAGS"
5392 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5394 lt_cv_prog_cc_can_build_shared=no
5396 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5399 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5402 # Check for any special shared library compilation flags.
5403 if test -n "$lt_cv_prog_cc_shlib"; then
5404 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5405 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5407 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5408 lt_cv_prog_cc_can_build_shared=no
5412 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5413 echo "configure:5414: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5414 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5415 echo $ac_n "(cached) $ac_c" 1>&6
5417 lt_cv_prog_cc_static_works=no
5418 save_LDFLAGS="$LDFLAGS"
5419 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5420 cat > conftest.$ac_ext <<EOF
5421 #line 5422 "configure"
5422 #include "confdefs.h"
5428 if { (eval echo configure:5429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5430 lt_cv_prog_cc_static_works=yes
5432 echo "configure: failed program was:" >&5
5433 cat conftest.$ac_ext >&5
5436 LDFLAGS="$save_LDFLAGS"
5441 # Belt *and* braces to stop my trousers falling down:
5442 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5443 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5445 pic_flag="$lt_cv_prog_cc_pic"
5446 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5447 wl="$lt_cv_prog_cc_wl"
5448 link_static_flag="$lt_cv_prog_cc_static"
5449 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5450 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5453 # Check to see if options -o and -c are simultaneously supported by compiler
5454 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5455 echo "configure:5456: checking if $compiler supports -c -o file.$ac_objext" >&5
5456 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5457 echo $ac_n "(cached) $ac_c" 1>&6
5460 $rm -r conftest 2>/dev/null
5463 echo "int some_variable = 0;" > conftest.$ac_ext
5465 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5466 # that will create temporary files in the current directory regardless of
5467 # the output directory. Thus, making CWD read-only will cause this test
5468 # to fail, enabling locking or at least warning the user not to do parallel
5471 save_CFLAGS="$CFLAGS"
5472 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5474 if { (eval echo configure:5475: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5475 # The compiler can only warn and ignore the option if not recognized
5476 # So say no if there are warnings
5477 if test -s out/conftest.err; then
5478 lt_cv_compiler_c_o=no
5480 lt_cv_compiler_c_o=yes
5483 # Append any errors to the config.log.
5484 cat out/conftest.err 1>&5
5485 lt_cv_compiler_c_o=no
5487 CFLAGS="$save_CFLAGS"
5493 $rm -r conftest 2>/dev/null
5497 compiler_c_o=$lt_cv_compiler_c_o
5498 echo "$ac_t""$compiler_c_o" 1>&6
5500 if test x"$compiler_c_o" = x"yes"; then
5501 # Check to see if we can write to a .lo
5502 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5503 echo "configure:5504: checking if $compiler supports -c -o file.lo" >&5
5504 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5505 echo $ac_n "(cached) $ac_c" 1>&6
5508 lt_cv_compiler_o_lo=no
5509 save_CFLAGS="$CFLAGS"
5510 CFLAGS="$CFLAGS -c -o conftest.lo"
5511 save_objext="$ac_objext"
5513 cat > conftest.$ac_ext <<EOF
5514 #line 5515 "configure"
5515 #include "confdefs.h"
5518 int some_variable = 0;
5521 if { (eval echo configure:5522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5523 # The compiler can only warn and ignore the option if not recognized
5524 # So say no if there are warnings
5525 if test -s conftest.err; then
5526 lt_cv_compiler_o_lo=no
5528 lt_cv_compiler_o_lo=yes
5532 echo "configure: failed program was:" >&5
5533 cat conftest.$ac_ext >&5
5536 ac_objext="$save_objext"
5537 CFLAGS="$save_CFLAGS"
5541 compiler_o_lo=$lt_cv_compiler_o_lo
5542 echo "$ac_t""$compiler_o_lo" 1>&6
5547 # Check to see if we can do hard links to lock some files if needed
5548 hard_links="nottested"
5549 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5550 # do not overwrite the value of need_locks provided by the user
5551 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5552 echo "configure:5553: checking if we can lock with hard links" >&5
5555 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5557 ln conftest.a conftest.b 2>&5 || hard_links=no
5558 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5559 echo "$ac_t""$hard_links" 1>&6
5560 if test "$hard_links" = no; then
5561 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5568 if test "$GCC" = yes; then
5569 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5570 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5571 echo "configure:5572: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5572 echo "int some_variable = 0;" > conftest.$ac_ext
5573 save_CFLAGS="$CFLAGS"
5574 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5575 compiler_rtti_exceptions=no
5576 cat > conftest.$ac_ext <<EOF
5577 #line 5578 "configure"
5578 #include "confdefs.h"
5581 int some_variable = 0;
5584 if { (eval echo configure:5585: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5586 # The compiler can only warn and ignore the option if not recognized
5587 # So say no if there are warnings
5588 if test -s conftest.err; then
5589 compiler_rtti_exceptions=no
5591 compiler_rtti_exceptions=yes
5595 echo "configure: failed program was:" >&5
5596 cat conftest.$ac_ext >&5
5599 CFLAGS="$save_CFLAGS"
5600 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5602 if test "$compiler_rtti_exceptions" = "yes"; then
5603 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5605 no_builtin_flag=' -fno-builtin'
5609 # See if the linker supports building shared libraries.
5610 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5611 echo "configure:5612: checking whether the linker ($LD) supports shared libraries" >&5
5613 allow_undefined_flag=
5615 need_lib_prefix=unknown
5616 need_version=unknown
5617 # when you set need_version to no, make sure it does not cause -set_version
5618 # flags to be left without arguments
5620 archive_expsym_cmds=
5621 old_archive_from_new_cmds=
5622 old_archive_from_expsyms_cmds=
5623 export_dynamic_flag_spec=
5624 whole_archive_flag_spec=
5625 thread_safe_flag_spec=
5626 hardcode_into_libs=no
5627 hardcode_libdir_flag_spec=
5628 hardcode_libdir_separator=
5631 hardcode_shlibpath_var=unsupported
5633 link_all_deplibs=unknown
5634 always_export_symbols=no
5635 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5636 # include_expsyms should be a list of space-separated symbols to be *always*
5637 # included in the symbol list
5639 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5640 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5641 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5642 # as well as any symbol that contains `d'.
5643 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5644 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5645 # platforms (ab)use it in PIC code, but their linkers get confused if
5646 # the symbol is explicitly referenced. Since portable code cannot
5647 # rely on this symbol name, it's probably fine to never include it in
5648 # preloaded symbol tables.
5649 extract_expsyms_cmds=
5652 cygwin* | mingw* | pw32*)
5653 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5654 # When not using gcc, we currently assume that we are using
5655 # Microsoft Visual C++.
5656 if test "$GCC" != yes; then
5666 if test "$with_gnu_ld" = yes; then
5667 # If archive_cmds runs LD, not CC, wlarc should be empty
5670 # See if GNU ld supports shared libraries.
5672 aix3* | aix4* | aix5*)
5673 # On AIX, the GNU linker is very broken
5674 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5678 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5679 *** to be unable to reliably create shared libraries on AIX.
5680 *** Therefore, libtool is disabling shared libraries support. If you
5681 *** really care for shared libraries, you may want to modify your PATH
5682 *** so that a non-GNU linker is found, and then restart.
5688 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)'
5689 hardcode_libdir_flag_spec='-L$libdir'
5690 hardcode_minus_L=yes
5692 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5693 # that the semantics of dynamic libraries on AmigaOS, at least up
5694 # to version 4, is to share data among multiple programs linked
5695 # with the same dynamic library. Since this doesn't match the
5696 # behavior of shared libraries on other platforms, we can use
5702 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5703 allow_undefined_flag=unsupported
5704 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5705 # support --undefined. This deserves some investigation. FIXME
5706 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5712 cygwin* | mingw* | pw32*)
5713 # hardcode_libdir_flag_spec is actually meaningless, as there is
5714 # no search path for DLLs.
5715 hardcode_libdir_flag_spec='-L$libdir'
5716 allow_undefined_flag=unsupported
5717 always_export_symbols=yes
5719 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5720 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5721 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5722 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5723 else $CC -o impgen impgen.c ; fi)~
5724 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5726 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5728 # cygwin and mingw dlls have different entry points and sets of symbols
5730 # FIXME: what about values for MSVC?
5731 dll_entry=__cygwin_dll_entry@12
5732 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5736 dll_entry=_DllMainCRTStartup@12
5737 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5741 # mingw and cygwin differ, and it's simplest to just exclude the union
5742 # of the two symbol sets.
5743 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5745 # recent cygwin and mingw systems supply a stub DllMain which the user
5746 # can override, but on older systems we have to supply one (in ltdll.c)
5747 if test "x$lt_cv_need_dllmain" = "xyes"; then
5748 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5749 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~
5750 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5756 # Extract the symbol export list from an `--export-all' def file,
5757 # then regenerate the def file from the symbol export list, so that
5758 # the compiled dll only exports the symbol export list.
5759 # Be careful not to strip the DATA tag left be newer dlltools.
5760 export_symbols_cmds="$ltdll_cmds"'
5761 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5762 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5764 # If the export-symbols file already is a .def file (1st line
5765 # is EXPORTS), use it as is.
5766 # If DATA tags from a recent dlltool are present, honour them!
5767 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5768 cp $export_symbols $output_objdir/$soname-def;
5770 echo EXPORTS > $output_objdir/$soname-def;
5772 cat $export_symbols | while read symbol; do
5775 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5776 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5777 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5779 _lt_hint=`expr 1 + \$_lt_hint`;
5783 $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~
5784 $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~
5785 $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~
5786 $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~
5787 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5791 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5792 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5795 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5796 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5801 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5805 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5806 *** create shared libraries on Solaris systems. Therefore, libtool
5807 *** is disabling shared libraries support. We urge you to upgrade GNU
5808 *** binutils to release 2.9.1 or newer. Another option is to modify
5809 *** your PATH or compiler configuration so that the native linker is
5810 *** used, and then restart.
5813 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5815 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5822 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5825 hardcode_shlibpath_var=no
5829 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5830 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5831 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5838 if test "$ld_shlibs" = yes; then
5839 runpath_var=LD_RUN_PATH
5840 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5841 export_dynamic_flag_spec='${wl}--export-dynamic'
5843 cygwin* | mingw* | pw32*)
5844 # dlltool doesn't understand --whole-archive et. al.
5845 whole_archive_flag_spec=
5848 # ancient GNU ld didn't support --whole-archive et. al.
5849 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5850 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5852 whole_archive_flag_spec=
5858 # PORTME fill in a description of your system's linker (not GNU ld)
5861 allow_undefined_flag=unsupported
5862 always_export_symbols=yes
5863 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'
5864 # Note: this linker hardcodes the directories in LIBPATH if there
5865 # are no directories specified by -L.
5866 hardcode_minus_L=yes
5867 if test "$GCC" = yes && test -z "$link_static_flag"; then
5868 # Neither direct hardcoding nor static linking is supported with a
5870 hardcode_direct=unsupported
5875 if test "$host_cpu" = ia64; then
5876 # On IA64, the linker does run time linking by default, so we don't
5877 # have to do anything special.
5878 aix_use_runtimelinking=no
5879 exp_sym_flag='-Bexport'
5882 aix_use_runtimelinking=no
5884 # Test if we are trying to use run time linking or normal
5885 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5886 # need to do runtime linking.
5887 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5888 for ld_flag in $LDFLAGS; do
5891 aix_use_runtimelinking=yes
5898 exp_sym_flag='-bexport'
5899 no_entry_flag='-bnoentry'
5902 # When large executables or shared objects are built, AIX ld can
5903 # have problems creating the table of contents. If linking a library
5904 # or program results in "error TOC overflow" add -mminimal-toc to
5905 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5906 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5910 hardcode_libdir_separator=':'
5911 if test "$GCC" = yes; then
5912 case $host_os in aix4.[012]|aix4.[012].*)
5913 collect2name=`${CC} -print-prog-name=collect2`
5914 if test -f "$collect2name" && \
5915 strings "$collect2name" | grep resolve_lib_name >/dev/null
5917 # We have reworked collect2
5920 # We have old collect2
5921 hardcode_direct=unsupported
5922 # It fails to find uninstalled libraries when the uninstalled
5923 # path is not listed in the libpath. Setting hardcode_minus_L
5924 # to unsupported forces relinking
5925 hardcode_minus_L=yes
5926 hardcode_libdir_flag_spec='-L$libdir'
5927 hardcode_libdir_separator=
5931 shared_flag='-shared'
5934 if test "$host_cpu" = ia64; then
5935 shared_flag='${wl}-G'
5937 if test "$aix_use_runtimelinking" = yes; then
5938 shared_flag='${wl}-G'
5940 shared_flag='${wl}-bM:SRE'
5945 # It seems that -bexpall can do strange things, so it is better to
5946 # generate a list of symbols to export.
5947 always_export_symbols=yes
5948 if test "$aix_use_runtimelinking" = yes; then
5949 # Warning - without using the other runtime loading flags (-brtl),
5950 # -berok will link without error, but may produce a broken library.
5951 allow_undefined_flag='-berok'
5952 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5953 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"
5955 if test "$host_cpu" = ia64; then
5956 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5957 allow_undefined_flag="-z nodefs"
5958 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"
5960 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5961 # Warning - without using the other run time loading flags,
5962 # -berok will link without error, but may produce a broken library.
5963 allow_undefined_flag='${wl}-berok'
5964 # This is a bit strange, but is similar to how AIX traditionally builds
5965 # it's shared libraries.
5966 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'
5972 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)'
5973 hardcode_libdir_flag_spec='-L$libdir'
5974 hardcode_minus_L=yes
5975 # see comment about different semantics on the GNU ld section
5979 cygwin* | mingw* | pw32*)
5980 # When not using gcc, we currently assume that we are using
5981 # Microsoft Visual C++.
5982 # hardcode_libdir_flag_spec is actually meaningless, as there is
5983 # no search path for DLLs.
5984 hardcode_libdir_flag_spec=' '
5985 allow_undefined_flag=unsupported
5986 # Tell ltmain to make .lib files, not .a files.
5988 # FIXME: Setting linknames here is a bad hack.
5989 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5990 # The linker will automatically build a .lib file if we build a DLL.
5991 old_archive_from_new_cmds='true'
5992 # FIXME: Should let the user specify the lib program.
5993 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5994 fix_srcfile_path='`cygpath -w "$srcfile"`'
5997 darwin* | rhapsody*)
5999 rhapsody* | darwin1.[012])
6000 allow_undefined_flag='-undefined suppress'
6003 allow_undefined_flag='-flat_namespace -undefined suppress'
6006 # FIXME: Relying on posixy $() will cause problems for
6007 # cross-compilation, but unfortunately the echo tests do not
6008 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6009 # `"' quotes if we put them in here... so don't!
6010 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)'
6011 # We need to add '_' to the symbols in $export_symbols first
6012 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6014 hardcode_shlibpath_var=no
6015 whole_archive_flag_spec='-all_load $convenience'
6022 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6023 # support. Future versions do this automatically, but an explicit c++rt0.o
6024 # does not break anything, and helps significantly (at the cost of a little
6027 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6028 hardcode_libdir_flag_spec='-R$libdir'
6030 hardcode_shlibpath_var=no
6033 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6035 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6037 hardcode_minus_L=yes
6038 hardcode_shlibpath_var=no
6041 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6043 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6044 hardcode_libdir_flag_spec='-R$libdir'
6046 hardcode_shlibpath_var=no
6049 hpux9* | hpux10* | hpux11*)
6051 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' ;;
6052 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6054 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6055 hardcode_libdir_separator=:
6057 hardcode_minus_L=yes # Not in the search PATH, but as the default
6058 # location of the library.
6059 export_dynamic_flag_spec='${wl}-E'
6062 irix5* | irix6* | nonstopux*)
6063 if test "$GCC" = yes; then
6064 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'
6065 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6067 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'
6068 hardcode_libdir_flag_spec='-rpath $libdir'
6070 hardcode_libdir_separator=:
6071 link_all_deplibs=yes
6075 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6076 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6078 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6080 hardcode_libdir_flag_spec='-R$libdir'
6082 hardcode_shlibpath_var=no
6086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6088 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6089 hardcode_libdir_separator=:
6090 hardcode_shlibpath_var=no
6095 hardcode_shlibpath_var=no
6096 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6097 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6098 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6099 export_dynamic_flag_spec='${wl}-E'
6102 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6103 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6104 hardcode_libdir_flag_spec='-R$libdir'
6107 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6108 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6115 archive_cmds="\$CC -Wl,DLL \$libobjs \$deplibs \$compiler_flags -o \$lib &&
6116 cp \$linknames \$output_objdir && linknames=''"
6117 export_dynamic_flag_spec="-Wl,DLL"
6121 hardcode_libdir_flag_spec='-L$libdir'
6122 hardcode_minus_L=yes
6123 allow_undefined_flag=unsupported
6124 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'
6125 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6129 if test "$GCC" = yes; then
6130 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6131 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'
6133 allow_undefined_flag=' -expect_unresolved \*'
6134 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'
6136 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6137 hardcode_libdir_separator=:
6140 osf4* | osf5*) # as osf3* with the addition of -msym flag
6141 if test "$GCC" = yes; then
6142 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6143 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'
6144 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6146 allow_undefined_flag=' -expect_unresolved \*'
6147 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'
6148 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6149 $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'
6151 #Both c and cxx compiler support -rpath directly
6152 hardcode_libdir_flag_spec='-rpath $libdir'
6154 hardcode_libdir_separator=:
6158 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6159 hardcode_shlibpath_var=no
6160 runpath_var=LD_RUN_PATH
6161 hardcode_runpath_var=yes
6162 export_dynamic_flag_spec='${wl}-Bexport'
6166 # gcc --version < 3.0 without binutils cannot create self contained
6167 # shared libraries reliably, requiring libgcc.a to resolve some of
6168 # the object symbols generated in some cases. Libraries that use
6169 # assert need libgcc.a to resolve __eprintf, for example. Linking
6170 # a copy of libgcc.a into every shared library to guarantee resolving
6171 # such symbols causes other problems: According to Tim Van Holder
6172 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6173 # (to the application) exception stack for one thing.
6174 no_undefined_flag=' -z defs'
6175 if test "$GCC" = yes; then
6176 case `$CC --version 2>/dev/null` in
6180 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6181 *** create self contained shared libraries on Solaris systems, without
6182 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6183 *** -no-undefined support, which will at least allow you to build shared
6184 *** libraries. However, you may find that when you link such libraries
6185 *** into an application without using GCC, you have to manually add
6186 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6187 *** upgrade to a newer version of GCC. Another option is to rebuild your
6188 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6195 # $CC -shared without GNU ld will not create a library from C++
6196 # object files and a static libstdc++, better avoid it by now
6197 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6198 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6199 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6200 hardcode_libdir_flag_spec='-R$libdir'
6201 hardcode_shlibpath_var=no
6203 solaris2.[0-5] | solaris2.[0-5].*) ;;
6204 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6205 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6207 link_all_deplibs=yes
6211 if test "x$host_vendor" = xsequent; then
6212 # Use $CC to link under sequent, because it throws in some extra .o
6213 # files that make .init and .fini sections work.
6214 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6216 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6218 hardcode_libdir_flag_spec='-L$libdir'
6220 hardcode_minus_L=yes
6221 hardcode_shlibpath_var=no
6225 case $host_vendor in
6227 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6228 hardcode_direct=yes # is this really true???
6231 ## LD is ld it makes a PLAMLIB
6232 ## CC just makes a GrossModule.
6233 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6234 reload_cmds='$CC -r -o $output$reload_objs'
6238 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6239 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6242 runpath_var='LD_RUN_PATH'
6243 hardcode_shlibpath_var=no
6247 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6248 hardcode_shlibpath_var=no
6249 export_dynamic_flag_spec='-Bexport'
6253 no_undefined_flag=' -z text'
6254 # $CC -shared without GNU ld will not create a library from C++
6255 # object files and a static libstdc++, better avoid it by now
6256 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6257 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6258 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6259 hardcode_libdir_flag_spec=
6260 hardcode_shlibpath_var=no
6261 runpath_var='LD_RUN_PATH'
6265 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6266 hardcode_libdir_flag_spec='-L$libdir'
6267 hardcode_shlibpath_var=no
6271 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6272 hardcode_libdir_flag_spec='-L$libdir'
6273 hardcode_shlibpath_var=no
6277 if test -d /usr/nec; then
6278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6279 hardcode_shlibpath_var=no
6280 runpath_var=LD_RUN_PATH
6281 hardcode_runpath_var=yes
6287 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6290 hardcode_shlibpath_var=no
6291 hardcode_runpath_var=yes
6292 runpath_var=LD_RUN_PATH
6295 sysv5uw7* | unixware7*)
6296 no_undefined_flag='${wl}-z ${wl}text'
6297 if test "$GCC" = yes; then
6298 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6300 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6302 runpath_var='LD_RUN_PATH'
6303 hardcode_shlibpath_var=no
6311 echo "$ac_t""$ld_shlibs" 1>&6
6312 test "$ld_shlibs" = no && can_build_shared=no
6314 # Check hardcoding attributes.
6315 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6316 echo "configure:6317: checking how to hardcode library paths into programs" >&5
6318 if test -n "$hardcode_libdir_flag_spec" || \
6319 test -n "$runpath_var"; then
6321 # We can hardcode non-existant directories.
6322 if test "$hardcode_direct" != no &&
6323 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6324 # have to relink, otherwise we might link with an installed library
6325 # when we should be linking with a yet-to-be-installed one
6326 ## test "$hardcode_shlibpath_var" != no &&
6327 test "$hardcode_minus_L" != no; then
6328 # Linking always hardcodes the temporary library directory.
6329 hardcode_action=relink
6331 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6332 hardcode_action=immediate
6335 # We cannot hardcode anything, or else we can only hardcode existing
6337 hardcode_action=unsupported
6339 echo "$ac_t""$hardcode_action" 1>&6
6343 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6344 echo "configure:6345: checking whether stripping libraries is possible" >&5
6345 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6346 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6347 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6348 echo "$ac_t""yes" 1>&6
6350 echo "$ac_t""no" 1>&6
6353 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6354 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6356 # PORTME Fill in your ld.so characteristics
6357 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6358 echo "configure:6359: checking dynamic linker characteristics" >&5
6360 libname_spec='lib$name'
6367 shlibpath_overrides_runpath=unknown
6369 dynamic_linker="$host_os ld.so"
6370 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6371 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6376 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6377 shlibpath_var=LIBPATH
6379 # AIX has no versioning support, so we append a major version to the name.
6380 soname_spec='${libname}${release}.so$major'
6387 hardcode_into_libs=yes
6388 if test "$host_cpu" = ia64; then
6389 # AIX 5 supports IA64
6390 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6391 shlibpath_var=LD_LIBRARY_PATH
6393 # With GCC up to 2.95.x, collect2 would create an import file
6394 # for dependence libraries. The import file would start with
6395 # the line `#! .'. This would cause the generated library to
6396 # depend on `.', always an invalid library. This was fixed in
6397 # development snapshots of GCC prior to 3.0.
6399 aix4 | aix4.[01] | aix4.[01].*)
6400 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6402 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6409 # AIX (on Power*) has no versioning support, so currently we can
6410 # not hardcode correct soname into executable. Probably we can
6411 # add versioning support to collect2, so additional links can
6412 # be useful in future.
6413 if test "$aix_use_runtimelinking" = yes; then
6414 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6415 # instead of lib<name>.a to let people know that these are not
6416 # typical AIX shared libraries.
6417 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6419 # We preserve .a as extension for shared libraries through AIX4.2
6420 # and later when we are not doing run time linking.
6421 library_names_spec='${libname}${release}.a $libname.a'
6422 soname_spec='${libname}${release}.so$major'
6424 shlibpath_var=LIBPATH
6426 hardcode_into_libs=yes
6430 library_names_spec='$libname.ixlibrary $libname.a'
6431 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6432 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'
6436 library_names_spec='${libname}.so'
6437 dynamic_linker="$host_os ld.so"
6438 shlibpath_var=LIBRARY_PATH
6444 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6445 soname_spec='${libname}${release}.so$major'
6446 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6447 shlibpath_var=LD_LIBRARY_PATH
6448 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6449 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6450 export_dynamic_flag_spec=-rdynamic
6451 # the default ld.so.conf also contains /usr/contrib/lib and
6452 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6453 # libtool to hard-code these into programs
6456 cygwin* | mingw* | pw32*)
6457 version_type=windows
6460 case $GCC,$host_os in
6462 library_names_spec='$libname.dll.a'
6463 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6464 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6465 dldir=$destdir/`dirname \$dlpath`~
6466 test -d \$dldir || mkdir -p \$dldir~
6467 $install_prog .libs/$dlname \$dldir/$dlname'
6468 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6469 dlpath=$dir/\$dldll~
6473 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6474 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6477 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6480 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6483 dynamic_linker='Win32 ld.exe'
6484 # FIXME: first we should search . and the directory the executable is in
6488 darwin* | rhapsody*)
6489 dynamic_linker="$host_os dyld"
6493 # FIXME: Relying on posixy $() will cause problems for
6494 # cross-compilation, but unfortunately the echo tests do not
6495 # yet detect zsh echo's removal of \ escapes.
6496 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)'
6497 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6498 shlibpath_overrides_runpath=yes
6499 shlibpath_var=DYLD_LIBRARY_PATH
6507 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6508 version_type=freebsd-$objformat
6509 case $version_type in
6511 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6516 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6520 shlibpath_var=LD_LIBRARY_PATH
6523 shlibpath_overrides_runpath=yes
6526 shlibpath_overrides_runpath=no
6527 hardcode_into_libs=yes
6536 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6537 soname_spec='${libname}${release}.so$major'
6538 shlibpath_var=LD_LIBRARY_PATH
6539 hardcode_into_libs=yes
6542 hpux9* | hpux10* | hpux11*)
6543 # Give a soname corresponding to the major version so that dld.sl refuses to
6544 # link against other versions.
6545 dynamic_linker="$host_os dld.sl"
6549 shlibpath_var=SHLIB_PATH
6550 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6551 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6552 soname_spec='${libname}${release}.sl$major'
6553 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6554 postinstall_cmds='chmod 555 $lib'
6557 irix5* | irix6* | nonstopux*)
6559 nonstopux*) version_type=nonstopux ;;
6560 *) version_type=irix ;;
6564 soname_spec='${libname}${release}.so$major'
6565 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6567 irix5* | nonstopux*)
6571 case $LD in # libtool.m4 will add one of these switches to LD
6572 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6573 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6574 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6575 *) libsuff= shlibsuff= libmagic=never-match;;
6579 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6580 shlibpath_overrides_runpath=no
6581 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6582 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6585 # No shared lib support for Linux oldld, aout, or coff.
6586 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6590 # This must be Linux ELF.
6595 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6596 soname_spec='${libname}${release}.so$major'
6597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6598 shlibpath_var=LD_LIBRARY_PATH
6599 shlibpath_overrides_runpath=no
6600 # This implies no fast_install, which is unacceptable.
6601 # Some rework will be needed to allow for fast_install
6602 # before this can be enabled.
6603 hardcode_into_libs=yes
6605 # We used to test for /lib/ld.so.1 and disable shared libraries on
6606 # powerpc, because MkLinux only supported shared libraries with the
6607 # GNU dynamic linker. Since this was broken with cross compilers,
6608 # most powerpc-linux boxes support dynamic linking these days and
6609 # people can always --disable-shared, the test was removed, and we
6610 # assume the GNU/Linux dynamic linker is in use.
6611 dynamic_linker='GNU/Linux ld.so'
6618 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6619 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6620 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6621 dynamic_linker='NetBSD (a.out) ld.so'
6623 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6624 soname_spec='${libname}${release}.so$major'
6625 dynamic_linker='NetBSD ld.elf_so'
6627 shlibpath_var=LD_LIBRARY_PATH
6628 shlibpath_overrides_runpath=yes
6629 hardcode_into_libs=yes
6634 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6635 shlibpath_var=LD_LIBRARY_PATH
6636 shlibpath_overrides_runpath=yes
6643 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6645 openbsd2.[89] | openbsd2.[89].*)
6646 shlibpath_overrides_runpath=no
6649 shlibpath_overrides_runpath=yes
6653 shlibpath_overrides_runpath=yes
6655 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6657 shlibpath_var=LD_LIBRARY_PATH
6663 shlibpath_overrides_runpath=yes
6664 shlibpath_var=LIBPATH
6665 postinstall_cmds="rm \$destdir/\$linkname; cp \$linkname \$destdir; chmod a+x \$lib"
6666 # the library's exports are in libname.x; this is the file that must
6667 # actually be linked with to use a DLL.
6668 library_names_spec="\${libname}\${release}.so\$versuffix \${libname}.x"
6672 libname_spec='$name'
6674 library_names_spec='$libname.dll $libname.a'
6675 dynamic_linker='OS/2 ld.exe'
6676 shlibpath_var=LIBPATH
6679 osf3* | osf4* | osf5*)
6682 soname_spec='${libname}${release}.so$major'
6683 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6684 shlibpath_var=LD_LIBRARY_PATH
6685 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6686 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6687 hardcode_into_libs=yes
6692 soname_spec='${libname}${release}.so$major'
6693 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6694 shlibpath_var=LD_LIBRARY_PATH
6701 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6702 soname_spec='${libname}${release}.so$major'
6703 shlibpath_var=LD_LIBRARY_PATH
6704 shlibpath_overrides_runpath=yes
6705 hardcode_into_libs=yes
6706 # ldd complains unless libraries are executable
6707 postinstall_cmds='chmod +x $lib'
6712 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6713 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6714 shlibpath_var=LD_LIBRARY_PATH
6715 shlibpath_overrides_runpath=yes
6716 if test "$with_gnu_ld" = yes; then
6722 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6724 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6725 soname_spec='${libname}${release}.so$major'
6726 shlibpath_var=LD_LIBRARY_PATH
6727 case $host_vendor in
6729 shlibpath_overrides_runpath=no
6731 export_dynamic_flag_spec='${wl}-Blargedynsym'
6732 runpath_var=LD_RUN_PATH
6740 shlibpath_overrides_runpath=no
6741 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6748 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6749 soname_spec='${libname}${release}.so$major'
6750 shlibpath_var=LD_LIBRARY_PATH
6757 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6758 soname_spec='${libname}${release}.so$major'
6759 shlibpath_var=LD_LIBRARY_PATH
6763 if test -d /usr/nec ;then
6765 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6766 soname_spec='$libname.so.$major'
6767 shlibpath_var=LD_LIBRARY_PATH
6775 echo "$ac_t""$dynamic_linker" 1>&6
6776 test "$dynamic_linker" = no && can_build_shared=no
6778 # Report the final consequences.
6779 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6780 echo "configure:6781: checking if libtool supports shared libraries" >&5
6781 echo "$ac_t""$can_build_shared" 1>&6
6783 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6784 echo "configure:6785: checking whether to build shared libraries" >&5
6785 test "$can_build_shared" = "no" && enable_shared=no
6787 # On AIX, shared libraries and static libraries use the same namespace, and
6788 # are all built from PIC.
6791 test "$enable_shared" = yes && enable_static=no
6792 if test -n "$RANLIB"; then
6793 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6794 postinstall_cmds='$RANLIB $lib'
6799 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6800 test "$enable_shared" = yes && enable_static=no
6804 echo "$ac_t""$enable_shared" 1>&6
6806 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6807 echo "configure:6808: checking whether to build static libraries" >&5
6808 # Make sure either enable_shared or enable_static is yes.
6809 test "$enable_shared" = yes || enable_static=yes
6810 echo "$ac_t""$enable_static" 1>&6
6812 if test "$hardcode_action" = relink; then
6813 # Fast installation is not supported
6814 enable_fast_install=no
6815 elif test "$shlibpath_overrides_runpath" = yes ||
6816 test "$enable_shared" = no; then
6817 # Fast installation is not necessary
6818 enable_fast_install=needless
6821 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6822 if test "$GCC" = yes; then
6823 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6826 if test "x$enable_dlopen" != xyes; then
6827 enable_dlopen=unknown
6828 enable_dlopen_self=unknown
6829 enable_dlopen_self_static=unknown
6836 lt_cv_dlopen="load_add_on"
6838 lt_cv_dlopen_self=yes
6841 cygwin* | mingw* | pw32*)
6842 lt_cv_dlopen="LoadLibrary"
6847 echo $ac_n "checking for dllload""... $ac_c" 1>&6
6848 echo "configure:6849: checking for dllload" >&5
6849 if eval "test \"\${ac_cv_func_dllload+set}\" = set"; then
6850 echo $ac_n "(cached) $ac_c" 1>&6
6852 cat > conftest.$ac_ext <<EOF
6853 #line 6854 "configure"
6854 #include "confdefs.h"
6855 /* System header to define __stub macros and hopefully few prototypes,
6856 which can conflict with char dllload(); below. */
6858 /* Override any gcc2 internal prototype to avoid an error. */
6859 /* We use char because int might match the return type of a gcc2
6860 builtin and then its argument prototype would still apply. */
6866 /* The GNU C library defines this for functions which it implements
6867 to always fail with ENOSYS. Some functions are actually named
6868 something starting with __ and the normal name is an alias. */
6869 #if defined (__stub_dllload) || defined (__stub___dllload)
6877 if { (eval echo configure:6878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6879 eval "ac_cv_func_dllload=yes"
6881 echo "configure: failed program was:" >&5
6882 cat conftest.$ac_ext >&5
6884 eval "ac_cv_func_dllload=no"
6889 if eval "test \"`echo '$ac_cv_func_'dllload`\" = yes"; then
6890 echo "$ac_t""yes" 1>&6
6891 lt_cv_dlopen="dllload"
6893 echo "$ac_t""no" 1>&6
6894 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6895 echo "configure:6896: checking for shl_load" >&5
6896 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6897 echo $ac_n "(cached) $ac_c" 1>&6
6899 cat > conftest.$ac_ext <<EOF
6900 #line 6901 "configure"
6901 #include "confdefs.h"
6902 /* System header to define __stub macros and hopefully few prototypes,
6903 which can conflict with char shl_load(); below. */
6905 /* Override any gcc2 internal prototype to avoid an error. */
6906 /* We use char because int might match the return type of a gcc2
6907 builtin and then its argument prototype would still apply. */
6913 /* The GNU C library defines this for functions which it implements
6914 to always fail with ENOSYS. Some functions are actually named
6915 something starting with __ and the normal name is an alias. */
6916 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6924 if { (eval echo configure:6925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6926 eval "ac_cv_func_shl_load=yes"
6928 echo "configure: failed program was:" >&5
6929 cat conftest.$ac_ext >&5
6931 eval "ac_cv_func_shl_load=no"
6936 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6937 echo "$ac_t""yes" 1>&6
6938 lt_cv_dlopen="shl_load"
6940 echo "$ac_t""no" 1>&6
6941 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6942 echo "configure:6943: checking for shl_load in -ldld" >&5
6943 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6944 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6945 echo $ac_n "(cached) $ac_c" 1>&6
6947 ac_save_LIBS="$LIBS"
6949 cat > conftest.$ac_ext <<EOF
6950 #line 6951 "configure"
6951 #include "confdefs.h"
6952 /* Override any gcc2 internal prototype to avoid an error. */
6953 /* We use char because int might match the return type of a gcc2
6954 builtin and then its argument prototype would still apply. */
6961 if { (eval echo configure:6962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6963 eval "ac_cv_lib_$ac_lib_var=yes"
6965 echo "configure: failed program was:" >&5
6966 cat conftest.$ac_ext >&5
6968 eval "ac_cv_lib_$ac_lib_var=no"
6971 LIBS="$ac_save_LIBS"
6974 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6975 echo "$ac_t""yes" 1>&6
6976 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6978 echo "$ac_t""no" 1>&6
6979 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6980 echo "configure:6981: checking for dlopen" >&5
6981 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6982 echo $ac_n "(cached) $ac_c" 1>&6
6984 cat > conftest.$ac_ext <<EOF
6985 #line 6986 "configure"
6986 #include "confdefs.h"
6987 /* System header to define __stub macros and hopefully few prototypes,
6988 which can conflict with char dlopen(); below. */
6990 /* Override any gcc2 internal prototype to avoid an error. */
6991 /* We use char because int might match the return type of a gcc2
6992 builtin and then its argument prototype would still apply. */
6998 /* The GNU C library defines this for functions which it implements
6999 to always fail with ENOSYS. Some functions are actually named
7000 something starting with __ and the normal name is an alias. */
7001 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7009 if { (eval echo configure:7010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7011 eval "ac_cv_func_dlopen=yes"
7013 echo "configure: failed program was:" >&5
7014 cat conftest.$ac_ext >&5
7016 eval "ac_cv_func_dlopen=no"
7021 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
7022 echo "$ac_t""yes" 1>&6
7023 lt_cv_dlopen="dlopen"
7025 echo "$ac_t""no" 1>&6
7026 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
7027 echo "configure:7028: checking for dlopen in -ldl" >&5
7028 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
7029 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7030 echo $ac_n "(cached) $ac_c" 1>&6
7032 ac_save_LIBS="$LIBS"
7034 cat > conftest.$ac_ext <<EOF
7035 #line 7036 "configure"
7036 #include "confdefs.h"
7037 /* Override any gcc2 internal prototype to avoid an error. */
7038 /* We use char because int might match the return type of a gcc2
7039 builtin and then its argument prototype would still apply. */
7046 if { (eval echo configure:7047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7048 eval "ac_cv_lib_$ac_lib_var=yes"
7050 echo "configure: failed program was:" >&5
7051 cat conftest.$ac_ext >&5
7053 eval "ac_cv_lib_$ac_lib_var=no"
7056 LIBS="$ac_save_LIBS"
7059 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7060 echo "$ac_t""yes" 1>&6
7061 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7063 echo "$ac_t""no" 1>&6
7064 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
7065 echo "configure:7066: checking for dlopen in -lsvld" >&5
7066 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
7067 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7068 echo $ac_n "(cached) $ac_c" 1>&6
7070 ac_save_LIBS="$LIBS"
7072 cat > conftest.$ac_ext <<EOF
7073 #line 7074 "configure"
7074 #include "confdefs.h"
7075 /* Override any gcc2 internal prototype to avoid an error. */
7076 /* We use char because int might match the return type of a gcc2
7077 builtin and then its argument prototype would still apply. */
7084 if { (eval echo configure:7085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7086 eval "ac_cv_lib_$ac_lib_var=yes"
7088 echo "configure: failed program was:" >&5
7089 cat conftest.$ac_ext >&5
7091 eval "ac_cv_lib_$ac_lib_var=no"
7094 LIBS="$ac_save_LIBS"
7097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7098 echo "$ac_t""yes" 1>&6
7099 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7101 echo "$ac_t""no" 1>&6
7102 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
7103 echo "configure:7104: checking for dld_link in -ldld" >&5
7104 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
7105 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7106 echo $ac_n "(cached) $ac_c" 1>&6
7108 ac_save_LIBS="$LIBS"
7110 cat > conftest.$ac_ext <<EOF
7111 #line 7112 "configure"
7112 #include "confdefs.h"
7113 /* Override any gcc2 internal prototype to avoid an error. */
7114 /* We use char because int might match the return type of a gcc2
7115 builtin and then its argument prototype would still apply. */
7122 if { (eval echo configure:7123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7124 eval "ac_cv_lib_$ac_lib_var=yes"
7126 echo "configure: failed program was:" >&5
7127 cat conftest.$ac_ext >&5
7129 eval "ac_cv_lib_$ac_lib_var=no"
7132 LIBS="$ac_save_LIBS"
7135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7136 echo "$ac_t""yes" 1>&6
7137 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7139 echo "$ac_t""no" 1>&6
7163 if test "x$lt_cv_dlopen" != xno; then
7169 case $lt_cv_dlopen in
7171 save_CPPFLAGS="$CPPFLAGS"
7172 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7174 save_LDFLAGS="$LDFLAGS"
7175 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7178 LIBS="$lt_cv_dlopen_libs $LIBS"
7180 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
7181 echo "configure:7182: checking whether a program can dlopen itself" >&5
7182 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
7183 echo $ac_n "(cached) $ac_c" 1>&6
7185 if test "$cross_compiling" = yes; then :
7186 lt_cv_dlopen_self=cross
7188 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7189 lt_status=$lt_dlunknown
7190 cat > conftest.$ac_ext <<EOF
7191 #line 7192 "configure"
7192 #include "confdefs.h"
7201 # define LT_DLGLOBAL RTLD_GLOBAL
7204 # define LT_DLGLOBAL DL_GLOBAL
7206 # define LT_DLGLOBAL 0
7210 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7211 find out it does not work in some platform. */
7212 #ifndef LT_DLLAZY_OR_NOW
7214 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7217 # define LT_DLLAZY_OR_NOW DL_LAZY
7220 # define LT_DLLAZY_OR_NOW RTLD_NOW
7223 # define LT_DLLAZY_OR_NOW DL_NOW
7225 # define LT_DLLAZY_OR_NOW 0
7233 extern "C" void exit (int);
7236 void fnord() { int i=42;}
7239 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7240 int status = $lt_dlunknown;
7244 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7245 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7246 /* dlclose (self); */
7252 if { (eval echo configure:7253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7253 (./conftest; exit; ) 2>/dev/null
7256 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7257 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7258 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7261 # compilation failed
7262 lt_cv_dlopen_self=no
7270 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
7272 if test "x$lt_cv_dlopen_self" = xyes; then
7273 LDFLAGS="$LDFLAGS $link_static_flag"
7274 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
7275 echo "configure:7276: checking whether a statically linked program can dlopen itself" >&5
7276 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
7277 echo $ac_n "(cached) $ac_c" 1>&6
7279 if test "$cross_compiling" = yes; then :
7280 lt_cv_dlopen_self_static=cross
7282 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7283 lt_status=$lt_dlunknown
7284 cat > conftest.$ac_ext <<EOF
7285 #line 7286 "configure"
7286 #include "confdefs.h"
7295 # define LT_DLGLOBAL RTLD_GLOBAL
7298 # define LT_DLGLOBAL DL_GLOBAL
7300 # define LT_DLGLOBAL 0
7304 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7305 find out it does not work in some platform. */
7306 #ifndef LT_DLLAZY_OR_NOW
7308 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7311 # define LT_DLLAZY_OR_NOW DL_LAZY
7314 # define LT_DLLAZY_OR_NOW RTLD_NOW
7317 # define LT_DLLAZY_OR_NOW DL_NOW
7319 # define LT_DLLAZY_OR_NOW 0
7327 extern "C" void exit (int);
7330 void fnord() { int i=42;}
7333 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7334 int status = $lt_dlunknown;
7338 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7339 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7340 /* dlclose (self); */
7346 if { (eval echo configure:7347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7347 (./conftest; exit; ) 2>/dev/null
7350 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7351 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7352 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7355 # compilation failed
7356 lt_cv_dlopen_self_static=no
7364 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7367 CPPFLAGS="$save_CPPFLAGS"
7368 LDFLAGS="$save_LDFLAGS"
7373 case $lt_cv_dlopen_self in
7374 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7375 *) enable_dlopen_self=unknown ;;
7378 case $lt_cv_dlopen_self_static in
7379 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7380 *) enable_dlopen_self_static=unknown ;;
7385 if test "$enable_shared" = yes && test "$GCC" = yes; then
7386 case $archive_cmds in
7388 # FIXME: we may have to deal with multi-command sequences.
7391 # Test whether the compiler implicitly links with -lc since on some
7392 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7393 # to ld, don't add -lc before -lgcc.
7394 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7395 echo "configure:7396: checking whether -lc should be explicitly linked in" >&5
7396 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7397 echo $ac_n "(cached) $ac_c" 1>&6
7400 echo 'static int dummy;' > conftest.$ac_ext
7402 if { (eval echo configure:7403: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7405 libobjs=conftest.$ac_objext
7407 wl=$lt_cv_prog_cc_wl
7413 save_allow_undefined_flag=$allow_undefined_flag
7414 allow_undefined_flag=
7415 if { (eval echo configure:7416: \"$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; }
7417 lt_cv_archive_cmds_need_lc=no
7419 lt_cv_archive_cmds_need_lc=yes
7421 allow_undefined_flag=$save_allow_undefined_flag
7423 cat conftest.err 1>&5
7427 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7431 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7433 # The second clause should only fire when bootstrapping the
7434 # libtool distribution, otherwise you forgot to ship ltmain.sh
7435 # with your package, and you will get complaints that there are
7436 # no rules to generate ltmain.sh.
7437 if test -f "$ltmain"; then
7440 # If there is no Makefile yet, we rely on a make rule to execute
7441 # `config.status --recheck' to rerun these tests and create the
7442 # libtool script then.
7443 test -f Makefile && make "$ltmain"
7446 if test -f "$ltmain"; then
7447 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7450 echo creating $ofile
7452 # Now quote all the things that may contain metacharacters while being
7453 # careful not to overquote the AC_SUBSTed values. We take copies of the
7454 # variables and quote the copies for generation of the libtool script.
7455 for var in echo old_CC old_CFLAGS SED \
7456 AR AR_FLAGS CC LD LN_S NM SHELL \
7457 reload_flag reload_cmds wl \
7458 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7459 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7460 library_names_spec soname_spec \
7461 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7462 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7463 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7464 old_striplib striplib file_magic_cmd export_symbols_cmds \
7465 deplibs_check_method allow_undefined_flag no_undefined_flag \
7466 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7467 global_symbol_to_c_name_address \
7468 hardcode_libdir_flag_spec hardcode_libdir_separator \
7469 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7470 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7473 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7474 old_postinstall_cmds | old_postuninstall_cmds | \
7475 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7476 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7477 postinstall_cmds | postuninstall_cmds | \
7478 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7479 # Double-quote double-evaled strings.
7480 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7483 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7488 cat <<__EOF__ > "${ofile}T"
7491 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7492 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7493 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7495 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7496 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7498 # This program is free software; you can redistribute it and/or modify
7499 # it under the terms of the GNU General Public License as published by
7500 # the Free Software Foundation; either version 2 of the License, or
7501 # (at your option) any later version.
7503 # This program is distributed in the hope that it will be useful, but
7504 # WITHOUT ANY WARRANTY; without even the implied warranty of
7505 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7506 # General Public License for more details.
7508 # You should have received a copy of the GNU General Public License
7509 # along with this program; if not, write to the Free Software
7510 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7512 # As a special exception to the GNU General Public License, if you
7513 # distribute this file as part of a program that contains a
7514 # configuration script generated by Autoconf, you may include it under
7515 # the same distribution terms that you use for the rest of that program.
7517 # A sed that does not truncate output.
7520 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7521 Xsed="${SED} -e s/^X//"
7523 # The HP-UX ksh and POSIX shell print the target directory to stdout
7525 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7527 # ### BEGIN LIBTOOL CONFIG
7529 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7531 # Shell to use when invoking shell scripts.
7534 # Whether or not to build shared libraries.
7535 build_libtool_libs=$enable_shared
7537 # Whether or not to build static libraries.
7538 build_old_libs=$enable_static
7540 # Whether or not to add -lc for building shared libraries.
7541 build_libtool_need_lc=$need_lc
7543 # Whether or not to optimize for fast installation.
7544 fast_install=$enable_fast_install
7547 host_alias=$host_alias
7550 # An echo program that does not interpret backslashes.
7555 AR_FLAGS=$lt_AR_FLAGS
7557 # The default C compiler.
7560 # Is the compiler the GNU C compiler?
7563 # The linker used to build libraries.
7566 # Whether we need hard or soft links.
7569 # A BSD-compatible nm program.
7572 # A symbol stripping program
7575 # Used to examine libraries when file_magic_cmd begins "file"
7576 MAGIC_CMD=$MAGIC_CMD
7578 # Used on cygwin: DLL creation program.
7581 # Used on cygwin: object dumper.
7584 # Used on cygwin: assembler.
7587 # The name of the directory that contains temporary libtool files.
7590 # How to create reloadable object files.
7591 reload_flag=$lt_reload_flag
7592 reload_cmds=$lt_reload_cmds
7594 # How to pass a linker flag through the compiler.
7597 # Object file suffix (normally "o").
7600 # Old archive suffix (normally "a").
7603 # Executable file suffix (normally "").
7606 # Additional compiler flags for building library objects.
7607 pic_flag=$lt_pic_flag
7610 # Does compiler simultaneously support -c and -o options?
7611 compiler_c_o=$lt_compiler_c_o
7613 # Can we write directly to a .lo ?
7614 compiler_o_lo=$lt_compiler_o_lo
7616 # Must we lock files when doing compilation ?
7617 need_locks=$lt_need_locks
7619 # Do we need the lib prefix for modules?
7620 need_lib_prefix=$need_lib_prefix
7622 # Do we need a version for libraries?
7623 need_version=$need_version
7625 # Whether dlopen is supported.
7626 dlopen_support=$enable_dlopen
7628 # Whether dlopen of programs is supported.
7629 dlopen_self=$enable_dlopen_self
7631 # Whether dlopen of statically linked programs is supported.
7632 dlopen_self_static=$enable_dlopen_self_static
7634 # Compiler flag to prevent dynamic linking.
7635 link_static_flag=$lt_link_static_flag
7637 # Compiler flag to turn off builtin functions.
7638 no_builtin_flag=$lt_no_builtin_flag
7640 # Compiler flag to allow reflexive dlopens.
7641 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7643 # Compiler flag to generate shared objects directly from archives.
7644 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7646 # Compiler flag to generate thread-safe objects.
7647 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7649 # Library versioning type.
7650 version_type=$version_type
7652 # Format of library name prefix.
7653 libname_spec=$lt_libname_spec
7655 # List of archive names. First name is the real one, the rest are links.
7656 # The last name is the one that the linker finds with -lNAME.
7657 library_names_spec=$lt_library_names_spec
7659 # The coded name of the library, if different from the real name.
7660 soname_spec=$lt_soname_spec
7662 # Commands used to build and install an old-style archive.
7664 old_archive_cmds=$lt_old_archive_cmds
7665 old_postinstall_cmds=$lt_old_postinstall_cmds
7666 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7668 # Create an old-style archive from a shared archive.
7669 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7671 # Create a temporary old-style archive to link instead of a shared archive.
7672 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7674 # Commands used to build and install a shared archive.
7675 archive_cmds=$lt_archive_cmds
7676 archive_expsym_cmds=$lt_archive_expsym_cmds
7677 postinstall_cmds=$lt_postinstall_cmds
7678 postuninstall_cmds=$lt_postuninstall_cmds
7680 # Commands to strip libraries.
7681 old_striplib=$lt_old_striplib
7682 striplib=$lt_striplib
7684 # Method to check whether dependent libraries are shared objects.
7685 deplibs_check_method=$lt_deplibs_check_method
7687 # Command to use when deplibs_check_method == file_magic.
7688 file_magic_cmd=$lt_file_magic_cmd
7690 # Flag that allows shared libraries with undefined symbols to be built.
7691 allow_undefined_flag=$lt_allow_undefined_flag
7693 # Flag that forces no undefined symbols.
7694 no_undefined_flag=$lt_no_undefined_flag
7696 # Commands used to finish a libtool library installation in a directory.
7697 finish_cmds=$lt_finish_cmds
7699 # Same as above, but a single script fragment to be evaled but not shown.
7700 finish_eval=$lt_finish_eval
7702 # Take the output of nm and produce a listing of raw symbols and C names.
7703 global_symbol_pipe=$lt_global_symbol_pipe
7705 # Transform the output of nm in a proper C declaration
7706 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7708 # Transform the output of nm in a C name address pair
7709 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7711 # This is the shared library runtime path variable.
7712 runpath_var=$runpath_var
7714 # This is the shared library path variable.
7715 shlibpath_var=$shlibpath_var
7717 # Is shlibpath searched before the hard-coded library search path?
7718 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7720 # How to hardcode a shared library path into an executable.
7721 hardcode_action=$hardcode_action
7723 # Whether we should hardcode library paths into libraries.
7724 hardcode_into_libs=$hardcode_into_libs
7726 # Flag to hardcode \$libdir into a binary during linking.
7727 # This must work even if \$libdir does not exist.
7728 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7730 # Whether we need a single -rpath flag with a separated argument.
7731 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7733 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7735 hardcode_direct=$hardcode_direct
7737 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7739 hardcode_minus_L=$hardcode_minus_L
7741 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7742 # the resulting binary.
7743 hardcode_shlibpath_var=$hardcode_shlibpath_var
7745 # Variables whose values should be saved in libtool wrapper scripts and
7746 # restored at relink time.
7747 variables_saved_for_relink="$variables_saved_for_relink"
7749 # Whether libtool must link a program against all its dependency libraries.
7750 link_all_deplibs=$link_all_deplibs
7752 # Compile-time system search path for libraries
7753 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7755 # Run-time system search path for libraries
7756 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7758 # Fix the shell variable \$srcfile for the compiler.
7759 fix_srcfile_path="$fix_srcfile_path"
7761 # Set to yes if exported symbols are required.
7762 always_export_symbols=$always_export_symbols
7764 # The commands to list exported symbols.
7765 export_symbols_cmds=$lt_export_symbols_cmds
7767 # The commands to extract the exported symbol list from a shared archive.
7768 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7770 # Symbols that should not be listed in the preloaded symbols.
7771 exclude_expsyms=$lt_exclude_expsyms
7773 # Symbols that must always be exported.
7774 include_expsyms=$lt_include_expsyms
7776 # ### END LIBTOOL CONFIG
7782 cat <<\EOF >> "${ofile}T"
7784 # AIX sometimes has problems with the GCC collect2 program. For some
7785 # reason, if we set the COLLECT_NAMES environment variable, the problems
7786 # vanish in a puff of smoke.
7787 if test "X${COLLECT_NAMES+set}" != Xset; then
7789 export COLLECT_NAMES
7796 cygwin* | mingw* | pw32* | os2*)
7797 cat <<'EOF' >> "${ofile}T"
7798 # This is a source program that is used to create dlls on Windows
7799 # Don't remove nor modify the starting and closing comments
7800 # /* ltdll.c starts here */
7801 # #define WIN32_LEAN_AND_MEAN
7802 # #include <windows.h>
7803 # #undef WIN32_LEAN_AND_MEAN
7804 # #include <stdio.h>
7806 # #ifndef __CYGWIN__
7807 # # ifdef __CYGWIN32__
7808 # # define __CYGWIN__ __CYGWIN32__
7812 # #ifdef __cplusplus
7815 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7816 # #ifdef __cplusplus
7821 # #include <cygwin/cygwin_dll.h>
7822 # DECLARE_CYGWIN_DLL( DllMain );
7824 # HINSTANCE __hDllInstance_base;
7827 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7829 # __hDllInstance_base = hInst;
7832 # /* ltdll.c ends here */
7833 # This is a source program that is used to create import libraries
7834 # on Windows for dlls which lack them. Don't remove nor modify the
7835 # starting and closing comments
7836 # /* impgen.c starts here */
7837 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7839 # This file is part of GNU libtool.
7841 # This program is free software; you can redistribute it and/or modify
7842 # it under the terms of the GNU General Public License as published by
7843 # the Free Software Foundation; either version 2 of the License, or
7844 # (at your option) any later version.
7846 # This program is distributed in the hope that it will be useful,
7847 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7848 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7849 # GNU General Public License for more details.
7851 # You should have received a copy of the GNU General Public License
7852 # along with this program; if not, write to the Free Software
7853 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7856 # #include <stdio.h> /* for printf() */
7857 # #include <unistd.h> /* for open(), lseek(), read() */
7858 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7859 # #include <string.h> /* for strdup() */
7861 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7863 # #define O_BINARY 0
7866 # static unsigned int
7867 # pe_get16 (fd, offset)
7871 # unsigned char b[2];
7872 # lseek (fd, offset, SEEK_SET);
7874 # return b[0] + (b[1]<<8);
7877 # static unsigned int
7878 # pe_get32 (fd, offset)
7882 # unsigned char b[4];
7883 # lseek (fd, offset, SEEK_SET);
7885 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7888 # static unsigned int
7892 # unsigned char *b = ptr;
7893 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7902 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7903 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7904 # unsigned long name_rvas, nexp;
7905 # unsigned char *expdata, *erva;
7906 # char *filename, *dll_name;
7908 # filename = argv[1];
7910 # dll = open(filename, O_RDONLY|O_BINARY);
7914 # dll_name = filename;
7916 # for (i=0; filename[i]; i++)
7917 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7918 # dll_name = filename + i +1;
7920 # pe_header_offset = pe_get32 (dll, 0x3c);
7921 # opthdr_ofs = pe_header_offset + 4 + 20;
7922 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7924 # if (num_entries < 1) /* no exports */
7927 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7928 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7929 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7930 # secptr = (pe_header_offset + 4 + 20 +
7931 # pe_get16 (dll, pe_header_offset + 4 + 16));
7934 # for (i = 0; i < nsections; i++)
7937 # unsigned long secptr1 = secptr + 40 * i;
7938 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7939 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7940 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7941 # lseek(dll, secptr1, SEEK_SET);
7942 # read(dll, sname, 8);
7943 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7945 # expptr = fptr + (export_rva - vaddr);
7946 # if (export_rva + export_size > vaddr + vsize)
7947 # export_size = vsize - (export_rva - vaddr);
7952 # expdata = (unsigned char*)malloc(export_size);
7953 # lseek (dll, expptr, SEEK_SET);
7954 # read (dll, expdata, export_size);
7955 # erva = expdata - export_rva;
7957 # nexp = pe_as32 (expdata+24);
7958 # name_rvas = pe_as32 (expdata+32);
7960 # printf ("EXPORTS\n");
7961 # for (i = 0; i<nexp; i++)
7963 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7964 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7969 # /* impgen.c ends here */
7975 # We use sed instead of cat because bash on DJGPP gets confused if
7976 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7977 # text mode, it properly converts lines to CR/LF. This bash problem
7978 # is reportedly fixed, but why not run on old versions too?
7979 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7981 mv -f "${ofile}T" "$ofile" || \
7982 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7990 # This can be used to rebuild libtool when needed
7991 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7993 # Always use our own libtool.
7994 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7996 # Prevent multiple expansion
8000 # test for ln hardlink support
8001 echo $ac_n "checking whether ln works""... $ac_c" 1>&6
8002 echo "configure:8003: checking whether ln works" >&5
8003 if eval "test \"\${ol_cv_prog_LN_H+set}\" = set"; then
8004 echo $ac_n "(cached) $ac_c" 1>&6
8006 rm -f conftest.src conftest.dst
8007 echo "conftest" > conftest.src
8008 if ln conftest.src conftest.dst 2>/dev/null
8010 ol_cv_prog_LN_H="ln"
8012 ol_cv_prog_LN_H="cp"
8014 rm -f conftest.src conftest.dst
8017 LN_H="$ol_cv_prog_LN_H"
8018 if test "$ol_cv_prog_LN_H" = "ln"; then
8019 echo "$ac_t""yes" 1>&6
8021 echo "$ac_t""no" 1>&6
8024 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8025 echo "configure:8026: checking whether ln -s works" >&5
8026 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
8027 echo $ac_n "(cached) $ac_c" 1>&6
8030 if ln -s X conftestdata 2>/dev/null
8033 ac_cv_prog_LN_S="ln -s"
8038 LN_S="$ac_cv_prog_LN_S"
8039 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8040 echo "$ac_t""yes" 1>&6
8042 echo "$ac_t""no" 1>&6
8047 if test $ol_enable_perl != no ; then
8048 # Extract the first word of "perl", so it can be a program name with args.
8049 set dummy perl; ac_word=$2
8050 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8051 echo "configure:8052: checking for $ac_word" >&5
8052 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
8053 echo $ac_n "(cached) $ac_c" 1>&6
8057 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
8060 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
8063 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8065 for ac_dir in $ac_dummy; do
8066 test -z "$ac_dir" && ac_dir=.
8067 if test -f $ac_dir/$ac_word; then
8068 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
8073 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
8077 PERLBIN="$ac_cv_path_PERLBIN"
8078 if test -n "$PERLBIN"; then
8079 echo "$ac_t""$PERLBIN" 1>&6
8081 echo "$ac_t""no" 1>&6
8085 if test "no$PERLBIN" = "no" ; then
8086 if test $ol_enable_perl = yes ; then
8087 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
8091 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
8092 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
8094 if test x"$ol_with_perl_module" = "xstatic" ; then
8095 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
8097 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
8103 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8104 echo "configure:8105: checking how to run the C preprocessor" >&5
8105 # On Suns, sometimes $CPP names a directory.
8106 if test -n "$CPP" && test -d "$CPP"; then
8109 if test -z "$CPP"; then
8110 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
8111 echo $ac_n "(cached) $ac_c" 1>&6
8113 # This must be in double quotes, not single quotes, because CPP may get
8114 # substituted into the Makefile and "${CC-cc}" will confuse make.
8116 # On the NeXT, cc -E runs the code through the compiler's parser,
8117 # not just through cpp.
8118 cat > conftest.$ac_ext <<EOF
8119 #line 8120 "configure"
8120 #include "confdefs.h"
8124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8125 { (eval echo configure:8126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8127 if test -z "$ac_err"; then
8131 echo "configure: failed program was:" >&5
8132 cat conftest.$ac_ext >&5
8134 CPP="${CC-cc} -E -traditional-cpp"
8135 cat > conftest.$ac_ext <<EOF
8136 #line 8137 "configure"
8137 #include "confdefs.h"
8141 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8142 { (eval echo configure:8143: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8143 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8144 if test -z "$ac_err"; then
8148 echo "configure: failed program was:" >&5
8149 cat conftest.$ac_ext >&5
8151 CPP="${CC-cc} -nologo -E"
8152 cat > conftest.$ac_ext <<EOF
8153 #line 8154 "configure"
8154 #include "confdefs.h"
8158 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8159 { (eval echo configure:8160: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8160 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8161 if test -z "$ac_err"; then
8165 echo "configure: failed program was:" >&5
8166 cat conftest.$ac_ext >&5
8175 ac_cv_prog_CPP="$CPP"
8177 CPP="$ac_cv_prog_CPP"
8179 ac_cv_prog_CPP="$CPP"
8181 echo "$ac_t""$CPP" 1>&6
8185 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
8186 echo "configure:8187: checking for Cygwin environment" >&5
8187 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
8188 echo $ac_n "(cached) $ac_c" 1>&6
8190 cat > conftest.$ac_ext <<EOF
8191 #line 8192 "configure"
8192 #include "confdefs.h"
8197 #define __CYGWIN__ __CYGWIN32__
8202 if { (eval echo configure:8203: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8206 echo "configure: failed program was:" >&5
8207 cat conftest.$ac_ext >&5
8214 echo "$ac_t""$ac_cv_cygwin" 1>&6
8216 test "$ac_cv_cygwin" = yes && CYGWIN=yes
8217 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
8218 echo "configure:8219: checking for mingw32 environment" >&5
8219 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
8220 echo $ac_n "(cached) $ac_c" 1>&6
8222 cat > conftest.$ac_ext <<EOF
8223 #line 8224 "configure"
8224 #include "confdefs.h"
8230 if { (eval echo configure:8231: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8234 echo "configure: failed program was:" >&5
8235 cat conftest.$ac_ext >&5
8242 echo "$ac_t""$ac_cv_mingw32" 1>&6
8244 test "$ac_cv_mingw32" = yes && MINGW32=yes
8248 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
8249 echo "configure:8250: checking for executable suffix" >&5
8250 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
8251 echo $ac_n "(cached) $ac_c" 1>&6
8253 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
8257 echo 'int main () { return 0; }' > conftest.$ac_ext
8259 if { (eval echo configure:8260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8260 for file in conftest.*; do
8262 *.c | *.C | *.o | *.obj | *.xcoff) ;;
8263 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8267 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8270 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8275 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8276 echo "$ac_t""${ac_cv_exeext}" 1>&6
8279 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8280 echo "configure:8281: checking for object suffix" >&5
8281 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8282 echo $ac_n "(cached) $ac_c" 1>&6
8285 echo 'int i = 1;' > conftest.$ac_ext
8286 if { (eval echo configure:8287: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8287 for ac_file in conftest.*; do
8290 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8294 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8299 echo "$ac_t""$ac_cv_objext" 1>&6
8300 OBJEXT=$ac_cv_objext
8301 ac_objext=$ac_cv_objext
8304 cat >> confdefs.h <<EOF
8305 #define EXEEXT "${EXEEXT}"
8309 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8310 echo "configure:8311: checking for be_app in -lbe" >&5
8311 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8312 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8313 echo $ac_n "(cached) $ac_c" 1>&6
8315 ac_save_LIBS="$LIBS"
8316 LIBS="-lbe -lroot -lnet $LIBS"
8317 cat > conftest.$ac_ext <<EOF
8318 #line 8319 "configure"
8319 #include "confdefs.h"
8320 /* Override any gcc2 internal prototype to avoid an error. */
8321 /* We use char because int might match the return type of a gcc2
8322 builtin and then its argument prototype would still apply. */
8329 if { (eval echo configure:8330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8331 eval "ac_cv_lib_$ac_lib_var=yes"
8333 echo "configure: failed program was:" >&5
8334 cat conftest.$ac_ext >&5
8336 eval "ac_cv_lib_$ac_lib_var=no"
8339 LIBS="$ac_save_LIBS"
8342 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8343 echo "$ac_t""yes" 1>&6
8344 LIBS="$LIBS -lbe -lroot -lnet"
8346 echo "$ac_t""no" 1>&6
8354 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8355 echo "configure:8356: checking for ${CC-cc} option to accept ANSI C" >&5
8356 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8357 echo $ac_n "(cached) $ac_c" 1>&6
8359 am_cv_prog_cc_stdc=no
8361 # Don't try gcc -ansi; that turns off useful extensions and
8362 # breaks some systems' header files.
8363 # AIX -qlanglvl=ansi
8364 # Ultrix and OSF/1 -std1
8365 # HP-UX 10.20 and later -Ae
8366 # HP-UX older versions -Aa -D_HPUX_SOURCE
8367 # SVR4 -Xc -D__EXTENSIONS__
8368 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8370 CC="$ac_save_CC $ac_arg"
8371 cat > conftest.$ac_ext <<EOF
8372 #line 8373 "configure"
8373 #include "confdefs.h"
8376 #include <sys/types.h>
8377 #include <sys/stat.h>
8378 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8379 struct buf { int x; };
8380 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8381 static char *e (p, i)
8387 static char *f (char * (*g) (char **, int), char **p, ...)
8392 s = g (p, va_arg (v,int));
8396 int test (int i, double x);
8397 struct s1 {int (*f) (int a);};
8398 struct s2 {int (*f) (double a);};
8399 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8405 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8409 if { (eval echo configure:8410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8411 am_cv_prog_cc_stdc="$ac_arg"; break
8413 echo "configure: failed program was:" >&5
8414 cat conftest.$ac_ext >&5
8422 if test -z "$am_cv_prog_cc_stdc"; then
8423 echo "$ac_t""none needed" 1>&6
8425 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8427 case "x$am_cv_prog_cc_stdc" in
8429 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8432 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8433 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8436 # test for make depend flag
8439 if test -z "${MKDEP}"; then
8441 if test -z "${MKDEP_FLAGS}"; then
8442 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8443 echo "configure:8444: checking for ${OL_MKDEP} depend flag" >&5
8444 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8445 echo $ac_n "(cached) $ac_c" 1>&6
8449 for flag in "-M" "-xM"; do
8450 cat > conftest.c <<EOF
8453 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8454 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8456 if test ! -f conftest."${ac_object}" ; then
8458 OL_MKDEP_FLAGS="$flag"
8467 echo "$ac_t""$ol_cv_mkdep" 1>&6
8470 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8475 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8480 if test "${ol_cv_mkdep}" = no ; then
8481 # this will soon become an error
8482 echo "configure: warning: do not know how to generate dependencies" 1>&2
8485 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8486 echo "configure:8487: checking for afopen in -ls" >&5
8487 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8488 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8489 echo $ac_n "(cached) $ac_c" 1>&6
8491 ac_save_LIBS="$LIBS"
8493 cat > conftest.$ac_ext <<EOF
8494 #line 8495 "configure"
8495 #include "confdefs.h"
8496 /* Override any gcc2 internal prototype to avoid an error. */
8497 /* We use char because int might match the return type of a gcc2
8498 builtin and then its argument prototype would still apply. */
8505 if { (eval echo configure:8506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8507 eval "ac_cv_lib_$ac_lib_var=yes"
8509 echo "configure: failed program was:" >&5
8510 cat conftest.$ac_ext >&5
8512 eval "ac_cv_lib_$ac_lib_var=no"
8515 LIBS="$ac_save_LIBS"
8518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8519 echo "$ac_t""yes" 1>&6
8522 cat >> confdefs.h <<\EOF
8523 #define HAVE_AIX_SECURITY 1
8528 echo "$ac_t""no" 1>&6
8534 ac_cv_func_getopt=no
8535 cat >> confdefs.h <<\EOF
8536 #define BOTH_STRINGS_H 1
8543 if test $ol_enable_modules != no ; then
8544 for ac_hdr in ltdl.h
8546 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8547 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8548 echo "configure:8549: checking for $ac_hdr" >&5
8549 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8550 echo $ac_n "(cached) $ac_c" 1>&6
8552 cat > conftest.$ac_ext <<EOF
8553 #line 8554 "configure"
8554 #include "confdefs.h"
8557 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8558 { (eval echo configure:8559: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8559 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8560 if test -z "$ac_err"; then
8562 eval "ac_cv_header_$ac_safe=yes"
8565 echo "configure: failed program was:" >&5
8566 cat conftest.$ac_ext >&5
8568 eval "ac_cv_header_$ac_safe=no"
8572 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8573 echo "$ac_t""yes" 1>&6
8574 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8575 cat >> confdefs.h <<EOF
8576 #define $ac_tr_hdr 1
8580 echo "$ac_t""no" 1>&6
8585 if test $ac_cv_header_ltdl_h = no ; then
8586 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8589 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8590 echo "configure:8591: checking for lt_dlinit in -lltdl" >&5
8591 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8592 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8593 echo $ac_n "(cached) $ac_c" 1>&6
8595 ac_save_LIBS="$LIBS"
8597 cat > conftest.$ac_ext <<EOF
8598 #line 8599 "configure"
8599 #include "confdefs.h"
8600 /* Override any gcc2 internal prototype to avoid an error. */
8601 /* We use char because int might match the return type of a gcc2
8602 builtin and then its argument prototype would still apply. */
8609 if { (eval echo configure:8610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8611 eval "ac_cv_lib_$ac_lib_var=yes"
8613 echo "configure: failed program was:" >&5
8614 cat conftest.$ac_ext >&5
8616 eval "ac_cv_lib_$ac_lib_var=no"
8619 LIBS="$ac_save_LIBS"
8622 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8623 echo "$ac_t""yes" 1>&6
8626 cat >> confdefs.h <<\EOF
8627 #define HAVE_LIBLTDL 1
8632 echo "$ac_t""no" 1>&6
8636 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8637 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8642 ol_with_bdb_module=static
8643 ol_with_dnssrv_module=static
8644 ol_with_hdb_module=static
8645 ol_with_ldap_module=static
8646 ol_with_ldbm_module=static
8647 ol_with_meta_module=static
8648 ol_with_monitor_module=static
8649 ol_with_null_module=static
8650 ol_with_passwd_module=static
8651 ol_with_perl_module=static
8652 ol_with_relay_module=static
8653 ol_with_shell_module=static
8654 ol_with_sql_module=static
8655 if test $ol_enable_chain = mod ; then
8656 echo "configure: warning: building static chain overlay" 1>&2
8659 if test $ol_enable_denyop = mod ; then
8660 echo "configure: warning: building static denyop overlay" 1>&2
8661 ol_enable_denyop=yes
8663 if test $ol_enable_dyngroup = mod ; then
8664 echo "configure: warning: building static dyngroup overlay" 1>&2
8665 ol_enable_dyngroup=yes
8667 if test $ol_enable_ppolicy = mod ; then
8668 echo "configure: warning: building static ppolicy overlay" 1>&2
8669 ol_enable_ppolicy=yes
8671 if test $ol_enable_proxycache = mod ; then
8672 echo "configure: warning: building static proxycache overlay" 1>&2
8673 ol_enable_proxycache=yes
8675 if test $ol_enable_rwm = mod ; then
8676 echo "configure: warning: building static rwm overlay" 1>&2
8682 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8683 echo "configure:8684: checking for EBCDIC" >&5
8684 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8685 echo $ac_n "(cached) $ac_c" 1>&6
8688 cat > conftest.$ac_ext <<EOF
8689 #line 8690 "configure"
8690 #include "confdefs.h"
8693 #include <__ASCII__/generate_error.h>
8697 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8698 { (eval echo configure:8699: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8699 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8700 if test -z "$ac_err"; then
8702 ol_cv_cpp_ebcdic=yes
8705 echo "configure: failed program was:" >&5
8706 cat conftest.$ac_ext >&5
8713 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8714 if test $ol_cv_cpp_ebcdic = yes ; then
8715 cat >> confdefs.h <<\EOF
8716 #define HAVE_EBCDIC 1
8721 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8722 echo "configure:8723: checking for ANSI C header files" >&5
8723 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8724 echo $ac_n "(cached) $ac_c" 1>&6
8726 cat > conftest.$ac_ext <<EOF
8727 #line 8728 "configure"
8728 #include "confdefs.h"
8734 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8735 { (eval echo configure:8736: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8736 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8737 if test -z "$ac_err"; then
8739 ol_cv_header_stdc=yes
8742 echo "configure: failed program was:" >&5
8743 cat conftest.$ac_ext >&5
8745 ol_cv_header_stdc=no
8749 if test $ol_cv_header_stdc = yes; then
8750 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8751 cat > conftest.$ac_ext <<EOF
8752 #line 8753 "configure"
8753 #include "confdefs.h"
8756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8757 egrep "memchr" >/dev/null 2>&1; then
8761 ol_cv_header_stdc=no
8767 if test $ol_cv_header_stdc = yes; then
8768 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8769 cat > conftest.$ac_ext <<EOF
8770 #line 8771 "configure"
8771 #include "confdefs.h"
8774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8775 egrep "free" >/dev/null 2>&1; then
8779 ol_cv_header_stdc=no
8785 if test $ol_cv_header_stdc = yes; then
8786 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8787 if test "$cross_compiling" = yes; then
8790 cat > conftest.$ac_ext <<EOF
8791 #line 8792 "configure"
8792 #include "confdefs.h"
8795 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8796 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8798 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8799 || ('j' <= (c) && (c) <= 'r') \
8800 || ('s' <= (c) && (c) <= 'z'))
8801 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8803 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8804 int main () { int i; for (i = 0; i < 256; i++)
8805 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8809 if { (eval echo configure:8810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
8813 echo "configure: failed program was:" >&5
8814 cat conftest.$ac_ext >&5
8816 ol_cv_header_stdc=no
8824 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8825 if test $ol_cv_header_stdc = yes; then
8826 cat >> confdefs.h <<\EOF
8827 #define STDC_HEADERS 1
8831 ac_cv_header_stdc=disable
8834 if test $ol_cv_header_stdc != yes; then
8835 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8839 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8841 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8842 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8843 echo "configure:8844: checking for $ac_hdr that defines DIR" >&5
8844 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8845 echo $ac_n "(cached) $ac_c" 1>&6
8847 cat > conftest.$ac_ext <<EOF
8848 #line 8849 "configure"
8849 #include "confdefs.h"
8850 #include <sys/types.h>
8856 if { (eval echo configure:8857: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8858 eval "ac_cv_header_dirent_$ac_safe=yes"
8860 echo "configure: failed program was:" >&5
8861 cat conftest.$ac_ext >&5
8863 eval "ac_cv_header_dirent_$ac_safe=no"
8867 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8868 echo "$ac_t""yes" 1>&6
8869 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8870 cat >> confdefs.h <<EOF
8871 #define $ac_tr_hdr 1
8873 ac_header_dirent=$ac_hdr; break
8875 echo "$ac_t""no" 1>&6
8878 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8879 if test $ac_header_dirent = dirent.h; then
8880 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8881 echo "configure:8882: checking for opendir in -ldir" >&5
8882 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8883 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8884 echo $ac_n "(cached) $ac_c" 1>&6
8886 ac_save_LIBS="$LIBS"
8888 cat > conftest.$ac_ext <<EOF
8889 #line 8890 "configure"
8890 #include "confdefs.h"
8891 /* Override any gcc2 internal prototype to avoid an error. */
8892 /* We use char because int might match the return type of a gcc2
8893 builtin and then its argument prototype would still apply. */
8900 if { (eval echo configure:8901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8902 eval "ac_cv_lib_$ac_lib_var=yes"
8904 echo "configure: failed program was:" >&5
8905 cat conftest.$ac_ext >&5
8907 eval "ac_cv_lib_$ac_lib_var=no"
8910 LIBS="$ac_save_LIBS"
8913 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8914 echo "$ac_t""yes" 1>&6
8917 echo "$ac_t""no" 1>&6
8921 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8922 echo "configure:8923: checking for opendir in -lx" >&5
8923 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8924 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8925 echo $ac_n "(cached) $ac_c" 1>&6
8927 ac_save_LIBS="$LIBS"
8929 cat > conftest.$ac_ext <<EOF
8930 #line 8931 "configure"
8931 #include "confdefs.h"
8932 /* Override any gcc2 internal prototype to avoid an error. */
8933 /* We use char because int might match the return type of a gcc2
8934 builtin and then its argument prototype would still apply. */
8941 if { (eval echo configure:8942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8943 eval "ac_cv_lib_$ac_lib_var=yes"
8945 echo "configure: failed program was:" >&5
8946 cat conftest.$ac_ext >&5
8948 eval "ac_cv_lib_$ac_lib_var=no"
8951 LIBS="$ac_save_LIBS"
8954 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8955 echo "$ac_t""yes" 1>&6
8958 echo "$ac_t""no" 1>&6
8963 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8964 echo "configure:8965: checking for sys/wait.h that is POSIX.1 compatible" >&5
8965 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8966 echo $ac_n "(cached) $ac_c" 1>&6
8968 cat > conftest.$ac_ext <<EOF
8969 #line 8970 "configure"
8970 #include "confdefs.h"
8971 #include <sys/types.h>
8972 #include <sys/wait.h>
8974 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8977 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8982 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8985 if { (eval echo configure:8986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8987 ac_cv_header_sys_wait_h=yes
8989 echo "configure: failed program was:" >&5
8990 cat conftest.$ac_ext >&5
8992 ac_cv_header_sys_wait_h=no
8997 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8998 if test $ac_cv_header_sys_wait_h = yes; then
8999 cat >> confdefs.h <<\EOF
9000 #define HAVE_SYS_WAIT_H 1
9005 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
9006 echo "configure:9007: checking POSIX termios" >&5
9007 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
9008 echo $ac_n "(cached) $ac_c" 1>&6
9010 cat > conftest.$ac_ext <<EOF
9011 #line 9012 "configure"
9012 #include "confdefs.h"
9013 #include <sys/types.h>
9015 #include <termios.h>
9017 /* SunOS 4.0.3 has termios.h but not the library calls. */
9021 if { (eval echo configure:9022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9023 am_cv_sys_posix_termios=yes
9025 echo "configure: failed program was:" >&5
9026 cat conftest.$ac_ext >&5
9028 am_cv_sys_posix_termios=no
9033 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
9036 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
9037 echo "configure:9038: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
9038 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
9039 echo $ac_n "(cached) $ac_c" 1>&6
9041 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
9043 gwinsz_in_termios_h=no
9044 if test $am_cv_sys_posix_termios = yes; then
9045 cat > conftest.$ac_ext <<EOF
9046 #line 9047 "configure"
9047 #include "confdefs.h"
9048 #include <sys/types.h>
9049 # include <termios.h>
9055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9056 egrep "yes" >/dev/null 2>&1; then
9058 gwinsz_in_termios_h=yes
9064 if test $gwinsz_in_termios_h = no; then
9065 cat > conftest.$ac_ext <<EOF
9066 #line 9067 "configure"
9067 #include "confdefs.h"
9068 #include <sys/types.h>
9069 # include <sys/ioctl.h>
9075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9076 egrep "yes" >/dev/null 2>&1; then
9078 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
9086 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
9087 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
9088 cat >> confdefs.h <<\EOF
9089 #define GWINSZ_IN_SYS_IOCTL 1
9094 if test $am_cv_sys_posix_termios = yes ; then
9095 cat >> confdefs.h <<\EOF
9096 #define HAVE_POSIX_TERMIOS 1
9152 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9153 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9154 echo "configure:9155: checking for $ac_hdr" >&5
9155 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9156 echo $ac_n "(cached) $ac_c" 1>&6
9158 cat > conftest.$ac_ext <<EOF
9159 #line 9160 "configure"
9160 #include "confdefs.h"
9163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9164 { (eval echo configure:9165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9166 if test -z "$ac_err"; then
9168 eval "ac_cv_header_$ac_safe=yes"
9171 echo "configure: failed program was:" >&5
9172 cat conftest.$ac_ext >&5
9174 eval "ac_cv_header_$ac_safe=no"
9178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9179 echo "$ac_t""yes" 1>&6
9180 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9181 cat >> confdefs.h <<EOF
9182 #define $ac_tr_hdr 1
9186 echo "$ac_t""no" 1>&6
9193 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
9194 echo "configure:9195: checking for sigset in -lV3" >&5
9195 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
9196 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9197 echo $ac_n "(cached) $ac_c" 1>&6
9199 ac_save_LIBS="$LIBS"
9201 cat > conftest.$ac_ext <<EOF
9202 #line 9203 "configure"
9203 #include "confdefs.h"
9204 /* Override any gcc2 internal prototype to avoid an error. */
9205 /* We use char because int might match the return type of a gcc2
9206 builtin and then its argument prototype would still apply. */
9213 if { (eval echo configure:9214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9215 eval "ac_cv_lib_$ac_lib_var=yes"
9217 echo "configure: failed program was:" >&5
9218 cat conftest.$ac_ext >&5
9220 eval "ac_cv_lib_$ac_lib_var=no"
9223 LIBS="$ac_save_LIBS"
9226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9227 echo "$ac_t""yes" 1>&6
9228 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9229 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9230 cat >> confdefs.h <<EOF
9231 #define $ac_tr_lib 1
9237 echo "$ac_t""no" 1>&6
9241 if test "$ac_cv_header_winsock_h" = yes; then
9242 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9243 echo "configure:9244: checking for winsock" >&5
9244 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
9245 echo $ac_n "(cached) $ac_c" 1>&6
9248 for curlib in ws2_32 wsock32; do
9249 LIBS="$LIBS -l$curlib"
9250 cat > conftest.$ac_ext <<EOF
9251 #line 9252 "configure"
9252 #include "confdefs.h"
9253 #include <winsock.h>
9258 select(0,NULL,NULL,NULL,NULL);
9260 gethostname(NULL,0);
9264 if { (eval echo configure:9265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9268 echo "configure: failed program was:" >&5
9269 cat conftest.$ac_ext >&5
9275 if test $ol_cv_winsock = yes; then
9276 cat >> confdefs.h <<\EOF
9277 #define HAVE_WINSOCK 1
9280 ac_cv_func_socket=yes
9281 ac_cv_func_select=yes
9282 ac_cv_func_closesocket=yes
9283 ac_cv_func_gethostname=yes
9284 if test $curlib = ws2_32; then
9285 ol_cv_winsock=winsock2
9286 cat >> confdefs.h <<\EOF
9287 #define HAVE_WINSOCK2 1
9297 echo "$ac_t""$ol_cv_winsock" 1>&6
9301 echo $ac_n "checking for socket""... $ac_c" 1>&6
9302 echo "configure:9303: checking for socket" >&5
9303 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9304 echo $ac_n "(cached) $ac_c" 1>&6
9306 cat > conftest.$ac_ext <<EOF
9307 #line 9308 "configure"
9308 #include "confdefs.h"
9309 /* System header to define __stub macros and hopefully few prototypes,
9310 which can conflict with char socket(); below. */
9312 /* Override any gcc2 internal prototype to avoid an error. */
9313 /* We use char because int might match the return type of a gcc2
9314 builtin and then its argument prototype would still apply. */
9320 /* The GNU C library defines this for functions which it implements
9321 to always fail with ENOSYS. Some functions are actually named
9322 something starting with __ and the normal name is an alias. */
9323 #if defined (__stub_socket) || defined (__stub___socket)
9331 if { (eval echo configure:9332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9333 eval "ac_cv_func_socket=yes"
9335 echo "configure: failed program was:" >&5
9336 cat conftest.$ac_ext >&5
9338 eval "ac_cv_func_socket=no"
9343 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9344 echo "$ac_t""yes" 1>&6
9347 echo "$ac_t""no" 1>&6
9349 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9350 echo "configure:9351: checking for main in -lsocket" >&5
9351 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9352 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9353 echo $ac_n "(cached) $ac_c" 1>&6
9355 ac_save_LIBS="$LIBS"
9356 LIBS="-lsocket $LIBS"
9357 cat > conftest.$ac_ext <<EOF
9358 #line 9359 "configure"
9359 #include "confdefs.h"
9365 if { (eval echo configure:9366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9367 eval "ac_cv_lib_$ac_lib_var=yes"
9369 echo "configure: failed program was:" >&5
9370 cat conftest.$ac_ext >&5
9372 eval "ac_cv_lib_$ac_lib_var=no"
9375 LIBS="$ac_save_LIBS"
9378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9379 echo "$ac_t""yes" 1>&6
9380 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9381 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9382 cat >> confdefs.h <<EOF
9383 #define $ac_tr_lib 1
9386 LIBS="-lsocket $LIBS"
9389 echo "$ac_t""no" 1>&6
9392 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9393 echo "configure:9394: checking for main in -lnet" >&5
9394 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9395 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9396 echo $ac_n "(cached) $ac_c" 1>&6
9398 ac_save_LIBS="$LIBS"
9400 cat > conftest.$ac_ext <<EOF
9401 #line 9402 "configure"
9402 #include "confdefs.h"
9408 if { (eval echo configure:9409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9410 eval "ac_cv_lib_$ac_lib_var=yes"
9412 echo "configure: failed program was:" >&5
9413 cat conftest.$ac_ext >&5
9415 eval "ac_cv_lib_$ac_lib_var=no"
9418 LIBS="$ac_save_LIBS"
9421 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9422 echo "$ac_t""yes" 1>&6
9423 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9424 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9425 cat >> confdefs.h <<EOF
9426 #define $ac_tr_lib 1
9432 echo "$ac_t""no" 1>&6
9435 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9436 echo "configure:9437: checking for main in -lnsl_s" >&5
9437 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9438 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9439 echo $ac_n "(cached) $ac_c" 1>&6
9441 ac_save_LIBS="$LIBS"
9442 LIBS="-lnsl_s $LIBS"
9443 cat > conftest.$ac_ext <<EOF
9444 #line 9445 "configure"
9445 #include "confdefs.h"
9451 if { (eval echo configure:9452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9453 eval "ac_cv_lib_$ac_lib_var=yes"
9455 echo "configure: failed program was:" >&5
9456 cat conftest.$ac_ext >&5
9458 eval "ac_cv_lib_$ac_lib_var=no"
9461 LIBS="$ac_save_LIBS"
9464 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9465 echo "$ac_t""yes" 1>&6
9466 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9467 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9468 cat >> confdefs.h <<EOF
9469 #define $ac_tr_lib 1
9472 LIBS="-lnsl_s $LIBS"
9475 echo "$ac_t""no" 1>&6
9478 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9479 echo "configure:9480: checking for main in -lnsl" >&5
9480 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9481 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9482 echo $ac_n "(cached) $ac_c" 1>&6
9484 ac_save_LIBS="$LIBS"
9486 cat > conftest.$ac_ext <<EOF
9487 #line 9488 "configure"
9488 #include "confdefs.h"
9494 if { (eval echo configure:9495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9496 eval "ac_cv_lib_$ac_lib_var=yes"
9498 echo "configure: failed program was:" >&5
9499 cat conftest.$ac_ext >&5
9501 eval "ac_cv_lib_$ac_lib_var=no"
9504 LIBS="$ac_save_LIBS"
9507 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9508 echo "$ac_t""yes" 1>&6
9509 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9510 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9511 cat >> confdefs.h <<EOF
9512 #define $ac_tr_lib 1
9518 echo "$ac_t""no" 1>&6
9521 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9522 echo "configure:9523: checking for socket in -linet" >&5
9523 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9524 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9525 echo $ac_n "(cached) $ac_c" 1>&6
9527 ac_save_LIBS="$LIBS"
9529 cat > conftest.$ac_ext <<EOF
9530 #line 9531 "configure"
9531 #include "confdefs.h"
9532 /* Override any gcc2 internal prototype to avoid an error. */
9533 /* We use char because int might match the return type of a gcc2
9534 builtin and then its argument prototype would still apply. */
9541 if { (eval echo configure:9542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9543 eval "ac_cv_lib_$ac_lib_var=yes"
9545 echo "configure: failed program was:" >&5
9546 cat conftest.$ac_ext >&5
9548 eval "ac_cv_lib_$ac_lib_var=no"
9551 LIBS="$ac_save_LIBS"
9554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9555 echo "$ac_t""yes" 1>&6
9556 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9557 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9558 cat >> confdefs.h <<EOF
9559 #define $ac_tr_lib 1
9565 echo "$ac_t""no" 1>&6
9568 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9569 echo "configure:9570: checking for main in -lgen" >&5
9570 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9571 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9572 echo $ac_n "(cached) $ac_c" 1>&6
9574 ac_save_LIBS="$LIBS"
9576 cat > conftest.$ac_ext <<EOF
9577 #line 9578 "configure"
9578 #include "confdefs.h"
9584 if { (eval echo configure:9585: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9586 eval "ac_cv_lib_$ac_lib_var=yes"
9588 echo "configure: failed program was:" >&5
9589 cat conftest.$ac_ext >&5
9591 eval "ac_cv_lib_$ac_lib_var=no"
9594 LIBS="$ac_save_LIBS"
9597 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9598 echo "$ac_t""yes" 1>&6
9599 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9600 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9601 cat >> confdefs.h <<EOF
9602 #define $ac_tr_lib 1
9608 echo "$ac_t""no" 1>&6
9615 echo $ac_n "checking for select""... $ac_c" 1>&6
9616 echo "configure:9617: checking for select" >&5
9617 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9618 echo $ac_n "(cached) $ac_c" 1>&6
9620 cat > conftest.$ac_ext <<EOF
9621 #line 9622 "configure"
9622 #include "confdefs.h"
9623 /* System header to define __stub macros and hopefully few prototypes,
9624 which can conflict with char select(); below. */
9626 /* Override any gcc2 internal prototype to avoid an error. */
9627 /* We use char because int might match the return type of a gcc2
9628 builtin and then its argument prototype would still apply. */
9634 /* The GNU C library defines this for functions which it implements
9635 to always fail with ENOSYS. Some functions are actually named
9636 something starting with __ and the normal name is an alias. */
9637 #if defined (__stub_select) || defined (__stub___select)
9645 if { (eval echo configure:9646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9647 eval "ac_cv_func_select=yes"
9649 echo "configure: failed program was:" >&5
9650 cat conftest.$ac_ext >&5
9652 eval "ac_cv_func_select=no"
9657 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9658 echo "$ac_t""yes" 1>&6
9661 echo "$ac_t""no" 1>&6
9662 { echo "configure: error: select() required." 1>&2; exit 1; }
9666 if test "${ac_cv_header_winsock_h}" != yes; then
9667 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9668 echo "configure:9669: checking types of arguments for select()" >&5
9669 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9670 echo $ac_n "(cached) $ac_c" 1>&6
9672 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9673 echo $ac_n "(cached) $ac_c" 1>&6
9675 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9676 echo $ac_n "(cached) $ac_c" 1>&6
9678 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9679 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9680 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9681 cat > conftest.$ac_ext <<EOF
9682 #line 9683 "configure"
9683 #include "confdefs.h"
9684 #ifdef HAVE_SYS_TYPES_H
9685 #include <sys/types.h>
9687 #ifdef HAVE_SYS_TIME_H
9688 #include <sys/time.h>
9690 #ifdef HAVE_SYS_SELECT_H
9691 #include <sys/select.h>
9693 #ifdef HAVE_SYS_SOCKET_H
9694 #include <sys/socket.h>
9696 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);
9701 if { (eval echo configure:9702: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9703 ac_not_found=no ; break 3
9705 echo "configure: failed program was:" >&5
9706 cat conftest.$ac_ext >&5
9720 if test "$ac_not_found" = yes; then
9721 ac_cv_func_select_arg1=int
9722 ac_cv_func_select_arg234='int *'
9723 ac_cv_func_select_arg5='struct timeval *'
9725 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9726 cat >> confdefs.h <<EOF
9727 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9730 cat >> confdefs.h <<EOF
9731 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9734 cat >> confdefs.h <<EOF
9735 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9742 for ac_hdr in regex.h
9744 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9745 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9746 echo "configure:9747: checking for $ac_hdr" >&5
9747 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9748 echo $ac_n "(cached) $ac_c" 1>&6
9750 cat > conftest.$ac_ext <<EOF
9751 #line 9752 "configure"
9752 #include "confdefs.h"
9755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9756 { (eval echo configure:9757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9758 if test -z "$ac_err"; then
9760 eval "ac_cv_header_$ac_safe=yes"
9763 echo "configure: failed program was:" >&5
9764 cat conftest.$ac_ext >&5
9766 eval "ac_cv_header_$ac_safe=no"
9770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9771 echo "$ac_t""yes" 1>&6
9772 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9773 cat >> confdefs.h <<EOF
9774 #define $ac_tr_hdr 1
9778 echo "$ac_t""no" 1>&6
9782 if test "$ac_cv_header_regex_h" != yes ; then
9783 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9786 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9787 echo "configure:9788: checking for library containing regfree" >&5
9788 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9789 echo $ac_n "(cached) $ac_c" 1>&6
9791 ac_func_search_save_LIBS="$LIBS"
9792 ac_cv_search_regfree="no"
9793 cat > conftest.$ac_ext <<EOF
9794 #line 9795 "configure"
9795 #include "confdefs.h"
9796 /* Override any gcc2 internal prototype to avoid an error. */
9797 /* We use char because int might match the return type of a gcc2
9798 builtin and then its argument prototype would still apply. */
9805 if { (eval echo configure:9806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9807 ac_cv_search_regfree="none required"
9809 echo "configure: failed program was:" >&5
9810 cat conftest.$ac_ext >&5
9813 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9814 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9815 cat > conftest.$ac_ext <<EOF
9816 #line 9817 "configure"
9817 #include "confdefs.h"
9818 /* Override any gcc2 internal prototype to avoid an error. */
9819 /* We use char because int might match the return type of a gcc2
9820 builtin and then its argument prototype would still apply. */
9827 if { (eval echo configure:9828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9829 ac_cv_search_regfree="-l$ac_lib"
9832 echo "configure: failed program was:" >&5
9833 cat conftest.$ac_ext >&5
9837 LIBS="$ac_func_search_save_LIBS"
9840 echo "$ac_t""$ac_cv_search_regfree" 1>&6
9841 if test "$ac_cv_search_regfree" != "no"; then
9842 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
9845 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
9849 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
9850 echo "configure:9851: checking for compatible POSIX regex" >&5
9851 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
9852 echo $ac_n "(cached) $ac_c" 1>&6
9855 if test "$cross_compiling" = yes; then
9856 ol_cv_c_posix_regex=cross
9858 cat > conftest.$ac_ext <<EOF
9859 #line 9860 "configure"
9860 #include "confdefs.h"
9862 #include <sys/types.h>
9864 static char *pattern, *string;
9872 if(regcomp(&re, pattern, 0)) {
9876 string = "ALL MATCH";
9878 rc = regexec(&re, string, 0, (void*)0, 0);
9885 if { (eval echo configure:9886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9887 ol_cv_c_posix_regex=yes
9889 echo "configure: failed program was:" >&5
9890 cat conftest.$ac_ext >&5
9892 ol_cv_c_posix_regex=no
9899 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
9901 if test "$ol_cv_c_posix_regex" = no ; then
9902 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
9907 for ac_hdr in sys/uuid.h
9909 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9910 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9911 echo "configure:9912: checking for $ac_hdr" >&5
9912 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9913 echo $ac_n "(cached) $ac_c" 1>&6
9915 cat > conftest.$ac_ext <<EOF
9916 #line 9917 "configure"
9917 #include "confdefs.h"
9920 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9921 { (eval echo configure:9922: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9922 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9923 if test -z "$ac_err"; then
9925 eval "ac_cv_header_$ac_safe=yes"
9928 echo "configure: failed program was:" >&5
9929 cat conftest.$ac_ext >&5
9931 eval "ac_cv_header_$ac_safe=no"
9935 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9936 echo "$ac_t""yes" 1>&6
9937 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9938 cat >> confdefs.h <<EOF
9939 #define $ac_tr_hdr 1
9943 echo "$ac_t""no" 1>&6
9947 if test $ac_cv_header_sys_uuid_h = yes ; then
9950 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
9951 echo "configure:9952: checking for library containing uuid_to_str" >&5
9952 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
9953 echo $ac_n "(cached) $ac_c" 1>&6
9955 ac_func_search_save_LIBS="$LIBS"
9956 ac_cv_search_uuid_to_str="no"
9957 cat > conftest.$ac_ext <<EOF
9958 #line 9959 "configure"
9959 #include "confdefs.h"
9960 /* Override any gcc2 internal prototype to avoid an error. */
9961 /* We use char because int might match the return type of a gcc2
9962 builtin and then its argument prototype would still apply. */
9969 if { (eval echo configure:9970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9971 ac_cv_search_uuid_to_str="none required"
9973 echo "configure: failed program was:" >&5
9974 cat conftest.$ac_ext >&5
9977 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
9978 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9979 cat > conftest.$ac_ext <<EOF
9980 #line 9981 "configure"
9981 #include "confdefs.h"
9982 /* Override any gcc2 internal prototype to avoid an error. */
9983 /* We use char because int might match the return type of a gcc2
9984 builtin and then its argument prototype would still apply. */
9991 if { (eval echo configure:9992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9993 ac_cv_search_uuid_to_str="-l$ac_lib"
9996 echo "configure: failed program was:" >&5
9997 cat conftest.$ac_ext >&5
10001 LIBS="$ac_func_search_save_LIBS"
10004 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
10005 if test "$ac_cv_search_uuid_to_str" != "no"; then
10006 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
10013 if test have_uuid = yes ; then
10014 cat >> confdefs.h <<\EOF
10015 #define HAVE_UUID_TO_STR 1
10019 test "$ac_cv_search_uuid_to_str" = "none required" || \
10020 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
10024 if test $have_uuid = no ; then
10025 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
10026 echo "configure:10027: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
10028 LIBS="$LIBS -lrpcrt4"
10029 cat > conftest.$ac_ext <<EOF
10030 #line 10031 "configure"
10031 #include "confdefs.h"
10033 int __stdcall UuidCreate(void *);
10034 int __stdcall UuidToStringA(void *,void **);
10039 UuidToStringA(0,0);
10043 if { (eval echo configure:10044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10047 echo "configure: failed program was:" >&5
10048 cat conftest.$ac_ext >&5
10053 if test $need_rpcrt = yes; then
10054 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
10057 echo "$ac_t""$need_rpcrt" 1>&6
10061 echo $ac_n "checking for res_query""... $ac_c" 1>&6
10062 echo "configure:10063: checking for res_query" >&5
10063 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
10064 echo $ac_n "(cached) $ac_c" 1>&6
10066 cat > conftest.$ac_ext <<EOF
10067 #line 10068 "configure"
10068 #include "confdefs.h"
10069 /* System header to define __stub macros and hopefully few prototypes,
10070 which can conflict with char res_query(); below. */
10071 #include <assert.h>
10072 /* Override any gcc2 internal prototype to avoid an error. */
10073 /* We use char because int might match the return type of a gcc2
10074 builtin and then its argument prototype would still apply. */
10080 /* The GNU C library defines this for functions which it implements
10081 to always fail with ENOSYS. Some functions are actually named
10082 something starting with __ and the normal name is an alias. */
10083 #if defined (__stub_res_query) || defined (__stub___res_query)
10091 if { (eval echo configure:10092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10093 eval "ac_cv_func_res_query=yes"
10095 echo "configure: failed program was:" >&5
10096 cat conftest.$ac_ext >&5
10098 eval "ac_cv_func_res_query=no"
10103 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
10104 echo "$ac_t""yes" 1>&6
10107 echo "$ac_t""no" 1>&6
10110 if test $ac_cv_func_res_query = no ; then
10111 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
10112 echo "configure:10113: checking for __res_query" >&5
10113 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
10114 echo $ac_n "(cached) $ac_c" 1>&6
10116 cat > conftest.$ac_ext <<EOF
10117 #line 10118 "configure"
10118 #include "confdefs.h"
10119 /* System header to define __stub macros and hopefully few prototypes,
10120 which can conflict with char __res_query(); below. */
10121 #include <assert.h>
10122 /* Override any gcc2 internal prototype to avoid an error. */
10123 /* We use char because int might match the return type of a gcc2
10124 builtin and then its argument prototype would still apply. */
10125 char __res_query();
10130 /* The GNU C library defines this for functions which it implements
10131 to always fail with ENOSYS. Some functions are actually named
10132 something starting with __ and the normal name is an alias. */
10133 #if defined (__stub___res_query) || defined (__stub_____res_query)
10141 if { (eval echo configure:10142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10143 eval "ac_cv_func___res_query=yes"
10145 echo "configure: failed program was:" >&5
10146 cat conftest.$ac_ext >&5
10148 eval "ac_cv_func___res_query=no"
10153 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
10154 echo "$ac_t""yes" 1>&6
10157 echo "$ac_t""no" 1>&6
10160 ac_cv_func_res_query=$ac_cv_func___res_query
10163 if test $ac_cv_func_res_query = no ; then
10164 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
10165 echo "configure:10166: checking for res_query in -lbind" >&5
10166 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
10167 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10168 echo $ac_n "(cached) $ac_c" 1>&6
10170 ac_save_LIBS="$LIBS"
10171 LIBS="-lbind $LIBS"
10172 cat > conftest.$ac_ext <<EOF
10173 #line 10174 "configure"
10174 #include "confdefs.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. */
10184 if { (eval echo configure:10185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10186 eval "ac_cv_lib_$ac_lib_var=yes"
10188 echo "configure: failed program was:" >&5
10189 cat conftest.$ac_ext >&5
10191 eval "ac_cv_lib_$ac_lib_var=no"
10194 LIBS="$ac_save_LIBS"
10197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10198 echo "$ac_t""yes" 1>&6
10199 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10200 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10201 cat >> confdefs.h <<EOF
10202 #define $ac_tr_lib 1
10205 LIBS="-lbind $LIBS"
10208 echo "$ac_t""no" 1>&6
10211 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10214 if test $ac_cv_func_res_query = no ; then
10215 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10216 echo "configure:10217: checking for __res_query in -lbind" >&5
10217 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10218 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10219 echo $ac_n "(cached) $ac_c" 1>&6
10221 ac_save_LIBS="$LIBS"
10222 LIBS="-lbind $LIBS"
10223 cat > conftest.$ac_ext <<EOF
10224 #line 10225 "configure"
10225 #include "confdefs.h"
10226 /* Override any gcc2 internal prototype to avoid an error. */
10227 /* We use char because int might match the return type of a gcc2
10228 builtin and then its argument prototype would still apply. */
10229 char __res_query();
10235 if { (eval echo configure:10236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10237 eval "ac_cv_lib_$ac_lib_var=yes"
10239 echo "configure: failed program was:" >&5
10240 cat conftest.$ac_ext >&5
10242 eval "ac_cv_lib_$ac_lib_var=no"
10245 LIBS="$ac_save_LIBS"
10248 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10249 echo "$ac_t""yes" 1>&6
10250 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10251 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10252 cat >> confdefs.h <<EOF
10253 #define $ac_tr_lib 1
10256 LIBS="-lbind $LIBS"
10259 echo "$ac_t""no" 1>&6
10262 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10265 if test $ac_cv_func_res_query = no ; then
10266 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10267 echo "configure:10268: checking for res_query in -lresolv" >&5
10268 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10269 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10270 echo $ac_n "(cached) $ac_c" 1>&6
10272 ac_save_LIBS="$LIBS"
10273 LIBS="-lresolv $LIBS"
10274 cat > conftest.$ac_ext <<EOF
10275 #line 10276 "configure"
10276 #include "confdefs.h"
10277 /* Override any gcc2 internal prototype to avoid an error. */
10278 /* We use char because int might match the return type of a gcc2
10279 builtin and then its argument prototype would still apply. */
10286 if { (eval echo configure:10287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10288 eval "ac_cv_lib_$ac_lib_var=yes"
10290 echo "configure: failed program was:" >&5
10291 cat conftest.$ac_ext >&5
10293 eval "ac_cv_lib_$ac_lib_var=no"
10296 LIBS="$ac_save_LIBS"
10299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10300 echo "$ac_t""yes" 1>&6
10301 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10302 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10303 cat >> confdefs.h <<EOF
10304 #define $ac_tr_lib 1
10307 LIBS="-lresolv $LIBS"
10310 echo "$ac_t""no" 1>&6
10313 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10316 if test $ac_cv_func_res_query = no ; then
10317 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10318 echo "configure:10319: checking for __res_query in -lresolv" >&5
10319 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10320 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10321 echo $ac_n "(cached) $ac_c" 1>&6
10323 ac_save_LIBS="$LIBS"
10324 LIBS="-lresolv $LIBS"
10325 cat > conftest.$ac_ext <<EOF
10326 #line 10327 "configure"
10327 #include "confdefs.h"
10328 /* Override any gcc2 internal prototype to avoid an error. */
10329 /* We use char because int might match the return type of a gcc2
10330 builtin and then its argument prototype would still apply. */
10331 char __res_query();
10337 if { (eval echo configure:10338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10339 eval "ac_cv_lib_$ac_lib_var=yes"
10341 echo "configure: failed program was:" >&5
10342 cat conftest.$ac_ext >&5
10344 eval "ac_cv_lib_$ac_lib_var=no"
10347 LIBS="$ac_save_LIBS"
10350 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10351 echo "$ac_t""yes" 1>&6
10352 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10353 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10354 cat >> confdefs.h <<EOF
10355 #define $ac_tr_lib 1
10358 LIBS="-lresolv $LIBS"
10361 echo "$ac_t""no" 1>&6
10364 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10367 if test "$ac_cv_func_res_query" = yes ; then
10368 cat >> confdefs.h <<\EOF
10369 #define HAVE_RES_QUERY 1
10373 if test $ol_enable_dnssrv != no ; then
10378 if test "$ol_enable_dnssrv" = yes -a "$ol_link_dnssrv" = no ; then
10379 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10382 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
10384 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10385 echo "configure:10386: checking for $ac_func" >&5
10386 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10387 echo $ac_n "(cached) $ac_c" 1>&6
10389 cat > conftest.$ac_ext <<EOF
10390 #line 10391 "configure"
10391 #include "confdefs.h"
10392 /* System header to define __stub macros and hopefully few prototypes,
10393 which can conflict with char $ac_func(); below. */
10394 #include <assert.h>
10395 /* Override any gcc2 internal prototype to avoid an error. */
10396 /* We use char because int might match the return type of a gcc2
10397 builtin and then its argument prototype would still apply. */
10403 /* The GNU C library defines this for functions which it implements
10404 to always fail with ENOSYS. Some functions are actually named
10405 something starting with __ and the normal name is an alias. */
10406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10414 if { (eval echo configure:10415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10416 eval "ac_cv_func_$ac_func=yes"
10418 echo "configure: failed program was:" >&5
10419 cat conftest.$ac_ext >&5
10421 eval "ac_cv_func_$ac_func=no"
10426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10427 echo "$ac_t""yes" 1>&6
10428 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10429 cat >> confdefs.h <<EOF
10430 #define $ac_tr_func 1
10434 echo "$ac_t""no" 1>&6
10440 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10441 if test $ol_enable_ipv6 = yes ; then
10442 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10444 elif test $ol_enable_ipv6 != no ; then
10445 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10446 echo "configure:10447: checking INET6_ADDRSTRLEN" >&5
10447 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10448 echo $ac_n "(cached) $ac_c" 1>&6
10451 cat > conftest.$ac_ext <<EOF
10452 #line 10453 "configure"
10453 #include "confdefs.h"
10455 # include <netinet/in.h>
10456 # ifdef INET6_ADDRSTRLEN
10457 __has_inet6_addrstrlen__;
10461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10462 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10464 ol_cv_inet6_addrstrlen=yes
10467 ol_cv_inet6_addrstrlen=no
10473 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10476 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10477 echo "configure:10478: checking struct sockaddr_storage" >&5
10478 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10479 echo $ac_n "(cached) $ac_c" 1>&6
10482 cat > conftest.$ac_ext <<EOF
10483 #line 10484 "configure"
10484 #include "confdefs.h"
10486 #include <sys/types.h>
10487 #include <sys/socket.h>
10491 struct sockaddr_storage ss;
10495 if { (eval echo configure:10496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10497 ol_cv_struct_sockaddr_storage=yes
10499 echo "configure: failed program was:" >&5
10500 cat conftest.$ac_ext >&5
10502 ol_cv_struct_sockaddr_storage=no
10507 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10509 if test $ol_cv_inet6_addrstrlen = yes \
10510 -a $ol_cv_struct_sockaddr_storage = yes ; then
10512 elif test $ol_enable_ipv6 = yes \
10513 -a $ol_cv_inet6_addrstrlen = no ; then
10514 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10515 elif test $ol_enable_ipv6 = yes \
10516 -a $ol_cv_struct_sockaddr_storage = no ; then
10517 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10521 if test $ol_enable_local != no ; then
10522 for ac_hdr in sys/un.h
10524 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10525 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10526 echo "configure:10527: checking for $ac_hdr" >&5
10527 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10528 echo $ac_n "(cached) $ac_c" 1>&6
10530 cat > conftest.$ac_ext <<EOF
10531 #line 10532 "configure"
10532 #include "confdefs.h"
10535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10536 { (eval echo configure:10537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10538 if test -z "$ac_err"; then
10540 eval "ac_cv_header_$ac_safe=yes"
10543 echo "configure: failed program was:" >&5
10544 cat conftest.$ac_ext >&5
10546 eval "ac_cv_header_$ac_safe=no"
10550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10551 echo "$ac_t""yes" 1>&6
10552 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10553 cat >> confdefs.h <<EOF
10554 #define $ac_tr_hdr 1
10558 echo "$ac_t""no" 1>&6
10563 if test $ol_enable_local = auto ; then
10564 ol_enable_local=$ac_cv_header_sys_un_h
10565 elif test $ac_cv_header_sys_un_h = no ; then
10566 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10574 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10575 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10576 -o $ol_with_kerberos = k425 ; then
10578 for ac_hdr in krb5.h
10580 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10581 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10582 echo "configure:10583: checking for $ac_hdr" >&5
10583 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10584 echo $ac_n "(cached) $ac_c" 1>&6
10586 cat > conftest.$ac_ext <<EOF
10587 #line 10588 "configure"
10588 #include "confdefs.h"
10591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10592 { (eval echo configure:10593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10594 if test -z "$ac_err"; then
10596 eval "ac_cv_header_$ac_safe=yes"
10599 echo "configure: failed program was:" >&5
10600 cat conftest.$ac_ext >&5
10602 eval "ac_cv_header_$ac_safe=no"
10606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10607 echo "$ac_t""yes" 1>&6
10608 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10609 cat >> confdefs.h <<EOF
10610 #define $ac_tr_hdr 1
10614 echo "$ac_t""no" 1>&6
10619 if test $ac_cv_header_krb5_h = yes ; then
10620 for ac_hdr in heim_err.h
10622 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10623 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10624 echo "configure:10625: checking for $ac_hdr" >&5
10625 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10626 echo $ac_n "(cached) $ac_c" 1>&6
10628 cat > conftest.$ac_ext <<EOF
10629 #line 10630 "configure"
10630 #include "confdefs.h"
10633 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10634 { (eval echo configure:10635: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10635 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10636 if test -z "$ac_err"; then
10638 eval "ac_cv_header_$ac_safe=yes"
10641 echo "configure: failed program was:" >&5
10642 cat conftest.$ac_ext >&5
10644 eval "ac_cv_header_$ac_safe=no"
10648 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10649 echo "$ac_t""yes" 1>&6
10650 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10651 cat >> confdefs.h <<EOF
10652 #define $ac_tr_hdr 1
10656 echo "$ac_t""no" 1>&6
10660 if test $ac_cv_header_heim_err_h = yes ; then
10666 if test $krb5_impl = mit; then
10667 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10668 echo "configure:10669: checking for main in -lk5crypto" >&5
10669 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10670 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10671 echo $ac_n "(cached) $ac_c" 1>&6
10673 ac_save_LIBS="$LIBS"
10674 LIBS="-lk5crypto $LIBS"
10675 cat > conftest.$ac_ext <<EOF
10676 #line 10677 "configure"
10677 #include "confdefs.h"
10683 if { (eval echo configure:10684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10685 eval "ac_cv_lib_$ac_lib_var=yes"
10687 echo "configure: failed program was:" >&5
10688 cat conftest.$ac_ext >&5
10690 eval "ac_cv_lib_$ac_lib_var=no"
10693 LIBS="$ac_save_LIBS"
10696 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10697 echo "$ac_t""yes" 1>&6
10698 krb5crypto=k5crypto
10700 echo "$ac_t""no" 1>&6
10705 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10706 echo "configure:10707: checking for main in -lkrb5" >&5
10707 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10708 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10709 echo $ac_n "(cached) $ac_c" 1>&6
10711 ac_save_LIBS="$LIBS"
10712 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10713 cat > conftest.$ac_ext <<EOF
10714 #line 10715 "configure"
10715 #include "confdefs.h"
10721 if { (eval echo configure:10722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10723 eval "ac_cv_lib_$ac_lib_var=yes"
10725 echo "configure: failed program was:" >&5
10726 cat conftest.$ac_ext >&5
10728 eval "ac_cv_lib_$ac_lib_var=no"
10731 LIBS="$ac_save_LIBS"
10734 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10735 echo "$ac_t""yes" 1>&6
10737 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10739 echo "$ac_t""no" 1>&6
10744 elif test $krb5_impl = heimdal; then
10745 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10746 echo "configure:10747: checking for main in -ldes" >&5
10747 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10748 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10749 echo $ac_n "(cached) $ac_c" 1>&6
10751 ac_save_LIBS="$LIBS"
10753 cat > conftest.$ac_ext <<EOF
10754 #line 10755 "configure"
10755 #include "confdefs.h"
10761 if { (eval echo configure:10762: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10763 eval "ac_cv_lib_$ac_lib_var=yes"
10765 echo "configure: failed program was:" >&5
10766 cat conftest.$ac_ext >&5
10768 eval "ac_cv_lib_$ac_lib_var=no"
10771 LIBS="$ac_save_LIBS"
10774 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10775 echo "$ac_t""yes" 1>&6
10778 echo "$ac_t""no" 1>&6
10783 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10784 echo "configure:10785: checking for main in -lkrb5" >&5
10785 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10786 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10787 echo $ac_n "(cached) $ac_c" 1>&6
10789 ac_save_LIBS="$LIBS"
10790 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10791 cat > conftest.$ac_ext <<EOF
10792 #line 10793 "configure"
10793 #include "confdefs.h"
10799 if { (eval echo configure:10800: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10801 eval "ac_cv_lib_$ac_lib_var=yes"
10803 echo "configure: failed program was:" >&5
10804 cat conftest.$ac_ext >&5
10806 eval "ac_cv_lib_$ac_lib_var=no"
10809 LIBS="$ac_save_LIBS"
10812 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10813 echo "$ac_t""yes" 1>&6
10815 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10817 echo "$ac_t""no" 1>&6
10822 cat >> confdefs.h <<\EOF
10823 #define HAVE_HEIMDAL_KERBEROS 1
10829 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
10832 if test $have_krb5 = yes ; then
10835 cat >> confdefs.h <<\EOF
10836 #define HAVE_KRB5 1
10840 if test $ol_with_kerberos = k5only ; then
10841 ol_with_kerberos=found
10844 elif test $ol_with_kerberos != auto ; then
10845 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
10851 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
10852 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
10854 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
10856 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10857 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10858 echo "configure:10859: checking for $ac_hdr" >&5
10859 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10860 echo $ac_n "(cached) $ac_c" 1>&6
10862 cat > conftest.$ac_ext <<EOF
10863 #line 10864 "configure"
10864 #include "confdefs.h"
10867 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10868 { (eval echo configure:10869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10869 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10870 if test -z "$ac_err"; then
10872 eval "ac_cv_header_$ac_safe=yes"
10875 echo "configure: failed program was:" >&5
10876 cat conftest.$ac_ext >&5
10878 eval "ac_cv_header_$ac_safe=no"
10882 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10883 echo "$ac_t""yes" 1>&6
10884 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10885 cat >> confdefs.h <<EOF
10886 #define $ac_tr_hdr 1
10890 echo "$ac_t""no" 1>&6
10895 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
10896 if test $krb5_impl = mit; then
10897 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10898 echo "configure:10899: checking for main in -lkrb4" >&5
10899 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10900 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10901 echo $ac_n "(cached) $ac_c" 1>&6
10903 ac_save_LIBS="$LIBS"
10904 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
10905 cat > conftest.$ac_ext <<EOF
10906 #line 10907 "configure"
10907 #include "confdefs.h"
10913 if { (eval echo configure:10914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10915 eval "ac_cv_lib_$ac_lib_var=yes"
10917 echo "configure: failed program was:" >&5
10918 cat conftest.$ac_ext >&5
10920 eval "ac_cv_lib_$ac_lib_var=no"
10923 LIBS="$ac_save_LIBS"
10926 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10927 echo "$ac_t""yes" 1>&6
10929 KRB4_LIBS="-lkrb4 -ldes425"
10931 echo "$ac_t""no" 1>&6
10936 elif test $krb5_impl = heimdal; then
10937 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
10938 echo "configure:10939: checking for main in -lkrb4" >&5
10939 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
10940 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10941 echo $ac_n "(cached) $ac_c" 1>&6
10943 ac_save_LIBS="$LIBS"
10944 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10945 cat > conftest.$ac_ext <<EOF
10946 #line 10947 "configure"
10947 #include "confdefs.h"
10953 if { (eval echo configure:10954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10955 eval "ac_cv_lib_$ac_lib_var=yes"
10957 echo "configure: failed program was:" >&5
10958 cat conftest.$ac_ext >&5
10960 eval "ac_cv_lib_$ac_lib_var=no"
10963 LIBS="$ac_save_LIBS"
10966 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10967 echo "$ac_t""yes" 1>&6
10971 echo "$ac_t""no" 1>&6
10978 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
10981 if test $have_k425 = yes ; then
10982 ol_with_kerberos=found
10985 cat >> confdefs.h <<\EOF
10986 #define HAVE_KRB425 1
10989 cat >> confdefs.h <<\EOF
10990 #define HAVE_KRB4 1
10994 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
10995 echo "configure:10996: checking for des_debug in Kerberos libraries" >&5
10996 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
10997 echo $ac_n "(cached) $ac_c" 1>&6
11001 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
11002 cat > conftest.$ac_ext <<EOF
11003 #line 11004 "configure"
11004 #include "confdefs.h"
11006 #include <kerberosIV/krb.h>
11007 #include <kerberosIV/des.h>
11008 extern int des_debug;
11016 if { (eval echo configure:11017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11018 ol_cv_var_des_debug=yes
11020 echo "configure: failed program was:" >&5
11021 cat conftest.$ac_ext >&5
11023 ol_cv_var_des_debug=no
11030 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
11032 if test $ol_cv_var_des_debug = yes ; then
11033 cat >> confdefs.h <<\EOF
11034 #define HAVE_DES_DEBUG 1
11044 if test $ol_link_krb5 = yes ; then
11045 ol_with_kerberos=found
11048 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
11049 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
11051 for ac_hdr in krb.h des.h krb-archaeology.h
11053 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11054 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11055 echo "configure:11056: checking for $ac_hdr" >&5
11056 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11057 echo $ac_n "(cached) $ac_c" 1>&6
11059 cat > conftest.$ac_ext <<EOF
11060 #line 11061 "configure"
11061 #include "confdefs.h"
11064 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11065 { (eval echo configure:11066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11066 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11067 if test -z "$ac_err"; then
11069 eval "ac_cv_header_$ac_safe=yes"
11072 echo "configure: failed program was:" >&5
11073 cat conftest.$ac_ext >&5
11075 eval "ac_cv_header_$ac_safe=no"
11079 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11080 echo "$ac_t""yes" 1>&6
11081 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11082 cat >> confdefs.h <<EOF
11083 #define $ac_tr_hdr 1
11087 echo "$ac_t""no" 1>&6
11092 if test $ac_cv_header_krb_h = yes ; then
11093 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
11094 echo "configure:11095: checking for main in -lkrb" >&5
11095 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
11096 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11097 echo $ac_n "(cached) $ac_c" 1>&6
11099 ac_save_LIBS="$LIBS"
11100 LIBS="-lkrb -ldes $LIBS"
11101 cat > conftest.$ac_ext <<EOF
11102 #line 11103 "configure"
11103 #include "confdefs.h"
11109 if { (eval echo configure:11110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11111 eval "ac_cv_lib_$ac_lib_var=yes"
11113 echo "configure: failed program was:" >&5
11114 cat conftest.$ac_ext >&5
11116 eval "ac_cv_lib_$ac_lib_var=no"
11119 LIBS="$ac_save_LIBS"
11122 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11123 echo "$ac_t""yes" 1>&6
11126 echo "$ac_t""no" 1>&6
11131 if test $have_k4 = yes ; then
11132 ol_with_kerberos=found
11135 cat >> confdefs.h <<\EOF
11136 #define HAVE_KRB4 1
11140 KRB4_LIBS="-lkrb -ldes"
11142 if test $ac_cv_header_krb_archaeology_h = yes ; then
11143 cat >> confdefs.h <<\EOF
11144 #define HAVE_KTH_KERBEROS 1
11152 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
11155 elif test $ol_enable_kbind = yes ; then
11156 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
11159 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
11160 cat >> confdefs.h <<\EOF
11161 #define HAVE_KERBEROS 1
11165 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
11166 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
11170 if test $ol_with_tls != no ; then
11171 for ac_hdr in openssl/ssl.h ssl.h
11173 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11174 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11175 echo "configure:11176: checking for $ac_hdr" >&5
11176 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11177 echo $ac_n "(cached) $ac_c" 1>&6
11179 cat > conftest.$ac_ext <<EOF
11180 #line 11181 "configure"
11181 #include "confdefs.h"
11184 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11185 { (eval echo configure:11186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11186 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11187 if test -z "$ac_err"; then
11189 eval "ac_cv_header_$ac_safe=yes"
11192 echo "configure: failed program was:" >&5
11193 cat conftest.$ac_ext >&5
11195 eval "ac_cv_header_$ac_safe=no"
11199 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11200 echo "$ac_t""yes" 1>&6
11201 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11202 cat >> confdefs.h <<EOF
11203 #define $ac_tr_hdr 1
11207 echo "$ac_t""no" 1>&6
11212 if test $ac_cv_header_openssl_ssl_h = yes \
11213 -o $ac_cv_header_ssl_h = yes ; then
11214 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11215 echo "configure:11216: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11216 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11217 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11218 echo $ac_n "(cached) $ac_c" 1>&6
11220 ac_save_LIBS="$LIBS"
11221 LIBS="-lssl -lcrypto $LIBS"
11222 cat > conftest.$ac_ext <<EOF
11223 #line 11224 "configure"
11224 #include "confdefs.h"
11225 /* Override any gcc2 internal prototype to avoid an error. */
11226 /* We use char because int might match the return type of a gcc2
11227 builtin and then its argument prototype would still apply. */
11228 char SSLeay_add_ssl_algorithms();
11231 SSLeay_add_ssl_algorithms()
11234 if { (eval echo configure:11235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11236 eval "ac_cv_lib_$ac_lib_var=yes"
11238 echo "configure: failed program was:" >&5
11239 cat conftest.$ac_ext >&5
11241 eval "ac_cv_lib_$ac_lib_var=no"
11244 LIBS="$ac_save_LIBS"
11247 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11248 echo "$ac_t""yes" 1>&6
11252 echo "$ac_t""no" 1>&6
11257 if test $have_ssleay = no ; then
11258 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11259 echo "configure:11260: checking for SSL_library_init in -lssl" >&5
11260 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11261 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11262 echo $ac_n "(cached) $ac_c" 1>&6
11264 ac_save_LIBS="$LIBS"
11265 LIBS="-lssl -lcrypto $LIBS"
11266 cat > conftest.$ac_ext <<EOF
11267 #line 11268 "configure"
11268 #include "confdefs.h"
11269 /* Override any gcc2 internal prototype to avoid an error. */
11270 /* We use char because int might match the return type of a gcc2
11271 builtin and then its argument prototype would still apply. */
11272 char SSL_library_init();
11278 if { (eval echo configure:11279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11280 eval "ac_cv_lib_$ac_lib_var=yes"
11282 echo "configure: failed program was:" >&5
11283 cat conftest.$ac_ext >&5
11285 eval "ac_cv_lib_$ac_lib_var=no"
11288 LIBS="$ac_save_LIBS"
11291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11292 echo "$ac_t""yes" 1>&6
11296 echo "$ac_t""no" 1>&6
11302 if test $have_ssleay = no ; then
11303 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11304 echo "configure:11305: checking for ssl3_accept in -lssl" >&5
11305 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11306 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11307 echo $ac_n "(cached) $ac_c" 1>&6
11309 ac_save_LIBS="$LIBS"
11310 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11311 cat > conftest.$ac_ext <<EOF
11312 #line 11313 "configure"
11313 #include "confdefs.h"
11314 /* Override any gcc2 internal prototype to avoid an error. */
11315 /* We use char because int might match the return type of a gcc2
11316 builtin and then its argument prototype would still apply. */
11317 char ssl3_accept();
11323 if { (eval echo configure:11324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11325 eval "ac_cv_lib_$ac_lib_var=yes"
11327 echo "configure: failed program was:" >&5
11328 cat conftest.$ac_ext >&5
11330 eval "ac_cv_lib_$ac_lib_var=no"
11333 LIBS="$ac_save_LIBS"
11336 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11337 echo "$ac_t""yes" 1>&6
11341 echo "$ac_t""no" 1>&6
11347 if test $have_ssleay = yes ; then
11351 cat >> confdefs.h <<\EOF
11352 #define HAVE_SSLEAY 1
11356 if test $need_rsaref = yes; then
11357 cat >> confdefs.h <<\EOF
11358 #define HAVE_RSAREF 1
11362 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11364 TLS_LIBS="-lssl -lcrypto"
11370 echo "configure: warning: TLS data protection not supported!" 1>&2
11374 if test $ol_link_tls = yes ; then
11375 cat >> confdefs.h <<\EOF
11381 elif test $ol_with_tls = auto ; then
11382 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11383 echo "configure: warning: TLS data protection not supported!" 1>&2
11385 elif test $ol_with_tls != no ; then
11386 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11389 if test $ol_enable_lmpasswd != no; then
11390 if test $ol_link_tls != yes ; then
11391 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11394 cat >> confdefs.h <<\EOF
11395 #define SLAPD_LMHASH 1
11402 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11403 -o $ol_with_threads = nt ; then
11406 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11407 echo "configure:11408: checking for _beginthread" >&5
11408 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11409 echo $ac_n "(cached) $ac_c" 1>&6
11411 cat > conftest.$ac_ext <<EOF
11412 #line 11413 "configure"
11413 #include "confdefs.h"
11414 /* System header to define __stub macros and hopefully few prototypes,
11415 which can conflict with char _beginthread(); below. */
11416 #include <assert.h>
11417 /* Override any gcc2 internal prototype to avoid an error. */
11418 /* We use char because int might match the return type of a gcc2
11419 builtin and then its argument prototype would still apply. */
11420 char _beginthread();
11425 /* The GNU C library defines this for functions which it implements
11426 to always fail with ENOSYS. Some functions are actually named
11427 something starting with __ and the normal name is an alias. */
11428 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11436 if { (eval echo configure:11437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11438 eval "ac_cv_func__beginthread=yes"
11440 echo "configure: failed program was:" >&5
11441 cat conftest.$ac_ext >&5
11443 eval "ac_cv_func__beginthread=no"
11448 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11449 echo "$ac_t""yes" 1>&6
11452 echo "$ac_t""no" 1>&6
11456 if test $ac_cv_func__beginthread = yes ; then
11457 cat >> confdefs.h <<\EOF
11458 #define HAVE_NT_THREADS 1
11461 ol_cv_nt_threads=yes
11465 if test "$ol_cv_nt_threads" = yes ; then
11467 ol_with_threads=found
11468 ol_with_yielding_select=yes
11470 cat >> confdefs.h <<\EOF
11471 #define HAVE_NT_SERVICE_MANAGER 1
11474 cat >> confdefs.h <<\EOF
11475 #define HAVE_NT_EVENT_LOG 1
11480 if test $ol_with_threads = nt ; then
11481 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11485 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11486 -o $ol_with_threads = posix ; then
11488 for ac_hdr in pthread.h
11490 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11491 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11492 echo "configure:11493: checking for $ac_hdr" >&5
11493 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11494 echo $ac_n "(cached) $ac_c" 1>&6
11496 cat > conftest.$ac_ext <<EOF
11497 #line 11498 "configure"
11498 #include "confdefs.h"
11501 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11502 { (eval echo configure:11503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11503 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11504 if test -z "$ac_err"; then
11506 eval "ac_cv_header_$ac_safe=yes"
11509 echo "configure: failed program was:" >&5
11510 cat conftest.$ac_ext >&5
11512 eval "ac_cv_header_$ac_safe=no"
11516 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11517 echo "$ac_t""yes" 1>&6
11518 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11519 cat >> confdefs.h <<EOF
11520 #define $ac_tr_hdr 1
11524 echo "$ac_t""no" 1>&6
11529 if test $ac_cv_header_pthread_h = yes ; then
11530 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11531 echo "configure:11532: checking POSIX thread version" >&5
11532 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11533 echo $ac_n "(cached) $ac_c" 1>&6
11536 cat > conftest.$ac_ext <<EOF
11537 #line 11538 "configure"
11538 #include "confdefs.h"
11540 # include <pthread.h>
11544 int i = PTHREAD_CREATE_JOINABLE;
11548 if { (eval echo configure:11549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11551 cat > conftest.$ac_ext <<EOF
11552 #line 11553 "configure"
11553 #include "confdefs.h"
11554 #include <pthread.h>
11556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11557 egrep "pthread_detach" >/dev/null 2>&1; then
11559 ol_cv_pthread_version=10
11562 ol_cv_pthread_version=8
11567 echo "configure: failed program was:" >&5
11568 cat conftest.$ac_ext >&5
11571 cat > conftest.$ac_ext <<EOF
11572 #line 11573 "configure"
11573 #include "confdefs.h"
11575 # include <pthread.h>
11576 # ifdef PTHREAD_CREATE_UNDETACHED
11581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11582 egrep "draft7" >/dev/null 2>&1; then
11584 ol_cv_pthread_version=7
11588 cat > conftest.$ac_ext <<EOF
11589 #line 11590 "configure"
11590 #include "confdefs.h"
11591 #include <pthread.h>
11593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11594 egrep "pthread_attr_init" >/dev/null 2>&1; then
11596 ol_cv_pthread_version=6
11600 cat > conftest.$ac_ext <<EOF
11601 #line 11602 "configure"
11602 #include "confdefs.h"
11604 # include <pthread.h>
11605 #ifdef PTHREAD_MUTEX_INITIALIZER
11610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11611 egrep "draft5" >/dev/null 2>&1; then
11613 ol_cv_pthread_version=5
11616 ol_cv_pthread_version=4
11631 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11634 if test $ol_cv_pthread_version != 0 ; then
11635 cat >> confdefs.h <<EOF
11636 #define HAVE_PTHREADS $ol_cv_pthread_version
11640 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11643 # consider threads found
11644 ol_with_threads=found
11647 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11648 echo "configure:11649: checking for LinuxThreads pthread.h" >&5
11649 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11650 echo $ac_n "(cached) $ac_c" 1>&6
11652 cat > conftest.$ac_ext <<EOF
11653 #line 11654 "configure"
11654 #include "confdefs.h"
11655 #include <pthread.h>
11657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11658 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11660 ol_cv_header_linux_threads=yes
11663 ol_cv_header_linux_threads=no
11670 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11671 if test $ol_cv_header_linux_threads = yes; then
11672 cat >> confdefs.h <<\EOF
11673 #define HAVE_LINUX_THREADS 1
11679 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11680 echo "configure:11681: checking for GNU Pth pthread.h" >&5
11681 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11682 echo $ac_n "(cached) $ac_c" 1>&6
11684 cat > conftest.$ac_ext <<EOF
11685 #line 11686 "configure"
11686 #include "confdefs.h"
11687 #include <pthread.h>
11688 #ifdef _POSIX_THREAD_IS_GNU_PTH
11693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11694 egrep "__gnu_pth__" >/dev/null 2>&1; then
11696 ol_cv_header_gnu_pth_pthread_h=yes
11699 ol_cv_header_gnu_pth_pthread_h=no
11706 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11709 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11710 for ac_hdr in sched.h
11712 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11713 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11714 echo "configure:11715: checking for $ac_hdr" >&5
11715 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11716 echo $ac_n "(cached) $ac_c" 1>&6
11718 cat > conftest.$ac_ext <<EOF
11719 #line 11720 "configure"
11720 #include "confdefs.h"
11723 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11724 { (eval echo configure:11725: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11725 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11726 if test -z "$ac_err"; then
11728 eval "ac_cv_header_$ac_safe=yes"
11731 echo "configure: failed program was:" >&5
11732 cat conftest.$ac_ext >&5
11734 eval "ac_cv_header_$ac_safe=no"
11738 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11739 echo "$ac_t""yes" 1>&6
11740 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11741 cat >> confdefs.h <<EOF
11742 #define $ac_tr_hdr 1
11746 echo "$ac_t""no" 1>&6
11753 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11754 echo "configure:11755: checking for pthread_create in default libraries" >&5
11755 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11756 echo $ac_n "(cached) $ac_c" 1>&6
11759 if test "$cross_compiling" = yes; then
11760 cat > conftest.$ac_ext <<EOF
11761 #line 11762 "configure"
11762 #include "confdefs.h"
11763 /* pthread test headers */
11764 #include <pthread.h>
11765 #if HAVE_PTHREADS < 7
11769 #define NULL (void*)0
11772 static void *task(p)
11775 return (void *) (p == NULL);
11780 /* pthread test function */
11781 #ifndef PTHREAD_CREATE_DETACHED
11782 #define PTHREAD_CREATE_DETACHED 1
11786 int detach = PTHREAD_CREATE_DETACHED;
11788 #if HAVE_PTHREADS > 4
11789 /* Final pthreads */
11790 pthread_attr_t attr;
11792 status = pthread_attr_init(&attr);
11793 if( status ) return status;
11795 #if HAVE_PTHREADS < 7
11796 status = pthread_attr_setdetachstate(&attr, &detach);
11797 if( status < 0 ) status = errno;
11799 status = pthread_attr_setdetachstate(&attr, detach);
11801 if( status ) return status;
11802 status = pthread_create( &t, &attr, task, NULL );
11803 #if HAVE_PTHREADS < 7
11804 if( status < 0 ) status = errno;
11806 if( status ) return status;
11808 /* Draft 4 pthreads */
11809 status = pthread_create( &t, pthread_attr_default, task, NULL );
11810 if( status ) return errno;
11812 /* give thread a chance to complete */
11813 /* it should remain joinable and hence detachable */
11816 status = pthread_detach( &t );
11817 if( status ) return errno;
11820 #ifdef HAVE_LINUX_THREADS
11821 pthread_kill_other_threads_np();
11828 if { (eval echo configure:11829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11830 ol_cv_pthread_create=yes
11832 echo "configure: failed program was:" >&5
11833 cat conftest.$ac_ext >&5
11835 ol_cv_pthread_create=no
11839 cat > conftest.$ac_ext <<EOF
11840 #line 11841 "configure"
11841 #include "confdefs.h"
11842 /* pthread test headers */
11843 #include <pthread.h>
11844 #if HAVE_PTHREADS < 7
11848 #define NULL (void*)0
11851 static void *task(p)
11854 return (void *) (p == NULL);
11858 int main(argc, argv)
11863 /* pthread test function */
11864 #ifndef PTHREAD_CREATE_DETACHED
11865 #define PTHREAD_CREATE_DETACHED 1
11869 int detach = PTHREAD_CREATE_DETACHED;
11871 #if HAVE_PTHREADS > 4
11872 /* Final pthreads */
11873 pthread_attr_t attr;
11875 status = pthread_attr_init(&attr);
11876 if( status ) return status;
11878 #if HAVE_PTHREADS < 7
11879 status = pthread_attr_setdetachstate(&attr, &detach);
11880 if( status < 0 ) status = errno;
11882 status = pthread_attr_setdetachstate(&attr, detach);
11884 if( status ) return status;
11885 status = pthread_create( &t, &attr, task, NULL );
11886 #if HAVE_PTHREADS < 7
11887 if( status < 0 ) status = errno;
11889 if( status ) return status;
11891 /* Draft 4 pthreads */
11892 status = pthread_create( &t, pthread_attr_default, task, NULL );
11893 if( status ) return errno;
11895 /* give thread a chance to complete */
11896 /* it should remain joinable and hence detachable */
11899 status = pthread_detach( &t );
11900 if( status ) return errno;
11903 #ifdef HAVE_LINUX_THREADS
11904 pthread_kill_other_threads_np();
11912 if { (eval echo configure:11913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11914 ol_cv_pthread_create=yes
11916 echo "configure: failed program was:" >&5
11917 cat conftest.$ac_ext >&5
11919 ol_cv_pthread_create=no
11926 echo "$ac_t""$ol_cv_pthread_create" 1>&6
11928 if test $ol_cv_pthread_create != no ; then
11929 ol_link_threads=posix
11930 ol_link_pthreads=""
11933 # Pthread try link: -kthread (ol_cv_pthread_kthread)
11934 if test "$ol_link_threads" = no ; then
11936 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
11937 echo "configure:11938: checking for pthread link with -kthread" >&5
11938 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
11939 echo $ac_n "(cached) $ac_c" 1>&6
11944 LIBS="-kthread $LIBS"
11946 if test "$cross_compiling" = yes; then
11947 cat > conftest.$ac_ext <<EOF
11948 #line 11949 "configure"
11949 #include "confdefs.h"
11950 /* pthread test headers */
11951 #include <pthread.h>
11952 #if HAVE_PTHREADS < 7
11956 #define NULL (void*)0
11959 static void *task(p)
11962 return (void *) (p == NULL);
11967 /* pthread test function */
11968 #ifndef PTHREAD_CREATE_DETACHED
11969 #define PTHREAD_CREATE_DETACHED 1
11973 int detach = PTHREAD_CREATE_DETACHED;
11975 #if HAVE_PTHREADS > 4
11976 /* Final pthreads */
11977 pthread_attr_t attr;
11979 status = pthread_attr_init(&attr);
11980 if( status ) return status;
11982 #if HAVE_PTHREADS < 7
11983 status = pthread_attr_setdetachstate(&attr, &detach);
11984 if( status < 0 ) status = errno;
11986 status = pthread_attr_setdetachstate(&attr, detach);
11988 if( status ) return status;
11989 status = pthread_create( &t, &attr, task, NULL );
11990 #if HAVE_PTHREADS < 7
11991 if( status < 0 ) status = errno;
11993 if( status ) return status;
11995 /* Draft 4 pthreads */
11996 status = pthread_create( &t, pthread_attr_default, task, NULL );
11997 if( status ) return errno;
11999 /* give thread a chance to complete */
12000 /* it should remain joinable and hence detachable */
12003 status = pthread_detach( &t );
12004 if( status ) return errno;
12007 #ifdef HAVE_LINUX_THREADS
12008 pthread_kill_other_threads_np();
12015 if { (eval echo configure:12016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12017 ol_cv_pthread_kthread=yes
12019 echo "configure: failed program was:" >&5
12020 cat conftest.$ac_ext >&5
12022 ol_cv_pthread_kthread=no
12026 cat > conftest.$ac_ext <<EOF
12027 #line 12028 "configure"
12028 #include "confdefs.h"
12029 /* pthread test headers */
12030 #include <pthread.h>
12031 #if HAVE_PTHREADS < 7
12035 #define NULL (void*)0
12038 static void *task(p)
12041 return (void *) (p == NULL);
12045 int main(argc, argv)
12050 /* pthread test function */
12051 #ifndef PTHREAD_CREATE_DETACHED
12052 #define PTHREAD_CREATE_DETACHED 1
12056 int detach = PTHREAD_CREATE_DETACHED;
12058 #if HAVE_PTHREADS > 4
12059 /* Final pthreads */
12060 pthread_attr_t attr;
12062 status = pthread_attr_init(&attr);
12063 if( status ) return status;
12065 #if HAVE_PTHREADS < 7
12066 status = pthread_attr_setdetachstate(&attr, &detach);
12067 if( status < 0 ) status = errno;
12069 status = pthread_attr_setdetachstate(&attr, detach);
12071 if( status ) return status;
12072 status = pthread_create( &t, &attr, task, NULL );
12073 #if HAVE_PTHREADS < 7
12074 if( status < 0 ) status = errno;
12076 if( status ) return status;
12078 /* Draft 4 pthreads */
12079 status = pthread_create( &t, pthread_attr_default, task, NULL );
12080 if( status ) return errno;
12082 /* give thread a chance to complete */
12083 /* it should remain joinable and hence detachable */
12086 status = pthread_detach( &t );
12087 if( status ) return errno;
12090 #ifdef HAVE_LINUX_THREADS
12091 pthread_kill_other_threads_np();
12099 if { (eval echo configure:12100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12101 ol_cv_pthread_kthread=yes
12103 echo "configure: failed program was:" >&5
12104 cat conftest.$ac_ext >&5
12106 ol_cv_pthread_kthread=no
12117 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12119 if test $ol_cv_pthread_kthread = yes ; then
12120 ol_link_pthreads="-kthread"
12121 ol_link_threads=posix
12125 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12126 if test "$ol_link_threads" = no ; then
12128 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12129 echo "configure:12130: checking for pthread link with -pthread" >&5
12130 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12131 echo $ac_n "(cached) $ac_c" 1>&6
12136 LIBS="-pthread $LIBS"
12138 if test "$cross_compiling" = yes; then
12139 cat > conftest.$ac_ext <<EOF
12140 #line 12141 "configure"
12141 #include "confdefs.h"
12142 /* pthread test headers */
12143 #include <pthread.h>
12144 #if HAVE_PTHREADS < 7
12148 #define NULL (void*)0
12151 static void *task(p)
12154 return (void *) (p == NULL);
12159 /* pthread test function */
12160 #ifndef PTHREAD_CREATE_DETACHED
12161 #define PTHREAD_CREATE_DETACHED 1
12165 int detach = PTHREAD_CREATE_DETACHED;
12167 #if HAVE_PTHREADS > 4
12168 /* Final pthreads */
12169 pthread_attr_t attr;
12171 status = pthread_attr_init(&attr);
12172 if( status ) return status;
12174 #if HAVE_PTHREADS < 7
12175 status = pthread_attr_setdetachstate(&attr, &detach);
12176 if( status < 0 ) status = errno;
12178 status = pthread_attr_setdetachstate(&attr, detach);
12180 if( status ) return status;
12181 status = pthread_create( &t, &attr, task, NULL );
12182 #if HAVE_PTHREADS < 7
12183 if( status < 0 ) status = errno;
12185 if( status ) return status;
12187 /* Draft 4 pthreads */
12188 status = pthread_create( &t, pthread_attr_default, task, NULL );
12189 if( status ) return errno;
12191 /* give thread a chance to complete */
12192 /* it should remain joinable and hence detachable */
12195 status = pthread_detach( &t );
12196 if( status ) return errno;
12199 #ifdef HAVE_LINUX_THREADS
12200 pthread_kill_other_threads_np();
12207 if { (eval echo configure:12208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12209 ol_cv_pthread_pthread=yes
12211 echo "configure: failed program was:" >&5
12212 cat conftest.$ac_ext >&5
12214 ol_cv_pthread_pthread=no
12218 cat > conftest.$ac_ext <<EOF
12219 #line 12220 "configure"
12220 #include "confdefs.h"
12221 /* pthread test headers */
12222 #include <pthread.h>
12223 #if HAVE_PTHREADS < 7
12227 #define NULL (void*)0
12230 static void *task(p)
12233 return (void *) (p == NULL);
12237 int main(argc, argv)
12242 /* pthread test function */
12243 #ifndef PTHREAD_CREATE_DETACHED
12244 #define PTHREAD_CREATE_DETACHED 1
12248 int detach = PTHREAD_CREATE_DETACHED;
12250 #if HAVE_PTHREADS > 4
12251 /* Final pthreads */
12252 pthread_attr_t attr;
12254 status = pthread_attr_init(&attr);
12255 if( status ) return status;
12257 #if HAVE_PTHREADS < 7
12258 status = pthread_attr_setdetachstate(&attr, &detach);
12259 if( status < 0 ) status = errno;
12261 status = pthread_attr_setdetachstate(&attr, detach);
12263 if( status ) return status;
12264 status = pthread_create( &t, &attr, task, NULL );
12265 #if HAVE_PTHREADS < 7
12266 if( status < 0 ) status = errno;
12268 if( status ) return status;
12270 /* Draft 4 pthreads */
12271 status = pthread_create( &t, pthread_attr_default, task, NULL );
12272 if( status ) return errno;
12274 /* give thread a chance to complete */
12275 /* it should remain joinable and hence detachable */
12278 status = pthread_detach( &t );
12279 if( status ) return errno;
12282 #ifdef HAVE_LINUX_THREADS
12283 pthread_kill_other_threads_np();
12291 if { (eval echo configure:12292: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12293 ol_cv_pthread_pthread=yes
12295 echo "configure: failed program was:" >&5
12296 cat conftest.$ac_ext >&5
12298 ol_cv_pthread_pthread=no
12309 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12311 if test $ol_cv_pthread_pthread = yes ; then
12312 ol_link_pthreads="-pthread"
12313 ol_link_threads=posix
12317 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12318 if test "$ol_link_threads" = no ; then
12320 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12321 echo "configure:12322: checking for pthread link with -pthreads" >&5
12322 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12323 echo $ac_n "(cached) $ac_c" 1>&6
12328 LIBS="-pthreads $LIBS"
12330 if test "$cross_compiling" = yes; then
12331 cat > conftest.$ac_ext <<EOF
12332 #line 12333 "configure"
12333 #include "confdefs.h"
12334 /* pthread test headers */
12335 #include <pthread.h>
12336 #if HAVE_PTHREADS < 7
12340 #define NULL (void*)0
12343 static void *task(p)
12346 return (void *) (p == NULL);
12351 /* pthread test function */
12352 #ifndef PTHREAD_CREATE_DETACHED
12353 #define PTHREAD_CREATE_DETACHED 1
12357 int detach = PTHREAD_CREATE_DETACHED;
12359 #if HAVE_PTHREADS > 4
12360 /* Final pthreads */
12361 pthread_attr_t attr;
12363 status = pthread_attr_init(&attr);
12364 if( status ) return status;
12366 #if HAVE_PTHREADS < 7
12367 status = pthread_attr_setdetachstate(&attr, &detach);
12368 if( status < 0 ) status = errno;
12370 status = pthread_attr_setdetachstate(&attr, detach);
12372 if( status ) return status;
12373 status = pthread_create( &t, &attr, task, NULL );
12374 #if HAVE_PTHREADS < 7
12375 if( status < 0 ) status = errno;
12377 if( status ) return status;
12379 /* Draft 4 pthreads */
12380 status = pthread_create( &t, pthread_attr_default, task, NULL );
12381 if( status ) return errno;
12383 /* give thread a chance to complete */
12384 /* it should remain joinable and hence detachable */
12387 status = pthread_detach( &t );
12388 if( status ) return errno;
12391 #ifdef HAVE_LINUX_THREADS
12392 pthread_kill_other_threads_np();
12399 if { (eval echo configure:12400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12401 ol_cv_pthread_pthreads=yes
12403 echo "configure: failed program was:" >&5
12404 cat conftest.$ac_ext >&5
12406 ol_cv_pthread_pthreads=no
12410 cat > conftest.$ac_ext <<EOF
12411 #line 12412 "configure"
12412 #include "confdefs.h"
12413 /* pthread test headers */
12414 #include <pthread.h>
12415 #if HAVE_PTHREADS < 7
12419 #define NULL (void*)0
12422 static void *task(p)
12425 return (void *) (p == NULL);
12429 int main(argc, argv)
12434 /* pthread test function */
12435 #ifndef PTHREAD_CREATE_DETACHED
12436 #define PTHREAD_CREATE_DETACHED 1
12440 int detach = PTHREAD_CREATE_DETACHED;
12442 #if HAVE_PTHREADS > 4
12443 /* Final pthreads */
12444 pthread_attr_t attr;
12446 status = pthread_attr_init(&attr);
12447 if( status ) return status;
12449 #if HAVE_PTHREADS < 7
12450 status = pthread_attr_setdetachstate(&attr, &detach);
12451 if( status < 0 ) status = errno;
12453 status = pthread_attr_setdetachstate(&attr, detach);
12455 if( status ) return status;
12456 status = pthread_create( &t, &attr, task, NULL );
12457 #if HAVE_PTHREADS < 7
12458 if( status < 0 ) status = errno;
12460 if( status ) return status;
12462 /* Draft 4 pthreads */
12463 status = pthread_create( &t, pthread_attr_default, task, NULL );
12464 if( status ) return errno;
12466 /* give thread a chance to complete */
12467 /* it should remain joinable and hence detachable */
12470 status = pthread_detach( &t );
12471 if( status ) return errno;
12474 #ifdef HAVE_LINUX_THREADS
12475 pthread_kill_other_threads_np();
12483 if { (eval echo configure:12484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12485 ol_cv_pthread_pthreads=yes
12487 echo "configure: failed program was:" >&5
12488 cat conftest.$ac_ext >&5
12490 ol_cv_pthread_pthreads=no
12501 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12503 if test $ol_cv_pthread_pthreads = yes ; then
12504 ol_link_pthreads="-pthreads"
12505 ol_link_threads=posix
12509 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12510 if test "$ol_link_threads" = no ; then
12512 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12513 echo "configure:12514: checking for pthread link with -mthreads" >&5
12514 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12515 echo $ac_n "(cached) $ac_c" 1>&6
12520 LIBS="-mthreads $LIBS"
12522 if test "$cross_compiling" = yes; then
12523 cat > conftest.$ac_ext <<EOF
12524 #line 12525 "configure"
12525 #include "confdefs.h"
12526 /* pthread test headers */
12527 #include <pthread.h>
12528 #if HAVE_PTHREADS < 7
12532 #define NULL (void*)0
12535 static void *task(p)
12538 return (void *) (p == NULL);
12543 /* pthread test function */
12544 #ifndef PTHREAD_CREATE_DETACHED
12545 #define PTHREAD_CREATE_DETACHED 1
12549 int detach = PTHREAD_CREATE_DETACHED;
12551 #if HAVE_PTHREADS > 4
12552 /* Final pthreads */
12553 pthread_attr_t attr;
12555 status = pthread_attr_init(&attr);
12556 if( status ) return status;
12558 #if HAVE_PTHREADS < 7
12559 status = pthread_attr_setdetachstate(&attr, &detach);
12560 if( status < 0 ) status = errno;
12562 status = pthread_attr_setdetachstate(&attr, detach);
12564 if( status ) return status;
12565 status = pthread_create( &t, &attr, task, NULL );
12566 #if HAVE_PTHREADS < 7
12567 if( status < 0 ) status = errno;
12569 if( status ) return status;
12571 /* Draft 4 pthreads */
12572 status = pthread_create( &t, pthread_attr_default, task, NULL );
12573 if( status ) return errno;
12575 /* give thread a chance to complete */
12576 /* it should remain joinable and hence detachable */
12579 status = pthread_detach( &t );
12580 if( status ) return errno;
12583 #ifdef HAVE_LINUX_THREADS
12584 pthread_kill_other_threads_np();
12591 if { (eval echo configure:12592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12593 ol_cv_pthread_mthreads=yes
12595 echo "configure: failed program was:" >&5
12596 cat conftest.$ac_ext >&5
12598 ol_cv_pthread_mthreads=no
12602 cat > conftest.$ac_ext <<EOF
12603 #line 12604 "configure"
12604 #include "confdefs.h"
12605 /* pthread test headers */
12606 #include <pthread.h>
12607 #if HAVE_PTHREADS < 7
12611 #define NULL (void*)0
12614 static void *task(p)
12617 return (void *) (p == NULL);
12621 int main(argc, argv)
12626 /* pthread test function */
12627 #ifndef PTHREAD_CREATE_DETACHED
12628 #define PTHREAD_CREATE_DETACHED 1
12632 int detach = PTHREAD_CREATE_DETACHED;
12634 #if HAVE_PTHREADS > 4
12635 /* Final pthreads */
12636 pthread_attr_t attr;
12638 status = pthread_attr_init(&attr);
12639 if( status ) return status;
12641 #if HAVE_PTHREADS < 7
12642 status = pthread_attr_setdetachstate(&attr, &detach);
12643 if( status < 0 ) status = errno;
12645 status = pthread_attr_setdetachstate(&attr, detach);
12647 if( status ) return status;
12648 status = pthread_create( &t, &attr, task, NULL );
12649 #if HAVE_PTHREADS < 7
12650 if( status < 0 ) status = errno;
12652 if( status ) return status;
12654 /* Draft 4 pthreads */
12655 status = pthread_create( &t, pthread_attr_default, task, NULL );
12656 if( status ) return errno;
12658 /* give thread a chance to complete */
12659 /* it should remain joinable and hence detachable */
12662 status = pthread_detach( &t );
12663 if( status ) return errno;
12666 #ifdef HAVE_LINUX_THREADS
12667 pthread_kill_other_threads_np();
12675 if { (eval echo configure:12676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12677 ol_cv_pthread_mthreads=yes
12679 echo "configure: failed program was:" >&5
12680 cat conftest.$ac_ext >&5
12682 ol_cv_pthread_mthreads=no
12693 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12695 if test $ol_cv_pthread_mthreads = yes ; then
12696 ol_link_pthreads="-mthreads"
12697 ol_link_threads=posix
12701 # Pthread try link: -thread (ol_cv_pthread_thread)
12702 if test "$ol_link_threads" = no ; then
12704 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12705 echo "configure:12706: checking for pthread link with -thread" >&5
12706 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12707 echo $ac_n "(cached) $ac_c" 1>&6
12712 LIBS="-thread $LIBS"
12714 if test "$cross_compiling" = yes; then
12715 cat > conftest.$ac_ext <<EOF
12716 #line 12717 "configure"
12717 #include "confdefs.h"
12718 /* pthread test headers */
12719 #include <pthread.h>
12720 #if HAVE_PTHREADS < 7
12724 #define NULL (void*)0
12727 static void *task(p)
12730 return (void *) (p == NULL);
12735 /* pthread test function */
12736 #ifndef PTHREAD_CREATE_DETACHED
12737 #define PTHREAD_CREATE_DETACHED 1
12741 int detach = PTHREAD_CREATE_DETACHED;
12743 #if HAVE_PTHREADS > 4
12744 /* Final pthreads */
12745 pthread_attr_t attr;
12747 status = pthread_attr_init(&attr);
12748 if( status ) return status;
12750 #if HAVE_PTHREADS < 7
12751 status = pthread_attr_setdetachstate(&attr, &detach);
12752 if( status < 0 ) status = errno;
12754 status = pthread_attr_setdetachstate(&attr, detach);
12756 if( status ) return status;
12757 status = pthread_create( &t, &attr, task, NULL );
12758 #if HAVE_PTHREADS < 7
12759 if( status < 0 ) status = errno;
12761 if( status ) return status;
12763 /* Draft 4 pthreads */
12764 status = pthread_create( &t, pthread_attr_default, task, NULL );
12765 if( status ) return errno;
12767 /* give thread a chance to complete */
12768 /* it should remain joinable and hence detachable */
12771 status = pthread_detach( &t );
12772 if( status ) return errno;
12775 #ifdef HAVE_LINUX_THREADS
12776 pthread_kill_other_threads_np();
12783 if { (eval echo configure:12784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12785 ol_cv_pthread_thread=yes
12787 echo "configure: failed program was:" >&5
12788 cat conftest.$ac_ext >&5
12790 ol_cv_pthread_thread=no
12794 cat > conftest.$ac_ext <<EOF
12795 #line 12796 "configure"
12796 #include "confdefs.h"
12797 /* pthread test headers */
12798 #include <pthread.h>
12799 #if HAVE_PTHREADS < 7
12803 #define NULL (void*)0
12806 static void *task(p)
12809 return (void *) (p == NULL);
12813 int main(argc, argv)
12818 /* pthread test function */
12819 #ifndef PTHREAD_CREATE_DETACHED
12820 #define PTHREAD_CREATE_DETACHED 1
12824 int detach = PTHREAD_CREATE_DETACHED;
12826 #if HAVE_PTHREADS > 4
12827 /* Final pthreads */
12828 pthread_attr_t attr;
12830 status = pthread_attr_init(&attr);
12831 if( status ) return status;
12833 #if HAVE_PTHREADS < 7
12834 status = pthread_attr_setdetachstate(&attr, &detach);
12835 if( status < 0 ) status = errno;
12837 status = pthread_attr_setdetachstate(&attr, detach);
12839 if( status ) return status;
12840 status = pthread_create( &t, &attr, task, NULL );
12841 #if HAVE_PTHREADS < 7
12842 if( status < 0 ) status = errno;
12844 if( status ) return status;
12846 /* Draft 4 pthreads */
12847 status = pthread_create( &t, pthread_attr_default, task, NULL );
12848 if( status ) return errno;
12850 /* give thread a chance to complete */
12851 /* it should remain joinable and hence detachable */
12854 status = pthread_detach( &t );
12855 if( status ) return errno;
12858 #ifdef HAVE_LINUX_THREADS
12859 pthread_kill_other_threads_np();
12867 if { (eval echo configure:12868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12869 ol_cv_pthread_thread=yes
12871 echo "configure: failed program was:" >&5
12872 cat conftest.$ac_ext >&5
12874 ol_cv_pthread_thread=no
12885 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
12887 if test $ol_cv_pthread_thread = yes ; then
12888 ol_link_pthreads="-thread"
12889 ol_link_threads=posix
12894 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
12895 if test "$ol_link_threads" = no ; then
12896 # try -lpthread -lmach -lexc -lc_r
12897 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
12898 echo "configure:12899: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
12899 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
12900 echo $ac_n "(cached) $ac_c" 1>&6
12905 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
12907 if test "$cross_compiling" = yes; then
12908 cat > conftest.$ac_ext <<EOF
12909 #line 12910 "configure"
12910 #include "confdefs.h"
12911 /* pthread test headers */
12912 #include <pthread.h>
12913 #if HAVE_PTHREADS < 7
12917 #define NULL (void*)0
12920 static void *task(p)
12923 return (void *) (p == NULL);
12928 /* pthread test function */
12929 #ifndef PTHREAD_CREATE_DETACHED
12930 #define PTHREAD_CREATE_DETACHED 1
12934 int detach = PTHREAD_CREATE_DETACHED;
12936 #if HAVE_PTHREADS > 4
12937 /* Final pthreads */
12938 pthread_attr_t attr;
12940 status = pthread_attr_init(&attr);
12941 if( status ) return status;
12943 #if HAVE_PTHREADS < 7
12944 status = pthread_attr_setdetachstate(&attr, &detach);
12945 if( status < 0 ) status = errno;
12947 status = pthread_attr_setdetachstate(&attr, detach);
12949 if( status ) return status;
12950 status = pthread_create( &t, &attr, task, NULL );
12951 #if HAVE_PTHREADS < 7
12952 if( status < 0 ) status = errno;
12954 if( status ) return status;
12956 /* Draft 4 pthreads */
12957 status = pthread_create( &t, pthread_attr_default, task, NULL );
12958 if( status ) return errno;
12960 /* give thread a chance to complete */
12961 /* it should remain joinable and hence detachable */
12964 status = pthread_detach( &t );
12965 if( status ) return errno;
12968 #ifdef HAVE_LINUX_THREADS
12969 pthread_kill_other_threads_np();
12976 if { (eval echo configure:12977: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12978 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
12980 echo "configure: failed program was:" >&5
12981 cat conftest.$ac_ext >&5
12983 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
12987 cat > conftest.$ac_ext <<EOF
12988 #line 12989 "configure"
12989 #include "confdefs.h"
12990 /* pthread test headers */
12991 #include <pthread.h>
12992 #if HAVE_PTHREADS < 7
12996 #define NULL (void*)0
12999 static void *task(p)
13002 return (void *) (p == NULL);
13006 int main(argc, argv)
13011 /* pthread test function */
13012 #ifndef PTHREAD_CREATE_DETACHED
13013 #define PTHREAD_CREATE_DETACHED 1
13017 int detach = PTHREAD_CREATE_DETACHED;
13019 #if HAVE_PTHREADS > 4
13020 /* Final pthreads */
13021 pthread_attr_t attr;
13023 status = pthread_attr_init(&attr);
13024 if( status ) return status;
13026 #if HAVE_PTHREADS < 7
13027 status = pthread_attr_setdetachstate(&attr, &detach);
13028 if( status < 0 ) status = errno;
13030 status = pthread_attr_setdetachstate(&attr, detach);
13032 if( status ) return status;
13033 status = pthread_create( &t, &attr, task, NULL );
13034 #if HAVE_PTHREADS < 7
13035 if( status < 0 ) status = errno;
13037 if( status ) return status;
13039 /* Draft 4 pthreads */
13040 status = pthread_create( &t, pthread_attr_default, task, NULL );
13041 if( status ) return errno;
13043 /* give thread a chance to complete */
13044 /* it should remain joinable and hence detachable */
13047 status = pthread_detach( &t );
13048 if( status ) return errno;
13051 #ifdef HAVE_LINUX_THREADS
13052 pthread_kill_other_threads_np();
13060 if { (eval echo configure:13061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13062 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13064 echo "configure: failed program was:" >&5
13065 cat conftest.$ac_ext >&5
13067 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13078 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13080 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13081 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13082 ol_link_threads=posix
13086 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13087 if test "$ol_link_threads" = no ; then
13088 # try -lpthread -lmach -lexc
13089 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13090 echo "configure:13091: checking for pthread link with -lpthread -lmach -lexc" >&5
13091 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13092 echo $ac_n "(cached) $ac_c" 1>&6
13097 LIBS="-lpthread -lmach -lexc $LIBS"
13099 if test "$cross_compiling" = yes; then
13100 cat > conftest.$ac_ext <<EOF
13101 #line 13102 "configure"
13102 #include "confdefs.h"
13103 /* pthread test headers */
13104 #include <pthread.h>
13105 #if HAVE_PTHREADS < 7
13109 #define NULL (void*)0
13112 static void *task(p)
13115 return (void *) (p == NULL);
13120 /* pthread test function */
13121 #ifndef PTHREAD_CREATE_DETACHED
13122 #define PTHREAD_CREATE_DETACHED 1
13126 int detach = PTHREAD_CREATE_DETACHED;
13128 #if HAVE_PTHREADS > 4
13129 /* Final pthreads */
13130 pthread_attr_t attr;
13132 status = pthread_attr_init(&attr);
13133 if( status ) return status;
13135 #if HAVE_PTHREADS < 7
13136 status = pthread_attr_setdetachstate(&attr, &detach);
13137 if( status < 0 ) status = errno;
13139 status = pthread_attr_setdetachstate(&attr, detach);
13141 if( status ) return status;
13142 status = pthread_create( &t, &attr, task, NULL );
13143 #if HAVE_PTHREADS < 7
13144 if( status < 0 ) status = errno;
13146 if( status ) return status;
13148 /* Draft 4 pthreads */
13149 status = pthread_create( &t, pthread_attr_default, task, NULL );
13150 if( status ) return errno;
13152 /* give thread a chance to complete */
13153 /* it should remain joinable and hence detachable */
13156 status = pthread_detach( &t );
13157 if( status ) return errno;
13160 #ifdef HAVE_LINUX_THREADS
13161 pthread_kill_other_threads_np();
13168 if { (eval echo configure:13169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13170 ol_cv_pthread_lpthread_lmach_lexc=yes
13172 echo "configure: failed program was:" >&5
13173 cat conftest.$ac_ext >&5
13175 ol_cv_pthread_lpthread_lmach_lexc=no
13179 cat > conftest.$ac_ext <<EOF
13180 #line 13181 "configure"
13181 #include "confdefs.h"
13182 /* pthread test headers */
13183 #include <pthread.h>
13184 #if HAVE_PTHREADS < 7
13188 #define NULL (void*)0
13191 static void *task(p)
13194 return (void *) (p == NULL);
13198 int main(argc, argv)
13203 /* pthread test function */
13204 #ifndef PTHREAD_CREATE_DETACHED
13205 #define PTHREAD_CREATE_DETACHED 1
13209 int detach = PTHREAD_CREATE_DETACHED;
13211 #if HAVE_PTHREADS > 4
13212 /* Final pthreads */
13213 pthread_attr_t attr;
13215 status = pthread_attr_init(&attr);
13216 if( status ) return status;
13218 #if HAVE_PTHREADS < 7
13219 status = pthread_attr_setdetachstate(&attr, &detach);
13220 if( status < 0 ) status = errno;
13222 status = pthread_attr_setdetachstate(&attr, detach);
13224 if( status ) return status;
13225 status = pthread_create( &t, &attr, task, NULL );
13226 #if HAVE_PTHREADS < 7
13227 if( status < 0 ) status = errno;
13229 if( status ) return status;
13231 /* Draft 4 pthreads */
13232 status = pthread_create( &t, pthread_attr_default, task, NULL );
13233 if( status ) return errno;
13235 /* give thread a chance to complete */
13236 /* it should remain joinable and hence detachable */
13239 status = pthread_detach( &t );
13240 if( status ) return errno;
13243 #ifdef HAVE_LINUX_THREADS
13244 pthread_kill_other_threads_np();
13252 if { (eval echo configure:13253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13254 ol_cv_pthread_lpthread_lmach_lexc=yes
13256 echo "configure: failed program was:" >&5
13257 cat conftest.$ac_ext >&5
13259 ol_cv_pthread_lpthread_lmach_lexc=no
13270 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13272 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13273 ol_link_pthreads="-lpthread -lmach -lexc"
13274 ol_link_threads=posix
13279 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13280 if test "$ol_link_threads" = no ; then
13281 # try -lpthread -Wl,-woff,85
13282 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13283 echo "configure:13284: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13284 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13285 echo $ac_n "(cached) $ac_c" 1>&6
13290 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13292 if test "$cross_compiling" = yes; then
13293 cat > conftest.$ac_ext <<EOF
13294 #line 13295 "configure"
13295 #include "confdefs.h"
13296 /* pthread test headers */
13297 #include <pthread.h>
13298 #if HAVE_PTHREADS < 7
13302 #define NULL (void*)0
13305 static void *task(p)
13308 return (void *) (p == NULL);
13313 /* pthread test function */
13314 #ifndef PTHREAD_CREATE_DETACHED
13315 #define PTHREAD_CREATE_DETACHED 1
13319 int detach = PTHREAD_CREATE_DETACHED;
13321 #if HAVE_PTHREADS > 4
13322 /* Final pthreads */
13323 pthread_attr_t attr;
13325 status = pthread_attr_init(&attr);
13326 if( status ) return status;
13328 #if HAVE_PTHREADS < 7
13329 status = pthread_attr_setdetachstate(&attr, &detach);
13330 if( status < 0 ) status = errno;
13332 status = pthread_attr_setdetachstate(&attr, detach);
13334 if( status ) return status;
13335 status = pthread_create( &t, &attr, task, NULL );
13336 #if HAVE_PTHREADS < 7
13337 if( status < 0 ) status = errno;
13339 if( status ) return status;
13341 /* Draft 4 pthreads */
13342 status = pthread_create( &t, pthread_attr_default, task, NULL );
13343 if( status ) return errno;
13345 /* give thread a chance to complete */
13346 /* it should remain joinable and hence detachable */
13349 status = pthread_detach( &t );
13350 if( status ) return errno;
13353 #ifdef HAVE_LINUX_THREADS
13354 pthread_kill_other_threads_np();
13361 if { (eval echo configure:13362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13363 ol_cv_pthread_lib_lpthread_woff=yes
13365 echo "configure: failed program was:" >&5
13366 cat conftest.$ac_ext >&5
13368 ol_cv_pthread_lib_lpthread_woff=no
13372 cat > conftest.$ac_ext <<EOF
13373 #line 13374 "configure"
13374 #include "confdefs.h"
13375 /* pthread test headers */
13376 #include <pthread.h>
13377 #if HAVE_PTHREADS < 7
13381 #define NULL (void*)0
13384 static void *task(p)
13387 return (void *) (p == NULL);
13391 int main(argc, argv)
13396 /* pthread test function */
13397 #ifndef PTHREAD_CREATE_DETACHED
13398 #define PTHREAD_CREATE_DETACHED 1
13402 int detach = PTHREAD_CREATE_DETACHED;
13404 #if HAVE_PTHREADS > 4
13405 /* Final pthreads */
13406 pthread_attr_t attr;
13408 status = pthread_attr_init(&attr);
13409 if( status ) return status;
13411 #if HAVE_PTHREADS < 7
13412 status = pthread_attr_setdetachstate(&attr, &detach);
13413 if( status < 0 ) status = errno;
13415 status = pthread_attr_setdetachstate(&attr, detach);
13417 if( status ) return status;
13418 status = pthread_create( &t, &attr, task, NULL );
13419 #if HAVE_PTHREADS < 7
13420 if( status < 0 ) status = errno;
13422 if( status ) return status;
13424 /* Draft 4 pthreads */
13425 status = pthread_create( &t, pthread_attr_default, task, NULL );
13426 if( status ) return errno;
13428 /* give thread a chance to complete */
13429 /* it should remain joinable and hence detachable */
13432 status = pthread_detach( &t );
13433 if( status ) return errno;
13436 #ifdef HAVE_LINUX_THREADS
13437 pthread_kill_other_threads_np();
13445 if { (eval echo configure:13446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13447 ol_cv_pthread_lib_lpthread_woff=yes
13449 echo "configure: failed program was:" >&5
13450 cat conftest.$ac_ext >&5
13452 ol_cv_pthread_lib_lpthread_woff=no
13463 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13465 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13466 ol_link_pthreads="-lpthread -Wl,-woff,85"
13467 ol_link_threads=posix
13472 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13473 if test "$ol_link_threads" = no ; then
13475 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13476 echo "configure:13477: checking for pthread link with -lpthread" >&5
13477 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13478 echo $ac_n "(cached) $ac_c" 1>&6
13483 LIBS="-lpthread $LIBS"
13485 if test "$cross_compiling" = yes; then
13486 cat > conftest.$ac_ext <<EOF
13487 #line 13488 "configure"
13488 #include "confdefs.h"
13489 /* pthread test headers */
13490 #include <pthread.h>
13491 #if HAVE_PTHREADS < 7
13495 #define NULL (void*)0
13498 static void *task(p)
13501 return (void *) (p == NULL);
13506 /* pthread test function */
13507 #ifndef PTHREAD_CREATE_DETACHED
13508 #define PTHREAD_CREATE_DETACHED 1
13512 int detach = PTHREAD_CREATE_DETACHED;
13514 #if HAVE_PTHREADS > 4
13515 /* Final pthreads */
13516 pthread_attr_t attr;
13518 status = pthread_attr_init(&attr);
13519 if( status ) return status;
13521 #if HAVE_PTHREADS < 7
13522 status = pthread_attr_setdetachstate(&attr, &detach);
13523 if( status < 0 ) status = errno;
13525 status = pthread_attr_setdetachstate(&attr, detach);
13527 if( status ) return status;
13528 status = pthread_create( &t, &attr, task, NULL );
13529 #if HAVE_PTHREADS < 7
13530 if( status < 0 ) status = errno;
13532 if( status ) return status;
13534 /* Draft 4 pthreads */
13535 status = pthread_create( &t, pthread_attr_default, task, NULL );
13536 if( status ) return errno;
13538 /* give thread a chance to complete */
13539 /* it should remain joinable and hence detachable */
13542 status = pthread_detach( &t );
13543 if( status ) return errno;
13546 #ifdef HAVE_LINUX_THREADS
13547 pthread_kill_other_threads_np();
13554 if { (eval echo configure:13555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13556 ol_cv_pthread_lpthread=yes
13558 echo "configure: failed program was:" >&5
13559 cat conftest.$ac_ext >&5
13561 ol_cv_pthread_lpthread=no
13565 cat > conftest.$ac_ext <<EOF
13566 #line 13567 "configure"
13567 #include "confdefs.h"
13568 /* pthread test headers */
13569 #include <pthread.h>
13570 #if HAVE_PTHREADS < 7
13574 #define NULL (void*)0
13577 static void *task(p)
13580 return (void *) (p == NULL);
13584 int main(argc, argv)
13589 /* pthread test function */
13590 #ifndef PTHREAD_CREATE_DETACHED
13591 #define PTHREAD_CREATE_DETACHED 1
13595 int detach = PTHREAD_CREATE_DETACHED;
13597 #if HAVE_PTHREADS > 4
13598 /* Final pthreads */
13599 pthread_attr_t attr;
13601 status = pthread_attr_init(&attr);
13602 if( status ) return status;
13604 #if HAVE_PTHREADS < 7
13605 status = pthread_attr_setdetachstate(&attr, &detach);
13606 if( status < 0 ) status = errno;
13608 status = pthread_attr_setdetachstate(&attr, detach);
13610 if( status ) return status;
13611 status = pthread_create( &t, &attr, task, NULL );
13612 #if HAVE_PTHREADS < 7
13613 if( status < 0 ) status = errno;
13615 if( status ) return status;
13617 /* Draft 4 pthreads */
13618 status = pthread_create( &t, pthread_attr_default, task, NULL );
13619 if( status ) return errno;
13621 /* give thread a chance to complete */
13622 /* it should remain joinable and hence detachable */
13625 status = pthread_detach( &t );
13626 if( status ) return errno;
13629 #ifdef HAVE_LINUX_THREADS
13630 pthread_kill_other_threads_np();
13638 if { (eval echo configure:13639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13640 ol_cv_pthread_lpthread=yes
13642 echo "configure: failed program was:" >&5
13643 cat conftest.$ac_ext >&5
13645 ol_cv_pthread_lpthread=no
13656 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13658 if test $ol_cv_pthread_lpthread = yes ; then
13659 ol_link_pthreads="-lpthread"
13660 ol_link_threads=posix
13664 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13665 if test "$ol_link_threads" = no ; then
13667 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13668 echo "configure:13669: checking for pthread link with -lc_r" >&5
13669 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13670 echo $ac_n "(cached) $ac_c" 1>&6
13677 if test "$cross_compiling" = yes; then
13678 cat > conftest.$ac_ext <<EOF
13679 #line 13680 "configure"
13680 #include "confdefs.h"
13681 /* pthread test headers */
13682 #include <pthread.h>
13683 #if HAVE_PTHREADS < 7
13687 #define NULL (void*)0
13690 static void *task(p)
13693 return (void *) (p == NULL);
13698 /* pthread test function */
13699 #ifndef PTHREAD_CREATE_DETACHED
13700 #define PTHREAD_CREATE_DETACHED 1
13704 int detach = PTHREAD_CREATE_DETACHED;
13706 #if HAVE_PTHREADS > 4
13707 /* Final pthreads */
13708 pthread_attr_t attr;
13710 status = pthread_attr_init(&attr);
13711 if( status ) return status;
13713 #if HAVE_PTHREADS < 7
13714 status = pthread_attr_setdetachstate(&attr, &detach);
13715 if( status < 0 ) status = errno;
13717 status = pthread_attr_setdetachstate(&attr, detach);
13719 if( status ) return status;
13720 status = pthread_create( &t, &attr, task, NULL );
13721 #if HAVE_PTHREADS < 7
13722 if( status < 0 ) status = errno;
13724 if( status ) return status;
13726 /* Draft 4 pthreads */
13727 status = pthread_create( &t, pthread_attr_default, task, NULL );
13728 if( status ) return errno;
13730 /* give thread a chance to complete */
13731 /* it should remain joinable and hence detachable */
13734 status = pthread_detach( &t );
13735 if( status ) return errno;
13738 #ifdef HAVE_LINUX_THREADS
13739 pthread_kill_other_threads_np();
13746 if { (eval echo configure:13747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13748 ol_cv_pthread_lc_r=yes
13750 echo "configure: failed program was:" >&5
13751 cat conftest.$ac_ext >&5
13753 ol_cv_pthread_lc_r=no
13757 cat > conftest.$ac_ext <<EOF
13758 #line 13759 "configure"
13759 #include "confdefs.h"
13760 /* pthread test headers */
13761 #include <pthread.h>
13762 #if HAVE_PTHREADS < 7
13766 #define NULL (void*)0
13769 static void *task(p)
13772 return (void *) (p == NULL);
13776 int main(argc, argv)
13781 /* pthread test function */
13782 #ifndef PTHREAD_CREATE_DETACHED
13783 #define PTHREAD_CREATE_DETACHED 1
13787 int detach = PTHREAD_CREATE_DETACHED;
13789 #if HAVE_PTHREADS > 4
13790 /* Final pthreads */
13791 pthread_attr_t attr;
13793 status = pthread_attr_init(&attr);
13794 if( status ) return status;
13796 #if HAVE_PTHREADS < 7
13797 status = pthread_attr_setdetachstate(&attr, &detach);
13798 if( status < 0 ) status = errno;
13800 status = pthread_attr_setdetachstate(&attr, detach);
13802 if( status ) return status;
13803 status = pthread_create( &t, &attr, task, NULL );
13804 #if HAVE_PTHREADS < 7
13805 if( status < 0 ) status = errno;
13807 if( status ) return status;
13809 /* Draft 4 pthreads */
13810 status = pthread_create( &t, pthread_attr_default, task, NULL );
13811 if( status ) return errno;
13813 /* give thread a chance to complete */
13814 /* it should remain joinable and hence detachable */
13817 status = pthread_detach( &t );
13818 if( status ) return errno;
13821 #ifdef HAVE_LINUX_THREADS
13822 pthread_kill_other_threads_np();
13830 if { (eval echo configure:13831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13832 ol_cv_pthread_lc_r=yes
13834 echo "configure: failed program was:" >&5
13835 cat conftest.$ac_ext >&5
13837 ol_cv_pthread_lc_r=no
13848 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
13850 if test $ol_cv_pthread_lc_r = yes ; then
13851 ol_link_pthreads="-lc_r"
13852 ol_link_threads=posix
13857 # Pthread try link: -threads (ol_cv_pthread_threads)
13858 if test "$ol_link_threads" = no ; then
13860 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
13861 echo "configure:13862: checking for pthread link with -threads" >&5
13862 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
13863 echo $ac_n "(cached) $ac_c" 1>&6
13868 LIBS="-threads $LIBS"
13870 if test "$cross_compiling" = yes; then
13871 cat > conftest.$ac_ext <<EOF
13872 #line 13873 "configure"
13873 #include "confdefs.h"
13874 /* pthread test headers */
13875 #include <pthread.h>
13876 #if HAVE_PTHREADS < 7
13880 #define NULL (void*)0
13883 static void *task(p)
13886 return (void *) (p == NULL);
13891 /* pthread test function */
13892 #ifndef PTHREAD_CREATE_DETACHED
13893 #define PTHREAD_CREATE_DETACHED 1
13897 int detach = PTHREAD_CREATE_DETACHED;
13899 #if HAVE_PTHREADS > 4
13900 /* Final pthreads */
13901 pthread_attr_t attr;
13903 status = pthread_attr_init(&attr);
13904 if( status ) return status;
13906 #if HAVE_PTHREADS < 7
13907 status = pthread_attr_setdetachstate(&attr, &detach);
13908 if( status < 0 ) status = errno;
13910 status = pthread_attr_setdetachstate(&attr, detach);
13912 if( status ) return status;
13913 status = pthread_create( &t, &attr, task, NULL );
13914 #if HAVE_PTHREADS < 7
13915 if( status < 0 ) status = errno;
13917 if( status ) return status;
13919 /* Draft 4 pthreads */
13920 status = pthread_create( &t, pthread_attr_default, task, NULL );
13921 if( status ) return errno;
13923 /* give thread a chance to complete */
13924 /* it should remain joinable and hence detachable */
13927 status = pthread_detach( &t );
13928 if( status ) return errno;
13931 #ifdef HAVE_LINUX_THREADS
13932 pthread_kill_other_threads_np();
13939 if { (eval echo configure:13940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13941 ol_cv_pthread_threads=yes
13943 echo "configure: failed program was:" >&5
13944 cat conftest.$ac_ext >&5
13946 ol_cv_pthread_threads=no
13950 cat > conftest.$ac_ext <<EOF
13951 #line 13952 "configure"
13952 #include "confdefs.h"
13953 /* pthread test headers */
13954 #include <pthread.h>
13955 #if HAVE_PTHREADS < 7
13959 #define NULL (void*)0
13962 static void *task(p)
13965 return (void *) (p == NULL);
13969 int main(argc, argv)
13974 /* pthread test function */
13975 #ifndef PTHREAD_CREATE_DETACHED
13976 #define PTHREAD_CREATE_DETACHED 1
13980 int detach = PTHREAD_CREATE_DETACHED;
13982 #if HAVE_PTHREADS > 4
13983 /* Final pthreads */
13984 pthread_attr_t attr;
13986 status = pthread_attr_init(&attr);
13987 if( status ) return status;
13989 #if HAVE_PTHREADS < 7
13990 status = pthread_attr_setdetachstate(&attr, &detach);
13991 if( status < 0 ) status = errno;
13993 status = pthread_attr_setdetachstate(&attr, detach);
13995 if( status ) return status;
13996 status = pthread_create( &t, &attr, task, NULL );
13997 #if HAVE_PTHREADS < 7
13998 if( status < 0 ) status = errno;
14000 if( status ) return status;
14002 /* Draft 4 pthreads */
14003 status = pthread_create( &t, pthread_attr_default, task, NULL );
14004 if( status ) return errno;
14006 /* give thread a chance to complete */
14007 /* it should remain joinable and hence detachable */
14010 status = pthread_detach( &t );
14011 if( status ) return errno;
14014 #ifdef HAVE_LINUX_THREADS
14015 pthread_kill_other_threads_np();
14023 if { (eval echo configure:14024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14025 ol_cv_pthread_threads=yes
14027 echo "configure: failed program was:" >&5
14028 cat conftest.$ac_ext >&5
14030 ol_cv_pthread_threads=no
14041 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
14043 if test $ol_cv_pthread_threads = yes ; then
14044 ol_link_pthreads="-threads"
14045 ol_link_threads=posix
14050 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
14051 if test "$ol_link_threads" = no ; then
14052 # try -lpthreads -lmach -lexc -lc_r
14053 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
14054 echo "configure:14055: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
14055 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
14056 echo $ac_n "(cached) $ac_c" 1>&6
14061 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
14063 if test "$cross_compiling" = yes; then
14064 cat > conftest.$ac_ext <<EOF
14065 #line 14066 "configure"
14066 #include "confdefs.h"
14067 /* pthread test headers */
14068 #include <pthread.h>
14069 #if HAVE_PTHREADS < 7
14073 #define NULL (void*)0
14076 static void *task(p)
14079 return (void *) (p == NULL);
14084 /* pthread test function */
14085 #ifndef PTHREAD_CREATE_DETACHED
14086 #define PTHREAD_CREATE_DETACHED 1
14090 int detach = PTHREAD_CREATE_DETACHED;
14092 #if HAVE_PTHREADS > 4
14093 /* Final pthreads */
14094 pthread_attr_t attr;
14096 status = pthread_attr_init(&attr);
14097 if( status ) return status;
14099 #if HAVE_PTHREADS < 7
14100 status = pthread_attr_setdetachstate(&attr, &detach);
14101 if( status < 0 ) status = errno;
14103 status = pthread_attr_setdetachstate(&attr, detach);
14105 if( status ) return status;
14106 status = pthread_create( &t, &attr, task, NULL );
14107 #if HAVE_PTHREADS < 7
14108 if( status < 0 ) status = errno;
14110 if( status ) return status;
14112 /* Draft 4 pthreads */
14113 status = pthread_create( &t, pthread_attr_default, task, NULL );
14114 if( status ) return errno;
14116 /* give thread a chance to complete */
14117 /* it should remain joinable and hence detachable */
14120 status = pthread_detach( &t );
14121 if( status ) return errno;
14124 #ifdef HAVE_LINUX_THREADS
14125 pthread_kill_other_threads_np();
14132 if { (eval echo configure:14133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14134 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14136 echo "configure: failed program was:" >&5
14137 cat conftest.$ac_ext >&5
14139 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14143 cat > conftest.$ac_ext <<EOF
14144 #line 14145 "configure"
14145 #include "confdefs.h"
14146 /* pthread test headers */
14147 #include <pthread.h>
14148 #if HAVE_PTHREADS < 7
14152 #define NULL (void*)0
14155 static void *task(p)
14158 return (void *) (p == NULL);
14162 int main(argc, argv)
14167 /* pthread test function */
14168 #ifndef PTHREAD_CREATE_DETACHED
14169 #define PTHREAD_CREATE_DETACHED 1
14173 int detach = PTHREAD_CREATE_DETACHED;
14175 #if HAVE_PTHREADS > 4
14176 /* Final pthreads */
14177 pthread_attr_t attr;
14179 status = pthread_attr_init(&attr);
14180 if( status ) return status;
14182 #if HAVE_PTHREADS < 7
14183 status = pthread_attr_setdetachstate(&attr, &detach);
14184 if( status < 0 ) status = errno;
14186 status = pthread_attr_setdetachstate(&attr, detach);
14188 if( status ) return status;
14189 status = pthread_create( &t, &attr, task, NULL );
14190 #if HAVE_PTHREADS < 7
14191 if( status < 0 ) status = errno;
14193 if( status ) return status;
14195 /* Draft 4 pthreads */
14196 status = pthread_create( &t, pthread_attr_default, task, NULL );
14197 if( status ) return errno;
14199 /* give thread a chance to complete */
14200 /* it should remain joinable and hence detachable */
14203 status = pthread_detach( &t );
14204 if( status ) return errno;
14207 #ifdef HAVE_LINUX_THREADS
14208 pthread_kill_other_threads_np();
14216 if { (eval echo configure:14217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14218 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14220 echo "configure: failed program was:" >&5
14221 cat conftest.$ac_ext >&5
14223 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14234 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14236 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14237 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14238 ol_link_threads=posix
14242 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14243 if test "$ol_link_threads" = no ; then
14244 # try -lpthreads -lmach -lexc
14245 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14246 echo "configure:14247: checking for pthread link with -lpthreads -lmach -lexc" >&5
14247 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14248 echo $ac_n "(cached) $ac_c" 1>&6
14253 LIBS="-lpthreads -lmach -lexc $LIBS"
14255 if test "$cross_compiling" = yes; then
14256 cat > conftest.$ac_ext <<EOF
14257 #line 14258 "configure"
14258 #include "confdefs.h"
14259 /* pthread test headers */
14260 #include <pthread.h>
14261 #if HAVE_PTHREADS < 7
14265 #define NULL (void*)0
14268 static void *task(p)
14271 return (void *) (p == NULL);
14276 /* pthread test function */
14277 #ifndef PTHREAD_CREATE_DETACHED
14278 #define PTHREAD_CREATE_DETACHED 1
14282 int detach = PTHREAD_CREATE_DETACHED;
14284 #if HAVE_PTHREADS > 4
14285 /* Final pthreads */
14286 pthread_attr_t attr;
14288 status = pthread_attr_init(&attr);
14289 if( status ) return status;
14291 #if HAVE_PTHREADS < 7
14292 status = pthread_attr_setdetachstate(&attr, &detach);
14293 if( status < 0 ) status = errno;
14295 status = pthread_attr_setdetachstate(&attr, detach);
14297 if( status ) return status;
14298 status = pthread_create( &t, &attr, task, NULL );
14299 #if HAVE_PTHREADS < 7
14300 if( status < 0 ) status = errno;
14302 if( status ) return status;
14304 /* Draft 4 pthreads */
14305 status = pthread_create( &t, pthread_attr_default, task, NULL );
14306 if( status ) return errno;
14308 /* give thread a chance to complete */
14309 /* it should remain joinable and hence detachable */
14312 status = pthread_detach( &t );
14313 if( status ) return errno;
14316 #ifdef HAVE_LINUX_THREADS
14317 pthread_kill_other_threads_np();
14324 if { (eval echo configure:14325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14326 ol_cv_pthread_lpthreads_lmach_lexc=yes
14328 echo "configure: failed program was:" >&5
14329 cat conftest.$ac_ext >&5
14331 ol_cv_pthread_lpthreads_lmach_lexc=no
14335 cat > conftest.$ac_ext <<EOF
14336 #line 14337 "configure"
14337 #include "confdefs.h"
14338 /* pthread test headers */
14339 #include <pthread.h>
14340 #if HAVE_PTHREADS < 7
14344 #define NULL (void*)0
14347 static void *task(p)
14350 return (void *) (p == NULL);
14354 int main(argc, argv)
14359 /* pthread test function */
14360 #ifndef PTHREAD_CREATE_DETACHED
14361 #define PTHREAD_CREATE_DETACHED 1
14365 int detach = PTHREAD_CREATE_DETACHED;
14367 #if HAVE_PTHREADS > 4
14368 /* Final pthreads */
14369 pthread_attr_t attr;
14371 status = pthread_attr_init(&attr);
14372 if( status ) return status;
14374 #if HAVE_PTHREADS < 7
14375 status = pthread_attr_setdetachstate(&attr, &detach);
14376 if( status < 0 ) status = errno;
14378 status = pthread_attr_setdetachstate(&attr, detach);
14380 if( status ) return status;
14381 status = pthread_create( &t, &attr, task, NULL );
14382 #if HAVE_PTHREADS < 7
14383 if( status < 0 ) status = errno;
14385 if( status ) return status;
14387 /* Draft 4 pthreads */
14388 status = pthread_create( &t, pthread_attr_default, task, NULL );
14389 if( status ) return errno;
14391 /* give thread a chance to complete */
14392 /* it should remain joinable and hence detachable */
14395 status = pthread_detach( &t );
14396 if( status ) return errno;
14399 #ifdef HAVE_LINUX_THREADS
14400 pthread_kill_other_threads_np();
14408 if { (eval echo configure:14409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14410 ol_cv_pthread_lpthreads_lmach_lexc=yes
14412 echo "configure: failed program was:" >&5
14413 cat conftest.$ac_ext >&5
14415 ol_cv_pthread_lpthreads_lmach_lexc=no
14426 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14428 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14429 ol_link_pthreads="-lpthreads -lmach -lexc"
14430 ol_link_threads=posix
14434 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14435 if test "$ol_link_threads" = no ; then
14436 # try -lpthreads -lexc
14437 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14438 echo "configure:14439: checking for pthread link with -lpthreads -lexc" >&5
14439 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14440 echo $ac_n "(cached) $ac_c" 1>&6
14445 LIBS="-lpthreads -lexc $LIBS"
14447 if test "$cross_compiling" = yes; then
14448 cat > conftest.$ac_ext <<EOF
14449 #line 14450 "configure"
14450 #include "confdefs.h"
14451 /* pthread test headers */
14452 #include <pthread.h>
14453 #if HAVE_PTHREADS < 7
14457 #define NULL (void*)0
14460 static void *task(p)
14463 return (void *) (p == NULL);
14468 /* pthread test function */
14469 #ifndef PTHREAD_CREATE_DETACHED
14470 #define PTHREAD_CREATE_DETACHED 1
14474 int detach = PTHREAD_CREATE_DETACHED;
14476 #if HAVE_PTHREADS > 4
14477 /* Final pthreads */
14478 pthread_attr_t attr;
14480 status = pthread_attr_init(&attr);
14481 if( status ) return status;
14483 #if HAVE_PTHREADS < 7
14484 status = pthread_attr_setdetachstate(&attr, &detach);
14485 if( status < 0 ) status = errno;
14487 status = pthread_attr_setdetachstate(&attr, detach);
14489 if( status ) return status;
14490 status = pthread_create( &t, &attr, task, NULL );
14491 #if HAVE_PTHREADS < 7
14492 if( status < 0 ) status = errno;
14494 if( status ) return status;
14496 /* Draft 4 pthreads */
14497 status = pthread_create( &t, pthread_attr_default, task, NULL );
14498 if( status ) return errno;
14500 /* give thread a chance to complete */
14501 /* it should remain joinable and hence detachable */
14504 status = pthread_detach( &t );
14505 if( status ) return errno;
14508 #ifdef HAVE_LINUX_THREADS
14509 pthread_kill_other_threads_np();
14516 if { (eval echo configure:14517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14518 ol_cv_pthread_lpthreads_lexc=yes
14520 echo "configure: failed program was:" >&5
14521 cat conftest.$ac_ext >&5
14523 ol_cv_pthread_lpthreads_lexc=no
14527 cat > conftest.$ac_ext <<EOF
14528 #line 14529 "configure"
14529 #include "confdefs.h"
14530 /* pthread test headers */
14531 #include <pthread.h>
14532 #if HAVE_PTHREADS < 7
14536 #define NULL (void*)0
14539 static void *task(p)
14542 return (void *) (p == NULL);
14546 int main(argc, argv)
14551 /* pthread test function */
14552 #ifndef PTHREAD_CREATE_DETACHED
14553 #define PTHREAD_CREATE_DETACHED 1
14557 int detach = PTHREAD_CREATE_DETACHED;
14559 #if HAVE_PTHREADS > 4
14560 /* Final pthreads */
14561 pthread_attr_t attr;
14563 status = pthread_attr_init(&attr);
14564 if( status ) return status;
14566 #if HAVE_PTHREADS < 7
14567 status = pthread_attr_setdetachstate(&attr, &detach);
14568 if( status < 0 ) status = errno;
14570 status = pthread_attr_setdetachstate(&attr, detach);
14572 if( status ) return status;
14573 status = pthread_create( &t, &attr, task, NULL );
14574 #if HAVE_PTHREADS < 7
14575 if( status < 0 ) status = errno;
14577 if( status ) return status;
14579 /* Draft 4 pthreads */
14580 status = pthread_create( &t, pthread_attr_default, task, NULL );
14581 if( status ) return errno;
14583 /* give thread a chance to complete */
14584 /* it should remain joinable and hence detachable */
14587 status = pthread_detach( &t );
14588 if( status ) return errno;
14591 #ifdef HAVE_LINUX_THREADS
14592 pthread_kill_other_threads_np();
14600 if { (eval echo configure:14601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14602 ol_cv_pthread_lpthreads_lexc=yes
14604 echo "configure: failed program was:" >&5
14605 cat conftest.$ac_ext >&5
14607 ol_cv_pthread_lpthreads_lexc=no
14618 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14620 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14621 ol_link_pthreads="-lpthreads -lexc"
14622 ol_link_threads=posix
14627 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14628 if test "$ol_link_threads" = no ; then
14630 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14631 echo "configure:14632: checking for pthread link with -lpthreads" >&5
14632 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14633 echo $ac_n "(cached) $ac_c" 1>&6
14638 LIBS="-lpthreads $LIBS"
14640 if test "$cross_compiling" = yes; then
14641 cat > conftest.$ac_ext <<EOF
14642 #line 14643 "configure"
14643 #include "confdefs.h"
14644 /* pthread test headers */
14645 #include <pthread.h>
14646 #if HAVE_PTHREADS < 7
14650 #define NULL (void*)0
14653 static void *task(p)
14656 return (void *) (p == NULL);
14661 /* pthread test function */
14662 #ifndef PTHREAD_CREATE_DETACHED
14663 #define PTHREAD_CREATE_DETACHED 1
14667 int detach = PTHREAD_CREATE_DETACHED;
14669 #if HAVE_PTHREADS > 4
14670 /* Final pthreads */
14671 pthread_attr_t attr;
14673 status = pthread_attr_init(&attr);
14674 if( status ) return status;
14676 #if HAVE_PTHREADS < 7
14677 status = pthread_attr_setdetachstate(&attr, &detach);
14678 if( status < 0 ) status = errno;
14680 status = pthread_attr_setdetachstate(&attr, detach);
14682 if( status ) return status;
14683 status = pthread_create( &t, &attr, task, NULL );
14684 #if HAVE_PTHREADS < 7
14685 if( status < 0 ) status = errno;
14687 if( status ) return status;
14689 /* Draft 4 pthreads */
14690 status = pthread_create( &t, pthread_attr_default, task, NULL );
14691 if( status ) return errno;
14693 /* give thread a chance to complete */
14694 /* it should remain joinable and hence detachable */
14697 status = pthread_detach( &t );
14698 if( status ) return errno;
14701 #ifdef HAVE_LINUX_THREADS
14702 pthread_kill_other_threads_np();
14709 if { (eval echo configure:14710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14711 ol_cv_pthread_lib_lpthreads=yes
14713 echo "configure: failed program was:" >&5
14714 cat conftest.$ac_ext >&5
14716 ol_cv_pthread_lib_lpthreads=no
14720 cat > conftest.$ac_ext <<EOF
14721 #line 14722 "configure"
14722 #include "confdefs.h"
14723 /* pthread test headers */
14724 #include <pthread.h>
14725 #if HAVE_PTHREADS < 7
14729 #define NULL (void*)0
14732 static void *task(p)
14735 return (void *) (p == NULL);
14739 int main(argc, argv)
14744 /* pthread test function */
14745 #ifndef PTHREAD_CREATE_DETACHED
14746 #define PTHREAD_CREATE_DETACHED 1
14750 int detach = PTHREAD_CREATE_DETACHED;
14752 #if HAVE_PTHREADS > 4
14753 /* Final pthreads */
14754 pthread_attr_t attr;
14756 status = pthread_attr_init(&attr);
14757 if( status ) return status;
14759 #if HAVE_PTHREADS < 7
14760 status = pthread_attr_setdetachstate(&attr, &detach);
14761 if( status < 0 ) status = errno;
14763 status = pthread_attr_setdetachstate(&attr, detach);
14765 if( status ) return status;
14766 status = pthread_create( &t, &attr, task, NULL );
14767 #if HAVE_PTHREADS < 7
14768 if( status < 0 ) status = errno;
14770 if( status ) return status;
14772 /* Draft 4 pthreads */
14773 status = pthread_create( &t, pthread_attr_default, task, NULL );
14774 if( status ) return errno;
14776 /* give thread a chance to complete */
14777 /* it should remain joinable and hence detachable */
14780 status = pthread_detach( &t );
14781 if( status ) return errno;
14784 #ifdef HAVE_LINUX_THREADS
14785 pthread_kill_other_threads_np();
14793 if { (eval echo configure:14794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14795 ol_cv_pthread_lib_lpthreads=yes
14797 echo "configure: failed program was:" >&5
14798 cat conftest.$ac_ext >&5
14800 ol_cv_pthread_lib_lpthreads=no
14811 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
14813 if test $ol_cv_pthread_lib_lpthreads = yes ; then
14814 ol_link_pthreads="-lpthreads"
14815 ol_link_threads=posix
14820 if test $ol_link_threads != no ; then
14821 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
14823 save_CPPFLAGS="$CPPFLAGS"
14825 LIBS="$LTHREAD_LIBS $LIBS"
14827 for ac_func in sched_yield pthread_yield thr_yield
14829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14830 echo "configure:14831: checking for $ac_func" >&5
14831 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14832 echo $ac_n "(cached) $ac_c" 1>&6
14834 cat > conftest.$ac_ext <<EOF
14835 #line 14836 "configure"
14836 #include "confdefs.h"
14837 /* System header to define __stub macros and hopefully few prototypes,
14838 which can conflict with char $ac_func(); below. */
14839 #include <assert.h>
14840 /* Override any gcc2 internal prototype to avoid an error. */
14841 /* We use char because int might match the return type of a gcc2
14842 builtin and then its argument prototype would still apply. */
14848 /* The GNU C library defines this for functions which it implements
14849 to always fail with ENOSYS. Some functions are actually named
14850 something starting with __ and the normal name is an alias. */
14851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14859 if { (eval echo configure:14860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14861 eval "ac_cv_func_$ac_func=yes"
14863 echo "configure: failed program was:" >&5
14864 cat conftest.$ac_ext >&5
14866 eval "ac_cv_func_$ac_func=no"
14871 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14872 echo "$ac_t""yes" 1>&6
14873 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14874 cat >> confdefs.h <<EOF
14875 #define $ac_tr_func 1
14879 echo "$ac_t""no" 1>&6
14884 if test $ac_cv_func_sched_yield = no -a \
14885 $ac_cv_func_pthread_yield = no -a \
14886 $ac_cv_func_thr_yield = no ; then
14887 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
14888 echo "configure:14889: checking for sched_yield in -lrt" >&5
14889 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
14890 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
14891 echo $ac_n "(cached) $ac_c" 1>&6
14893 ac_save_LIBS="$LIBS"
14895 cat > conftest.$ac_ext <<EOF
14896 #line 14897 "configure"
14897 #include "confdefs.h"
14898 /* Override any gcc2 internal prototype to avoid an error. */
14899 /* We use char because int might match the return type of a gcc2
14900 builtin and then its argument prototype would still apply. */
14901 char sched_yield();
14907 if { (eval echo configure:14908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14909 eval "ac_cv_lib_$ac_lib_var=yes"
14911 echo "configure: failed program was:" >&5
14912 cat conftest.$ac_ext >&5
14914 eval "ac_cv_lib_$ac_lib_var=no"
14917 LIBS="$ac_save_LIBS"
14920 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14921 echo "$ac_t""yes" 1>&6
14922 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
14923 cat >> confdefs.h <<\EOF
14924 #define HAVE_SCHED_YIELD 1
14927 ac_cv_func_sched_yield=yes
14929 echo "$ac_t""no" 1>&6
14930 ac_cv_func_sched_yield=no
14934 if test $ac_cv_func_sched_yield = no -a \
14935 $ac_cv_func_pthread_yield = no -a \
14936 "$ac_cv_func_thr_yield" = no ; then
14937 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
14940 for ac_func in pthread_kill pthread_rwlock_destroy
14942 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14943 echo "configure:14944: checking for $ac_func" >&5
14944 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
14945 echo $ac_n "(cached) $ac_c" 1>&6
14947 cat > conftest.$ac_ext <<EOF
14948 #line 14949 "configure"
14949 #include "confdefs.h"
14950 /* System header to define __stub macros and hopefully few prototypes,
14951 which can conflict with char $ac_func(); below. */
14952 #include <assert.h>
14953 /* Override any gcc2 internal prototype to avoid an error. */
14954 /* We use char because int might match the return type of a gcc2
14955 builtin and then its argument prototype would still apply. */
14961 /* The GNU C library defines this for functions which it implements
14962 to always fail with ENOSYS. Some functions are actually named
14963 something starting with __ and the normal name is an alias. */
14964 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14972 if { (eval echo configure:14973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14974 eval "ac_cv_func_$ac_func=yes"
14976 echo "configure: failed program was:" >&5
14977 cat conftest.$ac_ext >&5
14979 eval "ac_cv_func_$ac_func=no"
14984 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14985 echo "$ac_t""yes" 1>&6
14986 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14987 cat >> confdefs.h <<EOF
14988 #define $ac_tr_func 1
14992 echo "$ac_t""no" 1>&6
14997 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
14998 echo "configure:14999: checking for pthread_detach with <pthread.h>" >&5
14999 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
15000 echo $ac_n "(cached) $ac_c" 1>&6
15003 cat > conftest.$ac_ext <<EOF
15004 #line 15005 "configure"
15005 #include "confdefs.h"
15007 #include <pthread.h>
15009 #define NULL (void*)0
15013 pthread_detach(NULL);
15016 if { (eval echo configure:15017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15018 ol_cv_func_pthread_detach=yes
15020 echo "configure: failed program was:" >&5
15021 cat conftest.$ac_ext >&5
15023 ol_cv_func_pthread_detach=no
15029 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
15031 if test $ol_cv_func_pthread_detach = no ; then
15032 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
15035 cat >> confdefs.h <<\EOF
15036 #define HAVE_PTHREAD_DETACH 1
15041 pthread_setconcurrency \
15042 pthread_getconcurrency \
15043 thr_setconcurrency \
15044 thr_getconcurrency \
15047 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15048 echo "configure:15049: checking for $ac_func" >&5
15049 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15050 echo $ac_n "(cached) $ac_c" 1>&6
15052 cat > conftest.$ac_ext <<EOF
15053 #line 15054 "configure"
15054 #include "confdefs.h"
15055 /* System header to define __stub macros and hopefully few prototypes,
15056 which can conflict with char $ac_func(); below. */
15057 #include <assert.h>
15058 /* Override any gcc2 internal prototype to avoid an error. */
15059 /* We use char because int might match the return type of a gcc2
15060 builtin and then its argument prototype would still apply. */
15066 /* The GNU C library defines this for functions which it implements
15067 to always fail with ENOSYS. Some functions are actually named
15068 something starting with __ and the normal name is an alias. */
15069 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15077 if { (eval echo configure:15078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15079 eval "ac_cv_func_$ac_func=yes"
15081 echo "configure: failed program was:" >&5
15082 cat conftest.$ac_ext >&5
15084 eval "ac_cv_func_$ac_func=no"
15089 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15090 echo "$ac_t""yes" 1>&6
15091 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15092 cat >> confdefs.h <<EOF
15093 #define $ac_tr_func 1
15097 echo "$ac_t""no" 1>&6
15103 for ac_func in pthread_kill_other_threads_np
15105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15106 echo "configure:15107: checking for $ac_func" >&5
15107 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15108 echo $ac_n "(cached) $ac_c" 1>&6
15110 cat > conftest.$ac_ext <<EOF
15111 #line 15112 "configure"
15112 #include "confdefs.h"
15113 /* System header to define __stub macros and hopefully few prototypes,
15114 which can conflict with char $ac_func(); below. */
15115 #include <assert.h>
15116 /* Override any gcc2 internal prototype to avoid an error. */
15117 /* We use char because int might match the return type of a gcc2
15118 builtin and then its argument prototype would still apply. */
15124 /* The GNU C library defines this for functions which it implements
15125 to always fail with ENOSYS. Some functions are actually named
15126 something starting with __ and the normal name is an alias. */
15127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15135 if { (eval echo configure:15136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15137 eval "ac_cv_func_$ac_func=yes"
15139 echo "configure: failed program was:" >&5
15140 cat conftest.$ac_ext >&5
15142 eval "ac_cv_func_$ac_func=no"
15147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15148 echo "$ac_t""yes" 1>&6
15149 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15150 cat >> confdefs.h <<EOF
15151 #define $ac_tr_func 1
15155 echo "$ac_t""no" 1>&6
15159 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15160 echo "configure:15161: checking for LinuxThreads implementation" >&5
15161 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15162 echo $ac_n "(cached) $ac_c" 1>&6
15164 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15167 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15172 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15173 echo "configure:15174: checking for LinuxThreads consistency" >&5
15174 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15175 echo $ac_n "(cached) $ac_c" 1>&6
15178 if test $ol_cv_header_linux_threads = yes -a \
15179 $ol_cv_sys_linux_threads = yes; then
15180 ol_cv_linux_threads=yes
15181 elif test $ol_cv_header_linux_threads = no -a \
15182 $ol_cv_sys_linux_threads = no; then
15183 ol_cv_linux_threads=no
15185 ol_cv_linux_threads=error
15190 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15193 if test $ol_cv_linux_threads = error; then
15194 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15197 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15198 echo "configure:15199: checking if pthread_create() works" >&5
15199 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15200 echo $ac_n "(cached) $ac_c" 1>&6
15203 if test "$cross_compiling" = yes; then
15204 ol_cv_pthread_create_works=yes
15206 cat > conftest.$ac_ext <<EOF
15207 #line 15208 "configure"
15208 #include "confdefs.h"
15209 /* pthread test headers */
15210 #include <pthread.h>
15211 #if HAVE_PTHREADS < 7
15215 #define NULL (void*)0
15218 static void *task(p)
15221 return (void *) (p == NULL);
15225 int main(argc, argv)
15230 /* pthread test function */
15231 #ifndef PTHREAD_CREATE_DETACHED
15232 #define PTHREAD_CREATE_DETACHED 1
15236 int detach = PTHREAD_CREATE_DETACHED;
15238 #if HAVE_PTHREADS > 4
15239 /* Final pthreads */
15240 pthread_attr_t attr;
15242 status = pthread_attr_init(&attr);
15243 if( status ) return status;
15245 #if HAVE_PTHREADS < 7
15246 status = pthread_attr_setdetachstate(&attr, &detach);
15247 if( status < 0 ) status = errno;
15249 status = pthread_attr_setdetachstate(&attr, detach);
15251 if( status ) return status;
15252 status = pthread_create( &t, &attr, task, NULL );
15253 #if HAVE_PTHREADS < 7
15254 if( status < 0 ) status = errno;
15256 if( status ) return status;
15258 /* Draft 4 pthreads */
15259 status = pthread_create( &t, pthread_attr_default, task, NULL );
15260 if( status ) return errno;
15262 /* give thread a chance to complete */
15263 /* it should remain joinable and hence detachable */
15266 status = pthread_detach( &t );
15267 if( status ) return errno;
15270 #ifdef HAVE_LINUX_THREADS
15271 pthread_kill_other_threads_np();
15279 if { (eval echo configure:15280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15281 ol_cv_pthread_create_works=yes
15283 echo "configure: failed program was:" >&5
15284 cat conftest.$ac_ext >&5
15286 ol_cv_pthread_create_works=no
15293 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15295 if test $ol_cv_pthread_create_works = no ; then
15296 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15299 if test $ol_with_yielding_select = auto ; then
15300 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15301 echo "configure:15302: checking if select yields when using pthreads" >&5
15302 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15303 echo $ac_n "(cached) $ac_c" 1>&6
15306 if test "$cross_compiling" = yes; then
15307 ol_cv_pthread_select_yields=cross
15309 cat > conftest.$ac_ext <<EOF
15310 #line 15311 "configure"
15311 #include "confdefs.h"
15313 #include <sys/types.h>
15314 #include <sys/time.h>
15315 #include <unistd.h>
15316 #include <pthread.h>
15318 #define NULL (void*) 0
15321 static int fildes[2];
15323 static void *task(p)
15335 FD_SET(fildes[0], &rfds);
15337 /* we're not interested in any fds */
15338 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15345 exit(0); /* if we exit here, the select blocked the whole process */
15348 int main(argc, argv)
15354 /* create a pipe to select */
15355 if(pipe(&fildes[0])) {
15360 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15361 (void) pthread_setconcurrency(2);
15363 #ifdef HAVE_THR_SETCONCURRENCY
15364 /* Set Solaris LWP concurrency to 2 */
15365 thr_setconcurrency(2);
15369 #if HAVE_PTHREADS < 6
15370 pthread_create(&t, pthread_attr_default, task, NULL);
15372 pthread_create(&t, NULL, task, NULL);
15375 /* make sure task runs first */
15378 #elif defined( HAVE_SCHED_YIELD )
15380 #elif defined( HAVE_PTHREAD_YIELD )
15387 if { (eval echo configure:15388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15389 ol_cv_pthread_select_yields=no
15391 echo "configure: failed program was:" >&5
15392 cat conftest.$ac_ext >&5
15394 ol_cv_pthread_select_yields=yes
15401 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15403 if test $ol_cv_pthread_select_yields = cross ; then
15404 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15407 if test $ol_cv_pthread_select_yields = yes ; then
15408 ol_with_yielding_select=yes
15412 CPPFLAGS="$save_CPPFLAGS"
15415 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15419 if test $ol_with_threads = posix ; then
15420 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15424 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15425 -o $ol_with_threads = mach ; then
15427 for ac_hdr in mach/cthreads.h cthreads.h
15429 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15430 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15431 echo "configure:15432: checking for $ac_hdr" >&5
15432 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15433 echo $ac_n "(cached) $ac_c" 1>&6
15435 cat > conftest.$ac_ext <<EOF
15436 #line 15437 "configure"
15437 #include "confdefs.h"
15440 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15441 { (eval echo configure:15442: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15442 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15443 if test -z "$ac_err"; then
15445 eval "ac_cv_header_$ac_safe=yes"
15448 echo "configure: failed program was:" >&5
15449 cat conftest.$ac_ext >&5
15451 eval "ac_cv_header_$ac_safe=no"
15455 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15456 echo "$ac_t""yes" 1>&6
15457 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15458 cat >> confdefs.h <<EOF
15459 #define $ac_tr_hdr 1
15463 echo "$ac_t""no" 1>&6
15467 if test $ac_cv_header_mach_cthreads_h = yes ; then
15468 ol_with_threads=found
15470 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15471 echo "configure:15472: checking for cthread_fork" >&5
15472 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15473 echo $ac_n "(cached) $ac_c" 1>&6
15475 cat > conftest.$ac_ext <<EOF
15476 #line 15477 "configure"
15477 #include "confdefs.h"
15478 /* System header to define __stub macros and hopefully few prototypes,
15479 which can conflict with char cthread_fork(); below. */
15480 #include <assert.h>
15481 /* Override any gcc2 internal prototype to avoid an error. */
15482 /* We use char because int might match the return type of a gcc2
15483 builtin and then its argument prototype would still apply. */
15484 char cthread_fork();
15489 /* The GNU C library defines this for functions which it implements
15490 to always fail with ENOSYS. Some functions are actually named
15491 something starting with __ and the normal name is an alias. */
15492 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15500 if { (eval echo configure:15501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15502 eval "ac_cv_func_cthread_fork=yes"
15504 echo "configure: failed program was:" >&5
15505 cat conftest.$ac_ext >&5
15507 eval "ac_cv_func_cthread_fork=no"
15512 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15513 echo "$ac_t""yes" 1>&6
15514 ol_link_threads=yes
15516 echo "$ac_t""no" 1>&6
15520 if test $ol_link_threads = no ; then
15521 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15522 echo "configure:15523: checking for cthread_fork with -all_load" >&5
15523 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15524 echo $ac_n "(cached) $ac_c" 1>&6
15528 LIBS="-all_load $LIBS"
15529 cat > conftest.$ac_ext <<EOF
15530 #line 15531 "configure"
15531 #include "confdefs.h"
15532 #include <mach/cthreads.h>
15535 cthread_fork((void *)0, (void *)0);
15539 if { (eval echo configure:15540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15541 ol_cv_cthread_all_load=yes
15543 echo "configure: failed program was:" >&5
15544 cat conftest.$ac_ext >&5
15546 ol_cv_cthread_all_load=no
15553 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15555 if test $ol_cv_cthread_all_load = yes ; then
15556 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15557 ol_link_threads=mach
15558 ol_with_threads=found
15562 elif test $ac_cv_header_cthreads_h = yes ; then
15564 ol_with_threads=found
15567 LIBS="$LIBS -lthreads"
15568 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15569 echo "configure:15570: checking for cthread_fork" >&5
15570 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15571 echo $ac_n "(cached) $ac_c" 1>&6
15573 cat > conftest.$ac_ext <<EOF
15574 #line 15575 "configure"
15575 #include "confdefs.h"
15576 /* System header to define __stub macros and hopefully few prototypes,
15577 which can conflict with char cthread_fork(); below. */
15578 #include <assert.h>
15579 /* Override any gcc2 internal prototype to avoid an error. */
15580 /* We use char because int might match the return type of a gcc2
15581 builtin and then its argument prototype would still apply. */
15582 char cthread_fork();
15587 /* The GNU C library defines this for functions which it implements
15588 to always fail with ENOSYS. Some functions are actually named
15589 something starting with __ and the normal name is an alias. */
15590 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15598 if { (eval echo configure:15599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15600 eval "ac_cv_func_cthread_fork=yes"
15602 echo "configure: failed program was:" >&5
15603 cat conftest.$ac_ext >&5
15605 eval "ac_cv_func_cthread_fork=no"
15610 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15611 echo "$ac_t""yes" 1>&6
15612 ol_link_threads=yes
15614 echo "$ac_t""no" 1>&6
15619 if test $ol_link_threads = yes ; then
15620 LTHREAD_LIBS="-lthreads"
15621 ol_link_threads=mach
15622 ol_with_threads=found
15624 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15627 elif test $ol_with_threads = mach ; then
15628 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15631 if test $ol_link_threads = mach ; then
15632 cat >> confdefs.h <<\EOF
15633 #define HAVE_MACH_CTHREADS 1
15636 elif test $ol_with_threads = found ; then
15637 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15641 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15642 -o $ol_with_threads = pth ; then
15644 for ac_hdr in pth.h
15646 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15647 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15648 echo "configure:15649: checking for $ac_hdr" >&5
15649 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15650 echo $ac_n "(cached) $ac_c" 1>&6
15652 cat > conftest.$ac_ext <<EOF
15653 #line 15654 "configure"
15654 #include "confdefs.h"
15657 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15658 { (eval echo configure:15659: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15659 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15660 if test -z "$ac_err"; then
15662 eval "ac_cv_header_$ac_safe=yes"
15665 echo "configure: failed program was:" >&5
15666 cat conftest.$ac_ext >&5
15668 eval "ac_cv_header_$ac_safe=no"
15672 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15673 echo "$ac_t""yes" 1>&6
15674 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15675 cat >> confdefs.h <<EOF
15676 #define $ac_tr_hdr 1
15680 echo "$ac_t""no" 1>&6
15685 if test $ac_cv_header_pth_h = yes ; then
15686 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15687 echo "configure:15688: checking for pth_version in -lpth" >&5
15688 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15689 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15690 echo $ac_n "(cached) $ac_c" 1>&6
15692 ac_save_LIBS="$LIBS"
15694 cat > conftest.$ac_ext <<EOF
15695 #line 15696 "configure"
15696 #include "confdefs.h"
15697 /* Override any gcc2 internal prototype to avoid an error. */
15698 /* We use char because int might match the return type of a gcc2
15699 builtin and then its argument prototype would still apply. */
15700 char pth_version();
15706 if { (eval echo configure:15707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15708 eval "ac_cv_lib_$ac_lib_var=yes"
15710 echo "configure: failed program was:" >&5
15711 cat conftest.$ac_ext >&5
15713 eval "ac_cv_lib_$ac_lib_var=no"
15716 LIBS="$ac_save_LIBS"
15719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15720 echo "$ac_t""yes" 1>&6
15723 echo "$ac_t""no" 1>&6
15728 if test $have_pth = yes ; then
15729 cat >> confdefs.h <<\EOF
15730 #define HAVE_GNU_PTH 1
15733 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15734 ol_link_threads=pth
15735 ol_with_threads=found
15737 if test $ol_with_yielding_select = auto ; then
15738 ol_with_yielding_select=yes
15744 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15745 -o $ol_with_threads = lwp ; then
15747 for ac_hdr in thread.h synch.h
15749 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15750 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15751 echo "configure:15752: checking for $ac_hdr" >&5
15752 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15753 echo $ac_n "(cached) $ac_c" 1>&6
15755 cat > conftest.$ac_ext <<EOF
15756 #line 15757 "configure"
15757 #include "confdefs.h"
15760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15761 { (eval echo configure:15762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15763 if test -z "$ac_err"; then
15765 eval "ac_cv_header_$ac_safe=yes"
15768 echo "configure: failed program was:" >&5
15769 cat conftest.$ac_ext >&5
15771 eval "ac_cv_header_$ac_safe=no"
15775 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15776 echo "$ac_t""yes" 1>&6
15777 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15778 cat >> confdefs.h <<EOF
15779 #define $ac_tr_hdr 1
15783 echo "$ac_t""no" 1>&6
15787 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15788 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15789 echo "configure:15790: checking for thr_create in -lthread" >&5
15790 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
15791 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15792 echo $ac_n "(cached) $ac_c" 1>&6
15794 ac_save_LIBS="$LIBS"
15795 LIBS="-lthread $LIBS"
15796 cat > conftest.$ac_ext <<EOF
15797 #line 15798 "configure"
15798 #include "confdefs.h"
15799 /* Override any gcc2 internal prototype to avoid an error. */
15800 /* We use char because int might match the return type of a gcc2
15801 builtin and then its argument prototype would still apply. */
15808 if { (eval echo configure:15809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15810 eval "ac_cv_lib_$ac_lib_var=yes"
15812 echo "configure: failed program was:" >&5
15813 cat conftest.$ac_ext >&5
15815 eval "ac_cv_lib_$ac_lib_var=no"
15818 LIBS="$ac_save_LIBS"
15821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15822 echo "$ac_t""yes" 1>&6
15825 echo "$ac_t""no" 1>&6
15830 if test $have_thr = yes ; then
15831 cat >> confdefs.h <<\EOF
15835 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
15836 ol_link_threads=thr
15838 if test $ol_with_yielding_select = auto ; then
15839 ol_with_yielding_select=yes
15843 thr_setconcurrency \
15844 thr_getconcurrency \
15847 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15848 echo "configure:15849: checking for $ac_func" >&5
15849 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15850 echo $ac_n "(cached) $ac_c" 1>&6
15852 cat > conftest.$ac_ext <<EOF
15853 #line 15854 "configure"
15854 #include "confdefs.h"
15855 /* System header to define __stub macros and hopefully few prototypes,
15856 which can conflict with char $ac_func(); below. */
15857 #include <assert.h>
15858 /* Override any gcc2 internal prototype to avoid an error. */
15859 /* We use char because int might match the return type of a gcc2
15860 builtin and then its argument prototype would still apply. */
15866 /* The GNU C library defines this for functions which it implements
15867 to always fail with ENOSYS. Some functions are actually named
15868 something starting with __ and the normal name is an alias. */
15869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15877 if { (eval echo configure:15878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15879 eval "ac_cv_func_$ac_func=yes"
15881 echo "configure: failed program was:" >&5
15882 cat conftest.$ac_ext >&5
15884 eval "ac_cv_func_$ac_func=no"
15889 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15890 echo "$ac_t""yes" 1>&6
15891 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15892 cat >> confdefs.h <<EOF
15893 #define $ac_tr_func 1
15897 echo "$ac_t""no" 1>&6
15904 for ac_hdr in lwp/lwp.h
15906 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15907 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15908 echo "configure:15909: checking for $ac_hdr" >&5
15909 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15910 echo $ac_n "(cached) $ac_c" 1>&6
15912 cat > conftest.$ac_ext <<EOF
15913 #line 15914 "configure"
15914 #include "confdefs.h"
15917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15918 { (eval echo configure:15919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15920 if test -z "$ac_err"; then
15922 eval "ac_cv_header_$ac_safe=yes"
15925 echo "configure: failed program was:" >&5
15926 cat conftest.$ac_ext >&5
15928 eval "ac_cv_header_$ac_safe=no"
15932 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15933 echo "$ac_t""yes" 1>&6
15934 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15935 cat >> confdefs.h <<EOF
15936 #define $ac_tr_hdr 1
15940 echo "$ac_t""no" 1>&6
15944 if test $ac_cv_header_lwp_lwp_h = yes ; then
15945 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
15946 echo "configure:15947: checking for lwp_create in -llwp" >&5
15947 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
15948 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15949 echo $ac_n "(cached) $ac_c" 1>&6
15951 ac_save_LIBS="$LIBS"
15953 cat > conftest.$ac_ext <<EOF
15954 #line 15955 "configure"
15955 #include "confdefs.h"
15956 /* Override any gcc2 internal prototype to avoid an error. */
15957 /* We use char because int might match the return type of a gcc2
15958 builtin and then its argument prototype would still apply. */
15965 if { (eval echo configure:15966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15967 eval "ac_cv_lib_$ac_lib_var=yes"
15969 echo "configure: failed program was:" >&5
15970 cat conftest.$ac_ext >&5
15972 eval "ac_cv_lib_$ac_lib_var=no"
15975 LIBS="$ac_save_LIBS"
15978 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15979 echo "$ac_t""yes" 1>&6
15982 echo "$ac_t""no" 1>&6
15987 if test $have_lwp = yes ; then
15988 cat >> confdefs.h <<\EOF
15992 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
15993 ol_link_threads=lwp
15995 if test $ol_with_yielding_select = auto ; then
15996 ol_with_yielding_select=no
16002 if test $ol_with_yielding_select = yes ; then
16003 cat >> confdefs.h <<\EOF
16004 #define HAVE_YIELDING_SELECT 1
16009 if test $ol_with_threads = manual ; then
16010 ol_link_threads=yes
16012 echo "configure: warning: thread defines and link options must be set manually" 1>&2
16014 for ac_hdr in pthread.h sched.h
16016 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16017 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16018 echo "configure:16019: checking for $ac_hdr" >&5
16019 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16020 echo $ac_n "(cached) $ac_c" 1>&6
16022 cat > conftest.$ac_ext <<EOF
16023 #line 16024 "configure"
16024 #include "confdefs.h"
16027 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16028 { (eval echo configure:16029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16029 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16030 if test -z "$ac_err"; then
16032 eval "ac_cv_header_$ac_safe=yes"
16035 echo "configure: failed program was:" >&5
16036 cat conftest.$ac_ext >&5
16038 eval "ac_cv_header_$ac_safe=no"
16042 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16043 echo "$ac_t""yes" 1>&6
16044 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16045 cat >> confdefs.h <<EOF
16046 #define $ac_tr_hdr 1
16050 echo "$ac_t""no" 1>&6
16054 for ac_func in sched_yield pthread_yield
16056 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16057 echo "configure:16058: checking for $ac_func" >&5
16058 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16059 echo $ac_n "(cached) $ac_c" 1>&6
16061 cat > conftest.$ac_ext <<EOF
16062 #line 16063 "configure"
16063 #include "confdefs.h"
16064 /* System header to define __stub macros and hopefully few prototypes,
16065 which can conflict with char $ac_func(); below. */
16066 #include <assert.h>
16067 /* Override any gcc2 internal prototype to avoid an error. */
16068 /* We use char because int might match the return type of a gcc2
16069 builtin and then its argument prototype would still apply. */
16075 /* The GNU C library defines this for functions which it implements
16076 to always fail with ENOSYS. Some functions are actually named
16077 something starting with __ and the normal name is an alias. */
16078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16086 if { (eval echo configure:16087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16088 eval "ac_cv_func_$ac_func=yes"
16090 echo "configure: failed program was:" >&5
16091 cat conftest.$ac_ext >&5
16093 eval "ac_cv_func_$ac_func=no"
16098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16099 echo "$ac_t""yes" 1>&6
16100 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16101 cat >> confdefs.h <<EOF
16102 #define $ac_tr_func 1
16106 echo "$ac_t""no" 1>&6
16111 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16112 echo "configure:16113: checking for LinuxThreads pthread.h" >&5
16113 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16114 echo $ac_n "(cached) $ac_c" 1>&6
16116 cat > conftest.$ac_ext <<EOF
16117 #line 16118 "configure"
16118 #include "confdefs.h"
16119 #include <pthread.h>
16121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16122 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16124 ol_cv_header_linux_threads=yes
16127 ol_cv_header_linux_threads=no
16134 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16135 if test $ol_cv_header_linux_threads = yes; then
16136 cat >> confdefs.h <<\EOF
16137 #define HAVE_LINUX_THREADS 1
16143 for ac_hdr in mach/cthreads.h
16145 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16146 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16147 echo "configure:16148: checking for $ac_hdr" >&5
16148 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16149 echo $ac_n "(cached) $ac_c" 1>&6
16151 cat > conftest.$ac_ext <<EOF
16152 #line 16153 "configure"
16153 #include "confdefs.h"
16156 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16157 { (eval echo configure:16158: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16158 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16159 if test -z "$ac_err"; then
16161 eval "ac_cv_header_$ac_safe=yes"
16164 echo "configure: failed program was:" >&5
16165 cat conftest.$ac_ext >&5
16167 eval "ac_cv_header_$ac_safe=no"
16171 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16172 echo "$ac_t""yes" 1>&6
16173 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16174 cat >> confdefs.h <<EOF
16175 #define $ac_tr_hdr 1
16179 echo "$ac_t""no" 1>&6
16183 for ac_hdr in lwp/lwp.h
16185 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16186 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16187 echo "configure:16188: checking for $ac_hdr" >&5
16188 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16189 echo $ac_n "(cached) $ac_c" 1>&6
16191 cat > conftest.$ac_ext <<EOF
16192 #line 16193 "configure"
16193 #include "confdefs.h"
16196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16197 { (eval echo configure:16198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16198 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16199 if test -z "$ac_err"; then
16201 eval "ac_cv_header_$ac_safe=yes"
16204 echo "configure: failed program was:" >&5
16205 cat conftest.$ac_ext >&5
16207 eval "ac_cv_header_$ac_safe=no"
16211 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16212 echo "$ac_t""yes" 1>&6
16213 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16214 cat >> confdefs.h <<EOF
16215 #define $ac_tr_hdr 1
16219 echo "$ac_t""no" 1>&6
16223 for ac_hdr in thread.h synch.h
16225 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16226 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16227 echo "configure:16228: checking for $ac_hdr" >&5
16228 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16229 echo $ac_n "(cached) $ac_c" 1>&6
16231 cat > conftest.$ac_ext <<EOF
16232 #line 16233 "configure"
16233 #include "confdefs.h"
16236 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16237 { (eval echo configure:16238: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16238 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16239 if test -z "$ac_err"; then
16241 eval "ac_cv_header_$ac_safe=yes"
16244 echo "configure: failed program was:" >&5
16245 cat conftest.$ac_ext >&5
16247 eval "ac_cv_header_$ac_safe=no"
16251 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16252 echo "$ac_t""yes" 1>&6
16253 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16254 cat >> confdefs.h <<EOF
16255 #define $ac_tr_hdr 1
16259 echo "$ac_t""no" 1>&6
16265 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16266 cat >> confdefs.h <<\EOF
16267 #define REENTRANT 1
16270 cat >> confdefs.h <<\EOF
16271 #define _REENTRANT 1
16274 cat >> confdefs.h <<\EOF
16275 #define THREAD_SAFE 1
16278 cat >> confdefs.h <<\EOF
16279 #define _THREAD_SAFE 1
16282 cat >> confdefs.h <<\EOF
16283 #define THREADSAFE 1
16286 cat >> confdefs.h <<\EOF
16287 #define _THREADSAFE 1
16290 cat >> confdefs.h <<\EOF
16291 #define _SGI_MP_SOURCE 1
16295 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16296 echo "configure:16297: checking for thread specific errno" >&5
16297 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16298 echo $ac_n "(cached) $ac_c" 1>&6
16301 cat > conftest.$ac_ext <<EOF
16302 #line 16303 "configure"
16303 #include "confdefs.h"
16309 if { (eval echo configure:16310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16311 ol_cv_errno_thread_specific=yes
16313 echo "configure: failed program was:" >&5
16314 cat conftest.$ac_ext >&5
16316 ol_cv_errno_thread_specific=no
16322 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16324 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16325 echo "configure:16326: checking for thread specific h_errno" >&5
16326 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16327 echo $ac_n "(cached) $ac_c" 1>&6
16330 cat > conftest.$ac_ext <<EOF
16331 #line 16332 "configure"
16332 #include "confdefs.h"
16338 if { (eval echo configure:16339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16340 ol_cv_h_errno_thread_specific=yes
16342 echo "configure: failed program was:" >&5
16343 cat conftest.$ac_ext >&5
16345 ol_cv_h_errno_thread_specific=no
16351 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16353 if test $ol_cv_errno_thread_specific != yes \
16354 -o $ol_cv_h_errno_thread_specific != yes ; then
16355 LIBS="$LTHREAD_LIBS $LIBS"
16361 if test $ol_link_threads = no ; then
16362 if test $ol_with_threads = yes ; then
16363 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16366 if test $ol_with_threads = auto ; then
16367 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16371 cat >> confdefs.h <<\EOF
16372 #define NO_THREADS 1
16378 if test $ol_link_threads != no ; then
16379 cat >> confdefs.h <<\EOF
16380 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16387 gethostbyname_r gethostbyaddr_r \
16390 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16391 echo "configure:16392: checking for $ac_func" >&5
16392 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16393 echo $ac_n "(cached) $ac_c" 1>&6
16395 cat > conftest.$ac_ext <<EOF
16396 #line 16397 "configure"
16397 #include "confdefs.h"
16398 /* System header to define __stub macros and hopefully few prototypes,
16399 which can conflict with char $ac_func(); below. */
16400 #include <assert.h>
16401 /* Override any gcc2 internal prototype to avoid an error. */
16402 /* We use char because int might match the return type of a gcc2
16403 builtin and then its argument prototype would still apply. */
16409 /* The GNU C library defines this for functions which it implements
16410 to always fail with ENOSYS. Some functions are actually named
16411 something starting with __ and the normal name is an alias. */
16412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16420 if { (eval echo configure:16421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16422 eval "ac_cv_func_$ac_func=yes"
16424 echo "configure: failed program was:" >&5
16425 cat conftest.$ac_ext >&5
16427 eval "ac_cv_func_$ac_func=no"
16432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16433 echo "$ac_t""yes" 1>&6
16434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16435 cat >> confdefs.h <<EOF
16436 #define $ac_tr_func 1
16440 echo "$ac_t""no" 1>&6
16445 if test "$ac_cv_func_ctime_r" = no ; then
16446 ol_cv_func_ctime_r_nargs=0
16448 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16449 echo "configure:16450: checking number of arguments of ctime_r" >&5
16450 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16451 echo $ac_n "(cached) $ac_c" 1>&6
16453 cat > conftest.$ac_ext <<EOF
16454 #line 16455 "configure"
16455 #include "confdefs.h"
16458 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16461 if { (eval echo configure:16462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16463 ol_cv_func_ctime_r_nargs3=yes
16465 echo "configure: failed program was:" >&5
16466 cat conftest.$ac_ext >&5
16468 ol_cv_func_ctime_r_nargs3=no
16472 cat > conftest.$ac_ext <<EOF
16473 #line 16474 "configure"
16474 #include "confdefs.h"
16477 time_t ti; char *buffer; ctime_r(&ti,buffer);
16480 if { (eval echo configure:16481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16482 ol_cv_func_ctime_r_nargs2=yes
16484 echo "configure: failed program was:" >&5
16485 cat conftest.$ac_ext >&5
16487 ol_cv_func_ctime_r_nargs2=no
16491 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16492 $ol_cv_func_ctime_r_nargs2 = no ; then
16494 ol_cv_func_ctime_r_nargs=3
16496 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16497 $ol_cv_func_ctime_r_nargs2 = yes ; then
16499 ol_cv_func_ctime_r_nargs=2
16502 ol_cv_func_ctime_r_nargs=0
16507 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16509 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16510 cat >> confdefs.h <<EOF
16511 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16518 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16519 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16520 echo "configure:16521: checking number of arguments of gethostbyname_r" >&5
16521 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16522 echo $ac_n "(cached) $ac_c" 1>&6
16524 cat > conftest.$ac_ext <<EOF
16525 #line 16526 "configure"
16526 #include "confdefs.h"
16527 #include <sys/types.h>
16528 #include <sys/socket.h>
16529 #include <netinet/in.h>
16531 #define BUFSIZE (sizeof(struct hostent)+10)
16533 struct hostent hent; char buffer[BUFSIZE];
16534 int bufsize=BUFSIZE;int h_errno;
16535 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16536 buffer, bufsize, &h_errno);
16539 if { (eval echo configure:16540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16541 ol_cv_func_gethostbyname_r_nargs5=yes
16543 echo "configure: failed program was:" >&5
16544 cat conftest.$ac_ext >&5
16546 ol_cv_func_gethostbyname_r_nargs5=no
16550 cat > conftest.$ac_ext <<EOF
16551 #line 16552 "configure"
16552 #include "confdefs.h"
16553 #include <sys/types.h>
16554 #include <sys/socket.h>
16555 #include <netinet/in.h>
16557 #define BUFSIZE (sizeof(struct hostent)+10)
16559 struct hostent hent;struct hostent *rhent;
16560 char buffer[BUFSIZE];
16561 int bufsize=BUFSIZE;int h_errno;
16562 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16566 if { (eval echo configure:16567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16568 ol_cv_func_gethostbyname_r_nargs6=yes
16570 echo "configure: failed program was:" >&5
16571 cat conftest.$ac_ext >&5
16573 ol_cv_func_gethostbyname_r_nargs6=no
16577 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16578 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16580 ol_cv_func_gethostbyname_r_nargs=5
16582 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16583 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16585 ol_cv_func_gethostbyname_r_nargs=6
16588 ol_cv_func_gethostbyname_r_nargs=0
16593 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16594 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16595 cat >> confdefs.h <<EOF
16596 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16602 ol_cv_func_gethostbyname_r_nargs=0
16605 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16606 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16607 echo "configure:16608: checking number of arguments of gethostbyaddr_r" >&5
16608 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16609 echo $ac_n "(cached) $ac_c" 1>&6
16611 cat > conftest.$ac_ext <<EOF
16612 #line 16613 "configure"
16613 #include "confdefs.h"
16614 #include <sys/types.h>
16615 #include <sys/socket.h>
16616 #include <netinet/in.h>
16618 #define BUFSIZE (sizeof(struct hostent)+10)
16620 struct hostent hent; char buffer[BUFSIZE];
16621 struct in_addr add;
16622 size_t alen=sizeof(struct in_addr);
16623 int bufsize=BUFSIZE;int h_errno;
16624 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16625 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16628 if { (eval echo configure:16629: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16630 ol_cv_func_gethostbyaddr_r_nargs7=yes
16632 echo "configure: failed program was:" >&5
16633 cat conftest.$ac_ext >&5
16635 ol_cv_func_gethostbyaddr_r_nargs7=no
16639 cat > conftest.$ac_ext <<EOF
16640 #line 16641 "configure"
16641 #include "confdefs.h"
16642 #include <sys/types.h>
16643 #include <sys/socket.h>
16644 #include <netinet/in.h>
16646 #define BUFSIZE (sizeof(struct hostent)+10)
16648 struct hostent hent;
16649 struct hostent *rhent; char buffer[BUFSIZE];
16650 struct in_addr add;
16651 size_t alen=sizeof(struct in_addr);
16652 int bufsize=BUFSIZE;int h_errno;
16653 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16654 alen, AF_INET, &hent, buffer, bufsize,
16658 if { (eval echo configure:16659: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16660 ol_cv_func_gethostbyaddr_r_nargs8=yes
16662 echo "configure: failed program was:" >&5
16663 cat conftest.$ac_ext >&5
16665 ol_cv_func_gethostbyaddr_r_nargs8=no
16669 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16670 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16672 ol_cv_func_gethostbyaddr_r_nargs=7
16674 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16675 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16677 ol_cv_func_gethostbyaddr_r_nargs=8
16680 ol_cv_func_gethostbyaddr_r_nargs=0
16685 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16686 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16687 cat >> confdefs.h <<EOF
16688 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16694 ol_cv_func_gethostbyaddr_r_nargs=0
16699 if test $ol_with_ldbm_api = auto \
16700 -o $ol_with_ldbm_api = berkeley \
16701 -o $ol_with_ldbm_api = bcompat ; then
16703 if test $ol_with_ldbm_api = bcompat; then \
16704 for ac_hdr in db_185.h db.h
16706 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16707 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16708 echo "configure:16709: checking for $ac_hdr" >&5
16709 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16710 echo $ac_n "(cached) $ac_c" 1>&6
16712 cat > conftest.$ac_ext <<EOF
16713 #line 16714 "configure"
16714 #include "confdefs.h"
16717 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16718 { (eval echo configure:16719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16719 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16720 if test -z "$ac_err"; then
16722 eval "ac_cv_header_$ac_safe=yes"
16725 echo "configure: failed program was:" >&5
16726 cat conftest.$ac_ext >&5
16728 eval "ac_cv_header_$ac_safe=no"
16732 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16733 echo "$ac_t""yes" 1>&6
16734 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16735 cat >> confdefs.h <<EOF
16736 #define $ac_tr_hdr 1
16740 echo "$ac_t""no" 1>&6
16744 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16745 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16746 echo "configure:16747: checking if Berkeley DB header compatibility" >&5
16747 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16748 echo $ac_n "(cached) $ac_c" 1>&6
16751 cat > conftest.$ac_ext <<EOF
16752 #line 16753 "configure"
16753 #include "confdefs.h"
16756 # include <db_185.h>
16761 /* this check could be improved */
16762 #ifndef DB_VERSION_MAJOR
16763 # define DB_VERSION_MAJOR 1
16766 #if DB_VERSION_MAJOR == 1
16771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16772 egrep "__db_version_1" >/dev/null 2>&1; then
16774 ol_cv_header_db1=yes
16777 ol_cv_header_db1=no
16783 echo "$ac_t""$ol_cv_header_db1" 1>&6
16785 if test $ol_cv_header_db1 = yes ; then
16787 if test $ol_cv_lib_db = no ; then
16788 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16789 echo "configure:16790: checking for Berkeley DB link (default)" >&5
16790 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
16791 echo $ac_n "(cached) $ac_c" 1>&6
16796 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16798 cat > conftest.$ac_ext <<EOF
16799 #line 16800 "configure"
16800 #include "confdefs.h"
16802 #ifdef HAVE_DB_185_H
16803 # include <db_185.h>
16808 #ifndef DB_VERSION_MAJOR
16809 # define DB_VERSION_MAJOR 1
16813 #define NULL ((void*)0)
16818 #if DB_VERSION_MAJOR > 1
16821 int major, minor, patch;
16823 version = db_version( &major, &minor, &patch );
16825 if( major != DB_VERSION_MAJOR ||
16826 minor < DB_VERSION_MINOR )
16828 printf("Berkeley DB version mismatch\n"
16829 "\texpected: %s\n\tgot: %s\n",
16830 DB_VERSION_STRING, version);
16836 #if DB_VERSION_MAJOR > 2
16837 db_env_create( NULL, 0 );
16838 #elif DB_VERSION_MAJOR > 1
16839 db_appexit( NULL );
16841 (void) dbopen( NULL, 0, 0, 0, NULL);
16846 if { (eval echo configure:16847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16850 echo "configure: failed program was:" >&5
16851 cat conftest.$ac_ext >&5
16861 echo "$ac_t""$ol_cv_db_none" 1>&6
16863 if test $ol_cv_db_none = yes ; then
16868 if test $ol_cv_lib_db = no ; then
16869 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
16870 echo "configure:16871: checking for Berkeley DB link (-ldb42)" >&5
16871 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
16872 echo $ac_n "(cached) $ac_c" 1>&6
16877 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16879 cat > conftest.$ac_ext <<EOF
16880 #line 16881 "configure"
16881 #include "confdefs.h"
16883 #ifdef HAVE_DB_185_H
16884 # include <db_185.h>
16889 #ifndef DB_VERSION_MAJOR
16890 # define DB_VERSION_MAJOR 1
16894 #define NULL ((void*)0)
16899 #if DB_VERSION_MAJOR > 1
16902 int major, minor, patch;
16904 version = db_version( &major, &minor, &patch );
16906 if( major != DB_VERSION_MAJOR ||
16907 minor < DB_VERSION_MINOR )
16909 printf("Berkeley DB version mismatch\n"
16910 "\texpected: %s\n\tgot: %s\n",
16911 DB_VERSION_STRING, version);
16917 #if DB_VERSION_MAJOR > 2
16918 db_env_create( NULL, 0 );
16919 #elif DB_VERSION_MAJOR > 1
16920 db_appexit( NULL );
16922 (void) dbopen( NULL, 0, 0, 0, NULL);
16927 if { (eval echo configure:16928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16931 echo "configure: failed program was:" >&5
16932 cat conftest.$ac_ext >&5
16942 echo "$ac_t""$ol_cv_db_db42" 1>&6
16944 if test $ol_cv_db_db42 = yes ; then
16945 ol_cv_lib_db=-ldb42
16949 if test $ol_cv_lib_db = no ; then
16950 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
16951 echo "configure:16952: checking for Berkeley DB link (-ldb-42)" >&5
16952 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
16953 echo $ac_n "(cached) $ac_c" 1>&6
16958 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
16960 cat > conftest.$ac_ext <<EOF
16961 #line 16962 "configure"
16962 #include "confdefs.h"
16964 #ifdef HAVE_DB_185_H
16965 # include <db_185.h>
16970 #ifndef DB_VERSION_MAJOR
16971 # define DB_VERSION_MAJOR 1
16975 #define NULL ((void*)0)
16980 #if DB_VERSION_MAJOR > 1
16983 int major, minor, patch;
16985 version = db_version( &major, &minor, &patch );
16987 if( major != DB_VERSION_MAJOR ||
16988 minor < DB_VERSION_MINOR )
16990 printf("Berkeley DB version mismatch\n"
16991 "\texpected: %s\n\tgot: %s\n",
16992 DB_VERSION_STRING, version);
16998 #if DB_VERSION_MAJOR > 2
16999 db_env_create( NULL, 0 );
17000 #elif DB_VERSION_MAJOR > 1
17001 db_appexit( NULL );
17003 (void) dbopen( NULL, 0, 0, 0, NULL);
17008 if { (eval echo configure:17009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17012 echo "configure: failed program was:" >&5
17013 cat conftest.$ac_ext >&5
17023 echo "$ac_t""$ol_cv_db_db_42" 1>&6
17025 if test $ol_cv_db_db_42 = yes ; then
17026 ol_cv_lib_db=-ldb-42
17030 if test $ol_cv_lib_db = no ; then
17031 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
17032 echo "configure:17033: checking for Berkeley DB link (-ldb-4.2)" >&5
17033 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
17034 echo $ac_n "(cached) $ac_c" 1>&6
17039 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17041 cat > conftest.$ac_ext <<EOF
17042 #line 17043 "configure"
17043 #include "confdefs.h"
17045 #ifdef HAVE_DB_185_H
17046 # include <db_185.h>
17051 #ifndef DB_VERSION_MAJOR
17052 # define DB_VERSION_MAJOR 1
17056 #define NULL ((void*)0)
17061 #if DB_VERSION_MAJOR > 1
17064 int major, minor, patch;
17066 version = db_version( &major, &minor, &patch );
17068 if( major != DB_VERSION_MAJOR ||
17069 minor < DB_VERSION_MINOR )
17071 printf("Berkeley DB version mismatch\n"
17072 "\texpected: %s\n\tgot: %s\n",
17073 DB_VERSION_STRING, version);
17079 #if DB_VERSION_MAJOR > 2
17080 db_env_create( NULL, 0 );
17081 #elif DB_VERSION_MAJOR > 1
17082 db_appexit( NULL );
17084 (void) dbopen( NULL, 0, 0, 0, NULL);
17089 if { (eval echo configure:17090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17091 ol_cv_db_db_4_dot_2=yes
17093 echo "configure: failed program was:" >&5
17094 cat conftest.$ac_ext >&5
17096 ol_cv_db_db_4_dot_2=no
17104 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
17106 if test $ol_cv_db_db_4_dot_2 = yes ; then
17107 ol_cv_lib_db=-ldb-4.2
17111 if test $ol_cv_lib_db = no ; then
17112 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
17113 echo "configure:17114: checking for Berkeley DB link (-ldb-4-2)" >&5
17114 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
17115 echo $ac_n "(cached) $ac_c" 1>&6
17120 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17122 cat > conftest.$ac_ext <<EOF
17123 #line 17124 "configure"
17124 #include "confdefs.h"
17126 #ifdef HAVE_DB_185_H
17127 # include <db_185.h>
17132 #ifndef DB_VERSION_MAJOR
17133 # define DB_VERSION_MAJOR 1
17137 #define NULL ((void*)0)
17142 #if DB_VERSION_MAJOR > 1
17145 int major, minor, patch;
17147 version = db_version( &major, &minor, &patch );
17149 if( major != DB_VERSION_MAJOR ||
17150 minor < DB_VERSION_MINOR )
17152 printf("Berkeley DB version mismatch\n"
17153 "\texpected: %s\n\tgot: %s\n",
17154 DB_VERSION_STRING, version);
17160 #if DB_VERSION_MAJOR > 2
17161 db_env_create( NULL, 0 );
17162 #elif DB_VERSION_MAJOR > 1
17163 db_appexit( NULL );
17165 (void) dbopen( NULL, 0, 0, 0, NULL);
17170 if { (eval echo configure:17171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17172 ol_cv_db_db_4_2=yes
17174 echo "configure: failed program was:" >&5
17175 cat conftest.$ac_ext >&5
17185 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
17187 if test $ol_cv_db_db_4_2 = yes ; then
17188 ol_cv_lib_db=-ldb-4-2
17192 if test $ol_cv_lib_db = no ; then
17193 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17194 echo "configure:17195: checking for Berkeley DB link (-ldb-4)" >&5
17195 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17196 echo $ac_n "(cached) $ac_c" 1>&6
17201 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17203 cat > conftest.$ac_ext <<EOF
17204 #line 17205 "configure"
17205 #include "confdefs.h"
17207 #ifdef HAVE_DB_185_H
17208 # include <db_185.h>
17213 #ifndef DB_VERSION_MAJOR
17214 # define DB_VERSION_MAJOR 1
17218 #define NULL ((void*)0)
17223 #if DB_VERSION_MAJOR > 1
17226 int major, minor, patch;
17228 version = db_version( &major, &minor, &patch );
17230 if( major != DB_VERSION_MAJOR ||
17231 minor < DB_VERSION_MINOR )
17233 printf("Berkeley DB version mismatch\n"
17234 "\texpected: %s\n\tgot: %s\n",
17235 DB_VERSION_STRING, version);
17241 #if DB_VERSION_MAJOR > 2
17242 db_env_create( NULL, 0 );
17243 #elif DB_VERSION_MAJOR > 1
17244 db_appexit( NULL );
17246 (void) dbopen( NULL, 0, 0, 0, NULL);
17251 if { (eval echo configure:17252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17255 echo "configure: failed program was:" >&5
17256 cat conftest.$ac_ext >&5
17266 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17268 if test $ol_cv_db_db_4 = yes ; then
17269 ol_cv_lib_db=-ldb-4
17273 if test $ol_cv_lib_db = no ; then
17274 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17275 echo "configure:17276: checking for Berkeley DB link (-ldb4)" >&5
17276 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17277 echo $ac_n "(cached) $ac_c" 1>&6
17282 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17284 cat > conftest.$ac_ext <<EOF
17285 #line 17286 "configure"
17286 #include "confdefs.h"
17288 #ifdef HAVE_DB_185_H
17289 # include <db_185.h>
17294 #ifndef DB_VERSION_MAJOR
17295 # define DB_VERSION_MAJOR 1
17299 #define NULL ((void*)0)
17304 #if DB_VERSION_MAJOR > 1
17307 int major, minor, patch;
17309 version = db_version( &major, &minor, &patch );
17311 if( major != DB_VERSION_MAJOR ||
17312 minor < DB_VERSION_MINOR )
17314 printf("Berkeley DB version mismatch\n"
17315 "\texpected: %s\n\tgot: %s\n",
17316 DB_VERSION_STRING, version);
17322 #if DB_VERSION_MAJOR > 2
17323 db_env_create( NULL, 0 );
17324 #elif DB_VERSION_MAJOR > 1
17325 db_appexit( NULL );
17327 (void) dbopen( NULL, 0, 0, 0, NULL);
17332 if { (eval echo configure:17333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17336 echo "configure: failed program was:" >&5
17337 cat conftest.$ac_ext >&5
17347 echo "$ac_t""$ol_cv_db_db4" 1>&6
17349 if test $ol_cv_db_db4 = yes ; then
17354 if test $ol_cv_lib_db = no ; then
17355 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17356 echo "configure:17357: checking for Berkeley DB link (-ldb)" >&5
17357 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17358 echo $ac_n "(cached) $ac_c" 1>&6
17363 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17365 cat > conftest.$ac_ext <<EOF
17366 #line 17367 "configure"
17367 #include "confdefs.h"
17369 #ifdef HAVE_DB_185_H
17370 # include <db_185.h>
17375 #ifndef DB_VERSION_MAJOR
17376 # define DB_VERSION_MAJOR 1
17380 #define NULL ((void*)0)
17385 #if DB_VERSION_MAJOR > 1
17388 int major, minor, patch;
17390 version = db_version( &major, &minor, &patch );
17392 if( major != DB_VERSION_MAJOR ||
17393 minor < DB_VERSION_MINOR )
17395 printf("Berkeley DB version mismatch\n"
17396 "\texpected: %s\n\tgot: %s\n",
17397 DB_VERSION_STRING, version);
17403 #if DB_VERSION_MAJOR > 2
17404 db_env_create( NULL, 0 );
17405 #elif DB_VERSION_MAJOR > 1
17406 db_appexit( NULL );
17408 (void) dbopen( NULL, 0, 0, 0, NULL);
17413 if { (eval echo configure:17414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17417 echo "configure: failed program was:" >&5
17418 cat conftest.$ac_ext >&5
17428 echo "$ac_t""$ol_cv_db_db" 1>&6
17430 if test $ol_cv_db_db = yes ; then
17435 if test $ol_cv_lib_db = no ; then
17436 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
17437 echo "configure:17438: checking for Berkeley DB link (-ldb41)" >&5
17438 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
17439 echo $ac_n "(cached) $ac_c" 1>&6
17444 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17446 cat > conftest.$ac_ext <<EOF
17447 #line 17448 "configure"
17448 #include "confdefs.h"
17450 #ifdef HAVE_DB_185_H
17451 # include <db_185.h>
17456 #ifndef DB_VERSION_MAJOR
17457 # define DB_VERSION_MAJOR 1
17461 #define NULL ((void*)0)
17466 #if DB_VERSION_MAJOR > 1
17469 int major, minor, patch;
17471 version = db_version( &major, &minor, &patch );
17473 if( major != DB_VERSION_MAJOR ||
17474 minor < DB_VERSION_MINOR )
17476 printf("Berkeley DB version mismatch\n"
17477 "\texpected: %s\n\tgot: %s\n",
17478 DB_VERSION_STRING, version);
17484 #if DB_VERSION_MAJOR > 2
17485 db_env_create( NULL, 0 );
17486 #elif DB_VERSION_MAJOR > 1
17487 db_appexit( NULL );
17489 (void) dbopen( NULL, 0, 0, 0, NULL);
17494 if { (eval echo configure:17495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17498 echo "configure: failed program was:" >&5
17499 cat conftest.$ac_ext >&5
17509 echo "$ac_t""$ol_cv_db_db41" 1>&6
17511 if test $ol_cv_db_db41 = yes ; then
17512 ol_cv_lib_db=-ldb41
17516 if test $ol_cv_lib_db = no ; then
17517 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
17518 echo "configure:17519: checking for Berkeley DB link (-ldb-41)" >&5
17519 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
17520 echo $ac_n "(cached) $ac_c" 1>&6
17525 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17527 cat > conftest.$ac_ext <<EOF
17528 #line 17529 "configure"
17529 #include "confdefs.h"
17531 #ifdef HAVE_DB_185_H
17532 # include <db_185.h>
17537 #ifndef DB_VERSION_MAJOR
17538 # define DB_VERSION_MAJOR 1
17542 #define NULL ((void*)0)
17547 #if DB_VERSION_MAJOR > 1
17550 int major, minor, patch;
17552 version = db_version( &major, &minor, &patch );
17554 if( major != DB_VERSION_MAJOR ||
17555 minor < DB_VERSION_MINOR )
17557 printf("Berkeley DB version mismatch\n"
17558 "\texpected: %s\n\tgot: %s\n",
17559 DB_VERSION_STRING, version);
17565 #if DB_VERSION_MAJOR > 2
17566 db_env_create( NULL, 0 );
17567 #elif DB_VERSION_MAJOR > 1
17568 db_appexit( NULL );
17570 (void) dbopen( NULL, 0, 0, 0, NULL);
17575 if { (eval echo configure:17576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17579 echo "configure: failed program was:" >&5
17580 cat conftest.$ac_ext >&5
17590 echo "$ac_t""$ol_cv_db_db_41" 1>&6
17592 if test $ol_cv_db_db_41 = yes ; then
17593 ol_cv_lib_db=-ldb-41
17597 if test $ol_cv_lib_db = no ; then
17598 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
17599 echo "configure:17600: checking for Berkeley DB link (-ldb-4.1)" >&5
17600 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
17601 echo $ac_n "(cached) $ac_c" 1>&6
17606 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17608 cat > conftest.$ac_ext <<EOF
17609 #line 17610 "configure"
17610 #include "confdefs.h"
17612 #ifdef HAVE_DB_185_H
17613 # include <db_185.h>
17618 #ifndef DB_VERSION_MAJOR
17619 # define DB_VERSION_MAJOR 1
17623 #define NULL ((void*)0)
17628 #if DB_VERSION_MAJOR > 1
17631 int major, minor, patch;
17633 version = db_version( &major, &minor, &patch );
17635 if( major != DB_VERSION_MAJOR ||
17636 minor < DB_VERSION_MINOR )
17638 printf("Berkeley DB version mismatch\n"
17639 "\texpected: %s\n\tgot: %s\n",
17640 DB_VERSION_STRING, version);
17646 #if DB_VERSION_MAJOR > 2
17647 db_env_create( NULL, 0 );
17648 #elif DB_VERSION_MAJOR > 1
17649 db_appexit( NULL );
17651 (void) dbopen( NULL, 0, 0, 0, NULL);
17656 if { (eval echo configure:17657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17658 ol_cv_db_db_4_dot_1=yes
17660 echo "configure: failed program was:" >&5
17661 cat conftest.$ac_ext >&5
17663 ol_cv_db_db_4_dot_1=no
17671 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
17673 if test $ol_cv_db_db_4_dot_1 = yes ; then
17674 ol_cv_lib_db=-ldb-4.1
17678 if test $ol_cv_lib_db = no ; then
17679 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
17680 echo "configure:17681: checking for Berkeley DB link (-ldb-4-1)" >&5
17681 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
17682 echo $ac_n "(cached) $ac_c" 1>&6
17687 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17689 cat > conftest.$ac_ext <<EOF
17690 #line 17691 "configure"
17691 #include "confdefs.h"
17693 #ifdef HAVE_DB_185_H
17694 # include <db_185.h>
17699 #ifndef DB_VERSION_MAJOR
17700 # define DB_VERSION_MAJOR 1
17704 #define NULL ((void*)0)
17709 #if DB_VERSION_MAJOR > 1
17712 int major, minor, patch;
17714 version = db_version( &major, &minor, &patch );
17716 if( major != DB_VERSION_MAJOR ||
17717 minor < DB_VERSION_MINOR )
17719 printf("Berkeley DB version mismatch\n"
17720 "\texpected: %s\n\tgot: %s\n",
17721 DB_VERSION_STRING, version);
17727 #if DB_VERSION_MAJOR > 2
17728 db_env_create( NULL, 0 );
17729 #elif DB_VERSION_MAJOR > 1
17730 db_appexit( NULL );
17732 (void) dbopen( NULL, 0, 0, 0, NULL);
17737 if { (eval echo configure:17738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17739 ol_cv_db_db_4_1=yes
17741 echo "configure: failed program was:" >&5
17742 cat conftest.$ac_ext >&5
17752 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
17754 if test $ol_cv_db_db_4_1 = yes ; then
17755 ol_cv_lib_db=-ldb-4-1
17759 if test $ol_cv_lib_db = no ; then
17760 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
17761 echo "configure:17762: checking for Berkeley DB link (-ldb3)" >&5
17762 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
17763 echo $ac_n "(cached) $ac_c" 1>&6
17768 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17770 cat > conftest.$ac_ext <<EOF
17771 #line 17772 "configure"
17772 #include "confdefs.h"
17774 #ifdef HAVE_DB_185_H
17775 # include <db_185.h>
17780 #ifndef DB_VERSION_MAJOR
17781 # define DB_VERSION_MAJOR 1
17785 #define NULL ((void*)0)
17790 #if DB_VERSION_MAJOR > 1
17793 int major, minor, patch;
17795 version = db_version( &major, &minor, &patch );
17797 if( major != DB_VERSION_MAJOR ||
17798 minor < DB_VERSION_MINOR )
17800 printf("Berkeley DB version mismatch\n"
17801 "\texpected: %s\n\tgot: %s\n",
17802 DB_VERSION_STRING, version);
17808 #if DB_VERSION_MAJOR > 2
17809 db_env_create( NULL, 0 );
17810 #elif DB_VERSION_MAJOR > 1
17811 db_appexit( NULL );
17813 (void) dbopen( NULL, 0, 0, 0, NULL);
17818 if { (eval echo configure:17819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17822 echo "configure: failed program was:" >&5
17823 cat conftest.$ac_ext >&5
17833 echo "$ac_t""$ol_cv_db_db3" 1>&6
17835 if test $ol_cv_db_db3 = yes ; then
17840 if test $ol_cv_lib_db = no ; then
17841 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
17842 echo "configure:17843: checking for Berkeley DB link (-ldb-3)" >&5
17843 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
17844 echo $ac_n "(cached) $ac_c" 1>&6
17849 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17851 cat > conftest.$ac_ext <<EOF
17852 #line 17853 "configure"
17853 #include "confdefs.h"
17855 #ifdef HAVE_DB_185_H
17856 # include <db_185.h>
17861 #ifndef DB_VERSION_MAJOR
17862 # define DB_VERSION_MAJOR 1
17866 #define NULL ((void*)0)
17871 #if DB_VERSION_MAJOR > 1
17874 int major, minor, patch;
17876 version = db_version( &major, &minor, &patch );
17878 if( major != DB_VERSION_MAJOR ||
17879 minor < DB_VERSION_MINOR )
17881 printf("Berkeley DB version mismatch\n"
17882 "\texpected: %s\n\tgot: %s\n",
17883 DB_VERSION_STRING, version);
17889 #if DB_VERSION_MAJOR > 2
17890 db_env_create( NULL, 0 );
17891 #elif DB_VERSION_MAJOR > 1
17892 db_appexit( NULL );
17894 (void) dbopen( NULL, 0, 0, 0, NULL);
17899 if { (eval echo configure:17900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17903 echo "configure: failed program was:" >&5
17904 cat conftest.$ac_ext >&5
17914 echo "$ac_t""$ol_cv_db_db_3" 1>&6
17916 if test $ol_cv_db_db_3 = yes ; then
17917 ol_cv_lib_db=-ldb-3
17921 if test $ol_cv_lib_db = no ; then
17922 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
17923 echo "configure:17924: checking for Berkeley DB link (-ldb2)" >&5
17924 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
17925 echo $ac_n "(cached) $ac_c" 1>&6
17930 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17932 cat > conftest.$ac_ext <<EOF
17933 #line 17934 "configure"
17934 #include "confdefs.h"
17936 #ifdef HAVE_DB_185_H
17937 # include <db_185.h>
17942 #ifndef DB_VERSION_MAJOR
17943 # define DB_VERSION_MAJOR 1
17947 #define NULL ((void*)0)
17952 #if DB_VERSION_MAJOR > 1
17955 int major, minor, patch;
17957 version = db_version( &major, &minor, &patch );
17959 if( major != DB_VERSION_MAJOR ||
17960 minor < DB_VERSION_MINOR )
17962 printf("Berkeley DB version mismatch\n"
17963 "\texpected: %s\n\tgot: %s\n",
17964 DB_VERSION_STRING, version);
17970 #if DB_VERSION_MAJOR > 2
17971 db_env_create( NULL, 0 );
17972 #elif DB_VERSION_MAJOR > 1
17973 db_appexit( NULL );
17975 (void) dbopen( NULL, 0, 0, 0, NULL);
17980 if { (eval echo configure:17981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17984 echo "configure: failed program was:" >&5
17985 cat conftest.$ac_ext >&5
17995 echo "$ac_t""$ol_cv_db_db2" 1>&6
17997 if test $ol_cv_db_db2 = yes ; then
18002 if test $ol_cv_lib_db = no ; then
18003 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
18004 echo "configure:18005: checking for Berkeley DB link (-ldb-2)" >&5
18005 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
18006 echo $ac_n "(cached) $ac_c" 1>&6
18011 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18013 cat > conftest.$ac_ext <<EOF
18014 #line 18015 "configure"
18015 #include "confdefs.h"
18017 #ifdef HAVE_DB_185_H
18018 # include <db_185.h>
18023 #ifndef DB_VERSION_MAJOR
18024 # define DB_VERSION_MAJOR 1
18028 #define NULL ((void*)0)
18033 #if DB_VERSION_MAJOR > 1
18036 int major, minor, patch;
18038 version = db_version( &major, &minor, &patch );
18040 if( major != DB_VERSION_MAJOR ||
18041 minor < DB_VERSION_MINOR )
18043 printf("Berkeley DB version mismatch\n"
18044 "\texpected: %s\n\tgot: %s\n",
18045 DB_VERSION_STRING, version);
18051 #if DB_VERSION_MAJOR > 2
18052 db_env_create( NULL, 0 );
18053 #elif DB_VERSION_MAJOR > 1
18054 db_appexit( NULL );
18056 (void) dbopen( NULL, 0, 0, 0, NULL);
18061 if { (eval echo configure:18062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18065 echo "configure: failed program was:" >&5
18066 cat conftest.$ac_ext >&5
18076 echo "$ac_t""$ol_cv_db_db_2" 1>&6
18078 if test $ol_cv_db_db_2 = yes ; then
18079 ol_cv_lib_db=-ldb-2
18083 if test $ol_cv_lib_db = no ; then
18084 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18085 echo "configure:18086: checking for Berkeley DB link (-ldb1)" >&5
18086 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18087 echo $ac_n "(cached) $ac_c" 1>&6
18092 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18094 cat > conftest.$ac_ext <<EOF
18095 #line 18096 "configure"
18096 #include "confdefs.h"
18098 #ifdef HAVE_DB_185_H
18099 # include <db_185.h>
18104 #ifndef DB_VERSION_MAJOR
18105 # define DB_VERSION_MAJOR 1
18109 #define NULL ((void*)0)
18114 #if DB_VERSION_MAJOR > 1
18117 int major, minor, patch;
18119 version = db_version( &major, &minor, &patch );
18121 if( major != DB_VERSION_MAJOR ||
18122 minor < DB_VERSION_MINOR )
18124 printf("Berkeley DB version mismatch\n"
18125 "\texpected: %s\n\tgot: %s\n",
18126 DB_VERSION_STRING, version);
18132 #if DB_VERSION_MAJOR > 2
18133 db_env_create( NULL, 0 );
18134 #elif DB_VERSION_MAJOR > 1
18135 db_appexit( NULL );
18137 (void) dbopen( NULL, 0, 0, 0, NULL);
18142 if { (eval echo configure:18143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18146 echo "configure: failed program was:" >&5
18147 cat conftest.$ac_ext >&5
18157 echo "$ac_t""$ol_cv_db_db1" 1>&6
18159 if test $ol_cv_db_db1 = yes ; then
18164 if test $ol_cv_lib_db = no ; then
18165 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18166 echo "configure:18167: checking for Berkeley DB link (-ldb-1)" >&5
18167 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18168 echo $ac_n "(cached) $ac_c" 1>&6
18173 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18175 cat > conftest.$ac_ext <<EOF
18176 #line 18177 "configure"
18177 #include "confdefs.h"
18179 #ifdef HAVE_DB_185_H
18180 # include <db_185.h>
18185 #ifndef DB_VERSION_MAJOR
18186 # define DB_VERSION_MAJOR 1
18190 #define NULL ((void*)0)
18195 #if DB_VERSION_MAJOR > 1
18198 int major, minor, patch;
18200 version = db_version( &major, &minor, &patch );
18202 if( major != DB_VERSION_MAJOR ||
18203 minor < DB_VERSION_MINOR )
18205 printf("Berkeley DB version mismatch\n"
18206 "\texpected: %s\n\tgot: %s\n",
18207 DB_VERSION_STRING, version);
18213 #if DB_VERSION_MAJOR > 2
18214 db_env_create( NULL, 0 );
18215 #elif DB_VERSION_MAJOR > 1
18216 db_appexit( NULL );
18218 (void) dbopen( NULL, 0, 0, 0, NULL);
18223 if { (eval echo configure:18224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18227 echo "configure: failed program was:" >&5
18228 cat conftest.$ac_ext >&5
18238 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18240 if test $ol_cv_db_db_1 = yes ; then
18241 ol_cv_lib_db=-ldb-1
18246 if test "$ol_cv_lib_db" != no ; then
18247 ol_cv_berkeley_db=yes
18253 ol_cv_berkeley_db=no
18256 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18257 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18258 echo "configure:18259: checking for $ac_hdr" >&5
18259 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18260 echo $ac_n "(cached) $ac_c" 1>&6
18262 cat > conftest.$ac_ext <<EOF
18263 #line 18264 "configure"
18264 #include "confdefs.h"
18267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18268 { (eval echo configure:18269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18270 if test -z "$ac_err"; then
18272 eval "ac_cv_header_$ac_safe=yes"
18275 echo "configure: failed program was:" >&5
18276 cat conftest.$ac_ext >&5
18278 eval "ac_cv_header_$ac_safe=no"
18282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18283 echo "$ac_t""yes" 1>&6
18284 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18285 cat >> confdefs.h <<EOF
18286 #define $ac_tr_hdr 1
18290 echo "$ac_t""no" 1>&6
18294 if test $ac_cv_header_db_h = yes; then
18296 if test $ol_cv_lib_db = no ; then
18297 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
18298 echo "configure:18299: checking for Berkeley DB link (default)" >&5
18299 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
18300 echo $ac_n "(cached) $ac_c" 1>&6
18305 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18307 cat > conftest.$ac_ext <<EOF
18308 #line 18309 "configure"
18309 #include "confdefs.h"
18311 #ifdef HAVE_DB_185_H
18312 # include <db_185.h>
18317 #ifndef DB_VERSION_MAJOR
18318 # define DB_VERSION_MAJOR 1
18322 #define NULL ((void*)0)
18327 #if DB_VERSION_MAJOR > 1
18330 int major, minor, patch;
18332 version = db_version( &major, &minor, &patch );
18334 if( major != DB_VERSION_MAJOR ||
18335 minor < DB_VERSION_MINOR )
18337 printf("Berkeley DB version mismatch\n"
18338 "\texpected: %s\n\tgot: %s\n",
18339 DB_VERSION_STRING, version);
18345 #if DB_VERSION_MAJOR > 2
18346 db_env_create( NULL, 0 );
18347 #elif DB_VERSION_MAJOR > 1
18348 db_appexit( NULL );
18350 (void) dbopen( NULL, 0, 0, 0, NULL);
18355 if { (eval echo configure:18356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18359 echo "configure: failed program was:" >&5
18360 cat conftest.$ac_ext >&5
18370 echo "$ac_t""$ol_cv_db_none" 1>&6
18372 if test $ol_cv_db_none = yes ; then
18377 if test $ol_cv_lib_db = no ; then
18378 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
18379 echo "configure:18380: checking for Berkeley DB link (-ldb42)" >&5
18380 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
18381 echo $ac_n "(cached) $ac_c" 1>&6
18386 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18388 cat > conftest.$ac_ext <<EOF
18389 #line 18390 "configure"
18390 #include "confdefs.h"
18392 #ifdef HAVE_DB_185_H
18393 # include <db_185.h>
18398 #ifndef DB_VERSION_MAJOR
18399 # define DB_VERSION_MAJOR 1
18403 #define NULL ((void*)0)
18408 #if DB_VERSION_MAJOR > 1
18411 int major, minor, patch;
18413 version = db_version( &major, &minor, &patch );
18415 if( major != DB_VERSION_MAJOR ||
18416 minor < DB_VERSION_MINOR )
18418 printf("Berkeley DB version mismatch\n"
18419 "\texpected: %s\n\tgot: %s\n",
18420 DB_VERSION_STRING, version);
18426 #if DB_VERSION_MAJOR > 2
18427 db_env_create( NULL, 0 );
18428 #elif DB_VERSION_MAJOR > 1
18429 db_appexit( NULL );
18431 (void) dbopen( NULL, 0, 0, 0, NULL);
18436 if { (eval echo configure:18437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18440 echo "configure: failed program was:" >&5
18441 cat conftest.$ac_ext >&5
18451 echo "$ac_t""$ol_cv_db_db42" 1>&6
18453 if test $ol_cv_db_db42 = yes ; then
18454 ol_cv_lib_db=-ldb42
18458 if test $ol_cv_lib_db = no ; then
18459 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
18460 echo "configure:18461: checking for Berkeley DB link (-ldb-42)" >&5
18461 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
18462 echo $ac_n "(cached) $ac_c" 1>&6
18467 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18469 cat > conftest.$ac_ext <<EOF
18470 #line 18471 "configure"
18471 #include "confdefs.h"
18473 #ifdef HAVE_DB_185_H
18474 # include <db_185.h>
18479 #ifndef DB_VERSION_MAJOR
18480 # define DB_VERSION_MAJOR 1
18484 #define NULL ((void*)0)
18489 #if DB_VERSION_MAJOR > 1
18492 int major, minor, patch;
18494 version = db_version( &major, &minor, &patch );
18496 if( major != DB_VERSION_MAJOR ||
18497 minor < DB_VERSION_MINOR )
18499 printf("Berkeley DB version mismatch\n"
18500 "\texpected: %s\n\tgot: %s\n",
18501 DB_VERSION_STRING, version);
18507 #if DB_VERSION_MAJOR > 2
18508 db_env_create( NULL, 0 );
18509 #elif DB_VERSION_MAJOR > 1
18510 db_appexit( NULL );
18512 (void) dbopen( NULL, 0, 0, 0, NULL);
18517 if { (eval echo configure:18518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18521 echo "configure: failed program was:" >&5
18522 cat conftest.$ac_ext >&5
18532 echo "$ac_t""$ol_cv_db_db_42" 1>&6
18534 if test $ol_cv_db_db_42 = yes ; then
18535 ol_cv_lib_db=-ldb-42
18539 if test $ol_cv_lib_db = no ; then
18540 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
18541 echo "configure:18542: checking for Berkeley DB link (-ldb-4.2)" >&5
18542 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
18543 echo $ac_n "(cached) $ac_c" 1>&6
18548 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18550 cat > conftest.$ac_ext <<EOF
18551 #line 18552 "configure"
18552 #include "confdefs.h"
18554 #ifdef HAVE_DB_185_H
18555 # include <db_185.h>
18560 #ifndef DB_VERSION_MAJOR
18561 # define DB_VERSION_MAJOR 1
18565 #define NULL ((void*)0)
18570 #if DB_VERSION_MAJOR > 1
18573 int major, minor, patch;
18575 version = db_version( &major, &minor, &patch );
18577 if( major != DB_VERSION_MAJOR ||
18578 minor < DB_VERSION_MINOR )
18580 printf("Berkeley DB version mismatch\n"
18581 "\texpected: %s\n\tgot: %s\n",
18582 DB_VERSION_STRING, version);
18588 #if DB_VERSION_MAJOR > 2
18589 db_env_create( NULL, 0 );
18590 #elif DB_VERSION_MAJOR > 1
18591 db_appexit( NULL );
18593 (void) dbopen( NULL, 0, 0, 0, NULL);
18598 if { (eval echo configure:18599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18600 ol_cv_db_db_4_dot_2=yes
18602 echo "configure: failed program was:" >&5
18603 cat conftest.$ac_ext >&5
18605 ol_cv_db_db_4_dot_2=no
18613 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
18615 if test $ol_cv_db_db_4_dot_2 = yes ; then
18616 ol_cv_lib_db=-ldb-4.2
18620 if test $ol_cv_lib_db = no ; then
18621 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
18622 echo "configure:18623: checking for Berkeley DB link (-ldb-4-2)" >&5
18623 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
18624 echo $ac_n "(cached) $ac_c" 1>&6
18629 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18631 cat > conftest.$ac_ext <<EOF
18632 #line 18633 "configure"
18633 #include "confdefs.h"
18635 #ifdef HAVE_DB_185_H
18636 # include <db_185.h>
18641 #ifndef DB_VERSION_MAJOR
18642 # define DB_VERSION_MAJOR 1
18646 #define NULL ((void*)0)
18651 #if DB_VERSION_MAJOR > 1
18654 int major, minor, patch;
18656 version = db_version( &major, &minor, &patch );
18658 if( major != DB_VERSION_MAJOR ||
18659 minor < DB_VERSION_MINOR )
18661 printf("Berkeley DB version mismatch\n"
18662 "\texpected: %s\n\tgot: %s\n",
18663 DB_VERSION_STRING, version);
18669 #if DB_VERSION_MAJOR > 2
18670 db_env_create( NULL, 0 );
18671 #elif DB_VERSION_MAJOR > 1
18672 db_appexit( NULL );
18674 (void) dbopen( NULL, 0, 0, 0, NULL);
18679 if { (eval echo configure:18680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18681 ol_cv_db_db_4_2=yes
18683 echo "configure: failed program was:" >&5
18684 cat conftest.$ac_ext >&5
18694 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
18696 if test $ol_cv_db_db_4_2 = yes ; then
18697 ol_cv_lib_db=-ldb-4-2
18701 if test $ol_cv_lib_db = no ; then
18702 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
18703 echo "configure:18704: checking for Berkeley DB link (-ldb-4)" >&5
18704 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
18705 echo $ac_n "(cached) $ac_c" 1>&6
18710 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18712 cat > conftest.$ac_ext <<EOF
18713 #line 18714 "configure"
18714 #include "confdefs.h"
18716 #ifdef HAVE_DB_185_H
18717 # include <db_185.h>
18722 #ifndef DB_VERSION_MAJOR
18723 # define DB_VERSION_MAJOR 1
18727 #define NULL ((void*)0)
18732 #if DB_VERSION_MAJOR > 1
18735 int major, minor, patch;
18737 version = db_version( &major, &minor, &patch );
18739 if( major != DB_VERSION_MAJOR ||
18740 minor < DB_VERSION_MINOR )
18742 printf("Berkeley DB version mismatch\n"
18743 "\texpected: %s\n\tgot: %s\n",
18744 DB_VERSION_STRING, version);
18750 #if DB_VERSION_MAJOR > 2
18751 db_env_create( NULL, 0 );
18752 #elif DB_VERSION_MAJOR > 1
18753 db_appexit( NULL );
18755 (void) dbopen( NULL, 0, 0, 0, NULL);
18760 if { (eval echo configure:18761: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18764 echo "configure: failed program was:" >&5
18765 cat conftest.$ac_ext >&5
18775 echo "$ac_t""$ol_cv_db_db_4" 1>&6
18777 if test $ol_cv_db_db_4 = yes ; then
18778 ol_cv_lib_db=-ldb-4
18782 if test $ol_cv_lib_db = no ; then
18783 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
18784 echo "configure:18785: checking for Berkeley DB link (-ldb4)" >&5
18785 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
18786 echo $ac_n "(cached) $ac_c" 1>&6
18791 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18793 cat > conftest.$ac_ext <<EOF
18794 #line 18795 "configure"
18795 #include "confdefs.h"
18797 #ifdef HAVE_DB_185_H
18798 # include <db_185.h>
18803 #ifndef DB_VERSION_MAJOR
18804 # define DB_VERSION_MAJOR 1
18808 #define NULL ((void*)0)
18813 #if DB_VERSION_MAJOR > 1
18816 int major, minor, patch;
18818 version = db_version( &major, &minor, &patch );
18820 if( major != DB_VERSION_MAJOR ||
18821 minor < DB_VERSION_MINOR )
18823 printf("Berkeley DB version mismatch\n"
18824 "\texpected: %s\n\tgot: %s\n",
18825 DB_VERSION_STRING, version);
18831 #if DB_VERSION_MAJOR > 2
18832 db_env_create( NULL, 0 );
18833 #elif DB_VERSION_MAJOR > 1
18834 db_appexit( NULL );
18836 (void) dbopen( NULL, 0, 0, 0, NULL);
18841 if { (eval echo configure:18842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18845 echo "configure: failed program was:" >&5
18846 cat conftest.$ac_ext >&5
18856 echo "$ac_t""$ol_cv_db_db4" 1>&6
18858 if test $ol_cv_db_db4 = yes ; then
18863 if test $ol_cv_lib_db = no ; then
18864 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
18865 echo "configure:18866: checking for Berkeley DB link (-ldb)" >&5
18866 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
18867 echo $ac_n "(cached) $ac_c" 1>&6
18872 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18874 cat > conftest.$ac_ext <<EOF
18875 #line 18876 "configure"
18876 #include "confdefs.h"
18878 #ifdef HAVE_DB_185_H
18879 # include <db_185.h>
18884 #ifndef DB_VERSION_MAJOR
18885 # define DB_VERSION_MAJOR 1
18889 #define NULL ((void*)0)
18894 #if DB_VERSION_MAJOR > 1
18897 int major, minor, patch;
18899 version = db_version( &major, &minor, &patch );
18901 if( major != DB_VERSION_MAJOR ||
18902 minor < DB_VERSION_MINOR )
18904 printf("Berkeley DB version mismatch\n"
18905 "\texpected: %s\n\tgot: %s\n",
18906 DB_VERSION_STRING, version);
18912 #if DB_VERSION_MAJOR > 2
18913 db_env_create( NULL, 0 );
18914 #elif DB_VERSION_MAJOR > 1
18915 db_appexit( NULL );
18917 (void) dbopen( NULL, 0, 0, 0, NULL);
18922 if { (eval echo configure:18923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18926 echo "configure: failed program was:" >&5
18927 cat conftest.$ac_ext >&5
18937 echo "$ac_t""$ol_cv_db_db" 1>&6
18939 if test $ol_cv_db_db = yes ; then
18944 if test $ol_cv_lib_db = no ; then
18945 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
18946 echo "configure:18947: checking for Berkeley DB link (-ldb41)" >&5
18947 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
18948 echo $ac_n "(cached) $ac_c" 1>&6
18953 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18955 cat > conftest.$ac_ext <<EOF
18956 #line 18957 "configure"
18957 #include "confdefs.h"
18959 #ifdef HAVE_DB_185_H
18960 # include <db_185.h>
18965 #ifndef DB_VERSION_MAJOR
18966 # define DB_VERSION_MAJOR 1
18970 #define NULL ((void*)0)
18975 #if DB_VERSION_MAJOR > 1
18978 int major, minor, patch;
18980 version = db_version( &major, &minor, &patch );
18982 if( major != DB_VERSION_MAJOR ||
18983 minor < DB_VERSION_MINOR )
18985 printf("Berkeley DB version mismatch\n"
18986 "\texpected: %s\n\tgot: %s\n",
18987 DB_VERSION_STRING, version);
18993 #if DB_VERSION_MAJOR > 2
18994 db_env_create( NULL, 0 );
18995 #elif DB_VERSION_MAJOR > 1
18996 db_appexit( NULL );
18998 (void) dbopen( NULL, 0, 0, 0, NULL);
19003 if { (eval echo configure:19004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19007 echo "configure: failed program was:" >&5
19008 cat conftest.$ac_ext >&5
19018 echo "$ac_t""$ol_cv_db_db41" 1>&6
19020 if test $ol_cv_db_db41 = yes ; then
19021 ol_cv_lib_db=-ldb41
19025 if test $ol_cv_lib_db = no ; then
19026 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
19027 echo "configure:19028: checking for Berkeley DB link (-ldb-41)" >&5
19028 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
19029 echo $ac_n "(cached) $ac_c" 1>&6
19034 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19036 cat > conftest.$ac_ext <<EOF
19037 #line 19038 "configure"
19038 #include "confdefs.h"
19040 #ifdef HAVE_DB_185_H
19041 # include <db_185.h>
19046 #ifndef DB_VERSION_MAJOR
19047 # define DB_VERSION_MAJOR 1
19051 #define NULL ((void*)0)
19056 #if DB_VERSION_MAJOR > 1
19059 int major, minor, patch;
19061 version = db_version( &major, &minor, &patch );
19063 if( major != DB_VERSION_MAJOR ||
19064 minor < DB_VERSION_MINOR )
19066 printf("Berkeley DB version mismatch\n"
19067 "\texpected: %s\n\tgot: %s\n",
19068 DB_VERSION_STRING, version);
19074 #if DB_VERSION_MAJOR > 2
19075 db_env_create( NULL, 0 );
19076 #elif DB_VERSION_MAJOR > 1
19077 db_appexit( NULL );
19079 (void) dbopen( NULL, 0, 0, 0, NULL);
19084 if { (eval echo configure:19085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19088 echo "configure: failed program was:" >&5
19089 cat conftest.$ac_ext >&5
19099 echo "$ac_t""$ol_cv_db_db_41" 1>&6
19101 if test $ol_cv_db_db_41 = yes ; then
19102 ol_cv_lib_db=-ldb-41
19106 if test $ol_cv_lib_db = no ; then
19107 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
19108 echo "configure:19109: checking for Berkeley DB link (-ldb-4.1)" >&5
19109 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
19110 echo $ac_n "(cached) $ac_c" 1>&6
19115 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19117 cat > conftest.$ac_ext <<EOF
19118 #line 19119 "configure"
19119 #include "confdefs.h"
19121 #ifdef HAVE_DB_185_H
19122 # include <db_185.h>
19127 #ifndef DB_VERSION_MAJOR
19128 # define DB_VERSION_MAJOR 1
19132 #define NULL ((void*)0)
19137 #if DB_VERSION_MAJOR > 1
19140 int major, minor, patch;
19142 version = db_version( &major, &minor, &patch );
19144 if( major != DB_VERSION_MAJOR ||
19145 minor < DB_VERSION_MINOR )
19147 printf("Berkeley DB version mismatch\n"
19148 "\texpected: %s\n\tgot: %s\n",
19149 DB_VERSION_STRING, version);
19155 #if DB_VERSION_MAJOR > 2
19156 db_env_create( NULL, 0 );
19157 #elif DB_VERSION_MAJOR > 1
19158 db_appexit( NULL );
19160 (void) dbopen( NULL, 0, 0, 0, NULL);
19165 if { (eval echo configure:19166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19167 ol_cv_db_db_4_dot_1=yes
19169 echo "configure: failed program was:" >&5
19170 cat conftest.$ac_ext >&5
19172 ol_cv_db_db_4_dot_1=no
19180 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
19182 if test $ol_cv_db_db_4_dot_1 = yes ; then
19183 ol_cv_lib_db=-ldb-4.1
19187 if test $ol_cv_lib_db = no ; then
19188 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
19189 echo "configure:19190: checking for Berkeley DB link (-ldb-4-1)" >&5
19190 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
19191 echo $ac_n "(cached) $ac_c" 1>&6
19196 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19198 cat > conftest.$ac_ext <<EOF
19199 #line 19200 "configure"
19200 #include "confdefs.h"
19202 #ifdef HAVE_DB_185_H
19203 # include <db_185.h>
19208 #ifndef DB_VERSION_MAJOR
19209 # define DB_VERSION_MAJOR 1
19213 #define NULL ((void*)0)
19218 #if DB_VERSION_MAJOR > 1
19221 int major, minor, patch;
19223 version = db_version( &major, &minor, &patch );
19225 if( major != DB_VERSION_MAJOR ||
19226 minor < DB_VERSION_MINOR )
19228 printf("Berkeley DB version mismatch\n"
19229 "\texpected: %s\n\tgot: %s\n",
19230 DB_VERSION_STRING, version);
19236 #if DB_VERSION_MAJOR > 2
19237 db_env_create( NULL, 0 );
19238 #elif DB_VERSION_MAJOR > 1
19239 db_appexit( NULL );
19241 (void) dbopen( NULL, 0, 0, 0, NULL);
19246 if { (eval echo configure:19247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19248 ol_cv_db_db_4_1=yes
19250 echo "configure: failed program was:" >&5
19251 cat conftest.$ac_ext >&5
19261 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
19263 if test $ol_cv_db_db_4_1 = yes ; then
19264 ol_cv_lib_db=-ldb-4-1
19268 if test $ol_cv_lib_db = no ; then
19269 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
19270 echo "configure:19271: checking for Berkeley DB link (-ldb3)" >&5
19271 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
19272 echo $ac_n "(cached) $ac_c" 1>&6
19277 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19279 cat > conftest.$ac_ext <<EOF
19280 #line 19281 "configure"
19281 #include "confdefs.h"
19283 #ifdef HAVE_DB_185_H
19284 # include <db_185.h>
19289 #ifndef DB_VERSION_MAJOR
19290 # define DB_VERSION_MAJOR 1
19294 #define NULL ((void*)0)
19299 #if DB_VERSION_MAJOR > 1
19302 int major, minor, patch;
19304 version = db_version( &major, &minor, &patch );
19306 if( major != DB_VERSION_MAJOR ||
19307 minor < DB_VERSION_MINOR )
19309 printf("Berkeley DB version mismatch\n"
19310 "\texpected: %s\n\tgot: %s\n",
19311 DB_VERSION_STRING, version);
19317 #if DB_VERSION_MAJOR > 2
19318 db_env_create( NULL, 0 );
19319 #elif DB_VERSION_MAJOR > 1
19320 db_appexit( NULL );
19322 (void) dbopen( NULL, 0, 0, 0, NULL);
19327 if { (eval echo configure:19328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19331 echo "configure: failed program was:" >&5
19332 cat conftest.$ac_ext >&5
19342 echo "$ac_t""$ol_cv_db_db3" 1>&6
19344 if test $ol_cv_db_db3 = yes ; then
19349 if test $ol_cv_lib_db = no ; then
19350 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
19351 echo "configure:19352: checking for Berkeley DB link (-ldb-3)" >&5
19352 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
19353 echo $ac_n "(cached) $ac_c" 1>&6
19358 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19360 cat > conftest.$ac_ext <<EOF
19361 #line 19362 "configure"
19362 #include "confdefs.h"
19364 #ifdef HAVE_DB_185_H
19365 # include <db_185.h>
19370 #ifndef DB_VERSION_MAJOR
19371 # define DB_VERSION_MAJOR 1
19375 #define NULL ((void*)0)
19380 #if DB_VERSION_MAJOR > 1
19383 int major, minor, patch;
19385 version = db_version( &major, &minor, &patch );
19387 if( major != DB_VERSION_MAJOR ||
19388 minor < DB_VERSION_MINOR )
19390 printf("Berkeley DB version mismatch\n"
19391 "\texpected: %s\n\tgot: %s\n",
19392 DB_VERSION_STRING, version);
19398 #if DB_VERSION_MAJOR > 2
19399 db_env_create( NULL, 0 );
19400 #elif DB_VERSION_MAJOR > 1
19401 db_appexit( NULL );
19403 (void) dbopen( NULL, 0, 0, 0, NULL);
19408 if { (eval echo configure:19409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19412 echo "configure: failed program was:" >&5
19413 cat conftest.$ac_ext >&5
19423 echo "$ac_t""$ol_cv_db_db_3" 1>&6
19425 if test $ol_cv_db_db_3 = yes ; then
19426 ol_cv_lib_db=-ldb-3
19430 if test $ol_cv_lib_db = no ; then
19431 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
19432 echo "configure:19433: checking for Berkeley DB link (-ldb2)" >&5
19433 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
19434 echo $ac_n "(cached) $ac_c" 1>&6
19439 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19441 cat > conftest.$ac_ext <<EOF
19442 #line 19443 "configure"
19443 #include "confdefs.h"
19445 #ifdef HAVE_DB_185_H
19446 # include <db_185.h>
19451 #ifndef DB_VERSION_MAJOR
19452 # define DB_VERSION_MAJOR 1
19456 #define NULL ((void*)0)
19461 #if DB_VERSION_MAJOR > 1
19464 int major, minor, patch;
19466 version = db_version( &major, &minor, &patch );
19468 if( major != DB_VERSION_MAJOR ||
19469 minor < DB_VERSION_MINOR )
19471 printf("Berkeley DB version mismatch\n"
19472 "\texpected: %s\n\tgot: %s\n",
19473 DB_VERSION_STRING, version);
19479 #if DB_VERSION_MAJOR > 2
19480 db_env_create( NULL, 0 );
19481 #elif DB_VERSION_MAJOR > 1
19482 db_appexit( NULL );
19484 (void) dbopen( NULL, 0, 0, 0, NULL);
19489 if { (eval echo configure:19490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19493 echo "configure: failed program was:" >&5
19494 cat conftest.$ac_ext >&5
19504 echo "$ac_t""$ol_cv_db_db2" 1>&6
19506 if test $ol_cv_db_db2 = yes ; then
19511 if test $ol_cv_lib_db = no ; then
19512 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
19513 echo "configure:19514: checking for Berkeley DB link (-ldb-2)" >&5
19514 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
19515 echo $ac_n "(cached) $ac_c" 1>&6
19520 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19522 cat > conftest.$ac_ext <<EOF
19523 #line 19524 "configure"
19524 #include "confdefs.h"
19526 #ifdef HAVE_DB_185_H
19527 # include <db_185.h>
19532 #ifndef DB_VERSION_MAJOR
19533 # define DB_VERSION_MAJOR 1
19537 #define NULL ((void*)0)
19542 #if DB_VERSION_MAJOR > 1
19545 int major, minor, patch;
19547 version = db_version( &major, &minor, &patch );
19549 if( major != DB_VERSION_MAJOR ||
19550 minor < DB_VERSION_MINOR )
19552 printf("Berkeley DB version mismatch\n"
19553 "\texpected: %s\n\tgot: %s\n",
19554 DB_VERSION_STRING, version);
19560 #if DB_VERSION_MAJOR > 2
19561 db_env_create( NULL, 0 );
19562 #elif DB_VERSION_MAJOR > 1
19563 db_appexit( NULL );
19565 (void) dbopen( NULL, 0, 0, 0, NULL);
19570 if { (eval echo configure:19571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19574 echo "configure: failed program was:" >&5
19575 cat conftest.$ac_ext >&5
19585 echo "$ac_t""$ol_cv_db_db_2" 1>&6
19587 if test $ol_cv_db_db_2 = yes ; then
19588 ol_cv_lib_db=-ldb-2
19592 if test $ol_cv_lib_db = no ; then
19593 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
19594 echo "configure:19595: checking for Berkeley DB link (-ldb1)" >&5
19595 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
19596 echo $ac_n "(cached) $ac_c" 1>&6
19601 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19603 cat > conftest.$ac_ext <<EOF
19604 #line 19605 "configure"
19605 #include "confdefs.h"
19607 #ifdef HAVE_DB_185_H
19608 # include <db_185.h>
19613 #ifndef DB_VERSION_MAJOR
19614 # define DB_VERSION_MAJOR 1
19618 #define NULL ((void*)0)
19623 #if DB_VERSION_MAJOR > 1
19626 int major, minor, patch;
19628 version = db_version( &major, &minor, &patch );
19630 if( major != DB_VERSION_MAJOR ||
19631 minor < DB_VERSION_MINOR )
19633 printf("Berkeley DB version mismatch\n"
19634 "\texpected: %s\n\tgot: %s\n",
19635 DB_VERSION_STRING, version);
19641 #if DB_VERSION_MAJOR > 2
19642 db_env_create( NULL, 0 );
19643 #elif DB_VERSION_MAJOR > 1
19644 db_appexit( NULL );
19646 (void) dbopen( NULL, 0, 0, 0, NULL);
19651 if { (eval echo configure:19652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19655 echo "configure: failed program was:" >&5
19656 cat conftest.$ac_ext >&5
19666 echo "$ac_t""$ol_cv_db_db1" 1>&6
19668 if test $ol_cv_db_db1 = yes ; then
19673 if test $ol_cv_lib_db = no ; then
19674 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
19675 echo "configure:19676: checking for Berkeley DB link (-ldb-1)" >&5
19676 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
19677 echo $ac_n "(cached) $ac_c" 1>&6
19682 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19684 cat > conftest.$ac_ext <<EOF
19685 #line 19686 "configure"
19686 #include "confdefs.h"
19688 #ifdef HAVE_DB_185_H
19689 # include <db_185.h>
19694 #ifndef DB_VERSION_MAJOR
19695 # define DB_VERSION_MAJOR 1
19699 #define NULL ((void*)0)
19704 #if DB_VERSION_MAJOR > 1
19707 int major, minor, patch;
19709 version = db_version( &major, &minor, &patch );
19711 if( major != DB_VERSION_MAJOR ||
19712 minor < DB_VERSION_MINOR )
19714 printf("Berkeley DB version mismatch\n"
19715 "\texpected: %s\n\tgot: %s\n",
19716 DB_VERSION_STRING, version);
19722 #if DB_VERSION_MAJOR > 2
19723 db_env_create( NULL, 0 );
19724 #elif DB_VERSION_MAJOR > 1
19725 db_appexit( NULL );
19727 (void) dbopen( NULL, 0, 0, 0, NULL);
19732 if { (eval echo configure:19733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19736 echo "configure: failed program was:" >&5
19737 cat conftest.$ac_ext >&5
19747 echo "$ac_t""$ol_cv_db_db_1" 1>&6
19749 if test $ol_cv_db_db_1 = yes ; then
19750 ol_cv_lib_db=-ldb-1
19755 if test "$ol_cv_lib_db" != no ; then
19756 ol_cv_berkeley_db=yes
19757 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
19758 echo "configure:19759: checking for Berkeley DB thread support" >&5
19759 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
19760 echo $ac_n "(cached) $ac_c" 1>&6
19764 LIBS="$LTHREAD_LIBS $LIBS"
19765 if test $ol_cv_lib_db != yes ; then
19766 LIBS="$ol_cv_lib_db $LIBS"
19769 if test "$cross_compiling" = yes; then
19770 ol_cv_berkeley_db_thread=cross
19772 cat > conftest.$ac_ext <<EOF
19773 #line 19774 "configure"
19774 #include "confdefs.h"
19776 #ifdef HAVE_DB_185_H
19782 #define NULL ((void *)0)
19787 u_int32_t flags = DB_CREATE |
19793 #if DB_VERSION_MAJOR > 2
19794 DB_ENV *env = NULL;
19796 rc = db_env_create( &env, 0 );
19798 flags |= DB_INIT_MPOOL;
19799 #ifdef DB_MPOOL_PRIVATE
19800 flags |= DB_MPOOL_PRIVATE;
19804 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19808 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
19809 rc = env->open( env, NULL, flags, 0 );
19811 rc = env->open( env, NULL, NULL, flags, 0 );
19815 rc = env->close( env, 0 );
19819 printf("BerkeleyDB: %s\n", db_strerror(rc) );
19825 memset( &env, '\0', sizeof(env) );
19827 rc = db_appinit( NULL, NULL, &env, flags );
19830 db_appexit( &env );
19833 unlink("__db_mpool.share");
19834 unlink("__db_lock.share");
19840 if { (eval echo configure:19841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
19842 ol_cv_berkeley_db_thread=yes
19844 echo "configure: failed program was:" >&5
19845 cat conftest.$ac_ext >&5
19847 ol_cv_berkeley_db_thread=no
19857 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
19859 if test $ol_cv_berkeley_db_thread != no ; then
19860 cat >> confdefs.h <<\EOF
19861 #define HAVE_BERKELEY_DB_THREAD 1
19871 if test $ol_cv_berkeley_db != no ; then
19872 cat >> confdefs.h <<\EOF
19873 #define HAVE_BERKELEY_DB 1
19877 ol_link_ldbm=berkeley
19878 ol_with_ldbm_api=berkeley
19880 if test $ol_with_ldbm_type = hash ; then
19881 cat >> confdefs.h <<\EOF
19882 #define LDBM_USE_DBHASH 1
19886 cat >> confdefs.h <<\EOF
19887 #define LDBM_USE_DBBTREE 1
19892 if test $ol_cv_lib_db != yes ; then
19893 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
19898 if test $ol_enable_bdb = yes -a $ol_link_ldbm != berkeley ; then
19899 { echo "configure: error: BDB: BerkeleyDB not available" 1>&2; exit 1; }
19900 elif test $ol_enable_bdb != no -a $ol_link_ldbm = berkeley ; then
19901 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
19902 echo "configure:19903: checking Berkeley DB version for BDB backend" >&5
19903 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
19904 echo $ac_n "(cached) $ac_c" 1>&6
19907 cat > conftest.$ac_ext <<EOF
19908 #line 19909 "configure"
19909 #include "confdefs.h"
19913 /* this check could be improved */
19914 #ifndef DB_VERSION_MAJOR
19915 # define DB_VERSION_MAJOR 1
19917 #ifndef DB_VERSION_MINOR
19918 # define DB_VERSION_MINOR 0
19921 /* require 4.2 or later */
19922 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
19923 __db_version_compat
19927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19928 egrep "__db_version_compat" >/dev/null 2>&1; then
19930 ol_cv_bdb_compat=yes
19933 ol_cv_bdb_compat=no
19939 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
19942 if test $ol_cv_bdb_compat = yes ; then
19944 elif test $ol_enable_bdb = yes ; then
19945 { echo "configure: error: BDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
19950 if test $ol_enable_hdb = yes -a $ol_link_ldbm != berkeley ; then
19951 { echo "configure: error: HDB: BerkeleyDB not available" 1>&2; exit 1; }
19954 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
19955 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
19956 ol_with_ldbm_api=none
19959 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
19960 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
19961 echo "configure:19962: checking for MDBM library" >&5
19962 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
19963 echo $ac_n "(cached) $ac_c" 1>&6
19966 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
19967 echo "configure:19968: checking for mdbm_set_chain" >&5
19968 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
19969 echo $ac_n "(cached) $ac_c" 1>&6
19971 cat > conftest.$ac_ext <<EOF
19972 #line 19973 "configure"
19973 #include "confdefs.h"
19974 /* System header to define __stub macros and hopefully few prototypes,
19975 which can conflict with char mdbm_set_chain(); below. */
19976 #include <assert.h>
19977 /* Override any gcc2 internal prototype to avoid an error. */
19978 /* We use char because int might match the return type of a gcc2
19979 builtin and then its argument prototype would still apply. */
19980 char mdbm_set_chain();
19985 /* The GNU C library defines this for functions which it implements
19986 to always fail with ENOSYS. Some functions are actually named
19987 something starting with __ and the normal name is an alias. */
19988 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
19991 f = mdbm_set_chain;
19996 if { (eval echo configure:19997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19998 eval "ac_cv_func_mdbm_set_chain=yes"
20000 echo "configure: failed program was:" >&5
20001 cat conftest.$ac_ext >&5
20003 eval "ac_cv_func_mdbm_set_chain=no"
20008 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
20009 echo "$ac_t""yes" 1>&6
20012 echo "$ac_t""no" 1>&6
20014 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
20015 echo "configure:20016: checking for mdbm_set_chain in -lmdbm" >&5
20016 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
20017 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20018 echo $ac_n "(cached) $ac_c" 1>&6
20020 ac_save_LIBS="$LIBS"
20021 LIBS="-lmdbm $LIBS"
20022 cat > conftest.$ac_ext <<EOF
20023 #line 20024 "configure"
20024 #include "confdefs.h"
20025 /* Override any gcc2 internal prototype to avoid an error. */
20026 /* We use char because int might match the return type of a gcc2
20027 builtin and then its argument prototype would still apply. */
20028 char mdbm_set_chain();
20034 if { (eval echo configure:20035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20036 eval "ac_cv_lib_$ac_lib_var=yes"
20038 echo "configure: failed program was:" >&5
20039 cat conftest.$ac_ext >&5
20041 eval "ac_cv_lib_$ac_lib_var=no"
20044 LIBS="$ac_save_LIBS"
20047 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20048 echo "$ac_t""yes" 1>&6
20049 ol_cv_lib_mdbm=-lmdbm
20051 echo "$ac_t""no" 1>&6
20062 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
20065 for ac_hdr in mdbm.h
20067 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20068 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20069 echo "configure:20070: checking for $ac_hdr" >&5
20070 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20071 echo $ac_n "(cached) $ac_c" 1>&6
20073 cat > conftest.$ac_ext <<EOF
20074 #line 20075 "configure"
20075 #include "confdefs.h"
20078 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20079 { (eval echo configure:20080: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20080 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20081 if test -z "$ac_err"; then
20083 eval "ac_cv_header_$ac_safe=yes"
20086 echo "configure: failed program was:" >&5
20087 cat conftest.$ac_ext >&5
20089 eval "ac_cv_header_$ac_safe=no"
20093 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20094 echo "$ac_t""yes" 1>&6
20095 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20096 cat >> confdefs.h <<EOF
20097 #define $ac_tr_hdr 1
20101 echo "$ac_t""no" 1>&6
20105 echo $ac_n "checking for db""... $ac_c" 1>&6
20106 echo "configure:20107: checking for db" >&5
20107 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
20108 echo $ac_n "(cached) $ac_c" 1>&6
20111 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
20119 echo "$ac_t""$ol_cv_mdbm" 1>&6
20120 if test $ol_cv_mdbm = yes ; then
20121 cat >> confdefs.h <<\EOF
20122 #define HAVE_MDBM 1
20128 if test $ol_cv_mdbm = yes ; then
20130 ol_with_ldbm_api=mdbm
20131 if test $ol_cv_lib_mdbm != yes ; then
20132 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
20137 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
20138 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
20139 echo "configure:20140: checking for GDBM library" >&5
20140 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
20141 echo $ac_n "(cached) $ac_c" 1>&6
20144 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
20145 echo "configure:20146: checking for gdbm_open" >&5
20146 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
20147 echo $ac_n "(cached) $ac_c" 1>&6
20149 cat > conftest.$ac_ext <<EOF
20150 #line 20151 "configure"
20151 #include "confdefs.h"
20152 /* System header to define __stub macros and hopefully few prototypes,
20153 which can conflict with char gdbm_open(); below. */
20154 #include <assert.h>
20155 /* Override any gcc2 internal prototype to avoid an error. */
20156 /* We use char because int might match the return type of a gcc2
20157 builtin and then its argument prototype would still apply. */
20163 /* The GNU C library defines this for functions which it implements
20164 to always fail with ENOSYS. Some functions are actually named
20165 something starting with __ and the normal name is an alias. */
20166 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
20174 if { (eval echo configure:20175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20176 eval "ac_cv_func_gdbm_open=yes"
20178 echo "configure: failed program was:" >&5
20179 cat conftest.$ac_ext >&5
20181 eval "ac_cv_func_gdbm_open=no"
20186 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
20187 echo "$ac_t""yes" 1>&6
20190 echo "$ac_t""no" 1>&6
20192 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
20193 echo "configure:20194: checking for gdbm_open in -lgdbm" >&5
20194 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
20195 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20196 echo $ac_n "(cached) $ac_c" 1>&6
20198 ac_save_LIBS="$LIBS"
20199 LIBS="-lgdbm $LIBS"
20200 cat > conftest.$ac_ext <<EOF
20201 #line 20202 "configure"
20202 #include "confdefs.h"
20203 /* Override any gcc2 internal prototype to avoid an error. */
20204 /* We use char because int might match the return type of a gcc2
20205 builtin and then its argument prototype would still apply. */
20212 if { (eval echo configure:20213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20214 eval "ac_cv_lib_$ac_lib_var=yes"
20216 echo "configure: failed program was:" >&5
20217 cat conftest.$ac_ext >&5
20219 eval "ac_cv_lib_$ac_lib_var=no"
20222 LIBS="$ac_save_LIBS"
20225 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20226 echo "$ac_t""yes" 1>&6
20227 ol_cv_lib_gdbm=-lgdbm
20229 echo "$ac_t""no" 1>&6
20240 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
20243 for ac_hdr in gdbm.h
20245 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20246 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20247 echo "configure:20248: checking for $ac_hdr" >&5
20248 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20249 echo $ac_n "(cached) $ac_c" 1>&6
20251 cat > conftest.$ac_ext <<EOF
20252 #line 20253 "configure"
20253 #include "confdefs.h"
20256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20257 { (eval echo configure:20258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20258 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20259 if test -z "$ac_err"; then
20261 eval "ac_cv_header_$ac_safe=yes"
20264 echo "configure: failed program was:" >&5
20265 cat conftest.$ac_ext >&5
20267 eval "ac_cv_header_$ac_safe=no"
20271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20272 echo "$ac_t""yes" 1>&6
20273 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20274 cat >> confdefs.h <<EOF
20275 #define $ac_tr_hdr 1
20279 echo "$ac_t""no" 1>&6
20283 echo $ac_n "checking for db""... $ac_c" 1>&6
20284 echo "configure:20285: checking for db" >&5
20285 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
20286 echo $ac_n "(cached) $ac_c" 1>&6
20289 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
20297 echo "$ac_t""$ol_cv_gdbm" 1>&6
20298 if test $ol_cv_gdbm = yes ; then
20299 cat >> confdefs.h <<\EOF
20300 #define HAVE_GDBM 1
20306 if test $ol_cv_gdbm = yes ; then
20308 ol_with_ldbm_api=gdbm
20310 if test $ol_cv_lib_gdbm != yes ; then
20311 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
20316 if test $ol_with_ldbm_api = ndbm ; then
20317 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
20318 echo "configure:20319: checking for NDBM library" >&5
20319 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
20320 echo $ac_n "(cached) $ac_c" 1>&6
20323 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
20324 echo "configure:20325: checking for dbm_open" >&5
20325 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
20326 echo $ac_n "(cached) $ac_c" 1>&6
20328 cat > conftest.$ac_ext <<EOF
20329 #line 20330 "configure"
20330 #include "confdefs.h"
20331 /* System header to define __stub macros and hopefully few prototypes,
20332 which can conflict with char dbm_open(); below. */
20333 #include <assert.h>
20334 /* Override any gcc2 internal prototype to avoid an error. */
20335 /* We use char because int might match the return type of a gcc2
20336 builtin and then its argument prototype would still apply. */
20342 /* The GNU C library defines this for functions which it implements
20343 to always fail with ENOSYS. Some functions are actually named
20344 something starting with __ and the normal name is an alias. */
20345 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
20353 if { (eval echo configure:20354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20355 eval "ac_cv_func_dbm_open=yes"
20357 echo "configure: failed program was:" >&5
20358 cat conftest.$ac_ext >&5
20360 eval "ac_cv_func_dbm_open=no"
20365 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
20366 echo "$ac_t""yes" 1>&6
20369 echo "$ac_t""no" 1>&6
20371 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
20372 echo "configure:20373: checking for dbm_open in -lndbm" >&5
20373 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20374 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20375 echo $ac_n "(cached) $ac_c" 1>&6
20377 ac_save_LIBS="$LIBS"
20378 LIBS="-lndbm $LIBS"
20379 cat > conftest.$ac_ext <<EOF
20380 #line 20381 "configure"
20381 #include "confdefs.h"
20382 /* Override any gcc2 internal prototype to avoid an error. */
20383 /* We use char because int might match the return type of a gcc2
20384 builtin and then its argument prototype would still apply. */
20391 if { (eval echo configure:20392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20393 eval "ac_cv_lib_$ac_lib_var=yes"
20395 echo "configure: failed program was:" >&5
20396 cat conftest.$ac_ext >&5
20398 eval "ac_cv_lib_$ac_lib_var=no"
20401 LIBS="$ac_save_LIBS"
20404 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20405 echo "$ac_t""yes" 1>&6
20406 ol_cv_lib_ndbm=-lndbm
20408 echo "$ac_t""no" 1>&6
20410 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
20411 echo "configure:20412: checking for dbm_open in -ldbm" >&5
20412 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
20413 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20414 echo $ac_n "(cached) $ac_c" 1>&6
20416 ac_save_LIBS="$LIBS"
20418 cat > conftest.$ac_ext <<EOF
20419 #line 20420 "configure"
20420 #include "confdefs.h"
20421 /* Override any gcc2 internal prototype to avoid an error. */
20422 /* We use char because int might match the return type of a gcc2
20423 builtin and then its argument prototype would still apply. */
20430 if { (eval echo configure:20431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20432 eval "ac_cv_lib_$ac_lib_var=yes"
20434 echo "configure: failed program was:" >&5
20435 cat conftest.$ac_ext >&5
20437 eval "ac_cv_lib_$ac_lib_var=no"
20440 LIBS="$ac_save_LIBS"
20443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20444 echo "$ac_t""yes" 1>&6
20445 ol_cv_lib_ndbm=-ldbm
20447 echo "$ac_t""no" 1>&6
20460 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
20463 for ac_hdr in ndbm.h
20465 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20466 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20467 echo "configure:20468: checking for $ac_hdr" >&5
20468 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20469 echo $ac_n "(cached) $ac_c" 1>&6
20471 cat > conftest.$ac_ext <<EOF
20472 #line 20473 "configure"
20473 #include "confdefs.h"
20476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20477 { (eval echo configure:20478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20479 if test -z "$ac_err"; then
20481 eval "ac_cv_header_$ac_safe=yes"
20484 echo "configure: failed program was:" >&5
20485 cat conftest.$ac_ext >&5
20487 eval "ac_cv_header_$ac_safe=no"
20491 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20492 echo "$ac_t""yes" 1>&6
20493 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20494 cat >> confdefs.h <<EOF
20495 #define $ac_tr_hdr 1
20499 echo "$ac_t""no" 1>&6
20503 echo $ac_n "checking for db""... $ac_c" 1>&6
20504 echo "configure:20505: checking for db" >&5
20505 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
20506 echo $ac_n "(cached) $ac_c" 1>&6
20509 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
20517 echo "$ac_t""$ol_cv_ndbm" 1>&6
20518 if test $ol_cv_ndbm = yes ; then
20519 cat >> confdefs.h <<\EOF
20520 #define HAVE_NDBM 1
20526 if test $ol_cv_ndbm = yes ; then
20528 ol_with_ldbm_api=ndbm
20530 if test $ol_cv_lib_ndbm != yes ; then
20531 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
20536 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
20537 echo "configure: warning: could not find suitable LDBM backend" 1>&2
20538 if test $ol_enable_ldbm = yes ; then
20539 { echo "configure: error: select appropriate LDBM options or disable" 1>&2; exit 1; }
20542 echo "configure: warning: disabling LDBM" 1>&2
20547 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
20548 BUILD_LIBS_DYNAMIC=shared
20549 cat >> confdefs.h <<\EOF
20550 #define LDAP_LIBS_DYNAMIC 1
20555 BUILD_LIBS_DYNAMIC=static
20559 if test $ol_enable_wrappers != no ; then
20560 for ac_hdr in tcpd.h
20562 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20563 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20564 echo "configure:20565: checking for $ac_hdr" >&5
20565 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20566 echo $ac_n "(cached) $ac_c" 1>&6
20568 cat > conftest.$ac_ext <<EOF
20569 #line 20570 "configure"
20570 #include "confdefs.h"
20573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20574 { (eval echo configure:20575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20575 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20576 if test -z "$ac_err"; then
20578 eval "ac_cv_header_$ac_safe=yes"
20581 echo "configure: failed program was:" >&5
20582 cat conftest.$ac_ext >&5
20584 eval "ac_cv_header_$ac_safe=no"
20588 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20589 echo "$ac_t""yes" 1>&6
20590 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20591 cat >> confdefs.h <<EOF
20592 #define $ac_tr_hdr 1
20595 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
20596 echo "configure:20597: checking for TCP wrappers library" >&5
20598 LIBS="$LIBS -lwrap"
20599 cat > conftest.$ac_ext <<EOF
20600 #line 20601 "configure"
20601 #include "confdefs.h"
20604 int allow_severity = 0;
20605 int deny_severity = 0;
20607 struct request_info *req;
20615 if { (eval echo configure:20616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20617 echo "$ac_t""-lwrap" 1>&6
20621 echo "configure: failed program was:" >&5
20622 cat conftest.$ac_ext >&5
20626 cat > conftest.$ac_ext <<EOF
20627 #line 20628 "configure"
20628 #include "confdefs.h"
20631 int allow_severity = 0;
20632 int deny_severity = 0;
20634 struct request_info *req;
20642 if { (eval echo configure:20643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20644 echo "$ac_t""-lwrap -lnsl" 1>&6
20646 LIBS="$save_LIBS -lnsl"
20648 echo "configure: failed program was:" >&5
20649 cat conftest.$ac_ext >&5
20652 echo "$ac_t""no" 1>&6
20660 echo "$ac_t""no" 1>&6
20666 if test $have_wrappers = yes ; then
20667 cat >> confdefs.h <<\EOF
20668 #define HAVE_TCPD 1
20672 elif test $ol_enable_wrappers = yes ; then
20673 { echo "configure: error: could not find TCP wrappers, select apppropriate options or disable" 1>&2; exit 1; }
20675 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
20680 if test $ol_enable_syslog != no ; then
20681 echo $ac_n "checking for openlog""... $ac_c" 1>&6
20682 echo "configure:20683: checking for openlog" >&5
20683 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
20684 echo $ac_n "(cached) $ac_c" 1>&6
20686 cat > conftest.$ac_ext <<EOF
20687 #line 20688 "configure"
20688 #include "confdefs.h"
20689 /* System header to define __stub macros and hopefully few prototypes,
20690 which can conflict with char openlog(); below. */
20691 #include <assert.h>
20692 /* Override any gcc2 internal prototype to avoid an error. */
20693 /* We use char because int might match the return type of a gcc2
20694 builtin and then its argument prototype would still apply. */
20700 /* The GNU C library defines this for functions which it implements
20701 to always fail with ENOSYS. Some functions are actually named
20702 something starting with __ and the normal name is an alias. */
20703 #if defined (__stub_openlog) || defined (__stub___openlog)
20711 if { (eval echo configure:20712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20713 eval "ac_cv_func_openlog=yes"
20715 echo "configure: failed program was:" >&5
20716 cat conftest.$ac_ext >&5
20718 eval "ac_cv_func_openlog=no"
20723 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
20724 echo "$ac_t""yes" 1>&6
20727 echo "$ac_t""no" 1>&6
20730 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
20731 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
20733 ol_enable_syslog=$ac_cv_func_openlog
20738 if test $ol_enable_sql != no ; then
20739 for ac_hdr in sql.h sqlext.h
20741 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20742 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20743 echo "configure:20744: checking for $ac_hdr" >&5
20744 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20745 echo $ac_n "(cached) $ac_c" 1>&6
20747 cat > conftest.$ac_ext <<EOF
20748 #line 20749 "configure"
20749 #include "confdefs.h"
20752 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20753 { (eval echo configure:20754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20754 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20755 if test -z "$ac_err"; then
20757 eval "ac_cv_header_$ac_safe=yes"
20760 echo "configure: failed program was:" >&5
20761 cat conftest.$ac_ext >&5
20763 eval "ac_cv_header_$ac_safe=no"
20767 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20768 echo "$ac_t""yes" 1>&6
20769 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20770 cat >> confdefs.h <<EOF
20771 #define $ac_tr_hdr 1
20775 echo "$ac_t""no" 1>&6
20776 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
20782 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
20783 echo "configure:20784: checking for SQLDriverConnect in -liodbc" >&5
20784 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20785 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20786 echo $ac_n "(cached) $ac_c" 1>&6
20788 ac_save_LIBS="$LIBS"
20789 LIBS="-liodbc $LIBS"
20790 cat > conftest.$ac_ext <<EOF
20791 #line 20792 "configure"
20792 #include "confdefs.h"
20793 /* Override any gcc2 internal prototype to avoid an error. */
20794 /* We use char because int might match the return type of a gcc2
20795 builtin and then its argument prototype would still apply. */
20796 char SQLDriverConnect();
20802 if { (eval echo configure:20803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20804 eval "ac_cv_lib_$ac_lib_var=yes"
20806 echo "configure: failed program was:" >&5
20807 cat conftest.$ac_ext >&5
20809 eval "ac_cv_lib_$ac_lib_var=no"
20812 LIBS="$ac_save_LIBS"
20815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20816 echo "$ac_t""yes" 1>&6
20819 echo "$ac_t""no" 1>&6
20823 if test $have_iodbc = yes ; then
20824 ol_link_sql="-liodbc"
20826 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
20827 echo "configure:20828: checking for SQLDriverConnect in -lodbc" >&5
20828 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
20829 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20830 echo $ac_n "(cached) $ac_c" 1>&6
20832 ac_save_LIBS="$LIBS"
20833 LIBS="-lodbc $LIBS"
20834 cat > conftest.$ac_ext <<EOF
20835 #line 20836 "configure"
20836 #include "confdefs.h"
20837 /* Override any gcc2 internal prototype to avoid an error. */
20838 /* We use char because int might match the return type of a gcc2
20839 builtin and then its argument prototype would still apply. */
20840 char SQLDriverConnect();
20846 if { (eval echo configure:20847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20848 eval "ac_cv_lib_$ac_lib_var=yes"
20850 echo "configure: failed program was:" >&5
20851 cat conftest.$ac_ext >&5
20853 eval "ac_cv_lib_$ac_lib_var=no"
20856 LIBS="$ac_save_LIBS"
20859 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20860 echo "$ac_t""yes" 1>&6
20863 echo "$ac_t""no" 1>&6
20867 if test $have_odbc = yes ; then
20868 ol_link_sql="-lodbc"
20872 if test $ol_link_sql != no ; then
20873 SLAPD_SQL_LIBS="$ol_link_sql"
20875 elif test $ol_enable_sql != auto ; then
20876 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
20882 if test $ol_with_cyrus_sasl != no ; then
20883 for ac_hdr in sasl/sasl.h sasl.h
20885 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20886 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20887 echo "configure:20888: checking for $ac_hdr" >&5
20888 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20889 echo $ac_n "(cached) $ac_c" 1>&6
20891 cat > conftest.$ac_ext <<EOF
20892 #line 20893 "configure"
20893 #include "confdefs.h"
20896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
20897 { (eval echo configure:20898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
20898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
20899 if test -z "$ac_err"; then
20901 eval "ac_cv_header_$ac_safe=yes"
20904 echo "configure: failed program was:" >&5
20905 cat conftest.$ac_ext >&5
20907 eval "ac_cv_header_$ac_safe=no"
20911 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
20912 echo "$ac_t""yes" 1>&6
20913 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
20914 cat >> confdefs.h <<EOF
20915 #define $ac_tr_hdr 1
20919 echo "$ac_t""no" 1>&6
20924 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
20925 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
20926 echo "configure:20927: checking for sasl_client_init in -lsasl2" >&5
20927 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20928 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20929 echo $ac_n "(cached) $ac_c" 1>&6
20931 ac_save_LIBS="$LIBS"
20932 LIBS="-lsasl2 $LIBS"
20933 cat > conftest.$ac_ext <<EOF
20934 #line 20935 "configure"
20935 #include "confdefs.h"
20936 /* Override any gcc2 internal prototype to avoid an error. */
20937 /* We use char because int might match the return type of a gcc2
20938 builtin and then its argument prototype would still apply. */
20939 char sasl_client_init();
20945 if { (eval echo configure:20946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20947 eval "ac_cv_lib_$ac_lib_var=yes"
20949 echo "configure: failed program was:" >&5
20950 cat conftest.$ac_ext >&5
20952 eval "ac_cv_lib_$ac_lib_var=no"
20955 LIBS="$ac_save_LIBS"
20958 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20959 echo "$ac_t""yes" 1>&6
20960 ol_link_sasl="-lsasl2"
20962 echo "$ac_t""no" 1>&6
20963 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
20964 echo "configure:20965: checking for sasl_client_init in -lsasl" >&5
20965 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
20966 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20967 echo $ac_n "(cached) $ac_c" 1>&6
20969 ac_save_LIBS="$LIBS"
20970 LIBS="-lsasl $LIBS"
20971 cat > conftest.$ac_ext <<EOF
20972 #line 20973 "configure"
20973 #include "confdefs.h"
20974 /* Override any gcc2 internal prototype to avoid an error. */
20975 /* We use char because int might match the return type of a gcc2
20976 builtin and then its argument prototype would still apply. */
20977 char sasl_client_init();
20983 if { (eval echo configure:20984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20985 eval "ac_cv_lib_$ac_lib_var=yes"
20987 echo "configure: failed program was:" >&5
20988 cat conftest.$ac_ext >&5
20990 eval "ac_cv_lib_$ac_lib_var=no"
20993 LIBS="$ac_save_LIBS"
20996 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20997 echo "$ac_t""yes" 1>&6
20998 ol_link_sasl="-lsasl"
21000 echo "$ac_t""no" 1>&6
21007 if test $ol_link_sasl = no ; then
21008 if test $ol_with_cyrus_sasl != auto ; then
21009 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
21011 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
21012 echo "configure: warning: SASL authentication not supported!" 1>&2
21013 if test $ol_link_tls = no ; then
21014 echo "configure: warning: Strong authentication not supported!" 1>&2
21018 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
21019 echo "configure:21020: checking Cyrus SASL library version" >&5
21020 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
21021 echo $ac_n "(cached) $ac_c" 1>&6
21024 cat > conftest.$ac_ext <<EOF
21025 #line 21026 "configure"
21026 #include "confdefs.h"
21028 #ifdef HAVE_SASL_SASL_H
21029 #include <sasl/sasl.h>
21034 /* Require 2.1.15+ */
21035 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
21036 char *__sasl_compat = "2.2+ or better okay (we guess)";
21037 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
21038 && SASL_VERSION_STEP >=15
21039 char *__sasl_compat = "2.1.15+ or better okay";
21043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21044 egrep "__sasl_compat" >/dev/null 2>&1; then
21046 ol_cv_sasl_compat=yes
21049 ol_cv_sasl_compat=no
21055 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
21057 if test $ol_cv_sasl_compat = no ; then
21059 { echo "configure: error: Cyrus SASL library located but is incompatible" 1>&2; exit 1; }
21062 cat >> confdefs.h <<\EOF
21063 #define HAVE_CYRUS_SASL 1
21066 SASL_LIBS="$ol_link_sasl"
21067 if test $ol_enable_spasswd != no ; then
21068 ol_link_spasswd=yes
21071 ac_save_LIBS="$LIBS"
21072 LIBS="$LIBS $ol_link_sasl"
21073 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
21074 echo "configure:21075: checking for sasl_version" >&5
21075 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
21076 echo $ac_n "(cached) $ac_c" 1>&6
21078 cat > conftest.$ac_ext <<EOF
21079 #line 21080 "configure"
21080 #include "confdefs.h"
21081 /* System header to define __stub macros and hopefully few prototypes,
21082 which can conflict with char sasl_version(); below. */
21083 #include <assert.h>
21084 /* Override any gcc2 internal prototype to avoid an error. */
21085 /* We use char because int might match the return type of a gcc2
21086 builtin and then its argument prototype would still apply. */
21087 char sasl_version();
21092 /* The GNU C library defines this for functions which it implements
21093 to always fail with ENOSYS. Some functions are actually named
21094 something starting with __ and the normal name is an alias. */
21095 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
21103 if { (eval echo configure:21104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21105 eval "ac_cv_func_sasl_version=yes"
21107 echo "configure: failed program was:" >&5
21108 cat conftest.$ac_ext >&5
21110 eval "ac_cv_func_sasl_version=no"
21115 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
21116 echo "$ac_t""yes" 1>&6
21117 cat >> confdefs.h <<\EOF
21118 #define HAVE_SASL_VERSION 1
21122 echo "$ac_t""no" 1>&6
21125 LIBS="$ac_save_LIBS"
21129 echo "configure: warning: SASL authentication not supported!" 1>&2
21130 if test $ol_link_tls = no ; then
21131 echo "configure: warning: Strong authentication not supported!" 1>&2
21135 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
21137 if test -r /dev/urandom ; then
21138 dev="/dev/urandom";
21139 elif test -r /idev/urandom ; then
21140 dev="/idev/urandom";
21141 elif test -r /dev/srandom ; then
21142 dev="/dev/srandom";
21143 elif test -r /dev/random ; then
21145 elif test -r /idev/random ; then
21146 dev="/idev/random";
21149 if test $dev != no ; then
21150 cat >> confdefs.h <<EOF
21151 #define URANDOM_DEVICE "$dev"
21158 if test $ol_with_fetch != no ; then
21160 LIBS="-lfetch -lcom_err $LIBS"
21161 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
21162 echo "configure:21163: checking fetch(3) library" >&5
21163 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
21164 echo $ac_n "(cached) $ac_c" 1>&6
21167 cat > conftest.$ac_ext <<EOF
21168 #line 21169 "configure"
21169 #include "confdefs.h"
21171 #include <sys/param.h>
21175 struct url *u = fetchParseURL("file:///");
21178 if { (eval echo configure:21179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21180 ol_cv_lib_fetch=yes
21182 echo "configure: failed program was:" >&5
21183 cat conftest.$ac_ext >&5
21190 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
21192 if test $ol_cv_lib_fetch != no ; then
21193 ol_link_fetch="-lfetch -lcom_err"
21194 cat >> confdefs.h <<\EOF
21195 #define HAVE_FETCH 1
21201 if test $ol_cv_lib_fetch != no ; then
21202 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
21203 ol_link_fetch=freebsd
21205 elif test $ol_with_fetch != auto ; then
21206 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
21210 if test $ol_enable_crypt != no ; then
21212 LIBS="$TLS_LIBS $LIBS"
21214 echo $ac_n "checking for crypt""... $ac_c" 1>&6
21215 echo "configure:21216: checking for crypt" >&5
21216 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
21217 echo $ac_n "(cached) $ac_c" 1>&6
21219 cat > conftest.$ac_ext <<EOF
21220 #line 21221 "configure"
21221 #include "confdefs.h"
21222 /* System header to define __stub macros and hopefully few prototypes,
21223 which can conflict with char crypt(); below. */
21224 #include <assert.h>
21225 /* Override any gcc2 internal prototype to avoid an error. */
21226 /* We use char because int might match the return type of a gcc2
21227 builtin and then its argument prototype would still apply. */
21233 /* The GNU C library defines this for functions which it implements
21234 to always fail with ENOSYS. Some functions are actually named
21235 something starting with __ and the normal name is an alias. */
21236 #if defined (__stub_crypt) || defined (__stub___crypt)
21244 if { (eval echo configure:21245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21246 eval "ac_cv_func_crypt=yes"
21248 echo "configure: failed program was:" >&5
21249 cat conftest.$ac_ext >&5
21251 eval "ac_cv_func_crypt=no"
21256 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
21257 echo "$ac_t""yes" 1>&6
21260 echo "$ac_t""no" 1>&6
21263 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
21264 echo "configure:21265: checking for crypt in -lcrypt" >&5
21265 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
21266 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21267 echo $ac_n "(cached) $ac_c" 1>&6
21269 ac_save_LIBS="$LIBS"
21270 LIBS="-lcrypt $LIBS"
21271 cat > conftest.$ac_ext <<EOF
21272 #line 21273 "configure"
21273 #include "confdefs.h"
21274 /* Override any gcc2 internal prototype to avoid an error. */
21275 /* We use char because int might match the return type of a gcc2
21276 builtin and then its argument prototype would still apply. */
21283 if { (eval echo configure:21284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21285 eval "ac_cv_lib_$ac_lib_var=yes"
21287 echo "configure: failed program was:" >&5
21288 cat conftest.$ac_ext >&5
21290 eval "ac_cv_lib_$ac_lib_var=no"
21293 LIBS="$ac_save_LIBS"
21296 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21297 echo "$ac_t""yes" 1>&6
21298 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
21301 echo "$ac_t""no" 1>&6
21310 if test $have_crypt = yes ; then
21311 cat >> confdefs.h <<\EOF
21312 #define HAVE_CRYPT 1
21316 echo "configure: warning: could not find crypt" 1>&2
21317 if test $ol_enable_crypt = yes ; then
21318 { echo "configure: error: could not find crypt, select appropriate options or disable" 1>&2; exit 1; }
21321 echo "configure: warning: disabling crypt support" 1>&2
21326 if test $ol_enable_proctitle != no ; then
21327 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
21328 echo "configure:21329: checking for setproctitle" >&5
21329 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
21330 echo $ac_n "(cached) $ac_c" 1>&6
21332 cat > conftest.$ac_ext <<EOF
21333 #line 21334 "configure"
21334 #include "confdefs.h"
21335 /* System header to define __stub macros and hopefully few prototypes,
21336 which can conflict with char setproctitle(); below. */
21337 #include <assert.h>
21338 /* Override any gcc2 internal prototype to avoid an error. */
21339 /* We use char because int might match the return type of a gcc2
21340 builtin and then its argument prototype would still apply. */
21341 char setproctitle();
21346 /* The GNU C library defines this for functions which it implements
21347 to always fail with ENOSYS. Some functions are actually named
21348 something starting with __ and the normal name is an alias. */
21349 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
21357 if { (eval echo configure:21358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21359 eval "ac_cv_func_setproctitle=yes"
21361 echo "configure: failed program was:" >&5
21362 cat conftest.$ac_ext >&5
21364 eval "ac_cv_func_setproctitle=no"
21369 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
21370 echo "$ac_t""yes" 1>&6
21371 have_setproctitle=yes
21373 echo "$ac_t""no" 1>&6
21375 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
21376 echo "configure:21377: checking for setproctitle in -lutil" >&5
21377 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
21378 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21379 echo $ac_n "(cached) $ac_c" 1>&6
21381 ac_save_LIBS="$LIBS"
21382 LIBS="-lutil $LIBS"
21383 cat > conftest.$ac_ext <<EOF
21384 #line 21385 "configure"
21385 #include "confdefs.h"
21386 /* Override any gcc2 internal prototype to avoid an error. */
21387 /* We use char because int might match the return type of a gcc2
21388 builtin and then its argument prototype would still apply. */
21389 char setproctitle();
21395 if { (eval echo configure:21396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21397 eval "ac_cv_lib_$ac_lib_var=yes"
21399 echo "configure: failed program was:" >&5
21400 cat conftest.$ac_ext >&5
21402 eval "ac_cv_lib_$ac_lib_var=no"
21405 LIBS="$ac_save_LIBS"
21408 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21409 echo "$ac_t""yes" 1>&6
21410 have_setproctitle=yes
21411 LUTIL_LIBS="$LUTIL_LIBS -lutil"
21413 echo "$ac_t""no" 1>&6
21414 have_setproctitle=no
21415 LIBOBJS="$LIBOBJS setproctitle.o"
21416 LIBSRCS="$LIBSRCS setproctitle.c"
21422 if test $have_setproctitle = yes ; then
21423 cat >> confdefs.h <<\EOF
21424 #define HAVE_SETPROCTITLE 1
21430 if test $ol_enable_slp != no ; then
21431 for ac_hdr in slp.h
21433 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21434 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21435 echo "configure:21436: checking for $ac_hdr" >&5
21436 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21437 echo $ac_n "(cached) $ac_c" 1>&6
21439 cat > conftest.$ac_ext <<EOF
21440 #line 21441 "configure"
21441 #include "confdefs.h"
21444 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21445 { (eval echo configure:21446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21446 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21447 if test -z "$ac_err"; then
21449 eval "ac_cv_header_$ac_safe=yes"
21452 echo "configure: failed program was:" >&5
21453 cat conftest.$ac_ext >&5
21455 eval "ac_cv_header_$ac_safe=no"
21459 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21460 echo "$ac_t""yes" 1>&6
21461 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21462 cat >> confdefs.h <<EOF
21463 #define $ac_tr_hdr 1
21467 echo "$ac_t""no" 1>&6
21472 if test $ac_cv_header_slp_h = yes ; then
21473 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
21474 echo "configure:21475: checking for SLPOpen in -lslp" >&5
21475 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
21476 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21477 echo $ac_n "(cached) $ac_c" 1>&6
21479 ac_save_LIBS="$LIBS"
21481 cat > conftest.$ac_ext <<EOF
21482 #line 21483 "configure"
21483 #include "confdefs.h"
21484 /* Override any gcc2 internal prototype to avoid an error. */
21485 /* We use char because int might match the return type of a gcc2
21486 builtin and then its argument prototype would still apply. */
21493 if { (eval echo configure:21494: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21495 eval "ac_cv_lib_$ac_lib_var=yes"
21497 echo "configure: failed program was:" >&5
21498 cat conftest.$ac_ext >&5
21500 eval "ac_cv_lib_$ac_lib_var=no"
21503 LIBS="$ac_save_LIBS"
21506 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21507 echo "$ac_t""yes" 1>&6
21510 echo "$ac_t""no" 1>&6
21514 if test $have_slp = yes ; then
21515 cat >> confdefs.h <<\EOF
21519 SLAPD_SLP_LIBS=-lslp
21522 elif test $ol_enable_slp = yes ; then
21523 { echo "configure: error: SLP not found" 1>&2; exit 1; }
21528 echo $ac_n "checking long long""... $ac_c" 1>&6
21529 echo "configure:21530: checking long long" >&5
21530 if eval "test \"\${ol_cv_type_long_long+set}\" = set"; then
21531 echo $ac_n "(cached) $ac_c" 1>&6
21534 cat > conftest.$ac_ext <<EOF
21535 #line 21536 "configure"
21536 #include "confdefs.h"
21542 if { (eval echo configure:21543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21544 ol_cv_type_long_long=yes
21546 echo "configure: failed program was:" >&5
21547 cat conftest.$ac_ext >&5
21549 ol_cv_type_long_long=no
21554 echo "$ac_t""$ol_cv_type_long_long" 1>&6
21555 if test $ol_cv_type_long_long = yes; then
21556 cat >> confdefs.h <<\EOF
21557 #define HAVE_LONG_LONG 1
21562 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
21563 echo "configure:21564: checking for ANSI C header files" >&5
21564 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
21565 echo $ac_n "(cached) $ac_c" 1>&6
21567 cat > conftest.$ac_ext <<EOF
21568 #line 21569 "configure"
21569 #include "confdefs.h"
21570 #include <stdlib.h>
21571 #include <stdarg.h>
21572 #include <string.h>
21575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21576 { (eval echo configure:21577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21578 if test -z "$ac_err"; then
21580 ac_cv_header_stdc=yes
21583 echo "configure: failed program was:" >&5
21584 cat conftest.$ac_ext >&5
21586 ac_cv_header_stdc=no
21590 if test $ac_cv_header_stdc = yes; then
21591 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21592 cat > conftest.$ac_ext <<EOF
21593 #line 21594 "configure"
21594 #include "confdefs.h"
21595 #include <string.h>
21597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21598 egrep "memchr" >/dev/null 2>&1; then
21602 ac_cv_header_stdc=no
21608 if test $ac_cv_header_stdc = yes; then
21609 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21610 cat > conftest.$ac_ext <<EOF
21611 #line 21612 "configure"
21612 #include "confdefs.h"
21613 #include <stdlib.h>
21615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21616 egrep "free" >/dev/null 2>&1; then
21620 ac_cv_header_stdc=no
21626 if test $ac_cv_header_stdc = yes; then
21627 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21628 if test "$cross_compiling" = yes; then
21631 cat > conftest.$ac_ext <<EOF
21632 #line 21633 "configure"
21633 #include "confdefs.h"
21635 #if ((' ' & 0x0FF) == 0x020)
21636 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21637 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21639 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
21640 || ('j' <= (c) && (c) <= 'r') \
21641 || ('s' <= (c) && (c) <= 'z'))
21642 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21644 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21645 int main () { int i; for (i = 0; i < 256; i++)
21646 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
21650 if { (eval echo configure:21651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
21654 echo "configure: failed program was:" >&5
21655 cat conftest.$ac_ext >&5
21657 ac_cv_header_stdc=no
21665 echo "$ac_t""$ac_cv_header_stdc" 1>&6
21666 if test $ac_cv_header_stdc = yes; then
21667 cat >> confdefs.h <<\EOF
21668 #define STDC_HEADERS 1
21673 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
21674 echo "configure:21675: checking for mode_t" >&5
21675 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
21676 echo $ac_n "(cached) $ac_c" 1>&6
21678 cat > conftest.$ac_ext <<EOF
21679 #line 21680 "configure"
21680 #include "confdefs.h"
21681 #include <sys/types.h>
21683 #include <stdlib.h>
21684 #include <stddef.h>
21688 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21689 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21691 eval "ac_cv_type_mode_t=yes"
21694 eval "ac_cv_type_mode_t=no"
21699 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
21700 echo "$ac_t""yes" 1>&6
21702 echo "$ac_t""no" 1>&6
21703 cat >> confdefs.h <<EOF
21709 echo $ac_n "checking for off_t""... $ac_c" 1>&6
21710 echo "configure:21711: checking for off_t" >&5
21711 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
21712 echo $ac_n "(cached) $ac_c" 1>&6
21714 cat > conftest.$ac_ext <<EOF
21715 #line 21716 "configure"
21716 #include "confdefs.h"
21717 #include <sys/types.h>
21719 #include <stdlib.h>
21720 #include <stddef.h>
21724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21725 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21727 eval "ac_cv_type_off_t=yes"
21730 eval "ac_cv_type_off_t=no"
21735 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
21736 echo "$ac_t""yes" 1>&6
21738 echo "$ac_t""no" 1>&6
21739 cat >> confdefs.h <<EOF
21745 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
21746 echo "configure:21747: checking for pid_t" >&5
21747 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
21748 echo $ac_n "(cached) $ac_c" 1>&6
21750 cat > conftest.$ac_ext <<EOF
21751 #line 21752 "configure"
21752 #include "confdefs.h"
21753 #include <sys/types.h>
21755 #include <stdlib.h>
21756 #include <stddef.h>
21760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21761 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21763 eval "ac_cv_type_pid_t=yes"
21766 eval "ac_cv_type_pid_t=no"
21771 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
21772 echo "$ac_t""yes" 1>&6
21774 echo "$ac_t""no" 1>&6
21775 cat >> confdefs.h <<EOF
21781 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
21782 echo "configure:21783: checking for ptrdiff_t" >&5
21783 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
21784 echo $ac_n "(cached) $ac_c" 1>&6
21786 cat > conftest.$ac_ext <<EOF
21787 #line 21788 "configure"
21788 #include "confdefs.h"
21789 #include <stddef.h>
21794 if { (eval echo configure:21795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21796 am_cv_type_ptrdiff_t=yes
21798 echo "configure: failed program was:" >&5
21799 cat conftest.$ac_ext >&5
21801 am_cv_type_ptrdiff_t=no
21806 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
21807 if test $am_cv_type_ptrdiff_t = yes; then
21808 cat >> confdefs.h <<\EOF
21809 #define HAVE_PTRDIFF_T 1
21814 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
21815 echo "configure:21816: checking return type of signal handlers" >&5
21816 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
21817 echo $ac_n "(cached) $ac_c" 1>&6
21819 cat > conftest.$ac_ext <<EOF
21820 #line 21821 "configure"
21821 #include "confdefs.h"
21822 #include <sys/types.h>
21823 #include <signal.h>
21828 extern "C" void (*signal (int, void (*)(int)))(int);
21830 void (*signal ()) ();
21837 if { (eval echo configure:21838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21839 ac_cv_type_signal=void
21841 echo "configure: failed program was:" >&5
21842 cat conftest.$ac_ext >&5
21844 ac_cv_type_signal=int
21849 echo "$ac_t""$ac_cv_type_signal" 1>&6
21850 cat >> confdefs.h <<EOF
21851 #define RETSIGTYPE $ac_cv_type_signal
21855 echo $ac_n "checking for size_t""... $ac_c" 1>&6
21856 echo "configure:21857: checking for size_t" >&5
21857 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
21858 echo $ac_n "(cached) $ac_c" 1>&6
21860 cat > conftest.$ac_ext <<EOF
21861 #line 21862 "configure"
21862 #include "confdefs.h"
21863 #include <sys/types.h>
21865 #include <stdlib.h>
21866 #include <stddef.h>
21870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21871 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21873 eval "ac_cv_type_size_t=yes"
21876 eval "ac_cv_type_size_t=no"
21881 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
21882 echo "$ac_t""yes" 1>&6
21884 echo "$ac_t""no" 1>&6
21885 cat >> confdefs.h <<EOF
21886 #define size_t unsigned
21892 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
21893 echo "configure:21894: checking for ssize_t" >&5
21894 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
21895 echo $ac_n "(cached) $ac_c" 1>&6
21897 cat > conftest.$ac_ext <<EOF
21898 #line 21899 "configure"
21899 #include "confdefs.h"
21900 #include <sys/types.h>
21902 #include <stdlib.h>
21903 #include <stddef.h>
21907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21908 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21910 eval "ac_cv_type_ssize_t=yes"
21913 eval "ac_cv_type_ssize_t=no"
21918 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
21919 echo "$ac_t""yes" 1>&6
21921 echo "$ac_t""no" 1>&6
21922 cat >> confdefs.h <<EOF
21923 #define ssize_t signed int
21928 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
21929 echo "configure:21930: checking for caddr_t" >&5
21930 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
21931 echo $ac_n "(cached) $ac_c" 1>&6
21933 cat > conftest.$ac_ext <<EOF
21934 #line 21935 "configure"
21935 #include "confdefs.h"
21936 #include <sys/types.h>
21938 #include <stdlib.h>
21939 #include <stddef.h>
21943 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21944 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
21946 eval "ac_cv_type_caddr_t=yes"
21949 eval "ac_cv_type_caddr_t=no"
21954 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
21955 echo "$ac_t""yes" 1>&6
21957 echo "$ac_t""no" 1>&6
21958 cat >> confdefs.h <<EOF
21959 #define caddr_t char *
21965 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
21966 echo "configure:21967: checking for socklen_t" >&5
21967 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
21968 echo $ac_n "(cached) $ac_c" 1>&6
21970 cat > conftest.$ac_ext <<EOF
21971 #line 21972 "configure"
21972 #include "confdefs.h"
21974 #ifdef HAVE_SYS_TYPES_H
21975 #include <sys/types.h>
21977 #ifdef HAVE_SYS_SOCKET_H
21978 #include <sys/socket.h>
21985 if { (eval echo configure:21986: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
21987 ol_cv_type_socklen_t=yes
21989 echo "configure: failed program was:" >&5
21990 cat conftest.$ac_ext >&5
21992 ol_cv_type_socklen_t=no
21997 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
21998 if test $ol_cv_type_socklen_t = no; then
21999 cat >> confdefs.h <<\EOF
22000 #define socklen_t int
22005 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
22006 echo "configure:22007: checking for member st_blksize in aggregate type struct stat" >&5
22007 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
22008 echo $ac_n "(cached) $ac_c" 1>&6
22010 cat > conftest.$ac_ext <<EOF
22011 #line 22012 "configure"
22012 #include "confdefs.h"
22013 #include <sys/types.h>
22014 #include <sys/stat.h>
22016 struct stat foo; foo.st_blksize;
22019 if { (eval echo configure:22020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22021 ac_cv_c_struct_member_st_blksize=yes
22023 echo "configure: failed program was:" >&5
22024 cat conftest.$ac_ext >&5
22026 ac_cv_c_struct_member_st_blksize=no
22031 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
22032 st_blksize="$ac_cv_c_struct_member_st_blksize"
22033 if test $ac_cv_c_struct_member_st_blksize = yes; then
22034 cat >> confdefs.h <<\EOF
22035 #define HAVE_ST_BLKSIZE 1
22040 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
22041 echo "configure:22042: checking whether time.h and sys/time.h may both be included" >&5
22042 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
22043 echo $ac_n "(cached) $ac_c" 1>&6
22045 cat > conftest.$ac_ext <<EOF
22046 #line 22047 "configure"
22047 #include "confdefs.h"
22048 #include <sys/types.h>
22049 #include <sys/time.h>
22055 if { (eval echo configure:22056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22057 ac_cv_header_time=yes
22059 echo "configure: failed program was:" >&5
22060 cat conftest.$ac_ext >&5
22062 ac_cv_header_time=no
22067 echo "$ac_t""$ac_cv_header_time" 1>&6
22068 if test $ac_cv_header_time = yes; then
22069 cat >> confdefs.h <<\EOF
22070 #define TIME_WITH_SYS_TIME 1
22075 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
22076 echo "configure:22077: checking whether struct tm is in sys/time.h or time.h" >&5
22077 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
22078 echo $ac_n "(cached) $ac_c" 1>&6
22080 cat > conftest.$ac_ext <<EOF
22081 #line 22082 "configure"
22082 #include "confdefs.h"
22083 #include <sys/types.h>
22086 struct tm *tp; tp->tm_sec;
22089 if { (eval echo configure:22090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22091 ac_cv_struct_tm=time.h
22093 echo "configure: failed program was:" >&5
22094 cat conftest.$ac_ext >&5
22096 ac_cv_struct_tm=sys/time.h
22101 echo "$ac_t""$ac_cv_struct_tm" 1>&6
22102 if test $ac_cv_struct_tm = sys/time.h; then
22103 cat >> confdefs.h <<\EOF
22104 #define TM_IN_SYS_TIME 1
22109 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
22110 echo "configure:22111: checking for uid_t in sys/types.h" >&5
22111 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
22112 echo $ac_n "(cached) $ac_c" 1>&6
22114 cat > conftest.$ac_ext <<EOF
22115 #line 22116 "configure"
22116 #include "confdefs.h"
22117 #include <sys/types.h>
22119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22120 egrep "uid_t" >/dev/null 2>&1; then
22122 ac_cv_type_uid_t=yes
22125 ac_cv_type_uid_t=no
22131 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
22132 if test $ac_cv_type_uid_t = no; then
22133 cat >> confdefs.h <<\EOF
22137 cat >> confdefs.h <<\EOF
22143 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
22144 echo "configure:22145: checking for sig_atomic_t" >&5
22145 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
22146 echo $ac_n "(cached) $ac_c" 1>&6
22148 cat > conftest.$ac_ext <<EOF
22149 #line 22150 "configure"
22150 #include "confdefs.h"
22151 #include <signal.h>
22153 sig_atomic_t atomic;
22156 if { (eval echo configure:22157: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22158 ol_cv_type_sig_atomic_t=yes
22160 echo "configure: failed program was:" >&5
22161 cat conftest.$ac_ext >&5
22163 ol_cv_type_sig_atomic_t=no
22168 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
22169 if test $ol_cv_type_sig_atomic_t = no; then
22170 cat >> confdefs.h <<\EOF
22171 #define sig_atomic_t int
22178 # test for pw_gecos in struct passwd
22179 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
22180 echo "configure:22181: checking struct passwd for pw_gecos" >&5
22181 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
22182 echo $ac_n "(cached) $ac_c" 1>&6
22185 cat > conftest.$ac_ext <<EOF
22186 #line 22187 "configure"
22187 #include "confdefs.h"
22192 pwd.pw_gecos = pwd.pw_name;
22196 if { (eval echo configure:22197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22198 ol_cv_struct_passwd_pw_gecos=yes
22200 echo "configure: failed program was:" >&5
22201 cat conftest.$ac_ext >&5
22203 ol_cv_struct_passwd_pw_gecos=no
22208 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
22209 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
22210 cat >> confdefs.h <<\EOF
22211 #define HAVE_PW_GECOS 1
22216 # test for pw_passwd in struct passwd
22217 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
22218 echo "configure:22219: checking struct passwd for pw_passwd" >&5
22219 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
22220 echo $ac_n "(cached) $ac_c" 1>&6
22223 cat > conftest.$ac_ext <<EOF
22224 #line 22225 "configure"
22225 #include "confdefs.h"
22230 pwd.pw_passwd = pwd.pw_name;
22234 if { (eval echo configure:22235: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22236 ol_cv_struct_passwd_pw_passwd=yes
22238 echo "configure: failed program was:" >&5
22239 cat conftest.$ac_ext >&5
22241 ol_cv_struct_passwd_pw_passwd=no
22246 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
22247 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
22248 cat >> confdefs.h <<\EOF
22249 #define HAVE_PW_PASSWD 1
22255 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
22256 echo "configure:22257: checking if toupper() requires islower()" >&5
22257 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
22258 echo $ac_n "(cached) $ac_c" 1>&6
22261 if test "$cross_compiling" = yes; then
22262 ol_cv_c_upper_lower=safe
22264 cat > conftest.$ac_ext <<EOF
22265 #line 22266 "configure"
22266 #include "confdefs.h"
22271 if ('C' == toupper('C'))
22277 if { (eval echo configure:22278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22279 ol_cv_c_upper_lower=no
22281 echo "configure: failed program was:" >&5
22282 cat conftest.$ac_ext >&5
22284 ol_cv_c_upper_lower=yes
22291 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
22292 if test $ol_cv_c_upper_lower != no ; then
22293 cat >> confdefs.h <<\EOF
22294 #define C_UPPER_LOWER 1
22299 echo $ac_n "checking for working const""... $ac_c" 1>&6
22300 echo "configure:22301: checking for working const" >&5
22301 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
22302 echo $ac_n "(cached) $ac_c" 1>&6
22304 cat > conftest.$ac_ext <<EOF
22305 #line 22306 "configure"
22306 #include "confdefs.h"
22310 /* Ultrix mips cc rejects this. */
22311 typedef int charset[2]; const charset x;
22312 /* SunOS 4.1.1 cc rejects this. */
22313 char const *const *ccp;
22315 /* NEC SVR4.0.2 mips cc rejects this. */
22316 struct point {int x, y;};
22317 static struct point const zero = {0,0};
22318 /* AIX XL C 1.02.0.0 rejects this.
22319 It does not let you subtract one const X* pointer from another in an arm
22320 of an if-expression whose if-part is not a constant expression */
22321 const char *g = "string";
22322 ccp = &g + (g ? g-g : 0);
22323 /* HPUX 7.0 cc rejects these. */
22326 ccp = (char const *const *) p;
22327 { /* SCO 3.2v4 cc rejects this. */
22329 char const *s = 0 ? (char *) 0 : (char const *) 0;
22333 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22334 int x[] = {25, 17};
22335 const int *foo = &x[0];
22338 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22339 typedef const int *iptr;
22343 { /* AIX XL C 1.02.0.0 rejects this saying
22344 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22345 struct s { int j; const int *ap[3]; };
22346 struct s *b; b->j = 5;
22348 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22349 const int foo = 10;
22354 if { (eval echo configure:22355: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22358 echo "configure: failed program was:" >&5
22359 cat conftest.$ac_ext >&5
22366 echo "$ac_t""$ac_cv_c_const" 1>&6
22367 if test $ac_cv_c_const = no; then
22368 cat >> confdefs.h <<\EOF
22374 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
22375 echo "configure:22376: checking if compiler understands volatile" >&5
22376 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
22377 echo $ac_n "(cached) $ac_c" 1>&6
22379 cat > conftest.$ac_ext <<EOF
22380 #line 22381 "configure"
22381 #include "confdefs.h"
22384 volatile int a; int * volatile b = x ? &y : &z;
22385 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
22389 if { (eval echo configure:22390: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22391 ol_cv_c_volatile=yes
22393 echo "configure: failed program was:" >&5
22394 cat conftest.$ac_ext >&5
22396 ol_cv_c_volatile=no
22401 echo "$ac_t""$ol_cv_c_volatile" 1>&6
22402 if test $ol_cv_c_volatile = yes; then
22405 cat >> confdefs.h <<\EOF
22412 if test $cross_compiling = yes ; then
22413 echo "configure: warning: Crossing compiling... all bets are off!" 1>&2
22414 cat >> confdefs.h <<\EOF
22415 #define CROSS_COMPILING 1
22419 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
22420 echo "configure:22421: checking whether byte ordering is bigendian" >&5
22421 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
22422 echo $ac_n "(cached) $ac_c" 1>&6
22424 ac_cv_c_bigendian=unknown
22425 # See if sys/param.h defines the BYTE_ORDER macro.
22426 cat > conftest.$ac_ext <<EOF
22427 #line 22428 "configure"
22428 #include "confdefs.h"
22429 #include <sys/types.h>
22430 #include <sys/param.h>
22433 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
22434 bogus endian macros
22438 if { (eval echo configure:22439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22440 # It does; now see whether it defined to BIG_ENDIAN or not.
22441 cat > conftest.$ac_ext <<EOF
22442 #line 22443 "configure"
22443 #include "confdefs.h"
22444 #include <sys/types.h>
22445 #include <sys/param.h>
22448 #if BYTE_ORDER != BIG_ENDIAN
22453 if { (eval echo configure:22454: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22455 ac_cv_c_bigendian=yes
22457 echo "configure: failed program was:" >&5
22458 cat conftest.$ac_ext >&5
22460 ac_cv_c_bigendian=no
22464 echo "configure: failed program was:" >&5
22465 cat conftest.$ac_ext >&5
22468 if test $ac_cv_c_bigendian = unknown; then
22469 if test "$cross_compiling" = yes; then
22470 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
22472 cat > conftest.$ac_ext <<EOF
22473 #line 22474 "configure"
22474 #include "confdefs.h"
22476 /* Are we little or big endian? From Harbison&Steele. */
22480 char c[sizeof (long)];
22483 exit (u.c[sizeof (long) - 1] == 1);
22486 if { (eval echo configure:22487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22488 ac_cv_c_bigendian=no
22490 echo "configure: failed program was:" >&5
22491 cat conftest.$ac_ext >&5
22493 ac_cv_c_bigendian=yes
22501 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
22502 if test $ac_cv_c_bigendian = yes; then
22503 cat >> confdefs.h <<\EOF
22504 #define WORDS_BIGENDIAN 1
22511 echo $ac_n "checking size of short""... $ac_c" 1>&6
22512 echo "configure:22513: checking size of short" >&5
22513 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
22514 echo $ac_n "(cached) $ac_c" 1>&6
22516 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22517 cat > conftest.$ac_ext <<EOF
22518 #line 22519 "configure"
22519 #include "confdefs.h"
22520 #include "confdefs.h"
22521 #include <sys/types.h>
22525 switch (0) case 0: case (sizeof (short) == $ac_size):;
22528 if { (eval echo configure:22529: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22530 ac_cv_sizeof_short=$ac_size
22532 echo "configure: failed program was:" >&5
22533 cat conftest.$ac_ext >&5
22536 if test x$ac_cv_sizeof_short != x ; then break; fi
22541 if test x$ac_cv_sizeof_short = x ; then
22542 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
22544 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
22545 cat >> confdefs.h <<EOF
22546 #define SIZEOF_SHORT $ac_cv_sizeof_short
22550 echo $ac_n "checking size of int""... $ac_c" 1>&6
22551 echo "configure:22552: checking size of int" >&5
22552 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
22553 echo $ac_n "(cached) $ac_c" 1>&6
22555 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22556 cat > conftest.$ac_ext <<EOF
22557 #line 22558 "configure"
22558 #include "confdefs.h"
22559 #include "confdefs.h"
22560 #include <sys/types.h>
22564 switch (0) case 0: case (sizeof (int) == $ac_size):;
22567 if { (eval echo configure:22568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22569 ac_cv_sizeof_int=$ac_size
22571 echo "configure: failed program was:" >&5
22572 cat conftest.$ac_ext >&5
22575 if test x$ac_cv_sizeof_int != x ; then break; fi
22580 if test x$ac_cv_sizeof_int = x ; then
22581 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
22583 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
22584 cat >> confdefs.h <<EOF
22585 #define SIZEOF_INT $ac_cv_sizeof_int
22589 echo $ac_n "checking size of long""... $ac_c" 1>&6
22590 echo "configure:22591: checking size of long" >&5
22591 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
22592 echo $ac_n "(cached) $ac_c" 1>&6
22594 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
22595 cat > conftest.$ac_ext <<EOF
22596 #line 22597 "configure"
22597 #include "confdefs.h"
22598 #include "confdefs.h"
22599 #include <sys/types.h>
22603 switch (0) case 0: case (sizeof (long) == $ac_size):;
22606 if { (eval echo configure:22607: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22608 ac_cv_sizeof_long=$ac_size
22610 echo "configure: failed program was:" >&5
22611 cat conftest.$ac_ext >&5
22614 if test x$ac_cv_sizeof_long != x ; then break; fi
22619 if test x$ac_cv_sizeof_long = x ; then
22620 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
22622 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
22623 cat >> confdefs.h <<EOF
22624 #define SIZEOF_LONG $ac_cv_sizeof_long
22629 if test "$ac_cv_sizeof_int" -lt 4 ; then
22630 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
22632 cat >> confdefs.h <<\EOF
22633 #define LBER_INT_T long
22637 cat >> confdefs.h <<\EOF
22638 #define LBER_INT_T int
22643 cat >> confdefs.h <<\EOF
22644 #define LBER_LEN_T long
22647 cat >> confdefs.h <<\EOF
22648 #define LBER_SOCKET_T int
22651 cat >> confdefs.h <<\EOF
22652 #define LBER_TAG_T long
22656 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
22657 echo "configure:22658: checking for 8-bit clean memcmp" >&5
22658 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
22659 echo $ac_n "(cached) $ac_c" 1>&6
22661 if test "$cross_compiling" = yes; then
22662 ac_cv_func_memcmp_clean=no
22664 cat > conftest.$ac_ext <<EOF
22665 #line 22666 "configure"
22666 #include "confdefs.h"
22670 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22671 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
22675 if { (eval echo configure:22676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
22677 ac_cv_func_memcmp_clean=yes
22679 echo "configure: failed program was:" >&5
22680 cat conftest.$ac_ext >&5
22682 ac_cv_func_memcmp_clean=no
22689 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
22690 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
22692 echo $ac_n "checking for strftime""... $ac_c" 1>&6
22693 echo "configure:22694: checking for strftime" >&5
22694 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
22695 echo $ac_n "(cached) $ac_c" 1>&6
22697 cat > conftest.$ac_ext <<EOF
22698 #line 22699 "configure"
22699 #include "confdefs.h"
22700 /* System header to define __stub macros and hopefully few prototypes,
22701 which can conflict with char strftime(); below. */
22702 #include <assert.h>
22703 /* Override any gcc2 internal prototype to avoid an error. */
22704 /* We use char because int might match the return type of a gcc2
22705 builtin and then its argument prototype would still apply. */
22711 /* The GNU C library defines this for functions which it implements
22712 to always fail with ENOSYS. Some functions are actually named
22713 something starting with __ and the normal name is an alias. */
22714 #if defined (__stub_strftime) || defined (__stub___strftime)
22722 if { (eval echo configure:22723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22724 eval "ac_cv_func_strftime=yes"
22726 echo "configure: failed program was:" >&5
22727 cat conftest.$ac_ext >&5
22729 eval "ac_cv_func_strftime=no"
22734 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
22735 echo "$ac_t""yes" 1>&6
22736 cat >> confdefs.h <<\EOF
22737 #define HAVE_STRFTIME 1
22741 echo "$ac_t""no" 1>&6
22742 # strftime is in -lintl on SCO UNIX.
22743 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
22744 echo "configure:22745: checking for strftime in -lintl" >&5
22745 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
22746 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22747 echo $ac_n "(cached) $ac_c" 1>&6
22749 ac_save_LIBS="$LIBS"
22750 LIBS="-lintl $LIBS"
22751 cat > conftest.$ac_ext <<EOF
22752 #line 22753 "configure"
22753 #include "confdefs.h"
22754 /* Override any gcc2 internal prototype to avoid an error. */
22755 /* We use char because int might match the return type of a gcc2
22756 builtin and then its argument prototype would still apply. */
22763 if { (eval echo configure:22764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22765 eval "ac_cv_lib_$ac_lib_var=yes"
22767 echo "configure: failed program was:" >&5
22768 cat conftest.$ac_ext >&5
22770 eval "ac_cv_lib_$ac_lib_var=no"
22773 LIBS="$ac_save_LIBS"
22776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22777 echo "$ac_t""yes" 1>&6
22778 cat >> confdefs.h <<\EOF
22779 #define HAVE_STRFTIME 1
22782 LIBS="-lintl $LIBS"
22784 echo "$ac_t""no" 1>&6
22790 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
22791 echo "configure:22792: checking for inet_aton()" >&5
22792 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
22793 echo $ac_n "(cached) $ac_c" 1>&6
22795 cat > conftest.$ac_ext <<EOF
22796 #line 22797 "configure"
22797 #include "confdefs.h"
22799 #ifdef HAVE_SYS_TYPES_H
22800 # include <sys/types.h>
22802 #ifdef HAVE_SYS_SOCKET_H
22803 # include <sys/socket.h>
22804 # ifdef HAVE_SYS_SELECT_H
22805 # include <sys/select.h>
22807 # include <netinet/in.h>
22808 # ifdef HAVE_ARPA_INET_H
22809 # include <arpa/inet.h>
22815 int rc = inet_aton( "255.255.255.255", &in );
22818 if { (eval echo configure:22819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22820 ol_cv_func_inet_aton=yes
22822 echo "configure: failed program was:" >&5
22823 cat conftest.$ac_ext >&5
22825 ol_cv_func_inet_aton=no
22830 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
22831 if test $ol_cv_func_inet_aton != no; then
22832 cat >> confdefs.h <<\EOF
22833 #define HAVE_INET_ATON 1
22839 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
22840 echo "configure:22841: checking for _spawnlp" >&5
22841 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
22842 echo $ac_n "(cached) $ac_c" 1>&6
22844 cat > conftest.$ac_ext <<EOF
22845 #line 22846 "configure"
22846 #include "confdefs.h"
22847 /* System header to define __stub macros and hopefully few prototypes,
22848 which can conflict with char _spawnlp(); below. */
22849 #include <assert.h>
22850 /* Override any gcc2 internal prototype to avoid an error. */
22851 /* We use char because int might match the return type of a gcc2
22852 builtin and then its argument prototype would still apply. */
22858 /* The GNU C library defines this for functions which it implements
22859 to always fail with ENOSYS. Some functions are actually named
22860 something starting with __ and the normal name is an alias. */
22861 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
22869 if { (eval echo configure:22870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22871 eval "ac_cv_func__spawnlp=yes"
22873 echo "configure: failed program was:" >&5
22874 cat conftest.$ac_ext >&5
22876 eval "ac_cv_func__spawnlp=no"
22881 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
22882 echo "$ac_t""yes" 1>&6
22883 cat >> confdefs.h <<\EOF
22884 #define HAVE_SPAWNLP 1
22888 echo "$ac_t""no" 1>&6
22892 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
22893 echo "configure:22894: checking for _snprintf" >&5
22894 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
22895 echo $ac_n "(cached) $ac_c" 1>&6
22897 cat > conftest.$ac_ext <<EOF
22898 #line 22899 "configure"
22899 #include "confdefs.h"
22900 /* System header to define __stub macros and hopefully few prototypes,
22901 which can conflict with char _snprintf(); below. */
22902 #include <assert.h>
22903 /* Override any gcc2 internal prototype to avoid an error. */
22904 /* We use char because int might match the return type of a gcc2
22905 builtin and then its argument prototype would still apply. */
22911 /* The GNU C library defines this for functions which it implements
22912 to always fail with ENOSYS. Some functions are actually named
22913 something starting with __ and the normal name is an alias. */
22914 #if defined (__stub__snprintf) || defined (__stub____snprintf)
22922 if { (eval echo configure:22923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22924 eval "ac_cv_func__snprintf=yes"
22926 echo "configure: failed program was:" >&5
22927 cat conftest.$ac_ext >&5
22929 eval "ac_cv_func__snprintf=no"
22934 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
22935 echo "$ac_t""yes" 1>&6
22936 ac_cv_func_snprintf=yes
22937 cat >> confdefs.h <<\EOF
22938 #define snprintf _snprintf
22943 echo "$ac_t""no" 1>&6
22947 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
22948 echo "configure:22949: checking for _vsnprintf" >&5
22949 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
22950 echo $ac_n "(cached) $ac_c" 1>&6
22952 cat > conftest.$ac_ext <<EOF
22953 #line 22954 "configure"
22954 #include "confdefs.h"
22955 /* System header to define __stub macros and hopefully few prototypes,
22956 which can conflict with char _vsnprintf(); below. */
22957 #include <assert.h>
22958 /* Override any gcc2 internal prototype to avoid an error. */
22959 /* We use char because int might match the return type of a gcc2
22960 builtin and then its argument prototype would still apply. */
22966 /* The GNU C library defines this for functions which it implements
22967 to always fail with ENOSYS. Some functions are actually named
22968 something starting with __ and the normal name is an alias. */
22969 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
22977 if { (eval echo configure:22978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22979 eval "ac_cv_func__vsnprintf=yes"
22981 echo "configure: failed program was:" >&5
22982 cat conftest.$ac_ext >&5
22984 eval "ac_cv_func__vsnprintf=no"
22989 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
22990 echo "$ac_t""yes" 1>&6
22991 ac_cv_func_vsnprintf=yes
22992 cat >> confdefs.h <<\EOF
22993 #define vsnprintf _vsnprintf
22998 echo "$ac_t""no" 1>&6
23002 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
23003 echo "configure:23004: checking for vprintf" >&5
23004 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
23005 echo $ac_n "(cached) $ac_c" 1>&6
23007 cat > conftest.$ac_ext <<EOF
23008 #line 23009 "configure"
23009 #include "confdefs.h"
23010 /* System header to define __stub macros and hopefully few prototypes,
23011 which can conflict with char vprintf(); below. */
23012 #include <assert.h>
23013 /* Override any gcc2 internal prototype to avoid an error. */
23014 /* We use char because int might match the return type of a gcc2
23015 builtin and then its argument prototype would still apply. */
23021 /* The GNU C library defines this for functions which it implements
23022 to always fail with ENOSYS. Some functions are actually named
23023 something starting with __ and the normal name is an alias. */
23024 #if defined (__stub_vprintf) || defined (__stub___vprintf)
23032 if { (eval echo configure:23033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23034 eval "ac_cv_func_vprintf=yes"
23036 echo "configure: failed program was:" >&5
23037 cat conftest.$ac_ext >&5
23039 eval "ac_cv_func_vprintf=no"
23044 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
23045 echo "$ac_t""yes" 1>&6
23046 cat >> confdefs.h <<\EOF
23047 #define HAVE_VPRINTF 1
23051 echo "$ac_t""no" 1>&6
23054 if test "$ac_cv_func_vprintf" != yes; then
23055 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
23056 echo "configure:23057: checking for _doprnt" >&5
23057 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
23058 echo $ac_n "(cached) $ac_c" 1>&6
23060 cat > conftest.$ac_ext <<EOF
23061 #line 23062 "configure"
23062 #include "confdefs.h"
23063 /* System header to define __stub macros and hopefully few prototypes,
23064 which can conflict with char _doprnt(); below. */
23065 #include <assert.h>
23066 /* Override any gcc2 internal prototype to avoid an error. */
23067 /* We use char because int might match the return type of a gcc2
23068 builtin and then its argument prototype would still apply. */
23074 /* The GNU C library defines this for functions which it implements
23075 to always fail with ENOSYS. Some functions are actually named
23076 something starting with __ and the normal name is an alias. */
23077 #if defined (__stub__doprnt) || defined (__stub____doprnt)
23085 if { (eval echo configure:23086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23087 eval "ac_cv_func__doprnt=yes"
23089 echo "configure: failed program was:" >&5
23090 cat conftest.$ac_ext >&5
23092 eval "ac_cv_func__doprnt=no"
23097 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
23098 echo "$ac_t""yes" 1>&6
23099 cat >> confdefs.h <<\EOF
23100 #define HAVE_DOPRNT 1
23104 echo "$ac_t""no" 1>&6
23110 if test $ac_cv_func_vprintf = yes ; then
23111 for ac_func in snprintf vsnprintf
23113 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23114 echo "configure:23115: checking for $ac_func" >&5
23115 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23116 echo $ac_n "(cached) $ac_c" 1>&6
23118 cat > conftest.$ac_ext <<EOF
23119 #line 23120 "configure"
23120 #include "confdefs.h"
23121 /* System header to define __stub macros and hopefully few prototypes,
23122 which can conflict with char $ac_func(); below. */
23123 #include <assert.h>
23124 /* Override any gcc2 internal prototype to avoid an error. */
23125 /* We use char because int might match the return type of a gcc2
23126 builtin and then its argument prototype would still apply. */
23132 /* The GNU C library defines this for functions which it implements
23133 to always fail with ENOSYS. Some functions are actually named
23134 something starting with __ and the normal name is an alias. */
23135 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23143 if { (eval echo configure:23144: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23145 eval "ac_cv_func_$ac_func=yes"
23147 echo "configure: failed program was:" >&5
23148 cat conftest.$ac_ext >&5
23150 eval "ac_cv_func_$ac_func=no"
23155 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23156 echo "$ac_t""yes" 1>&6
23157 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23158 cat >> confdefs.h <<EOF
23159 #define $ac_tr_func 1
23163 echo "$ac_t""no" 1>&6
23228 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23229 echo "configure:23230: checking for $ac_func" >&5
23230 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23231 echo $ac_n "(cached) $ac_c" 1>&6
23233 cat > conftest.$ac_ext <<EOF
23234 #line 23235 "configure"
23235 #include "confdefs.h"
23236 /* System header to define __stub macros and hopefully few prototypes,
23237 which can conflict with char $ac_func(); below. */
23238 #include <assert.h>
23239 /* Override any gcc2 internal prototype to avoid an error. */
23240 /* We use char because int might match the return type of a gcc2
23241 builtin and then its argument prototype would still apply. */
23247 /* The GNU C library defines this for functions which it implements
23248 to always fail with ENOSYS. Some functions are actually named
23249 something starting with __ and the normal name is an alias. */
23250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23258 if { (eval echo configure:23259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23260 eval "ac_cv_func_$ac_func=yes"
23262 echo "configure: failed program was:" >&5
23263 cat conftest.$ac_ext >&5
23265 eval "ac_cv_func_$ac_func=no"
23270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23271 echo "$ac_t""yes" 1>&6
23272 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23273 cat >> confdefs.h <<EOF
23274 #define $ac_tr_func 1
23278 echo "$ac_t""no" 1>&6
23283 for ac_func in getopt getpeereid
23285 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
23286 echo "configure:23287: checking for $ac_func" >&5
23287 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
23288 echo $ac_n "(cached) $ac_c" 1>&6
23290 cat > conftest.$ac_ext <<EOF
23291 #line 23292 "configure"
23292 #include "confdefs.h"
23293 /* System header to define __stub macros and hopefully few prototypes,
23294 which can conflict with char $ac_func(); below. */
23295 #include <assert.h>
23296 /* Override any gcc2 internal prototype to avoid an error. */
23297 /* We use char because int might match the return type of a gcc2
23298 builtin and then its argument prototype would still apply. */
23304 /* The GNU C library defines this for functions which it implements
23305 to always fail with ENOSYS. Some functions are actually named
23306 something starting with __ and the normal name is an alias. */
23307 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23315 if { (eval echo configure:23316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23317 eval "ac_cv_func_$ac_func=yes"
23319 echo "configure: failed program was:" >&5
23320 cat conftest.$ac_ext >&5
23322 eval "ac_cv_func_$ac_func=no"
23327 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
23328 echo "$ac_t""yes" 1>&6
23329 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23330 cat >> confdefs.h <<EOF
23331 #define $ac_tr_func 1
23335 echo "$ac_t""no" 1>&6
23336 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
23342 if test "$ac_cv_func_getopt" != yes; then
23343 LIBSRCS="$LIBSRCS getopt.c"
23345 if test "$ac_cv_func_getpeereid" != yes; then
23346 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
23347 echo "configure:23348: checking for msg_accrights in msghdr" >&5
23348 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
23349 echo $ac_n "(cached) $ac_c" 1>&6
23351 cat > conftest.$ac_ext <<EOF
23352 #line 23353 "configure"
23353 #include "confdefs.h"
23354 #include <sys/socket.h>
23356 struct msghdr m; m.msg_accrightslen=0
23359 if { (eval echo configure:23360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23361 ol_cv_msghdr_msg_accrights=yes
23363 echo "configure: failed program was:" >&5
23364 cat conftest.$ac_ext >&5
23366 ol_cv_msghdr_msg_accrights=no
23372 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
23373 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
23374 cat >> confdefs.h <<\EOF
23375 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
23380 LIBSRCS="$LIBSRCS getpeereid.c"
23382 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
23383 if test "$ac_cv_func_snprintf" != yes; then
23384 cat >> confdefs.h <<\EOF
23385 #define snprintf ber_pvt_snprintf
23389 if test "$ac_cv_func_vsnprintf" != yes; then
23390 cat >> confdefs.h <<\EOF
23391 #define vsnprintf ber_pvt_vsnprintf
23397 # Check Configuration
23398 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
23399 echo "configure:23400: checking declaration of sys_errlist" >&5
23400 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
23401 echo $ac_n "(cached) $ac_c" 1>&6
23404 cat > conftest.$ac_ext <<EOF
23405 #line 23406 "configure"
23406 #include "confdefs.h"
23409 #include <sys/types.h>
23412 #include <stdlib.h>
23415 char *c = (char *) *sys_errlist
23418 if { (eval echo configure:23419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23420 ol_cv_dcl_sys_errlist=yes
23421 ol_cv_have_sys_errlist=yes
23423 echo "configure: failed program was:" >&5
23424 cat conftest.$ac_ext >&5
23426 ol_cv_dcl_sys_errlist=no
23431 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
23433 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
23434 if test $ol_cv_dcl_sys_errlist = no ; then
23435 cat >> confdefs.h <<\EOF
23436 #define DECL_SYS_ERRLIST 1
23440 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
23441 echo "configure:23442: checking existence of sys_errlist" >&5
23442 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
23443 echo $ac_n "(cached) $ac_c" 1>&6
23446 cat > conftest.$ac_ext <<EOF
23447 #line 23448 "configure"
23448 #include "confdefs.h"
23451 char *c = (char *) *sys_errlist
23454 if { (eval echo configure:23455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23456 ol_cv_have_sys_errlist=yes
23458 echo "configure: failed program was:" >&5
23459 cat conftest.$ac_ext >&5
23461 ol_cv_have_sys_errlist=no
23466 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
23468 if test $ol_cv_have_sys_errlist = yes ; then
23469 cat >> confdefs.h <<\EOF
23470 #define HAVE_SYS_ERRLIST 1
23477 if test "$ol_enable_slapi" != no ; then
23478 for ac_hdr in ltdl.h
23480 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
23481 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
23482 echo "configure:23483: checking for $ac_hdr" >&5
23483 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
23484 echo $ac_n "(cached) $ac_c" 1>&6
23486 cat > conftest.$ac_ext <<EOF
23487 #line 23488 "configure"
23488 #include "confdefs.h"
23491 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
23492 { (eval echo configure:23493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
23493 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
23494 if test -z "$ac_err"; then
23496 eval "ac_cv_header_$ac_safe=yes"
23499 echo "configure: failed program was:" >&5
23500 cat conftest.$ac_ext >&5
23502 eval "ac_cv_header_$ac_safe=no"
23506 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
23507 echo "$ac_t""yes" 1>&6
23508 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
23509 cat >> confdefs.h <<EOF
23510 #define $ac_tr_hdr 1
23514 echo "$ac_t""no" 1>&6
23519 if test $ac_cv_header_ltdl_h != yes ; then
23520 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
23522 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
23523 echo "configure:23524: checking for lt_dlinit in -lltdl" >&5
23524 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
23525 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
23526 echo $ac_n "(cached) $ac_c" 1>&6
23528 ac_save_LIBS="$LIBS"
23529 LIBS="-lltdl $LIBS"
23530 cat > conftest.$ac_ext <<EOF
23531 #line 23532 "configure"
23532 #include "confdefs.h"
23533 /* Override any gcc2 internal prototype to avoid an error. */
23534 /* We use char because int might match the return type of a gcc2
23535 builtin and then its argument prototype would still apply. */
23542 if { (eval echo configure:23543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23544 eval "ac_cv_lib_$ac_lib_var=yes"
23546 echo "configure: failed program was:" >&5
23547 cat conftest.$ac_ext >&5
23549 eval "ac_cv_lib_$ac_lib_var=no"
23552 LIBS="$ac_save_LIBS"
23555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
23556 echo "$ac_t""yes" 1>&6
23559 LIBSLAPI=libslapi.a
23560 LIBSLAPITOOLS=../libslapi.a
23561 cat >> confdefs.h <<\EOF
23562 #define HAVE_LIBLTDL 1
23567 echo "$ac_t""no" 1>&6
23568 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
23572 cat >> confdefs.h <<\EOF
23573 #define LDAP_SLAPI 1
23578 if test "$ol_enable_debug" != no ; then
23579 cat >> confdefs.h <<\EOF
23580 #define LDAP_DEBUG 1
23584 if test "$ol_enable_syslog" = yes ; then
23585 cat >> confdefs.h <<\EOF
23586 #define LDAP_SYSLOG 1
23590 if test "$ol_link_kbind" != no ; then
23591 cat >> confdefs.h <<\EOF
23592 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
23596 if test "$ol_enable_proctitle" != no ; then
23597 cat >> confdefs.h <<\EOF
23598 #define LDAP_PROCTITLE 1
23602 if test "$ol_enable_referrals" != no ; then
23603 cat >> confdefs.h <<\EOF
23604 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
23608 if test "$ol_enable_local" != no; then
23609 cat >> confdefs.h <<\EOF
23610 #define LDAP_PF_LOCAL 1
23614 if test "$ol_link_ipv6" != no; then
23615 cat >> confdefs.h <<\EOF
23616 #define LDAP_PF_INET6 1
23620 if test "$ol_enable_cleartext" != no ; then
23621 cat >> confdefs.h <<\EOF
23622 #define SLAPD_CLEARTEXT 1
23626 if test "$ol_enable_crypt" != no ; then
23627 cat >> confdefs.h <<\EOF
23628 #define SLAPD_CRYPT 1
23632 if test "$ol_link_spasswd" != no ; then
23633 cat >> confdefs.h <<\EOF
23634 #define SLAPD_SPASSWD 1
23638 if test "$ol_enable_multimaster" != no ; then
23639 cat >> confdefs.h <<\EOF
23640 #define SLAPD_MULTIMASTER 1
23644 if test "$ol_enable_rlookups" != no ; then
23645 cat >> confdefs.h <<\EOF
23646 #define SLAPD_RLOOKUPS 1
23650 if test "$ol_enable_aci" != no ; then
23651 cat >> confdefs.h <<\EOF
23652 #define SLAPD_ACI_ENABLED 1
23657 if test "$ol_link_modules" != no ; then
23658 cat >> confdefs.h <<\EOF
23659 #define SLAPD_MODULES 1
23663 SLAPD_MODULES_LDFLAGS="-dlopen self"
23666 cat >> confdefs.h <<\EOF
23667 #define SLAPD_MOD_STATIC 1
23670 cat >> confdefs.h <<\EOF
23671 #define SLAPD_MOD_DYNAMIC 2
23675 if test "$ol_enable_bdb" != no ; then
23676 cat >> confdefs.h <<\EOF
23677 #define SLAPD_BDB 1
23682 if test "$ol_with_bdb_module" != static ; then
23683 cat >> confdefs.h <<\EOF
23684 #define SLAPD_BDB_DYNAMIC 1
23688 BUILD_BDB_DYNAMIC=shared
23689 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
23691 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
23695 if test "$ol_link_dnssrv" != no ; then
23696 cat >> confdefs.h <<\EOF
23697 #define SLAPD_DNSSRV 1
23702 if test "$ol_with_dnssrv_module" != static ; then
23703 cat >> confdefs.h <<\EOF
23704 #define SLAPD_DNSSRV_DYNAMIC 1
23708 BUILD_DNSSRV_DYNAMIC=shared
23709 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
23711 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
23715 if test "$ol_enable_hdb" != no ; then
23716 cat >> confdefs.h <<\EOF
23717 #define SLAPD_HDB 1
23722 if test "$ol_with_hdb_module" != static ; then
23723 cat >> confdefs.h <<\EOF
23724 #define SLAPD_HDB_DYNAMIC 1
23728 BUILD_HDB_DYNAMIC=shared
23729 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
23731 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
23735 if test "$ol_enable_ldap" != no ; then
23736 cat >> confdefs.h <<\EOF
23737 #define SLAPD_LDAP 1
23742 if test "$ol_with_ldap_module" != static ; then
23743 cat >> confdefs.h <<\EOF
23744 #define SLAPD_LDAP_DYNAMIC 1
23748 BUILD_LDAP_DYNAMIC=shared
23749 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
23751 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
23755 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
23756 cat >> confdefs.h <<\EOF
23757 #define SLAPD_LDBM 1
23762 if test "$ol_with_ldbm_module" != static ; then
23763 cat >> confdefs.h <<\EOF
23764 #define SLAPD_LDBM_DYNAMIC 1
23768 BUILD_LDBM_DYNAMIC=shared
23769 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
23771 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
23775 if test "$ol_enable_meta" != no ; then
23776 cat >> confdefs.h <<\EOF
23777 #define SLAPD_META 1
23783 if test "$ol_with_meta_module" != static ; then
23784 cat >> confdefs.h <<\EOF
23785 #define SLAPD_META_DYNAMIC 1
23789 BUILD_META_DYNAMIC=shared
23790 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
23792 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
23796 if test "$ol_enable_monitor" != no ; then
23797 cat >> confdefs.h <<\EOF
23798 #define SLAPD_MONITOR 1
23803 if test "$ol_with_monitor_module" != static ; then
23804 cat >> confdefs.h <<\EOF
23805 #define SLAPD_MONITOR_DYNAMIC 1
23809 BUILD_MONITOR_DYNAMIC=shared
23810 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
23812 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
23816 if test "$ol_enable_null" != no ; then
23817 cat >> confdefs.h <<\EOF
23818 #define SLAPD_NULL 1
23823 if test "$ol_with_null_module" != static ; then
23824 cat >> confdefs.h <<\EOF
23825 #define SLAPD_NULL_DYNAMIC 1
23829 BUILD_NULL_DYNAMIC=shared
23830 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
23832 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
23836 if test "$ol_enable_passwd" != no ; then
23837 cat >> confdefs.h <<\EOF
23838 #define SLAPD_PASSWD 1
23843 if test "$ol_with_passwd_module" != static ; then
23844 cat >> confdefs.h <<\EOF
23845 #define SLAPD_PASSWD_DYNAMIC 1
23849 BUILD_PASSWD_DYNAMIC=shared
23850 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
23852 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
23856 if test "$ol_link_perl" != no ; then
23857 cat >> confdefs.h <<\EOF
23858 #define SLAPD_PERL 1
23863 if test "$ol_with_perl_module" != static ; then
23864 cat >> confdefs.h <<\EOF
23865 #define SLAPD_PERL_DYNAMIC 1
23869 BUILD_PERL_DYNAMIC=shared
23870 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
23872 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
23876 if test "$ol_enable_relay" != no ; then
23877 cat >> confdefs.h <<\EOF
23878 #define SLAPD_RELAY 1
23883 if test "$ol_with_relay_module" != static ; then
23884 cat >> confdefs.h <<\EOF
23885 #define SLAPD_RELAY_DYNAMIC 1
23889 BUILD_RELAY_DYNAMIC=shared
23890 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
23892 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
23896 if test "$ol_enable_shell" != no ; then
23897 if test "$ol_link_thread" != no ; then
23898 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
23900 cat >> confdefs.h <<\EOF
23901 #define SLAPD_SHELL 1
23906 if test "$ol_with_shell_module" != static ; then
23907 cat >> confdefs.h <<\EOF
23908 #define SLAPD_SHELL_DYNAMIC 1
23912 BUILD_SHELL_DYNAMIC=shared
23913 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
23915 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
23919 if test "$ol_link_sql" != no ; then
23920 cat >> confdefs.h <<\EOF
23921 #define SLAPD_SQL 1
23926 if test "$ol_with_sql_module" != static; then
23927 cat >> confdefs.h <<\EOF
23928 #define SLAPD_SQL_DYNAMIC 1
23932 BUILD_SQL_DYNAMIC=shared
23933 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
23935 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
23939 if test "$ol_enable_chain" != no ; then
23940 BUILD_CHAIN=$ol_enable_chain
23941 if test "$ol_enable_chain" = mod ; then
23942 MFLAG=SLAPD_MOD_DYNAMIC
23943 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS chain.la"
23945 MFLAG=SLAPD_MOD_STATIC
23947 cat >> confdefs.h <<EOF
23948 #define SLAPD_OVER_CHAIN $MFLAG
23953 if test "$ol_enable_denyop" != no ; then
23954 BUILD_DENYOP=$ol_enable_denyop
23955 if test "$ol_enable_denyop" = mod ; then
23956 MFLAG=SLAPD_MOD_DYNAMIC
23957 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
23959 MFLAG=SLAPD_MOD_STATIC
23961 cat >> confdefs.h <<EOF
23962 #define SLAPD_OVER_DENYOP $MFLAG
23967 if test "$ol_enable_dyngroup" != no ; then
23968 BUILD_DYNGROUP=$ol_enable_dyngroup
23969 if test "$ol_enable_dyngroup" = mod ; then
23970 MFLAG=SLAPD_MOD_DYNAMIC
23971 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
23973 MFLAG=SLAPD_MOD_STATIC
23975 cat >> confdefs.h <<EOF
23976 #define SLAPD_OVER_DYNGROUP $MFLAG
23981 if test "$ol_enable_ppolicy" != no ; then
23982 BUILD_PPOLICY=$ol_enable_ppolicy
23983 if test "$ol_enable_ppolicy" = mod ; then
23984 MFLAG=SLAPD_MOD_DYNAMIC
23985 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
23987 MFLAG=SLAPD_MOD_STATIC
23989 cat >> confdefs.h <<EOF
23990 #define SLAPD_OVER_PPOLICY $MFLAG
23995 if test "$ol_enable_proxycache" != no ; then
23996 BUILD_PROXYCACHE=$ol_enable_proxycache
23997 if test "$ol_enable_proxycache" = mod ; then
23998 MFLAG=SLAPD_MOD_DYNAMIC
23999 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
24001 MFLAG=SLAPD_MOD_STATIC
24003 cat >> confdefs.h <<EOF
24004 #define SLAPD_OVER_PROXYCACHE $MFLAG
24009 if test "$ol_enable_rwm " != no ; then
24011 BUILD_RWM=$ol_enable_rwm
24012 if test "$ol_enable_rwm" = mod ; then
24013 MFLAG=SLAPD_MOD_DYNAMIC
24014 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
24016 MFLAG=SLAPD_MOD_STATIC
24018 cat >> confdefs.h <<EOF
24019 #define SLAPD_OVER_RWM $MFLAG
24024 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
24025 $BUILD_SLAPD = yes ; then
24029 if test "$ol_enable_rewrite" != no ; then
24030 cat >> confdefs.h <<\EOF
24031 #define ENABLE_REWRITE 1
24037 if test "$ol_enable_slapi" != no ; then
24038 cat >> confdefs.h <<\EOF
24039 #define ENABLE_SLAPI 1
24043 SLAPD_SLAPI_DEPEND=libslapi.a
24048 if test "$ac_cv_mingw32" = yes ; then
24050 SLAPD_MODULES_LDFLAGS=
24055 if test -z "$SLAPD_STATIC_BACKENDS"; then
24056 SLAPD_NO_STATIC='#'
24139 # Check whether --with-xxinstall or --without-xxinstall was given.
24140 if test "${with_xxinstall+set}" = set; then
24141 withval="$with_xxinstall"
24149 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
24151 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24152 # Let make expand exec_prefix.
24153 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24155 # Any assignment to VPATH causes Sun make to only execute
24156 # the first set of double-colon rules, so remove it if not needed.
24157 # If there is a colon in the path, we need to keep it.
24158 if test "x$srcdir" = x.; then
24159 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
24162 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
24164 DEFS=-DHAVE_CONFIG_H
24166 # Without the "./", some shells look in PATH for config.status.
24167 : ${CONFIG_STATUS=./config.status}
24169 echo creating $CONFIG_STATUS
24170 rm -f $CONFIG_STATUS
24171 cat > $CONFIG_STATUS <<EOF
24173 # Generated automatically by configure.
24174 # Run this file to recreate the current configuration.
24175 # This directory was configured as follows,
24176 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24178 # $0 $ac_configure_args
24180 # Compiler output produced by configure, useful for debugging
24181 # configure, is in ./config.log if it exists.
24183 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
24186 case "\$ac_option" in
24187 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24188 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
24189 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
24190 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
24191 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
24193 -help | --help | --hel | --he | --h)
24194 echo "\$ac_cs_usage"; exit 0 ;;
24195 *) echo "\$ac_cs_usage"; exit 1 ;;
24199 ac_given_srcdir=$srcdir
24200 ac_given_INSTALL="$INSTALL"
24202 trap 'rm -fr `echo "\
24203 Makefile:build/top.mk:Makefile.in:build/dir.mk \
24204 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
24205 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
24206 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
24207 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
24208 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
24209 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
24210 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
24211 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
24212 include/Makefile:build/top.mk:include/Makefile.in \
24213 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
24214 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
24215 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
24216 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
24217 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
24218 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
24219 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
24220 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
24221 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
24222 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
24223 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24224 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24225 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24226 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24227 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24228 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24229 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24230 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24231 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24232 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
24233 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24234 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24235 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24236 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24237 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
24238 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24239 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24241 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24242 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
24244 cat >> $CONFIG_STATUS <<EOF
24246 # Protect against being on the right side of a sed subst in config.status.
24247 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
24248 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
24252 s%@CFLAGS@%$CFLAGS%g
24253 s%@CPPFLAGS@%$CPPFLAGS%g
24254 s%@CXXFLAGS@%$CXXFLAGS%g
24255 s%@FFLAGS@%$FFLAGS%g
24257 s%@LDFLAGS@%$LDFLAGS%g
24259 s%@exec_prefix@%$exec_prefix%g
24260 s%@prefix@%$prefix%g
24261 s%@program_transform_name@%$program_transform_name%g
24262 s%@bindir@%$bindir%g
24263 s%@sbindir@%$sbindir%g
24264 s%@libexecdir@%$libexecdir%g
24265 s%@datadir@%$datadir%g
24266 s%@sysconfdir@%$sysconfdir%g
24267 s%@sharedstatedir@%$sharedstatedir%g
24268 s%@localstatedir@%$localstatedir%g
24269 s%@libdir@%$libdir%g
24270 s%@includedir@%$includedir%g
24271 s%@oldincludedir@%$oldincludedir%g
24272 s%@infodir@%$infodir%g
24273 s%@mandir@%$mandir%g
24275 s%@host_alias@%$host_alias%g
24276 s%@host_cpu@%$host_cpu%g
24277 s%@host_vendor@%$host_vendor%g
24278 s%@host_os@%$host_os%g
24279 s%@target@%$target%g
24280 s%@target_alias@%$target_alias%g
24281 s%@target_cpu@%$target_cpu%g
24282 s%@target_vendor@%$target_vendor%g
24283 s%@target_os@%$target_os%g
24285 s%@build_alias@%$build_alias%g
24286 s%@build_cpu@%$build_cpu%g
24287 s%@build_vendor@%$build_vendor%g
24288 s%@build_os@%$build_os%g
24289 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
24290 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
24291 s%@INSTALL_DATA@%$INSTALL_DATA%g
24292 s%@PACKAGE@%$PACKAGE%g
24293 s%@VERSION@%$VERSION%g
24294 s%@ACLOCAL@%$ACLOCAL%g
24295 s%@AUTOCONF@%$AUTOCONF%g
24296 s%@AUTOMAKE@%$AUTOMAKE%g
24297 s%@AUTOHEADER@%$AUTOHEADER%g
24298 s%@MAKEINFO@%$MAKEINFO%g
24299 s%@install_sh@%$install_sh%g
24302 s%@AMTARFLAGS@%$AMTARFLAGS%g
24303 s%@SET_MAKE@%$SET_MAKE%g
24304 s%@OPENLDAP_LIBRELEASE@%$OPENLDAP_LIBRELEASE%g
24305 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
24306 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
24307 s%@top_builddir@%$top_builddir%g
24308 s%@ldap_subdir@%$ldap_subdir%g
24312 s%@OBJEXT@%$OBJEXT%g
24313 s%@EXEEXT@%$EXEEXT%g
24315 s%@RANLIB@%$RANLIB%g
24317 s%@DLLTOOL@%$DLLTOOL%g
24319 s%@OBJDUMP@%$OBJDUMP%g
24321 s%@LIBTOOL@%$LIBTOOL%g
24323 s%@PERLBIN@%$PERLBIN%g
24324 s%@OL_MKDEP@%$OL_MKDEP%g
24325 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
24326 s%@LTSTATIC@%$LTSTATIC%g
24327 s%@LIBOBJS@%$LIBOBJS%g
24328 s%@LIBSRCS@%$LIBSRCS%g
24330 s%@WITH_TLS@%$WITH_TLS%g
24331 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
24332 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
24333 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
24334 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
24335 s%@BUILD_BDB@%$BUILD_BDB%g
24336 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
24337 s%@BUILD_HDB@%$BUILD_HDB%g
24338 s%@BUILD_LDAP@%$BUILD_LDAP%g
24339 s%@BUILD_LDBM@%$BUILD_LDBM%g
24340 s%@BUILD_META@%$BUILD_META%g
24341 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
24342 s%@BUILD_NULL@%$BUILD_NULL%g
24343 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
24344 s%@BUILD_RELAY@%$BUILD_RELAY%g
24345 s%@BUILD_PERL@%$BUILD_PERL%g
24346 s%@BUILD_SHELL@%$BUILD_SHELL%g
24347 s%@BUILD_SQL@%$BUILD_SQL%g
24348 s%@BUILD_BDB_DYNAMIC@%$BUILD_BDB_DYNAMIC%g
24349 s%@BUILD_DNSSRV_DYNAMIC@%$BUILD_DNSSRV_DYNAMIC%g
24350 s%@BUILD_HDB_DYNAMIC@%$BUILD_HDB_DYNAMIC%g
24351 s%@BUILD_LDAP_DYNAMIC@%$BUILD_LDAP_DYNAMIC%g
24352 s%@BUILD_LDBM_DYNAMIC@%$BUILD_LDBM_DYNAMIC%g
24353 s%@BUILD_META_DYNAMIC@%$BUILD_META_DYNAMIC%g
24354 s%@BUILD_MONITOR_DYNAMIC@%$BUILD_MONITOR_DYNAMIC%g
24355 s%@BUILD_NULL_DYNAMIC@%$BUILD_NULL_DYNAMIC%g
24356 s%@BUILD_PASSWD_DYNAMIC@%$BUILD_PASSWD_DYNAMIC%g
24357 s%@BUILD_PERL_DYNAMIC@%$BUILD_PERL_DYNAMIC%g
24358 s%@BUILD_RELAY_DYNAMIC@%$BUILD_RELAY_DYNAMIC%g
24359 s%@BUILD_SHELL_DYNAMIC@%$BUILD_SHELL_DYNAMIC%g
24360 s%@BUILD_SQL_DYNAMIC@%$BUILD_SQL_DYNAMIC%g
24361 s%@BUILD_CHAIN@%$BUILD_CHAIN%g
24362 s%@BUILD_DENYOP@%$BUILD_DENYOP%g
24363 s%@BUILD_DYNGROUP@%$BUILD_DYNGROUP%g
24364 s%@BUILD_PPOLICY@%$BUILD_PPOLICY%g
24365 s%@BUILD_PROXYCACHE@%$BUILD_PROXYCACHE%g
24366 s%@BUILD_RWM@%$BUILD_RWM%g
24367 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
24368 s%@LDAP_LIBS@%$LDAP_LIBS%g
24369 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
24370 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
24371 s%@LDBM_LIBS@%$LDBM_LIBS%g
24372 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
24373 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
24374 s%@WRAP_LIBS@%$WRAP_LIBS%g
24375 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
24376 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
24377 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
24378 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
24379 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
24380 s%@SLAPD_DYNAMIC_OVERLAYS@%$SLAPD_DYNAMIC_OVERLAYS%g
24381 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
24382 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
24383 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
24384 s%@KRB4_LIBS@%$KRB4_LIBS%g
24385 s%@KRB5_LIBS@%$KRB5_LIBS%g
24386 s%@SASL_LIBS@%$SASL_LIBS%g
24387 s%@TLS_LIBS@%$TLS_LIBS%g
24388 s%@MODULES_LIBS@%$MODULES_LIBS%g
24389 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
24390 s%@LIBSLAPI@%$LIBSLAPI%g
24391 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
24392 s%@AUTH_LIBS@%$AUTH_LIBS%g
24393 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
24394 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
24395 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
24396 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
24401 cat >> $CONFIG_STATUS <<\EOF
24403 # Split the substitutions into bite-sized pieces for seds with
24404 # small command number limits, like on Digital OSF/1 and HP-UX.
24405 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
24406 ac_file=1 # Number of current file.
24407 ac_beg=1 # First line for current file.
24408 ac_end=$ac_max_sed_cmds # Line after last line for current file.
24411 while $ac_more_lines; do
24412 if test $ac_beg -gt 1; then
24413 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
24415 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
24417 if test ! -s conftest.s$ac_file; then
24418 ac_more_lines=false
24419 rm -f conftest.s$ac_file
24421 if test -z "$ac_sed_cmds"; then
24422 ac_sed_cmds="sed -f conftest.s$ac_file"
24424 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
24426 ac_file=`expr $ac_file + 1`
24428 ac_end=`expr $ac_end + $ac_max_sed_cmds`
24431 if test -z "$ac_sed_cmds"; then
24436 cat >> $CONFIG_STATUS <<EOF
24438 CONFIG_FILES=\${CONFIG_FILES-"\
24439 Makefile:build/top.mk:Makefile.in:build/dir.mk \
24440 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
24441 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
24442 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
24443 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
24444 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
24445 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
24446 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
24447 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
24448 include/Makefile:build/top.mk:include/Makefile.in \
24449 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
24450 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
24451 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
24452 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
24453 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
24454 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
24455 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
24456 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
24457 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
24458 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
24459 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
24460 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
24461 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
24462 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
24463 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
24464 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
24465 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
24466 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
24467 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
24468 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
24469 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
24470 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
24471 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
24472 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
24473 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
24474 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
24475 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
24477 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
24480 cat >> $CONFIG_STATUS <<\EOF
24481 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
24482 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24484 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24485 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24486 *) ac_file_in="${ac_file}.in" ;;
24489 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
24491 # Remove last slash and all that follows it. Not all systems have dirname.
24492 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24493 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24494 # The file is in a subdirectory.
24495 test ! -d "$ac_dir" && mkdir "$ac_dir"
24496 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
24497 # A "../" for each directory in $ac_dir_suffix.
24498 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
24500 ac_dir_suffix= ac_dots=
24503 case "$ac_given_srcdir" in
24505 if test -z "$ac_dots"; then top_srcdir=.
24506 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
24507 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
24508 *) # Relative path.
24509 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
24510 top_srcdir="$ac_dots$ac_given_srcdir" ;;
24513 case "$ac_given_INSTALL" in
24514 [/$]*) INSTALL="$ac_given_INSTALL" ;;
24515 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
24518 echo creating "$ac_file"
24520 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
24522 *[Mm]akefile*) ac_comsub="1i\\
24523 # $configure_input" ;;
24527 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24529 s%@configure_input@%$configure_input%g
24530 s%@srcdir@%$srcdir%g
24531 s%@top_srcdir@%$top_srcdir%g
24532 s%@INSTALL@%$INSTALL%g
24533 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
24537 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24538 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24540 # ac_d sets the value in "#define NAME VALUE" lines.
24541 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24542 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
24545 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
24546 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24547 ac_uB='\([ ]\)%\1#\2define\3'
24550 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24551 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24552 ac_eB='$%\1#\2define\3'
24556 if test "${CONFIG_HEADERS+set}" != set; then
24558 cat >> $CONFIG_STATUS <<EOF
24559 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
24561 cat >> $CONFIG_STATUS <<\EOF
24563 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
24564 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24566 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
24567 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24568 *) ac_file_in="${ac_file}.in" ;;
24571 echo creating $ac_file
24573 rm -f conftest.frag conftest.in conftest.out
24574 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
24575 cat $ac_file_inputs > conftest.in
24579 # Transform confdefs.h into a sed script conftest.vals that substitutes
24580 # the proper values into config.h.in to produce config.h. And first:
24581 # Protect against being on the right side of a sed subst in config.status.
24582 # Protect against being in an unquoted here document in config.status.
24583 rm -f conftest.vals
24584 cat > conftest.hdr <<\EOF
24587 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
24591 sed -n -f conftest.hdr confdefs.h > conftest.vals
24594 # This sed command replaces #undef with comments. This is necessary, for
24595 # example, in the case of _POSIX_SOURCE, which is predefined and required
24596 # on some systems where configure will not decide to define it.
24597 cat >> conftest.vals <<\EOF
24598 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
24601 # Break up conftest.vals because some shells have a limit on
24602 # the size of here documents, and old seds have small limits too.
24604 rm -f conftest.tail
24607 ac_lines=`grep -c . conftest.vals`
24608 # grep -c gives empty output for an empty file on some AIX systems.
24609 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
24610 # Write a limited-size here document to conftest.frag.
24611 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
24612 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
24614 sed -f conftest.frag conftest.in > conftest.out
24616 mv conftest.out conftest.in
24617 ' >> $CONFIG_STATUS
24618 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
24619 rm -f conftest.vals
24620 mv conftest.tail conftest.vals
24622 rm -f conftest.vals
24624 cat >> $CONFIG_STATUS <<\EOF
24625 rm -f conftest.frag conftest.h
24626 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
24627 cat conftest.in >> conftest.h
24629 if cmp -s $ac_file conftest.h 2>/dev/null; then
24630 echo "$ac_file is unchanged"
24633 # Remove last slash and all that follows it. Not all systems have dirname.
24634 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
24635 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
24636 # The file is in a subdirectory.
24637 test ! -d "$ac_dir" && mkdir "$ac_dir"
24640 mv conftest.h $ac_file
24645 cat >> $CONFIG_STATUS <<EOF
24648 cat >> $CONFIG_STATUS <<\EOF
24652 echo Please run \"make depend\" to build dependencies
24656 chmod +x $CONFIG_STATUS
24657 rm -fr confdefs* $ac_clean_files
24658 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1