3 # from OpenLDAP: pkg/ldap/configure.in,v 1.586 2005/08/07 16:08:02 hallvard Exp
5 # This work is part of OpenLDAP Software <http://www.openldap.org/>.
7 # Copyright 1998-2005 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-2005 The OpenLDAP Foundation. All rights reserved."
19 echo " Restrictions apply, see COPYRIGHT and LICENSE files."
21 # Guess values for system-dependent variables and create Makefiles.
22 # Generated automatically using autoconf version 2.13.1
23 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
25 # This configure script is free software; the Free Software Foundation
26 # gives unlimited permission to copy, distribute and modify it.
30 ac_default_prefix=/usr/local
31 # Any additions from configure.in:
32 ac_default_prefix=/usr/local
34 --with-subdir=DIR change default subdirectory used for installs"
36 --enable-debug enable debugging [yes]"
38 --enable-dynamic enable linking built binaries with dynamic libs [no]"
40 --enable-syslog enable syslog support [auto]"
42 --enable-proctitle enable proctitle support [yes]"
44 --enable-ipv6 enable IPv6 support [auto]"
46 --enable-local enable AF_LOCAL (AF_UNIX) socket support [auto]"
48 --with-cyrus-sasl with Cyrus SASL support [auto]"
50 --with-fetch with fetch(3) URL support [auto]"
52 --with-threads with threads [auto]"
54 --with-tls with TLS/SSL support [auto]"
56 --with-yielding-select with implicitly yielding select [auto]"
58 --with-multiple-precision
59 multiple precision support for statistics
60 auto|bignum|gmp [auto]"
63 SLAPD (Standalone LDAP Daemon) Options:"
65 --enable-slapd enable building slapd [yes]"
67 --enable-aci enable per-object ACIs (experimental) [no]"
69 --enable-cleartext enable cleartext passwords [yes]"
71 --enable-crypt enable crypt(3) passwords [no]"
73 --enable-lmpasswd enable LAN Manager passwords [no]"
75 --enable-spasswd enable (Cyrus) SASL password verification [no]"
77 --enable-modules enable dynamic module support [no]"
79 --enable-rewrite enable DN rewriting in back-ldap and rwm overlay [auto]"
81 --enable-rlookups enable reverse lookups of client hostnames [no]"
83 --enable-slapi enable SLAPI support (experimental) [no]"
85 --enable-slp enable SLPv2 support [no]"
87 --enable-wrappers enable tcp wrapper support [no]"
90 SLAPD Backend Options:"
92 --enable-backends enable all available backends no|yes|mod"
94 --enable-bdb enable Berkeley DB backend no|yes|mod [${ol_dflt_backends-yes}]"
96 --enable-dnssrv enable dnssrv backend no|yes|mod [${ol_dflt_backends-no}]"
98 --enable-hdb enable Hierarchical DB backend no|yes|mod [${ol_dflt_backends-yes}]"
100 --enable-ldap enable ldap backend no|yes|mod [${ol_dflt_backends-no}]"
102 --enable-ldbm enable ldbm backend no|yes|mod [${ol_dflt_backends-no}]"
104 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
106 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
108 --enable-meta enable metadirectory backend no|yes|mod [${ol_dflt_backends-no}]"
110 --enable-monitor enable monitor backend no|yes|mod [${ol_dflt_backends-yes}]"
112 --enable-null enable null backend no|yes|mod [${ol_dflt_backends-no}]"
114 --enable-passwd enable passwd backend no|yes|mod [${ol_dflt_backends-no}]"
116 --enable-perl enable perl backend no|yes|mod [${ol_dflt_backends-no}]"
118 --enable-relay enable relay backend no|yes|mod [${ol_dflt_backends-yes}]"
120 --enable-shell enable shell backend no|yes|mod [${ol_dflt_backends-no}]"
122 --enable-sql enable sql backend no|yes|mod [${ol_dflt_backends-no}]"
125 SLAPD Overlay Options:"
127 --enable-overlays enable all available overlays no|yes|mod"
129 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [${ol_dflt_overlays-no}]"
131 --enable-denyop Deny Operation overlay no|yes|mod [${ol_dflt_overlays-no}]"
133 --enable-dyngroup Dynamic Group overlay no|yes|mod [${ol_dflt_overlays-no}]"
135 --enable-dynlist Dynamic List overlay no|yes|mod [${ol_dflt_overlays-no}]"
137 --enable-glue Backend Glue overlay no|yes|mod [${ol_dflt_overlays-yes}]"
139 --enable-lastmod Last Modification overlay no|yes|mod [${ol_dflt_overlays-no}]"
141 --enable-ppolicy Password Policy overlay no|yes|mod [${ol_dflt_overlays-no}]"
143 --enable-proxycache Proxy Cache overlay no|yes|mod [${ol_dflt_overlays-no}]"
145 --enable-refint Referential Integrity overlay no|yes|mod [${ol_dflt_overlays-no}]"
147 --enable-retcode Return Code testing overlay no|yes|mod [${ol_dflt_overlays-no}]"
149 --enable-rwm Rewrite/Remap overlay no|yes|mod [${ol_dflt_overlays-no}]"
151 --enable-syncprov Syncrepl Provider overlay no|yes|mod [${ol_dflt_overlays-yes}]"
153 --enable-translucent Translucent Proxy overlay no|yes|mod [${ol_dflt_overlays-no}]"
155 --enable-unique Attribute Uniqueness overlay no|yes|mod [${ol_dflt_overlays-no}]"
158 SLURPD (Replication Daemon) Options:"
160 --enable-slurpd enable building slurpd [auto]"
163 Library Generation & Linking Options"
165 --enable-static[=PKGS] build static libraries [default=yes]"
167 --enable-shared[=PKGS] build shared libraries [default=yes]"
169 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
171 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
173 # Find the correct PATH separator. Usually this is `:', but
174 # DJGPP uses `;' like DOS.
175 if test "X${PATH_SEPARATOR+set}" != Xset; then
176 UNAME=${UNAME-`uname 2>/dev/null`}
178 *-DOS) lt_cv_sys_path_separator=';' ;;
179 *) lt_cv_sys_path_separator=':' ;;
181 PATH_SEPARATOR=$lt_cv_sys_path_separator
185 # Check that we are running under the correct shell.
186 SHELL=${CONFIG_SHELL-/bin/sh}
190 # Remove one level of quotation (which was required for Make).
191 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
196 if test "X$1" = X--no-reexec; then
197 # Discard the --no-reexec flag, and continue.
199 elif test "X$1" = X--fallback-echo; then
200 # Avoid inline document here, it may be left over
202 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
203 # Yippee, $echo works!
206 # Restart under the correct shell.
207 exec $SHELL "$0" --no-reexec ${1+"$@"}
210 if test "X$1" = X--fallback-echo; then
211 # used as fallback echo
219 # The HP-UX ksh and POSIX shell print the target directory to stdout
221 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
223 if test -z "$ECHO"; then
224 if test "X${echo_test_string+set}" != Xset; then
225 # find a string as large as possible, as long as the shell can cope with it
226 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
227 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
228 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
229 echo_test_string="`eval $cmd`" &&
230 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
237 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
238 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
239 test "X$echo_testing_string" = "X$echo_test_string"; then
242 # The Solaris, AIX, and Digital Unix default echo programs unquote
243 # backslashes. This makes it impossible to quote backslashes using
244 # echo "$something" | sed 's/\\/\\\\/g'
246 # So, first we look for a working echo in the user's PATH.
248 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
249 for dir in $PATH /usr/ucb; do
250 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
251 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
252 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
253 test "X$echo_testing_string" = "X$echo_test_string"; then
260 if test "X$echo" = Xecho; then
261 # We didn't find a better echo, so look for alternatives.
262 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
263 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
264 test "X$echo_testing_string" = "X$echo_test_string"; then
265 # This shell has a builtin print -r that does the trick.
267 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
268 test "X$CONFIG_SHELL" != X/bin/ksh; then
269 # If we have ksh, try running configure again with it.
270 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
271 export ORIGINAL_CONFIG_SHELL
272 CONFIG_SHELL=/bin/ksh
274 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
278 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
279 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
280 test "X$echo_testing_string" = "X$echo_test_string"; then
283 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
284 test "X$echo_testing_string" = 'X\t' &&
285 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
286 test "X$echo_testing_string" = "X$echo_test_string"; then
287 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
289 SHELL="$CONFIG_SHELL"
291 echo="$CONFIG_SHELL $0 --fallback-echo"
292 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
293 test "X$echo_testing_string" = 'X\t' &&
294 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
295 test "X$echo_testing_string" = "X$echo_test_string"; then
296 echo="$CONFIG_SHELL $0 --fallback-echo"
298 # maybe with a smaller string...
301 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
302 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
309 if test "$prev" != 'sed 50q "$0"'; then
310 echo_test_string=`eval $prev`
311 export echo_test_string
312 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
314 # Oops. We lost completely, so just stick with echo.
323 # Copy echo and quote the copy suitably for passing to libtool from
324 # the Makefile, instead of quoting the original, which is used later.
326 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
327 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
332 --disable-libtool-lock avoid locking (might break parallel builds)"
334 --with-pic try to use only PIC/non-PIC objects [default=use both]"
337 See INSTALL file for further details."
339 # Initialize some variables set by options.
340 # The variables have the same names as the options, with
341 # dashes changed to underlines.
343 cache_file=./config.cache
352 program_transform_name=s,x,x,
360 bindir='${exec_prefix}/bin'
361 sbindir='${exec_prefix}/sbin'
362 libexecdir='${exec_prefix}/libexec'
363 datadir='${prefix}/share'
364 sysconfdir='${prefix}/etc'
365 sharedstatedir='${prefix}/com'
366 localstatedir='${prefix}/var'
367 libdir='${exec_prefix}/lib'
368 includedir='${prefix}/include'
369 oldincludedir='/usr/include'
370 infodir='${prefix}/info'
371 mandir='${prefix}/man'
373 # Initialize some other variables.
376 SHELL=${CONFIG_SHELL-/bin/sh}
377 # Maximum number of lines to put in a shell here document.
384 # If the previous option needs an argument, assign it.
385 if test -n "$ac_prev"; then
386 eval "$ac_prev=\$ac_option"
392 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
396 # Accept the important Cygnus configure options, so we can diagnose typos.
400 -bindir | --bindir | --bindi | --bind | --bin | --bi)
402 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
403 bindir="$ac_optarg" ;;
405 -build | --build | --buil | --bui | --bu)
407 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
408 build="$ac_optarg" ;;
410 -cache-file | --cache-file | --cache-fil | --cache-fi \
411 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
412 ac_prev=cache_file ;;
413 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
414 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
415 cache_file="$ac_optarg" ;;
417 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
419 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
421 datadir="$ac_optarg" ;;
423 -disable-* | --disable-*)
424 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
425 # Reject names that are not valid shell variable names.
426 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
427 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
429 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
430 eval "enable_${ac_feature}=no" ;;
432 -enable-* | --enable-*)
433 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
434 # Reject names that are not valid shell variable names.
435 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
436 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
438 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
443 eval "enable_${ac_feature}='$ac_optarg'" ;;
445 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
446 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
447 | --exec | --exe | --ex)
448 ac_prev=exec_prefix ;;
449 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
450 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
451 | --exec=* | --exe=* | --ex=*)
452 exec_prefix="$ac_optarg" ;;
454 -gas | --gas | --ga | --g)
455 # Obsolete; use --with-gas.
458 -help | --help | --hel | --he)
459 # Omit some internal or obsolete options to make the list less imposing.
460 # This message is too long to be a string in the A/UX 3.1 sh.
462 Usage: configure [options] [host]
463 Options: [defaults in brackets after descriptions]
465 --cache-file=FILE cache test results in FILE
466 --help print this message
467 --no-create do not create output files
468 --quiet, --silent do not print \`checking...' messages
469 --version print the version of autoconf that created configure
470 Directory and file names:
471 --prefix=PREFIX install architecture-independent files in PREFIX
473 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
475 --bindir=DIR user executables in DIR [EPREFIX/bin]
476 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
477 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
478 --datadir=DIR read-only architecture-independent data in DIR
480 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
481 --sharedstatedir=DIR modifiable architecture-independent data in DIR
483 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
484 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
485 --includedir=DIR C header files in DIR [PREFIX/include]
486 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
487 --infodir=DIR info documentation in DIR [PREFIX/info]
488 --mandir=DIR man documentation in DIR [PREFIX/man]
489 --srcdir=DIR find the sources in DIR [configure dir or ..]
490 --program-prefix=PREFIX prepend PREFIX to installed program names
491 --program-suffix=SUFFIX append SUFFIX to installed program names
492 --program-transform-name=PROGRAM
493 run sed PROGRAM on installed program names
497 --build=BUILD configure for building on BUILD [BUILD=HOST]
498 --host=HOST configure for HOST [guessed]
499 --target=TARGET configure for TARGET [TARGET=HOST]
500 Features and packages:
501 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
502 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
503 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
504 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
505 --x-includes=DIR X include files are in DIR
506 --x-libraries=DIR X library files are in DIR
508 if test -n "$ac_help"; then
509 echo "--enable and --with options recognized:$ac_help"
513 -host | --host | --hos | --ho)
515 -host=* | --host=* | --hos=* | --ho=*)
518 -includedir | --includedir | --includedi | --included | --include \
519 | --includ | --inclu | --incl | --inc)
520 ac_prev=includedir ;;
521 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
522 | --includ=* | --inclu=* | --incl=* | --inc=*)
523 includedir="$ac_optarg" ;;
525 -infodir | --infodir | --infodi | --infod | --info | --inf)
527 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
528 infodir="$ac_optarg" ;;
530 -libdir | --libdir | --libdi | --libd)
532 -libdir=* | --libdir=* | --libdi=* | --libd=*)
533 libdir="$ac_optarg" ;;
535 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
536 | --libexe | --libex | --libe)
537 ac_prev=libexecdir ;;
538 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
539 | --libexe=* | --libex=* | --libe=*)
540 libexecdir="$ac_optarg" ;;
542 -localstatedir | --localstatedir | --localstatedi | --localstated \
543 | --localstate | --localstat | --localsta | --localst \
544 | --locals | --local | --loca | --loc | --lo)
545 ac_prev=localstatedir ;;
546 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
547 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
548 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
549 localstatedir="$ac_optarg" ;;
551 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
553 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
554 mandir="$ac_optarg" ;;
557 # Obsolete; use --without-fp.
560 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
564 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
565 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
568 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
569 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
570 | --oldin | --oldi | --old | --ol | --o)
571 ac_prev=oldincludedir ;;
572 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
573 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
574 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
575 oldincludedir="$ac_optarg" ;;
577 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
579 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
580 prefix="$ac_optarg" ;;
582 -program-prefix | --program-prefix | --program-prefi | --program-pref \
583 | --program-pre | --program-pr | --program-p)
584 ac_prev=program_prefix ;;
585 -program-prefix=* | --program-prefix=* | --program-prefi=* \
586 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
587 program_prefix="$ac_optarg" ;;
589 -program-suffix | --program-suffix | --program-suffi | --program-suff \
590 | --program-suf | --program-su | --program-s)
591 ac_prev=program_suffix ;;
592 -program-suffix=* | --program-suffix=* | --program-suffi=* \
593 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
594 program_suffix="$ac_optarg" ;;
596 -program-transform-name | --program-transform-name \
597 | --program-transform-nam | --program-transform-na \
598 | --program-transform-n | --program-transform- \
599 | --program-transform | --program-transfor \
600 | --program-transfo | --program-transf \
601 | --program-trans | --program-tran \
602 | --progr-tra | --program-tr | --program-t)
603 ac_prev=program_transform_name ;;
604 -program-transform-name=* | --program-transform-name=* \
605 | --program-transform-nam=* | --program-transform-na=* \
606 | --program-transform-n=* | --program-transform-=* \
607 | --program-transform=* | --program-transfor=* \
608 | --program-transfo=* | --program-transf=* \
609 | --program-trans=* | --program-tran=* \
610 | --progr-tra=* | --program-tr=* | --program-t=*)
611 program_transform_name="$ac_optarg" ;;
613 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
614 | -silent | --silent | --silen | --sile | --sil)
617 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
619 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
621 sbindir="$ac_optarg" ;;
623 -sharedstatedir | --sharedstatedir | --sharedstatedi \
624 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
625 | --sharedst | --shareds | --shared | --share | --shar \
627 ac_prev=sharedstatedir ;;
628 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
629 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
630 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
632 sharedstatedir="$ac_optarg" ;;
634 -site | --site | --sit)
636 -site=* | --site=* | --sit=*)
639 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
641 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
642 srcdir="$ac_optarg" ;;
644 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
645 | --syscon | --sysco | --sysc | --sys | --sy)
646 ac_prev=sysconfdir ;;
647 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
648 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
649 sysconfdir="$ac_optarg" ;;
651 -target | --target | --targe | --targ | --tar | --ta | --t)
653 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
654 target="$ac_optarg" ;;
656 -v | -verbose | --verbose | --verbos | --verbo | --verb)
659 -version | --version | --versio | --versi | --vers)
660 echo "configure generated by autoconf version 2.13.1"
664 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
665 # Reject names that are not valid shell variable names.
666 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
667 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
669 ac_package=`echo $ac_package| sed 's/-/_/g'`
674 eval "with_${ac_package}='$ac_optarg'" ;;
676 -without-* | --without-*)
677 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
678 # Reject names that are not valid shell variable names.
679 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
680 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
682 ac_package=`echo $ac_package| sed 's/-/_/g'`
683 eval "with_${ac_package}=no" ;;
686 # Obsolete; use --with-x.
689 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
690 | --x-incl | --x-inc | --x-in | --x-i)
691 ac_prev=x_includes ;;
692 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
693 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
694 x_includes="$ac_optarg" ;;
696 -x-libraries | --x-libraries | --x-librarie | --x-librari \
697 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
698 ac_prev=x_libraries ;;
699 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
700 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
701 x_libraries="$ac_optarg" ;;
703 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
707 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
708 echo "configure: warning: $ac_option: invalid host type" 1>&2
710 if test "x$nonopt" != xNONE; then
711 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
719 if test -n "$ac_prev"; then
720 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
723 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
725 # File descriptor usage:
728 # 2 errors and warnings
729 # 3 some systems may open it to /dev/tty
730 # 4 used on the Kubota Titan
731 # 6 checking for... messages and results
732 # 5 compiler messages saved in config.log
733 if test "$silent" = yes; then
741 This file contains any messages produced by compilers while
742 running configure, to aid debugging if configure makes a mistake.
745 # Strip out --no-create and --no-recursion so they do not pile up.
746 # Also quote any args containing shell metacharacters.
751 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
752 | --no-cr | --no-c) ;;
753 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
754 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
755 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
756 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
757 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
762 # Only set these to C if already set. These must not be set unconditionally
763 # because not all systems understand e.g. LANG=C (notably SCO).
764 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
765 # Non-C LC_CTYPE values break the ctype check.
766 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
767 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
768 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
769 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
771 # confdefs.h avoids OS command line length limits that DEFS can exceed.
772 rm -rf conftest* confdefs.h
773 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
776 # A filename unique to this package, relative to the directory that
777 # configure is in, which we can look for to find out if srcdir is correct.
778 ac_unique_file=build/version.sh
780 # Find the source files, if location was not specified.
781 if test -z "$srcdir"; then
782 ac_srcdir_defaulted=yes
783 # Try the directory containing this script, then its parent.
785 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
786 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
788 if test ! -r $srcdir/$ac_unique_file; then
792 ac_srcdir_defaulted=no
794 if test ! -r $srcdir/$ac_unique_file; then
795 if test "$ac_srcdir_defaulted" = yes; then
796 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
798 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
801 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
803 # Prefer explicitly selected file to automatically selected ones.
804 if test -z "$CONFIG_SITE"; then
805 if test "x$prefix" != xNONE; then
806 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
808 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
811 for ac_site_file in $CONFIG_SITE; do
812 if test -r "$ac_site_file"; then
813 echo "loading site script $ac_site_file"
820 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
821 ac_cpp='$CPP $CPPFLAGS'
822 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
823 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
824 cross_compiling=$ac_cv_prog_cc_cross
828 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
829 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
830 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
837 ac_n= ac_c='\c' ac_t=
841 # set unset (borrowed from autoconf 2.49c)
842 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
848 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
851 for ac_dir in build $srcdir/build; do
852 if test -f $ac_dir/install-sh; then
854 ac_install_sh="$ac_aux_dir/install-sh -c"
856 elif test -f $ac_dir/install.sh; then
858 ac_install_sh="$ac_aux_dir/install.sh -c"
860 elif test -f $ac_dir/shtool; then
862 ac_install_sh="$ac_aux_dir/shtool install -c"
866 if test -z "$ac_aux_dir"; then
867 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
869 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
870 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
871 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
873 eval `$ac_aux_dir/version.sh`
874 if test -z "$OL_STRING"; then
875 { echo "configure: error: could not determine version" 1>&2; exit 1; }
878 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
879 ac_cv_shtool="$ac_aux_dir/shtool"
881 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
884 SHTOOL="$ac_cv_shtool"
886 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
887 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
890 if test -d $ac_aux_dir/CVS; then
891 OPENLDAP_CVS="(from CVS sources) "
894 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
897 echo $ac_n "checking host system type""... $ac_c" 1>&6
898 echo "configure:899: checking host system type" >&5
899 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
901 # Make sure we can run config.sub.
902 if $ac_config_sub sun4 >/dev/null 2>&1; then :
903 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
906 ac_cv_host_alias=$host
907 case "$ac_cv_host_alias" in
911 if ac_cv_host_alias=`$ac_config_guess`; then :
912 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
914 *) ac_cv_host_alias=$nonopt ;;
918 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
919 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
920 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
921 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
923 echo $ac_n "(cached) $ac_c" 1>&6
926 echo "$ac_t""$ac_cv_host" 1>&6
929 host_alias=$ac_cv_host_alias
930 host_cpu=$ac_cv_host_cpu
931 host_vendor=$ac_cv_host_vendor
932 host_os=$ac_cv_host_os
938 echo $ac_n "checking target system type""... $ac_c" 1>&6
939 echo "configure:940: checking target system type" >&5
940 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
942 # Make sure we can run config.sub.
943 if $ac_config_sub sun4 >/dev/null 2>&1; then :
944 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
947 ac_cv_target_alias=$target
948 case "$ac_cv_target_alias" in
952 ac_cv_target_alias=$host_alias ;;
954 *) ac_cv_target_alias=$nonopt ;;
958 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
959 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
960 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
961 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
963 echo $ac_n "(cached) $ac_c" 1>&6
966 echo "$ac_t""$ac_cv_target" 1>&6
969 target_alias=$ac_cv_target_alias
970 target_cpu=$ac_cv_target_cpu
971 target_vendor=$ac_cv_target_vendor
972 target_os=$ac_cv_target_os
978 echo $ac_n "checking build system type""... $ac_c" 1>&6
979 echo "configure:980: checking build system type" >&5
980 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
982 # Make sure we can run config.sub.
983 if $ac_config_sub sun4 >/dev/null 2>&1; then :
984 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
987 ac_cv_build_alias=$build
988 case "$ac_cv_build_alias" in
992 ac_cv_build_alias=$host_alias ;;
994 *) ac_cv_build_alias=$nonopt ;;
998 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
999 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1000 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1001 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1003 echo $ac_n "(cached) $ac_c" 1>&6
1006 echo "$ac_t""$ac_cv_build" 1>&6
1009 build_alias=$ac_cv_build_alias
1010 build_cpu=$ac_cv_build_cpu
1011 build_vendor=$ac_cv_build_vendor
1012 build_os=$ac_cv_build_os
1018 # Do some error checking and defaulting for the host and target type.
1020 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1023 # 1. You are not allowed to specify --host, --target, and nonopt at the
1025 # 2. Host defaults to nonopt.
1026 # 3. If nonopt is not specified, then host defaults to the current host,
1027 # as determined by config.guess.
1028 # 4. Target and build default to nonopt.
1029 # 5. If nonopt is not specified, then target and build default to host.
1031 # The aliases save the names the user supplied, while $host etc.
1032 # will get canonicalized.
1033 case $host---$target---$nonopt in
1034 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1035 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1038 test "$host_alias" != "$target_alias" &&
1039 test "$program_prefix$program_suffix$program_transform_name" = \
1041 program_prefix=${target_alias}-
1044 # Find a good install program. We prefer a C program (faster),
1045 # so one script is as good as another. But avoid the broken or
1046 # incompatible versions:
1047 # SysV /etc/install, /usr/sbin/install
1048 # SunOS /usr/etc/install
1049 # IRIX /sbin/install
1051 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1052 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1053 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1054 # ./install, which can be erroneously created by make from ./install.sh.
1055 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1056 echo "configure:1057: checking for a BSD compatible install" >&5
1057 if test -z "$INSTALL"; then
1058 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1059 echo $ac_n "(cached) $ac_c" 1>&6
1061 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1062 for ac_dir in $PATH; do
1063 # Account for people who put trailing slashes in PATH elements.
1065 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1067 # OSF1 and SCO ODT 3.0 have their own names for install.
1068 # Don't use installbsd from OSF since it installs stuff as root
1070 for ac_prog in ginstall scoinst install; do
1071 if test -f $ac_dir/$ac_prog; then
1072 if test $ac_prog = install &&
1073 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1074 # AIX install. It has an incompatible calling convention.
1076 elif test $ac_prog = install &&
1077 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1078 # program-specific install script used by HP pwplus--don't use.
1081 ac_cv_path_install="$ac_dir/$ac_prog -c"
1092 if test "${ac_cv_path_install+set}" = set; then
1093 INSTALL="$ac_cv_path_install"
1095 # As a last resort, use the slow shell script. We don't cache a
1096 # path for INSTALL within a source directory, because that will
1097 # break other packages using the cache if that directory is
1098 # removed, or if the path is relative.
1099 INSTALL="$ac_install_sh"
1102 echo "$ac_t""$INSTALL" 1>&6
1104 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1105 # It thinks the first close brace ends the variable substitution.
1106 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1108 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1110 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1112 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1113 echo "configure:1114: checking whether build environment is sane" >&5
1116 echo timestamp > conftestfile
1117 # Do `set' in a subshell so we don't clobber the current shell's
1118 # arguments. Must try -L first in case configure is actually a
1119 # symlink; some systems play weird games with the mod time of symlinks
1120 # (eg FreeBSD returns the mod time of the symlink's containing
1123 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1124 if test "$*" = "X"; then
1126 set X `ls -t $srcdir/configure conftestfile`
1128 if test "$*" != "X $srcdir/configure conftestfile" \
1129 && test "$*" != "X conftestfile $srcdir/configure"; then
1131 # If neither matched, then we have a broken ls. This can happen
1132 # if, for instance, CONFIG_SHELL is bash and it inherits a
1133 # broken ls alias from the environment. This has actually
1134 # happened. Such a system could not be considered "sane".
1135 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1136 alias in your environment" 1>&2; exit 1; }
1139 test "$2" = conftestfile
1145 { echo "configure: error: newly created file is older than distributed files!
1146 Check your system clock" 1>&2; exit 1; }
1149 echo "$ac_t""yes" 1>&6
1150 if test "$program_transform_name" = s,x,x,; then
1151 program_transform_name=
1153 # Double any \ or $. echo might interpret backslashes.
1154 cat <<\EOF_SED > conftestsed
1155 s,\\,\\\\,g; s,\$,$$,g
1157 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1160 test "$program_prefix" != NONE &&
1161 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1162 # Use a double $ so make ignores it.
1163 test "$program_suffix" != NONE &&
1164 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1166 # sed with no file args requires a program.
1167 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1169 for ac_prog in mawk gawk nawk awk
1171 # Extract the first word of "$ac_prog", so it can be a program name with args.
1172 set dummy $ac_prog; ac_word=$2
1173 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1174 echo "configure:1175: checking for $ac_word" >&5
1175 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1176 echo $ac_n "(cached) $ac_c" 1>&6
1178 if test -n "$AWK"; then
1179 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1181 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1183 for ac_dir in $ac_dummy; do
1184 test -z "$ac_dir" && ac_dir=.
1185 if test -f $ac_dir/$ac_word; then
1186 ac_cv_prog_AWK="$ac_prog"
1193 AWK="$ac_cv_prog_AWK"
1194 if test -n "$AWK"; then
1195 echo "$ac_t""$AWK" 1>&6
1197 echo "$ac_t""no" 1>&6
1200 test -n "$AWK" && break
1203 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1204 echo "configure:1205: checking whether ${MAKE-make} sets \${MAKE}" >&5
1205 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1206 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1207 echo $ac_n "(cached) $ac_c" 1>&6
1209 cat > conftestmake <<\EOF
1211 @echo 'ac_maketemp="${MAKE}"'
1213 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1214 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1215 if test -n "$ac_maketemp"; then
1216 eval ac_cv_prog_make_${ac_make}_set=yes
1218 eval ac_cv_prog_make_${ac_make}_set=no
1222 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1223 echo "$ac_t""yes" 1>&6
1226 echo "$ac_t""no" 1>&6
1227 SET_MAKE="MAKE=${MAKE-make}"
1236 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1237 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1242 missing_dir=`cd $ac_aux_dir && pwd`
1243 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1244 echo "configure:1245: checking for working aclocal" >&5
1245 # Run test in a subshell; some versions of sh will print an error if
1246 # an executable is not found, even if stderr is redirected.
1247 # Redirect stdin to placate older versions of autoconf. Sigh.
1248 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1250 echo "$ac_t""found" 1>&6
1252 ACLOCAL="$missing_dir/missing aclocal"
1253 echo "$ac_t""missing" 1>&6
1256 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1257 echo "configure:1258: checking for working autoconf" >&5
1258 # Run test in a subshell; some versions of sh will print an error if
1259 # an executable is not found, even if stderr is redirected.
1260 # Redirect stdin to placate older versions of autoconf. Sigh.
1261 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1263 echo "$ac_t""found" 1>&6
1265 AUTOCONF="$missing_dir/missing autoconf"
1266 echo "$ac_t""missing" 1>&6
1269 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1270 echo "configure:1271: checking for working automake" >&5
1271 # Run test in a subshell; some versions of sh will print an error if
1272 # an executable is not found, even if stderr is redirected.
1273 # Redirect stdin to placate older versions of autoconf. Sigh.
1274 if (automake --version) < /dev/null > /dev/null 2>&1; then
1276 echo "$ac_t""found" 1>&6
1278 AUTOMAKE="$missing_dir/missing automake"
1279 echo "$ac_t""missing" 1>&6
1282 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1283 echo "configure:1284: checking for working autoheader" >&5
1284 # Run test in a subshell; some versions of sh will print an error if
1285 # an executable is not found, even if stderr is redirected.
1286 # Redirect stdin to placate older versions of autoconf. Sigh.
1287 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1288 AUTOHEADER=autoheader
1289 echo "$ac_t""found" 1>&6
1291 AUTOHEADER="$missing_dir/missing autoheader"
1292 echo "$ac_t""missing" 1>&6
1295 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1296 echo "configure:1297: checking for working makeinfo" >&5
1297 # Run test in a subshell; some versions of sh will print an error if
1298 # an executable is not found, even if stderr is redirected.
1299 # Redirect stdin to placate older versions of autoconf. Sigh.
1300 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1302 echo "$ac_t""found" 1>&6
1304 MAKEINFO="$missing_dir/missing makeinfo"
1305 echo "$ac_t""missing" 1>&6
1308 install_sh="$missing_dir/install-sh"
1309 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1311 for ac_prog in gnutar gtar tar
1313 # Extract the first word of "$ac_prog", so it can be a program name with args.
1314 set dummy $ac_prog; ac_word=$2
1315 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1316 echo "configure:1317: checking for $ac_word" >&5
1317 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1318 echo $ac_n "(cached) $ac_c" 1>&6
1320 if test -n "$AMTAR"; then
1321 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1325 for ac_dir in $ac_dummy; do
1326 test -z "$ac_dir" && ac_dir=.
1327 if test -f $ac_dir/$ac_word; then
1328 ac_cv_prog_AMTAR="$ac_prog"
1335 AMTAR="$ac_cv_prog_AMTAR"
1336 if test -n "$AMTAR"; then
1337 echo "$ac_t""$AMTAR" 1>&6
1339 echo "$ac_t""no" 1>&6
1342 test -n "$AMTAR" && break
1347 if test -n "$AMTAR"; then
1348 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1353 cat >> confdefs.h <<EOF
1354 #define OPENLDAP_PACKAGE "$PACKAGE"
1357 cat >> confdefs.h <<EOF
1358 #define OPENLDAP_VERSION "$VERSION"
1362 cat >> confdefs.h <<EOF
1363 #define LDAP_VENDOR_VERSION $OL_API_INC
1366 cat >> confdefs.h <<EOF
1367 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1370 cat >> confdefs.h <<EOF
1371 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1374 cat >> confdefs.h <<EOF
1375 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1379 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
1381 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
1383 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1387 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1388 echo "configure:1389: checking configure arguments" >&5
1393 ldap_subdir="/openldap"
1395 # Check whether --with-subdir or --without-subdir was given.
1396 if test "${with_subdir+set}" = set; then
1397 withval="$with_subdir"
1404 ldap_subdir="$withval"
1407 ldap_subdir="/$withval"
1414 # OpenLDAP --enable-debug
1415 # Check whether --enable-debug or --disable-debug was given.
1416 if test "${enable_debug+set}" = set; then
1417 enableval="$enable_debug"
1420 for ol_val in auto yes no ; do
1421 if test "$enableval" = "$ol_val" ; then
1425 if test "$ol_arg" = "invalid" ; then
1426 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1428 ol_enable_debug="$ol_arg"
1431 ol_enable_debug="yes"
1433 # end --enable-debug
1434 # OpenLDAP --enable-dynamic
1435 # Check whether --enable-dynamic or --disable-dynamic was given.
1436 if test "${enable_dynamic+set}" = set; then
1437 enableval="$enable_dynamic"
1440 for ol_val in auto yes no ; do
1441 if test "$enableval" = "$ol_val" ; then
1445 if test "$ol_arg" = "invalid" ; then
1446 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1448 ol_enable_dynamic="$ol_arg"
1451 ol_enable_dynamic="no"
1453 # end --enable-dynamic
1454 # OpenLDAP --enable-syslog
1455 # Check whether --enable-syslog or --disable-syslog was given.
1456 if test "${enable_syslog+set}" = set; then
1457 enableval="$enable_syslog"
1460 for ol_val in auto yes no ; do
1461 if test "$enableval" = "$ol_val" ; then
1465 if test "$ol_arg" = "invalid" ; then
1466 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1468 ol_enable_syslog="$ol_arg"
1471 ol_enable_syslog="auto"
1473 # end --enable-syslog
1474 # OpenLDAP --enable-proctitle
1475 # Check whether --enable-proctitle or --disable-proctitle was given.
1476 if test "${enable_proctitle+set}" = set; then
1477 enableval="$enable_proctitle"
1480 for ol_val in auto yes no ; do
1481 if test "$enableval" = "$ol_val" ; then
1485 if test "$ol_arg" = "invalid" ; then
1486 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1488 ol_enable_proctitle="$ol_arg"
1491 ol_enable_proctitle="yes"
1493 # end --enable-proctitle
1494 ol_enable_referrals=${ol_enable_referrals-no}
1495 ol_enable_kbind=${ol_enable_kbind-no}
1496 # OpenLDAP --enable-ipv6
1497 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1498 if test "${enable_ipv6+set}" = set; then
1499 enableval="$enable_ipv6"
1502 for ol_val in auto yes no ; do
1503 if test "$enableval" = "$ol_val" ; then
1507 if test "$ol_arg" = "invalid" ; then
1508 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1510 ol_enable_ipv6="$ol_arg"
1513 ol_enable_ipv6="auto"
1516 # OpenLDAP --enable-local
1517 # Check whether --enable-local or --disable-local was given.
1518 if test "${enable_local+set}" = set; then
1519 enableval="$enable_local"
1522 for ol_val in auto yes no ; do
1523 if test "$enableval" = "$ol_val" ; then
1527 if test "$ol_arg" = "invalid" ; then
1528 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1530 ol_enable_local="$ol_arg"
1533 ol_enable_local="auto"
1535 # end --enable-local
1538 # OpenLDAP --with-cyrus_sasl
1539 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1540 if test "${with_cyrus_sasl+set}" = set; then
1541 withval="$with_cyrus_sasl"
1544 for ol_val in auto yes no ; do
1545 if test "$withval" = "$ol_val" ; then
1549 if test "$ol_arg" = "invalid" ; then
1550 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1552 ol_with_cyrus_sasl="$ol_arg"
1555 ol_with_cyrus_sasl="auto"
1557 # end --with-cyrus_sasl
1559 # OpenLDAP --with-fetch
1560 # Check whether --with-fetch or --without-fetch was given.
1561 if test "${with_fetch+set}" = set; then
1562 withval="$with_fetch"
1565 for ol_val in auto yes no ; do
1566 if test "$withval" = "$ol_val" ; then
1570 if test "$ol_arg" = "invalid" ; then
1571 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1573 ol_with_fetch="$ol_arg"
1576 ol_with_fetch="auto"
1580 ol_with_kerberos=${ol_with_kerberos-auto}
1581 # OpenLDAP --with-threads
1582 # Check whether --with-threads or --without-threads was given.
1583 if test "${with_threads+set}" = set; then
1584 withval="$with_threads"
1587 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1588 if test "$withval" = "$ol_val" ; then
1592 if test "$ol_arg" = "invalid" ; then
1593 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1595 ol_with_threads="$ol_arg"
1598 ol_with_threads="auto"
1600 # end --with-threads
1602 # OpenLDAP --with-tls
1603 # Check whether --with-tls or --without-tls was given.
1604 if test "${with_tls+set}" = set; then
1608 for ol_val in auto ssleay openssl yes no ; do
1609 if test "$withval" = "$ol_val" ; then
1613 if test "$ol_arg" = "invalid" ; then
1614 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1616 ol_with_tls="$ol_arg"
1623 # OpenLDAP --with-yielding_select
1624 # Check whether --with-yielding_select or --without-yielding_select was given.
1625 if test "${with_yielding_select+set}" = set; then
1626 withval="$with_yielding_select"
1629 for ol_val in auto yes no manual ; do
1630 if test "$withval" = "$ol_val" ; then
1634 if test "$ol_arg" = "invalid" ; then
1635 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1637 ol_with_yielding_select="$ol_arg"
1640 ol_with_yielding_select="auto"
1642 # end --with-yielding_select
1644 # OpenLDAP --with-multiple_precision
1645 # Check whether --with-multiple_precision or --without-multiple_precision was given.
1646 if test "${with_multiple_precision+set}" = set; then
1647 withval="$with_multiple_precision"
1650 for ol_val in auto bignum gmp yes no ; do
1651 if test "$withval" = "$ol_val" ; then
1655 if test "$ol_arg" = "invalid" ; then
1656 { echo "configure: error: bad value $withval for --with-multiple_precision" 1>&2; exit 1; }
1658 ol_with_multiple_precision="$ol_arg"
1661 ol_with_multiple_precision="auto"
1663 # end --with-multiple_precision
1667 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1668 if test "${with_xxslapdoptions+set}" = set; then
1669 withval="$with_xxslapdoptions"
1673 # OpenLDAP --enable-slapd
1674 # Check whether --enable-slapd or --disable-slapd was given.
1675 if test "${enable_slapd+set}" = set; then
1676 enableval="$enable_slapd"
1679 for ol_val in auto yes no ; do
1680 if test "$enableval" = "$ol_val" ; then
1684 if test "$ol_arg" = "invalid" ; then
1685 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1687 ol_enable_slapd="$ol_arg"
1690 ol_enable_slapd="yes"
1692 # end --enable-slapd
1693 # OpenLDAP --enable-aci
1694 # Check whether --enable-aci or --disable-aci was given.
1695 if test "${enable_aci+set}" = set; then
1696 enableval="$enable_aci"
1699 for ol_val in auto yes no ; do
1700 if test "$enableval" = "$ol_val" ; then
1704 if test "$ol_arg" = "invalid" ; then
1705 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1707 ol_enable_aci="$ol_arg"
1713 # OpenLDAP --enable-cleartext
1714 # Check whether --enable-cleartext or --disable-cleartext was given.
1715 if test "${enable_cleartext+set}" = set; then
1716 enableval="$enable_cleartext"
1719 for ol_val in auto yes no ; do
1720 if test "$enableval" = "$ol_val" ; then
1724 if test "$ol_arg" = "invalid" ; then
1725 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1727 ol_enable_cleartext="$ol_arg"
1730 ol_enable_cleartext="yes"
1732 # end --enable-cleartext
1733 # OpenLDAP --enable-crypt
1734 # Check whether --enable-crypt or --disable-crypt was given.
1735 if test "${enable_crypt+set}" = set; then
1736 enableval="$enable_crypt"
1739 for ol_val in auto yes no ; do
1740 if test "$enableval" = "$ol_val" ; then
1744 if test "$ol_arg" = "invalid" ; then
1745 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1747 ol_enable_crypt="$ol_arg"
1750 ol_enable_crypt="no"
1752 # end --enable-crypt
1753 # OpenLDAP --enable-lmpasswd
1754 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1755 if test "${enable_lmpasswd+set}" = set; then
1756 enableval="$enable_lmpasswd"
1759 for ol_val in auto yes no ; do
1760 if test "$enableval" = "$ol_val" ; then
1764 if test "$ol_arg" = "invalid" ; then
1765 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1767 ol_enable_lmpasswd="$ol_arg"
1770 ol_enable_lmpasswd="no"
1772 # end --enable-lmpasswd
1773 # OpenLDAP --enable-spasswd
1774 # Check whether --enable-spasswd or --disable-spasswd was given.
1775 if test "${enable_spasswd+set}" = set; then
1776 enableval="$enable_spasswd"
1779 for ol_val in auto yes no ; do
1780 if test "$enableval" = "$ol_val" ; then
1784 if test "$ol_arg" = "invalid" ; then
1785 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1787 ol_enable_spasswd="$ol_arg"
1790 ol_enable_spasswd="no"
1792 # end --enable-spasswd
1793 # OpenLDAP --enable-modules
1794 # Check whether --enable-modules or --disable-modules was given.
1795 if test "${enable_modules+set}" = set; then
1796 enableval="$enable_modules"
1799 for ol_val in auto yes no ; do
1800 if test "$enableval" = "$ol_val" ; then
1804 if test "$ol_arg" = "invalid" ; then
1805 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1807 ol_enable_modules="$ol_arg"
1810 ol_enable_modules="no"
1812 # end --enable-modules
1813 ol_enable_multimaster=${ol_enable_multimaster-no}
1814 # OpenLDAP --enable-rewrite
1815 # Check whether --enable-rewrite or --disable-rewrite was given.
1816 if test "${enable_rewrite+set}" = set; then
1817 enableval="$enable_rewrite"
1820 for ol_val in auto yes no ; do
1821 if test "$enableval" = "$ol_val" ; then
1825 if test "$ol_arg" = "invalid" ; then
1826 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1828 ol_enable_rewrite="$ol_arg"
1831 ol_enable_rewrite="auto"
1833 # end --enable-rewrite
1834 # OpenLDAP --enable-rlookups
1835 # Check whether --enable-rlookups or --disable-rlookups was given.
1836 if test "${enable_rlookups+set}" = set; then
1837 enableval="$enable_rlookups"
1840 for ol_val in auto yes no ; do
1841 if test "$enableval" = "$ol_val" ; then
1845 if test "$ol_arg" = "invalid" ; then
1846 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1848 ol_enable_rlookups="$ol_arg"
1851 ol_enable_rlookups="no"
1853 # end --enable-rlookups
1854 # OpenLDAP --enable-slapi
1855 # Check whether --enable-slapi or --disable-slapi was given.
1856 if test "${enable_slapi+set}" = set; then
1857 enableval="$enable_slapi"
1860 for ol_val in auto yes no ; do
1861 if test "$enableval" = "$ol_val" ; then
1865 if test "$ol_arg" = "invalid" ; then
1866 { echo "configure: error: bad value $enableval for --enable-slapi" 1>&2; exit 1; }
1868 ol_enable_slapi="$ol_arg"
1871 ol_enable_slapi="no"
1873 # end --enable-slapi
1874 # OpenLDAP --enable-slp
1875 # Check whether --enable-slp or --disable-slp was given.
1876 if test "${enable_slp+set}" = set; then
1877 enableval="$enable_slp"
1880 for ol_val in auto yes no ; do
1881 if test "$enableval" = "$ol_val" ; then
1885 if test "$ol_arg" = "invalid" ; then
1886 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1888 ol_enable_slp="$ol_arg"
1894 # OpenLDAP --enable-wrappers
1895 # Check whether --enable-wrappers or --disable-wrappers was given.
1896 if test "${enable_wrappers+set}" = set; then
1897 enableval="$enable_wrappers"
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-wrappers" 1>&2; exit 1; }
1908 ol_enable_wrappers="$ol_arg"
1911 ol_enable_wrappers="no"
1913 # end --enable-wrappers
1915 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
1916 passwd perl relay shell sql"
1918 # Check whether --with-xxslapbackends or --without-xxslapbackends was given.
1919 if test "${with_xxslapbackends+set}" = set; then
1920 withval="$with_xxslapbackends"
1925 # OpenLDAP --enable-backends
1926 # Check whether --enable-backends or --disable-backends was given.
1927 if test "${enable_backends+set}" = set; then
1928 enableval="$enable_backends"
1931 for ol_val in no yes mod ; do
1932 if test "$enableval" = "$ol_val" ; then
1936 if test "$ol_arg" = "invalid" ; then
1937 { echo "configure: error: bad value $enableval for --enable-backends" 1>&2; exit 1; }
1939 ol_enable_backends="$ol_arg"
1942 # end --enable-backends
1943 test -n "$ol_enable_backends" && ol_dflt_backends="$ol_enable_backends"
1944 # OpenLDAP --enable-bdb
1945 # Check whether --enable-bdb or --disable-bdb was given.
1946 if test "${enable_bdb+set}" = set; then
1947 enableval="$enable_bdb"
1950 for ol_val in no yes mod ; do
1951 if test "$enableval" = "$ol_val" ; then
1955 if test "$ol_arg" = "invalid" ; then
1956 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1958 ol_enable_bdb="$ol_arg"
1961 ol_enable_bdb="${ol_dflt_backends-yes}"
1964 # OpenLDAP --enable-dnssrv
1965 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1966 if test "${enable_dnssrv+set}" = set; then
1967 enableval="$enable_dnssrv"
1970 for ol_val in no yes mod ; do
1971 if test "$enableval" = "$ol_val" ; then
1975 if test "$ol_arg" = "invalid" ; then
1976 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1978 ol_enable_dnssrv="$ol_arg"
1981 ol_enable_dnssrv="${ol_dflt_backends-no}"
1983 # end --enable-dnssrv
1984 # OpenLDAP --enable-hdb
1985 # Check whether --enable-hdb or --disable-hdb was given.
1986 if test "${enable_hdb+set}" = set; then
1987 enableval="$enable_hdb"
1990 for ol_val in no yes mod ; do
1991 if test "$enableval" = "$ol_val" ; then
1995 if test "$ol_arg" = "invalid" ; then
1996 { echo "configure: error: bad value $enableval for --enable-hdb" 1>&2; exit 1; }
1998 ol_enable_hdb="$ol_arg"
2001 ol_enable_hdb="${ol_dflt_backends-yes}"
2004 # OpenLDAP --enable-ldap
2005 # Check whether --enable-ldap or --disable-ldap was given.
2006 if test "${enable_ldap+set}" = set; then
2007 enableval="$enable_ldap"
2010 for ol_val in no yes mod ; do
2011 if test "$enableval" = "$ol_val" ; then
2015 if test "$ol_arg" = "invalid" ; then
2016 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2018 ol_enable_ldap="$ol_arg"
2021 ol_enable_ldap="${ol_dflt_backends-no}"
2024 # OpenLDAP --enable-ldbm
2025 # Check whether --enable-ldbm or --disable-ldbm was given.
2026 if test "${enable_ldbm+set}" = set; then
2027 enableval="$enable_ldbm"
2030 for ol_val in no yes mod ; do
2031 if test "$enableval" = "$ol_val" ; then
2035 if test "$ol_arg" = "invalid" ; then
2036 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2038 ol_enable_ldbm="$ol_arg"
2041 ol_enable_ldbm="${ol_dflt_backends-no}"
2044 # OpenLDAP --with-ldbm_api
2045 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2046 if test "${with_ldbm_api+set}" = set; then
2047 withval="$with_ldbm_api"
2050 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2051 if test "$withval" = "$ol_val" ; then
2055 if test "$ol_arg" = "invalid" ; then
2056 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2058 ol_with_ldbm_api="$ol_arg"
2061 ol_with_ldbm_api="auto"
2063 # end --with-ldbm_api
2065 # OpenLDAP --with-ldbm_type
2066 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2067 if test "${with_ldbm_type+set}" = set; then
2068 withval="$with_ldbm_type"
2071 for ol_val in auto btree hash ; do
2072 if test "$withval" = "$ol_val" ; then
2076 if test "$ol_arg" = "invalid" ; then
2077 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2079 ol_with_ldbm_type="$ol_arg"
2082 ol_with_ldbm_type="auto"
2084 # end --with-ldbm_type
2086 # OpenLDAP --enable-meta
2087 # Check whether --enable-meta or --disable-meta was given.
2088 if test "${enable_meta+set}" = set; then
2089 enableval="$enable_meta"
2092 for ol_val in no yes mod ; do
2093 if test "$enableval" = "$ol_val" ; then
2097 if test "$ol_arg" = "invalid" ; then
2098 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2100 ol_enable_meta="$ol_arg"
2103 ol_enable_meta="${ol_dflt_backends-no}"
2106 # OpenLDAP --enable-monitor
2107 # Check whether --enable-monitor or --disable-monitor was given.
2108 if test "${enable_monitor+set}" = set; then
2109 enableval="$enable_monitor"
2112 for ol_val in no yes mod ; do
2113 if test "$enableval" = "$ol_val" ; then
2117 if test "$ol_arg" = "invalid" ; then
2118 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2120 ol_enable_monitor="$ol_arg"
2123 ol_enable_monitor="${ol_dflt_backends-yes}"
2125 # end --enable-monitor
2126 # OpenLDAP --enable-null
2127 # Check whether --enable-null or --disable-null was given.
2128 if test "${enable_null+set}" = set; then
2129 enableval="$enable_null"
2132 for ol_val in no yes mod ; do
2133 if test "$enableval" = "$ol_val" ; then
2137 if test "$ol_arg" = "invalid" ; then
2138 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2140 ol_enable_null="$ol_arg"
2143 ol_enable_null="${ol_dflt_backends-no}"
2146 # OpenLDAP --enable-passwd
2147 # Check whether --enable-passwd or --disable-passwd was given.
2148 if test "${enable_passwd+set}" = set; then
2149 enableval="$enable_passwd"
2152 for ol_val in no yes mod ; do
2153 if test "$enableval" = "$ol_val" ; then
2157 if test "$ol_arg" = "invalid" ; then
2158 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2160 ol_enable_passwd="$ol_arg"
2163 ol_enable_passwd="${ol_dflt_backends-no}"
2165 # end --enable-passwd
2166 # OpenLDAP --enable-perl
2167 # Check whether --enable-perl or --disable-perl was given.
2168 if test "${enable_perl+set}" = set; then
2169 enableval="$enable_perl"
2172 for ol_val in no yes mod ; do
2173 if test "$enableval" = "$ol_val" ; then
2177 if test "$ol_arg" = "invalid" ; then
2178 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2180 ol_enable_perl="$ol_arg"
2183 ol_enable_perl="${ol_dflt_backends-no}"
2186 # OpenLDAP --enable-relay
2187 # Check whether --enable-relay or --disable-relay was given.
2188 if test "${enable_relay+set}" = set; then
2189 enableval="$enable_relay"
2192 for ol_val in no yes mod ; do
2193 if test "$enableval" = "$ol_val" ; then
2197 if test "$ol_arg" = "invalid" ; then
2198 { echo "configure: error: bad value $enableval for --enable-relay" 1>&2; exit 1; }
2200 ol_enable_relay="$ol_arg"
2203 ol_enable_relay="${ol_dflt_backends-yes}"
2205 # end --enable-relay
2206 # OpenLDAP --enable-shell
2207 # Check whether --enable-shell or --disable-shell was given.
2208 if test "${enable_shell+set}" = set; then
2209 enableval="$enable_shell"
2212 for ol_val in no yes mod ; do
2213 if test "$enableval" = "$ol_val" ; then
2217 if test "$ol_arg" = "invalid" ; then
2218 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2220 ol_enable_shell="$ol_arg"
2223 ol_enable_shell="${ol_dflt_backends-no}"
2225 # end --enable-shell
2226 # OpenLDAP --enable-sql
2227 # Check whether --enable-sql or --disable-sql was given.
2228 if test "${enable_sql+set}" = set; then
2229 enableval="$enable_sql"
2232 for ol_val in no yes mod ; do
2233 if test "$enableval" = "$ol_val" ; then
2237 if test "$ol_arg" = "invalid" ; then
2238 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2240 ol_enable_sql="$ol_arg"
2243 ol_enable_sql="${ol_dflt_backends-no}"
2247 Overlays="accesslog denyop dyngroup dynlist glue lastmod ppolicy proxycache \
2248 refint retcode rwm syncprov translucent unique"
2250 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
2251 if test "${with_xxslapoverlays+set}" = set; then
2252 withval="$with_xxslapoverlays"
2257 # OpenLDAP --enable-overlays
2258 # Check whether --enable-overlays or --disable-overlays was given.
2259 if test "${enable_overlays+set}" = set; then
2260 enableval="$enable_overlays"
2263 for ol_val in no yes mod ; do
2264 if test "$enableval" = "$ol_val" ; then
2268 if test "$ol_arg" = "invalid" ; then
2269 { echo "configure: error: bad value $enableval for --enable-overlays" 1>&2; exit 1; }
2271 ol_enable_overlays="$ol_arg"
2274 # end --enable-overlays
2275 test -n "$ol_enable_overlays" && ol_dflt_overlays="$ol_enable_overlays"
2276 # OpenLDAP --enable-accesslog
2277 # Check whether --enable-accesslog or --disable-accesslog was given.
2278 if test "${enable_accesslog+set}" = set; then
2279 enableval="$enable_accesslog"
2282 for ol_val in no yes mod ; do
2283 if test "$enableval" = "$ol_val" ; then
2287 if test "$ol_arg" = "invalid" ; then
2288 { echo "configure: error: bad value $enableval for --enable-accesslog" 1>&2; exit 1; }
2290 ol_enable_accesslog="$ol_arg"
2293 ol_enable_accesslog="${ol_dflt_overlays-no}"
2295 # end --enable-accesslog
2297 # OpenLDAP --enable-denyop
2298 # Check whether --enable-denyop or --disable-denyop was given.
2299 if test "${enable_denyop+set}" = set; then
2300 enableval="$enable_denyop"
2303 for ol_val in no yes mod ; do
2304 if test "$enableval" = "$ol_val" ; then
2308 if test "$ol_arg" = "invalid" ; then
2309 { echo "configure: error: bad value $enableval for --enable-denyop" 1>&2; exit 1; }
2311 ol_enable_denyop="$ol_arg"
2314 ol_enable_denyop="${ol_dflt_overlays-no}"
2316 # end --enable-denyop
2318 # OpenLDAP --enable-dyngroup
2319 # Check whether --enable-dyngroup or --disable-dyngroup was given.
2320 if test "${enable_dyngroup+set}" = set; then
2321 enableval="$enable_dyngroup"
2324 for ol_val in no yes mod ; do
2325 if test "$enableval" = "$ol_val" ; then
2329 if test "$ol_arg" = "invalid" ; then
2330 { echo "configure: error: bad value $enableval for --enable-dyngroup" 1>&2; exit 1; }
2332 ol_enable_dyngroup="$ol_arg"
2335 ol_enable_dyngroup="${ol_dflt_overlays-no}"
2337 # end --enable-dyngroup
2339 # OpenLDAP --enable-dynlist
2340 # Check whether --enable-dynlist or --disable-dynlist was given.
2341 if test "${enable_dynlist+set}" = set; then
2342 enableval="$enable_dynlist"
2345 for ol_val in no yes mod ; do
2346 if test "$enableval" = "$ol_val" ; then
2350 if test "$ol_arg" = "invalid" ; then
2351 { echo "configure: error: bad value $enableval for --enable-dynlist" 1>&2; exit 1; }
2353 ol_enable_dynlist="$ol_arg"
2356 ol_enable_dynlist="${ol_dflt_overlays-no}"
2358 # end --enable-dynlist
2360 # OpenLDAP --enable-glue
2361 # Check whether --enable-glue or --disable-glue was given.
2362 if test "${enable_glue+set}" = set; then
2363 enableval="$enable_glue"
2366 for ol_val in no yes mod ; do
2367 if test "$enableval" = "$ol_val" ; then
2371 if test "$ol_arg" = "invalid" ; then
2372 { echo "configure: error: bad value $enableval for --enable-glue" 1>&2; exit 1; }
2374 ol_enable_glue="$ol_arg"
2377 ol_enable_glue="${ol_dflt_overlays-yes}"
2381 # OpenLDAP --enable-lastmod
2382 # Check whether --enable-lastmod or --disable-lastmod was given.
2383 if test "${enable_lastmod+set}" = set; then
2384 enableval="$enable_lastmod"
2387 for ol_val in no yes mod ; do
2388 if test "$enableval" = "$ol_val" ; then
2392 if test "$ol_arg" = "invalid" ; then
2393 { echo "configure: error: bad value $enableval for --enable-lastmod" 1>&2; exit 1; }
2395 ol_enable_lastmod="$ol_arg"
2398 ol_enable_lastmod="${ol_dflt_overlays-no}"
2400 # end --enable-lastmod
2402 # OpenLDAP --enable-ppolicy
2403 # Check whether --enable-ppolicy or --disable-ppolicy was given.
2404 if test "${enable_ppolicy+set}" = set; then
2405 enableval="$enable_ppolicy"
2408 for ol_val in no yes mod ; do
2409 if test "$enableval" = "$ol_val" ; then
2413 if test "$ol_arg" = "invalid" ; then
2414 { echo "configure: error: bad value $enableval for --enable-ppolicy" 1>&2; exit 1; }
2416 ol_enable_ppolicy="$ol_arg"
2419 ol_enable_ppolicy="${ol_dflt_overlays-no}"
2421 # end --enable-ppolicy
2423 # OpenLDAP --enable-proxycache
2424 # Check whether --enable-proxycache or --disable-proxycache was given.
2425 if test "${enable_proxycache+set}" = set; then
2426 enableval="$enable_proxycache"
2429 for ol_val in no yes mod ; do
2430 if test "$enableval" = "$ol_val" ; then
2434 if test "$ol_arg" = "invalid" ; then
2435 { echo "configure: error: bad value $enableval for --enable-proxycache" 1>&2; exit 1; }
2437 ol_enable_proxycache="$ol_arg"
2440 ol_enable_proxycache="${ol_dflt_overlays-no}"
2442 # end --enable-proxycache
2444 # OpenLDAP --enable-refint
2445 # Check whether --enable-refint or --disable-refint was given.
2446 if test "${enable_refint+set}" = set; then
2447 enableval="$enable_refint"
2450 for ol_val in no yes mod ; do
2451 if test "$enableval" = "$ol_val" ; then
2455 if test "$ol_arg" = "invalid" ; then
2456 { echo "configure: error: bad value $enableval for --enable-refint" 1>&2; exit 1; }
2458 ol_enable_refint="$ol_arg"
2461 ol_enable_refint="${ol_dflt_overlays-no}"
2463 # end --enable-refint
2465 # OpenLDAP --enable-retcode
2466 # Check whether --enable-retcode or --disable-retcode was given.
2467 if test "${enable_retcode+set}" = set; then
2468 enableval="$enable_retcode"
2471 for ol_val in no yes mod ; do
2472 if test "$enableval" = "$ol_val" ; then
2476 if test "$ol_arg" = "invalid" ; then
2477 { echo "configure: error: bad value $enableval for --enable-retcode" 1>&2; exit 1; }
2479 ol_enable_retcode="$ol_arg"
2482 ol_enable_retcode="${ol_dflt_overlays-no}"
2484 # end --enable-retcode
2486 # OpenLDAP --enable-rwm
2487 # Check whether --enable-rwm or --disable-rwm was given.
2488 if test "${enable_rwm+set}" = set; then
2489 enableval="$enable_rwm"
2492 for ol_val in no yes mod ; do
2493 if test "$enableval" = "$ol_val" ; then
2497 if test "$ol_arg" = "invalid" ; then
2498 { echo "configure: error: bad value $enableval for --enable-rwm" 1>&2; exit 1; }
2500 ol_enable_rwm="$ol_arg"
2503 ol_enable_rwm="${ol_dflt_overlays-no}"
2507 # OpenLDAP --enable-syncprov
2508 # Check whether --enable-syncprov or --disable-syncprov was given.
2509 if test "${enable_syncprov+set}" = set; then
2510 enableval="$enable_syncprov"
2513 for ol_val in no yes mod ; do
2514 if test "$enableval" = "$ol_val" ; then
2518 if test "$ol_arg" = "invalid" ; then
2519 { echo "configure: error: bad value $enableval for --enable-syncprov" 1>&2; exit 1; }
2521 ol_enable_syncprov="$ol_arg"
2524 ol_enable_syncprov="${ol_dflt_overlays-yes}"
2526 # end --enable-syncprov
2528 # OpenLDAP --enable-translucent
2529 # Check whether --enable-translucent or --disable-translucent was given.
2530 if test "${enable_translucent+set}" = set; then
2531 enableval="$enable_translucent"
2534 for ol_val in no yes mod ; do
2535 if test "$enableval" = "$ol_val" ; then
2539 if test "$ol_arg" = "invalid" ; then
2540 { echo "configure: error: bad value $enableval for --enable-translucent" 1>&2; exit 1; }
2542 ol_enable_translucent="$ol_arg"
2545 ol_enable_translucent="${ol_dflt_overlays-no}"
2547 # end --enable-translucent
2549 # OpenLDAP --enable-unique
2550 # Check whether --enable-unique or --disable-unique was given.
2551 if test "${enable_unique+set}" = set; then
2552 enableval="$enable_unique"
2555 for ol_val in no yes mod ; do
2556 if test "$enableval" = "$ol_val" ; then
2560 if test "$ol_arg" = "invalid" ; then
2561 { echo "configure: error: bad value $enableval for --enable-unique" 1>&2; exit 1; }
2563 ol_enable_unique="$ol_arg"
2566 ol_enable_unique="${ol_dflt_overlays-no}"
2568 # end --enable-unique
2572 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2573 if test "${with_xxslurpdoptions+set}" = set; then
2574 withval="$with_xxslurpdoptions"
2578 # OpenLDAP --enable-slurpd
2579 # Check whether --enable-slurpd or --disable-slurpd was given.
2580 if test "${enable_slurpd+set}" = set; then
2581 enableval="$enable_slurpd"
2584 for ol_val in auto yes no ; do
2585 if test "$enableval" = "$ol_val" ; then
2589 if test "$ol_arg" = "invalid" ; then
2590 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2592 ol_enable_slurpd="$ol_arg"
2595 ol_enable_slurpd="auto"
2597 # end --enable-slurpd
2599 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2600 if test "${with_xxliboptions+set}" = set; then
2601 withval="$with_xxliboptions"
2605 # Check whether --enable-static or --disable-static was given.
2606 if test "${enable_static+set}" = set; then
2607 enableval="$enable_static"
2608 p=${PACKAGE-default}
2610 yes) enable_static=yes ;;
2611 no) enable_static=no ;;
2614 # Look at the argument we got. We use all the common list separators.
2615 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2616 for pkg in $enableval; do
2617 if test "X$pkg" = "X$p"; then
2628 # Check whether --enable-shared or --disable-shared was given.
2629 if test "${enable_shared+set}" = set; then
2630 enableval="$enable_shared"
2631 p=${PACKAGE-default}
2633 yes) enable_shared=yes ;;
2634 no) enable_shared=no ;;
2637 # Look at the argument we got. We use all the common list separators.
2638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2639 for pkg in $enableval; do
2640 if test "X$pkg" = "X$p"; then
2654 if test $ol_enable_slapd = no ; then
2655 if test $ol_enable_slapi = yes ; then
2656 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2658 case "$ol_enable_backends" in yes | mod)
2659 echo "configure: warning: slapd disabled, ignoring --enable-backends argument" 1>&2
2661 for i in $Backends; do
2662 eval "ol_tmp=\$ol_enable_$i"
2663 if test $ol_tmp != no ; then
2664 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2665 eval "ol_enable_$i=no"
2668 if test $ol_enable_modules = yes ; then
2669 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2671 if test $ol_enable_multimaster = yes ; then
2672 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2674 if test $ol_enable_wrappers = yes ; then
2675 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2677 if test $ol_enable_rlookups = yes ; then
2678 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2680 if test $ol_enable_aci = yes ; then
2681 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2683 if test $ol_with_ldbm_api != auto ; then
2684 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2686 if test $ol_with_ldbm_type != auto ; then
2687 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2689 if test $ol_enable_slurpd = yes ; then
2690 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2692 if test $ol_enable_rewrite = yes ; then
2693 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2695 case "$ol_enable_overlays" in yes | mod)
2696 echo "configure: warning: slapd disabled, ignoring --enable-overlays argument" 1>&2
2698 for i in $Overlays; do
2699 eval "ol_tmp=\$ol_enable_$i"
2700 if test $ol_tmp != no ; then
2701 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2702 eval "ol_enable_$i=no"
2706 # force settings to no
2711 ol_enable_modules=no
2712 ol_enable_multimaster=no
2713 ol_enable_rlookups=no
2715 ol_enable_wrappers=no
2718 ol_with_ldbm_type=no
2722 ol_enable_rewrite=no
2724 elif test $ol_enable_ldbm = no ; then
2726 if test $ol_with_ldbm_api != auto ; then
2727 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2730 if test $ol_with_ldbm_type != auto ; then
2731 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2734 if test $ol_enable_modules != yes -a \
2735 $ol_enable_bdb = no -a \
2736 $ol_enable_dnssrv = no -a \
2737 $ol_enable_hdb = no -a \
2738 $ol_enable_ldap = no -a \
2739 $ol_enable_meta = no -a \
2740 $ol_enable_monitor = no -a \
2741 $ol_enable_null = no -a \
2742 $ol_enable_passwd = no -a \
2743 $ol_enable_perl = no -a \
2744 $ol_enable_relay = no -a \
2745 $ol_enable_shell = no -a \
2746 $ol_enable_sql = no ; then
2748 if test $ol_enable_slapd = yes ; then
2749 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2751 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2757 ol_with_ldbm_type=no
2759 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
2760 ol_with_ldbm_api=berkeley
2764 if test $ol_with_ldbm_api = gdbm -a \
2765 $ol_with_ldbm_type = btree ; then
2766 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2768 if test $ol_with_ldbm_api = mdbm -a \
2769 $ol_with_ldbm_type = btree ; then
2770 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2772 if test $ol_with_ldbm_api = ndbm -a \
2773 $ol_with_ldbm_type = btree ; then
2774 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2777 if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
2778 if test $ol_with_ldbm_api = auto ; then
2779 ol_with_ldbm_api=berkeley
2780 elif test $ol_with_ldbm_api != berkeley ; then
2781 { echo "configure: error: LDBM API not compatible with BDB/HDB" 1>&2; exit 1; }
2786 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
2787 { echo "configure: error: --enable-meta requires --enable-ldap" 1>&2; exit 1; }
2790 if test $ol_enable_slurpd = yes ; then
2791 if test $ol_with_threads = no ; then
2792 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2796 if test $ol_enable_lmpasswd = yes ; then
2797 if test $ol_with_tls = no ; then
2798 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2802 if test $ol_enable_kbind = yes ; then
2803 if test $ol_with_kerberos = no ; then
2804 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2805 elif test $ol_with_kerberos = auto ; then
2806 ol_with_kerberos=yes
2809 elif test $ol_enable_kbind = no ; then
2810 if test $ol_with_kerberos = auto ; then
2812 elif test $ol_with_kerberos != no ; then
2813 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2818 if test $ol_enable_spasswd = yes ; then
2819 if test $ol_with_cyrus_sasl = no ; then
2820 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2822 ol_with_cyrus_sasl=yes
2825 echo "$ac_t""done" 1>&6
2869 BUILD_TRANSLUCENT=no
2872 SLAPD_STATIC_OVERLAYS=
2873 SLAPD_DYNAMIC_OVERLAYS=
2875 SLAPD_MODULES_LDFLAGS=
2876 SLAPD_MODULES_CPPFLAGS=
2878 SLAPD_STATIC_BACKENDS=back-ldif
2879 SLAPD_DYNAMIC_BACKENDS=
2903 cat >> confdefs.h <<\EOF
2904 #define HAVE_MKVERSION 1
2912 *-*-aix*) if test -z "$CC" ; then
2913 case "$ol_with_threads" in
2914 auto | yes | posix) ol_aix_threads=yes ;;
2920 if test $ol_aix_threads = yes ; then
2921 if test -z "${CC}" ; then
2922 for ac_prog in cc_r xlc_r cc
2924 # Extract the first word of "$ac_prog", so it can be a program name with args.
2925 set dummy $ac_prog; ac_word=$2
2926 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2927 echo "configure:2928: checking for $ac_word" >&5
2928 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2929 echo $ac_n "(cached) $ac_c" 1>&6
2931 if test -n "$CC"; then
2932 ac_cv_prog_CC="$CC" # Let the user override the test.
2934 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2936 for ac_dir in $ac_dummy; do
2937 test -z "$ac_dir" && ac_dir=.
2938 if test -f $ac_dir/$ac_word; then
2939 ac_cv_prog_CC="$ac_prog"
2947 if test -n "$CC"; then
2948 echo "$ac_t""$CC" 1>&6
2950 echo "$ac_t""no" 1>&6
2953 test -n "$CC" && break
2957 if test "$CC" = cc ; then
2958 if test $ol_with_threads != auto ; then
2959 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2961 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2967 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2968 ol_with_threads=posix
2969 ol_cv_pthread_create=yes
2973 if test -z "${CC}"; then
2974 for ac_prog in cc gcc
2976 # Extract the first word of "$ac_prog", so it can be a program name with args.
2977 set dummy $ac_prog; ac_word=$2
2978 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2979 echo "configure:2980: checking for $ac_word" >&5
2980 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2981 echo $ac_n "(cached) $ac_c" 1>&6
2983 if test -n "$CC"; then
2984 ac_cv_prog_CC="$CC" # Let the user override the test.
2986 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2988 for ac_dir in $ac_dummy; do
2989 test -z "$ac_dir" && ac_dir=.
2990 if test -f $ac_dir/$ac_word; then
2991 ac_cv_prog_CC="$ac_prog"
2999 if test -n "$CC"; then
3000 echo "$ac_t""$CC" 1>&6
3002 echo "$ac_t""no" 1>&6
3005 test -n "$CC" && break
3007 test -n "$CC" || CC="missing"
3010 if test "${CC}" = "missing" ; then
3011 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
3015 if test -z "${AR}"; then
3016 for ac_prog in ar gar
3018 # Extract the first word of "$ac_prog", so it can be a program name with args.
3019 set dummy $ac_prog; ac_word=$2
3020 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3021 echo "configure:3022: checking for $ac_word" >&5
3022 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3023 echo $ac_n "(cached) $ac_c" 1>&6
3025 if test -n "$AR"; then
3026 ac_cv_prog_AR="$AR" # Let the user override the test.
3028 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3030 for ac_dir in $ac_dummy; do
3031 test -z "$ac_dir" && ac_dir=.
3032 if test -f $ac_dir/$ac_word; then
3033 ac_cv_prog_AR="$ac_prog"
3041 if test -n "$AR"; then
3042 echo "$ac_t""$AR" 1>&6
3044 echo "$ac_t""no" 1>&6
3047 test -n "$AR" && break
3049 test -n "$AR" || AR="missing"
3052 if test "${AR}" = "missing" ; then
3053 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3059 # Find the correct PATH separator. Usually this is `:', but
3060 # DJGPP uses `;' like DOS.
3061 if test "X${PATH_SEPARATOR+set}" != Xset; then
3062 UNAME=${UNAME-`uname 2>/dev/null`}
3064 *-DOS) lt_cv_sys_path_separator=';' ;;
3065 *) lt_cv_sys_path_separator=':' ;;
3067 PATH_SEPARATOR=$lt_cv_sys_path_separator
3070 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3071 echo "configure:3072: checking for Cygwin environment" >&5
3072 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3073 echo $ac_n "(cached) $ac_c" 1>&6
3075 cat > conftest.$ac_ext <<EOF
3076 #line 3077 "configure"
3077 #include "confdefs.h"
3082 #define __CYGWIN__ __CYGWIN32__
3087 if { (eval echo configure:3088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3091 echo "configure: failed program was:" >&5
3092 cat conftest.$ac_ext >&5
3099 echo "$ac_t""$ac_cv_cygwin" 1>&6
3101 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3102 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3103 echo "configure:3104: checking for mingw32 environment" >&5
3104 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3105 echo $ac_n "(cached) $ac_c" 1>&6
3107 cat > conftest.$ac_ext <<EOF
3108 #line 3109 "configure"
3109 #include "confdefs.h"
3115 if { (eval echo configure:3116: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3119 echo "configure: failed program was:" >&5
3120 cat conftest.$ac_ext >&5
3127 echo "$ac_t""$ac_cv_mingw32" 1>&6
3129 test "$ac_cv_mingw32" = yes && MINGW32=yes
3130 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3131 echo "configure:3132: checking for EMX OS/2 environment" >&5
3132 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3133 echo $ac_n "(cached) $ac_c" 1>&6
3135 cat > conftest.$ac_ext <<EOF
3136 #line 3137 "configure"
3137 #include "confdefs.h"
3143 if { (eval echo configure:3144: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3147 echo "configure: failed program was:" >&5
3148 cat conftest.$ac_ext >&5
3155 echo "$ac_t""$ac_cv_emxos2" 1>&6
3157 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3158 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3159 echo "configure:3160: checking how to run the C preprocessor" >&5
3160 # On Suns, sometimes $CPP names a directory.
3161 if test -n "$CPP" && test -d "$CPP"; then
3164 if test -z "$CPP"; then
3165 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3166 echo $ac_n "(cached) $ac_c" 1>&6
3168 # This must be in double quotes, not single quotes, because CPP may get
3169 # substituted into the Makefile and "${CC-cc}" will confuse make.
3171 # On the NeXT, cc -E runs the code through the compiler's parser,
3172 # not just through cpp.
3173 cat > conftest.$ac_ext <<EOF
3174 #line 3175 "configure"
3175 #include "confdefs.h"
3179 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3180 { (eval echo configure:3181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3181 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3182 if test -z "$ac_err"; then
3186 echo "configure: failed program was:" >&5
3187 cat conftest.$ac_ext >&5
3189 CPP="${CC-cc} -E -traditional-cpp"
3190 cat > conftest.$ac_ext <<EOF
3191 #line 3192 "configure"
3192 #include "confdefs.h"
3196 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3197 { (eval echo configure:3198: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3198 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3199 if test -z "$ac_err"; then
3203 echo "configure: failed program was:" >&5
3204 cat conftest.$ac_ext >&5
3206 CPP="${CC-cc} -nologo -E"
3207 cat > conftest.$ac_ext <<EOF
3208 #line 3209 "configure"
3209 #include "confdefs.h"
3213 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3214 { (eval echo configure:3215: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3215 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3216 if test -z "$ac_err"; then
3220 echo "configure: failed program was:" >&5
3221 cat conftest.$ac_ext >&5
3230 ac_cv_prog_CPP="$CPP"
3232 CPP="$ac_cv_prog_CPP"
3234 ac_cv_prog_CPP="$CPP"
3236 echo "$ac_t""$CPP" 1>&6
3238 # Check whether --enable-fast-install or --disable-fast-install was given.
3239 if test "${enable_fast_install+set}" = set; then
3240 enableval="$enable_fast_install"
3241 p=${PACKAGE-default}
3243 yes) enable_fast_install=yes ;;
3244 no) enable_fast_install=no ;;
3246 enable_fast_install=no
3247 # Look at the argument we got. We use all the common list separators.
3248 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3249 for pkg in $enableval; do
3250 if test "X$pkg" = "X$p"; then
3251 enable_fast_install=yes
3258 enable_fast_install=yes
3261 # Extract the first word of "gcc", so it can be a program name with args.
3262 set dummy gcc; ac_word=$2
3263 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3264 echo "configure:3265: checking for $ac_word" >&5
3265 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3266 echo $ac_n "(cached) $ac_c" 1>&6
3268 if test -n "$CC"; then
3269 ac_cv_prog_CC="$CC" # Let the user override the test.
3271 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3273 for ac_dir in $ac_dummy; do
3274 test -z "$ac_dir" && ac_dir=.
3275 if test -f $ac_dir/$ac_word; then
3284 if test -n "$CC"; then
3285 echo "$ac_t""$CC" 1>&6
3287 echo "$ac_t""no" 1>&6
3290 if test -z "$CC"; then
3291 # Extract the first word of "cc", so it can be a program name with args.
3292 set dummy cc; ac_word=$2
3293 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3294 echo "configure:3295: checking for $ac_word" >&5
3295 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3296 echo $ac_n "(cached) $ac_c" 1>&6
3298 if test -n "$CC"; then
3299 ac_cv_prog_CC="$CC" # Let the user override the test.
3301 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3304 for ac_dir in $ac_dummy; do
3305 test -z "$ac_dir" && ac_dir=.
3306 if test -f $ac_dir/$ac_word; then
3307 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3308 ac_prog_rejected=yes
3316 if test $ac_prog_rejected = yes; then
3317 # We found a bogon in the path, so make sure we never use it.
3318 set dummy $ac_cv_prog_CC
3320 if test $# -gt 0; then
3321 # We chose a different compiler from the bogus one.
3322 # However, it has the same basename, so the bogon will be chosen
3323 # first if we set CC to just the basename; use the full file name.
3325 set dummy "$ac_dir/$ac_word" "$@"
3333 if test -n "$CC"; then
3334 echo "$ac_t""$CC" 1>&6
3336 echo "$ac_t""no" 1>&6
3339 if test -z "$CC"; then
3340 case "`uname -s`" in
3341 *win32* | *WIN32* | *CYGWIN*)
3342 # Extract the first word of "cl", so it can be a program name with args.
3343 set dummy cl; ac_word=$2
3344 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3345 echo "configure:3346: checking for $ac_word" >&5
3346 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3347 echo $ac_n "(cached) $ac_c" 1>&6
3349 if test -n "$CC"; then
3350 ac_cv_prog_CC="$CC" # Let the user override the test.
3352 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3354 for ac_dir in $ac_dummy; do
3355 test -z "$ac_dir" && ac_dir=.
3356 if test -f $ac_dir/$ac_word; then
3365 if test -n "$CC"; then
3366 echo "$ac_t""$CC" 1>&6
3368 echo "$ac_t""no" 1>&6
3373 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3376 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3377 echo "configure:3378: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3380 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3381 ac_cpp='$CPP $CPPFLAGS'
3382 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3383 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3384 cross_compiling=$ac_cv_prog_cc_cross
3386 cat > conftest.$ac_ext << EOF
3388 #line 3389 "configure"
3389 #include "confdefs.h"
3393 if { (eval echo configure:3394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3394 ac_cv_prog_cc_works=yes
3395 # If we can't run a trivial program, we are probably using a cross compiler.
3396 if (./conftest; exit) 2>/dev/null; then
3397 ac_cv_prog_cc_cross=no
3399 ac_cv_prog_cc_cross=yes
3402 echo "configure: failed program was:" >&5
3403 cat conftest.$ac_ext >&5
3404 ac_cv_prog_cc_works=no
3408 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3409 ac_cpp='$CPP $CPPFLAGS'
3410 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3411 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3412 cross_compiling=$ac_cv_prog_cc_cross
3414 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3415 if test $ac_cv_prog_cc_works = no; then
3416 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3418 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3419 echo "configure:3420: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3420 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3421 cross_compiling=$ac_cv_prog_cc_cross
3423 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3424 echo "configure:3425: checking whether we are using GNU C" >&5
3425 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3426 echo $ac_n "(cached) $ac_c" 1>&6
3428 cat > conftest.c <<EOF
3433 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3440 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3442 if test $ac_cv_prog_gcc = yes; then
3448 ac_test_CFLAGS="${CFLAGS+set}"
3449 ac_save_CFLAGS="$CFLAGS"
3451 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3452 echo "configure:3453: checking whether ${CC-cc} accepts -g" >&5
3453 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3454 echo $ac_n "(cached) $ac_c" 1>&6
3456 echo 'void f(){}' > conftest.c
3457 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3466 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3467 if test "$ac_test_CFLAGS" = set; then
3468 CFLAGS="$ac_save_CFLAGS"
3469 elif test $ac_cv_prog_cc_g = yes; then
3470 if test "$GCC" = yes; then
3476 if test "$GCC" = yes; then
3483 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3484 if test "${with_gnu_ld+set}" = set; then
3485 withval="$with_gnu_ld"
3486 test "$withval" = no || with_gnu_ld=yes
3492 if test "$GCC" = yes; then
3493 # Check if gcc -print-prog-name=ld gives a path.
3494 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3495 echo "configure:3496: checking for ld used by GCC" >&5
3498 # gcc leaves a trailing carriage return which upsets mingw
3499 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3501 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3504 # Accept absolute paths.
3505 [\\/]* | [A-Za-z]:[\\/]*)
3506 re_direlt='/[^/][^/]*/\.\./'
3507 # Canonicalize the path of ld
3508 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3509 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3510 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3512 test -z "$LD" && LD="$ac_prog"
3515 # If it fails, then pretend we aren't using GCC.
3519 # If it is relative, then search for the first ld in PATH.
3523 elif test "$with_gnu_ld" = yes; then
3524 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3525 echo "configure:3526: checking for GNU ld" >&5
3527 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3528 echo "configure:3529: checking for non-GNU ld" >&5
3530 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3531 echo $ac_n "(cached) $ac_c" 1>&6
3533 if test -z "$LD"; then
3534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3535 for ac_dir in $PATH; do
3536 test -z "$ac_dir" && ac_dir=.
3537 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3538 lt_cv_path_LD="$ac_dir/$ac_prog"
3539 # Check to see if the program is GNU ld. I'd rather use --version,
3540 # but apparently some GNU ld's only accept -v.
3541 # Break only if it was the GNU/non-GNU ld that we prefer.
3542 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3543 test "$with_gnu_ld" != no && break
3545 test "$with_gnu_ld" != yes && break
3551 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3556 if test -n "$LD"; then
3557 echo "$ac_t""$LD" 1>&6
3559 echo "$ac_t""no" 1>&6
3561 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3562 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3563 echo "configure:3564: checking if the linker ($LD) is GNU ld" >&5
3564 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3565 echo $ac_n "(cached) $ac_c" 1>&6
3567 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3568 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3569 lt_cv_prog_gnu_ld=yes
3571 lt_cv_prog_gnu_ld=no
3575 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3576 with_gnu_ld=$lt_cv_prog_gnu_ld
3579 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3580 echo "configure:3581: checking for $LD option to reload object files" >&5
3581 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3582 echo $ac_n "(cached) $ac_c" 1>&6
3584 lt_cv_ld_reload_flag='-r'
3587 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3588 reload_flag=$lt_cv_ld_reload_flag
3589 test -n "$reload_flag" && reload_flag=" $reload_flag"
3591 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3592 echo "configure:3593: checking for BSD-compatible nm" >&5
3593 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3594 echo $ac_n "(cached) $ac_c" 1>&6
3596 if test -n "$NM"; then
3597 # Let the user override the test.
3600 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3601 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3602 test -z "$ac_dir" && ac_dir=.
3603 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3604 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3605 # Check to see if the nm accepts a BSD-compat flag.
3606 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3607 # nm: unknown option "B" ignored
3608 # Tru64's nm complains that /dev/null is an invalid object file
3609 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3610 lt_cv_path_NM="$tmp_nm -B"
3612 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3613 lt_cv_path_NM="$tmp_nm -p"
3616 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3617 continue # so that we can try to find one that supports BSD flags
3622 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3627 echo "$ac_t""$NM" 1>&6
3629 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3630 echo "configure:3631: checking for a sed that does not truncate output" >&5
3631 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3632 echo $ac_n "(cached) $ac_c" 1>&6
3634 # Loop through the user's path and test for sed and gsed.
3635 # Then use that list of sed's as ones to test for truncation.
3636 as_executable_p="test -f"
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 test -z "$as_dir" && as_dir=.
3642 for ac_prog in sed gsed; do
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3645 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3651 # Create a temporary directory, and hook for its removal unless debugging.
3654 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3655 trap '{ (exit 1); exit 1; }' 1 2 13 15
3658 # Create a (secure) tmp directory for tmp files.
3661 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3662 test -n "$tmp" && test -d "$tmp"
3665 tmp=$TMPDIR/sed$$-$RANDOM
3666 (umask 077 && mkdir $tmp)
3669 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3670 { (exit 1); exit 1; }
3674 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3675 # along with /bin/sed that truncates output.
3676 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3677 test ! -f ${_sed} && break
3678 cat /dev/null > "$tmp/sed.in"
3680 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3681 # Check for GNU sed and select it if it is found.
3682 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3683 lt_cv_path_SED=${_sed}
3687 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3688 mv "$tmp/sed.tmp" "$tmp/sed.in"
3689 cp "$tmp/sed.in" "$tmp/sed.nl"
3690 echo >>"$tmp/sed.nl"
3691 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3692 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3693 # 40000 chars as input seems more than enough
3694 test $_count -gt 10 && break
3695 _count=`expr $_count + 1`
3696 if test $_count -gt $_max; then
3698 lt_cv_path_SED=$_sed
3706 if test "X$SED" != "X"; then
3711 echo "$ac_t""$SED" 1>&6
3713 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3714 echo "configure:3715: checking whether ln -s works" >&5
3715 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3716 echo $ac_n "(cached) $ac_c" 1>&6
3719 if ln -s X conftestdata 2>/dev/null
3722 ac_cv_prog_LN_S="ln -s"
3727 LN_S="$ac_cv_prog_LN_S"
3728 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3729 echo "$ac_t""yes" 1>&6
3731 echo "$ac_t""no" 1>&6
3734 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3735 echo "configure:3736: checking how to recognise dependent libraries" >&5
3736 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3737 echo $ac_n "(cached) $ac_c" 1>&6
3739 lt_cv_file_magic_cmd='$MAGIC_CMD'
3740 lt_cv_file_magic_test_file=
3741 lt_cv_deplibs_check_method='unknown'
3742 # Need to set the preceding variable on all platforms that support
3743 # interlibrary dependencies.
3744 # 'none' -- dependencies not supported.
3745 # `unknown' -- same as none, but documents that we really don't know.
3746 # 'pass_all' -- all dependencies passed with no checks.
3747 # 'test_compile' -- check by making test program.
3748 # 'file_magic [[regex]]' -- check by looking for files in library path
3749 # which responds to the $file_magic_cmd with a given egrep regex.
3750 # If you have `file' or equivalent on your system and you're not sure
3751 # whether `pass_all' will *always* work, you probably want this one.
3755 lt_cv_deplibs_check_method=pass_all
3759 lt_cv_deplibs_check_method=pass_all
3763 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3764 lt_cv_file_magic_cmd='/usr/bin/file -L'
3765 lt_cv_file_magic_test_file=/shlib/libc.so
3768 cygwin* | mingw* | pw32*)
3769 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3770 lt_cv_file_magic_cmd='$OBJDUMP -f'
3773 darwin* | rhapsody*)
3774 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3775 lt_cv_file_magic_cmd='/usr/bin/file -L'
3777 rhapsody* | darwin1.[012])
3778 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3781 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3787 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3790 # Not sure whether the presence of OpenBSD here was a mistake.
3791 # Let's accept both of them until this is cleared up.
3792 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3793 lt_cv_file_magic_cmd=/usr/bin/file
3794 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3798 lt_cv_deplibs_check_method=pass_all
3803 lt_cv_deplibs_check_method=pass_all
3807 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3808 lt_cv_file_magic_cmd=/usr/bin/file
3809 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3812 irix5* | irix6* | nonstopux*)
3814 irix5* | nonstopux*)
3815 # this will be overridden with pass_all, but let us keep it just in case
3816 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3820 *-32|*"-32 ") libmagic=32-bit;;
3821 *-n32|*"-n32 ") libmagic=N32;;
3822 *-64|*"-64 ") libmagic=64-bit;;
3823 *) libmagic=never-match;;
3825 # this will be overridden with pass_all, but let us keep it just in case
3826 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3829 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3830 lt_cv_deplibs_check_method=pass_all
3833 # This must be Linux ELF.
3836 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3837 lt_cv_deplibs_check_method=pass_all ;;
3839 # glibc up to 2.1.1 does not perform some relocations on ARM
3840 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3842 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3846 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3847 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3849 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3854 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3855 lt_cv_file_magic_cmd=/usr/bin/file
3856 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3860 lt_cv_file_magic_cmd=/usr/bin/file
3861 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3862 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3863 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3865 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3869 osf3* | osf4* | osf5*)
3870 # this will be overridden with pass_all, but let us keep it just in case
3871 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3872 lt_cv_file_magic_test_file=/shlib/libc.so
3873 lt_cv_deplibs_check_method=pass_all
3877 lt_cv_deplibs_check_method=pass_all
3881 lt_cv_deplibs_check_method=pass_all
3882 lt_cv_file_magic_test_file=/lib/libc.so
3885 sysv5uw[78]* | sysv4*uw2*)
3886 lt_cv_deplibs_check_method=pass_all
3889 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3890 case $host_vendor in
3892 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]'
3893 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3896 lt_cv_deplibs_check_method=pass_all
3899 lt_cv_file_magic_cmd='/bin/file'
3900 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3903 lt_cv_file_magic_cmd='/bin/file'
3904 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3905 lt_cv_file_magic_test_file=/lib/libc.so
3908 lt_cv_deplibs_check_method=pass_all
3916 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3917 file_magic_cmd=$lt_cv_file_magic_cmd
3918 deplibs_check_method=$lt_cv_deplibs_check_method
3920 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3921 echo "configure:3922: checking for object suffix" >&5
3922 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3923 echo $ac_n "(cached) $ac_c" 1>&6
3926 echo 'int i = 1;' > conftest.$ac_ext
3927 if { (eval echo configure:3928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3928 for ac_file in conftest.*; do
3931 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3935 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3940 echo "$ac_t""$ac_cv_objext" 1>&6
3941 OBJEXT=$ac_cv_objext
3942 ac_objext=$ac_cv_objext
3947 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3948 echo "configure:3949: checking for executable suffix" >&5
3949 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3950 echo $ac_n "(cached) $ac_c" 1>&6
3952 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3956 echo 'int main () { return 0; }' > conftest.$ac_ext
3958 if { (eval echo configure:3959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3959 for file in conftest.*; do
3961 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3962 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3966 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3969 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3974 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3975 echo "$ac_t""${ac_cv_exeext}" 1>&6
3978 if test $host != $build; then
3979 ac_tool_prefix=${host_alias}-
3987 # Check for command to grab the raw symbol name followed by C symbol from nm.
3988 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3989 echo "configure:3990: checking command to parse $NM output" >&5
3990 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
3991 echo $ac_n "(cached) $ac_c" 1>&6
3994 # These are sane defaults that work on at least a few old systems.
3995 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3997 # Character class describing NM global symbol codes.
3998 symcode='[BCDEGRST]'
4000 # Regexp to match symbols that can be accessed directly from C.
4001 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4003 # Transform the above into a raw symbol and a C symbol.
4004 symxfrm='\1 \2\3 \3'
4006 # Transform an extracted symbol line into a proper C declaration
4007 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4009 # Transform an extracted symbol line into symbol name and symbol address
4010 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'"
4012 # Define system-specific variables.
4017 cygwin* | mingw* | pw32*)
4018 symcode='[ABCDGISTW]'
4020 hpux*) # Its linker distinguishes data from code symbols
4021 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4022 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'"
4025 symcode='[BCDEGRST]'
4028 symcode='[BCDEGQRST]'
4038 # Handle CRLF in mingw tool chain
4042 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4046 # If we're using GNU nm, then use its standard symbol codes.
4047 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4048 symcode='[ABCDGISTW]'
4051 # Try without a prefix undercore, then with it.
4052 for ac_symprfx in "" "_"; do
4054 # Write the raw and C identifiers.
4055 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4057 # Check to see that the pipe works correctly.
4060 cat > conftest.$ac_ext <<EOF
4065 void nm_test_func(){}
4069 int main(){nm_test_var='a';nm_test_func();return(0);}
4072 if { (eval echo configure:4073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4073 # Now try to grab the symbols.
4075 if { (eval echo configure:4076: \"$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
4076 # Try sorting and uniquifying the output.
4077 if sort "$nlist" | uniq > "$nlist"T; then
4078 mv -f "$nlist"T "$nlist"
4083 # Make sure that we snagged all the symbols we need.
4084 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4085 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4086 cat <<EOF > conftest.$ac_ext
4092 # Now generate the symbol file.
4093 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4095 cat <<EOF >> conftest.$ac_ext
4096 #if defined (__STDC__) && __STDC__
4097 # define lt_ptr void *
4099 # define lt_ptr char *
4103 /* The mapping between symbol names and symbols. */
4108 lt_preloaded_symbols[] =
4111 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4112 cat <<\EOF >> conftest.$ac_ext
4120 # Now try linking the two files.
4121 mv conftest.$ac_objext conftstm.$ac_objext
4123 save_CFLAGS="$CFLAGS"
4124 LIBS="conftstm.$ac_objext"
4125 CFLAGS="$CFLAGS$no_builtin_flag"
4126 if { (eval echo configure:4127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4130 CFLAGS="$save_CFLAGS"
4132 echo "cannot find nm_test_func in $nlist" >&5
4135 echo "cannot find nm_test_var in $nlist" >&5
4138 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4141 echo "$progname: failed program was:" >&5
4142 cat conftest.$ac_ext >&5
4144 rm -f conftest* conftst*
4146 # Do not use the global_symbol_pipe unless it works.
4147 if test "$pipe_works" = yes; then
4150 lt_cv_sys_global_symbol_pipe=
4156 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4157 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4158 global_symbol_to_cdecl=
4159 global_symbol_to_c_name_address=
4161 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4162 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4164 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4166 echo "$ac_t""failed" 1>&6
4168 echo "$ac_t""ok" 1>&6
4171 for ac_hdr in dlfcn.h
4173 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4174 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4175 echo "configure:4176: checking for $ac_hdr" >&5
4176 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4177 echo $ac_n "(cached) $ac_c" 1>&6
4179 cat > conftest.$ac_ext <<EOF
4180 #line 4181 "configure"
4181 #include "confdefs.h"
4184 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4185 { (eval echo configure:4186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4186 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4187 if test -z "$ac_err"; then
4189 eval "ac_cv_header_$ac_safe=yes"
4192 echo "configure: failed program was:" >&5
4193 cat conftest.$ac_ext >&5
4195 eval "ac_cv_header_$ac_safe=no"
4199 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4200 echo "$ac_t""yes" 1>&6
4201 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4202 cat >> confdefs.h <<EOF
4203 #define $ac_tr_hdr 1
4207 echo "$ac_t""no" 1>&6
4216 # Only perform the check for file, if the check method requires it
4217 case $deplibs_check_method in
4219 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4220 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4221 echo "configure:4222: checking for ${ac_tool_prefix}file" >&5
4222 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4223 echo $ac_n "(cached) $ac_c" 1>&6
4227 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4230 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4233 ac_save_MAGIC_CMD="$MAGIC_CMD"
4234 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4235 ac_dummy="/usr/bin:$PATH"
4236 for ac_dir in $ac_dummy; do
4237 test -z "$ac_dir" && ac_dir=.
4238 if test -f $ac_dir/${ac_tool_prefix}file; then
4239 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4240 if test -n "$file_magic_test_file"; then
4241 case $deplibs_check_method in
4243 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4244 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4245 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4246 egrep "$file_magic_regex" > /dev/null; then
4251 *** Warning: the command libtool uses to detect shared libraries,
4252 *** $file_magic_cmd, produces output that libtool cannot recognize.
4253 *** The result is that libtool may fail to recognize shared libraries
4254 *** as such. This will affect the creation of libtool libraries that
4255 *** depend on shared libraries, but programs linked with such libtool
4256 *** libraries will work regardless of this problem. Nevertheless, you
4257 *** may want to report the problem to your system manager and/or to
4258 *** bug-libtool@gnu.org
4268 MAGIC_CMD="$ac_save_MAGIC_CMD"
4273 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4274 if test -n "$MAGIC_CMD"; then
4275 echo "$ac_t""$MAGIC_CMD" 1>&6
4277 echo "$ac_t""no" 1>&6
4280 if test -z "$lt_cv_path_MAGIC_CMD"; then
4281 if test -n "$ac_tool_prefix"; then
4282 echo $ac_n "checking for file""... $ac_c" 1>&6
4283 echo "configure:4284: checking for file" >&5
4284 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4285 echo $ac_n "(cached) $ac_c" 1>&6
4289 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4292 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4295 ac_save_MAGIC_CMD="$MAGIC_CMD"
4296 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4297 ac_dummy="/usr/bin:$PATH"
4298 for ac_dir in $ac_dummy; do
4299 test -z "$ac_dir" && ac_dir=.
4300 if test -f $ac_dir/file; then
4301 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4302 if test -n "$file_magic_test_file"; then
4303 case $deplibs_check_method in
4305 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4306 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4307 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4308 egrep "$file_magic_regex" > /dev/null; then
4313 *** Warning: the command libtool uses to detect shared libraries,
4314 *** $file_magic_cmd, produces output that libtool cannot recognize.
4315 *** The result is that libtool may fail to recognize shared libraries
4316 *** as such. This will affect the creation of libtool libraries that
4317 *** depend on shared libraries, but programs linked with such libtool
4318 *** libraries will work regardless of this problem. Nevertheless, you
4319 *** may want to report the problem to your system manager and/or to
4320 *** bug-libtool@gnu.org
4330 MAGIC_CMD="$ac_save_MAGIC_CMD"
4335 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4336 if test -n "$MAGIC_CMD"; then
4337 echo "$ac_t""$MAGIC_CMD" 1>&6
4339 echo "$ac_t""no" 1>&6
4351 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4352 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4353 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4354 echo "configure:4355: checking for $ac_word" >&5
4355 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4356 echo $ac_n "(cached) $ac_c" 1>&6
4358 if test -n "$RANLIB"; then
4359 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4361 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4363 for ac_dir in $ac_dummy; do
4364 test -z "$ac_dir" && ac_dir=.
4365 if test -f $ac_dir/$ac_word; then
4366 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4373 RANLIB="$ac_cv_prog_RANLIB"
4374 if test -n "$RANLIB"; then
4375 echo "$ac_t""$RANLIB" 1>&6
4377 echo "$ac_t""no" 1>&6
4381 if test -z "$ac_cv_prog_RANLIB"; then
4382 if test -n "$ac_tool_prefix"; then
4383 # Extract the first word of "ranlib", so it can be a program name with args.
4384 set dummy ranlib; ac_word=$2
4385 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4386 echo "configure:4387: checking for $ac_word" >&5
4387 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4388 echo $ac_n "(cached) $ac_c" 1>&6
4390 if test -n "$RANLIB"; then
4391 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4393 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4395 for ac_dir in $ac_dummy; do
4396 test -z "$ac_dir" && ac_dir=.
4397 if test -f $ac_dir/$ac_word; then
4398 ac_cv_prog_RANLIB="ranlib"
4403 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4406 RANLIB="$ac_cv_prog_RANLIB"
4407 if test -n "$RANLIB"; then
4408 echo "$ac_t""$RANLIB" 1>&6
4410 echo "$ac_t""no" 1>&6
4418 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4419 set dummy ${ac_tool_prefix}strip; ac_word=$2
4420 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4421 echo "configure:4422: checking for $ac_word" >&5
4422 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4423 echo $ac_n "(cached) $ac_c" 1>&6
4425 if test -n "$STRIP"; then
4426 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4428 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4430 for ac_dir in $ac_dummy; do
4431 test -z "$ac_dir" && ac_dir=.
4432 if test -f $ac_dir/$ac_word; then
4433 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4440 STRIP="$ac_cv_prog_STRIP"
4441 if test -n "$STRIP"; then
4442 echo "$ac_t""$STRIP" 1>&6
4444 echo "$ac_t""no" 1>&6
4448 if test -z "$ac_cv_prog_STRIP"; then
4449 if test -n "$ac_tool_prefix"; then
4450 # Extract the first word of "strip", so it can be a program name with args.
4451 set dummy strip; ac_word=$2
4452 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4453 echo "configure:4454: checking for $ac_word" >&5
4454 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4455 echo $ac_n "(cached) $ac_c" 1>&6
4457 if test -n "$STRIP"; then
4458 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4462 for ac_dir in $ac_dummy; do
4463 test -z "$ac_dir" && ac_dir=.
4464 if test -f $ac_dir/$ac_word; then
4465 ac_cv_prog_STRIP="strip"
4470 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4473 STRIP="$ac_cv_prog_STRIP"
4474 if test -n "$STRIP"; then
4475 echo "$ac_t""$STRIP" 1>&6
4477 echo "$ac_t""no" 1>&6
4487 enable_win32_dll=yes
4489 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4490 if test "${enable_libtool_lock+set}" = set; then
4491 enableval="$enable_libtool_lock"
4495 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4497 # Some flags need to be propagated to the compiler or linker for good
4501 # Find out which ABI we are using.
4502 echo '#line 4503 "configure"' > conftest.$ac_ext
4503 if { (eval echo configure:4504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4504 case `/usr/bin/file conftest.$ac_objext` in
4520 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4521 SAVE_CFLAGS="$CFLAGS"
4522 CFLAGS="$CFLAGS -belf"
4523 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4524 echo "configure:4525: checking whether the C compiler needs -belf" >&5
4525 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4526 echo $ac_n "(cached) $ac_c" 1>&6
4530 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4531 ac_cpp='$CPP $CPPFLAGS'
4532 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4533 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4534 cross_compiling=$ac_cv_prog_cc_cross
4536 cat > conftest.$ac_ext <<EOF
4537 #line 4538 "configure"
4538 #include "confdefs.h"
4544 if { (eval echo configure:4545: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4546 lt_cv_cc_needs_belf=yes
4548 echo "configure: failed program was:" >&5
4549 cat conftest.$ac_ext >&5
4551 lt_cv_cc_needs_belf=no
4555 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4556 ac_cpp='$CPP $CPPFLAGS'
4557 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4558 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4559 cross_compiling=$ac_cv_prog_cc_cross
4563 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4564 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4565 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4566 CFLAGS="$SAVE_CFLAGS"
4570 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4571 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4572 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4573 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4574 echo "configure:4575: checking for $ac_word" >&5
4575 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4576 echo $ac_n "(cached) $ac_c" 1>&6
4578 if test -n "$DLLTOOL"; then
4579 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4581 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4583 for ac_dir in $ac_dummy; do
4584 test -z "$ac_dir" && ac_dir=.
4585 if test -f $ac_dir/$ac_word; then
4586 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4593 DLLTOOL="$ac_cv_prog_DLLTOOL"
4594 if test -n "$DLLTOOL"; then
4595 echo "$ac_t""$DLLTOOL" 1>&6
4597 echo "$ac_t""no" 1>&6
4601 if test -z "$ac_cv_prog_DLLTOOL"; then
4602 if test -n "$ac_tool_prefix"; then
4603 # Extract the first word of "dlltool", so it can be a program name with args.
4604 set dummy dlltool; ac_word=$2
4605 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4606 echo "configure:4607: checking for $ac_word" >&5
4607 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4608 echo $ac_n "(cached) $ac_c" 1>&6
4610 if test -n "$DLLTOOL"; then
4611 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4613 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4615 for ac_dir in $ac_dummy; do
4616 test -z "$ac_dir" && ac_dir=.
4617 if test -f $ac_dir/$ac_word; then
4618 ac_cv_prog_DLLTOOL="dlltool"
4623 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4626 DLLTOOL="$ac_cv_prog_DLLTOOL"
4627 if test -n "$DLLTOOL"; then
4628 echo "$ac_t""$DLLTOOL" 1>&6
4630 echo "$ac_t""no" 1>&6
4638 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4639 set dummy ${ac_tool_prefix}as; ac_word=$2
4640 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4641 echo "configure:4642: checking for $ac_word" >&5
4642 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4643 echo $ac_n "(cached) $ac_c" 1>&6
4645 if test -n "$AS"; then
4646 ac_cv_prog_AS="$AS" # Let the user override the test.
4648 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4650 for ac_dir in $ac_dummy; do
4651 test -z "$ac_dir" && ac_dir=.
4652 if test -f $ac_dir/$ac_word; then
4653 ac_cv_prog_AS="${ac_tool_prefix}as"
4661 if test -n "$AS"; then
4662 echo "$ac_t""$AS" 1>&6
4664 echo "$ac_t""no" 1>&6
4668 if test -z "$ac_cv_prog_AS"; then
4669 if test -n "$ac_tool_prefix"; then
4670 # Extract the first word of "as", so it can be a program name with args.
4671 set dummy as; ac_word=$2
4672 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4673 echo "configure:4674: checking for $ac_word" >&5
4674 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4675 echo $ac_n "(cached) $ac_c" 1>&6
4677 if test -n "$AS"; then
4678 ac_cv_prog_AS="$AS" # Let the user override the test.
4680 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4682 for ac_dir in $ac_dummy; do
4683 test -z "$ac_dir" && ac_dir=.
4684 if test -f $ac_dir/$ac_word; then
4690 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4694 if test -n "$AS"; then
4695 echo "$ac_t""$AS" 1>&6
4697 echo "$ac_t""no" 1>&6
4705 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4706 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4707 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4708 echo "configure:4709: checking for $ac_word" >&5
4709 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4710 echo $ac_n "(cached) $ac_c" 1>&6
4712 if test -n "$OBJDUMP"; then
4713 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4715 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4717 for ac_dir in $ac_dummy; do
4718 test -z "$ac_dir" && ac_dir=.
4719 if test -f $ac_dir/$ac_word; then
4720 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4727 OBJDUMP="$ac_cv_prog_OBJDUMP"
4728 if test -n "$OBJDUMP"; then
4729 echo "$ac_t""$OBJDUMP" 1>&6
4731 echo "$ac_t""no" 1>&6
4735 if test -z "$ac_cv_prog_OBJDUMP"; then
4736 if test -n "$ac_tool_prefix"; then
4737 # Extract the first word of "objdump", so it can be a program name with args.
4738 set dummy objdump; ac_word=$2
4739 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4740 echo "configure:4741: checking for $ac_word" >&5
4741 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4742 echo $ac_n "(cached) $ac_c" 1>&6
4744 if test -n "$OBJDUMP"; then
4745 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4747 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4749 for ac_dir in $ac_dummy; do
4750 test -z "$ac_dir" && ac_dir=.
4751 if test -f $ac_dir/$ac_word; then
4752 ac_cv_prog_OBJDUMP="objdump"
4757 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4760 OBJDUMP="$ac_cv_prog_OBJDUMP"
4761 if test -n "$OBJDUMP"; then
4762 echo "$ac_t""$OBJDUMP" 1>&6
4764 echo "$ac_t""no" 1>&6
4773 # recent cygwin and mingw systems supply a stub DllMain which the user
4774 # can override, but on older systems we have to supply one
4775 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4776 echo "configure:4777: checking if libtool should supply DllMain function" >&5
4777 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4778 echo $ac_n "(cached) $ac_c" 1>&6
4780 cat > conftest.$ac_ext <<EOF
4781 #line 4782 "configure"
4782 #include "confdefs.h"
4785 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4789 if { (eval echo configure:4790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4791 lt_cv_need_dllmain=no
4793 echo "configure: failed program was:" >&5
4794 cat conftest.$ac_ext >&5
4796 lt_cv_need_dllmain=yes
4801 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4804 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4805 # old mingw systems require "-dll" to link a DLL, while more recent ones
4807 SAVE_CFLAGS="$CFLAGS"
4808 CFLAGS="$CFLAGS -mdll"
4809 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4810 echo "configure:4811: checking how to link DLLs" >&5
4811 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4812 echo $ac_n "(cached) $ac_c" 1>&6
4814 cat > conftest.$ac_ext <<EOF
4815 #line 4816 "configure"
4816 #include "confdefs.h"
4822 if { (eval echo configure:4823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4824 lt_cv_cc_dll_switch=-mdll
4826 echo "configure: failed program was:" >&5
4827 cat conftest.$ac_ext >&5
4829 lt_cv_cc_dll_switch=-dll
4834 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4835 CFLAGS="$SAVE_CFLAGS" ;;
4836 *-*-cygwin* | *-*-pw32*)
4837 # cygwin systems need to pass --dll to the linker, and not link
4838 # crt.o which will require a WinMain@16 definition.
4839 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4845 # Sed substitution that helps us do robust quoting. It backslashifies
4846 # metacharacters that are still active within double-quoted strings.
4847 Xsed='sed -e s/^X//'
4848 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4850 # Same as above, but do not quote variable references.
4851 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4853 # Sed substitution to delay expansion of an escaped shell variable in a
4854 # double_quote_subst'ed string.
4855 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4861 default_ofile=libtool
4862 can_build_shared=yes
4864 # All known linkers require a `.a' archive for static linking (except M$VC,
4865 # which needs '.lib').
4867 ltmain="$ac_aux_dir/ltmain.sh"
4868 ofile="$default_ofile"
4869 with_gnu_ld="$lt_cv_prog_gnu_ld"
4870 need_locks="$enable_libtool_lock"
4873 old_CFLAGS="$CFLAGS"
4875 # Set sane defaults for various variables
4876 test -z "$AR" && AR=ar
4877 test -z "$AR_FLAGS" && AR_FLAGS=cru
4878 test -z "$AS" && AS=as
4879 test -z "$CC" && CC=cc
4880 test -z "$DLLTOOL" && DLLTOOL=dlltool
4881 test -z "$LD" && LD=ld
4882 test -z "$LN_S" && LN_S="ln -s"
4883 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4884 test -z "$NM" && NM=nm
4885 test -z "$OBJDUMP" && OBJDUMP=objdump
4886 test -z "$RANLIB" && RANLIB=:
4887 test -z "$STRIP" && STRIP=:
4888 test -z "$ac_objext" && ac_objext=o
4890 if test x"$host" != x"$build"; then
4891 ac_tool_prefix=${host_alias}-
4896 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4899 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4904 # AIX sometimes has problems with the GCC collect2 program. For some
4905 # reason, if we set the COLLECT_NAMES environment variable, the problems
4906 # vanish in a puff of smoke.
4907 if test "X${COLLECT_NAMES+set}" != Xset; then
4909 export COLLECT_NAMES
4914 # Determine commands to create old-style static archives.
4915 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4916 old_postinstall_cmds='chmod 644 $oldlib'
4917 old_postuninstall_cmds=
4919 if test -n "$RANLIB"; then
4922 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4925 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4928 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4931 # Allow CC to be a program name with arguments.
4935 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4936 echo "configure:4937: checking for objdir" >&5
4937 rm -f .libs 2>/dev/null
4938 mkdir .libs 2>/dev/null
4939 if test -d .libs; then
4942 # MS-DOS does not allow filenames that begin with a dot.
4945 rmdir .libs 2>/dev/null
4946 echo "$ac_t""$objdir" 1>&6
4949 # Check whether --with-pic or --without-pic was given.
4950 if test "${with_pic+set}" = set; then
4957 test -z "$pic_mode" && pic_mode=default
4959 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4960 # in isolation, and that seeing it set (from the cache) indicates that
4961 # the associated values are set (in the cache) correctly too.
4962 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4963 echo "configure:4964: checking for $compiler option to produce PIC" >&5
4964 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4965 echo $ac_n "(cached) $ac_c" 1>&6
4968 lt_cv_prog_cc_shlib=
4970 lt_cv_prog_cc_static=
4971 lt_cv_prog_cc_no_builtin=
4972 lt_cv_prog_cc_can_build_shared=$can_build_shared
4974 if test "$GCC" = yes; then
4975 lt_cv_prog_cc_wl='-Wl,'
4976 lt_cv_prog_cc_static='-static'
4980 # Below there is a dirty hack to force normal static linking with -ldl
4981 # The problem is because libdl dynamically linked with both libc and
4982 # libC (AIX C++ library), which obviously doesn't included in libraries
4983 # list by gcc. This cause undefined symbols with -static flags.
4984 # This hack allows C programs to be linked with "-static -ldl", but
4985 # not sure about C++ programs.
4986 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4989 # FIXME: we need at least 68020 code to build shared libraries, but
4990 # adding the `-m68020' flag to GCC prevents building anything better,
4992 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4994 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4995 # PIC is the default for these OSes.
4997 darwin* | rhapsody*)
4998 # PIC is the default on this platform
4999 # Common symbols not allowed in MH_DYLIB files
5000 lt_cv_prog_cc_pic='-fno-common'
5002 cygwin* | mingw* | pw32* | os2*)
5003 # This hack is so that the source file can tell whether it is being
5004 # built for inclusion in a dll (and should export symbols for example).
5005 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5008 if test -d /usr/nec; then
5009 lt_cv_prog_cc_pic=-Kconform_pic
5013 lt_cv_prog_cc_pic='-fPIC'
5017 # PORTME Check for PIC flags for the system compiler.
5019 aix3* | aix4* | aix5*)
5020 lt_cv_prog_cc_wl='-Wl,'
5021 # All AIX code is PIC.
5022 if test "$host_cpu" = ia64; then
5023 # AIX 5 now supports IA64 processor
5024 lt_cv_prog_cc_static='-Bstatic'
5026 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5030 hpux9* | hpux10* | hpux11*)
5031 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5032 lt_cv_prog_cc_wl='-Wl,'
5033 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5034 lt_cv_prog_cc_pic='+Z'
5037 irix5* | irix6* | nonstopux*)
5038 lt_cv_prog_cc_wl='-Wl,'
5039 lt_cv_prog_cc_static='-non_shared'
5040 # PIC (with -KPIC) is the default.
5043 cygwin* | mingw* | pw32* | os2*)
5044 # This hack is so that the source file can tell whether it is being
5045 # built for inclusion in a dll (and should export symbols for example).
5046 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5050 lt_cv_prog_cc_pic='-KPIC'
5051 lt_cv_prog_cc_static='-Bstatic'
5054 osf3* | osf4* | osf5*)
5055 # All OSF/1 code is PIC.
5056 lt_cv_prog_cc_wl='-Wl,'
5057 lt_cv_prog_cc_static='-non_shared'
5061 lt_cv_prog_cc_pic='-Kpic'
5062 lt_cv_prog_cc_static='-dn'
5063 lt_cv_prog_cc_shlib='-belf'
5067 lt_cv_prog_cc_pic='-KPIC'
5068 lt_cv_prog_cc_static='-Bstatic'
5069 lt_cv_prog_cc_wl='-Wl,'
5073 lt_cv_prog_cc_pic='-PIC'
5074 lt_cv_prog_cc_static='-Bstatic'
5075 lt_cv_prog_cc_wl='-Qoption ld '
5078 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5079 lt_cv_prog_cc_pic='-KPIC'
5080 lt_cv_prog_cc_static='-Bstatic'
5081 lt_cv_prog_cc_wl='-Wl,'
5085 lt_cv_prog_cc_pic='-pic'
5086 lt_cv_prog_cc_static='-Bstatic'
5090 if test -d /usr/nec ;then
5091 lt_cv_prog_cc_pic='-Kconform_pic'
5092 lt_cv_prog_cc_static='-Bstatic'
5097 lt_cv_prog_cc_can_build_shared=no
5104 if test -z "$lt_cv_prog_cc_pic"; then
5105 echo "$ac_t""none" 1>&6
5107 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5109 # Check to make sure the pic_flag actually works.
5110 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5111 echo "configure:5112: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5112 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5113 echo $ac_n "(cached) $ac_c" 1>&6
5115 save_CFLAGS="$CFLAGS"
5116 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5117 cat > conftest.$ac_ext <<EOF
5118 #line 5119 "configure"
5119 #include "confdefs.h"
5125 if { (eval echo configure:5126: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5128 hpux9* | hpux10* | hpux11*)
5129 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5130 # they create non-PIC objects. So, if there were any warnings, we
5131 # assume that PIC is not supported.
5132 if test -s conftest.err; then
5133 lt_cv_prog_cc_pic_works=no
5135 lt_cv_prog_cc_pic_works=yes
5139 lt_cv_prog_cc_pic_works=yes
5144 echo "configure: failed program was:" >&5
5145 cat conftest.$ac_ext >&5
5147 lt_cv_prog_cc_pic_works=no
5151 CFLAGS="$save_CFLAGS"
5156 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5158 lt_cv_prog_cc_can_build_shared=no
5160 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5163 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5166 # Check for any special shared library compilation flags.
5167 if test -n "$lt_cv_prog_cc_shlib"; then
5168 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5169 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5171 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5172 lt_cv_prog_cc_can_build_shared=no
5176 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5177 echo "configure:5178: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5178 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5179 echo $ac_n "(cached) $ac_c" 1>&6
5181 lt_cv_prog_cc_static_works=no
5182 save_LDFLAGS="$LDFLAGS"
5183 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5184 cat > conftest.$ac_ext <<EOF
5185 #line 5186 "configure"
5186 #include "confdefs.h"
5192 if { (eval echo configure:5193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5194 lt_cv_prog_cc_static_works=yes
5196 echo "configure: failed program was:" >&5
5197 cat conftest.$ac_ext >&5
5200 LDFLAGS="$save_LDFLAGS"
5205 # Belt *and* braces to stop my trousers falling down:
5206 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5207 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5209 pic_flag="$lt_cv_prog_cc_pic"
5210 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5211 wl="$lt_cv_prog_cc_wl"
5212 link_static_flag="$lt_cv_prog_cc_static"
5213 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5214 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5217 # Check to see if options -o and -c are simultaneously supported by compiler
5218 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5219 echo "configure:5220: checking if $compiler supports -c -o file.$ac_objext" >&5
5220 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5221 echo $ac_n "(cached) $ac_c" 1>&6
5224 $rm -r conftest 2>/dev/null
5227 echo "int some_variable = 0;" > conftest.$ac_ext
5229 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5230 # that will create temporary files in the current directory regardless of
5231 # the output directory. Thus, making CWD read-only will cause this test
5232 # to fail, enabling locking or at least warning the user not to do parallel
5235 save_CFLAGS="$CFLAGS"
5236 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5238 if { (eval echo configure:5239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5239 # The compiler can only warn and ignore the option if not recognized
5240 # So say no if there are warnings
5241 if test -s out/conftest.err; then
5242 lt_cv_compiler_c_o=no
5244 lt_cv_compiler_c_o=yes
5247 # Append any errors to the config.log.
5248 cat out/conftest.err 1>&5
5249 lt_cv_compiler_c_o=no
5251 CFLAGS="$save_CFLAGS"
5257 $rm -r conftest 2>/dev/null
5261 compiler_c_o=$lt_cv_compiler_c_o
5262 echo "$ac_t""$compiler_c_o" 1>&6
5264 if test x"$compiler_c_o" = x"yes"; then
5265 # Check to see if we can write to a .lo
5266 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5267 echo "configure:5268: checking if $compiler supports -c -o file.lo" >&5
5268 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5269 echo $ac_n "(cached) $ac_c" 1>&6
5272 lt_cv_compiler_o_lo=no
5273 save_CFLAGS="$CFLAGS"
5274 CFLAGS="$CFLAGS -c -o conftest.lo"
5275 save_objext="$ac_objext"
5277 cat > conftest.$ac_ext <<EOF
5278 #line 5279 "configure"
5279 #include "confdefs.h"
5282 int some_variable = 0;
5285 if { (eval echo configure:5286: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5287 # The compiler can only warn and ignore the option if not recognized
5288 # So say no if there are warnings
5289 if test -s conftest.err; then
5290 lt_cv_compiler_o_lo=no
5292 lt_cv_compiler_o_lo=yes
5296 echo "configure: failed program was:" >&5
5297 cat conftest.$ac_ext >&5
5300 ac_objext="$save_objext"
5301 CFLAGS="$save_CFLAGS"
5305 compiler_o_lo=$lt_cv_compiler_o_lo
5306 echo "$ac_t""$compiler_o_lo" 1>&6
5311 # Check to see if we can do hard links to lock some files if needed
5312 hard_links="nottested"
5313 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5314 # do not overwrite the value of need_locks provided by the user
5315 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5316 echo "configure:5317: checking if we can lock with hard links" >&5
5319 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5321 ln conftest.a conftest.b 2>&5 || hard_links=no
5322 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5323 echo "$ac_t""$hard_links" 1>&6
5324 if test "$hard_links" = no; then
5325 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5332 if test "$GCC" = yes; then
5333 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5334 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5335 echo "configure:5336: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5336 echo "int some_variable = 0;" > conftest.$ac_ext
5337 save_CFLAGS="$CFLAGS"
5338 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5339 compiler_rtti_exceptions=no
5340 cat > conftest.$ac_ext <<EOF
5341 #line 5342 "configure"
5342 #include "confdefs.h"
5345 int some_variable = 0;
5348 if { (eval echo configure:5349: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5350 # The compiler can only warn and ignore the option if not recognized
5351 # So say no if there are warnings
5352 if test -s conftest.err; then
5353 compiler_rtti_exceptions=no
5355 compiler_rtti_exceptions=yes
5359 echo "configure: failed program was:" >&5
5360 cat conftest.$ac_ext >&5
5363 CFLAGS="$save_CFLAGS"
5364 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5366 if test "$compiler_rtti_exceptions" = "yes"; then
5367 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5369 no_builtin_flag=' -fno-builtin'
5373 # See if the linker supports building shared libraries.
5374 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5375 echo "configure:5376: checking whether the linker ($LD) supports shared libraries" >&5
5377 allow_undefined_flag=
5379 need_lib_prefix=unknown
5380 need_version=unknown
5381 # when you set need_version to no, make sure it does not cause -set_version
5382 # flags to be left without arguments
5384 archive_expsym_cmds=
5385 old_archive_from_new_cmds=
5386 old_archive_from_expsyms_cmds=
5387 export_dynamic_flag_spec=
5388 whole_archive_flag_spec=
5389 thread_safe_flag_spec=
5390 hardcode_into_libs=no
5391 hardcode_libdir_flag_spec=
5392 hardcode_libdir_separator=
5395 hardcode_shlibpath_var=unsupported
5397 link_all_deplibs=unknown
5398 always_export_symbols=no
5399 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5400 # include_expsyms should be a list of space-separated symbols to be *always*
5401 # included in the symbol list
5403 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5404 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5405 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5406 # as well as any symbol that contains `d'.
5407 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5408 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5409 # platforms (ab)use it in PIC code, but their linkers get confused if
5410 # the symbol is explicitly referenced. Since portable code cannot
5411 # rely on this symbol name, it's probably fine to never include it in
5412 # preloaded symbol tables.
5413 extract_expsyms_cmds=
5416 cygwin* | mingw* | pw32*)
5417 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5418 # When not using gcc, we currently assume that we are using
5419 # Microsoft Visual C++.
5420 if test "$GCC" != yes; then
5430 if test "$with_gnu_ld" = yes; then
5431 # If archive_cmds runs LD, not CC, wlarc should be empty
5434 # See if GNU ld supports shared libraries.
5436 aix3* | aix4* | aix5*)
5437 # On AIX, the GNU linker is very broken
5438 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5442 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5443 *** to be unable to reliably create shared libraries on AIX.
5444 *** Therefore, libtool is disabling shared libraries support. If you
5445 *** really care for shared libraries, you may want to modify your PATH
5446 *** so that a non-GNU linker is found, and then restart.
5452 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)'
5453 hardcode_libdir_flag_spec='-L$libdir'
5454 hardcode_minus_L=yes
5456 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5457 # that the semantics of dynamic libraries on AmigaOS, at least up
5458 # to version 4, is to share data among multiple programs linked
5459 # with the same dynamic library. Since this doesn't match the
5460 # behavior of shared libraries on other platforms, we can use
5466 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5467 allow_undefined_flag=unsupported
5468 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5469 # support --undefined. This deserves some investigation. FIXME
5470 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5476 cygwin* | mingw* | pw32*)
5477 # hardcode_libdir_flag_spec is actually meaningless, as there is
5478 # no search path for DLLs.
5479 hardcode_libdir_flag_spec='-L$libdir'
5480 allow_undefined_flag=unsupported
5481 always_export_symbols=yes
5483 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5484 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5485 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5486 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5487 else $CC -o impgen impgen.c ; fi)~
5488 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5490 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5492 # cygwin and mingw dlls have different entry points and sets of symbols
5494 # FIXME: what about values for MSVC?
5495 dll_entry=__cygwin_dll_entry@12
5496 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5500 dll_entry=_DllMainCRTStartup@12
5501 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5505 # mingw and cygwin differ, and it's simplest to just exclude the union
5506 # of the two symbol sets.
5507 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5509 # recent cygwin and mingw systems supply a stub DllMain which the user
5510 # can override, but on older systems we have to supply one (in ltdll.c)
5511 if test "x$lt_cv_need_dllmain" = "xyes"; then
5512 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5513 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~
5514 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5520 # Extract the symbol export list from an `--export-all' def file,
5521 # then regenerate the def file from the symbol export list, so that
5522 # the compiled dll only exports the symbol export list.
5523 # Be careful not to strip the DATA tag left be newer dlltools.
5524 export_symbols_cmds="$ltdll_cmds"'
5525 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5526 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5528 # If the export-symbols file already is a .def file (1st line
5529 # is EXPORTS), use it as is.
5530 # If DATA tags from a recent dlltool are present, honour them!
5531 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5532 cp $export_symbols $output_objdir/$soname-def;
5534 echo EXPORTS > $output_objdir/$soname-def;
5536 cat $export_symbols | while read symbol; do
5539 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5540 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5541 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5543 _lt_hint=`expr 1 + \$_lt_hint`;
5547 $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~
5548 $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~
5549 $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~
5550 $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~
5551 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5555 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5556 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5559 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5560 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5565 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5569 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5570 *** create shared libraries on Solaris systems. Therefore, libtool
5571 *** is disabling shared libraries support. We urge you to upgrade GNU
5572 *** binutils to release 2.9.1 or newer. Another option is to modify
5573 *** your PATH or compiler configuration so that the native linker is
5574 *** used, and then restart.
5577 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5578 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5579 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5586 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5589 hardcode_shlibpath_var=no
5593 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5594 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5595 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5602 if test "$ld_shlibs" = yes; then
5603 runpath_var=LD_RUN_PATH
5604 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5605 export_dynamic_flag_spec='${wl}--export-dynamic'
5607 cygwin* | mingw* | pw32*)
5608 # dlltool doesn't understand --whole-archive et. al.
5609 whole_archive_flag_spec=
5612 # ancient GNU ld didn't support --whole-archive et. al.
5613 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5614 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5616 whole_archive_flag_spec=
5622 # PORTME fill in a description of your system's linker (not GNU ld)
5625 allow_undefined_flag=unsupported
5626 always_export_symbols=yes
5627 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'
5628 # Note: this linker hardcodes the directories in LIBPATH if there
5629 # are no directories specified by -L.
5630 hardcode_minus_L=yes
5631 if test "$GCC" = yes && test -z "$link_static_flag"; then
5632 # Neither direct hardcoding nor static linking is supported with a
5634 hardcode_direct=unsupported
5639 if test "$host_cpu" = ia64; then
5640 # On IA64, the linker does run time linking by default, so we don't
5641 # have to do anything special.
5642 aix_use_runtimelinking=no
5643 exp_sym_flag='-Bexport'
5646 aix_use_runtimelinking=no
5648 # Test if we are trying to use run time linking or normal
5649 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5650 # need to do runtime linking.
5651 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5652 for ld_flag in $LDFLAGS; do
5655 aix_use_runtimelinking=yes
5662 exp_sym_flag='-bexport'
5663 no_entry_flag='-bnoentry'
5666 # When large executables or shared objects are built, AIX ld can
5667 # have problems creating the table of contents. If linking a library
5668 # or program results in "error TOC overflow" add -mminimal-toc to
5669 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5670 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5674 hardcode_libdir_separator=':'
5675 if test "$GCC" = yes; then
5676 case $host_os in aix4.[012]|aix4.[012].*)
5677 collect2name=`${CC} -print-prog-name=collect2`
5678 if test -f "$collect2name" && \
5679 strings "$collect2name" | grep resolve_lib_name >/dev/null
5681 # We have reworked collect2
5684 # We have old collect2
5685 hardcode_direct=unsupported
5686 # It fails to find uninstalled libraries when the uninstalled
5687 # path is not listed in the libpath. Setting hardcode_minus_L
5688 # to unsupported forces relinking
5689 hardcode_minus_L=yes
5690 hardcode_libdir_flag_spec='-L$libdir'
5691 hardcode_libdir_separator=
5695 shared_flag='-shared'
5698 if test "$host_cpu" = ia64; then
5699 shared_flag='${wl}-G'
5701 if test "$aix_use_runtimelinking" = yes; then
5702 shared_flag='${wl}-G'
5704 shared_flag='${wl}-bM:SRE'
5709 # It seems that -bexpall can do strange things, so it is better to
5710 # generate a list of symbols to export.
5711 always_export_symbols=yes
5712 if test "$aix_use_runtimelinking" = yes; then
5713 # Warning - without using the other runtime loading flags (-brtl),
5714 # -berok will link without error, but may produce a broken library.
5715 allow_undefined_flag='-berok'
5716 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5717 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"
5719 if test "$host_cpu" = ia64; then
5720 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5721 allow_undefined_flag="-z nodefs"
5722 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"
5724 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5725 # Warning - without using the other run time loading flags,
5726 # -berok will link without error, but may produce a broken library.
5727 allow_undefined_flag='${wl}-berok'
5728 # This is a bit strange, but is similar to how AIX traditionally builds
5729 # it's shared libraries.
5730 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'
5736 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)'
5737 hardcode_libdir_flag_spec='-L$libdir'
5738 hardcode_minus_L=yes
5739 # see comment about different semantics on the GNU ld section
5743 cygwin* | mingw* | pw32*)
5744 # When not using gcc, we currently assume that we are using
5745 # Microsoft Visual C++.
5746 # hardcode_libdir_flag_spec is actually meaningless, as there is
5747 # no search path for DLLs.
5748 hardcode_libdir_flag_spec=' '
5749 allow_undefined_flag=unsupported
5750 # Tell ltmain to make .lib files, not .a files.
5752 # FIXME: Setting linknames here is a bad hack.
5753 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5754 # The linker will automatically build a .lib file if we build a DLL.
5755 old_archive_from_new_cmds='true'
5756 # FIXME: Should let the user specify the lib program.
5757 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5758 fix_srcfile_path='`cygpath -w "$srcfile"`'
5761 darwin* | rhapsody*)
5763 rhapsody* | darwin1.[012])
5764 allow_undefined_flag='-undefined suppress'
5767 allow_undefined_flag='-flat_namespace -undefined suppress'
5770 # FIXME: Relying on posixy $() will cause problems for
5771 # cross-compilation, but unfortunately the echo tests do not
5772 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5773 # `"' quotes if we put them in here... so don't!
5774 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)'
5775 # We need to add '_' to the symbols in $export_symbols first
5776 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5778 hardcode_shlibpath_var=no
5779 whole_archive_flag_spec='-all_load $convenience'
5786 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5787 # support. Future versions do this automatically, but an explicit c++rt0.o
5788 # does not break anything, and helps significantly (at the cost of a little
5791 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5792 hardcode_libdir_flag_spec='-R$libdir'
5794 hardcode_shlibpath_var=no
5797 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5799 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5801 hardcode_minus_L=yes
5802 hardcode_shlibpath_var=no
5805 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5807 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5808 hardcode_libdir_flag_spec='-R$libdir'
5810 hardcode_shlibpath_var=no
5813 hpux9* | hpux10* | hpux11*)
5815 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' ;;
5816 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5818 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5819 hardcode_libdir_separator=:
5821 hardcode_minus_L=yes # Not in the search PATH, but as the default
5822 # location of the library.
5823 export_dynamic_flag_spec='${wl}-E'
5826 irix5* | irix6* | nonstopux*)
5827 if test "$GCC" = yes; then
5828 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'
5829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5831 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'
5832 hardcode_libdir_flag_spec='-rpath $libdir'
5834 hardcode_libdir_separator=:
5835 link_all_deplibs=yes
5839 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5840 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5842 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5844 hardcode_libdir_flag_spec='-R$libdir'
5846 hardcode_shlibpath_var=no
5850 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5852 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5853 hardcode_libdir_separator=:
5854 hardcode_shlibpath_var=no
5859 hardcode_shlibpath_var=no
5860 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5861 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5862 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5863 export_dynamic_flag_spec='${wl}-E'
5866 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5867 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5868 hardcode_libdir_flag_spec='-R$libdir'
5871 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5872 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5879 hardcode_libdir_flag_spec='-L$libdir'
5880 hardcode_minus_L=yes
5881 allow_undefined_flag=unsupported
5882 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'
5883 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5887 if test "$GCC" = yes; then
5888 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5889 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'
5891 allow_undefined_flag=' -expect_unresolved \*'
5892 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'
5894 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5895 hardcode_libdir_separator=:
5898 osf4* | osf5*) # as osf3* with the addition of -msym flag
5899 if test "$GCC" = yes; then
5900 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5901 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'
5902 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5904 allow_undefined_flag=' -expect_unresolved \*'
5905 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'
5906 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5907 $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'
5909 #Both c and cxx compiler support -rpath directly
5910 hardcode_libdir_flag_spec='-rpath $libdir'
5912 hardcode_libdir_separator=:
5916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5917 hardcode_shlibpath_var=no
5918 runpath_var=LD_RUN_PATH
5919 hardcode_runpath_var=yes
5920 export_dynamic_flag_spec='${wl}-Bexport'
5924 # gcc --version < 3.0 without binutils cannot create self contained
5925 # shared libraries reliably, requiring libgcc.a to resolve some of
5926 # the object symbols generated in some cases. Libraries that use
5927 # assert need libgcc.a to resolve __eprintf, for example. Linking
5928 # a copy of libgcc.a into every shared library to guarantee resolving
5929 # such symbols causes other problems: According to Tim Van Holder
5930 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5931 # (to the application) exception stack for one thing.
5932 no_undefined_flag=' -z defs'
5933 if test "$GCC" = yes; then
5934 case `$CC --version 2>/dev/null` in
5938 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5939 *** create self contained shared libraries on Solaris systems, without
5940 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5941 *** -no-undefined support, which will at least allow you to build shared
5942 *** libraries. However, you may find that when you link such libraries
5943 *** into an application without using GCC, you have to manually add
5944 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5945 *** upgrade to a newer version of GCC. Another option is to rebuild your
5946 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5953 # $CC -shared without GNU ld will not create a library from C++
5954 # object files and a static libstdc++, better avoid it by now
5955 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5956 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5957 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5958 hardcode_libdir_flag_spec='-R$libdir'
5959 hardcode_shlibpath_var=no
5961 solaris2.[0-5] | solaris2.[0-5].*) ;;
5962 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5963 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5965 link_all_deplibs=yes
5969 if test "x$host_vendor" = xsequent; then
5970 # Use $CC to link under sequent, because it throws in some extra .o
5971 # files that make .init and .fini sections work.
5972 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5974 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5976 hardcode_libdir_flag_spec='-L$libdir'
5978 hardcode_minus_L=yes
5979 hardcode_shlibpath_var=no
5983 case $host_vendor in
5985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5986 hardcode_direct=yes # is this really true???
5989 ## LD is ld it makes a PLAMLIB
5990 ## CC just makes a GrossModule.
5991 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5992 reload_cmds='$CC -r -o $output$reload_objs'
5996 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5997 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6000 runpath_var='LD_RUN_PATH'
6001 hardcode_shlibpath_var=no
6005 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6006 hardcode_shlibpath_var=no
6007 export_dynamic_flag_spec='-Bexport'
6011 no_undefined_flag=' -z text'
6012 # $CC -shared without GNU ld will not create a library from C++
6013 # object files and a static libstdc++, better avoid it by now
6014 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6015 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6016 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6017 hardcode_libdir_flag_spec=
6018 hardcode_shlibpath_var=no
6019 runpath_var='LD_RUN_PATH'
6023 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6024 hardcode_libdir_flag_spec='-L$libdir'
6025 hardcode_shlibpath_var=no
6029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6030 hardcode_libdir_flag_spec='-L$libdir'
6031 hardcode_shlibpath_var=no
6035 if test -d /usr/nec; then
6036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6037 hardcode_shlibpath_var=no
6038 runpath_var=LD_RUN_PATH
6039 hardcode_runpath_var=yes
6045 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6048 hardcode_shlibpath_var=no
6049 hardcode_runpath_var=yes
6050 runpath_var=LD_RUN_PATH
6053 sysv5uw7* | unixware7*)
6054 no_undefined_flag='${wl}-z ${wl}text'
6055 if test "$GCC" = yes; then
6056 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6058 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6060 runpath_var='LD_RUN_PATH'
6061 hardcode_shlibpath_var=no
6069 echo "$ac_t""$ld_shlibs" 1>&6
6070 test "$ld_shlibs" = no && can_build_shared=no
6072 # Check hardcoding attributes.
6073 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6074 echo "configure:6075: checking how to hardcode library paths into programs" >&5
6076 if test -n "$hardcode_libdir_flag_spec" || \
6077 test -n "$runpath_var"; then
6079 # We can hardcode non-existant directories.
6080 if test "$hardcode_direct" != no &&
6081 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6082 # have to relink, otherwise we might link with an installed library
6083 # when we should be linking with a yet-to-be-installed one
6084 ## test "$hardcode_shlibpath_var" != no &&
6085 test "$hardcode_minus_L" != no; then
6086 # Linking always hardcodes the temporary library directory.
6087 hardcode_action=relink
6089 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6090 hardcode_action=immediate
6093 # We cannot hardcode anything, or else we can only hardcode existing
6095 hardcode_action=unsupported
6097 echo "$ac_t""$hardcode_action" 1>&6
6101 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6102 echo "configure:6103: checking whether stripping libraries is possible" >&5
6103 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6104 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6105 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6106 echo "$ac_t""yes" 1>&6
6108 echo "$ac_t""no" 1>&6
6111 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6112 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6114 # PORTME Fill in your ld.so characteristics
6115 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6116 echo "configure:6117: checking dynamic linker characteristics" >&5
6118 libname_spec='lib$name'
6125 shlibpath_overrides_runpath=unknown
6127 dynamic_linker="$host_os ld.so"
6128 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6129 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6134 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6135 shlibpath_var=LIBPATH
6137 # AIX has no versioning support, so we append a major version to the name.
6138 soname_spec='${libname}${release}.so$major'
6145 hardcode_into_libs=yes
6146 if test "$host_cpu" = ia64; then
6147 # AIX 5 supports IA64
6148 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6149 shlibpath_var=LD_LIBRARY_PATH
6151 # With GCC up to 2.95.x, collect2 would create an import file
6152 # for dependence libraries. The import file would start with
6153 # the line `#! .'. This would cause the generated library to
6154 # depend on `.', always an invalid library. This was fixed in
6155 # development snapshots of GCC prior to 3.0.
6157 aix4 | aix4.[01] | aix4.[01].*)
6158 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6160 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6167 # AIX (on Power*) has no versioning support, so currently we can
6168 # not hardcode correct soname into executable. Probably we can
6169 # add versioning support to collect2, so additional links can
6170 # be useful in future.
6171 if test "$aix_use_runtimelinking" = yes; then
6172 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6173 # instead of lib<name>.a to let people know that these are not
6174 # typical AIX shared libraries.
6175 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6177 # We preserve .a as extension for shared libraries through AIX4.2
6178 # and later when we are not doing run time linking.
6179 library_names_spec='${libname}${release}.a $libname.a'
6180 soname_spec='${libname}${release}.so$major'
6182 shlibpath_var=LIBPATH
6184 hardcode_into_libs=yes
6188 library_names_spec='$libname.ixlibrary $libname.a'
6189 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6190 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'
6194 library_names_spec='${libname}.so'
6195 dynamic_linker="$host_os ld.so"
6196 shlibpath_var=LIBRARY_PATH
6202 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6203 soname_spec='${libname}${release}.so$major'
6204 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6205 shlibpath_var=LD_LIBRARY_PATH
6206 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6207 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6208 export_dynamic_flag_spec=-rdynamic
6209 # the default ld.so.conf also contains /usr/contrib/lib and
6210 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6211 # libtool to hard-code these into programs
6214 cygwin* | mingw* | pw32*)
6215 version_type=windows
6218 case $GCC,$host_os in
6220 library_names_spec='$libname.dll.a'
6221 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6222 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6223 dldir=$destdir/`dirname \$dlpath`~
6224 test -d \$dldir || mkdir -p \$dldir~
6225 $install_prog .libs/$dlname \$dldir/$dlname'
6226 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6227 dlpath=$dir/\$dldll~
6231 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6232 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6235 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6238 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6241 dynamic_linker='Win32 ld.exe'
6242 # FIXME: first we should search . and the directory the executable is in
6246 darwin* | rhapsody*)
6247 dynamic_linker="$host_os dyld"
6251 # FIXME: Relying on posixy $() will cause problems for
6252 # cross-compilation, but unfortunately the echo tests do not
6253 # yet detect zsh echo's removal of \ escapes.
6254 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)'
6255 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6256 shlibpath_overrides_runpath=yes
6257 shlibpath_var=DYLD_LIBRARY_PATH
6265 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6266 version_type=freebsd-$objformat
6267 case $version_type in
6269 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6274 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6278 shlibpath_var=LD_LIBRARY_PATH
6281 shlibpath_overrides_runpath=yes
6284 shlibpath_overrides_runpath=no
6285 hardcode_into_libs=yes
6294 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6295 soname_spec='${libname}${release}.so$major'
6296 shlibpath_var=LD_LIBRARY_PATH
6297 hardcode_into_libs=yes
6300 hpux9* | hpux10* | hpux11*)
6301 # Give a soname corresponding to the major version so that dld.sl refuses to
6302 # link against other versions.
6303 dynamic_linker="$host_os dld.sl"
6307 shlibpath_var=SHLIB_PATH
6308 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6309 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6310 soname_spec='${libname}${release}.sl$major'
6311 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6312 postinstall_cmds='chmod 555 $lib'
6315 irix5* | irix6* | nonstopux*)
6317 nonstopux*) version_type=nonstopux ;;
6318 *) version_type=irix ;;
6322 soname_spec='${libname}${release}.so$major'
6323 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6325 irix5* | nonstopux*)
6329 case $LD in # libtool.m4 will add one of these switches to LD
6330 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6331 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6332 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6333 *) libsuff= shlibsuff= libmagic=never-match;;
6337 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6338 shlibpath_overrides_runpath=no
6339 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6340 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6343 # No shared lib support for Linux oldld, aout, or coff.
6344 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6348 # This must be Linux ELF.
6353 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6354 soname_spec='${libname}${release}.so$major'
6355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6356 shlibpath_var=LD_LIBRARY_PATH
6357 shlibpath_overrides_runpath=no
6358 # This implies no fast_install, which is unacceptable.
6359 # Some rework will be needed to allow for fast_install
6360 # before this can be enabled.
6361 hardcode_into_libs=yes
6363 # We used to test for /lib/ld.so.1 and disable shared libraries on
6364 # powerpc, because MkLinux only supported shared libraries with the
6365 # GNU dynamic linker. Since this was broken with cross compilers,
6366 # most powerpc-linux boxes support dynamic linking these days and
6367 # people can always --disable-shared, the test was removed, and we
6368 # assume the GNU/Linux dynamic linker is in use.
6369 dynamic_linker='GNU/Linux ld.so'
6376 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6377 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6379 dynamic_linker='NetBSD (a.out) ld.so'
6381 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6382 soname_spec='${libname}${release}.so$major'
6383 dynamic_linker='NetBSD ld.elf_so'
6385 shlibpath_var=LD_LIBRARY_PATH
6386 shlibpath_overrides_runpath=yes
6387 hardcode_into_libs=yes
6392 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6393 shlibpath_var=LD_LIBRARY_PATH
6394 shlibpath_overrides_runpath=yes
6401 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6403 openbsd2.[89] | openbsd2.[89].*)
6404 shlibpath_overrides_runpath=no
6407 shlibpath_overrides_runpath=yes
6411 shlibpath_overrides_runpath=yes
6413 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6415 shlibpath_var=LD_LIBRARY_PATH
6419 libname_spec='$name'
6421 library_names_spec='$libname.dll $libname.a'
6422 dynamic_linker='OS/2 ld.exe'
6423 shlibpath_var=LIBPATH
6426 osf3* | osf4* | osf5*)
6429 soname_spec='${libname}${release}.so$major'
6430 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6431 shlibpath_var=LD_LIBRARY_PATH
6432 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6433 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6434 hardcode_into_libs=yes
6439 soname_spec='${libname}${release}.so$major'
6440 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6441 shlibpath_var=LD_LIBRARY_PATH
6448 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6449 soname_spec='${libname}${release}.so$major'
6450 shlibpath_var=LD_LIBRARY_PATH
6451 shlibpath_overrides_runpath=yes
6452 hardcode_into_libs=yes
6453 # ldd complains unless libraries are executable
6454 postinstall_cmds='chmod +x $lib'
6459 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6460 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6461 shlibpath_var=LD_LIBRARY_PATH
6462 shlibpath_overrides_runpath=yes
6463 if test "$with_gnu_ld" = yes; then
6469 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6471 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6472 soname_spec='${libname}${release}.so$major'
6473 shlibpath_var=LD_LIBRARY_PATH
6474 case $host_vendor in
6476 shlibpath_overrides_runpath=no
6478 export_dynamic_flag_spec='${wl}-Blargedynsym'
6479 runpath_var=LD_RUN_PATH
6487 shlibpath_overrides_runpath=no
6488 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6495 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6496 soname_spec='${libname}${release}.so$major'
6497 shlibpath_var=LD_LIBRARY_PATH
6504 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6505 soname_spec='${libname}${release}.so$major'
6506 shlibpath_var=LD_LIBRARY_PATH
6510 if test -d /usr/nec ;then
6512 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6513 soname_spec='$libname.so.$major'
6514 shlibpath_var=LD_LIBRARY_PATH
6522 echo "$ac_t""$dynamic_linker" 1>&6
6523 test "$dynamic_linker" = no && can_build_shared=no
6525 # Report the final consequences.
6526 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6527 echo "configure:6528: checking if libtool supports shared libraries" >&5
6528 echo "$ac_t""$can_build_shared" 1>&6
6530 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6531 echo "configure:6532: checking whether to build shared libraries" >&5
6532 test "$can_build_shared" = "no" && enable_shared=no
6534 # On AIX, shared libraries and static libraries use the same namespace, and
6535 # are all built from PIC.
6538 test "$enable_shared" = yes && enable_static=no
6539 if test -n "$RANLIB"; then
6540 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6541 postinstall_cmds='$RANLIB $lib'
6546 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6547 test "$enable_shared" = yes && enable_static=no
6551 echo "$ac_t""$enable_shared" 1>&6
6553 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6554 echo "configure:6555: checking whether to build static libraries" >&5
6555 # Make sure either enable_shared or enable_static is yes.
6556 test "$enable_shared" = yes || enable_static=yes
6557 echo "$ac_t""$enable_static" 1>&6
6559 if test "$hardcode_action" = relink; then
6560 # Fast installation is not supported
6561 enable_fast_install=no
6562 elif test "$shlibpath_overrides_runpath" = yes ||
6563 test "$enable_shared" = no; then
6564 # Fast installation is not necessary
6565 enable_fast_install=needless
6568 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6569 if test "$GCC" = yes; then
6570 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6573 if test "x$enable_dlopen" != xyes; then
6574 enable_dlopen=unknown
6575 enable_dlopen_self=unknown
6576 enable_dlopen_self_static=unknown
6583 lt_cv_dlopen="load_add_on"
6585 lt_cv_dlopen_self=yes
6588 cygwin* | mingw* | pw32*)
6589 lt_cv_dlopen="LoadLibrary"
6594 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6595 echo "configure:6596: checking for shl_load" >&5
6596 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6597 echo $ac_n "(cached) $ac_c" 1>&6
6599 cat > conftest.$ac_ext <<EOF
6600 #line 6601 "configure"
6601 #include "confdefs.h"
6602 /* System header to define __stub macros and hopefully few prototypes,
6603 which can conflict with char shl_load(); below. */
6605 /* Override any gcc2 internal prototype to avoid an error. */
6606 /* We use char because int might match the return type of a gcc2
6607 builtin and then its argument prototype would still apply. */
6613 /* The GNU C library defines this for functions which it implements
6614 to always fail with ENOSYS. Some functions are actually named
6615 something starting with __ and the normal name is an alias. */
6616 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6624 if { (eval echo configure:6625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6626 eval "ac_cv_func_shl_load=yes"
6628 echo "configure: failed program was:" >&5
6629 cat conftest.$ac_ext >&5
6631 eval "ac_cv_func_shl_load=no"
6636 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6637 echo "$ac_t""yes" 1>&6
6638 lt_cv_dlopen="shl_load"
6640 echo "$ac_t""no" 1>&6
6641 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6642 echo "configure:6643: checking for shl_load in -ldld" >&5
6643 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6644 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6645 echo $ac_n "(cached) $ac_c" 1>&6
6647 ac_save_LIBS="$LIBS"
6649 cat > conftest.$ac_ext <<EOF
6650 #line 6651 "configure"
6651 #include "confdefs.h"
6652 /* Override any gcc2 internal prototype to avoid an error. */
6653 /* We use char because int might match the return type of a gcc2
6654 builtin and then its argument prototype would still apply. */
6661 if { (eval echo configure:6662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6663 eval "ac_cv_lib_$ac_lib_var=yes"
6665 echo "configure: failed program was:" >&5
6666 cat conftest.$ac_ext >&5
6668 eval "ac_cv_lib_$ac_lib_var=no"
6671 LIBS="$ac_save_LIBS"
6674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6675 echo "$ac_t""yes" 1>&6
6676 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6678 echo "$ac_t""no" 1>&6
6679 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6680 echo "configure:6681: checking for dlopen" >&5
6681 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6682 echo $ac_n "(cached) $ac_c" 1>&6
6684 cat > conftest.$ac_ext <<EOF
6685 #line 6686 "configure"
6686 #include "confdefs.h"
6687 /* System header to define __stub macros and hopefully few prototypes,
6688 which can conflict with char dlopen(); below. */
6690 /* Override any gcc2 internal prototype to avoid an error. */
6691 /* We use char because int might match the return type of a gcc2
6692 builtin and then its argument prototype would still apply. */
6698 /* The GNU C library defines this for functions which it implements
6699 to always fail with ENOSYS. Some functions are actually named
6700 something starting with __ and the normal name is an alias. */
6701 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6709 if { (eval echo configure:6710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6711 eval "ac_cv_func_dlopen=yes"
6713 echo "configure: failed program was:" >&5
6714 cat conftest.$ac_ext >&5
6716 eval "ac_cv_func_dlopen=no"
6721 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6722 echo "$ac_t""yes" 1>&6
6723 lt_cv_dlopen="dlopen"
6725 echo "$ac_t""no" 1>&6
6726 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6727 echo "configure:6728: checking for dlopen in -ldl" >&5
6728 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6729 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6730 echo $ac_n "(cached) $ac_c" 1>&6
6732 ac_save_LIBS="$LIBS"
6734 cat > conftest.$ac_ext <<EOF
6735 #line 6736 "configure"
6736 #include "confdefs.h"
6737 /* Override any gcc2 internal prototype to avoid an error. */
6738 /* We use char because int might match the return type of a gcc2
6739 builtin and then its argument prototype would still apply. */
6746 if { (eval echo configure:6747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6748 eval "ac_cv_lib_$ac_lib_var=yes"
6750 echo "configure: failed program was:" >&5
6751 cat conftest.$ac_ext >&5
6753 eval "ac_cv_lib_$ac_lib_var=no"
6756 LIBS="$ac_save_LIBS"
6759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6760 echo "$ac_t""yes" 1>&6
6761 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6763 echo "$ac_t""no" 1>&6
6764 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6765 echo "configure:6766: checking for dlopen in -lsvld" >&5
6766 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6767 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6768 echo $ac_n "(cached) $ac_c" 1>&6
6770 ac_save_LIBS="$LIBS"
6772 cat > conftest.$ac_ext <<EOF
6773 #line 6774 "configure"
6774 #include "confdefs.h"
6775 /* Override any gcc2 internal prototype to avoid an error. */
6776 /* We use char because int might match the return type of a gcc2
6777 builtin and then its argument prototype would still apply. */
6784 if { (eval echo configure:6785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6786 eval "ac_cv_lib_$ac_lib_var=yes"
6788 echo "configure: failed program was:" >&5
6789 cat conftest.$ac_ext >&5
6791 eval "ac_cv_lib_$ac_lib_var=no"
6794 LIBS="$ac_save_LIBS"
6797 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6798 echo "$ac_t""yes" 1>&6
6799 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6801 echo "$ac_t""no" 1>&6
6802 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6803 echo "configure:6804: checking for dld_link in -ldld" >&5
6804 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6805 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6806 echo $ac_n "(cached) $ac_c" 1>&6
6808 ac_save_LIBS="$LIBS"
6810 cat > conftest.$ac_ext <<EOF
6811 #line 6812 "configure"
6812 #include "confdefs.h"
6813 /* Override any gcc2 internal prototype to avoid an error. */
6814 /* We use char because int might match the return type of a gcc2
6815 builtin and then its argument prototype would still apply. */
6822 if { (eval echo configure:6823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6824 eval "ac_cv_lib_$ac_lib_var=yes"
6826 echo "configure: failed program was:" >&5
6827 cat conftest.$ac_ext >&5
6829 eval "ac_cv_lib_$ac_lib_var=no"
6832 LIBS="$ac_save_LIBS"
6835 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6836 echo "$ac_t""yes" 1>&6
6837 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6839 echo "$ac_t""no" 1>&6
6860 if test "x$lt_cv_dlopen" != xno; then
6866 case $lt_cv_dlopen in
6868 save_CPPFLAGS="$CPPFLAGS"
6869 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6871 save_LDFLAGS="$LDFLAGS"
6872 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6875 LIBS="$lt_cv_dlopen_libs $LIBS"
6877 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6878 echo "configure:6879: checking whether a program can dlopen itself" >&5
6879 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6880 echo $ac_n "(cached) $ac_c" 1>&6
6882 if test "$cross_compiling" = yes; then :
6883 lt_cv_dlopen_self=cross
6885 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6886 lt_status=$lt_dlunknown
6887 cat > conftest.$ac_ext <<EOF
6888 #line 6889 "configure"
6889 #include "confdefs.h"
6898 # define LT_DLGLOBAL RTLD_GLOBAL
6901 # define LT_DLGLOBAL DL_GLOBAL
6903 # define LT_DLGLOBAL 0
6907 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6908 find out it does not work in some platform. */
6909 #ifndef LT_DLLAZY_OR_NOW
6911 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6914 # define LT_DLLAZY_OR_NOW DL_LAZY
6917 # define LT_DLLAZY_OR_NOW RTLD_NOW
6920 # define LT_DLLAZY_OR_NOW DL_NOW
6922 # define LT_DLLAZY_OR_NOW 0
6930 extern "C" void exit (int);
6933 void fnord() { int i=42;}
6936 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6937 int status = $lt_dlunknown;
6941 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6942 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6943 /* dlclose (self); */
6949 if { (eval echo configure:6950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6950 (./conftest; exit; ) 2>/dev/null
6953 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6954 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6955 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6958 # compilation failed
6959 lt_cv_dlopen_self=no
6967 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6969 if test "x$lt_cv_dlopen_self" = xyes; then
6970 LDFLAGS="$LDFLAGS $link_static_flag"
6971 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6972 echo "configure:6973: checking whether a statically linked program can dlopen itself" >&5
6973 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6974 echo $ac_n "(cached) $ac_c" 1>&6
6976 if test "$cross_compiling" = yes; then :
6977 lt_cv_dlopen_self_static=cross
6979 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6980 lt_status=$lt_dlunknown
6981 cat > conftest.$ac_ext <<EOF
6982 #line 6983 "configure"
6983 #include "confdefs.h"
6992 # define LT_DLGLOBAL RTLD_GLOBAL
6995 # define LT_DLGLOBAL DL_GLOBAL
6997 # define LT_DLGLOBAL 0
7001 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7002 find out it does not work in some platform. */
7003 #ifndef LT_DLLAZY_OR_NOW
7005 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7008 # define LT_DLLAZY_OR_NOW DL_LAZY
7011 # define LT_DLLAZY_OR_NOW RTLD_NOW
7014 # define LT_DLLAZY_OR_NOW DL_NOW
7016 # define LT_DLLAZY_OR_NOW 0
7024 extern "C" void exit (int);
7027 void fnord() { int i=42;}
7030 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7031 int status = $lt_dlunknown;
7035 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7036 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7037 /* dlclose (self); */
7043 if { (eval echo configure:7044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7044 (./conftest; exit; ) 2>/dev/null
7047 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7048 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7049 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7052 # compilation failed
7053 lt_cv_dlopen_self_static=no
7061 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7064 CPPFLAGS="$save_CPPFLAGS"
7065 LDFLAGS="$save_LDFLAGS"
7070 case $lt_cv_dlopen_self in
7071 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7072 *) enable_dlopen_self=unknown ;;
7075 case $lt_cv_dlopen_self_static in
7076 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7077 *) enable_dlopen_self_static=unknown ;;
7082 if test "$enable_shared" = yes && test "$GCC" = yes; then
7083 case $archive_cmds in
7085 # FIXME: we may have to deal with multi-command sequences.
7088 # Test whether the compiler implicitly links with -lc since on some
7089 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7090 # to ld, don't add -lc before -lgcc.
7091 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7092 echo "configure:7093: checking whether -lc should be explicitly linked in" >&5
7093 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7094 echo $ac_n "(cached) $ac_c" 1>&6
7097 echo 'static int dummy;' > conftest.$ac_ext
7099 if { (eval echo configure:7100: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7102 libobjs=conftest.$ac_objext
7104 wl=$lt_cv_prog_cc_wl
7110 save_allow_undefined_flag=$allow_undefined_flag
7111 allow_undefined_flag=
7112 if { (eval echo configure:7113: \"$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; }
7114 lt_cv_archive_cmds_need_lc=no
7116 lt_cv_archive_cmds_need_lc=yes
7118 allow_undefined_flag=$save_allow_undefined_flag
7120 cat conftest.err 1>&5
7124 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7128 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7130 # The second clause should only fire when bootstrapping the
7131 # libtool distribution, otherwise you forgot to ship ltmain.sh
7132 # with your package, and you will get complaints that there are
7133 # no rules to generate ltmain.sh.
7134 if test -f "$ltmain"; then
7137 # If there is no Makefile yet, we rely on a make rule to execute
7138 # `config.status --recheck' to rerun these tests and create the
7139 # libtool script then.
7140 test -f Makefile && make "$ltmain"
7143 if test -f "$ltmain"; then
7144 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7147 echo creating $ofile
7149 # Now quote all the things that may contain metacharacters while being
7150 # careful not to overquote the AC_SUBSTed values. We take copies of the
7151 # variables and quote the copies for generation of the libtool script.
7152 for var in echo old_CC old_CFLAGS SED \
7153 AR AR_FLAGS CC LD LN_S NM SHELL \
7154 reload_flag reload_cmds wl \
7155 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7156 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7157 library_names_spec soname_spec \
7158 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7159 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7160 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7161 old_striplib striplib file_magic_cmd export_symbols_cmds \
7162 deplibs_check_method allow_undefined_flag no_undefined_flag \
7163 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7164 global_symbol_to_c_name_address \
7165 hardcode_libdir_flag_spec hardcode_libdir_separator \
7166 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7167 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7170 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7171 old_postinstall_cmds | old_postuninstall_cmds | \
7172 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7173 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7174 postinstall_cmds | postuninstall_cmds | \
7175 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7176 # Double-quote double-evaled strings.
7177 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7180 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7185 cat <<__EOF__ > "${ofile}T"
7188 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7189 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7190 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7192 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7193 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7195 # This program is free software; you can redistribute it and/or modify
7196 # it under the terms of the GNU General Public License as published by
7197 # the Free Software Foundation; either version 2 of the License, or
7198 # (at your option) any later version.
7200 # This program is distributed in the hope that it will be useful, but
7201 # WITHOUT ANY WARRANTY; without even the implied warranty of
7202 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7203 # General Public License for more details.
7205 # You should have received a copy of the GNU General Public License
7206 # along with this program; if not, write to the Free Software
7207 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7209 # As a special exception to the GNU General Public License, if you
7210 # distribute this file as part of a program that contains a
7211 # configuration script generated by Autoconf, you may include it under
7212 # the same distribution terms that you use for the rest of that program.
7214 # A sed that does not truncate output.
7217 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7218 Xsed="${SED} -e s/^X//"
7220 # The HP-UX ksh and POSIX shell print the target directory to stdout
7222 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7224 # ### BEGIN LIBTOOL CONFIG
7226 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7228 # Shell to use when invoking shell scripts.
7231 # Whether or not to build shared libraries.
7232 build_libtool_libs=$enable_shared
7234 # Whether or not to build static libraries.
7235 build_old_libs=$enable_static
7237 # Whether or not to add -lc for building shared libraries.
7238 build_libtool_need_lc=$need_lc
7240 # Whether or not to optimize for fast installation.
7241 fast_install=$enable_fast_install
7244 host_alias=$host_alias
7247 # An echo program that does not interpret backslashes.
7252 AR_FLAGS=$lt_AR_FLAGS
7254 # The default C compiler.
7257 # Is the compiler the GNU C compiler?
7260 # The linker used to build libraries.
7263 # Whether we need hard or soft links.
7266 # A BSD-compatible nm program.
7269 # A symbol stripping program
7272 # Used to examine libraries when file_magic_cmd begins "file"
7273 MAGIC_CMD=$MAGIC_CMD
7275 # Used on cygwin: DLL creation program.
7278 # Used on cygwin: object dumper.
7281 # Used on cygwin: assembler.
7284 # The name of the directory that contains temporary libtool files.
7287 # How to create reloadable object files.
7288 reload_flag=$lt_reload_flag
7289 reload_cmds=$lt_reload_cmds
7291 # How to pass a linker flag through the compiler.
7294 # Object file suffix (normally "o").
7297 # Old archive suffix (normally "a").
7300 # Executable file suffix (normally "").
7303 # Additional compiler flags for building library objects.
7304 pic_flag=$lt_pic_flag
7307 # Does compiler simultaneously support -c and -o options?
7308 compiler_c_o=$lt_compiler_c_o
7310 # Can we write directly to a .lo ?
7311 compiler_o_lo=$lt_compiler_o_lo
7313 # Must we lock files when doing compilation ?
7314 need_locks=$lt_need_locks
7316 # Do we need the lib prefix for modules?
7317 need_lib_prefix=$need_lib_prefix
7319 # Do we need a version for libraries?
7320 need_version=$need_version
7322 # Whether dlopen is supported.
7323 dlopen_support=$enable_dlopen
7325 # Whether dlopen of programs is supported.
7326 dlopen_self=$enable_dlopen_self
7328 # Whether dlopen of statically linked programs is supported.
7329 dlopen_self_static=$enable_dlopen_self_static
7331 # Compiler flag to prevent dynamic linking.
7332 link_static_flag=$lt_link_static_flag
7334 # Compiler flag to turn off builtin functions.
7335 no_builtin_flag=$lt_no_builtin_flag
7337 # Compiler flag to allow reflexive dlopens.
7338 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7340 # Compiler flag to generate shared objects directly from archives.
7341 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7343 # Compiler flag to generate thread-safe objects.
7344 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7346 # Library versioning type.
7347 version_type=$version_type
7349 # Format of library name prefix.
7350 libname_spec=$lt_libname_spec
7352 # List of archive names. First name is the real one, the rest are links.
7353 # The last name is the one that the linker finds with -lNAME.
7354 library_names_spec=$lt_library_names_spec
7356 # The coded name of the library, if different from the real name.
7357 soname_spec=$lt_soname_spec
7359 # Commands used to build and install an old-style archive.
7361 old_archive_cmds=$lt_old_archive_cmds
7362 old_postinstall_cmds=$lt_old_postinstall_cmds
7363 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7365 # Create an old-style archive from a shared archive.
7366 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7368 # Create a temporary old-style archive to link instead of a shared archive.
7369 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7371 # Commands used to build and install a shared archive.
7372 archive_cmds=$lt_archive_cmds
7373 archive_expsym_cmds=$lt_archive_expsym_cmds
7374 postinstall_cmds=$lt_postinstall_cmds
7375 postuninstall_cmds=$lt_postuninstall_cmds
7377 # Commands to strip libraries.
7378 old_striplib=$lt_old_striplib
7379 striplib=$lt_striplib
7381 # Method to check whether dependent libraries are shared objects.
7382 deplibs_check_method=$lt_deplibs_check_method
7384 # Command to use when deplibs_check_method == file_magic.
7385 file_magic_cmd=$lt_file_magic_cmd
7387 # Flag that allows shared libraries with undefined symbols to be built.
7388 allow_undefined_flag=$lt_allow_undefined_flag
7390 # Flag that forces no undefined symbols.
7391 no_undefined_flag=$lt_no_undefined_flag
7393 # Commands used to finish a libtool library installation in a directory.
7394 finish_cmds=$lt_finish_cmds
7396 # Same as above, but a single script fragment to be evaled but not shown.
7397 finish_eval=$lt_finish_eval
7399 # Take the output of nm and produce a listing of raw symbols and C names.
7400 global_symbol_pipe=$lt_global_symbol_pipe
7402 # Transform the output of nm in a proper C declaration
7403 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7405 # Transform the output of nm in a C name address pair
7406 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7408 # This is the shared library runtime path variable.
7409 runpath_var=$runpath_var
7411 # This is the shared library path variable.
7412 shlibpath_var=$shlibpath_var
7414 # Is shlibpath searched before the hard-coded library search path?
7415 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7417 # How to hardcode a shared library path into an executable.
7418 hardcode_action=$hardcode_action
7420 # Whether we should hardcode library paths into libraries.
7421 hardcode_into_libs=$hardcode_into_libs
7423 # Flag to hardcode \$libdir into a binary during linking.
7424 # This must work even if \$libdir does not exist.
7425 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7427 # Whether we need a single -rpath flag with a separated argument.
7428 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7430 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7432 hardcode_direct=$hardcode_direct
7434 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7436 hardcode_minus_L=$hardcode_minus_L
7438 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7439 # the resulting binary.
7440 hardcode_shlibpath_var=$hardcode_shlibpath_var
7442 # Variables whose values should be saved in libtool wrapper scripts and
7443 # restored at relink time.
7444 variables_saved_for_relink="$variables_saved_for_relink"
7446 # Whether libtool must link a program against all its dependency libraries.
7447 link_all_deplibs=$link_all_deplibs
7449 # Compile-time system search path for libraries
7450 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7452 # Run-time system search path for libraries
7453 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7455 # Fix the shell variable \$srcfile for the compiler.
7456 fix_srcfile_path="$fix_srcfile_path"
7458 # Set to yes if exported symbols are required.
7459 always_export_symbols=$always_export_symbols
7461 # The commands to list exported symbols.
7462 export_symbols_cmds=$lt_export_symbols_cmds
7464 # The commands to extract the exported symbol list from a shared archive.
7465 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7467 # Symbols that should not be listed in the preloaded symbols.
7468 exclude_expsyms=$lt_exclude_expsyms
7470 # Symbols that must always be exported.
7471 include_expsyms=$lt_include_expsyms
7473 # ### END LIBTOOL CONFIG
7479 cat <<\EOF >> "${ofile}T"
7481 # AIX sometimes has problems with the GCC collect2 program. For some
7482 # reason, if we set the COLLECT_NAMES environment variable, the problems
7483 # vanish in a puff of smoke.
7484 if test "X${COLLECT_NAMES+set}" != Xset; then
7486 export COLLECT_NAMES
7493 cygwin* | mingw* | pw32* | os2*)
7494 cat <<'EOF' >> "${ofile}T"
7495 # This is a source program that is used to create dlls on Windows
7496 # Don't remove nor modify the starting and closing comments
7497 # /* ltdll.c starts here */
7498 # #define WIN32_LEAN_AND_MEAN
7499 # #include <windows.h>
7500 # #undef WIN32_LEAN_AND_MEAN
7501 # #include <stdio.h>
7503 # #ifndef __CYGWIN__
7504 # # ifdef __CYGWIN32__
7505 # # define __CYGWIN__ __CYGWIN32__
7509 # #ifdef __cplusplus
7512 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7513 # #ifdef __cplusplus
7518 # #include <cygwin/cygwin_dll.h>
7519 # DECLARE_CYGWIN_DLL( DllMain );
7521 # HINSTANCE __hDllInstance_base;
7524 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7526 # __hDllInstance_base = hInst;
7529 # /* ltdll.c ends here */
7530 # This is a source program that is used to create import libraries
7531 # on Windows for dlls which lack them. Don't remove nor modify the
7532 # starting and closing comments
7533 # /* impgen.c starts here */
7534 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7536 # This file is part of GNU libtool.
7538 # This program is free software; you can redistribute it and/or modify
7539 # it under the terms of the GNU General Public License as published by
7540 # the Free Software Foundation; either version 2 of the License, or
7541 # (at your option) any later version.
7543 # This program is distributed in the hope that it will be useful,
7544 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7545 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7546 # GNU General Public License for more details.
7548 # You should have received a copy of the GNU General Public License
7549 # along with this program; if not, write to the Free Software
7550 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7553 # #include <stdio.h> /* for printf() */
7554 # #include <unistd.h> /* for open(), lseek(), read() */
7555 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7556 # #include <string.h> /* for strdup() */
7558 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7560 # #define O_BINARY 0
7563 # static unsigned int
7564 # pe_get16 (fd, offset)
7568 # unsigned char b[2];
7569 # lseek (fd, offset, SEEK_SET);
7571 # return b[0] + (b[1]<<8);
7574 # static unsigned int
7575 # pe_get32 (fd, offset)
7579 # unsigned char b[4];
7580 # lseek (fd, offset, SEEK_SET);
7582 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7585 # static unsigned int
7589 # unsigned char *b = ptr;
7590 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7599 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7600 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7601 # unsigned long name_rvas, nexp;
7602 # unsigned char *expdata, *erva;
7603 # char *filename, *dll_name;
7605 # filename = argv[1];
7607 # dll = open(filename, O_RDONLY|O_BINARY);
7611 # dll_name = filename;
7613 # for (i=0; filename[i]; i++)
7614 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7615 # dll_name = filename + i +1;
7617 # pe_header_offset = pe_get32 (dll, 0x3c);
7618 # opthdr_ofs = pe_header_offset + 4 + 20;
7619 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7621 # if (num_entries < 1) /* no exports */
7624 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7625 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7626 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7627 # secptr = (pe_header_offset + 4 + 20 +
7628 # pe_get16 (dll, pe_header_offset + 4 + 16));
7631 # for (i = 0; i < nsections; i++)
7634 # unsigned long secptr1 = secptr + 40 * i;
7635 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7636 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7637 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7638 # lseek(dll, secptr1, SEEK_SET);
7639 # read(dll, sname, 8);
7640 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7642 # expptr = fptr + (export_rva - vaddr);
7643 # if (export_rva + export_size > vaddr + vsize)
7644 # export_size = vsize - (export_rva - vaddr);
7649 # expdata = (unsigned char*)malloc(export_size);
7650 # lseek (dll, expptr, SEEK_SET);
7651 # read (dll, expdata, export_size);
7652 # erva = expdata - export_rva;
7654 # nexp = pe_as32 (expdata+24);
7655 # name_rvas = pe_as32 (expdata+32);
7657 # printf ("EXPORTS\n");
7658 # for (i = 0; i<nexp; i++)
7660 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7661 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7666 # /* impgen.c ends here */
7672 # We use sed instead of cat because bash on DJGPP gets confused if
7673 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7674 # text mode, it properly converts lines to CR/LF. This bash problem
7675 # is reportedly fixed, but why not run on old versions too?
7676 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7678 mv -f "${ofile}T" "$ofile" || \
7679 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7687 # This can be used to rebuild libtool when needed
7688 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7690 # Always use our own libtool.
7691 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7693 # Prevent multiple expansion
7698 if test $ol_enable_perl != no ; then
7699 # Extract the first word of "perl", so it can be a program name with args.
7700 set dummy perl; ac_word=$2
7701 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7702 echo "configure:7703: checking for $ac_word" >&5
7703 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7704 echo $ac_n "(cached) $ac_c" 1>&6
7708 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7711 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7714 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7716 for ac_dir in $ac_dummy; do
7717 test -z "$ac_dir" && ac_dir=.
7718 if test -f $ac_dir/$ac_word; then
7719 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7724 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7728 PERLBIN="$ac_cv_path_PERLBIN"
7729 if test -n "$PERLBIN"; then
7730 echo "$ac_t""$PERLBIN" 1>&6
7732 echo "$ac_t""no" 1>&6
7736 if test "no$PERLBIN" = "no" ; then
7737 if test $ol_enable_perl = yes ; then
7738 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7742 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7743 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
7745 if test x"$ol_enable_perl" = "xyes" ; then
7746 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
7748 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
7754 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7755 echo "configure:7756: checking how to run the C preprocessor" >&5
7756 # On Suns, sometimes $CPP names a directory.
7757 if test -n "$CPP" && test -d "$CPP"; then
7760 if test -z "$CPP"; then
7761 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7762 echo $ac_n "(cached) $ac_c" 1>&6
7764 # This must be in double quotes, not single quotes, because CPP may get
7765 # substituted into the Makefile and "${CC-cc}" will confuse make.
7767 # On the NeXT, cc -E runs the code through the compiler's parser,
7768 # not just through cpp.
7769 cat > conftest.$ac_ext <<EOF
7770 #line 7771 "configure"
7771 #include "confdefs.h"
7775 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7776 { (eval echo configure:7777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7777 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7778 if test -z "$ac_err"; then
7782 echo "configure: failed program was:" >&5
7783 cat conftest.$ac_ext >&5
7785 CPP="${CC-cc} -E -traditional-cpp"
7786 cat > conftest.$ac_ext <<EOF
7787 #line 7788 "configure"
7788 #include "confdefs.h"
7792 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7793 { (eval echo configure:7794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7794 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7795 if test -z "$ac_err"; then
7799 echo "configure: failed program was:" >&5
7800 cat conftest.$ac_ext >&5
7802 CPP="${CC-cc} -nologo -E"
7803 cat > conftest.$ac_ext <<EOF
7804 #line 7805 "configure"
7805 #include "confdefs.h"
7809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7810 { (eval echo configure:7811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7811 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7812 if test -z "$ac_err"; then
7816 echo "configure: failed program was:" >&5
7817 cat conftest.$ac_ext >&5
7826 ac_cv_prog_CPP="$CPP"
7828 CPP="$ac_cv_prog_CPP"
7830 ac_cv_prog_CPP="$CPP"
7832 echo "$ac_t""$CPP" 1>&6
7836 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7837 echo "configure:7838: checking for Cygwin environment" >&5
7838 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7839 echo $ac_n "(cached) $ac_c" 1>&6
7841 cat > conftest.$ac_ext <<EOF
7842 #line 7843 "configure"
7843 #include "confdefs.h"
7848 #define __CYGWIN__ __CYGWIN32__
7853 if { (eval echo configure:7854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7857 echo "configure: failed program was:" >&5
7858 cat conftest.$ac_ext >&5
7865 echo "$ac_t""$ac_cv_cygwin" 1>&6
7867 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7868 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7869 echo "configure:7870: checking for mingw32 environment" >&5
7870 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7871 echo $ac_n "(cached) $ac_c" 1>&6
7873 cat > conftest.$ac_ext <<EOF
7874 #line 7875 "configure"
7875 #include "confdefs.h"
7881 if { (eval echo configure:7882: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7885 echo "configure: failed program was:" >&5
7886 cat conftest.$ac_ext >&5
7893 echo "$ac_t""$ac_cv_mingw32" 1>&6
7895 test "$ac_cv_mingw32" = yes && MINGW32=yes
7899 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7900 echo "configure:7901: checking for executable suffix" >&5
7901 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
7902 echo $ac_n "(cached) $ac_c" 1>&6
7904 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
7908 echo 'int main () { return 0; }' > conftest.$ac_ext
7910 if { (eval echo configure:7911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7911 for file in conftest.*; do
7913 *.c | *.C | *.o | *.obj | *.xcoff) ;;
7914 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
7918 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7921 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
7926 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
7927 echo "$ac_t""${ac_cv_exeext}" 1>&6
7930 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
7931 echo "configure:7932: checking for object suffix" >&5
7932 if eval "test \"\${ac_cv_objext+set}\" = set"; then
7933 echo $ac_n "(cached) $ac_c" 1>&6
7936 echo 'int i = 1;' > conftest.$ac_ext
7937 if { (eval echo configure:7938: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7938 for ac_file in conftest.*; do
7941 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
7945 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
7950 echo "$ac_t""$ac_cv_objext" 1>&6
7951 OBJEXT=$ac_cv_objext
7952 ac_objext=$ac_cv_objext
7955 cat >> confdefs.h <<EOF
7956 #define EXEEXT "${EXEEXT}"
7960 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
7961 echo "configure:7962: checking for be_app in -lbe" >&5
7962 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
7963 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7964 echo $ac_n "(cached) $ac_c" 1>&6
7966 ac_save_LIBS="$LIBS"
7967 LIBS="-lbe -lroot -lnet $LIBS"
7968 cat > conftest.$ac_ext <<EOF
7969 #line 7970 "configure"
7970 #include "confdefs.h"
7971 /* Override any gcc2 internal prototype to avoid an error. */
7972 /* We use char because int might match the return type of a gcc2
7973 builtin and then its argument prototype would still apply. */
7980 if { (eval echo configure:7981: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7982 eval "ac_cv_lib_$ac_lib_var=yes"
7984 echo "configure: failed program was:" >&5
7985 cat conftest.$ac_ext >&5
7987 eval "ac_cv_lib_$ac_lib_var=no"
7990 LIBS="$ac_save_LIBS"
7993 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7994 echo "$ac_t""yes" 1>&6
7995 LIBS="$LIBS -lbe -lroot -lnet"
7997 echo "$ac_t""no" 1>&6
8005 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8006 echo "configure:8007: checking for ${CC-cc} option to accept ANSI C" >&5
8007 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8008 echo $ac_n "(cached) $ac_c" 1>&6
8010 am_cv_prog_cc_stdc=no
8012 # Don't try gcc -ansi; that turns off useful extensions and
8013 # breaks some systems' header files.
8014 # AIX -qlanglvl=ansi
8015 # Ultrix and OSF/1 -std1
8016 # HP-UX 10.20 and later -Ae
8017 # HP-UX older versions -Aa -D_HPUX_SOURCE
8018 # SVR4 -Xc -D__EXTENSIONS__
8019 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8021 CC="$ac_save_CC $ac_arg"
8022 cat > conftest.$ac_ext <<EOF
8023 #line 8024 "configure"
8024 #include "confdefs.h"
8027 #include <sys/types.h>
8028 #include <sys/stat.h>
8029 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8030 struct buf { int x; };
8031 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8032 static char *e (p, i)
8038 static char *f (char * (*g) (char **, int), char **p, ...)
8043 s = g (p, va_arg (v,int));
8047 int test (int i, double x);
8048 struct s1 {int (*f) (int a);};
8049 struct s2 {int (*f) (double a);};
8050 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8056 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8060 if { (eval echo configure:8061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8062 am_cv_prog_cc_stdc="$ac_arg"; break
8064 echo "configure: failed program was:" >&5
8065 cat conftest.$ac_ext >&5
8073 if test -z "$am_cv_prog_cc_stdc"; then
8074 echo "$ac_t""none needed" 1>&6
8076 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8078 case "x$am_cv_prog_cc_stdc" in
8080 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8083 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8084 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8087 # test for make depend flag
8090 if test -z "${MKDEP}"; then
8092 if test -z "${MKDEP_FLAGS}"; then
8093 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8094 echo "configure:8095: checking for ${OL_MKDEP} depend flag" >&5
8095 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8096 echo $ac_n "(cached) $ac_c" 1>&6
8100 for flag in "-M" "-xM"; do
8101 cat > conftest.c <<EOF
8104 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8105 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8107 if test ! -f conftest."${ac_object}" ; then
8109 OL_MKDEP_FLAGS="$flag"
8118 echo "$ac_t""$ol_cv_mkdep" 1>&6
8121 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8126 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8131 if test "${ol_cv_mkdep}" = no ; then
8132 # this will soon become an error
8133 echo "configure: warning: do not know how to generate dependencies" 1>&2
8136 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8137 echo "configure:8138: checking for afopen in -ls" >&5
8138 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8139 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8140 echo $ac_n "(cached) $ac_c" 1>&6
8142 ac_save_LIBS="$LIBS"
8144 cat > conftest.$ac_ext <<EOF
8145 #line 8146 "configure"
8146 #include "confdefs.h"
8147 /* Override any gcc2 internal prototype to avoid an error. */
8148 /* We use char because int might match the return type of a gcc2
8149 builtin and then its argument prototype would still apply. */
8156 if { (eval echo configure:8157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8158 eval "ac_cv_lib_$ac_lib_var=yes"
8160 echo "configure: failed program was:" >&5
8161 cat conftest.$ac_ext >&5
8163 eval "ac_cv_lib_$ac_lib_var=no"
8166 LIBS="$ac_save_LIBS"
8169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8170 echo "$ac_t""yes" 1>&6
8173 cat >> confdefs.h <<\EOF
8174 #define HAVE_AIX_SECURITY 1
8179 echo "$ac_t""no" 1>&6
8185 ac_cv_func_getopt=no
8186 cat >> confdefs.h <<\EOF
8187 #define BOTH_STRINGS_H 1
8194 WITH_MODULES_ENABLED=no
8195 if test $ol_enable_modules != no ; then
8196 for ac_hdr in ltdl.h
8198 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8199 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8200 echo "configure:8201: checking for $ac_hdr" >&5
8201 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8202 echo $ac_n "(cached) $ac_c" 1>&6
8204 cat > conftest.$ac_ext <<EOF
8205 #line 8206 "configure"
8206 #include "confdefs.h"
8209 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8210 { (eval echo configure:8211: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8211 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8212 if test -z "$ac_err"; then
8214 eval "ac_cv_header_$ac_safe=yes"
8217 echo "configure: failed program was:" >&5
8218 cat conftest.$ac_ext >&5
8220 eval "ac_cv_header_$ac_safe=no"
8224 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8225 echo "$ac_t""yes" 1>&6
8226 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8227 cat >> confdefs.h <<EOF
8228 #define $ac_tr_hdr 1
8232 echo "$ac_t""no" 1>&6
8237 if test $ac_cv_header_ltdl_h = no ; then
8238 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8241 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8242 echo "configure:8243: checking for lt_dlinit in -lltdl" >&5
8243 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8244 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8245 echo $ac_n "(cached) $ac_c" 1>&6
8247 ac_save_LIBS="$LIBS"
8249 cat > conftest.$ac_ext <<EOF
8250 #line 8251 "configure"
8251 #include "confdefs.h"
8252 /* Override any gcc2 internal prototype to avoid an error. */
8253 /* We use char because int might match the return type of a gcc2
8254 builtin and then its argument prototype would still apply. */
8261 if { (eval echo configure:8262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8263 eval "ac_cv_lib_$ac_lib_var=yes"
8265 echo "configure: failed program was:" >&5
8266 cat conftest.$ac_ext >&5
8268 eval "ac_cv_lib_$ac_lib_var=no"
8271 LIBS="$ac_save_LIBS"
8274 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8275 echo "$ac_t""yes" 1>&6
8278 cat >> confdefs.h <<\EOF
8279 #define HAVE_LIBLTDL 1
8284 echo "$ac_t""no" 1>&6
8288 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8289 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8292 WITH_MODULES_ENABLED=yes
8295 for i in $Backends; do
8296 eval "ol_tmp=\$ol_enable_$i"
8297 if test $ol_tmp = mod ; then
8298 echo "configure: warning: building static $i backend" 1>&2
8299 eval "ol_enable_$i=yes"
8302 for i in $Overlays; do
8303 eval "ol_tmp=\$ol_enable_$i"
8304 if test $ol_tmp = mod ; then
8305 echo "configure: warning: building static $i overlay" 1>&2
8306 eval "ol_enable_$i=yes"
8312 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8313 echo "configure:8314: checking for EBCDIC" >&5
8314 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8315 echo $ac_n "(cached) $ac_c" 1>&6
8318 cat > conftest.$ac_ext <<EOF
8319 #line 8320 "configure"
8320 #include "confdefs.h"
8323 #include <__ASCII__/generate_error.h>
8327 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8328 { (eval echo configure:8329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8329 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8330 if test -z "$ac_err"; then
8332 ol_cv_cpp_ebcdic=yes
8335 echo "configure: failed program was:" >&5
8336 cat conftest.$ac_ext >&5
8343 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8344 if test $ol_cv_cpp_ebcdic = yes ; then
8345 cat >> confdefs.h <<\EOF
8346 #define HAVE_EBCDIC 1
8351 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8352 echo "configure:8353: checking for ANSI C header files" >&5
8353 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8354 echo $ac_n "(cached) $ac_c" 1>&6
8356 cat > conftest.$ac_ext <<EOF
8357 #line 8358 "configure"
8358 #include "confdefs.h"
8364 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8365 { (eval echo configure:8366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8366 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8367 if test -z "$ac_err"; then
8369 ol_cv_header_stdc=yes
8372 echo "configure: failed program was:" >&5
8373 cat conftest.$ac_ext >&5
8375 ol_cv_header_stdc=no
8379 if test $ol_cv_header_stdc = yes; then
8380 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8381 cat > conftest.$ac_ext <<EOF
8382 #line 8383 "configure"
8383 #include "confdefs.h"
8386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8387 egrep "memchr" >/dev/null 2>&1; then
8391 ol_cv_header_stdc=no
8397 if test $ol_cv_header_stdc = yes; then
8398 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8399 cat > conftest.$ac_ext <<EOF
8400 #line 8401 "configure"
8401 #include "confdefs.h"
8404 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8405 egrep "free" >/dev/null 2>&1; then
8409 ol_cv_header_stdc=no
8415 if test $ol_cv_header_stdc = yes; then
8416 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8417 if test "$cross_compiling" = yes; then
8420 cat > conftest.$ac_ext <<EOF
8421 #line 8422 "configure"
8422 #include "confdefs.h"
8425 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8426 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8428 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8429 || ('j' <= (c) && (c) <= 'r') \
8430 || ('s' <= (c) && (c) <= 'z'))
8431 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8433 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8434 int main () { int i; for (i = 0; i < 256; i++)
8435 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8439 if { (eval echo configure:8440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
8443 echo "configure: failed program was:" >&5
8444 cat conftest.$ac_ext >&5
8446 ol_cv_header_stdc=no
8454 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8455 if test $ol_cv_header_stdc = yes; then
8456 cat >> confdefs.h <<\EOF
8457 #define STDC_HEADERS 1
8461 ac_cv_header_stdc=disable
8464 if test $ol_cv_header_stdc != yes; then
8465 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8469 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8471 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8472 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8473 echo "configure:8474: checking for $ac_hdr that defines DIR" >&5
8474 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8475 echo $ac_n "(cached) $ac_c" 1>&6
8477 cat > conftest.$ac_ext <<EOF
8478 #line 8479 "configure"
8479 #include "confdefs.h"
8480 #include <sys/types.h>
8486 if { (eval echo configure:8487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8488 eval "ac_cv_header_dirent_$ac_safe=yes"
8490 echo "configure: failed program was:" >&5
8491 cat conftest.$ac_ext >&5
8493 eval "ac_cv_header_dirent_$ac_safe=no"
8497 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8498 echo "$ac_t""yes" 1>&6
8499 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8500 cat >> confdefs.h <<EOF
8501 #define $ac_tr_hdr 1
8503 ac_header_dirent=$ac_hdr; break
8505 echo "$ac_t""no" 1>&6
8508 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8509 if test $ac_header_dirent = dirent.h; then
8510 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8511 echo "configure:8512: checking for opendir in -ldir" >&5
8512 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8513 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8514 echo $ac_n "(cached) $ac_c" 1>&6
8516 ac_save_LIBS="$LIBS"
8518 cat > conftest.$ac_ext <<EOF
8519 #line 8520 "configure"
8520 #include "confdefs.h"
8521 /* Override any gcc2 internal prototype to avoid an error. */
8522 /* We use char because int might match the return type of a gcc2
8523 builtin and then its argument prototype would still apply. */
8530 if { (eval echo configure:8531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8532 eval "ac_cv_lib_$ac_lib_var=yes"
8534 echo "configure: failed program was:" >&5
8535 cat conftest.$ac_ext >&5
8537 eval "ac_cv_lib_$ac_lib_var=no"
8540 LIBS="$ac_save_LIBS"
8543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8544 echo "$ac_t""yes" 1>&6
8547 echo "$ac_t""no" 1>&6
8551 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8552 echo "configure:8553: checking for opendir in -lx" >&5
8553 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8554 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8555 echo $ac_n "(cached) $ac_c" 1>&6
8557 ac_save_LIBS="$LIBS"
8559 cat > conftest.$ac_ext <<EOF
8560 #line 8561 "configure"
8561 #include "confdefs.h"
8562 /* Override any gcc2 internal prototype to avoid an error. */
8563 /* We use char because int might match the return type of a gcc2
8564 builtin and then its argument prototype would still apply. */
8571 if { (eval echo configure:8572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8573 eval "ac_cv_lib_$ac_lib_var=yes"
8575 echo "configure: failed program was:" >&5
8576 cat conftest.$ac_ext >&5
8578 eval "ac_cv_lib_$ac_lib_var=no"
8581 LIBS="$ac_save_LIBS"
8584 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8585 echo "$ac_t""yes" 1>&6
8588 echo "$ac_t""no" 1>&6
8593 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8594 echo "configure:8595: checking for sys/wait.h that is POSIX.1 compatible" >&5
8595 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8596 echo $ac_n "(cached) $ac_c" 1>&6
8598 cat > conftest.$ac_ext <<EOF
8599 #line 8600 "configure"
8600 #include "confdefs.h"
8601 #include <sys/types.h>
8602 #include <sys/wait.h>
8604 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8607 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8612 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8615 if { (eval echo configure:8616: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8617 ac_cv_header_sys_wait_h=yes
8619 echo "configure: failed program was:" >&5
8620 cat conftest.$ac_ext >&5
8622 ac_cv_header_sys_wait_h=no
8627 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8628 if test $ac_cv_header_sys_wait_h = yes; then
8629 cat >> confdefs.h <<\EOF
8630 #define HAVE_SYS_WAIT_H 1
8635 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8636 echo "configure:8637: checking POSIX termios" >&5
8637 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8638 echo $ac_n "(cached) $ac_c" 1>&6
8640 cat > conftest.$ac_ext <<EOF
8641 #line 8642 "configure"
8642 #include "confdefs.h"
8643 #include <sys/types.h>
8645 #include <termios.h>
8647 /* SunOS 4.0.3 has termios.h but not the library calls. */
8651 if { (eval echo configure:8652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8653 am_cv_sys_posix_termios=yes
8655 echo "configure: failed program was:" >&5
8656 cat conftest.$ac_ext >&5
8658 am_cv_sys_posix_termios=no
8663 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8666 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8667 echo "configure:8668: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8668 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8669 echo $ac_n "(cached) $ac_c" 1>&6
8671 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8673 gwinsz_in_termios_h=no
8674 if test $am_cv_sys_posix_termios = yes; then
8675 cat > conftest.$ac_ext <<EOF
8676 #line 8677 "configure"
8677 #include "confdefs.h"
8678 #include <sys/types.h>
8679 # include <termios.h>
8685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8686 egrep "yes" >/dev/null 2>&1; then
8688 gwinsz_in_termios_h=yes
8694 if test $gwinsz_in_termios_h = no; then
8695 cat > conftest.$ac_ext <<EOF
8696 #line 8697 "configure"
8697 #include "confdefs.h"
8698 #include <sys/types.h>
8699 # include <sys/ioctl.h>
8705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8706 egrep "yes" >/dev/null 2>&1; then
8708 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8716 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8717 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8718 cat >> confdefs.h <<\EOF
8719 #define GWINSZ_IN_SYS_IOCTL 1
8724 if test $am_cv_sys_posix_termios = yes ; then
8725 cat >> confdefs.h <<\EOF
8726 #define HAVE_POSIX_TERMIOS 1
8783 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8784 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8785 echo "configure:8786: checking for $ac_hdr" >&5
8786 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8787 echo $ac_n "(cached) $ac_c" 1>&6
8789 cat > conftest.$ac_ext <<EOF
8790 #line 8791 "configure"
8791 #include "confdefs.h"
8794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8795 { (eval echo configure:8796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8797 if test -z "$ac_err"; then
8799 eval "ac_cv_header_$ac_safe=yes"
8802 echo "configure: failed program was:" >&5
8803 cat conftest.$ac_ext >&5
8805 eval "ac_cv_header_$ac_safe=no"
8809 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8810 echo "$ac_t""yes" 1>&6
8811 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8812 cat >> confdefs.h <<EOF
8813 #define $ac_tr_hdr 1
8817 echo "$ac_t""no" 1>&6
8823 for ac_func in sigaction sigset
8825 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8826 echo "configure:8827: checking for $ac_func" >&5
8827 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8828 echo $ac_n "(cached) $ac_c" 1>&6
8830 cat > conftest.$ac_ext <<EOF
8831 #line 8832 "configure"
8832 #include "confdefs.h"
8833 /* System header to define __stub macros and hopefully few prototypes,
8834 which can conflict with char $ac_func(); below. */
8836 /* Override any gcc2 internal prototype to avoid an error. */
8837 /* We use char because int might match the return type of a gcc2
8838 builtin and then its argument prototype would still apply. */
8844 /* The GNU C library defines this for functions which it implements
8845 to always fail with ENOSYS. Some functions are actually named
8846 something starting with __ and the normal name is an alias. */
8847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8855 if { (eval echo configure:8856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8857 eval "ac_cv_func_$ac_func=yes"
8859 echo "configure: failed program was:" >&5
8860 cat conftest.$ac_ext >&5
8862 eval "ac_cv_func_$ac_func=no"
8867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8868 echo "$ac_t""yes" 1>&6
8869 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8870 cat >> confdefs.h <<EOF
8871 #define $ac_tr_func 1
8875 echo "$ac_t""no" 1>&6
8880 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
8881 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
8882 echo "configure:8883: checking for sigset in -lV3" >&5
8883 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
8884 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8885 echo $ac_n "(cached) $ac_c" 1>&6
8887 ac_save_LIBS="$LIBS"
8889 cat > conftest.$ac_ext <<EOF
8890 #line 8891 "configure"
8891 #include "confdefs.h"
8892 /* Override any gcc2 internal prototype to avoid an error. */
8893 /* We use char because int might match the return type of a gcc2
8894 builtin and then its argument prototype would still apply. */
8901 if { (eval echo configure:8902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8903 eval "ac_cv_lib_$ac_lib_var=yes"
8905 echo "configure: failed program was:" >&5
8906 cat conftest.$ac_ext >&5
8908 eval "ac_cv_lib_$ac_lib_var=no"
8911 LIBS="$ac_save_LIBS"
8914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8915 echo "$ac_t""yes" 1>&6
8916 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8917 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8918 cat >> confdefs.h <<EOF
8919 #define $ac_tr_lib 1
8925 echo "$ac_t""no" 1>&6
8930 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
8931 echo $ac_n "checking for winsock""... $ac_c" 1>&6
8932 echo "configure:8933: checking for winsock" >&5
8933 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
8934 echo $ac_n "(cached) $ac_c" 1>&6
8937 for curlib in ws2_32 wsock32; do
8938 LIBS="$LIBS -l$curlib"
8939 cat > conftest.$ac_ext <<EOF
8940 #line 8941 "configure"
8941 #include "confdefs.h"
8942 #include <winsock.h>
8947 select(0,NULL,NULL,NULL,NULL);
8949 gethostname(NULL,0);
8953 if { (eval echo configure:8954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8957 echo "configure: failed program was:" >&5
8958 cat conftest.$ac_ext >&5
8964 if test $ol_cv_winsock = yes; then
8965 cat >> confdefs.h <<\EOF
8966 #define HAVE_WINSOCK 1
8969 ac_cv_func_socket=yes
8970 ac_cv_func_select=yes
8971 ac_cv_func_closesocket=yes
8972 ac_cv_func_gethostname=yes
8973 if test $curlib = ws2_32; then
8974 ol_cv_winsock=winsock2
8975 cat >> confdefs.h <<\EOF
8976 #define HAVE_WINSOCK2 1
8986 echo "$ac_t""$ol_cv_winsock" 1>&6
8990 echo $ac_n "checking for socket""... $ac_c" 1>&6
8991 echo "configure:8992: checking for socket" >&5
8992 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
8993 echo $ac_n "(cached) $ac_c" 1>&6
8995 cat > conftest.$ac_ext <<EOF
8996 #line 8997 "configure"
8997 #include "confdefs.h"
8998 /* System header to define __stub macros and hopefully few prototypes,
8999 which can conflict with char socket(); below. */
9001 /* Override any gcc2 internal prototype to avoid an error. */
9002 /* We use char because int might match the return type of a gcc2
9003 builtin and then its argument prototype would still apply. */
9009 /* The GNU C library defines this for functions which it implements
9010 to always fail with ENOSYS. Some functions are actually named
9011 something starting with __ and the normal name is an alias. */
9012 #if defined (__stub_socket) || defined (__stub___socket)
9020 if { (eval echo configure:9021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9022 eval "ac_cv_func_socket=yes"
9024 echo "configure: failed program was:" >&5
9025 cat conftest.$ac_ext >&5
9027 eval "ac_cv_func_socket=no"
9032 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9033 echo "$ac_t""yes" 1>&6
9036 echo "$ac_t""no" 1>&6
9038 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9039 echo "configure:9040: checking for main in -lsocket" >&5
9040 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9041 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9042 echo $ac_n "(cached) $ac_c" 1>&6
9044 ac_save_LIBS="$LIBS"
9045 LIBS="-lsocket $LIBS"
9046 cat > conftest.$ac_ext <<EOF
9047 #line 9048 "configure"
9048 #include "confdefs.h"
9054 if { (eval echo configure:9055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9056 eval "ac_cv_lib_$ac_lib_var=yes"
9058 echo "configure: failed program was:" >&5
9059 cat conftest.$ac_ext >&5
9061 eval "ac_cv_lib_$ac_lib_var=no"
9064 LIBS="$ac_save_LIBS"
9067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9068 echo "$ac_t""yes" 1>&6
9069 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9070 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9071 cat >> confdefs.h <<EOF
9072 #define $ac_tr_lib 1
9075 LIBS="-lsocket $LIBS"
9078 echo "$ac_t""no" 1>&6
9081 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9082 echo "configure:9083: checking for main in -lnet" >&5
9083 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9084 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9085 echo $ac_n "(cached) $ac_c" 1>&6
9087 ac_save_LIBS="$LIBS"
9089 cat > conftest.$ac_ext <<EOF
9090 #line 9091 "configure"
9091 #include "confdefs.h"
9097 if { (eval echo configure:9098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9099 eval "ac_cv_lib_$ac_lib_var=yes"
9101 echo "configure: failed program was:" >&5
9102 cat conftest.$ac_ext >&5
9104 eval "ac_cv_lib_$ac_lib_var=no"
9107 LIBS="$ac_save_LIBS"
9110 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9111 echo "$ac_t""yes" 1>&6
9112 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9113 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9114 cat >> confdefs.h <<EOF
9115 #define $ac_tr_lib 1
9121 echo "$ac_t""no" 1>&6
9124 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9125 echo "configure:9126: checking for main in -lnsl_s" >&5
9126 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9127 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9128 echo $ac_n "(cached) $ac_c" 1>&6
9130 ac_save_LIBS="$LIBS"
9131 LIBS="-lnsl_s $LIBS"
9132 cat > conftest.$ac_ext <<EOF
9133 #line 9134 "configure"
9134 #include "confdefs.h"
9140 if { (eval echo configure:9141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9142 eval "ac_cv_lib_$ac_lib_var=yes"
9144 echo "configure: failed program was:" >&5
9145 cat conftest.$ac_ext >&5
9147 eval "ac_cv_lib_$ac_lib_var=no"
9150 LIBS="$ac_save_LIBS"
9153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9154 echo "$ac_t""yes" 1>&6
9155 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9156 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9157 cat >> confdefs.h <<EOF
9158 #define $ac_tr_lib 1
9161 LIBS="-lnsl_s $LIBS"
9164 echo "$ac_t""no" 1>&6
9167 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9168 echo "configure:9169: checking for main in -lnsl" >&5
9169 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9170 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9171 echo $ac_n "(cached) $ac_c" 1>&6
9173 ac_save_LIBS="$LIBS"
9175 cat > conftest.$ac_ext <<EOF
9176 #line 9177 "configure"
9177 #include "confdefs.h"
9183 if { (eval echo configure:9184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9185 eval "ac_cv_lib_$ac_lib_var=yes"
9187 echo "configure: failed program was:" >&5
9188 cat conftest.$ac_ext >&5
9190 eval "ac_cv_lib_$ac_lib_var=no"
9193 LIBS="$ac_save_LIBS"
9196 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9197 echo "$ac_t""yes" 1>&6
9198 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9199 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9200 cat >> confdefs.h <<EOF
9201 #define $ac_tr_lib 1
9207 echo "$ac_t""no" 1>&6
9210 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9211 echo "configure:9212: checking for socket in -linet" >&5
9212 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9213 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9214 echo $ac_n "(cached) $ac_c" 1>&6
9216 ac_save_LIBS="$LIBS"
9218 cat > conftest.$ac_ext <<EOF
9219 #line 9220 "configure"
9220 #include "confdefs.h"
9221 /* Override any gcc2 internal prototype to avoid an error. */
9222 /* We use char because int might match the return type of a gcc2
9223 builtin and then its argument prototype would still apply. */
9230 if { (eval echo configure:9231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9232 eval "ac_cv_lib_$ac_lib_var=yes"
9234 echo "configure: failed program was:" >&5
9235 cat conftest.$ac_ext >&5
9237 eval "ac_cv_lib_$ac_lib_var=no"
9240 LIBS="$ac_save_LIBS"
9243 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9244 echo "$ac_t""yes" 1>&6
9245 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9246 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9247 cat >> confdefs.h <<EOF
9248 #define $ac_tr_lib 1
9254 echo "$ac_t""no" 1>&6
9257 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9258 echo "configure:9259: checking for main in -lgen" >&5
9259 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9260 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9261 echo $ac_n "(cached) $ac_c" 1>&6
9263 ac_save_LIBS="$LIBS"
9265 cat > conftest.$ac_ext <<EOF
9266 #line 9267 "configure"
9267 #include "confdefs.h"
9273 if { (eval echo configure:9274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9275 eval "ac_cv_lib_$ac_lib_var=yes"
9277 echo "configure: failed program was:" >&5
9278 cat conftest.$ac_ext >&5
9280 eval "ac_cv_lib_$ac_lib_var=no"
9283 LIBS="$ac_save_LIBS"
9286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9287 echo "$ac_t""yes" 1>&6
9288 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9289 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9290 cat >> confdefs.h <<EOF
9291 #define $ac_tr_lib 1
9297 echo "$ac_t""no" 1>&6
9304 echo $ac_n "checking for select""... $ac_c" 1>&6
9305 echo "configure:9306: checking for select" >&5
9306 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9307 echo $ac_n "(cached) $ac_c" 1>&6
9309 cat > conftest.$ac_ext <<EOF
9310 #line 9311 "configure"
9311 #include "confdefs.h"
9312 /* System header to define __stub macros and hopefully few prototypes,
9313 which can conflict with char select(); below. */
9315 /* Override any gcc2 internal prototype to avoid an error. */
9316 /* We use char because int might match the return type of a gcc2
9317 builtin and then its argument prototype would still apply. */
9323 /* The GNU C library defines this for functions which it implements
9324 to always fail with ENOSYS. Some functions are actually named
9325 something starting with __ and the normal name is an alias. */
9326 #if defined (__stub_select) || defined (__stub___select)
9334 if { (eval echo configure:9335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9336 eval "ac_cv_func_select=yes"
9338 echo "configure: failed program was:" >&5
9339 cat conftest.$ac_ext >&5
9341 eval "ac_cv_func_select=no"
9346 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9347 echo "$ac_t""yes" 1>&6
9350 echo "$ac_t""no" 1>&6
9351 { echo "configure: error: select() required." 1>&2; exit 1; }
9355 if test "${ac_cv_header_winsock_h}" != yes; then
9356 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9357 echo "configure:9358: checking types of arguments for select()" >&5
9358 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9359 echo $ac_n "(cached) $ac_c" 1>&6
9361 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9362 echo $ac_n "(cached) $ac_c" 1>&6
9364 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9365 echo $ac_n "(cached) $ac_c" 1>&6
9367 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9368 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9369 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9370 cat > conftest.$ac_ext <<EOF
9371 #line 9372 "configure"
9372 #include "confdefs.h"
9373 #ifdef HAVE_SYS_TYPES_H
9374 #include <sys/types.h>
9376 #ifdef HAVE_SYS_TIME_H
9377 #include <sys/time.h>
9379 #ifdef HAVE_SYS_SELECT_H
9380 #include <sys/select.h>
9382 #ifdef HAVE_SYS_SOCKET_H
9383 #include <sys/socket.h>
9385 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);
9390 if { (eval echo configure:9391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9392 ac_not_found=no ; break 3
9394 echo "configure: failed program was:" >&5
9395 cat conftest.$ac_ext >&5
9409 if test "$ac_not_found" = yes; then
9410 ac_cv_func_select_arg1=int
9411 ac_cv_func_select_arg234='int *'
9412 ac_cv_func_select_arg5='struct timeval *'
9414 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9415 cat >> confdefs.h <<EOF
9416 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9419 cat >> confdefs.h <<EOF
9420 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9423 cat >> confdefs.h <<EOF
9424 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9434 echo "configure:9435: checking for $ac_func" >&5
9435 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9436 echo $ac_n "(cached) $ac_c" 1>&6
9438 cat > conftest.$ac_ext <<EOF
9439 #line 9440 "configure"
9440 #include "confdefs.h"
9441 /* System header to define __stub macros and hopefully few prototypes,
9442 which can conflict with char $ac_func(); below. */
9444 /* Override any gcc2 internal prototype to avoid an error. */
9445 /* We use char because int might match the return type of a gcc2
9446 builtin and then its argument prototype would still apply. */
9452 /* The GNU C library defines this for functions which it implements
9453 to always fail with ENOSYS. Some functions are actually named
9454 something starting with __ and the normal name is an alias. */
9455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9463 if { (eval echo configure:9464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9465 eval "ac_cv_func_$ac_func=yes"
9467 echo "configure: failed program was:" >&5
9468 cat conftest.$ac_ext >&5
9470 eval "ac_cv_func_$ac_func=no"
9475 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9476 echo "$ac_t""yes" 1>&6
9477 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9478 cat >> confdefs.h <<EOF
9479 #define $ac_tr_func 1
9483 echo "$ac_t""no" 1>&6
9487 for ac_hdr in poll.h
9489 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9490 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9491 echo "configure:9492: checking for $ac_hdr" >&5
9492 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9493 echo $ac_n "(cached) $ac_c" 1>&6
9495 cat > conftest.$ac_ext <<EOF
9496 #line 9497 "configure"
9497 #include "confdefs.h"
9500 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9501 { (eval echo configure:9502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9502 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9503 if test -z "$ac_err"; then
9505 eval "ac_cv_header_$ac_safe=yes"
9508 echo "configure: failed program was:" >&5
9509 cat conftest.$ac_ext >&5
9511 eval "ac_cv_header_$ac_safe=no"
9515 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9516 echo "$ac_t""yes" 1>&6
9517 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9518 cat >> confdefs.h <<EOF
9519 #define $ac_tr_hdr 1
9523 echo "$ac_t""no" 1>&6
9528 for ac_hdr in sys/epoll.h
9530 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9531 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9532 echo "configure:9533: checking for $ac_hdr" >&5
9533 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9534 echo $ac_n "(cached) $ac_c" 1>&6
9536 cat > conftest.$ac_ext <<EOF
9537 #line 9538 "configure"
9538 #include "confdefs.h"
9541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9542 { (eval echo configure:9543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9543 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9544 if test -z "$ac_err"; then
9546 eval "ac_cv_header_$ac_safe=yes"
9549 echo "configure: failed program was:" >&5
9550 cat conftest.$ac_ext >&5
9552 eval "ac_cv_header_$ac_safe=no"
9556 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9557 echo "$ac_t""yes" 1>&6
9558 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9559 cat >> confdefs.h <<EOF
9560 #define $ac_tr_hdr 1
9564 echo "$ac_t""no" 1>&6
9568 if test "${ac_cv_header_sys_epoll_h}" = yes; then
9569 echo $ac_n "checking for epoll system call""... $ac_c" 1>&6
9570 echo "configure:9571: checking for epoll system call" >&5
9571 if test "$cross_compiling" = yes; then
9572 echo "$ac_t""no" 1>&6
9574 cat > conftest.$ac_ext <<EOF
9575 #line 9576 "configure"
9576 #include "confdefs.h"
9577 int main(int argc, char *argv)
9579 int epfd = epoll_create(256);
9580 exit (epfd == -1 ? 1 : 0);
9583 if { (eval echo configure:9584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
9585 echo "$ac_t""yes" 1>&6
9586 cat >> confdefs.h <<\EOF
9587 #define HAVE_EPOLL 1
9591 echo "configure: failed program was:" >&5
9592 cat conftest.$ac_ext >&5
9594 echo "$ac_t""no" 1>&6
9602 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
9603 echo "configure:9604: checking declaration of sys_errlist" >&5
9604 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
9605 echo $ac_n "(cached) $ac_c" 1>&6
9608 cat > conftest.$ac_ext <<EOF
9609 #line 9610 "configure"
9610 #include "confdefs.h"
9613 #include <sys/types.h>
9619 char *c = (char *) *sys_errlist
9622 if { (eval echo configure:9623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9624 ol_cv_dcl_sys_errlist=yes
9625 ol_cv_have_sys_errlist=yes
9627 echo "configure: failed program was:" >&5
9628 cat conftest.$ac_ext >&5
9630 ol_cv_dcl_sys_errlist=no
9635 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
9637 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
9638 if test $ol_cv_dcl_sys_errlist = no ; then
9639 cat >> confdefs.h <<\EOF
9640 #define DECL_SYS_ERRLIST 1
9644 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
9645 echo "configure:9646: checking existence of sys_errlist" >&5
9646 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
9647 echo $ac_n "(cached) $ac_c" 1>&6
9650 cat > conftest.$ac_ext <<EOF
9651 #line 9652 "configure"
9652 #include "confdefs.h"
9655 char *c = (char *) *sys_errlist
9658 if { (eval echo configure:9659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9660 ol_cv_have_sys_errlist=yes
9662 echo "configure: failed program was:" >&5
9663 cat conftest.$ac_ext >&5
9665 ol_cv_have_sys_errlist=no
9670 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
9672 if test $ol_cv_have_sys_errlist = yes ; then
9673 cat >> confdefs.h <<\EOF
9674 #define HAVE_SYS_ERRLIST 1
9678 for ac_func in strerror strerror_r
9680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9681 echo "configure:9682: checking for $ac_func" >&5
9682 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9683 echo $ac_n "(cached) $ac_c" 1>&6
9685 cat > conftest.$ac_ext <<EOF
9686 #line 9687 "configure"
9687 #include "confdefs.h"
9688 /* System header to define __stub macros and hopefully few prototypes,
9689 which can conflict with char $ac_func(); below. */
9691 /* Override any gcc2 internal prototype to avoid an error. */
9692 /* We use char because int might match the return type of a gcc2
9693 builtin and then its argument prototype would still apply. */
9699 /* The GNU C library defines this for functions which it implements
9700 to always fail with ENOSYS. Some functions are actually named
9701 something starting with __ and the normal name is an alias. */
9702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9710 if { (eval echo configure:9711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9712 eval "ac_cv_func_$ac_func=yes"
9714 echo "configure: failed program was:" >&5
9715 cat conftest.$ac_ext >&5
9717 eval "ac_cv_func_$ac_func=no"
9722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9723 echo "$ac_t""yes" 1>&6
9724 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9725 cat >> confdefs.h <<EOF
9726 #define $ac_tr_func 1
9730 echo "$ac_t""no" 1>&6
9734 ol_cv_func_strerror_r=no
9735 if test "${ac_cv_func_strerror_r}" = yes ; then
9736 echo $ac_n "checking non-posix strerror_r""... $ac_c" 1>&6
9737 echo "configure:9738: checking non-posix strerror_r" >&5
9738 if eval "test \"\${ol_cv_nonposix_strerror_r+set}\" = set"; then
9739 echo $ac_n "(cached) $ac_c" 1>&6
9742 cat > conftest.$ac_ext <<EOF
9743 #line 9744 "configure"
9744 #include "confdefs.h"
9747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9748 egrep "strerror_r" >/dev/null 2>&1; then
9750 ol_decl_strerror_r=yes
9753 ol_decl_strerror_r=no
9757 if test $ol_decl_strerror_r = yes ; then
9758 cat > conftest.$ac_ext <<EOF
9759 #line 9760 "configure"
9760 #include "confdefs.h"
9763 /* from autoconf 2.59 */
9765 char x = *strerror_r (0, buf, sizeof buf);
9766 char *p = strerror_r (0, buf, sizeof buf);
9770 if { (eval echo configure:9771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9772 ol_cv_nonposix_strerror_r=yes
9774 echo "configure: failed program was:" >&5
9775 cat conftest.$ac_ext >&5
9777 ol_cv_nonposix_strerror_r=no
9781 if test "$cross_compiling" = yes; then
9782 ol_cv_nonposix_strerror=no
9784 cat > conftest.$ac_ext <<EOF
9785 #line 9786 "configure"
9786 #include "confdefs.h"
9791 strerror_r( 1, buf, sizeof buf );
9792 exit( buf[0] == 0 );
9796 if { (eval echo configure:9797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
9798 ol_cv_nonposix_strerror_r=yes
9800 echo "configure: failed program was:" >&5
9801 cat conftest.$ac_ext >&5
9803 ol_cv_nonposix_strerror=no
9812 echo "$ac_t""$ol_cv_nonposix_strerror_r" 1>&6
9813 if test $ol_cv_nonposix_strerror_r = yes ; then
9814 cat >> confdefs.h <<\EOF
9815 #define HAVE_NONPOSIX_STRERROR_R 1
9820 elif test "${ac_cv_func_strerror}" = no ; then
9821 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
9822 echo "configure:9823: checking declaration of sys_errlist" >&5
9823 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
9824 echo $ac_n "(cached) $ac_c" 1>&6
9827 cat > conftest.$ac_ext <<EOF
9828 #line 9829 "configure"
9829 #include "confdefs.h"
9832 #include <sys/types.h>
9838 char *c = (char *) *sys_errlist
9841 if { (eval echo configure:9842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9843 ol_cv_dcl_sys_errlist=yes
9844 ol_cv_have_sys_errlist=yes
9846 echo "configure: failed program was:" >&5
9847 cat conftest.$ac_ext >&5
9849 ol_cv_dcl_sys_errlist=no
9854 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
9856 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
9857 if test $ol_cv_dcl_sys_errlist = no ; then
9858 cat >> confdefs.h <<\EOF
9859 #define DECL_SYS_ERRLIST 1
9863 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
9864 echo "configure:9865: checking existence of sys_errlist" >&5
9865 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
9866 echo $ac_n "(cached) $ac_c" 1>&6
9869 cat > conftest.$ac_ext <<EOF
9870 #line 9871 "configure"
9871 #include "confdefs.h"
9874 char *c = (char *) *sys_errlist
9877 if { (eval echo configure:9878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9879 ol_cv_have_sys_errlist=yes
9881 echo "configure: failed program was:" >&5
9882 cat conftest.$ac_ext >&5
9884 ol_cv_have_sys_errlist=no
9889 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
9891 if test $ol_cv_have_sys_errlist = yes ; then
9892 cat >> confdefs.h <<\EOF
9893 #define HAVE_SYS_ERRLIST 1
9901 for ac_hdr in regex.h
9903 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9904 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9905 echo "configure:9906: checking for $ac_hdr" >&5
9906 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9907 echo $ac_n "(cached) $ac_c" 1>&6
9909 cat > conftest.$ac_ext <<EOF
9910 #line 9911 "configure"
9911 #include "confdefs.h"
9914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9915 { (eval echo configure:9916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9917 if test -z "$ac_err"; then
9919 eval "ac_cv_header_$ac_safe=yes"
9922 echo "configure: failed program was:" >&5
9923 cat conftest.$ac_ext >&5
9925 eval "ac_cv_header_$ac_safe=no"
9929 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9930 echo "$ac_t""yes" 1>&6
9931 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9932 cat >> confdefs.h <<EOF
9933 #define $ac_tr_hdr 1
9937 echo "$ac_t""no" 1>&6
9941 if test "$ac_cv_header_regex_h" != yes ; then
9942 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9945 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9946 echo "configure:9947: checking for library containing regfree" >&5
9947 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9948 echo $ac_n "(cached) $ac_c" 1>&6
9950 ac_func_search_save_LIBS="$LIBS"
9951 ac_cv_search_regfree="no"
9952 cat > conftest.$ac_ext <<EOF
9953 #line 9954 "configure"
9954 #include "confdefs.h"
9955 /* Override any gcc2 internal prototype to avoid an error. */
9956 /* We use char because int might match the return type of a gcc2
9957 builtin and then its argument prototype would still apply. */
9964 if { (eval echo configure:9965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9966 ac_cv_search_regfree="none required"
9968 echo "configure: failed program was:" >&5
9969 cat conftest.$ac_ext >&5
9972 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9973 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9974 cat > conftest.$ac_ext <<EOF
9975 #line 9976 "configure"
9976 #include "confdefs.h"
9977 /* Override any gcc2 internal prototype to avoid an error. */
9978 /* We use char because int might match the return type of a gcc2
9979 builtin and then its argument prototype would still apply. */
9986 if { (eval echo configure:9987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9988 ac_cv_search_regfree="-l$ac_lib"
9991 echo "configure: failed program was:" >&5
9992 cat conftest.$ac_ext >&5
9996 LIBS="$ac_func_search_save_LIBS"
9999 echo "$ac_t""$ac_cv_search_regfree" 1>&6
10000 if test "$ac_cv_search_regfree" != "no"; then
10001 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
10004 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
10008 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
10009 echo "configure:10010: checking for compatible POSIX regex" >&5
10010 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
10011 echo $ac_n "(cached) $ac_c" 1>&6
10014 if test "$cross_compiling" = yes; then
10015 ol_cv_c_posix_regex=cross
10017 cat > conftest.$ac_ext <<EOF
10018 #line 10019 "configure"
10019 #include "confdefs.h"
10021 #include <sys/types.h>
10023 static char *pattern, *string;
10031 if(regcomp(&re, pattern, 0)) {
10035 string = "ALL MATCH";
10037 rc = regexec(&re, string, 0, (void*)0, 0);
10044 if { (eval echo configure:10045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
10046 ol_cv_c_posix_regex=yes
10048 echo "configure: failed program was:" >&5
10049 cat conftest.$ac_ext >&5
10051 ol_cv_c_posix_regex=no
10058 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
10060 if test "$ol_cv_c_posix_regex" = no ; then
10061 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
10066 for ac_hdr in sys/uuid.h
10068 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10069 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10070 echo "configure:10071: checking for $ac_hdr" >&5
10071 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10072 echo $ac_n "(cached) $ac_c" 1>&6
10074 cat > conftest.$ac_ext <<EOF
10075 #line 10076 "configure"
10076 #include "confdefs.h"
10079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10080 { (eval echo configure:10081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10082 if test -z "$ac_err"; then
10084 eval "ac_cv_header_$ac_safe=yes"
10087 echo "configure: failed program was:" >&5
10088 cat conftest.$ac_ext >&5
10090 eval "ac_cv_header_$ac_safe=no"
10094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10095 echo "$ac_t""yes" 1>&6
10096 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10097 cat >> confdefs.h <<EOF
10098 #define $ac_tr_hdr 1
10102 echo "$ac_t""no" 1>&6
10106 if test $ac_cv_header_sys_uuid_h = yes ; then
10109 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
10110 echo "configure:10111: checking for library containing uuid_to_str" >&5
10111 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
10112 echo $ac_n "(cached) $ac_c" 1>&6
10114 ac_func_search_save_LIBS="$LIBS"
10115 ac_cv_search_uuid_to_str="no"
10116 cat > conftest.$ac_ext <<EOF
10117 #line 10118 "configure"
10118 #include "confdefs.h"
10119 /* Override any gcc2 internal prototype to avoid an error. */
10120 /* We use char because int might match the return type of a gcc2
10121 builtin and then its argument prototype would still apply. */
10122 char uuid_to_str();
10128 if { (eval echo configure:10129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10130 ac_cv_search_uuid_to_str="none required"
10132 echo "configure: failed program was:" >&5
10133 cat conftest.$ac_ext >&5
10136 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
10137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10138 cat > conftest.$ac_ext <<EOF
10139 #line 10140 "configure"
10140 #include "confdefs.h"
10141 /* Override any gcc2 internal prototype to avoid an error. */
10142 /* We use char because int might match the return type of a gcc2
10143 builtin and then its argument prototype would still apply. */
10144 char uuid_to_str();
10150 if { (eval echo configure:10151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10152 ac_cv_search_uuid_to_str="-l$ac_lib"
10155 echo "configure: failed program was:" >&5
10156 cat conftest.$ac_ext >&5
10160 LIBS="$ac_func_search_save_LIBS"
10163 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
10164 if test "$ac_cv_search_uuid_to_str" != "no"; then
10165 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
10172 if test have_uuid = yes ; then
10173 cat >> confdefs.h <<\EOF
10174 #define HAVE_UUID_TO_STR 1
10178 test "$ac_cv_search_uuid_to_str" = "none required" || \
10179 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
10183 if test $have_uuid = no ; then
10184 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
10185 echo "configure:10186: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
10187 LIBS="$LIBS -lrpcrt4"
10188 cat > conftest.$ac_ext <<EOF
10189 #line 10190 "configure"
10190 #include "confdefs.h"
10192 int __stdcall UuidCreate(void *);
10193 int __stdcall UuidToStringA(void *,void **);
10198 UuidToStringA(0,0);
10202 if { (eval echo configure:10203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10206 echo "configure: failed program was:" >&5
10207 cat conftest.$ac_ext >&5
10212 if test $need_rpcrt = yes; then
10213 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
10216 echo "$ac_t""$need_rpcrt" 1>&6
10219 ol_cv_lib_resolver=no
10220 if test $ol_cv_lib_resolver = no ; then
10221 echo $ac_n "checking for resolver link (default)""... $ac_c" 1>&6
10222 echo "configure:10223: checking for resolver link (default)" >&5
10223 if eval "test \"\${ol_cv_resolver_none+set}\" = set"; then
10224 echo $ac_n "(cached) $ac_c" 1>&6
10229 LIBS="$ol_RESOLVER_LIB $LIBS"
10231 cat > conftest.$ac_ext <<EOF
10232 #line 10233 "configure"
10233 #include "confdefs.h"
10235 #ifdef HAVE_SYS_TYPES_H
10236 # include <sys/types.h>
10238 #include <netinet/in.h>
10239 #ifdef HAVE_ARPA_NAMESER_H
10240 # include <arpa/nameser.h>
10242 #ifdef HAVE_RESOLV_H
10243 # include <resolv.h>
10249 char *request = NULL;
10250 unsigned char reply[64*1024];
10251 unsigned char host[64*1024];
10255 /* Bind 8/9 interface */
10256 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
10258 /* Bind 4 interface */
10262 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
10266 /* Bind 8/9 interface */
10268 #elif defined(HFIXEDSZ)
10269 /* Bind 4 interface w/ HFIXEDSZ */
10272 /* Bind 4 interface w/o HFIXEDSZ */
10273 p += sizeof(HEADER);
10275 status = dn_expand( reply, reply+len, p, host, sizeof(host));
10279 if { (eval echo configure:10280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10281 ol_cv_resolver_none=yes
10283 echo "configure: failed program was:" >&5
10284 cat conftest.$ac_ext >&5
10286 ol_cv_resolver_none=no
10294 echo "$ac_t""$ol_cv_resolver_none" 1>&6
10296 if test $ol_cv_resolver_none = yes ; then
10297 ol_cv_lib_resolver=yes
10301 if test $ol_cv_lib_resolver = no ; then
10302 echo $ac_n "checking for resolver link (-lresolv)""... $ac_c" 1>&6
10303 echo "configure:10304: checking for resolver link (-lresolv)" >&5
10304 if eval "test \"\${ol_cv_resolver_resolv+set}\" = set"; then
10305 echo $ac_n "(cached) $ac_c" 1>&6
10308 ol_RESOLVER_LIB=-lresolv
10310 LIBS="$ol_RESOLVER_LIB $LIBS"
10312 cat > conftest.$ac_ext <<EOF
10313 #line 10314 "configure"
10314 #include "confdefs.h"
10316 #ifdef HAVE_SYS_TYPES_H
10317 # include <sys/types.h>
10319 #include <netinet/in.h>
10320 #ifdef HAVE_ARPA_NAMESER_H
10321 # include <arpa/nameser.h>
10323 #ifdef HAVE_RESOLV_H
10324 # include <resolv.h>
10330 char *request = NULL;
10331 unsigned char reply[64*1024];
10332 unsigned char host[64*1024];
10336 /* Bind 8/9 interface */
10337 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
10339 /* Bind 4 interface */
10343 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
10347 /* Bind 8/9 interface */
10349 #elif defined(HFIXEDSZ)
10350 /* Bind 4 interface w/ HFIXEDSZ */
10353 /* Bind 4 interface w/o HFIXEDSZ */
10354 p += sizeof(HEADER);
10356 status = dn_expand( reply, reply+len, p, host, sizeof(host));
10360 if { (eval echo configure:10361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10362 ol_cv_resolver_resolv=yes
10364 echo "configure: failed program was:" >&5
10365 cat conftest.$ac_ext >&5
10367 ol_cv_resolver_resolv=no
10375 echo "$ac_t""$ol_cv_resolver_resolv" 1>&6
10377 if test $ol_cv_resolver_resolv = yes ; then
10378 ol_cv_lib_resolver=-lresolv
10382 if test $ol_cv_lib_resolver = no ; then
10383 echo $ac_n "checking for resolver link (-lbind)""... $ac_c" 1>&6
10384 echo "configure:10385: checking for resolver link (-lbind)" >&5
10385 if eval "test \"\${ol_cv_resolver_bind+set}\" = set"; then
10386 echo $ac_n "(cached) $ac_c" 1>&6
10389 ol_RESOLVER_LIB=-lbind
10391 LIBS="$ol_RESOLVER_LIB $LIBS"
10393 cat > conftest.$ac_ext <<EOF
10394 #line 10395 "configure"
10395 #include "confdefs.h"
10397 #ifdef HAVE_SYS_TYPES_H
10398 # include <sys/types.h>
10400 #include <netinet/in.h>
10401 #ifdef HAVE_ARPA_NAMESER_H
10402 # include <arpa/nameser.h>
10404 #ifdef HAVE_RESOLV_H
10405 # include <resolv.h>
10411 char *request = NULL;
10412 unsigned char reply[64*1024];
10413 unsigned char host[64*1024];
10417 /* Bind 8/9 interface */
10418 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
10420 /* Bind 4 interface */
10424 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
10428 /* Bind 8/9 interface */
10430 #elif defined(HFIXEDSZ)
10431 /* Bind 4 interface w/ HFIXEDSZ */
10434 /* Bind 4 interface w/o HFIXEDSZ */
10435 p += sizeof(HEADER);
10437 status = dn_expand( reply, reply+len, p, host, sizeof(host));
10441 if { (eval echo configure:10442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10443 ol_cv_resolver_bind=yes
10445 echo "configure: failed program was:" >&5
10446 cat conftest.$ac_ext >&5
10448 ol_cv_resolver_bind=no
10456 echo "$ac_t""$ol_cv_resolver_bind" 1>&6
10458 if test $ol_cv_resolver_bind = yes ; then
10459 ol_cv_lib_resolver=-lbind
10466 if test "$ol_cv_lib_resolver" != no ; then
10467 cat >> confdefs.h <<\EOF
10468 #define HAVE_RES_QUERY 1
10472 if test "$ol_enable_dnssrv" != no ; then
10476 if test "$ol_cv_lib_resolver" != yes ; then
10477 LIBS="$ol_cv_lib_resolver $LIBS"
10481 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
10482 if test "$ol_link_dnssrv" = no ; then
10483 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10486 ol_enable_dnssrv=no
10489 for ac_func in hstrerror
10491 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10492 echo "configure:10493: checking for $ac_func" >&5
10493 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10494 echo $ac_n "(cached) $ac_c" 1>&6
10496 cat > conftest.$ac_ext <<EOF
10497 #line 10498 "configure"
10498 #include "confdefs.h"
10499 /* System header to define __stub macros and hopefully few prototypes,
10500 which can conflict with char $ac_func(); below. */
10501 #include <assert.h>
10502 /* Override any gcc2 internal prototype to avoid an error. */
10503 /* We use char because int might match the return type of a gcc2
10504 builtin and then its argument prototype would still apply. */
10510 /* The GNU C library defines this for functions which it implements
10511 to always fail with ENOSYS. Some functions are actually named
10512 something starting with __ and the normal name is an alias. */
10513 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10521 if { (eval echo configure:10522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10523 eval "ac_cv_func_$ac_func=yes"
10525 echo "configure: failed program was:" >&5
10526 cat conftest.$ac_ext >&5
10528 eval "ac_cv_func_$ac_func=no"
10533 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10534 echo "$ac_t""yes" 1>&6
10535 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10536 cat >> confdefs.h <<EOF
10537 #define $ac_tr_func 1
10541 echo "$ac_t""no" 1>&6
10546 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
10548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10549 echo "configure:10550: checking for $ac_func" >&5
10550 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10551 echo $ac_n "(cached) $ac_c" 1>&6
10553 cat > conftest.$ac_ext <<EOF
10554 #line 10555 "configure"
10555 #include "confdefs.h"
10556 /* System header to define __stub macros and hopefully few prototypes,
10557 which can conflict with char $ac_func(); below. */
10558 #include <assert.h>
10559 /* Override any gcc2 internal prototype to avoid an error. */
10560 /* We use char because int might match the return type of a gcc2
10561 builtin and then its argument prototype would still apply. */
10567 /* The GNU C library defines this for functions which it implements
10568 to always fail with ENOSYS. Some functions are actually named
10569 something starting with __ and the normal name is an alias. */
10570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10578 if { (eval echo configure:10579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10580 eval "ac_cv_func_$ac_func=yes"
10582 echo "configure: failed program was:" >&5
10583 cat conftest.$ac_ext >&5
10585 eval "ac_cv_func_$ac_func=no"
10590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10591 echo "$ac_t""yes" 1>&6
10592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10593 cat >> confdefs.h <<EOF
10594 #define $ac_tr_func 1
10598 echo "$ac_t""no" 1>&6
10604 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10605 if test $ol_enable_ipv6 = yes ; then
10606 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10608 elif test $ol_enable_ipv6 != no ; then
10609 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10610 echo "configure:10611: checking INET6_ADDRSTRLEN" >&5
10611 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10612 echo $ac_n "(cached) $ac_c" 1>&6
10615 cat > conftest.$ac_ext <<EOF
10616 #line 10617 "configure"
10617 #include "confdefs.h"
10619 # include <netinet/in.h>
10620 # ifdef INET6_ADDRSTRLEN
10621 __has_inet6_addrstrlen__;
10625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10626 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10628 ol_cv_inet6_addrstrlen=yes
10631 ol_cv_inet6_addrstrlen=no
10637 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10640 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10641 echo "configure:10642: checking struct sockaddr_storage" >&5
10642 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10643 echo $ac_n "(cached) $ac_c" 1>&6
10646 cat > conftest.$ac_ext <<EOF
10647 #line 10648 "configure"
10648 #include "confdefs.h"
10650 #include <sys/types.h>
10651 #include <sys/socket.h>
10655 struct sockaddr_storage ss;
10659 if { (eval echo configure:10660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10661 ol_cv_struct_sockaddr_storage=yes
10663 echo "configure: failed program was:" >&5
10664 cat conftest.$ac_ext >&5
10666 ol_cv_struct_sockaddr_storage=no
10671 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10673 if test $ol_cv_inet6_addrstrlen = yes \
10674 -a $ol_cv_struct_sockaddr_storage = yes ; then
10676 elif test $ol_enable_ipv6 = yes \
10677 -a $ol_cv_inet6_addrstrlen = no ; then
10678 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10679 elif test $ol_enable_ipv6 = yes \
10680 -a $ol_cv_struct_sockaddr_storage = no ; then
10681 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10685 if test $ol_enable_local != no ; then
10686 for ac_hdr in sys/un.h
10688 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10689 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10690 echo "configure:10691: checking for $ac_hdr" >&5
10691 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10692 echo $ac_n "(cached) $ac_c" 1>&6
10694 cat > conftest.$ac_ext <<EOF
10695 #line 10696 "configure"
10696 #include "confdefs.h"
10699 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10700 { (eval echo configure:10701: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10701 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10702 if test -z "$ac_err"; then
10704 eval "ac_cv_header_$ac_safe=yes"
10707 echo "configure: failed program was:" >&5
10708 cat conftest.$ac_ext >&5
10710 eval "ac_cv_header_$ac_safe=no"
10714 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10715 echo "$ac_t""yes" 1>&6
10716 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10717 cat >> confdefs.h <<EOF
10718 #define $ac_tr_hdr 1
10722 echo "$ac_t""no" 1>&6
10727 if test $ol_enable_local = auto ; then
10728 ol_enable_local=$ac_cv_header_sys_un_h
10729 elif test $ac_cv_header_sys_un_h = no ; then
10730 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10738 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10739 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10740 -o $ol_with_kerberos = k425 ; then
10742 for ac_hdr in krb5.h
10744 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10745 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10746 echo "configure:10747: checking for $ac_hdr" >&5
10747 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10748 echo $ac_n "(cached) $ac_c" 1>&6
10750 cat > conftest.$ac_ext <<EOF
10751 #line 10752 "configure"
10752 #include "confdefs.h"
10755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10756 { (eval echo configure:10757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10758 if test -z "$ac_err"; then
10760 eval "ac_cv_header_$ac_safe=yes"
10763 echo "configure: failed program was:" >&5
10764 cat conftest.$ac_ext >&5
10766 eval "ac_cv_header_$ac_safe=no"
10770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10771 echo "$ac_t""yes" 1>&6
10772 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10773 cat >> confdefs.h <<EOF
10774 #define $ac_tr_hdr 1
10778 echo "$ac_t""no" 1>&6
10783 if test $ac_cv_header_krb5_h = yes ; then
10784 for ac_hdr in heim_err.h
10786 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10787 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10788 echo "configure:10789: checking for $ac_hdr" >&5
10789 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10790 echo $ac_n "(cached) $ac_c" 1>&6
10792 cat > conftest.$ac_ext <<EOF
10793 #line 10794 "configure"
10794 #include "confdefs.h"
10797 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10798 { (eval echo configure:10799: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10799 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10800 if test -z "$ac_err"; then
10802 eval "ac_cv_header_$ac_safe=yes"
10805 echo "configure: failed program was:" >&5
10806 cat conftest.$ac_ext >&5
10808 eval "ac_cv_header_$ac_safe=no"
10812 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10813 echo "$ac_t""yes" 1>&6
10814 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10815 cat >> confdefs.h <<EOF
10816 #define $ac_tr_hdr 1
10820 echo "$ac_t""no" 1>&6
10824 if test $ac_cv_header_heim_err_h = yes ; then
10830 if test $krb5_impl = mit; then
10831 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10832 echo "configure:10833: checking for main in -lk5crypto" >&5
10833 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10834 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10835 echo $ac_n "(cached) $ac_c" 1>&6
10837 ac_save_LIBS="$LIBS"
10838 LIBS="-lk5crypto $LIBS"
10839 cat > conftest.$ac_ext <<EOF
10840 #line 10841 "configure"
10841 #include "confdefs.h"
10847 if { (eval echo configure:10848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10849 eval "ac_cv_lib_$ac_lib_var=yes"
10851 echo "configure: failed program was:" >&5
10852 cat conftest.$ac_ext >&5
10854 eval "ac_cv_lib_$ac_lib_var=no"
10857 LIBS="$ac_save_LIBS"
10860 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10861 echo "$ac_t""yes" 1>&6
10862 krb5crypto=k5crypto
10864 echo "$ac_t""no" 1>&6
10869 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10870 echo "configure:10871: checking for main in -lkrb5" >&5
10871 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10872 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10873 echo $ac_n "(cached) $ac_c" 1>&6
10875 ac_save_LIBS="$LIBS"
10876 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10877 cat > conftest.$ac_ext <<EOF
10878 #line 10879 "configure"
10879 #include "confdefs.h"
10885 if { (eval echo configure:10886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10887 eval "ac_cv_lib_$ac_lib_var=yes"
10889 echo "configure: failed program was:" >&5
10890 cat conftest.$ac_ext >&5
10892 eval "ac_cv_lib_$ac_lib_var=no"
10895 LIBS="$ac_save_LIBS"
10898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10899 echo "$ac_t""yes" 1>&6
10901 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10903 echo "$ac_t""no" 1>&6
10908 elif test $krb5_impl = heimdal; then
10909 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10910 echo "configure:10911: checking for main in -ldes" >&5
10911 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10912 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10913 echo $ac_n "(cached) $ac_c" 1>&6
10915 ac_save_LIBS="$LIBS"
10917 cat > conftest.$ac_ext <<EOF
10918 #line 10919 "configure"
10919 #include "confdefs.h"
10925 if { (eval echo configure:10926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10927 eval "ac_cv_lib_$ac_lib_var=yes"
10929 echo "configure: failed program was:" >&5
10930 cat conftest.$ac_ext >&5
10932 eval "ac_cv_lib_$ac_lib_var=no"
10935 LIBS="$ac_save_LIBS"
10938 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10939 echo "$ac_t""yes" 1>&6
10942 echo "$ac_t""no" 1>&6
10947 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10948 echo "configure:10949: checking for main in -lkrb5" >&5
10949 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10950 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10951 echo $ac_n "(cached) $ac_c" 1>&6
10953 ac_save_LIBS="$LIBS"
10954 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
10955 cat > conftest.$ac_ext <<EOF
10956 #line 10957 "configure"
10957 #include "confdefs.h"
10963 if { (eval echo configure:10964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10965 eval "ac_cv_lib_$ac_lib_var=yes"
10967 echo "configure: failed program was:" >&5
10968 cat conftest.$ac_ext >&5
10970 eval "ac_cv_lib_$ac_lib_var=no"
10973 LIBS="$ac_save_LIBS"
10976 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10977 echo "$ac_t""yes" 1>&6
10979 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
10981 echo "$ac_t""no" 1>&6
10986 cat >> confdefs.h <<\EOF
10987 #define HAVE_HEIMDAL_KERBEROS 1
10993 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
10996 if test $have_krb5 = yes ; then
10999 cat >> confdefs.h <<\EOF
11000 #define HAVE_KRB5 1
11004 if test $ol_with_kerberos = k5only ; then
11005 ol_with_kerberos=found
11008 elif test $ol_with_kerberos != auto ; then
11009 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
11015 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
11016 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
11018 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
11020 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11021 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11022 echo "configure:11023: checking for $ac_hdr" >&5
11023 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11024 echo $ac_n "(cached) $ac_c" 1>&6
11026 cat > conftest.$ac_ext <<EOF
11027 #line 11028 "configure"
11028 #include "confdefs.h"
11031 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11032 { (eval echo configure:11033: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11033 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11034 if test -z "$ac_err"; then
11036 eval "ac_cv_header_$ac_safe=yes"
11039 echo "configure: failed program was:" >&5
11040 cat conftest.$ac_ext >&5
11042 eval "ac_cv_header_$ac_safe=no"
11046 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11047 echo "$ac_t""yes" 1>&6
11048 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11049 cat >> confdefs.h <<EOF
11050 #define $ac_tr_hdr 1
11054 echo "$ac_t""no" 1>&6
11059 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
11060 if test $krb5_impl = mit; then
11061 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
11062 echo "configure:11063: checking for main in -lkrb4" >&5
11063 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
11064 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11065 echo $ac_n "(cached) $ac_c" 1>&6
11067 ac_save_LIBS="$LIBS"
11068 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
11069 cat > conftest.$ac_ext <<EOF
11070 #line 11071 "configure"
11071 #include "confdefs.h"
11077 if { (eval echo configure:11078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11079 eval "ac_cv_lib_$ac_lib_var=yes"
11081 echo "configure: failed program was:" >&5
11082 cat conftest.$ac_ext >&5
11084 eval "ac_cv_lib_$ac_lib_var=no"
11087 LIBS="$ac_save_LIBS"
11090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11091 echo "$ac_t""yes" 1>&6
11093 KRB4_LIBS="-lkrb4 -ldes425"
11095 echo "$ac_t""no" 1>&6
11100 elif test $krb5_impl = heimdal; then
11101 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
11102 echo "configure:11103: checking for main in -lkrb4" >&5
11103 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
11104 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11105 echo $ac_n "(cached) $ac_c" 1>&6
11107 ac_save_LIBS="$LIBS"
11108 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
11109 cat > conftest.$ac_ext <<EOF
11110 #line 11111 "configure"
11111 #include "confdefs.h"
11117 if { (eval echo configure:11118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11119 eval "ac_cv_lib_$ac_lib_var=yes"
11121 echo "configure: failed program was:" >&5
11122 cat conftest.$ac_ext >&5
11124 eval "ac_cv_lib_$ac_lib_var=no"
11127 LIBS="$ac_save_LIBS"
11130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11131 echo "$ac_t""yes" 1>&6
11135 echo "$ac_t""no" 1>&6
11142 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
11145 if test $have_k425 = yes ; then
11146 ol_with_kerberos=found
11149 cat >> confdefs.h <<\EOF
11150 #define HAVE_KRB425 1
11153 cat >> confdefs.h <<\EOF
11154 #define HAVE_KRB4 1
11158 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
11159 echo "configure:11160: checking for des_debug in Kerberos libraries" >&5
11160 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
11161 echo $ac_n "(cached) $ac_c" 1>&6
11165 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
11166 cat > conftest.$ac_ext <<EOF
11167 #line 11168 "configure"
11168 #include "confdefs.h"
11170 #include <kerberosIV/krb.h>
11171 #include <kerberosIV/des.h>
11172 extern int des_debug;
11180 if { (eval echo configure:11181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11182 ol_cv_var_des_debug=yes
11184 echo "configure: failed program was:" >&5
11185 cat conftest.$ac_ext >&5
11187 ol_cv_var_des_debug=no
11194 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
11196 if test $ol_cv_var_des_debug = yes ; then
11197 cat >> confdefs.h <<\EOF
11198 #define HAVE_DES_DEBUG 1
11208 if test $ol_link_krb5 = yes ; then
11209 ol_with_kerberos=found
11212 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
11213 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
11215 for ac_hdr in krb.h des.h krb-archaeology.h
11217 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11218 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11219 echo "configure:11220: checking for $ac_hdr" >&5
11220 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11221 echo $ac_n "(cached) $ac_c" 1>&6
11223 cat > conftest.$ac_ext <<EOF
11224 #line 11225 "configure"
11225 #include "confdefs.h"
11228 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11229 { (eval echo configure:11230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11230 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11231 if test -z "$ac_err"; then
11233 eval "ac_cv_header_$ac_safe=yes"
11236 echo "configure: failed program was:" >&5
11237 cat conftest.$ac_ext >&5
11239 eval "ac_cv_header_$ac_safe=no"
11243 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11244 echo "$ac_t""yes" 1>&6
11245 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11246 cat >> confdefs.h <<EOF
11247 #define $ac_tr_hdr 1
11251 echo "$ac_t""no" 1>&6
11256 if test $ac_cv_header_krb_h = yes ; then
11257 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
11258 echo "configure:11259: checking for main in -lkrb" >&5
11259 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
11260 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11261 echo $ac_n "(cached) $ac_c" 1>&6
11263 ac_save_LIBS="$LIBS"
11264 LIBS="-lkrb -ldes $LIBS"
11265 cat > conftest.$ac_ext <<EOF
11266 #line 11267 "configure"
11267 #include "confdefs.h"
11273 if { (eval echo configure:11274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11275 eval "ac_cv_lib_$ac_lib_var=yes"
11277 echo "configure: failed program was:" >&5
11278 cat conftest.$ac_ext >&5
11280 eval "ac_cv_lib_$ac_lib_var=no"
11283 LIBS="$ac_save_LIBS"
11286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11287 echo "$ac_t""yes" 1>&6
11290 echo "$ac_t""no" 1>&6
11295 if test $have_k4 = yes ; then
11296 ol_with_kerberos=found
11299 cat >> confdefs.h <<\EOF
11300 #define HAVE_KRB4 1
11304 KRB4_LIBS="-lkrb -ldes"
11306 if test $ac_cv_header_krb_archaeology_h = yes ; then
11307 cat >> confdefs.h <<\EOF
11308 #define HAVE_KTH_KERBEROS 1
11316 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
11319 elif test $ol_enable_kbind = yes ; then
11320 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
11323 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
11324 cat >> confdefs.h <<\EOF
11325 #define HAVE_KERBEROS 1
11329 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
11330 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
11335 if test $ol_with_tls != no ; then
11336 for ac_hdr in openssl/ssl.h ssl.h
11338 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11339 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11340 echo "configure:11341: checking for $ac_hdr" >&5
11341 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11342 echo $ac_n "(cached) $ac_c" 1>&6
11344 cat > conftest.$ac_ext <<EOF
11345 #line 11346 "configure"
11346 #include "confdefs.h"
11349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11350 { (eval echo configure:11351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11351 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11352 if test -z "$ac_err"; then
11354 eval "ac_cv_header_$ac_safe=yes"
11357 echo "configure: failed program was:" >&5
11358 cat conftest.$ac_ext >&5
11360 eval "ac_cv_header_$ac_safe=no"
11364 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11365 echo "$ac_t""yes" 1>&6
11366 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11367 cat >> confdefs.h <<EOF
11368 #define $ac_tr_hdr 1
11372 echo "$ac_t""no" 1>&6
11377 if test $ac_cv_header_openssl_ssl_h = yes \
11378 -o $ac_cv_header_ssl_h = yes ; then
11379 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11380 echo "configure:11381: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11381 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11382 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11383 echo $ac_n "(cached) $ac_c" 1>&6
11385 ac_save_LIBS="$LIBS"
11386 LIBS="-lssl -lcrypto $LIBS"
11387 cat > conftest.$ac_ext <<EOF
11388 #line 11389 "configure"
11389 #include "confdefs.h"
11390 /* Override any gcc2 internal prototype to avoid an error. */
11391 /* We use char because int might match the return type of a gcc2
11392 builtin and then its argument prototype would still apply. */
11393 char SSLeay_add_ssl_algorithms();
11396 SSLeay_add_ssl_algorithms()
11399 if { (eval echo configure:11400: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11401 eval "ac_cv_lib_$ac_lib_var=yes"
11403 echo "configure: failed program was:" >&5
11404 cat conftest.$ac_ext >&5
11406 eval "ac_cv_lib_$ac_lib_var=no"
11409 LIBS="$ac_save_LIBS"
11412 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11413 echo "$ac_t""yes" 1>&6
11417 echo "$ac_t""no" 1>&6
11422 if test $have_ssleay = no ; then
11423 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11424 echo "configure:11425: checking for SSL_library_init in -lssl" >&5
11425 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11426 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11427 echo $ac_n "(cached) $ac_c" 1>&6
11429 ac_save_LIBS="$LIBS"
11430 LIBS="-lssl -lcrypto $LIBS"
11431 cat > conftest.$ac_ext <<EOF
11432 #line 11433 "configure"
11433 #include "confdefs.h"
11434 /* Override any gcc2 internal prototype to avoid an error. */
11435 /* We use char because int might match the return type of a gcc2
11436 builtin and then its argument prototype would still apply. */
11437 char SSL_library_init();
11443 if { (eval echo configure:11444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11445 eval "ac_cv_lib_$ac_lib_var=yes"
11447 echo "configure: failed program was:" >&5
11448 cat conftest.$ac_ext >&5
11450 eval "ac_cv_lib_$ac_lib_var=no"
11453 LIBS="$ac_save_LIBS"
11456 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11457 echo "$ac_t""yes" 1>&6
11461 echo "$ac_t""no" 1>&6
11467 if test $have_ssleay = no ; then
11468 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11469 echo "configure:11470: checking for ssl3_accept in -lssl" >&5
11470 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11471 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11472 echo $ac_n "(cached) $ac_c" 1>&6
11474 ac_save_LIBS="$LIBS"
11475 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11476 cat > conftest.$ac_ext <<EOF
11477 #line 11478 "configure"
11478 #include "confdefs.h"
11479 /* Override any gcc2 internal prototype to avoid an error. */
11480 /* We use char because int might match the return type of a gcc2
11481 builtin and then its argument prototype would still apply. */
11482 char ssl3_accept();
11488 if { (eval echo configure:11489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11490 eval "ac_cv_lib_$ac_lib_var=yes"
11492 echo "configure: failed program was:" >&5
11493 cat conftest.$ac_ext >&5
11495 eval "ac_cv_lib_$ac_lib_var=no"
11498 LIBS="$ac_save_LIBS"
11501 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11502 echo "$ac_t""yes" 1>&6
11506 echo "$ac_t""no" 1>&6
11512 if test $have_ssleay = yes ; then
11516 cat >> confdefs.h <<\EOF
11517 #define HAVE_SSLEAY 1
11521 if test $need_rsaref = yes; then
11522 cat >> confdefs.h <<\EOF
11523 #define HAVE_RSAREF 1
11527 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11529 TLS_LIBS="-lssl -lcrypto"
11532 echo $ac_n "checking OpenSSL library version (CRL checking capability)""... $ac_c" 1>&6
11533 echo "configure:11534: checking OpenSSL library version (CRL checking capability)" >&5
11534 if eval "test \"\${ol_cv_ssl_crl_compat+set}\" = set"; then
11535 echo $ac_n "(cached) $ac_c" 1>&6
11538 cat > conftest.$ac_ext <<EOF
11539 #line 11540 "configure"
11540 #include "confdefs.h"
11542 #ifdef HAVE_OPENSSL_SSL_H
11543 #include <openssl/ssl.h>
11548 /* Require 0.9.7d+ */
11549 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
11550 char *__ssl_compat = "0.9.7d";
11554 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11555 egrep "__ssl_compat" >/dev/null 2>&1; then
11557 ol_cv_ssl_crl_compat=yes
11560 ol_cv_ssl_crl_compat=no
11566 echo "$ac_t""$ol_cv_ssl_crl_compat" 1>&6
11568 if test $ol_cv_ssl_crl_compat = no ; then
11571 cat >> confdefs.h <<\EOF
11572 #define HAVE_OPENSSL_CRL 1
11579 echo "configure: warning: TLS data protection not supported!" 1>&2
11583 if test $ol_link_tls = yes ; then
11584 cat >> confdefs.h <<\EOF
11590 elif test $ol_with_tls = auto ; then
11591 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11592 echo "configure: warning: TLS data protection not supported!" 1>&2
11594 elif test $ol_with_tls != no ; then
11595 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11598 if test $ol_enable_lmpasswd != no; then
11599 if test $ol_link_tls != yes ; then
11600 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11603 cat >> confdefs.h <<\EOF
11604 #define SLAPD_LMHASH 1
11611 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11612 -o $ol_with_threads = nt ; then
11615 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11616 echo "configure:11617: checking for _beginthread" >&5
11617 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11618 echo $ac_n "(cached) $ac_c" 1>&6
11620 cat > conftest.$ac_ext <<EOF
11621 #line 11622 "configure"
11622 #include "confdefs.h"
11623 /* System header to define __stub macros and hopefully few prototypes,
11624 which can conflict with char _beginthread(); below. */
11625 #include <assert.h>
11626 /* Override any gcc2 internal prototype to avoid an error. */
11627 /* We use char because int might match the return type of a gcc2
11628 builtin and then its argument prototype would still apply. */
11629 char _beginthread();
11634 /* The GNU C library defines this for functions which it implements
11635 to always fail with ENOSYS. Some functions are actually named
11636 something starting with __ and the normal name is an alias. */
11637 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11645 if { (eval echo configure:11646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11647 eval "ac_cv_func__beginthread=yes"
11649 echo "configure: failed program was:" >&5
11650 cat conftest.$ac_ext >&5
11652 eval "ac_cv_func__beginthread=no"
11657 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11658 echo "$ac_t""yes" 1>&6
11661 echo "$ac_t""no" 1>&6
11665 if test $ac_cv_func__beginthread = yes ; then
11666 cat >> confdefs.h <<\EOF
11667 #define HAVE_NT_THREADS 1
11670 ol_cv_nt_threads=yes
11674 if test "$ol_cv_nt_threads" = yes ; then
11676 ol_with_threads=found
11677 ol_with_yielding_select=yes
11679 cat >> confdefs.h <<\EOF
11680 #define HAVE_NT_SERVICE_MANAGER 1
11683 cat >> confdefs.h <<\EOF
11684 #define HAVE_NT_EVENT_LOG 1
11689 if test $ol_with_threads = nt ; then
11690 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11694 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11695 -o $ol_with_threads = posix ; then
11697 for ac_hdr in pthread.h
11699 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11700 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11701 echo "configure:11702: checking for $ac_hdr" >&5
11702 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11703 echo $ac_n "(cached) $ac_c" 1>&6
11705 cat > conftest.$ac_ext <<EOF
11706 #line 11707 "configure"
11707 #include "confdefs.h"
11710 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11711 { (eval echo configure:11712: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11712 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11713 if test -z "$ac_err"; then
11715 eval "ac_cv_header_$ac_safe=yes"
11718 echo "configure: failed program was:" >&5
11719 cat conftest.$ac_ext >&5
11721 eval "ac_cv_header_$ac_safe=no"
11725 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11726 echo "$ac_t""yes" 1>&6
11727 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11728 cat >> confdefs.h <<EOF
11729 #define $ac_tr_hdr 1
11733 echo "$ac_t""no" 1>&6
11738 if test $ac_cv_header_pthread_h = yes ; then
11739 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11740 echo "configure:11741: checking POSIX thread version" >&5
11741 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11742 echo $ac_n "(cached) $ac_c" 1>&6
11745 cat > conftest.$ac_ext <<EOF
11746 #line 11747 "configure"
11747 #include "confdefs.h"
11749 # include <pthread.h>
11753 int i = PTHREAD_CREATE_JOINABLE;
11757 if { (eval echo configure:11758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11760 cat > conftest.$ac_ext <<EOF
11761 #line 11762 "configure"
11762 #include "confdefs.h"
11763 #include <pthread.h>
11765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11766 egrep "pthread_detach" >/dev/null 2>&1; then
11768 ol_cv_pthread_version=10
11771 ol_cv_pthread_version=8
11776 echo "configure: failed program was:" >&5
11777 cat conftest.$ac_ext >&5
11780 cat > conftest.$ac_ext <<EOF
11781 #line 11782 "configure"
11782 #include "confdefs.h"
11784 # include <pthread.h>
11785 # ifdef PTHREAD_CREATE_UNDETACHED
11790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11791 egrep "draft7" >/dev/null 2>&1; then
11793 ol_cv_pthread_version=7
11797 cat > conftest.$ac_ext <<EOF
11798 #line 11799 "configure"
11799 #include "confdefs.h"
11800 #include <pthread.h>
11802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11803 egrep "pthread_attr_init" >/dev/null 2>&1; then
11805 ol_cv_pthread_version=6
11809 cat > conftest.$ac_ext <<EOF
11810 #line 11811 "configure"
11811 #include "confdefs.h"
11813 # include <pthread.h>
11814 #ifdef PTHREAD_MUTEX_INITIALIZER
11819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11820 egrep "draft5" >/dev/null 2>&1; then
11822 ol_cv_pthread_version=5
11825 ol_cv_pthread_version=4
11840 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11843 if test $ol_cv_pthread_version != 0 ; then
11844 cat >> confdefs.h <<EOF
11845 #define HAVE_PTHREADS $ol_cv_pthread_version
11849 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11852 # consider threads found
11853 ol_with_threads=found
11856 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11857 echo "configure:11858: checking for LinuxThreads pthread.h" >&5
11858 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11859 echo $ac_n "(cached) $ac_c" 1>&6
11861 cat > conftest.$ac_ext <<EOF
11862 #line 11863 "configure"
11863 #include "confdefs.h"
11864 #include <pthread.h>
11866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11867 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11869 ol_cv_header_linux_threads=yes
11872 ol_cv_header_linux_threads=no
11879 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11880 if test $ol_cv_header_linux_threads = yes; then
11881 cat >> confdefs.h <<\EOF
11882 #define HAVE_LINUX_THREADS 1
11888 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11889 echo "configure:11890: checking for GNU Pth pthread.h" >&5
11890 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11891 echo $ac_n "(cached) $ac_c" 1>&6
11893 cat > conftest.$ac_ext <<EOF
11894 #line 11895 "configure"
11895 #include "confdefs.h"
11896 #include <pthread.h>
11897 #ifdef _POSIX_THREAD_IS_GNU_PTH
11902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11903 egrep "__gnu_pth__" >/dev/null 2>&1; then
11905 ol_cv_header_gnu_pth_pthread_h=yes
11908 ol_cv_header_gnu_pth_pthread_h=no
11915 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11918 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11919 for ac_hdr in sched.h
11921 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11922 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11923 echo "configure:11924: checking for $ac_hdr" >&5
11924 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11925 echo $ac_n "(cached) $ac_c" 1>&6
11927 cat > conftest.$ac_ext <<EOF
11928 #line 11929 "configure"
11929 #include "confdefs.h"
11932 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11933 { (eval echo configure:11934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11934 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11935 if test -z "$ac_err"; then
11937 eval "ac_cv_header_$ac_safe=yes"
11940 echo "configure: failed program was:" >&5
11941 cat conftest.$ac_ext >&5
11943 eval "ac_cv_header_$ac_safe=no"
11947 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11948 echo "$ac_t""yes" 1>&6
11949 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11950 cat >> confdefs.h <<EOF
11951 #define $ac_tr_hdr 1
11955 echo "$ac_t""no" 1>&6
11962 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
11963 echo "configure:11964: checking for pthread_create in default libraries" >&5
11964 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
11965 echo $ac_n "(cached) $ac_c" 1>&6
11968 if test "$cross_compiling" = yes; then
11969 cat > conftest.$ac_ext <<EOF
11970 #line 11971 "configure"
11971 #include "confdefs.h"
11972 /* pthread test headers */
11973 #include <pthread.h>
11974 #if HAVE_PTHREADS < 7
11978 #define NULL (void*)0
11981 static void *task(p)
11984 return (void *) (p == NULL);
11989 /* pthread test function */
11990 #ifndef PTHREAD_CREATE_DETACHED
11991 #define PTHREAD_CREATE_DETACHED 1
11995 int detach = PTHREAD_CREATE_DETACHED;
11997 #if HAVE_PTHREADS > 4
11998 /* Final pthreads */
11999 pthread_attr_t attr;
12001 status = pthread_attr_init(&attr);
12002 if( status ) return status;
12004 #if HAVE_PTHREADS < 7
12005 status = pthread_attr_setdetachstate(&attr, &detach);
12006 if( status < 0 ) status = errno;
12008 status = pthread_attr_setdetachstate(&attr, detach);
12010 if( status ) return status;
12011 status = pthread_create( &t, &attr, task, NULL );
12012 #if HAVE_PTHREADS < 7
12013 if( status < 0 ) status = errno;
12015 if( status ) return status;
12017 /* Draft 4 pthreads */
12018 status = pthread_create( &t, pthread_attr_default, task, NULL );
12019 if( status ) return errno;
12021 /* give thread a chance to complete */
12022 /* it should remain joinable and hence detachable */
12025 status = pthread_detach( &t );
12026 if( status ) return errno;
12029 #ifdef HAVE_LINUX_THREADS
12030 pthread_kill_other_threads_np();
12037 if { (eval echo configure:12038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12039 ol_cv_pthread_create=yes
12041 echo "configure: failed program was:" >&5
12042 cat conftest.$ac_ext >&5
12044 ol_cv_pthread_create=no
12048 cat > conftest.$ac_ext <<EOF
12049 #line 12050 "configure"
12050 #include "confdefs.h"
12051 /* pthread test headers */
12052 #include <pthread.h>
12053 #if HAVE_PTHREADS < 7
12057 #define NULL (void*)0
12060 static void *task(p)
12063 return (void *) (p == NULL);
12067 int main(argc, argv)
12072 /* pthread test function */
12073 #ifndef PTHREAD_CREATE_DETACHED
12074 #define PTHREAD_CREATE_DETACHED 1
12078 int detach = PTHREAD_CREATE_DETACHED;
12080 #if HAVE_PTHREADS > 4
12081 /* Final pthreads */
12082 pthread_attr_t attr;
12084 status = pthread_attr_init(&attr);
12085 if( status ) return status;
12087 #if HAVE_PTHREADS < 7
12088 status = pthread_attr_setdetachstate(&attr, &detach);
12089 if( status < 0 ) status = errno;
12091 status = pthread_attr_setdetachstate(&attr, detach);
12093 if( status ) return status;
12094 status = pthread_create( &t, &attr, task, NULL );
12095 #if HAVE_PTHREADS < 7
12096 if( status < 0 ) status = errno;
12098 if( status ) return status;
12100 /* Draft 4 pthreads */
12101 status = pthread_create( &t, pthread_attr_default, task, NULL );
12102 if( status ) return errno;
12104 /* give thread a chance to complete */
12105 /* it should remain joinable and hence detachable */
12108 status = pthread_detach( &t );
12109 if( status ) return errno;
12112 #ifdef HAVE_LINUX_THREADS
12113 pthread_kill_other_threads_np();
12121 if { (eval echo configure:12122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12123 ol_cv_pthread_create=yes
12125 echo "configure: failed program was:" >&5
12126 cat conftest.$ac_ext >&5
12128 ol_cv_pthread_create=no
12135 echo "$ac_t""$ol_cv_pthread_create" 1>&6
12137 if test $ol_cv_pthread_create != no ; then
12138 ol_link_threads=posix
12139 ol_link_pthreads=""
12142 # Pthread try link: -kthread (ol_cv_pthread_kthread)
12143 if test "$ol_link_threads" = no ; then
12145 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
12146 echo "configure:12147: checking for pthread link with -kthread" >&5
12147 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
12148 echo $ac_n "(cached) $ac_c" 1>&6
12153 LIBS="-kthread $LIBS"
12155 if test "$cross_compiling" = yes; then
12156 cat > conftest.$ac_ext <<EOF
12157 #line 12158 "configure"
12158 #include "confdefs.h"
12159 /* pthread test headers */
12160 #include <pthread.h>
12161 #if HAVE_PTHREADS < 7
12165 #define NULL (void*)0
12168 static void *task(p)
12171 return (void *) (p == NULL);
12176 /* pthread test function */
12177 #ifndef PTHREAD_CREATE_DETACHED
12178 #define PTHREAD_CREATE_DETACHED 1
12182 int detach = PTHREAD_CREATE_DETACHED;
12184 #if HAVE_PTHREADS > 4
12185 /* Final pthreads */
12186 pthread_attr_t attr;
12188 status = pthread_attr_init(&attr);
12189 if( status ) return status;
12191 #if HAVE_PTHREADS < 7
12192 status = pthread_attr_setdetachstate(&attr, &detach);
12193 if( status < 0 ) status = errno;
12195 status = pthread_attr_setdetachstate(&attr, detach);
12197 if( status ) return status;
12198 status = pthread_create( &t, &attr, task, NULL );
12199 #if HAVE_PTHREADS < 7
12200 if( status < 0 ) status = errno;
12202 if( status ) return status;
12204 /* Draft 4 pthreads */
12205 status = pthread_create( &t, pthread_attr_default, task, NULL );
12206 if( status ) return errno;
12208 /* give thread a chance to complete */
12209 /* it should remain joinable and hence detachable */
12212 status = pthread_detach( &t );
12213 if( status ) return errno;
12216 #ifdef HAVE_LINUX_THREADS
12217 pthread_kill_other_threads_np();
12224 if { (eval echo configure:12225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12226 ol_cv_pthread_kthread=yes
12228 echo "configure: failed program was:" >&5
12229 cat conftest.$ac_ext >&5
12231 ol_cv_pthread_kthread=no
12235 cat > conftest.$ac_ext <<EOF
12236 #line 12237 "configure"
12237 #include "confdefs.h"
12238 /* pthread test headers */
12239 #include <pthread.h>
12240 #if HAVE_PTHREADS < 7
12244 #define NULL (void*)0
12247 static void *task(p)
12250 return (void *) (p == NULL);
12254 int main(argc, argv)
12259 /* pthread test function */
12260 #ifndef PTHREAD_CREATE_DETACHED
12261 #define PTHREAD_CREATE_DETACHED 1
12265 int detach = PTHREAD_CREATE_DETACHED;
12267 #if HAVE_PTHREADS > 4
12268 /* Final pthreads */
12269 pthread_attr_t attr;
12271 status = pthread_attr_init(&attr);
12272 if( status ) return status;
12274 #if HAVE_PTHREADS < 7
12275 status = pthread_attr_setdetachstate(&attr, &detach);
12276 if( status < 0 ) status = errno;
12278 status = pthread_attr_setdetachstate(&attr, detach);
12280 if( status ) return status;
12281 status = pthread_create( &t, &attr, task, NULL );
12282 #if HAVE_PTHREADS < 7
12283 if( status < 0 ) status = errno;
12285 if( status ) return status;
12287 /* Draft 4 pthreads */
12288 status = pthread_create( &t, pthread_attr_default, task, NULL );
12289 if( status ) return errno;
12291 /* give thread a chance to complete */
12292 /* it should remain joinable and hence detachable */
12295 status = pthread_detach( &t );
12296 if( status ) return errno;
12299 #ifdef HAVE_LINUX_THREADS
12300 pthread_kill_other_threads_np();
12308 if { (eval echo configure:12309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12310 ol_cv_pthread_kthread=yes
12312 echo "configure: failed program was:" >&5
12313 cat conftest.$ac_ext >&5
12315 ol_cv_pthread_kthread=no
12326 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12328 if test $ol_cv_pthread_kthread = yes ; then
12329 ol_link_pthreads="-kthread"
12330 ol_link_threads=posix
12334 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12335 if test "$ol_link_threads" = no ; then
12337 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12338 echo "configure:12339: checking for pthread link with -pthread" >&5
12339 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12340 echo $ac_n "(cached) $ac_c" 1>&6
12345 LIBS="-pthread $LIBS"
12347 if test "$cross_compiling" = yes; then
12348 cat > conftest.$ac_ext <<EOF
12349 #line 12350 "configure"
12350 #include "confdefs.h"
12351 /* pthread test headers */
12352 #include <pthread.h>
12353 #if HAVE_PTHREADS < 7
12357 #define NULL (void*)0
12360 static void *task(p)
12363 return (void *) (p == NULL);
12368 /* pthread test function */
12369 #ifndef PTHREAD_CREATE_DETACHED
12370 #define PTHREAD_CREATE_DETACHED 1
12374 int detach = PTHREAD_CREATE_DETACHED;
12376 #if HAVE_PTHREADS > 4
12377 /* Final pthreads */
12378 pthread_attr_t attr;
12380 status = pthread_attr_init(&attr);
12381 if( status ) return status;
12383 #if HAVE_PTHREADS < 7
12384 status = pthread_attr_setdetachstate(&attr, &detach);
12385 if( status < 0 ) status = errno;
12387 status = pthread_attr_setdetachstate(&attr, detach);
12389 if( status ) return status;
12390 status = pthread_create( &t, &attr, task, NULL );
12391 #if HAVE_PTHREADS < 7
12392 if( status < 0 ) status = errno;
12394 if( status ) return status;
12396 /* Draft 4 pthreads */
12397 status = pthread_create( &t, pthread_attr_default, task, NULL );
12398 if( status ) return errno;
12400 /* give thread a chance to complete */
12401 /* it should remain joinable and hence detachable */
12404 status = pthread_detach( &t );
12405 if( status ) return errno;
12408 #ifdef HAVE_LINUX_THREADS
12409 pthread_kill_other_threads_np();
12416 if { (eval echo configure:12417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12418 ol_cv_pthread_pthread=yes
12420 echo "configure: failed program was:" >&5
12421 cat conftest.$ac_ext >&5
12423 ol_cv_pthread_pthread=no
12427 cat > conftest.$ac_ext <<EOF
12428 #line 12429 "configure"
12429 #include "confdefs.h"
12430 /* pthread test headers */
12431 #include <pthread.h>
12432 #if HAVE_PTHREADS < 7
12436 #define NULL (void*)0
12439 static void *task(p)
12442 return (void *) (p == NULL);
12446 int main(argc, argv)
12451 /* pthread test function */
12452 #ifndef PTHREAD_CREATE_DETACHED
12453 #define PTHREAD_CREATE_DETACHED 1
12457 int detach = PTHREAD_CREATE_DETACHED;
12459 #if HAVE_PTHREADS > 4
12460 /* Final pthreads */
12461 pthread_attr_t attr;
12463 status = pthread_attr_init(&attr);
12464 if( status ) return status;
12466 #if HAVE_PTHREADS < 7
12467 status = pthread_attr_setdetachstate(&attr, &detach);
12468 if( status < 0 ) status = errno;
12470 status = pthread_attr_setdetachstate(&attr, detach);
12472 if( status ) return status;
12473 status = pthread_create( &t, &attr, task, NULL );
12474 #if HAVE_PTHREADS < 7
12475 if( status < 0 ) status = errno;
12477 if( status ) return status;
12479 /* Draft 4 pthreads */
12480 status = pthread_create( &t, pthread_attr_default, task, NULL );
12481 if( status ) return errno;
12483 /* give thread a chance to complete */
12484 /* it should remain joinable and hence detachable */
12487 status = pthread_detach( &t );
12488 if( status ) return errno;
12491 #ifdef HAVE_LINUX_THREADS
12492 pthread_kill_other_threads_np();
12500 if { (eval echo configure:12501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12502 ol_cv_pthread_pthread=yes
12504 echo "configure: failed program was:" >&5
12505 cat conftest.$ac_ext >&5
12507 ol_cv_pthread_pthread=no
12518 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12520 if test $ol_cv_pthread_pthread = yes ; then
12521 ol_link_pthreads="-pthread"
12522 ol_link_threads=posix
12526 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12527 if test "$ol_link_threads" = no ; then
12529 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12530 echo "configure:12531: checking for pthread link with -pthreads" >&5
12531 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12532 echo $ac_n "(cached) $ac_c" 1>&6
12537 LIBS="-pthreads $LIBS"
12539 if test "$cross_compiling" = yes; then
12540 cat > conftest.$ac_ext <<EOF
12541 #line 12542 "configure"
12542 #include "confdefs.h"
12543 /* pthread test headers */
12544 #include <pthread.h>
12545 #if HAVE_PTHREADS < 7
12549 #define NULL (void*)0
12552 static void *task(p)
12555 return (void *) (p == NULL);
12560 /* pthread test function */
12561 #ifndef PTHREAD_CREATE_DETACHED
12562 #define PTHREAD_CREATE_DETACHED 1
12566 int detach = PTHREAD_CREATE_DETACHED;
12568 #if HAVE_PTHREADS > 4
12569 /* Final pthreads */
12570 pthread_attr_t attr;
12572 status = pthread_attr_init(&attr);
12573 if( status ) return status;
12575 #if HAVE_PTHREADS < 7
12576 status = pthread_attr_setdetachstate(&attr, &detach);
12577 if( status < 0 ) status = errno;
12579 status = pthread_attr_setdetachstate(&attr, detach);
12581 if( status ) return status;
12582 status = pthread_create( &t, &attr, task, NULL );
12583 #if HAVE_PTHREADS < 7
12584 if( status < 0 ) status = errno;
12586 if( status ) return status;
12588 /* Draft 4 pthreads */
12589 status = pthread_create( &t, pthread_attr_default, task, NULL );
12590 if( status ) return errno;
12592 /* give thread a chance to complete */
12593 /* it should remain joinable and hence detachable */
12596 status = pthread_detach( &t );
12597 if( status ) return errno;
12600 #ifdef HAVE_LINUX_THREADS
12601 pthread_kill_other_threads_np();
12608 if { (eval echo configure:12609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12610 ol_cv_pthread_pthreads=yes
12612 echo "configure: failed program was:" >&5
12613 cat conftest.$ac_ext >&5
12615 ol_cv_pthread_pthreads=no
12619 cat > conftest.$ac_ext <<EOF
12620 #line 12621 "configure"
12621 #include "confdefs.h"
12622 /* pthread test headers */
12623 #include <pthread.h>
12624 #if HAVE_PTHREADS < 7
12628 #define NULL (void*)0
12631 static void *task(p)
12634 return (void *) (p == NULL);
12638 int main(argc, argv)
12643 /* pthread test function */
12644 #ifndef PTHREAD_CREATE_DETACHED
12645 #define PTHREAD_CREATE_DETACHED 1
12649 int detach = PTHREAD_CREATE_DETACHED;
12651 #if HAVE_PTHREADS > 4
12652 /* Final pthreads */
12653 pthread_attr_t attr;
12655 status = pthread_attr_init(&attr);
12656 if( status ) return status;
12658 #if HAVE_PTHREADS < 7
12659 status = pthread_attr_setdetachstate(&attr, &detach);
12660 if( status < 0 ) status = errno;
12662 status = pthread_attr_setdetachstate(&attr, detach);
12664 if( status ) return status;
12665 status = pthread_create( &t, &attr, task, NULL );
12666 #if HAVE_PTHREADS < 7
12667 if( status < 0 ) status = errno;
12669 if( status ) return status;
12671 /* Draft 4 pthreads */
12672 status = pthread_create( &t, pthread_attr_default, task, NULL );
12673 if( status ) return errno;
12675 /* give thread a chance to complete */
12676 /* it should remain joinable and hence detachable */
12679 status = pthread_detach( &t );
12680 if( status ) return errno;
12683 #ifdef HAVE_LINUX_THREADS
12684 pthread_kill_other_threads_np();
12692 if { (eval echo configure:12693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12694 ol_cv_pthread_pthreads=yes
12696 echo "configure: failed program was:" >&5
12697 cat conftest.$ac_ext >&5
12699 ol_cv_pthread_pthreads=no
12710 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12712 if test $ol_cv_pthread_pthreads = yes ; then
12713 ol_link_pthreads="-pthreads"
12714 ol_link_threads=posix
12718 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12719 if test "$ol_link_threads" = no ; then
12721 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12722 echo "configure:12723: checking for pthread link with -mthreads" >&5
12723 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12724 echo $ac_n "(cached) $ac_c" 1>&6
12729 LIBS="-mthreads $LIBS"
12731 if test "$cross_compiling" = yes; then
12732 cat > conftest.$ac_ext <<EOF
12733 #line 12734 "configure"
12734 #include "confdefs.h"
12735 /* pthread test headers */
12736 #include <pthread.h>
12737 #if HAVE_PTHREADS < 7
12741 #define NULL (void*)0
12744 static void *task(p)
12747 return (void *) (p == NULL);
12752 /* pthread test function */
12753 #ifndef PTHREAD_CREATE_DETACHED
12754 #define PTHREAD_CREATE_DETACHED 1
12758 int detach = PTHREAD_CREATE_DETACHED;
12760 #if HAVE_PTHREADS > 4
12761 /* Final pthreads */
12762 pthread_attr_t attr;
12764 status = pthread_attr_init(&attr);
12765 if( status ) return status;
12767 #if HAVE_PTHREADS < 7
12768 status = pthread_attr_setdetachstate(&attr, &detach);
12769 if( status < 0 ) status = errno;
12771 status = pthread_attr_setdetachstate(&attr, detach);
12773 if( status ) return status;
12774 status = pthread_create( &t, &attr, task, NULL );
12775 #if HAVE_PTHREADS < 7
12776 if( status < 0 ) status = errno;
12778 if( status ) return status;
12780 /* Draft 4 pthreads */
12781 status = pthread_create( &t, pthread_attr_default, task, NULL );
12782 if( status ) return errno;
12784 /* give thread a chance to complete */
12785 /* it should remain joinable and hence detachable */
12788 status = pthread_detach( &t );
12789 if( status ) return errno;
12792 #ifdef HAVE_LINUX_THREADS
12793 pthread_kill_other_threads_np();
12800 if { (eval echo configure:12801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12802 ol_cv_pthread_mthreads=yes
12804 echo "configure: failed program was:" >&5
12805 cat conftest.$ac_ext >&5
12807 ol_cv_pthread_mthreads=no
12811 cat > conftest.$ac_ext <<EOF
12812 #line 12813 "configure"
12813 #include "confdefs.h"
12814 /* pthread test headers */
12815 #include <pthread.h>
12816 #if HAVE_PTHREADS < 7
12820 #define NULL (void*)0
12823 static void *task(p)
12826 return (void *) (p == NULL);
12830 int main(argc, argv)
12835 /* pthread test function */
12836 #ifndef PTHREAD_CREATE_DETACHED
12837 #define PTHREAD_CREATE_DETACHED 1
12841 int detach = PTHREAD_CREATE_DETACHED;
12843 #if HAVE_PTHREADS > 4
12844 /* Final pthreads */
12845 pthread_attr_t attr;
12847 status = pthread_attr_init(&attr);
12848 if( status ) return status;
12850 #if HAVE_PTHREADS < 7
12851 status = pthread_attr_setdetachstate(&attr, &detach);
12852 if( status < 0 ) status = errno;
12854 status = pthread_attr_setdetachstate(&attr, detach);
12856 if( status ) return status;
12857 status = pthread_create( &t, &attr, task, NULL );
12858 #if HAVE_PTHREADS < 7
12859 if( status < 0 ) status = errno;
12861 if( status ) return status;
12863 /* Draft 4 pthreads */
12864 status = pthread_create( &t, pthread_attr_default, task, NULL );
12865 if( status ) return errno;
12867 /* give thread a chance to complete */
12868 /* it should remain joinable and hence detachable */
12871 status = pthread_detach( &t );
12872 if( status ) return errno;
12875 #ifdef HAVE_LINUX_THREADS
12876 pthread_kill_other_threads_np();
12884 if { (eval echo configure:12885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12886 ol_cv_pthread_mthreads=yes
12888 echo "configure: failed program was:" >&5
12889 cat conftest.$ac_ext >&5
12891 ol_cv_pthread_mthreads=no
12902 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12904 if test $ol_cv_pthread_mthreads = yes ; then
12905 ol_link_pthreads="-mthreads"
12906 ol_link_threads=posix
12910 # Pthread try link: -thread (ol_cv_pthread_thread)
12911 if test "$ol_link_threads" = no ; then
12913 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12914 echo "configure:12915: checking for pthread link with -thread" >&5
12915 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12916 echo $ac_n "(cached) $ac_c" 1>&6
12921 LIBS="-thread $LIBS"
12923 if test "$cross_compiling" = yes; then
12924 cat > conftest.$ac_ext <<EOF
12925 #line 12926 "configure"
12926 #include "confdefs.h"
12927 /* pthread test headers */
12928 #include <pthread.h>
12929 #if HAVE_PTHREADS < 7
12933 #define NULL (void*)0
12936 static void *task(p)
12939 return (void *) (p == NULL);
12944 /* pthread test function */
12945 #ifndef PTHREAD_CREATE_DETACHED
12946 #define PTHREAD_CREATE_DETACHED 1
12950 int detach = PTHREAD_CREATE_DETACHED;
12952 #if HAVE_PTHREADS > 4
12953 /* Final pthreads */
12954 pthread_attr_t attr;
12956 status = pthread_attr_init(&attr);
12957 if( status ) return status;
12959 #if HAVE_PTHREADS < 7
12960 status = pthread_attr_setdetachstate(&attr, &detach);
12961 if( status < 0 ) status = errno;
12963 status = pthread_attr_setdetachstate(&attr, detach);
12965 if( status ) return status;
12966 status = pthread_create( &t, &attr, task, NULL );
12967 #if HAVE_PTHREADS < 7
12968 if( status < 0 ) status = errno;
12970 if( status ) return status;
12972 /* Draft 4 pthreads */
12973 status = pthread_create( &t, pthread_attr_default, task, NULL );
12974 if( status ) return errno;
12976 /* give thread a chance to complete */
12977 /* it should remain joinable and hence detachable */
12980 status = pthread_detach( &t );
12981 if( status ) return errno;
12984 #ifdef HAVE_LINUX_THREADS
12985 pthread_kill_other_threads_np();
12992 if { (eval echo configure:12993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12994 ol_cv_pthread_thread=yes
12996 echo "configure: failed program was:" >&5
12997 cat conftest.$ac_ext >&5
12999 ol_cv_pthread_thread=no
13003 cat > conftest.$ac_ext <<EOF
13004 #line 13005 "configure"
13005 #include "confdefs.h"
13006 /* pthread test headers */
13007 #include <pthread.h>
13008 #if HAVE_PTHREADS < 7
13012 #define NULL (void*)0
13015 static void *task(p)
13018 return (void *) (p == NULL);
13022 int main(argc, argv)
13027 /* pthread test function */
13028 #ifndef PTHREAD_CREATE_DETACHED
13029 #define PTHREAD_CREATE_DETACHED 1
13033 int detach = PTHREAD_CREATE_DETACHED;
13035 #if HAVE_PTHREADS > 4
13036 /* Final pthreads */
13037 pthread_attr_t attr;
13039 status = pthread_attr_init(&attr);
13040 if( status ) return status;
13042 #if HAVE_PTHREADS < 7
13043 status = pthread_attr_setdetachstate(&attr, &detach);
13044 if( status < 0 ) status = errno;
13046 status = pthread_attr_setdetachstate(&attr, detach);
13048 if( status ) return status;
13049 status = pthread_create( &t, &attr, task, NULL );
13050 #if HAVE_PTHREADS < 7
13051 if( status < 0 ) status = errno;
13053 if( status ) return status;
13055 /* Draft 4 pthreads */
13056 status = pthread_create( &t, pthread_attr_default, task, NULL );
13057 if( status ) return errno;
13059 /* give thread a chance to complete */
13060 /* it should remain joinable and hence detachable */
13063 status = pthread_detach( &t );
13064 if( status ) return errno;
13067 #ifdef HAVE_LINUX_THREADS
13068 pthread_kill_other_threads_np();
13076 if { (eval echo configure:13077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13078 ol_cv_pthread_thread=yes
13080 echo "configure: failed program was:" >&5
13081 cat conftest.$ac_ext >&5
13083 ol_cv_pthread_thread=no
13094 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
13096 if test $ol_cv_pthread_thread = yes ; then
13097 ol_link_pthreads="-thread"
13098 ol_link_threads=posix
13103 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
13104 if test "$ol_link_threads" = no ; then
13105 # try -lpthread -lmach -lexc -lc_r
13106 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
13107 echo "configure:13108: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
13108 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
13109 echo $ac_n "(cached) $ac_c" 1>&6
13114 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
13116 if test "$cross_compiling" = yes; then
13117 cat > conftest.$ac_ext <<EOF
13118 #line 13119 "configure"
13119 #include "confdefs.h"
13120 /* pthread test headers */
13121 #include <pthread.h>
13122 #if HAVE_PTHREADS < 7
13126 #define NULL (void*)0
13129 static void *task(p)
13132 return (void *) (p == NULL);
13137 /* pthread test function */
13138 #ifndef PTHREAD_CREATE_DETACHED
13139 #define PTHREAD_CREATE_DETACHED 1
13143 int detach = PTHREAD_CREATE_DETACHED;
13145 #if HAVE_PTHREADS > 4
13146 /* Final pthreads */
13147 pthread_attr_t attr;
13149 status = pthread_attr_init(&attr);
13150 if( status ) return status;
13152 #if HAVE_PTHREADS < 7
13153 status = pthread_attr_setdetachstate(&attr, &detach);
13154 if( status < 0 ) status = errno;
13156 status = pthread_attr_setdetachstate(&attr, detach);
13158 if( status ) return status;
13159 status = pthread_create( &t, &attr, task, NULL );
13160 #if HAVE_PTHREADS < 7
13161 if( status < 0 ) status = errno;
13163 if( status ) return status;
13165 /* Draft 4 pthreads */
13166 status = pthread_create( &t, pthread_attr_default, task, NULL );
13167 if( status ) return errno;
13169 /* give thread a chance to complete */
13170 /* it should remain joinable and hence detachable */
13173 status = pthread_detach( &t );
13174 if( status ) return errno;
13177 #ifdef HAVE_LINUX_THREADS
13178 pthread_kill_other_threads_np();
13185 if { (eval echo configure:13186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13187 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13189 echo "configure: failed program was:" >&5
13190 cat conftest.$ac_ext >&5
13192 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13196 cat > conftest.$ac_ext <<EOF
13197 #line 13198 "configure"
13198 #include "confdefs.h"
13199 /* pthread test headers */
13200 #include <pthread.h>
13201 #if HAVE_PTHREADS < 7
13205 #define NULL (void*)0
13208 static void *task(p)
13211 return (void *) (p == NULL);
13215 int main(argc, argv)
13220 /* pthread test function */
13221 #ifndef PTHREAD_CREATE_DETACHED
13222 #define PTHREAD_CREATE_DETACHED 1
13226 int detach = PTHREAD_CREATE_DETACHED;
13228 #if HAVE_PTHREADS > 4
13229 /* Final pthreads */
13230 pthread_attr_t attr;
13232 status = pthread_attr_init(&attr);
13233 if( status ) return status;
13235 #if HAVE_PTHREADS < 7
13236 status = pthread_attr_setdetachstate(&attr, &detach);
13237 if( status < 0 ) status = errno;
13239 status = pthread_attr_setdetachstate(&attr, detach);
13241 if( status ) return status;
13242 status = pthread_create( &t, &attr, task, NULL );
13243 #if HAVE_PTHREADS < 7
13244 if( status < 0 ) status = errno;
13246 if( status ) return status;
13248 /* Draft 4 pthreads */
13249 status = pthread_create( &t, pthread_attr_default, task, NULL );
13250 if( status ) return errno;
13252 /* give thread a chance to complete */
13253 /* it should remain joinable and hence detachable */
13256 status = pthread_detach( &t );
13257 if( status ) return errno;
13260 #ifdef HAVE_LINUX_THREADS
13261 pthread_kill_other_threads_np();
13269 if { (eval echo configure:13270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13271 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13273 echo "configure: failed program was:" >&5
13274 cat conftest.$ac_ext >&5
13276 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13287 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13289 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13290 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13291 ol_link_threads=posix
13295 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13296 if test "$ol_link_threads" = no ; then
13297 # try -lpthread -lmach -lexc
13298 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13299 echo "configure:13300: checking for pthread link with -lpthread -lmach -lexc" >&5
13300 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13301 echo $ac_n "(cached) $ac_c" 1>&6
13306 LIBS="-lpthread -lmach -lexc $LIBS"
13308 if test "$cross_compiling" = yes; then
13309 cat > conftest.$ac_ext <<EOF
13310 #line 13311 "configure"
13311 #include "confdefs.h"
13312 /* pthread test headers */
13313 #include <pthread.h>
13314 #if HAVE_PTHREADS < 7
13318 #define NULL (void*)0
13321 static void *task(p)
13324 return (void *) (p == NULL);
13329 /* pthread test function */
13330 #ifndef PTHREAD_CREATE_DETACHED
13331 #define PTHREAD_CREATE_DETACHED 1
13335 int detach = PTHREAD_CREATE_DETACHED;
13337 #if HAVE_PTHREADS > 4
13338 /* Final pthreads */
13339 pthread_attr_t attr;
13341 status = pthread_attr_init(&attr);
13342 if( status ) return status;
13344 #if HAVE_PTHREADS < 7
13345 status = pthread_attr_setdetachstate(&attr, &detach);
13346 if( status < 0 ) status = errno;
13348 status = pthread_attr_setdetachstate(&attr, detach);
13350 if( status ) return status;
13351 status = pthread_create( &t, &attr, task, NULL );
13352 #if HAVE_PTHREADS < 7
13353 if( status < 0 ) status = errno;
13355 if( status ) return status;
13357 /* Draft 4 pthreads */
13358 status = pthread_create( &t, pthread_attr_default, task, NULL );
13359 if( status ) return errno;
13361 /* give thread a chance to complete */
13362 /* it should remain joinable and hence detachable */
13365 status = pthread_detach( &t );
13366 if( status ) return errno;
13369 #ifdef HAVE_LINUX_THREADS
13370 pthread_kill_other_threads_np();
13377 if { (eval echo configure:13378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13379 ol_cv_pthread_lpthread_lmach_lexc=yes
13381 echo "configure: failed program was:" >&5
13382 cat conftest.$ac_ext >&5
13384 ol_cv_pthread_lpthread_lmach_lexc=no
13388 cat > conftest.$ac_ext <<EOF
13389 #line 13390 "configure"
13390 #include "confdefs.h"
13391 /* pthread test headers */
13392 #include <pthread.h>
13393 #if HAVE_PTHREADS < 7
13397 #define NULL (void*)0
13400 static void *task(p)
13403 return (void *) (p == NULL);
13407 int main(argc, argv)
13412 /* pthread test function */
13413 #ifndef PTHREAD_CREATE_DETACHED
13414 #define PTHREAD_CREATE_DETACHED 1
13418 int detach = PTHREAD_CREATE_DETACHED;
13420 #if HAVE_PTHREADS > 4
13421 /* Final pthreads */
13422 pthread_attr_t attr;
13424 status = pthread_attr_init(&attr);
13425 if( status ) return status;
13427 #if HAVE_PTHREADS < 7
13428 status = pthread_attr_setdetachstate(&attr, &detach);
13429 if( status < 0 ) status = errno;
13431 status = pthread_attr_setdetachstate(&attr, detach);
13433 if( status ) return status;
13434 status = pthread_create( &t, &attr, task, NULL );
13435 #if HAVE_PTHREADS < 7
13436 if( status < 0 ) status = errno;
13438 if( status ) return status;
13440 /* Draft 4 pthreads */
13441 status = pthread_create( &t, pthread_attr_default, task, NULL );
13442 if( status ) return errno;
13444 /* give thread a chance to complete */
13445 /* it should remain joinable and hence detachable */
13448 status = pthread_detach( &t );
13449 if( status ) return errno;
13452 #ifdef HAVE_LINUX_THREADS
13453 pthread_kill_other_threads_np();
13461 if { (eval echo configure:13462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13463 ol_cv_pthread_lpthread_lmach_lexc=yes
13465 echo "configure: failed program was:" >&5
13466 cat conftest.$ac_ext >&5
13468 ol_cv_pthread_lpthread_lmach_lexc=no
13479 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13481 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13482 ol_link_pthreads="-lpthread -lmach -lexc"
13483 ol_link_threads=posix
13488 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13489 if test "$ol_link_threads" = no ; then
13490 # try -lpthread -Wl,-woff,85
13491 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13492 echo "configure:13493: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13493 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13494 echo $ac_n "(cached) $ac_c" 1>&6
13499 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13501 if test "$cross_compiling" = yes; then
13502 cat > conftest.$ac_ext <<EOF
13503 #line 13504 "configure"
13504 #include "confdefs.h"
13505 /* pthread test headers */
13506 #include <pthread.h>
13507 #if HAVE_PTHREADS < 7
13511 #define NULL (void*)0
13514 static void *task(p)
13517 return (void *) (p == NULL);
13522 /* pthread test function */
13523 #ifndef PTHREAD_CREATE_DETACHED
13524 #define PTHREAD_CREATE_DETACHED 1
13528 int detach = PTHREAD_CREATE_DETACHED;
13530 #if HAVE_PTHREADS > 4
13531 /* Final pthreads */
13532 pthread_attr_t attr;
13534 status = pthread_attr_init(&attr);
13535 if( status ) return status;
13537 #if HAVE_PTHREADS < 7
13538 status = pthread_attr_setdetachstate(&attr, &detach);
13539 if( status < 0 ) status = errno;
13541 status = pthread_attr_setdetachstate(&attr, detach);
13543 if( status ) return status;
13544 status = pthread_create( &t, &attr, task, NULL );
13545 #if HAVE_PTHREADS < 7
13546 if( status < 0 ) status = errno;
13548 if( status ) return status;
13550 /* Draft 4 pthreads */
13551 status = pthread_create( &t, pthread_attr_default, task, NULL );
13552 if( status ) return errno;
13554 /* give thread a chance to complete */
13555 /* it should remain joinable and hence detachable */
13558 status = pthread_detach( &t );
13559 if( status ) return errno;
13562 #ifdef HAVE_LINUX_THREADS
13563 pthread_kill_other_threads_np();
13570 if { (eval echo configure:13571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13572 ol_cv_pthread_lib_lpthread_woff=yes
13574 echo "configure: failed program was:" >&5
13575 cat conftest.$ac_ext >&5
13577 ol_cv_pthread_lib_lpthread_woff=no
13581 cat > conftest.$ac_ext <<EOF
13582 #line 13583 "configure"
13583 #include "confdefs.h"
13584 /* pthread test headers */
13585 #include <pthread.h>
13586 #if HAVE_PTHREADS < 7
13590 #define NULL (void*)0
13593 static void *task(p)
13596 return (void *) (p == NULL);
13600 int main(argc, argv)
13605 /* pthread test function */
13606 #ifndef PTHREAD_CREATE_DETACHED
13607 #define PTHREAD_CREATE_DETACHED 1
13611 int detach = PTHREAD_CREATE_DETACHED;
13613 #if HAVE_PTHREADS > 4
13614 /* Final pthreads */
13615 pthread_attr_t attr;
13617 status = pthread_attr_init(&attr);
13618 if( status ) return status;
13620 #if HAVE_PTHREADS < 7
13621 status = pthread_attr_setdetachstate(&attr, &detach);
13622 if( status < 0 ) status = errno;
13624 status = pthread_attr_setdetachstate(&attr, detach);
13626 if( status ) return status;
13627 status = pthread_create( &t, &attr, task, NULL );
13628 #if HAVE_PTHREADS < 7
13629 if( status < 0 ) status = errno;
13631 if( status ) return status;
13633 /* Draft 4 pthreads */
13634 status = pthread_create( &t, pthread_attr_default, task, NULL );
13635 if( status ) return errno;
13637 /* give thread a chance to complete */
13638 /* it should remain joinable and hence detachable */
13641 status = pthread_detach( &t );
13642 if( status ) return errno;
13645 #ifdef HAVE_LINUX_THREADS
13646 pthread_kill_other_threads_np();
13654 if { (eval echo configure:13655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13656 ol_cv_pthread_lib_lpthread_woff=yes
13658 echo "configure: failed program was:" >&5
13659 cat conftest.$ac_ext >&5
13661 ol_cv_pthread_lib_lpthread_woff=no
13672 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13674 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13675 ol_link_pthreads="-lpthread -Wl,-woff,85"
13676 ol_link_threads=posix
13681 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13682 if test "$ol_link_threads" = no ; then
13684 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13685 echo "configure:13686: checking for pthread link with -lpthread" >&5
13686 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13687 echo $ac_n "(cached) $ac_c" 1>&6
13692 LIBS="-lpthread $LIBS"
13694 if test "$cross_compiling" = yes; then
13695 cat > conftest.$ac_ext <<EOF
13696 #line 13697 "configure"
13697 #include "confdefs.h"
13698 /* pthread test headers */
13699 #include <pthread.h>
13700 #if HAVE_PTHREADS < 7
13704 #define NULL (void*)0
13707 static void *task(p)
13710 return (void *) (p == NULL);
13715 /* pthread test function */
13716 #ifndef PTHREAD_CREATE_DETACHED
13717 #define PTHREAD_CREATE_DETACHED 1
13721 int detach = PTHREAD_CREATE_DETACHED;
13723 #if HAVE_PTHREADS > 4
13724 /* Final pthreads */
13725 pthread_attr_t attr;
13727 status = pthread_attr_init(&attr);
13728 if( status ) return status;
13730 #if HAVE_PTHREADS < 7
13731 status = pthread_attr_setdetachstate(&attr, &detach);
13732 if( status < 0 ) status = errno;
13734 status = pthread_attr_setdetachstate(&attr, detach);
13736 if( status ) return status;
13737 status = pthread_create( &t, &attr, task, NULL );
13738 #if HAVE_PTHREADS < 7
13739 if( status < 0 ) status = errno;
13741 if( status ) return status;
13743 /* Draft 4 pthreads */
13744 status = pthread_create( &t, pthread_attr_default, task, NULL );
13745 if( status ) return errno;
13747 /* give thread a chance to complete */
13748 /* it should remain joinable and hence detachable */
13751 status = pthread_detach( &t );
13752 if( status ) return errno;
13755 #ifdef HAVE_LINUX_THREADS
13756 pthread_kill_other_threads_np();
13763 if { (eval echo configure:13764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13765 ol_cv_pthread_lpthread=yes
13767 echo "configure: failed program was:" >&5
13768 cat conftest.$ac_ext >&5
13770 ol_cv_pthread_lpthread=no
13774 cat > conftest.$ac_ext <<EOF
13775 #line 13776 "configure"
13776 #include "confdefs.h"
13777 /* pthread test headers */
13778 #include <pthread.h>
13779 #if HAVE_PTHREADS < 7
13783 #define NULL (void*)0
13786 static void *task(p)
13789 return (void *) (p == NULL);
13793 int main(argc, argv)
13798 /* pthread test function */
13799 #ifndef PTHREAD_CREATE_DETACHED
13800 #define PTHREAD_CREATE_DETACHED 1
13804 int detach = PTHREAD_CREATE_DETACHED;
13806 #if HAVE_PTHREADS > 4
13807 /* Final pthreads */
13808 pthread_attr_t attr;
13810 status = pthread_attr_init(&attr);
13811 if( status ) return status;
13813 #if HAVE_PTHREADS < 7
13814 status = pthread_attr_setdetachstate(&attr, &detach);
13815 if( status < 0 ) status = errno;
13817 status = pthread_attr_setdetachstate(&attr, detach);
13819 if( status ) return status;
13820 status = pthread_create( &t, &attr, task, NULL );
13821 #if HAVE_PTHREADS < 7
13822 if( status < 0 ) status = errno;
13824 if( status ) return status;
13826 /* Draft 4 pthreads */
13827 status = pthread_create( &t, pthread_attr_default, task, NULL );
13828 if( status ) return errno;
13830 /* give thread a chance to complete */
13831 /* it should remain joinable and hence detachable */
13834 status = pthread_detach( &t );
13835 if( status ) return errno;
13838 #ifdef HAVE_LINUX_THREADS
13839 pthread_kill_other_threads_np();
13847 if { (eval echo configure:13848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13849 ol_cv_pthread_lpthread=yes
13851 echo "configure: failed program was:" >&5
13852 cat conftest.$ac_ext >&5
13854 ol_cv_pthread_lpthread=no
13865 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13867 if test $ol_cv_pthread_lpthread = yes ; then
13868 ol_link_pthreads="-lpthread"
13869 ol_link_threads=posix
13873 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13874 if test "$ol_link_threads" = no ; then
13876 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13877 echo "configure:13878: checking for pthread link with -lc_r" >&5
13878 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13879 echo $ac_n "(cached) $ac_c" 1>&6
13886 if test "$cross_compiling" = yes; then
13887 cat > conftest.$ac_ext <<EOF
13888 #line 13889 "configure"
13889 #include "confdefs.h"
13890 /* pthread test headers */
13891 #include <pthread.h>
13892 #if HAVE_PTHREADS < 7
13896 #define NULL (void*)0
13899 static void *task(p)
13902 return (void *) (p == NULL);
13907 /* pthread test function */
13908 #ifndef PTHREAD_CREATE_DETACHED
13909 #define PTHREAD_CREATE_DETACHED 1
13913 int detach = PTHREAD_CREATE_DETACHED;
13915 #if HAVE_PTHREADS > 4
13916 /* Final pthreads */
13917 pthread_attr_t attr;
13919 status = pthread_attr_init(&attr);
13920 if( status ) return status;
13922 #if HAVE_PTHREADS < 7
13923 status = pthread_attr_setdetachstate(&attr, &detach);
13924 if( status < 0 ) status = errno;
13926 status = pthread_attr_setdetachstate(&attr, detach);
13928 if( status ) return status;
13929 status = pthread_create( &t, &attr, task, NULL );
13930 #if HAVE_PTHREADS < 7
13931 if( status < 0 ) status = errno;
13933 if( status ) return status;
13935 /* Draft 4 pthreads */
13936 status = pthread_create( &t, pthread_attr_default, task, NULL );
13937 if( status ) return errno;
13939 /* give thread a chance to complete */
13940 /* it should remain joinable and hence detachable */
13943 status = pthread_detach( &t );
13944 if( status ) return errno;
13947 #ifdef HAVE_LINUX_THREADS
13948 pthread_kill_other_threads_np();
13955 if { (eval echo configure:13956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13957 ol_cv_pthread_lc_r=yes
13959 echo "configure: failed program was:" >&5
13960 cat conftest.$ac_ext >&5
13962 ol_cv_pthread_lc_r=no
13966 cat > conftest.$ac_ext <<EOF
13967 #line 13968 "configure"
13968 #include "confdefs.h"
13969 /* pthread test headers */
13970 #include <pthread.h>
13971 #if HAVE_PTHREADS < 7
13975 #define NULL (void*)0
13978 static void *task(p)
13981 return (void *) (p == NULL);
13985 int main(argc, argv)
13990 /* pthread test function */
13991 #ifndef PTHREAD_CREATE_DETACHED
13992 #define PTHREAD_CREATE_DETACHED 1
13996 int detach = PTHREAD_CREATE_DETACHED;
13998 #if HAVE_PTHREADS > 4
13999 /* Final pthreads */
14000 pthread_attr_t attr;
14002 status = pthread_attr_init(&attr);
14003 if( status ) return status;
14005 #if HAVE_PTHREADS < 7
14006 status = pthread_attr_setdetachstate(&attr, &detach);
14007 if( status < 0 ) status = errno;
14009 status = pthread_attr_setdetachstate(&attr, detach);
14011 if( status ) return status;
14012 status = pthread_create( &t, &attr, task, NULL );
14013 #if HAVE_PTHREADS < 7
14014 if( status < 0 ) status = errno;
14016 if( status ) return status;
14018 /* Draft 4 pthreads */
14019 status = pthread_create( &t, pthread_attr_default, task, NULL );
14020 if( status ) return errno;
14022 /* give thread a chance to complete */
14023 /* it should remain joinable and hence detachable */
14026 status = pthread_detach( &t );
14027 if( status ) return errno;
14030 #ifdef HAVE_LINUX_THREADS
14031 pthread_kill_other_threads_np();
14039 if { (eval echo configure:14040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
14041 ol_cv_pthread_lc_r=yes
14043 echo "configure: failed program was:" >&5
14044 cat conftest.$ac_ext >&5
14046 ol_cv_pthread_lc_r=no
14057 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
14059 if test $ol_cv_pthread_lc_r = yes ; then
14060 ol_link_pthreads="-lc_r"
14061 ol_link_threads=posix
14066 # Pthread try link: -threads (ol_cv_pthread_threads)
14067 if test "$ol_link_threads" = no ; then
14069 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
14070 echo "configure:14071: checking for pthread link with -threads" >&5
14071 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
14072 echo $ac_n "(cached) $ac_c" 1>&6
14077 LIBS="-threads $LIBS"
14079 if test "$cross_compiling" = yes; then
14080 cat > conftest.$ac_ext <<EOF
14081 #line 14082 "configure"
14082 #include "confdefs.h"
14083 /* pthread test headers */
14084 #include <pthread.h>
14085 #if HAVE_PTHREADS < 7
14089 #define NULL (void*)0
14092 static void *task(p)
14095 return (void *) (p == NULL);
14100 /* pthread test function */
14101 #ifndef PTHREAD_CREATE_DETACHED
14102 #define PTHREAD_CREATE_DETACHED 1
14106 int detach = PTHREAD_CREATE_DETACHED;
14108 #if HAVE_PTHREADS > 4
14109 /* Final pthreads */
14110 pthread_attr_t attr;
14112 status = pthread_attr_init(&attr);
14113 if( status ) return status;
14115 #if HAVE_PTHREADS < 7
14116 status = pthread_attr_setdetachstate(&attr, &detach);
14117 if( status < 0 ) status = errno;
14119 status = pthread_attr_setdetachstate(&attr, detach);
14121 if( status ) return status;
14122 status = pthread_create( &t, &attr, task, NULL );
14123 #if HAVE_PTHREADS < 7
14124 if( status < 0 ) status = errno;
14126 if( status ) return status;
14128 /* Draft 4 pthreads */
14129 status = pthread_create( &t, pthread_attr_default, task, NULL );
14130 if( status ) return errno;
14132 /* give thread a chance to complete */
14133 /* it should remain joinable and hence detachable */
14136 status = pthread_detach( &t );
14137 if( status ) return errno;
14140 #ifdef HAVE_LINUX_THREADS
14141 pthread_kill_other_threads_np();
14148 if { (eval echo configure:14149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14150 ol_cv_pthread_threads=yes
14152 echo "configure: failed program was:" >&5
14153 cat conftest.$ac_ext >&5
14155 ol_cv_pthread_threads=no
14159 cat > conftest.$ac_ext <<EOF
14160 #line 14161 "configure"
14161 #include "confdefs.h"
14162 /* pthread test headers */
14163 #include <pthread.h>
14164 #if HAVE_PTHREADS < 7
14168 #define NULL (void*)0
14171 static void *task(p)
14174 return (void *) (p == NULL);
14178 int main(argc, argv)
14183 /* pthread test function */
14184 #ifndef PTHREAD_CREATE_DETACHED
14185 #define PTHREAD_CREATE_DETACHED 1
14189 int detach = PTHREAD_CREATE_DETACHED;
14191 #if HAVE_PTHREADS > 4
14192 /* Final pthreads */
14193 pthread_attr_t attr;
14195 status = pthread_attr_init(&attr);
14196 if( status ) return status;
14198 #if HAVE_PTHREADS < 7
14199 status = pthread_attr_setdetachstate(&attr, &detach);
14200 if( status < 0 ) status = errno;
14202 status = pthread_attr_setdetachstate(&attr, detach);
14204 if( status ) return status;
14205 status = pthread_create( &t, &attr, task, NULL );
14206 #if HAVE_PTHREADS < 7
14207 if( status < 0 ) status = errno;
14209 if( status ) return status;
14211 /* Draft 4 pthreads */
14212 status = pthread_create( &t, pthread_attr_default, task, NULL );
14213 if( status ) return errno;
14215 /* give thread a chance to complete */
14216 /* it should remain joinable and hence detachable */
14219 status = pthread_detach( &t );
14220 if( status ) return errno;
14223 #ifdef HAVE_LINUX_THREADS
14224 pthread_kill_other_threads_np();
14232 if { (eval echo configure:14233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
14234 ol_cv_pthread_threads=yes
14236 echo "configure: failed program was:" >&5
14237 cat conftest.$ac_ext >&5
14239 ol_cv_pthread_threads=no
14250 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
14252 if test $ol_cv_pthread_threads = yes ; then
14253 ol_link_pthreads="-threads"
14254 ol_link_threads=posix
14259 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
14260 if test "$ol_link_threads" = no ; then
14261 # try -lpthreads -lmach -lexc -lc_r
14262 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
14263 echo "configure:14264: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
14264 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
14265 echo $ac_n "(cached) $ac_c" 1>&6
14270 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
14272 if test "$cross_compiling" = yes; then
14273 cat > conftest.$ac_ext <<EOF
14274 #line 14275 "configure"
14275 #include "confdefs.h"
14276 /* pthread test headers */
14277 #include <pthread.h>
14278 #if HAVE_PTHREADS < 7
14282 #define NULL (void*)0
14285 static void *task(p)
14288 return (void *) (p == NULL);
14293 /* pthread test function */
14294 #ifndef PTHREAD_CREATE_DETACHED
14295 #define PTHREAD_CREATE_DETACHED 1
14299 int detach = PTHREAD_CREATE_DETACHED;
14301 #if HAVE_PTHREADS > 4
14302 /* Final pthreads */
14303 pthread_attr_t attr;
14305 status = pthread_attr_init(&attr);
14306 if( status ) return status;
14308 #if HAVE_PTHREADS < 7
14309 status = pthread_attr_setdetachstate(&attr, &detach);
14310 if( status < 0 ) status = errno;
14312 status = pthread_attr_setdetachstate(&attr, detach);
14314 if( status ) return status;
14315 status = pthread_create( &t, &attr, task, NULL );
14316 #if HAVE_PTHREADS < 7
14317 if( status < 0 ) status = errno;
14319 if( status ) return status;
14321 /* Draft 4 pthreads */
14322 status = pthread_create( &t, pthread_attr_default, task, NULL );
14323 if( status ) return errno;
14325 /* give thread a chance to complete */
14326 /* it should remain joinable and hence detachable */
14329 status = pthread_detach( &t );
14330 if( status ) return errno;
14333 #ifdef HAVE_LINUX_THREADS
14334 pthread_kill_other_threads_np();
14341 if { (eval echo configure:14342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14343 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14345 echo "configure: failed program was:" >&5
14346 cat conftest.$ac_ext >&5
14348 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14352 cat > conftest.$ac_ext <<EOF
14353 #line 14354 "configure"
14354 #include "confdefs.h"
14355 /* pthread test headers */
14356 #include <pthread.h>
14357 #if HAVE_PTHREADS < 7
14361 #define NULL (void*)0
14364 static void *task(p)
14367 return (void *) (p == NULL);
14371 int main(argc, argv)
14376 /* pthread test function */
14377 #ifndef PTHREAD_CREATE_DETACHED
14378 #define PTHREAD_CREATE_DETACHED 1
14382 int detach = PTHREAD_CREATE_DETACHED;
14384 #if HAVE_PTHREADS > 4
14385 /* Final pthreads */
14386 pthread_attr_t attr;
14388 status = pthread_attr_init(&attr);
14389 if( status ) return status;
14391 #if HAVE_PTHREADS < 7
14392 status = pthread_attr_setdetachstate(&attr, &detach);
14393 if( status < 0 ) status = errno;
14395 status = pthread_attr_setdetachstate(&attr, detach);
14397 if( status ) return status;
14398 status = pthread_create( &t, &attr, task, NULL );
14399 #if HAVE_PTHREADS < 7
14400 if( status < 0 ) status = errno;
14402 if( status ) return status;
14404 /* Draft 4 pthreads */
14405 status = pthread_create( &t, pthread_attr_default, task, NULL );
14406 if( status ) return errno;
14408 /* give thread a chance to complete */
14409 /* it should remain joinable and hence detachable */
14412 status = pthread_detach( &t );
14413 if( status ) return errno;
14416 #ifdef HAVE_LINUX_THREADS
14417 pthread_kill_other_threads_np();
14425 if { (eval echo configure:14426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
14427 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14429 echo "configure: failed program was:" >&5
14430 cat conftest.$ac_ext >&5
14432 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14443 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14445 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14446 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14447 ol_link_threads=posix
14451 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14452 if test "$ol_link_threads" = no ; then
14453 # try -lpthreads -lmach -lexc
14454 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14455 echo "configure:14456: checking for pthread link with -lpthreads -lmach -lexc" >&5
14456 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14457 echo $ac_n "(cached) $ac_c" 1>&6
14462 LIBS="-lpthreads -lmach -lexc $LIBS"
14464 if test "$cross_compiling" = yes; then
14465 cat > conftest.$ac_ext <<EOF
14466 #line 14467 "configure"
14467 #include "confdefs.h"
14468 /* pthread test headers */
14469 #include <pthread.h>
14470 #if HAVE_PTHREADS < 7
14474 #define NULL (void*)0
14477 static void *task(p)
14480 return (void *) (p == NULL);
14485 /* pthread test function */
14486 #ifndef PTHREAD_CREATE_DETACHED
14487 #define PTHREAD_CREATE_DETACHED 1
14491 int detach = PTHREAD_CREATE_DETACHED;
14493 #if HAVE_PTHREADS > 4
14494 /* Final pthreads */
14495 pthread_attr_t attr;
14497 status = pthread_attr_init(&attr);
14498 if( status ) return status;
14500 #if HAVE_PTHREADS < 7
14501 status = pthread_attr_setdetachstate(&attr, &detach);
14502 if( status < 0 ) status = errno;
14504 status = pthread_attr_setdetachstate(&attr, detach);
14506 if( status ) return status;
14507 status = pthread_create( &t, &attr, task, NULL );
14508 #if HAVE_PTHREADS < 7
14509 if( status < 0 ) status = errno;
14511 if( status ) return status;
14513 /* Draft 4 pthreads */
14514 status = pthread_create( &t, pthread_attr_default, task, NULL );
14515 if( status ) return errno;
14517 /* give thread a chance to complete */
14518 /* it should remain joinable and hence detachable */
14521 status = pthread_detach( &t );
14522 if( status ) return errno;
14525 #ifdef HAVE_LINUX_THREADS
14526 pthread_kill_other_threads_np();
14533 if { (eval echo configure:14534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14535 ol_cv_pthread_lpthreads_lmach_lexc=yes
14537 echo "configure: failed program was:" >&5
14538 cat conftest.$ac_ext >&5
14540 ol_cv_pthread_lpthreads_lmach_lexc=no
14544 cat > conftest.$ac_ext <<EOF
14545 #line 14546 "configure"
14546 #include "confdefs.h"
14547 /* pthread test headers */
14548 #include <pthread.h>
14549 #if HAVE_PTHREADS < 7
14553 #define NULL (void*)0
14556 static void *task(p)
14559 return (void *) (p == NULL);
14563 int main(argc, argv)
14568 /* pthread test function */
14569 #ifndef PTHREAD_CREATE_DETACHED
14570 #define PTHREAD_CREATE_DETACHED 1
14574 int detach = PTHREAD_CREATE_DETACHED;
14576 #if HAVE_PTHREADS > 4
14577 /* Final pthreads */
14578 pthread_attr_t attr;
14580 status = pthread_attr_init(&attr);
14581 if( status ) return status;
14583 #if HAVE_PTHREADS < 7
14584 status = pthread_attr_setdetachstate(&attr, &detach);
14585 if( status < 0 ) status = errno;
14587 status = pthread_attr_setdetachstate(&attr, detach);
14589 if( status ) return status;
14590 status = pthread_create( &t, &attr, task, NULL );
14591 #if HAVE_PTHREADS < 7
14592 if( status < 0 ) status = errno;
14594 if( status ) return status;
14596 /* Draft 4 pthreads */
14597 status = pthread_create( &t, pthread_attr_default, task, NULL );
14598 if( status ) return errno;
14600 /* give thread a chance to complete */
14601 /* it should remain joinable and hence detachable */
14604 status = pthread_detach( &t );
14605 if( status ) return errno;
14608 #ifdef HAVE_LINUX_THREADS
14609 pthread_kill_other_threads_np();
14617 if { (eval echo configure:14618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
14619 ol_cv_pthread_lpthreads_lmach_lexc=yes
14621 echo "configure: failed program was:" >&5
14622 cat conftest.$ac_ext >&5
14624 ol_cv_pthread_lpthreads_lmach_lexc=no
14635 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14637 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14638 ol_link_pthreads="-lpthreads -lmach -lexc"
14639 ol_link_threads=posix
14643 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14644 if test "$ol_link_threads" = no ; then
14645 # try -lpthreads -lexc
14646 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14647 echo "configure:14648: checking for pthread link with -lpthreads -lexc" >&5
14648 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14649 echo $ac_n "(cached) $ac_c" 1>&6
14654 LIBS="-lpthreads -lexc $LIBS"
14656 if test "$cross_compiling" = yes; then
14657 cat > conftest.$ac_ext <<EOF
14658 #line 14659 "configure"
14659 #include "confdefs.h"
14660 /* pthread test headers */
14661 #include <pthread.h>
14662 #if HAVE_PTHREADS < 7
14666 #define NULL (void*)0
14669 static void *task(p)
14672 return (void *) (p == NULL);
14677 /* pthread test function */
14678 #ifndef PTHREAD_CREATE_DETACHED
14679 #define PTHREAD_CREATE_DETACHED 1
14683 int detach = PTHREAD_CREATE_DETACHED;
14685 #if HAVE_PTHREADS > 4
14686 /* Final pthreads */
14687 pthread_attr_t attr;
14689 status = pthread_attr_init(&attr);
14690 if( status ) return status;
14692 #if HAVE_PTHREADS < 7
14693 status = pthread_attr_setdetachstate(&attr, &detach);
14694 if( status < 0 ) status = errno;
14696 status = pthread_attr_setdetachstate(&attr, detach);
14698 if( status ) return status;
14699 status = pthread_create( &t, &attr, task, NULL );
14700 #if HAVE_PTHREADS < 7
14701 if( status < 0 ) status = errno;
14703 if( status ) return status;
14705 /* Draft 4 pthreads */
14706 status = pthread_create( &t, pthread_attr_default, task, NULL );
14707 if( status ) return errno;
14709 /* give thread a chance to complete */
14710 /* it should remain joinable and hence detachable */
14713 status = pthread_detach( &t );
14714 if( status ) return errno;
14717 #ifdef HAVE_LINUX_THREADS
14718 pthread_kill_other_threads_np();
14725 if { (eval echo configure:14726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14727 ol_cv_pthread_lpthreads_lexc=yes
14729 echo "configure: failed program was:" >&5
14730 cat conftest.$ac_ext >&5
14732 ol_cv_pthread_lpthreads_lexc=no
14736 cat > conftest.$ac_ext <<EOF
14737 #line 14738 "configure"
14738 #include "confdefs.h"
14739 /* pthread test headers */
14740 #include <pthread.h>
14741 #if HAVE_PTHREADS < 7
14745 #define NULL (void*)0
14748 static void *task(p)
14751 return (void *) (p == NULL);
14755 int main(argc, argv)
14760 /* pthread test function */
14761 #ifndef PTHREAD_CREATE_DETACHED
14762 #define PTHREAD_CREATE_DETACHED 1
14766 int detach = PTHREAD_CREATE_DETACHED;
14768 #if HAVE_PTHREADS > 4
14769 /* Final pthreads */
14770 pthread_attr_t attr;
14772 status = pthread_attr_init(&attr);
14773 if( status ) return status;
14775 #if HAVE_PTHREADS < 7
14776 status = pthread_attr_setdetachstate(&attr, &detach);
14777 if( status < 0 ) status = errno;
14779 status = pthread_attr_setdetachstate(&attr, detach);
14781 if( status ) return status;
14782 status = pthread_create( &t, &attr, task, NULL );
14783 #if HAVE_PTHREADS < 7
14784 if( status < 0 ) status = errno;
14786 if( status ) return status;
14788 /* Draft 4 pthreads */
14789 status = pthread_create( &t, pthread_attr_default, task, NULL );
14790 if( status ) return errno;
14792 /* give thread a chance to complete */
14793 /* it should remain joinable and hence detachable */
14796 status = pthread_detach( &t );
14797 if( status ) return errno;
14800 #ifdef HAVE_LINUX_THREADS
14801 pthread_kill_other_threads_np();
14809 if { (eval echo configure:14810: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
14811 ol_cv_pthread_lpthreads_lexc=yes
14813 echo "configure: failed program was:" >&5
14814 cat conftest.$ac_ext >&5
14816 ol_cv_pthread_lpthreads_lexc=no
14827 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14829 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14830 ol_link_pthreads="-lpthreads -lexc"
14831 ol_link_threads=posix
14836 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14837 if test "$ol_link_threads" = no ; then
14839 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14840 echo "configure:14841: checking for pthread link with -lpthreads" >&5
14841 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14842 echo $ac_n "(cached) $ac_c" 1>&6
14847 LIBS="-lpthreads $LIBS"
14849 if test "$cross_compiling" = yes; then
14850 cat > conftest.$ac_ext <<EOF
14851 #line 14852 "configure"
14852 #include "confdefs.h"
14853 /* pthread test headers */
14854 #include <pthread.h>
14855 #if HAVE_PTHREADS < 7
14859 #define NULL (void*)0
14862 static void *task(p)
14865 return (void *) (p == NULL);
14870 /* pthread test function */
14871 #ifndef PTHREAD_CREATE_DETACHED
14872 #define PTHREAD_CREATE_DETACHED 1
14876 int detach = PTHREAD_CREATE_DETACHED;
14878 #if HAVE_PTHREADS > 4
14879 /* Final pthreads */
14880 pthread_attr_t attr;
14882 status = pthread_attr_init(&attr);
14883 if( status ) return status;
14885 #if HAVE_PTHREADS < 7
14886 status = pthread_attr_setdetachstate(&attr, &detach);
14887 if( status < 0 ) status = errno;
14889 status = pthread_attr_setdetachstate(&attr, detach);
14891 if( status ) return status;
14892 status = pthread_create( &t, &attr, task, NULL );
14893 #if HAVE_PTHREADS < 7
14894 if( status < 0 ) status = errno;
14896 if( status ) return status;
14898 /* Draft 4 pthreads */
14899 status = pthread_create( &t, pthread_attr_default, task, NULL );
14900 if( status ) return errno;
14902 /* give thread a chance to complete */
14903 /* it should remain joinable and hence detachable */
14906 status = pthread_detach( &t );
14907 if( status ) return errno;
14910 #ifdef HAVE_LINUX_THREADS
14911 pthread_kill_other_threads_np();
14918 if { (eval echo configure:14919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14920 ol_cv_pthread_lib_lpthreads=yes
14922 echo "configure: failed program was:" >&5
14923 cat conftest.$ac_ext >&5
14925 ol_cv_pthread_lib_lpthreads=no
14929 cat > conftest.$ac_ext <<EOF
14930 #line 14931 "configure"
14931 #include "confdefs.h"
14932 /* pthread test headers */
14933 #include <pthread.h>
14934 #if HAVE_PTHREADS < 7
14938 #define NULL (void*)0
14941 static void *task(p)
14944 return (void *) (p == NULL);
14948 int main(argc, argv)
14953 /* pthread test function */
14954 #ifndef PTHREAD_CREATE_DETACHED
14955 #define PTHREAD_CREATE_DETACHED 1
14959 int detach = PTHREAD_CREATE_DETACHED;
14961 #if HAVE_PTHREADS > 4
14962 /* Final pthreads */
14963 pthread_attr_t attr;
14965 status = pthread_attr_init(&attr);
14966 if( status ) return status;
14968 #if HAVE_PTHREADS < 7
14969 status = pthread_attr_setdetachstate(&attr, &detach);
14970 if( status < 0 ) status = errno;
14972 status = pthread_attr_setdetachstate(&attr, detach);
14974 if( status ) return status;
14975 status = pthread_create( &t, &attr, task, NULL );
14976 #if HAVE_PTHREADS < 7
14977 if( status < 0 ) status = errno;
14979 if( status ) return status;
14981 /* Draft 4 pthreads */
14982 status = pthread_create( &t, pthread_attr_default, task, NULL );
14983 if( status ) return errno;
14985 /* give thread a chance to complete */
14986 /* it should remain joinable and hence detachable */
14989 status = pthread_detach( &t );
14990 if( status ) return errno;
14993 #ifdef HAVE_LINUX_THREADS
14994 pthread_kill_other_threads_np();
15002 if { (eval echo configure:15003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
15004 ol_cv_pthread_lib_lpthreads=yes
15006 echo "configure: failed program was:" >&5
15007 cat conftest.$ac_ext >&5
15009 ol_cv_pthread_lib_lpthreads=no
15020 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
15022 if test $ol_cv_pthread_lib_lpthreads = yes ; then
15023 ol_link_pthreads="-lpthreads"
15024 ol_link_threads=posix
15029 if test $ol_link_threads != no ; then
15030 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
15032 save_CPPFLAGS="$CPPFLAGS"
15034 LIBS="$LTHREAD_LIBS $LIBS"
15036 for ac_func in sched_yield pthread_yield thr_yield
15038 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15039 echo "configure:15040: checking for $ac_func" >&5
15040 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15041 echo $ac_n "(cached) $ac_c" 1>&6
15043 cat > conftest.$ac_ext <<EOF
15044 #line 15045 "configure"
15045 #include "confdefs.h"
15046 /* System header to define __stub macros and hopefully few prototypes,
15047 which can conflict with char $ac_func(); below. */
15048 #include <assert.h>
15049 /* Override any gcc2 internal prototype to avoid an error. */
15050 /* We use char because int might match the return type of a gcc2
15051 builtin and then its argument prototype would still apply. */
15057 /* The GNU C library defines this for functions which it implements
15058 to always fail with ENOSYS. Some functions are actually named
15059 something starting with __ and the normal name is an alias. */
15060 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15068 if { (eval echo configure:15069: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15070 eval "ac_cv_func_$ac_func=yes"
15072 echo "configure: failed program was:" >&5
15073 cat conftest.$ac_ext >&5
15075 eval "ac_cv_func_$ac_func=no"
15080 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15081 echo "$ac_t""yes" 1>&6
15082 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15083 cat >> confdefs.h <<EOF
15084 #define $ac_tr_func 1
15088 echo "$ac_t""no" 1>&6
15093 if test $ac_cv_func_sched_yield = no -a \
15094 $ac_cv_func_pthread_yield = no -a \
15095 $ac_cv_func_thr_yield = no ; then
15096 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
15097 echo "configure:15098: checking for sched_yield in -lrt" >&5
15098 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
15099 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15100 echo $ac_n "(cached) $ac_c" 1>&6
15102 ac_save_LIBS="$LIBS"
15104 cat > conftest.$ac_ext <<EOF
15105 #line 15106 "configure"
15106 #include "confdefs.h"
15107 /* Override any gcc2 internal prototype to avoid an error. */
15108 /* We use char because int might match the return type of a gcc2
15109 builtin and then its argument prototype would still apply. */
15110 char sched_yield();
15116 if { (eval echo configure:15117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15118 eval "ac_cv_lib_$ac_lib_var=yes"
15120 echo "configure: failed program was:" >&5
15121 cat conftest.$ac_ext >&5
15123 eval "ac_cv_lib_$ac_lib_var=no"
15126 LIBS="$ac_save_LIBS"
15129 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15130 echo "$ac_t""yes" 1>&6
15131 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
15132 cat >> confdefs.h <<\EOF
15133 #define HAVE_SCHED_YIELD 1
15136 ac_cv_func_sched_yield=yes
15138 echo "$ac_t""no" 1>&6
15139 ac_cv_func_sched_yield=no
15143 if test $ac_cv_func_sched_yield = no -a \
15144 $ac_cv_func_pthread_yield = no -a \
15145 "$ac_cv_func_thr_yield" = no ; then
15146 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
15149 for ac_func in pthread_kill pthread_rwlock_destroy
15151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15152 echo "configure:15153: checking for $ac_func" >&5
15153 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15154 echo $ac_n "(cached) $ac_c" 1>&6
15156 cat > conftest.$ac_ext <<EOF
15157 #line 15158 "configure"
15158 #include "confdefs.h"
15159 /* System header to define __stub macros and hopefully few prototypes,
15160 which can conflict with char $ac_func(); below. */
15161 #include <assert.h>
15162 /* Override any gcc2 internal prototype to avoid an error. */
15163 /* We use char because int might match the return type of a gcc2
15164 builtin and then its argument prototype would still apply. */
15170 /* The GNU C library defines this for functions which it implements
15171 to always fail with ENOSYS. Some functions are actually named
15172 something starting with __ and the normal name is an alias. */
15173 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15181 if { (eval echo configure:15182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15183 eval "ac_cv_func_$ac_func=yes"
15185 echo "configure: failed program was:" >&5
15186 cat conftest.$ac_ext >&5
15188 eval "ac_cv_func_$ac_func=no"
15193 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15194 echo "$ac_t""yes" 1>&6
15195 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15196 cat >> confdefs.h <<EOF
15197 #define $ac_tr_func 1
15201 echo "$ac_t""no" 1>&6
15206 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
15207 echo "configure:15208: checking for pthread_detach with <pthread.h>" >&5
15208 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
15209 echo $ac_n "(cached) $ac_c" 1>&6
15212 cat > conftest.$ac_ext <<EOF
15213 #line 15214 "configure"
15214 #include "confdefs.h"
15216 #include <pthread.h>
15218 #define NULL (void*)0
15222 pthread_detach(NULL);
15225 if { (eval echo configure:15226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15227 ol_cv_func_pthread_detach=yes
15229 echo "configure: failed program was:" >&5
15230 cat conftest.$ac_ext >&5
15232 ol_cv_func_pthread_detach=no
15238 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
15240 if test $ol_cv_func_pthread_detach = no ; then
15241 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
15244 cat >> confdefs.h <<\EOF
15245 #define HAVE_PTHREAD_DETACH 1
15250 pthread_setconcurrency \
15251 pthread_getconcurrency \
15252 thr_setconcurrency \
15253 thr_getconcurrency \
15256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15257 echo "configure:15258: checking for $ac_func" >&5
15258 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15259 echo $ac_n "(cached) $ac_c" 1>&6
15261 cat > conftest.$ac_ext <<EOF
15262 #line 15263 "configure"
15263 #include "confdefs.h"
15264 /* System header to define __stub macros and hopefully few prototypes,
15265 which can conflict with char $ac_func(); below. */
15266 #include <assert.h>
15267 /* Override any gcc2 internal prototype to avoid an error. */
15268 /* We use char because int might match the return type of a gcc2
15269 builtin and then its argument prototype would still apply. */
15275 /* The GNU C library defines this for functions which it implements
15276 to always fail with ENOSYS. Some functions are actually named
15277 something starting with __ and the normal name is an alias. */
15278 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15286 if { (eval echo configure:15287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15288 eval "ac_cv_func_$ac_func=yes"
15290 echo "configure: failed program was:" >&5
15291 cat conftest.$ac_ext >&5
15293 eval "ac_cv_func_$ac_func=no"
15298 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15299 echo "$ac_t""yes" 1>&6
15300 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15301 cat >> confdefs.h <<EOF
15302 #define $ac_tr_func 1
15306 echo "$ac_t""no" 1>&6
15312 for ac_func in pthread_kill_other_threads_np
15314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15315 echo "configure:15316: checking for $ac_func" >&5
15316 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15317 echo $ac_n "(cached) $ac_c" 1>&6
15319 cat > conftest.$ac_ext <<EOF
15320 #line 15321 "configure"
15321 #include "confdefs.h"
15322 /* System header to define __stub macros and hopefully few prototypes,
15323 which can conflict with char $ac_func(); below. */
15324 #include <assert.h>
15325 /* Override any gcc2 internal prototype to avoid an error. */
15326 /* We use char because int might match the return type of a gcc2
15327 builtin and then its argument prototype would still apply. */
15333 /* The GNU C library defines this for functions which it implements
15334 to always fail with ENOSYS. Some functions are actually named
15335 something starting with __ and the normal name is an alias. */
15336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15344 if { (eval echo configure:15345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15346 eval "ac_cv_func_$ac_func=yes"
15348 echo "configure: failed program was:" >&5
15349 cat conftest.$ac_ext >&5
15351 eval "ac_cv_func_$ac_func=no"
15356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15357 echo "$ac_t""yes" 1>&6
15358 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15359 cat >> confdefs.h <<EOF
15360 #define $ac_tr_func 1
15364 echo "$ac_t""no" 1>&6
15368 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15369 echo "configure:15370: checking for LinuxThreads implementation" >&5
15370 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15371 echo $ac_n "(cached) $ac_c" 1>&6
15373 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15376 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15381 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15382 echo "configure:15383: checking for LinuxThreads consistency" >&5
15383 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15384 echo $ac_n "(cached) $ac_c" 1>&6
15387 if test $ol_cv_header_linux_threads = yes -a \
15388 $ol_cv_sys_linux_threads = yes; then
15389 ol_cv_linux_threads=yes
15390 elif test $ol_cv_header_linux_threads = no -a \
15391 $ol_cv_sys_linux_threads = no; then
15392 ol_cv_linux_threads=no
15394 ol_cv_linux_threads=error
15399 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15402 if test $ol_cv_linux_threads = error; then
15403 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15406 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15407 echo "configure:15408: checking if pthread_create() works" >&5
15408 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15409 echo $ac_n "(cached) $ac_c" 1>&6
15412 if test "$cross_compiling" = yes; then
15413 ol_cv_pthread_create_works=yes
15415 cat > conftest.$ac_ext <<EOF
15416 #line 15417 "configure"
15417 #include "confdefs.h"
15418 /* pthread test headers */
15419 #include <pthread.h>
15420 #if HAVE_PTHREADS < 7
15424 #define NULL (void*)0
15427 static void *task(p)
15430 return (void *) (p == NULL);
15434 int main(argc, argv)
15439 /* pthread test function */
15440 #ifndef PTHREAD_CREATE_DETACHED
15441 #define PTHREAD_CREATE_DETACHED 1
15445 int detach = PTHREAD_CREATE_DETACHED;
15447 #if HAVE_PTHREADS > 4
15448 /* Final pthreads */
15449 pthread_attr_t attr;
15451 status = pthread_attr_init(&attr);
15452 if( status ) return status;
15454 #if HAVE_PTHREADS < 7
15455 status = pthread_attr_setdetachstate(&attr, &detach);
15456 if( status < 0 ) status = errno;
15458 status = pthread_attr_setdetachstate(&attr, detach);
15460 if( status ) return status;
15461 status = pthread_create( &t, &attr, task, NULL );
15462 #if HAVE_PTHREADS < 7
15463 if( status < 0 ) status = errno;
15465 if( status ) return status;
15467 /* Draft 4 pthreads */
15468 status = pthread_create( &t, pthread_attr_default, task, NULL );
15469 if( status ) return errno;
15471 /* give thread a chance to complete */
15472 /* it should remain joinable and hence detachable */
15475 status = pthread_detach( &t );
15476 if( status ) return errno;
15479 #ifdef HAVE_LINUX_THREADS
15480 pthread_kill_other_threads_np();
15488 if { (eval echo configure:15489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
15490 ol_cv_pthread_create_works=yes
15492 echo "configure: failed program was:" >&5
15493 cat conftest.$ac_ext >&5
15495 ol_cv_pthread_create_works=no
15502 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15504 if test $ol_cv_pthread_create_works = no ; then
15505 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15508 if test $ol_with_yielding_select = auto ; then
15509 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15510 echo "configure:15511: checking if select yields when using pthreads" >&5
15511 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15512 echo $ac_n "(cached) $ac_c" 1>&6
15515 if test "$cross_compiling" = yes; then
15516 ol_cv_pthread_select_yields=cross
15518 cat > conftest.$ac_ext <<EOF
15519 #line 15520 "configure"
15520 #include "confdefs.h"
15522 #include <sys/types.h>
15523 #include <sys/time.h>
15524 #include <unistd.h>
15525 #include <pthread.h>
15527 #define NULL (void*) 0
15530 static int fildes[2];
15532 static void *task(p)
15544 FD_SET(fildes[0], &rfds);
15546 /* we're not interested in any fds */
15547 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15554 exit(0); /* if we exit here, the select blocked the whole process */
15557 int main(argc, argv)
15563 /* create a pipe to select */
15564 if(pipe(&fildes[0])) {
15569 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15570 (void) pthread_setconcurrency(2);
15572 #ifdef HAVE_THR_SETCONCURRENCY
15573 /* Set Solaris LWP concurrency to 2 */
15574 thr_setconcurrency(2);
15578 #if HAVE_PTHREADS < 6
15579 pthread_create(&t, pthread_attr_default, task, NULL);
15581 pthread_create(&t, NULL, task, NULL);
15584 /* make sure task runs first */
15587 #elif defined( HAVE_SCHED_YIELD )
15589 #elif defined( HAVE_PTHREAD_YIELD )
15596 if { (eval echo configure:15597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
15598 ol_cv_pthread_select_yields=no
15600 echo "configure: failed program was:" >&5
15601 cat conftest.$ac_ext >&5
15603 ol_cv_pthread_select_yields=yes
15610 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15612 if test $ol_cv_pthread_select_yields = cross ; then
15613 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15616 if test $ol_cv_pthread_select_yields = yes ; then
15617 ol_with_yielding_select=yes
15621 CPPFLAGS="$save_CPPFLAGS"
15624 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15628 if test $ol_with_threads = posix ; then
15629 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15633 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15634 -o $ol_with_threads = mach ; then
15636 for ac_hdr in mach/cthreads.h cthreads.h
15638 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15639 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15640 echo "configure:15641: checking for $ac_hdr" >&5
15641 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15642 echo $ac_n "(cached) $ac_c" 1>&6
15644 cat > conftest.$ac_ext <<EOF
15645 #line 15646 "configure"
15646 #include "confdefs.h"
15649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15650 { (eval echo configure:15651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15651 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15652 if test -z "$ac_err"; then
15654 eval "ac_cv_header_$ac_safe=yes"
15657 echo "configure: failed program was:" >&5
15658 cat conftest.$ac_ext >&5
15660 eval "ac_cv_header_$ac_safe=no"
15664 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15665 echo "$ac_t""yes" 1>&6
15666 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15667 cat >> confdefs.h <<EOF
15668 #define $ac_tr_hdr 1
15672 echo "$ac_t""no" 1>&6
15676 if test $ac_cv_header_mach_cthreads_h = yes ; then
15677 ol_with_threads=found
15679 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15680 echo "configure:15681: checking for cthread_fork" >&5
15681 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15682 echo $ac_n "(cached) $ac_c" 1>&6
15684 cat > conftest.$ac_ext <<EOF
15685 #line 15686 "configure"
15686 #include "confdefs.h"
15687 /* System header to define __stub macros and hopefully few prototypes,
15688 which can conflict with char cthread_fork(); below. */
15689 #include <assert.h>
15690 /* Override any gcc2 internal prototype to avoid an error. */
15691 /* We use char because int might match the return type of a gcc2
15692 builtin and then its argument prototype would still apply. */
15693 char cthread_fork();
15698 /* The GNU C library defines this for functions which it implements
15699 to always fail with ENOSYS. Some functions are actually named
15700 something starting with __ and the normal name is an alias. */
15701 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15709 if { (eval echo configure:15710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15711 eval "ac_cv_func_cthread_fork=yes"
15713 echo "configure: failed program was:" >&5
15714 cat conftest.$ac_ext >&5
15716 eval "ac_cv_func_cthread_fork=no"
15721 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15722 echo "$ac_t""yes" 1>&6
15723 ol_link_threads=yes
15725 echo "$ac_t""no" 1>&6
15729 if test $ol_link_threads = no ; then
15730 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15731 echo "configure:15732: checking for cthread_fork with -all_load" >&5
15732 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15733 echo $ac_n "(cached) $ac_c" 1>&6
15737 LIBS="-all_load $LIBS"
15738 cat > conftest.$ac_ext <<EOF
15739 #line 15740 "configure"
15740 #include "confdefs.h"
15741 #include <mach/cthreads.h>
15744 cthread_fork((void *)0, (void *)0);
15748 if { (eval echo configure:15749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15750 ol_cv_cthread_all_load=yes
15752 echo "configure: failed program was:" >&5
15753 cat conftest.$ac_ext >&5
15755 ol_cv_cthread_all_load=no
15762 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15764 if test $ol_cv_cthread_all_load = yes ; then
15765 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15766 ol_link_threads=mach
15767 ol_with_threads=found
15771 elif test $ac_cv_header_cthreads_h = yes ; then
15773 ol_with_threads=found
15776 LIBS="$LIBS -lthreads"
15777 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15778 echo "configure:15779: checking for cthread_fork" >&5
15779 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15780 echo $ac_n "(cached) $ac_c" 1>&6
15782 cat > conftest.$ac_ext <<EOF
15783 #line 15784 "configure"
15784 #include "confdefs.h"
15785 /* System header to define __stub macros and hopefully few prototypes,
15786 which can conflict with char cthread_fork(); below. */
15787 #include <assert.h>
15788 /* Override any gcc2 internal prototype to avoid an error. */
15789 /* We use char because int might match the return type of a gcc2
15790 builtin and then its argument prototype would still apply. */
15791 char cthread_fork();
15796 /* The GNU C library defines this for functions which it implements
15797 to always fail with ENOSYS. Some functions are actually named
15798 something starting with __ and the normal name is an alias. */
15799 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15807 if { (eval echo configure:15808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15809 eval "ac_cv_func_cthread_fork=yes"
15811 echo "configure: failed program was:" >&5
15812 cat conftest.$ac_ext >&5
15814 eval "ac_cv_func_cthread_fork=no"
15819 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15820 echo "$ac_t""yes" 1>&6
15821 ol_link_threads=yes
15823 echo "$ac_t""no" 1>&6
15828 if test $ol_link_threads = yes ; then
15829 LTHREAD_LIBS="-lthreads"
15830 ol_link_threads=mach
15831 ol_with_threads=found
15833 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15836 elif test $ol_with_threads = mach ; then
15837 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15840 if test $ol_link_threads = mach ; then
15841 cat >> confdefs.h <<\EOF
15842 #define HAVE_MACH_CTHREADS 1
15845 elif test $ol_with_threads = found ; then
15846 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15850 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15851 -o $ol_with_threads = pth ; then
15853 for ac_hdr in pth.h
15855 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15856 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15857 echo "configure:15858: checking for $ac_hdr" >&5
15858 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15859 echo $ac_n "(cached) $ac_c" 1>&6
15861 cat > conftest.$ac_ext <<EOF
15862 #line 15863 "configure"
15863 #include "confdefs.h"
15866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15867 { (eval echo configure:15868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15869 if test -z "$ac_err"; then
15871 eval "ac_cv_header_$ac_safe=yes"
15874 echo "configure: failed program was:" >&5
15875 cat conftest.$ac_ext >&5
15877 eval "ac_cv_header_$ac_safe=no"
15881 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15882 echo "$ac_t""yes" 1>&6
15883 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15884 cat >> confdefs.h <<EOF
15885 #define $ac_tr_hdr 1
15889 echo "$ac_t""no" 1>&6
15894 if test $ac_cv_header_pth_h = yes ; then
15895 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15896 echo "configure:15897: checking for pth_version in -lpth" >&5
15897 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15898 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15899 echo $ac_n "(cached) $ac_c" 1>&6
15901 ac_save_LIBS="$LIBS"
15903 cat > conftest.$ac_ext <<EOF
15904 #line 15905 "configure"
15905 #include "confdefs.h"
15906 /* Override any gcc2 internal prototype to avoid an error. */
15907 /* We use char because int might match the return type of a gcc2
15908 builtin and then its argument prototype would still apply. */
15909 char pth_version();
15915 if { (eval echo configure:15916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15917 eval "ac_cv_lib_$ac_lib_var=yes"
15919 echo "configure: failed program was:" >&5
15920 cat conftest.$ac_ext >&5
15922 eval "ac_cv_lib_$ac_lib_var=no"
15925 LIBS="$ac_save_LIBS"
15928 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15929 echo "$ac_t""yes" 1>&6
15932 echo "$ac_t""no" 1>&6
15937 if test $have_pth = yes ; then
15938 cat >> confdefs.h <<\EOF
15939 #define HAVE_GNU_PTH 1
15942 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15943 ol_link_threads=pth
15944 ol_with_threads=found
15946 if test $ol_with_yielding_select = auto ; then
15947 ol_with_yielding_select=yes
15953 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15954 -o $ol_with_threads = lwp ; then
15956 for ac_hdr in thread.h synch.h
15958 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15959 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15960 echo "configure:15961: checking for $ac_hdr" >&5
15961 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15962 echo $ac_n "(cached) $ac_c" 1>&6
15964 cat > conftest.$ac_ext <<EOF
15965 #line 15966 "configure"
15966 #include "confdefs.h"
15969 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15970 { (eval echo configure:15971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15971 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15972 if test -z "$ac_err"; then
15974 eval "ac_cv_header_$ac_safe=yes"
15977 echo "configure: failed program was:" >&5
15978 cat conftest.$ac_ext >&5
15980 eval "ac_cv_header_$ac_safe=no"
15984 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15985 echo "$ac_t""yes" 1>&6
15986 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15987 cat >> confdefs.h <<EOF
15988 #define $ac_tr_hdr 1
15992 echo "$ac_t""no" 1>&6
15996 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
15997 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
15998 echo "configure:15999: checking for thr_create in -lthread" >&5
15999 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
16000 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16001 echo $ac_n "(cached) $ac_c" 1>&6
16003 ac_save_LIBS="$LIBS"
16004 LIBS="-lthread $LIBS"
16005 cat > conftest.$ac_ext <<EOF
16006 #line 16007 "configure"
16007 #include "confdefs.h"
16008 /* Override any gcc2 internal prototype to avoid an error. */
16009 /* We use char because int might match the return type of a gcc2
16010 builtin and then its argument prototype would still apply. */
16017 if { (eval echo configure:16018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16019 eval "ac_cv_lib_$ac_lib_var=yes"
16021 echo "configure: failed program was:" >&5
16022 cat conftest.$ac_ext >&5
16024 eval "ac_cv_lib_$ac_lib_var=no"
16027 LIBS="$ac_save_LIBS"
16030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16031 echo "$ac_t""yes" 1>&6
16034 echo "$ac_t""no" 1>&6
16039 if test $have_thr = yes ; then
16040 cat >> confdefs.h <<\EOF
16044 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
16045 ol_link_threads=thr
16047 if test $ol_with_yielding_select = auto ; then
16048 ol_with_yielding_select=yes
16052 thr_setconcurrency \
16053 thr_getconcurrency \
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
16113 for ac_hdr in lwp/lwp.h
16115 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16116 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16117 echo "configure:16118: checking for $ac_hdr" >&5
16118 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16119 echo $ac_n "(cached) $ac_c" 1>&6
16121 cat > conftest.$ac_ext <<EOF
16122 #line 16123 "configure"
16123 #include "confdefs.h"
16126 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16127 { (eval echo configure:16128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16128 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16129 if test -z "$ac_err"; then
16131 eval "ac_cv_header_$ac_safe=yes"
16134 echo "configure: failed program was:" >&5
16135 cat conftest.$ac_ext >&5
16137 eval "ac_cv_header_$ac_safe=no"
16141 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16142 echo "$ac_t""yes" 1>&6
16143 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16144 cat >> confdefs.h <<EOF
16145 #define $ac_tr_hdr 1
16149 echo "$ac_t""no" 1>&6
16153 if test $ac_cv_header_lwp_lwp_h = yes ; then
16154 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
16155 echo "configure:16156: checking for lwp_create in -llwp" >&5
16156 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
16157 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16158 echo $ac_n "(cached) $ac_c" 1>&6
16160 ac_save_LIBS="$LIBS"
16162 cat > conftest.$ac_ext <<EOF
16163 #line 16164 "configure"
16164 #include "confdefs.h"
16165 /* Override any gcc2 internal prototype to avoid an error. */
16166 /* We use char because int might match the return type of a gcc2
16167 builtin and then its argument prototype would still apply. */
16174 if { (eval echo configure:16175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16176 eval "ac_cv_lib_$ac_lib_var=yes"
16178 echo "configure: failed program was:" >&5
16179 cat conftest.$ac_ext >&5
16181 eval "ac_cv_lib_$ac_lib_var=no"
16184 LIBS="$ac_save_LIBS"
16187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16188 echo "$ac_t""yes" 1>&6
16191 echo "$ac_t""no" 1>&6
16196 if test $have_lwp = yes ; then
16197 cat >> confdefs.h <<\EOF
16201 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
16202 ol_link_threads=lwp
16204 if test $ol_with_yielding_select = auto ; then
16205 ol_with_yielding_select=no
16211 if test $ol_with_yielding_select = yes ; then
16212 cat >> confdefs.h <<\EOF
16213 #define HAVE_YIELDING_SELECT 1
16218 if test $ol_with_threads = manual ; then
16219 ol_link_threads=yes
16221 echo "configure: warning: thread defines and link options must be set manually" 1>&2
16223 for ac_hdr in pthread.h sched.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
16263 for ac_func in sched_yield pthread_yield
16265 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16266 echo "configure:16267: checking for $ac_func" >&5
16267 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16268 echo $ac_n "(cached) $ac_c" 1>&6
16270 cat > conftest.$ac_ext <<EOF
16271 #line 16272 "configure"
16272 #include "confdefs.h"
16273 /* System header to define __stub macros and hopefully few prototypes,
16274 which can conflict with char $ac_func(); below. */
16275 #include <assert.h>
16276 /* Override any gcc2 internal prototype to avoid an error. */
16277 /* We use char because int might match the return type of a gcc2
16278 builtin and then its argument prototype would still apply. */
16284 /* The GNU C library defines this for functions which it implements
16285 to always fail with ENOSYS. Some functions are actually named
16286 something starting with __ and the normal name is an alias. */
16287 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16295 if { (eval echo configure:16296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16297 eval "ac_cv_func_$ac_func=yes"
16299 echo "configure: failed program was:" >&5
16300 cat conftest.$ac_ext >&5
16302 eval "ac_cv_func_$ac_func=no"
16307 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16308 echo "$ac_t""yes" 1>&6
16309 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16310 cat >> confdefs.h <<EOF
16311 #define $ac_tr_func 1
16315 echo "$ac_t""no" 1>&6
16320 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16321 echo "configure:16322: checking for LinuxThreads pthread.h" >&5
16322 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16323 echo $ac_n "(cached) $ac_c" 1>&6
16325 cat > conftest.$ac_ext <<EOF
16326 #line 16327 "configure"
16327 #include "confdefs.h"
16328 #include <pthread.h>
16330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16331 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16333 ol_cv_header_linux_threads=yes
16336 ol_cv_header_linux_threads=no
16343 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16344 if test $ol_cv_header_linux_threads = yes; then
16345 cat >> confdefs.h <<\EOF
16346 #define HAVE_LINUX_THREADS 1
16352 for ac_hdr in mach/cthreads.h
16354 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16355 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16356 echo "configure:16357: checking for $ac_hdr" >&5
16357 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16358 echo $ac_n "(cached) $ac_c" 1>&6
16360 cat > conftest.$ac_ext <<EOF
16361 #line 16362 "configure"
16362 #include "confdefs.h"
16365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16366 { (eval echo configure:16367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16368 if test -z "$ac_err"; then
16370 eval "ac_cv_header_$ac_safe=yes"
16373 echo "configure: failed program was:" >&5
16374 cat conftest.$ac_ext >&5
16376 eval "ac_cv_header_$ac_safe=no"
16380 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16381 echo "$ac_t""yes" 1>&6
16382 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16383 cat >> confdefs.h <<EOF
16384 #define $ac_tr_hdr 1
16388 echo "$ac_t""no" 1>&6
16392 for ac_hdr in lwp/lwp.h
16394 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16395 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16396 echo "configure:16397: checking for $ac_hdr" >&5
16397 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16398 echo $ac_n "(cached) $ac_c" 1>&6
16400 cat > conftest.$ac_ext <<EOF
16401 #line 16402 "configure"
16402 #include "confdefs.h"
16405 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16406 { (eval echo configure:16407: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16407 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16408 if test -z "$ac_err"; then
16410 eval "ac_cv_header_$ac_safe=yes"
16413 echo "configure: failed program was:" >&5
16414 cat conftest.$ac_ext >&5
16416 eval "ac_cv_header_$ac_safe=no"
16420 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16421 echo "$ac_t""yes" 1>&6
16422 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16423 cat >> confdefs.h <<EOF
16424 #define $ac_tr_hdr 1
16428 echo "$ac_t""no" 1>&6
16432 for ac_hdr in thread.h synch.h
16434 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16435 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16436 echo "configure:16437: checking for $ac_hdr" >&5
16437 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16438 echo $ac_n "(cached) $ac_c" 1>&6
16440 cat > conftest.$ac_ext <<EOF
16441 #line 16442 "configure"
16442 #include "confdefs.h"
16445 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16446 { (eval echo configure:16447: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16447 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16448 if test -z "$ac_err"; then
16450 eval "ac_cv_header_$ac_safe=yes"
16453 echo "configure: failed program was:" >&5
16454 cat conftest.$ac_ext >&5
16456 eval "ac_cv_header_$ac_safe=no"
16460 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16461 echo "$ac_t""yes" 1>&6
16462 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16463 cat >> confdefs.h <<EOF
16464 #define $ac_tr_hdr 1
16468 echo "$ac_t""no" 1>&6
16474 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16475 cat >> confdefs.h <<\EOF
16476 #define REENTRANT 1
16479 cat >> confdefs.h <<\EOF
16480 #define _REENTRANT 1
16483 cat >> confdefs.h <<\EOF
16484 #define THREAD_SAFE 1
16487 cat >> confdefs.h <<\EOF
16488 #define _THREAD_SAFE 1
16491 cat >> confdefs.h <<\EOF
16492 #define THREADSAFE 1
16495 cat >> confdefs.h <<\EOF
16496 #define _THREADSAFE 1
16499 cat >> confdefs.h <<\EOF
16500 #define _SGI_MP_SOURCE 1
16504 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16505 echo "configure:16506: checking for thread specific errno" >&5
16506 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16507 echo $ac_n "(cached) $ac_c" 1>&6
16510 cat > conftest.$ac_ext <<EOF
16511 #line 16512 "configure"
16512 #include "confdefs.h"
16518 if { (eval echo configure:16519: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16520 ol_cv_errno_thread_specific=yes
16522 echo "configure: failed program was:" >&5
16523 cat conftest.$ac_ext >&5
16525 ol_cv_errno_thread_specific=no
16531 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16533 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16534 echo "configure:16535: checking for thread specific h_errno" >&5
16535 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16536 echo $ac_n "(cached) $ac_c" 1>&6
16539 cat > conftest.$ac_ext <<EOF
16540 #line 16541 "configure"
16541 #include "confdefs.h"
16547 if { (eval echo configure:16548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16549 ol_cv_h_errno_thread_specific=yes
16551 echo "configure: failed program was:" >&5
16552 cat conftest.$ac_ext >&5
16554 ol_cv_h_errno_thread_specific=no
16560 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16562 if test $ol_cv_errno_thread_specific != yes \
16563 -o $ol_cv_h_errno_thread_specific != yes ; then
16564 LIBS="$LTHREAD_LIBS $LIBS"
16570 if test $ol_link_threads = no ; then
16571 if test $ol_with_threads = yes ; then
16572 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16575 if test $ol_with_threads = auto ; then
16576 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16580 cat >> confdefs.h <<\EOF
16581 #define NO_THREADS 1
16587 if test $ol_link_threads != no ; then
16588 cat >> confdefs.h <<\EOF
16589 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16596 gethostbyname_r gethostbyaddr_r \
16599 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16600 echo "configure:16601: checking for $ac_func" >&5
16601 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16602 echo $ac_n "(cached) $ac_c" 1>&6
16604 cat > conftest.$ac_ext <<EOF
16605 #line 16606 "configure"
16606 #include "confdefs.h"
16607 /* System header to define __stub macros and hopefully few prototypes,
16608 which can conflict with char $ac_func(); below. */
16609 #include <assert.h>
16610 /* Override any gcc2 internal prototype to avoid an error. */
16611 /* We use char because int might match the return type of a gcc2
16612 builtin and then its argument prototype would still apply. */
16618 /* The GNU C library defines this for functions which it implements
16619 to always fail with ENOSYS. Some functions are actually named
16620 something starting with __ and the normal name is an alias. */
16621 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16629 if { (eval echo configure:16630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16631 eval "ac_cv_func_$ac_func=yes"
16633 echo "configure: failed program was:" >&5
16634 cat conftest.$ac_ext >&5
16636 eval "ac_cv_func_$ac_func=no"
16641 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16642 echo "$ac_t""yes" 1>&6
16643 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16644 cat >> confdefs.h <<EOF
16645 #define $ac_tr_func 1
16649 echo "$ac_t""no" 1>&6
16654 if test "$ac_cv_func_ctime_r" = no ; then
16655 ol_cv_func_ctime_r_nargs=0
16657 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16658 echo "configure:16659: checking number of arguments of ctime_r" >&5
16659 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16660 echo $ac_n "(cached) $ac_c" 1>&6
16662 cat > conftest.$ac_ext <<EOF
16663 #line 16664 "configure"
16664 #include "confdefs.h"
16667 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16670 if { (eval echo configure:16671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16672 ol_cv_func_ctime_r_nargs3=yes
16674 echo "configure: failed program was:" >&5
16675 cat conftest.$ac_ext >&5
16677 ol_cv_func_ctime_r_nargs3=no
16681 cat > conftest.$ac_ext <<EOF
16682 #line 16683 "configure"
16683 #include "confdefs.h"
16686 time_t ti; char *buffer; ctime_r(&ti,buffer);
16689 if { (eval echo configure:16690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16691 ol_cv_func_ctime_r_nargs2=yes
16693 echo "configure: failed program was:" >&5
16694 cat conftest.$ac_ext >&5
16696 ol_cv_func_ctime_r_nargs2=no
16700 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16701 $ol_cv_func_ctime_r_nargs2 = no ; then
16703 ol_cv_func_ctime_r_nargs=3
16705 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16706 $ol_cv_func_ctime_r_nargs2 = yes ; then
16708 ol_cv_func_ctime_r_nargs=2
16711 ol_cv_func_ctime_r_nargs=0
16716 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16718 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16719 cat >> confdefs.h <<EOF
16720 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16727 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16728 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16729 echo "configure:16730: checking number of arguments of gethostbyname_r" >&5
16730 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16731 echo $ac_n "(cached) $ac_c" 1>&6
16733 cat > conftest.$ac_ext <<EOF
16734 #line 16735 "configure"
16735 #include "confdefs.h"
16736 #include <sys/types.h>
16737 #include <sys/socket.h>
16738 #include <netinet/in.h>
16740 #define BUFSIZE (sizeof(struct hostent)+10)
16742 struct hostent hent; char buffer[BUFSIZE];
16743 int bufsize=BUFSIZE;int h_errno;
16744 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16745 buffer, bufsize, &h_errno);
16748 if { (eval echo configure:16749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16750 ol_cv_func_gethostbyname_r_nargs5=yes
16752 echo "configure: failed program was:" >&5
16753 cat conftest.$ac_ext >&5
16755 ol_cv_func_gethostbyname_r_nargs5=no
16759 cat > conftest.$ac_ext <<EOF
16760 #line 16761 "configure"
16761 #include "confdefs.h"
16762 #include <sys/types.h>
16763 #include <sys/socket.h>
16764 #include <netinet/in.h>
16766 #define BUFSIZE (sizeof(struct hostent)+10)
16768 struct hostent hent;struct hostent *rhent;
16769 char buffer[BUFSIZE];
16770 int bufsize=BUFSIZE;int h_errno;
16771 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16775 if { (eval echo configure:16776: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16777 ol_cv_func_gethostbyname_r_nargs6=yes
16779 echo "configure: failed program was:" >&5
16780 cat conftest.$ac_ext >&5
16782 ol_cv_func_gethostbyname_r_nargs6=no
16786 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16787 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16789 ol_cv_func_gethostbyname_r_nargs=5
16791 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16792 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16794 ol_cv_func_gethostbyname_r_nargs=6
16797 ol_cv_func_gethostbyname_r_nargs=0
16802 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16803 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16804 cat >> confdefs.h <<EOF
16805 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16811 ol_cv_func_gethostbyname_r_nargs=0
16814 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16815 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16816 echo "configure:16817: checking number of arguments of gethostbyaddr_r" >&5
16817 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16818 echo $ac_n "(cached) $ac_c" 1>&6
16820 cat > conftest.$ac_ext <<EOF
16821 #line 16822 "configure"
16822 #include "confdefs.h"
16823 #include <sys/types.h>
16824 #include <sys/socket.h>
16825 #include <netinet/in.h>
16827 #define BUFSIZE (sizeof(struct hostent)+10)
16829 struct hostent hent; char buffer[BUFSIZE];
16830 struct in_addr add;
16831 size_t alen=sizeof(struct in_addr);
16832 int bufsize=BUFSIZE;int h_errno;
16833 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16834 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16837 if { (eval echo configure:16838: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16839 ol_cv_func_gethostbyaddr_r_nargs7=yes
16841 echo "configure: failed program was:" >&5
16842 cat conftest.$ac_ext >&5
16844 ol_cv_func_gethostbyaddr_r_nargs7=no
16848 cat > conftest.$ac_ext <<EOF
16849 #line 16850 "configure"
16850 #include "confdefs.h"
16851 #include <sys/types.h>
16852 #include <sys/socket.h>
16853 #include <netinet/in.h>
16855 #define BUFSIZE (sizeof(struct hostent)+10)
16857 struct hostent hent;
16858 struct hostent *rhent; char buffer[BUFSIZE];
16859 struct in_addr add;
16860 size_t alen=sizeof(struct in_addr);
16861 int bufsize=BUFSIZE;int h_errno;
16862 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16863 alen, AF_INET, &hent, buffer, bufsize,
16867 if { (eval echo configure:16868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16869 ol_cv_func_gethostbyaddr_r_nargs8=yes
16871 echo "configure: failed program was:" >&5
16872 cat conftest.$ac_ext >&5
16874 ol_cv_func_gethostbyaddr_r_nargs8=no
16878 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16879 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16881 ol_cv_func_gethostbyaddr_r_nargs=7
16883 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16884 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16886 ol_cv_func_gethostbyaddr_r_nargs=8
16889 ol_cv_func_gethostbyaddr_r_nargs=0
16894 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16895 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16896 cat >> confdefs.h <<EOF
16897 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16903 ol_cv_func_gethostbyaddr_r_nargs=0
16908 if test $ol_with_ldbm_api = auto \
16909 -o $ol_with_ldbm_api = berkeley \
16910 -o $ol_with_ldbm_api = bcompat ; then
16912 if test $ol_with_ldbm_api = bcompat; then \
16913 for ac_hdr in db_185.h db.h
16915 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16916 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16917 echo "configure:16918: checking for $ac_hdr" >&5
16918 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16919 echo $ac_n "(cached) $ac_c" 1>&6
16921 cat > conftest.$ac_ext <<EOF
16922 #line 16923 "configure"
16923 #include "confdefs.h"
16926 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16927 { (eval echo configure:16928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16928 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16929 if test -z "$ac_err"; then
16931 eval "ac_cv_header_$ac_safe=yes"
16934 echo "configure: failed program was:" >&5
16935 cat conftest.$ac_ext >&5
16937 eval "ac_cv_header_$ac_safe=no"
16941 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16942 echo "$ac_t""yes" 1>&6
16943 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16944 cat >> confdefs.h <<EOF
16945 #define $ac_tr_hdr 1
16949 echo "$ac_t""no" 1>&6
16953 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
16954 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
16955 echo "configure:16956: checking if Berkeley DB header compatibility" >&5
16956 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
16957 echo $ac_n "(cached) $ac_c" 1>&6
16960 cat > conftest.$ac_ext <<EOF
16961 #line 16962 "configure"
16962 #include "confdefs.h"
16965 # include <db_185.h>
16970 /* this check could be improved */
16971 #ifndef DB_VERSION_MAJOR
16972 # define DB_VERSION_MAJOR 1
16975 #if DB_VERSION_MAJOR == 1
16980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16981 egrep "__db_version_1" >/dev/null 2>&1; then
16983 ol_cv_header_db1=yes
16986 ol_cv_header_db1=no
16992 echo "$ac_t""$ol_cv_header_db1" 1>&6
16994 if test $ol_cv_header_db1 = yes ; then
16996 if test $ol_cv_lib_db = no ; then
16997 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
16998 echo "configure:16999: checking for Berkeley DB link (default)" >&5
16999 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17000 echo $ac_n "(cached) $ac_c" 1>&6
17005 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17007 cat > conftest.$ac_ext <<EOF
17008 #line 17009 "configure"
17009 #include "confdefs.h"
17011 #ifdef HAVE_DB_185_H
17012 # include <db_185.h>
17017 #ifndef DB_VERSION_MAJOR
17018 # define DB_VERSION_MAJOR 1
17022 #define NULL ((void*)0)
17027 #if DB_VERSION_MAJOR > 1
17030 int major, minor, patch;
17032 version = db_version( &major, &minor, &patch );
17034 if( major != DB_VERSION_MAJOR ||
17035 minor < DB_VERSION_MINOR )
17037 printf("Berkeley DB version mismatch\n"
17038 "\theader: %s\n\tlibrary: %s\n",
17039 DB_VERSION_STRING, version);
17045 #if DB_VERSION_MAJOR > 2
17046 db_env_create( NULL, 0 );
17047 #elif DB_VERSION_MAJOR > 1
17048 db_appexit( NULL );
17050 (void) dbopen( NULL, 0, 0, 0, NULL);
17055 if { (eval echo configure:17056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17059 echo "configure: failed program was:" >&5
17060 cat conftest.$ac_ext >&5
17070 echo "$ac_t""$ol_cv_db_none" 1>&6
17072 if test $ol_cv_db_none = yes ; then
17077 if test $ol_cv_lib_db = no ; then
17078 echo $ac_n "checking for Berkeley DB link (-ldb43)""... $ac_c" 1>&6
17079 echo "configure:17080: checking for Berkeley DB link (-ldb43)" >&5
17080 if eval "test \"\${ol_cv_db_db43+set}\" = set"; then
17081 echo $ac_n "(cached) $ac_c" 1>&6
17086 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17088 cat > conftest.$ac_ext <<EOF
17089 #line 17090 "configure"
17090 #include "confdefs.h"
17092 #ifdef HAVE_DB_185_H
17093 # include <db_185.h>
17098 #ifndef DB_VERSION_MAJOR
17099 # define DB_VERSION_MAJOR 1
17103 #define NULL ((void*)0)
17108 #if DB_VERSION_MAJOR > 1
17111 int major, minor, patch;
17113 version = db_version( &major, &minor, &patch );
17115 if( major != DB_VERSION_MAJOR ||
17116 minor < DB_VERSION_MINOR )
17118 printf("Berkeley DB version mismatch\n"
17119 "\theader: %s\n\tlibrary: %s\n",
17120 DB_VERSION_STRING, version);
17126 #if DB_VERSION_MAJOR > 2
17127 db_env_create( NULL, 0 );
17128 #elif DB_VERSION_MAJOR > 1
17129 db_appexit( NULL );
17131 (void) dbopen( NULL, 0, 0, 0, NULL);
17136 if { (eval echo configure:17137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17140 echo "configure: failed program was:" >&5
17141 cat conftest.$ac_ext >&5
17151 echo "$ac_t""$ol_cv_db_db43" 1>&6
17153 if test $ol_cv_db_db43 = yes ; then
17154 ol_cv_lib_db=-ldb43
17158 if test $ol_cv_lib_db = no ; then
17159 echo $ac_n "checking for Berkeley DB link (-ldb-43)""... $ac_c" 1>&6
17160 echo "configure:17161: checking for Berkeley DB link (-ldb-43)" >&5
17161 if eval "test \"\${ol_cv_db_db_43+set}\" = set"; then
17162 echo $ac_n "(cached) $ac_c" 1>&6
17167 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17169 cat > conftest.$ac_ext <<EOF
17170 #line 17171 "configure"
17171 #include "confdefs.h"
17173 #ifdef HAVE_DB_185_H
17174 # include <db_185.h>
17179 #ifndef DB_VERSION_MAJOR
17180 # define DB_VERSION_MAJOR 1
17184 #define NULL ((void*)0)
17189 #if DB_VERSION_MAJOR > 1
17192 int major, minor, patch;
17194 version = db_version( &major, &minor, &patch );
17196 if( major != DB_VERSION_MAJOR ||
17197 minor < DB_VERSION_MINOR )
17199 printf("Berkeley DB version mismatch\n"
17200 "\theader: %s\n\tlibrary: %s\n",
17201 DB_VERSION_STRING, version);
17207 #if DB_VERSION_MAJOR > 2
17208 db_env_create( NULL, 0 );
17209 #elif DB_VERSION_MAJOR > 1
17210 db_appexit( NULL );
17212 (void) dbopen( NULL, 0, 0, 0, NULL);
17217 if { (eval echo configure:17218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17221 echo "configure: failed program was:" >&5
17222 cat conftest.$ac_ext >&5
17232 echo "$ac_t""$ol_cv_db_db_43" 1>&6
17234 if test $ol_cv_db_db_43 = yes ; then
17235 ol_cv_lib_db=-ldb-43
17239 if test $ol_cv_lib_db = no ; then
17240 echo $ac_n "checking for Berkeley DB link (-ldb-4.3)""... $ac_c" 1>&6
17241 echo "configure:17242: checking for Berkeley DB link (-ldb-4.3)" >&5
17242 if eval "test \"\${ol_cv_db_db_4_dot_3+set}\" = set"; then
17243 echo $ac_n "(cached) $ac_c" 1>&6
17248 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17250 cat > conftest.$ac_ext <<EOF
17251 #line 17252 "configure"
17252 #include "confdefs.h"
17254 #ifdef HAVE_DB_185_H
17255 # include <db_185.h>
17260 #ifndef DB_VERSION_MAJOR
17261 # define DB_VERSION_MAJOR 1
17265 #define NULL ((void*)0)
17270 #if DB_VERSION_MAJOR > 1
17273 int major, minor, patch;
17275 version = db_version( &major, &minor, &patch );
17277 if( major != DB_VERSION_MAJOR ||
17278 minor < DB_VERSION_MINOR )
17280 printf("Berkeley DB version mismatch\n"
17281 "\theader: %s\n\tlibrary: %s\n",
17282 DB_VERSION_STRING, version);
17288 #if DB_VERSION_MAJOR > 2
17289 db_env_create( NULL, 0 );
17290 #elif DB_VERSION_MAJOR > 1
17291 db_appexit( NULL );
17293 (void) dbopen( NULL, 0, 0, 0, NULL);
17298 if { (eval echo configure:17299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17300 ol_cv_db_db_4_dot_3=yes
17302 echo "configure: failed program was:" >&5
17303 cat conftest.$ac_ext >&5
17305 ol_cv_db_db_4_dot_3=no
17313 echo "$ac_t""$ol_cv_db_db_4_dot_3" 1>&6
17315 if test $ol_cv_db_db_4_dot_3 = yes ; then
17316 ol_cv_lib_db=-ldb-4.3
17320 if test $ol_cv_lib_db = no ; then
17321 echo $ac_n "checking for Berkeley DB link (-ldb-4-3)""... $ac_c" 1>&6
17322 echo "configure:17323: checking for Berkeley DB link (-ldb-4-3)" >&5
17323 if eval "test \"\${ol_cv_db_db_4_3+set}\" = set"; then
17324 echo $ac_n "(cached) $ac_c" 1>&6
17329 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17331 cat > conftest.$ac_ext <<EOF
17332 #line 17333 "configure"
17333 #include "confdefs.h"
17335 #ifdef HAVE_DB_185_H
17336 # include <db_185.h>
17341 #ifndef DB_VERSION_MAJOR
17342 # define DB_VERSION_MAJOR 1
17346 #define NULL ((void*)0)
17351 #if DB_VERSION_MAJOR > 1
17354 int major, minor, patch;
17356 version = db_version( &major, &minor, &patch );
17358 if( major != DB_VERSION_MAJOR ||
17359 minor < DB_VERSION_MINOR )
17361 printf("Berkeley DB version mismatch\n"
17362 "\theader: %s\n\tlibrary: %s\n",
17363 DB_VERSION_STRING, version);
17369 #if DB_VERSION_MAJOR > 2
17370 db_env_create( NULL, 0 );
17371 #elif DB_VERSION_MAJOR > 1
17372 db_appexit( NULL );
17374 (void) dbopen( NULL, 0, 0, 0, NULL);
17379 if { (eval echo configure:17380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17381 ol_cv_db_db_4_3=yes
17383 echo "configure: failed program was:" >&5
17384 cat conftest.$ac_ext >&5
17394 echo "$ac_t""$ol_cv_db_db_4_3" 1>&6
17396 if test $ol_cv_db_db_4_3 = yes ; then
17397 ol_cv_lib_db=-ldb-4-3
17401 if test $ol_cv_lib_db = no ; then
17402 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
17403 echo "configure:17404: checking for Berkeley DB link (-ldb42)" >&5
17404 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
17405 echo $ac_n "(cached) $ac_c" 1>&6
17410 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17412 cat > conftest.$ac_ext <<EOF
17413 #line 17414 "configure"
17414 #include "confdefs.h"
17416 #ifdef HAVE_DB_185_H
17417 # include <db_185.h>
17422 #ifndef DB_VERSION_MAJOR
17423 # define DB_VERSION_MAJOR 1
17427 #define NULL ((void*)0)
17432 #if DB_VERSION_MAJOR > 1
17435 int major, minor, patch;
17437 version = db_version( &major, &minor, &patch );
17439 if( major != DB_VERSION_MAJOR ||
17440 minor < DB_VERSION_MINOR )
17442 printf("Berkeley DB version mismatch\n"
17443 "\theader: %s\n\tlibrary: %s\n",
17444 DB_VERSION_STRING, version);
17450 #if DB_VERSION_MAJOR > 2
17451 db_env_create( NULL, 0 );
17452 #elif DB_VERSION_MAJOR > 1
17453 db_appexit( NULL );
17455 (void) dbopen( NULL, 0, 0, 0, NULL);
17460 if { (eval echo configure:17461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17464 echo "configure: failed program was:" >&5
17465 cat conftest.$ac_ext >&5
17475 echo "$ac_t""$ol_cv_db_db42" 1>&6
17477 if test $ol_cv_db_db42 = yes ; then
17478 ol_cv_lib_db=-ldb42
17482 if test $ol_cv_lib_db = no ; then
17483 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
17484 echo "configure:17485: checking for Berkeley DB link (-ldb-42)" >&5
17485 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
17486 echo $ac_n "(cached) $ac_c" 1>&6
17491 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17493 cat > conftest.$ac_ext <<EOF
17494 #line 17495 "configure"
17495 #include "confdefs.h"
17497 #ifdef HAVE_DB_185_H
17498 # include <db_185.h>
17503 #ifndef DB_VERSION_MAJOR
17504 # define DB_VERSION_MAJOR 1
17508 #define NULL ((void*)0)
17513 #if DB_VERSION_MAJOR > 1
17516 int major, minor, patch;
17518 version = db_version( &major, &minor, &patch );
17520 if( major != DB_VERSION_MAJOR ||
17521 minor < DB_VERSION_MINOR )
17523 printf("Berkeley DB version mismatch\n"
17524 "\theader: %s\n\tlibrary: %s\n",
17525 DB_VERSION_STRING, version);
17531 #if DB_VERSION_MAJOR > 2
17532 db_env_create( NULL, 0 );
17533 #elif DB_VERSION_MAJOR > 1
17534 db_appexit( NULL );
17536 (void) dbopen( NULL, 0, 0, 0, NULL);
17541 if { (eval echo configure:17542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17545 echo "configure: failed program was:" >&5
17546 cat conftest.$ac_ext >&5
17556 echo "$ac_t""$ol_cv_db_db_42" 1>&6
17558 if test $ol_cv_db_db_42 = yes ; then
17559 ol_cv_lib_db=-ldb-42
17563 if test $ol_cv_lib_db = no ; then
17564 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
17565 echo "configure:17566: checking for Berkeley DB link (-ldb-4.2)" >&5
17566 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
17567 echo $ac_n "(cached) $ac_c" 1>&6
17572 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17574 cat > conftest.$ac_ext <<EOF
17575 #line 17576 "configure"
17576 #include "confdefs.h"
17578 #ifdef HAVE_DB_185_H
17579 # include <db_185.h>
17584 #ifndef DB_VERSION_MAJOR
17585 # define DB_VERSION_MAJOR 1
17589 #define NULL ((void*)0)
17594 #if DB_VERSION_MAJOR > 1
17597 int major, minor, patch;
17599 version = db_version( &major, &minor, &patch );
17601 if( major != DB_VERSION_MAJOR ||
17602 minor < DB_VERSION_MINOR )
17604 printf("Berkeley DB version mismatch\n"
17605 "\theader: %s\n\tlibrary: %s\n",
17606 DB_VERSION_STRING, version);
17612 #if DB_VERSION_MAJOR > 2
17613 db_env_create( NULL, 0 );
17614 #elif DB_VERSION_MAJOR > 1
17615 db_appexit( NULL );
17617 (void) dbopen( NULL, 0, 0, 0, NULL);
17622 if { (eval echo configure:17623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17624 ol_cv_db_db_4_dot_2=yes
17626 echo "configure: failed program was:" >&5
17627 cat conftest.$ac_ext >&5
17629 ol_cv_db_db_4_dot_2=no
17637 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
17639 if test $ol_cv_db_db_4_dot_2 = yes ; then
17640 ol_cv_lib_db=-ldb-4.2
17644 if test $ol_cv_lib_db = no ; then
17645 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
17646 echo "configure:17647: checking for Berkeley DB link (-ldb-4-2)" >&5
17647 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
17648 echo $ac_n "(cached) $ac_c" 1>&6
17653 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17655 cat > conftest.$ac_ext <<EOF
17656 #line 17657 "configure"
17657 #include "confdefs.h"
17659 #ifdef HAVE_DB_185_H
17660 # include <db_185.h>
17665 #ifndef DB_VERSION_MAJOR
17666 # define DB_VERSION_MAJOR 1
17670 #define NULL ((void*)0)
17675 #if DB_VERSION_MAJOR > 1
17678 int major, minor, patch;
17680 version = db_version( &major, &minor, &patch );
17682 if( major != DB_VERSION_MAJOR ||
17683 minor < DB_VERSION_MINOR )
17685 printf("Berkeley DB version mismatch\n"
17686 "\theader: %s\n\tlibrary: %s\n",
17687 DB_VERSION_STRING, version);
17693 #if DB_VERSION_MAJOR > 2
17694 db_env_create( NULL, 0 );
17695 #elif DB_VERSION_MAJOR > 1
17696 db_appexit( NULL );
17698 (void) dbopen( NULL, 0, 0, 0, NULL);
17703 if { (eval echo configure:17704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17705 ol_cv_db_db_4_2=yes
17707 echo "configure: failed program was:" >&5
17708 cat conftest.$ac_ext >&5
17718 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
17720 if test $ol_cv_db_db_4_2 = yes ; then
17721 ol_cv_lib_db=-ldb-4-2
17725 if test $ol_cv_lib_db = no ; then
17726 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17727 echo "configure:17728: checking for Berkeley DB link (-ldb-4)" >&5
17728 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17729 echo $ac_n "(cached) $ac_c" 1>&6
17734 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17736 cat > conftest.$ac_ext <<EOF
17737 #line 17738 "configure"
17738 #include "confdefs.h"
17740 #ifdef HAVE_DB_185_H
17741 # include <db_185.h>
17746 #ifndef DB_VERSION_MAJOR
17747 # define DB_VERSION_MAJOR 1
17751 #define NULL ((void*)0)
17756 #if DB_VERSION_MAJOR > 1
17759 int major, minor, patch;
17761 version = db_version( &major, &minor, &patch );
17763 if( major != DB_VERSION_MAJOR ||
17764 minor < DB_VERSION_MINOR )
17766 printf("Berkeley DB version mismatch\n"
17767 "\theader: %s\n\tlibrary: %s\n",
17768 DB_VERSION_STRING, version);
17774 #if DB_VERSION_MAJOR > 2
17775 db_env_create( NULL, 0 );
17776 #elif DB_VERSION_MAJOR > 1
17777 db_appexit( NULL );
17779 (void) dbopen( NULL, 0, 0, 0, NULL);
17784 if { (eval echo configure:17785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17788 echo "configure: failed program was:" >&5
17789 cat conftest.$ac_ext >&5
17799 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17801 if test $ol_cv_db_db_4 = yes ; then
17802 ol_cv_lib_db=-ldb-4
17806 if test $ol_cv_lib_db = no ; then
17807 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17808 echo "configure:17809: checking for Berkeley DB link (-ldb4)" >&5
17809 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17810 echo $ac_n "(cached) $ac_c" 1>&6
17815 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17817 cat > conftest.$ac_ext <<EOF
17818 #line 17819 "configure"
17819 #include "confdefs.h"
17821 #ifdef HAVE_DB_185_H
17822 # include <db_185.h>
17827 #ifndef DB_VERSION_MAJOR
17828 # define DB_VERSION_MAJOR 1
17832 #define NULL ((void*)0)
17837 #if DB_VERSION_MAJOR > 1
17840 int major, minor, patch;
17842 version = db_version( &major, &minor, &patch );
17844 if( major != DB_VERSION_MAJOR ||
17845 minor < DB_VERSION_MINOR )
17847 printf("Berkeley DB version mismatch\n"
17848 "\theader: %s\n\tlibrary: %s\n",
17849 DB_VERSION_STRING, version);
17855 #if DB_VERSION_MAJOR > 2
17856 db_env_create( NULL, 0 );
17857 #elif DB_VERSION_MAJOR > 1
17858 db_appexit( NULL );
17860 (void) dbopen( NULL, 0, 0, 0, NULL);
17865 if { (eval echo configure:17866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17869 echo "configure: failed program was:" >&5
17870 cat conftest.$ac_ext >&5
17880 echo "$ac_t""$ol_cv_db_db4" 1>&6
17882 if test $ol_cv_db_db4 = yes ; then
17887 if test $ol_cv_lib_db = no ; then
17888 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17889 echo "configure:17890: checking for Berkeley DB link (-ldb)" >&5
17890 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17891 echo $ac_n "(cached) $ac_c" 1>&6
17896 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17898 cat > conftest.$ac_ext <<EOF
17899 #line 17900 "configure"
17900 #include "confdefs.h"
17902 #ifdef HAVE_DB_185_H
17903 # include <db_185.h>
17908 #ifndef DB_VERSION_MAJOR
17909 # define DB_VERSION_MAJOR 1
17913 #define NULL ((void*)0)
17918 #if DB_VERSION_MAJOR > 1
17921 int major, minor, patch;
17923 version = db_version( &major, &minor, &patch );
17925 if( major != DB_VERSION_MAJOR ||
17926 minor < DB_VERSION_MINOR )
17928 printf("Berkeley DB version mismatch\n"
17929 "\theader: %s\n\tlibrary: %s\n",
17930 DB_VERSION_STRING, version);
17936 #if DB_VERSION_MAJOR > 2
17937 db_env_create( NULL, 0 );
17938 #elif DB_VERSION_MAJOR > 1
17939 db_appexit( NULL );
17941 (void) dbopen( NULL, 0, 0, 0, NULL);
17946 if { (eval echo configure:17947: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17950 echo "configure: failed program was:" >&5
17951 cat conftest.$ac_ext >&5
17961 echo "$ac_t""$ol_cv_db_db" 1>&6
17963 if test $ol_cv_db_db = yes ; then
17968 if test $ol_cv_lib_db = no ; then
17969 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
17970 echo "configure:17971: checking for Berkeley DB link (-ldb41)" >&5
17971 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
17972 echo $ac_n "(cached) $ac_c" 1>&6
17977 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17979 cat > conftest.$ac_ext <<EOF
17980 #line 17981 "configure"
17981 #include "confdefs.h"
17983 #ifdef HAVE_DB_185_H
17984 # include <db_185.h>
17989 #ifndef DB_VERSION_MAJOR
17990 # define DB_VERSION_MAJOR 1
17994 #define NULL ((void*)0)
17999 #if DB_VERSION_MAJOR > 1
18002 int major, minor, patch;
18004 version = db_version( &major, &minor, &patch );
18006 if( major != DB_VERSION_MAJOR ||
18007 minor < DB_VERSION_MINOR )
18009 printf("Berkeley DB version mismatch\n"
18010 "\theader: %s\n\tlibrary: %s\n",
18011 DB_VERSION_STRING, version);
18017 #if DB_VERSION_MAJOR > 2
18018 db_env_create( NULL, 0 );
18019 #elif DB_VERSION_MAJOR > 1
18020 db_appexit( NULL );
18022 (void) dbopen( NULL, 0, 0, 0, NULL);
18027 if { (eval echo configure:18028: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18031 echo "configure: failed program was:" >&5
18032 cat conftest.$ac_ext >&5
18042 echo "$ac_t""$ol_cv_db_db41" 1>&6
18044 if test $ol_cv_db_db41 = yes ; then
18045 ol_cv_lib_db=-ldb41
18049 if test $ol_cv_lib_db = no ; then
18050 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
18051 echo "configure:18052: checking for Berkeley DB link (-ldb-41)" >&5
18052 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
18053 echo $ac_n "(cached) $ac_c" 1>&6
18058 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18060 cat > conftest.$ac_ext <<EOF
18061 #line 18062 "configure"
18062 #include "confdefs.h"
18064 #ifdef HAVE_DB_185_H
18065 # include <db_185.h>
18070 #ifndef DB_VERSION_MAJOR
18071 # define DB_VERSION_MAJOR 1
18075 #define NULL ((void*)0)
18080 #if DB_VERSION_MAJOR > 1
18083 int major, minor, patch;
18085 version = db_version( &major, &minor, &patch );
18087 if( major != DB_VERSION_MAJOR ||
18088 minor < DB_VERSION_MINOR )
18090 printf("Berkeley DB version mismatch\n"
18091 "\theader: %s\n\tlibrary: %s\n",
18092 DB_VERSION_STRING, version);
18098 #if DB_VERSION_MAJOR > 2
18099 db_env_create( NULL, 0 );
18100 #elif DB_VERSION_MAJOR > 1
18101 db_appexit( NULL );
18103 (void) dbopen( NULL, 0, 0, 0, NULL);
18108 if { (eval echo configure:18109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18112 echo "configure: failed program was:" >&5
18113 cat conftest.$ac_ext >&5
18123 echo "$ac_t""$ol_cv_db_db_41" 1>&6
18125 if test $ol_cv_db_db_41 = yes ; then
18126 ol_cv_lib_db=-ldb-41
18130 if test $ol_cv_lib_db = no ; then
18131 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
18132 echo "configure:18133: checking for Berkeley DB link (-ldb-4.1)" >&5
18133 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
18134 echo $ac_n "(cached) $ac_c" 1>&6
18139 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18141 cat > conftest.$ac_ext <<EOF
18142 #line 18143 "configure"
18143 #include "confdefs.h"
18145 #ifdef HAVE_DB_185_H
18146 # include <db_185.h>
18151 #ifndef DB_VERSION_MAJOR
18152 # define DB_VERSION_MAJOR 1
18156 #define NULL ((void*)0)
18161 #if DB_VERSION_MAJOR > 1
18164 int major, minor, patch;
18166 version = db_version( &major, &minor, &patch );
18168 if( major != DB_VERSION_MAJOR ||
18169 minor < DB_VERSION_MINOR )
18171 printf("Berkeley DB version mismatch\n"
18172 "\theader: %s\n\tlibrary: %s\n",
18173 DB_VERSION_STRING, version);
18179 #if DB_VERSION_MAJOR > 2
18180 db_env_create( NULL, 0 );
18181 #elif DB_VERSION_MAJOR > 1
18182 db_appexit( NULL );
18184 (void) dbopen( NULL, 0, 0, 0, NULL);
18189 if { (eval echo configure:18190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18191 ol_cv_db_db_4_dot_1=yes
18193 echo "configure: failed program was:" >&5
18194 cat conftest.$ac_ext >&5
18196 ol_cv_db_db_4_dot_1=no
18204 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
18206 if test $ol_cv_db_db_4_dot_1 = yes ; then
18207 ol_cv_lib_db=-ldb-4.1
18211 if test $ol_cv_lib_db = no ; then
18212 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
18213 echo "configure:18214: checking for Berkeley DB link (-ldb-4-1)" >&5
18214 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
18215 echo $ac_n "(cached) $ac_c" 1>&6
18220 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18222 cat > conftest.$ac_ext <<EOF
18223 #line 18224 "configure"
18224 #include "confdefs.h"
18226 #ifdef HAVE_DB_185_H
18227 # include <db_185.h>
18232 #ifndef DB_VERSION_MAJOR
18233 # define DB_VERSION_MAJOR 1
18237 #define NULL ((void*)0)
18242 #if DB_VERSION_MAJOR > 1
18245 int major, minor, patch;
18247 version = db_version( &major, &minor, &patch );
18249 if( major != DB_VERSION_MAJOR ||
18250 minor < DB_VERSION_MINOR )
18252 printf("Berkeley DB version mismatch\n"
18253 "\theader: %s\n\tlibrary: %s\n",
18254 DB_VERSION_STRING, version);
18260 #if DB_VERSION_MAJOR > 2
18261 db_env_create( NULL, 0 );
18262 #elif DB_VERSION_MAJOR > 1
18263 db_appexit( NULL );
18265 (void) dbopen( NULL, 0, 0, 0, NULL);
18270 if { (eval echo configure:18271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18272 ol_cv_db_db_4_1=yes
18274 echo "configure: failed program was:" >&5
18275 cat conftest.$ac_ext >&5
18285 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
18287 if test $ol_cv_db_db_4_1 = yes ; then
18288 ol_cv_lib_db=-ldb-4-1
18292 if test $ol_cv_lib_db = no ; then
18293 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
18294 echo "configure:18295: checking for Berkeley DB link (-ldb3)" >&5
18295 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
18296 echo $ac_n "(cached) $ac_c" 1>&6
18301 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18303 cat > conftest.$ac_ext <<EOF
18304 #line 18305 "configure"
18305 #include "confdefs.h"
18307 #ifdef HAVE_DB_185_H
18308 # include <db_185.h>
18313 #ifndef DB_VERSION_MAJOR
18314 # define DB_VERSION_MAJOR 1
18318 #define NULL ((void*)0)
18323 #if DB_VERSION_MAJOR > 1
18326 int major, minor, patch;
18328 version = db_version( &major, &minor, &patch );
18330 if( major != DB_VERSION_MAJOR ||
18331 minor < DB_VERSION_MINOR )
18333 printf("Berkeley DB version mismatch\n"
18334 "\theader: %s\n\tlibrary: %s\n",
18335 DB_VERSION_STRING, version);
18341 #if DB_VERSION_MAJOR > 2
18342 db_env_create( NULL, 0 );
18343 #elif DB_VERSION_MAJOR > 1
18344 db_appexit( NULL );
18346 (void) dbopen( NULL, 0, 0, 0, NULL);
18351 if { (eval echo configure:18352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18355 echo "configure: failed program was:" >&5
18356 cat conftest.$ac_ext >&5
18366 echo "$ac_t""$ol_cv_db_db3" 1>&6
18368 if test $ol_cv_db_db3 = yes ; then
18373 if test $ol_cv_lib_db = no ; then
18374 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
18375 echo "configure:18376: checking for Berkeley DB link (-ldb-3)" >&5
18376 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
18377 echo $ac_n "(cached) $ac_c" 1>&6
18382 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18384 cat > conftest.$ac_ext <<EOF
18385 #line 18386 "configure"
18386 #include "confdefs.h"
18388 #ifdef HAVE_DB_185_H
18389 # include <db_185.h>
18394 #ifndef DB_VERSION_MAJOR
18395 # define DB_VERSION_MAJOR 1
18399 #define NULL ((void*)0)
18404 #if DB_VERSION_MAJOR > 1
18407 int major, minor, patch;
18409 version = db_version( &major, &minor, &patch );
18411 if( major != DB_VERSION_MAJOR ||
18412 minor < DB_VERSION_MINOR )
18414 printf("Berkeley DB version mismatch\n"
18415 "\theader: %s\n\tlibrary: %s\n",
18416 DB_VERSION_STRING, version);
18422 #if DB_VERSION_MAJOR > 2
18423 db_env_create( NULL, 0 );
18424 #elif DB_VERSION_MAJOR > 1
18425 db_appexit( NULL );
18427 (void) dbopen( NULL, 0, 0, 0, NULL);
18432 if { (eval echo configure:18433: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18436 echo "configure: failed program was:" >&5
18437 cat conftest.$ac_ext >&5
18447 echo "$ac_t""$ol_cv_db_db_3" 1>&6
18449 if test $ol_cv_db_db_3 = yes ; then
18450 ol_cv_lib_db=-ldb-3
18454 if test $ol_cv_lib_db = no ; then
18455 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
18456 echo "configure:18457: checking for Berkeley DB link (-ldb2)" >&5
18457 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
18458 echo $ac_n "(cached) $ac_c" 1>&6
18463 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18465 cat > conftest.$ac_ext <<EOF
18466 #line 18467 "configure"
18467 #include "confdefs.h"
18469 #ifdef HAVE_DB_185_H
18470 # include <db_185.h>
18475 #ifndef DB_VERSION_MAJOR
18476 # define DB_VERSION_MAJOR 1
18480 #define NULL ((void*)0)
18485 #if DB_VERSION_MAJOR > 1
18488 int major, minor, patch;
18490 version = db_version( &major, &minor, &patch );
18492 if( major != DB_VERSION_MAJOR ||
18493 minor < DB_VERSION_MINOR )
18495 printf("Berkeley DB version mismatch\n"
18496 "\theader: %s\n\tlibrary: %s\n",
18497 DB_VERSION_STRING, version);
18503 #if DB_VERSION_MAJOR > 2
18504 db_env_create( NULL, 0 );
18505 #elif DB_VERSION_MAJOR > 1
18506 db_appexit( NULL );
18508 (void) dbopen( NULL, 0, 0, 0, NULL);
18513 if { (eval echo configure:18514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18517 echo "configure: failed program was:" >&5
18518 cat conftest.$ac_ext >&5
18528 echo "$ac_t""$ol_cv_db_db2" 1>&6
18530 if test $ol_cv_db_db2 = yes ; then
18535 if test $ol_cv_lib_db = no ; then
18536 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
18537 echo "configure:18538: checking for Berkeley DB link (-ldb-2)" >&5
18538 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
18539 echo $ac_n "(cached) $ac_c" 1>&6
18544 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18546 cat > conftest.$ac_ext <<EOF
18547 #line 18548 "configure"
18548 #include "confdefs.h"
18550 #ifdef HAVE_DB_185_H
18551 # include <db_185.h>
18556 #ifndef DB_VERSION_MAJOR
18557 # define DB_VERSION_MAJOR 1
18561 #define NULL ((void*)0)
18566 #if DB_VERSION_MAJOR > 1
18569 int major, minor, patch;
18571 version = db_version( &major, &minor, &patch );
18573 if( major != DB_VERSION_MAJOR ||
18574 minor < DB_VERSION_MINOR )
18576 printf("Berkeley DB version mismatch\n"
18577 "\theader: %s\n\tlibrary: %s\n",
18578 DB_VERSION_STRING, version);
18584 #if DB_VERSION_MAJOR > 2
18585 db_env_create( NULL, 0 );
18586 #elif DB_VERSION_MAJOR > 1
18587 db_appexit( NULL );
18589 (void) dbopen( NULL, 0, 0, 0, NULL);
18594 if { (eval echo configure:18595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18598 echo "configure: failed program was:" >&5
18599 cat conftest.$ac_ext >&5
18609 echo "$ac_t""$ol_cv_db_db_2" 1>&6
18611 if test $ol_cv_db_db_2 = yes ; then
18612 ol_cv_lib_db=-ldb-2
18616 if test $ol_cv_lib_db = no ; then
18617 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18618 echo "configure:18619: checking for Berkeley DB link (-ldb1)" >&5
18619 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18620 echo $ac_n "(cached) $ac_c" 1>&6
18625 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18627 cat > conftest.$ac_ext <<EOF
18628 #line 18629 "configure"
18629 #include "confdefs.h"
18631 #ifdef HAVE_DB_185_H
18632 # include <db_185.h>
18637 #ifndef DB_VERSION_MAJOR
18638 # define DB_VERSION_MAJOR 1
18642 #define NULL ((void*)0)
18647 #if DB_VERSION_MAJOR > 1
18650 int major, minor, patch;
18652 version = db_version( &major, &minor, &patch );
18654 if( major != DB_VERSION_MAJOR ||
18655 minor < DB_VERSION_MINOR )
18657 printf("Berkeley DB version mismatch\n"
18658 "\theader: %s\n\tlibrary: %s\n",
18659 DB_VERSION_STRING, version);
18665 #if DB_VERSION_MAJOR > 2
18666 db_env_create( NULL, 0 );
18667 #elif DB_VERSION_MAJOR > 1
18668 db_appexit( NULL );
18670 (void) dbopen( NULL, 0, 0, 0, NULL);
18675 if { (eval echo configure:18676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18679 echo "configure: failed program was:" >&5
18680 cat conftest.$ac_ext >&5
18690 echo "$ac_t""$ol_cv_db_db1" 1>&6
18692 if test $ol_cv_db_db1 = yes ; then
18697 if test $ol_cv_lib_db = no ; then
18698 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18699 echo "configure:18700: checking for Berkeley DB link (-ldb-1)" >&5
18700 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18701 echo $ac_n "(cached) $ac_c" 1>&6
18706 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18708 cat > conftest.$ac_ext <<EOF
18709 #line 18710 "configure"
18710 #include "confdefs.h"
18712 #ifdef HAVE_DB_185_H
18713 # include <db_185.h>
18718 #ifndef DB_VERSION_MAJOR
18719 # define DB_VERSION_MAJOR 1
18723 #define NULL ((void*)0)
18728 #if DB_VERSION_MAJOR > 1
18731 int major, minor, patch;
18733 version = db_version( &major, &minor, &patch );
18735 if( major != DB_VERSION_MAJOR ||
18736 minor < DB_VERSION_MINOR )
18738 printf("Berkeley DB version mismatch\n"
18739 "\theader: %s\n\tlibrary: %s\n",
18740 DB_VERSION_STRING, version);
18746 #if DB_VERSION_MAJOR > 2
18747 db_env_create( NULL, 0 );
18748 #elif DB_VERSION_MAJOR > 1
18749 db_appexit( NULL );
18751 (void) dbopen( NULL, 0, 0, 0, NULL);
18756 if { (eval echo configure:18757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18760 echo "configure: failed program was:" >&5
18761 cat conftest.$ac_ext >&5
18771 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18773 if test $ol_cv_db_db_1 = yes ; then
18774 ol_cv_lib_db=-ldb-1
18779 if test "$ol_cv_lib_db" != no ; then
18780 ol_cv_berkeley_db=yes
18786 ol_cv_berkeley_db=no
18789 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18790 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18791 echo "configure:18792: checking for $ac_hdr" >&5
18792 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18793 echo $ac_n "(cached) $ac_c" 1>&6
18795 cat > conftest.$ac_ext <<EOF
18796 #line 18797 "configure"
18797 #include "confdefs.h"
18800 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18801 { (eval echo configure:18802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18802 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18803 if test -z "$ac_err"; then
18805 eval "ac_cv_header_$ac_safe=yes"
18808 echo "configure: failed program was:" >&5
18809 cat conftest.$ac_ext >&5
18811 eval "ac_cv_header_$ac_safe=no"
18815 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18816 echo "$ac_t""yes" 1>&6
18817 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18818 cat >> confdefs.h <<EOF
18819 #define $ac_tr_hdr 1
18823 echo "$ac_t""no" 1>&6
18827 if test $ac_cv_header_db_h = yes; then
18829 if test $ol_cv_lib_db = no ; then
18830 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
18831 echo "configure:18832: checking for Berkeley DB link (default)" >&5
18832 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
18833 echo $ac_n "(cached) $ac_c" 1>&6
18838 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18840 cat > conftest.$ac_ext <<EOF
18841 #line 18842 "configure"
18842 #include "confdefs.h"
18844 #ifdef HAVE_DB_185_H
18845 # include <db_185.h>
18850 #ifndef DB_VERSION_MAJOR
18851 # define DB_VERSION_MAJOR 1
18855 #define NULL ((void*)0)
18860 #if DB_VERSION_MAJOR > 1
18863 int major, minor, patch;
18865 version = db_version( &major, &minor, &patch );
18867 if( major != DB_VERSION_MAJOR ||
18868 minor < DB_VERSION_MINOR )
18870 printf("Berkeley DB version mismatch\n"
18871 "\theader: %s\n\tlibrary: %s\n",
18872 DB_VERSION_STRING, version);
18878 #if DB_VERSION_MAJOR > 2
18879 db_env_create( NULL, 0 );
18880 #elif DB_VERSION_MAJOR > 1
18881 db_appexit( NULL );
18883 (void) dbopen( NULL, 0, 0, 0, NULL);
18888 if { (eval echo configure:18889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18892 echo "configure: failed program was:" >&5
18893 cat conftest.$ac_ext >&5
18903 echo "$ac_t""$ol_cv_db_none" 1>&6
18905 if test $ol_cv_db_none = yes ; then
18910 if test $ol_cv_lib_db = no ; then
18911 echo $ac_n "checking for Berkeley DB link (-ldb43)""... $ac_c" 1>&6
18912 echo "configure:18913: checking for Berkeley DB link (-ldb43)" >&5
18913 if eval "test \"\${ol_cv_db_db43+set}\" = set"; then
18914 echo $ac_n "(cached) $ac_c" 1>&6
18919 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18921 cat > conftest.$ac_ext <<EOF
18922 #line 18923 "configure"
18923 #include "confdefs.h"
18925 #ifdef HAVE_DB_185_H
18926 # include <db_185.h>
18931 #ifndef DB_VERSION_MAJOR
18932 # define DB_VERSION_MAJOR 1
18936 #define NULL ((void*)0)
18941 #if DB_VERSION_MAJOR > 1
18944 int major, minor, patch;
18946 version = db_version( &major, &minor, &patch );
18948 if( major != DB_VERSION_MAJOR ||
18949 minor < DB_VERSION_MINOR )
18951 printf("Berkeley DB version mismatch\n"
18952 "\theader: %s\n\tlibrary: %s\n",
18953 DB_VERSION_STRING, version);
18959 #if DB_VERSION_MAJOR > 2
18960 db_env_create( NULL, 0 );
18961 #elif DB_VERSION_MAJOR > 1
18962 db_appexit( NULL );
18964 (void) dbopen( NULL, 0, 0, 0, NULL);
18969 if { (eval echo configure:18970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18973 echo "configure: failed program was:" >&5
18974 cat conftest.$ac_ext >&5
18984 echo "$ac_t""$ol_cv_db_db43" 1>&6
18986 if test $ol_cv_db_db43 = yes ; then
18987 ol_cv_lib_db=-ldb43
18991 if test $ol_cv_lib_db = no ; then
18992 echo $ac_n "checking for Berkeley DB link (-ldb-43)""... $ac_c" 1>&6
18993 echo "configure:18994: checking for Berkeley DB link (-ldb-43)" >&5
18994 if eval "test \"\${ol_cv_db_db_43+set}\" = set"; then
18995 echo $ac_n "(cached) $ac_c" 1>&6
19000 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19002 cat > conftest.$ac_ext <<EOF
19003 #line 19004 "configure"
19004 #include "confdefs.h"
19006 #ifdef HAVE_DB_185_H
19007 # include <db_185.h>
19012 #ifndef DB_VERSION_MAJOR
19013 # define DB_VERSION_MAJOR 1
19017 #define NULL ((void*)0)
19022 #if DB_VERSION_MAJOR > 1
19025 int major, minor, patch;
19027 version = db_version( &major, &minor, &patch );
19029 if( major != DB_VERSION_MAJOR ||
19030 minor < DB_VERSION_MINOR )
19032 printf("Berkeley DB version mismatch\n"
19033 "\theader: %s\n\tlibrary: %s\n",
19034 DB_VERSION_STRING, version);
19040 #if DB_VERSION_MAJOR > 2
19041 db_env_create( NULL, 0 );
19042 #elif DB_VERSION_MAJOR > 1
19043 db_appexit( NULL );
19045 (void) dbopen( NULL, 0, 0, 0, NULL);
19050 if { (eval echo configure:19051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19054 echo "configure: failed program was:" >&5
19055 cat conftest.$ac_ext >&5
19065 echo "$ac_t""$ol_cv_db_db_43" 1>&6
19067 if test $ol_cv_db_db_43 = yes ; then
19068 ol_cv_lib_db=-ldb-43
19072 if test $ol_cv_lib_db = no ; then
19073 echo $ac_n "checking for Berkeley DB link (-ldb-4.3)""... $ac_c" 1>&6
19074 echo "configure:19075: checking for Berkeley DB link (-ldb-4.3)" >&5
19075 if eval "test \"\${ol_cv_db_db_4_dot_3+set}\" = set"; then
19076 echo $ac_n "(cached) $ac_c" 1>&6
19081 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19083 cat > conftest.$ac_ext <<EOF
19084 #line 19085 "configure"
19085 #include "confdefs.h"
19087 #ifdef HAVE_DB_185_H
19088 # include <db_185.h>
19093 #ifndef DB_VERSION_MAJOR
19094 # define DB_VERSION_MAJOR 1
19098 #define NULL ((void*)0)
19103 #if DB_VERSION_MAJOR > 1
19106 int major, minor, patch;
19108 version = db_version( &major, &minor, &patch );
19110 if( major != DB_VERSION_MAJOR ||
19111 minor < DB_VERSION_MINOR )
19113 printf("Berkeley DB version mismatch\n"
19114 "\theader: %s\n\tlibrary: %s\n",
19115 DB_VERSION_STRING, version);
19121 #if DB_VERSION_MAJOR > 2
19122 db_env_create( NULL, 0 );
19123 #elif DB_VERSION_MAJOR > 1
19124 db_appexit( NULL );
19126 (void) dbopen( NULL, 0, 0, 0, NULL);
19131 if { (eval echo configure:19132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19133 ol_cv_db_db_4_dot_3=yes
19135 echo "configure: failed program was:" >&5
19136 cat conftest.$ac_ext >&5
19138 ol_cv_db_db_4_dot_3=no
19146 echo "$ac_t""$ol_cv_db_db_4_dot_3" 1>&6
19148 if test $ol_cv_db_db_4_dot_3 = yes ; then
19149 ol_cv_lib_db=-ldb-4.3
19153 if test $ol_cv_lib_db = no ; then
19154 echo $ac_n "checking for Berkeley DB link (-ldb-4-3)""... $ac_c" 1>&6
19155 echo "configure:19156: checking for Berkeley DB link (-ldb-4-3)" >&5
19156 if eval "test \"\${ol_cv_db_db_4_3+set}\" = set"; then
19157 echo $ac_n "(cached) $ac_c" 1>&6
19162 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19164 cat > conftest.$ac_ext <<EOF
19165 #line 19166 "configure"
19166 #include "confdefs.h"
19168 #ifdef HAVE_DB_185_H
19169 # include <db_185.h>
19174 #ifndef DB_VERSION_MAJOR
19175 # define DB_VERSION_MAJOR 1
19179 #define NULL ((void*)0)
19184 #if DB_VERSION_MAJOR > 1
19187 int major, minor, patch;
19189 version = db_version( &major, &minor, &patch );
19191 if( major != DB_VERSION_MAJOR ||
19192 minor < DB_VERSION_MINOR )
19194 printf("Berkeley DB version mismatch\n"
19195 "\theader: %s\n\tlibrary: %s\n",
19196 DB_VERSION_STRING, version);
19202 #if DB_VERSION_MAJOR > 2
19203 db_env_create( NULL, 0 );
19204 #elif DB_VERSION_MAJOR > 1
19205 db_appexit( NULL );
19207 (void) dbopen( NULL, 0, 0, 0, NULL);
19212 if { (eval echo configure:19213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19214 ol_cv_db_db_4_3=yes
19216 echo "configure: failed program was:" >&5
19217 cat conftest.$ac_ext >&5
19227 echo "$ac_t""$ol_cv_db_db_4_3" 1>&6
19229 if test $ol_cv_db_db_4_3 = yes ; then
19230 ol_cv_lib_db=-ldb-4-3
19234 if test $ol_cv_lib_db = no ; then
19235 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
19236 echo "configure:19237: checking for Berkeley DB link (-ldb42)" >&5
19237 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
19238 echo $ac_n "(cached) $ac_c" 1>&6
19243 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19245 cat > conftest.$ac_ext <<EOF
19246 #line 19247 "configure"
19247 #include "confdefs.h"
19249 #ifdef HAVE_DB_185_H
19250 # include <db_185.h>
19255 #ifndef DB_VERSION_MAJOR
19256 # define DB_VERSION_MAJOR 1
19260 #define NULL ((void*)0)
19265 #if DB_VERSION_MAJOR > 1
19268 int major, minor, patch;
19270 version = db_version( &major, &minor, &patch );
19272 if( major != DB_VERSION_MAJOR ||
19273 minor < DB_VERSION_MINOR )
19275 printf("Berkeley DB version mismatch\n"
19276 "\theader: %s\n\tlibrary: %s\n",
19277 DB_VERSION_STRING, version);
19283 #if DB_VERSION_MAJOR > 2
19284 db_env_create( NULL, 0 );
19285 #elif DB_VERSION_MAJOR > 1
19286 db_appexit( NULL );
19288 (void) dbopen( NULL, 0, 0, 0, NULL);
19293 if { (eval echo configure:19294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19297 echo "configure: failed program was:" >&5
19298 cat conftest.$ac_ext >&5
19308 echo "$ac_t""$ol_cv_db_db42" 1>&6
19310 if test $ol_cv_db_db42 = yes ; then
19311 ol_cv_lib_db=-ldb42
19315 if test $ol_cv_lib_db = no ; then
19316 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
19317 echo "configure:19318: checking for Berkeley DB link (-ldb-42)" >&5
19318 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
19319 echo $ac_n "(cached) $ac_c" 1>&6
19324 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19326 cat > conftest.$ac_ext <<EOF
19327 #line 19328 "configure"
19328 #include "confdefs.h"
19330 #ifdef HAVE_DB_185_H
19331 # include <db_185.h>
19336 #ifndef DB_VERSION_MAJOR
19337 # define DB_VERSION_MAJOR 1
19341 #define NULL ((void*)0)
19346 #if DB_VERSION_MAJOR > 1
19349 int major, minor, patch;
19351 version = db_version( &major, &minor, &patch );
19353 if( major != DB_VERSION_MAJOR ||
19354 minor < DB_VERSION_MINOR )
19356 printf("Berkeley DB version mismatch\n"
19357 "\theader: %s\n\tlibrary: %s\n",
19358 DB_VERSION_STRING, version);
19364 #if DB_VERSION_MAJOR > 2
19365 db_env_create( NULL, 0 );
19366 #elif DB_VERSION_MAJOR > 1
19367 db_appexit( NULL );
19369 (void) dbopen( NULL, 0, 0, 0, NULL);
19374 if { (eval echo configure:19375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19378 echo "configure: failed program was:" >&5
19379 cat conftest.$ac_ext >&5
19389 echo "$ac_t""$ol_cv_db_db_42" 1>&6
19391 if test $ol_cv_db_db_42 = yes ; then
19392 ol_cv_lib_db=-ldb-42
19396 if test $ol_cv_lib_db = no ; then
19397 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
19398 echo "configure:19399: checking for Berkeley DB link (-ldb-4.2)" >&5
19399 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
19400 echo $ac_n "(cached) $ac_c" 1>&6
19405 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19407 cat > conftest.$ac_ext <<EOF
19408 #line 19409 "configure"
19409 #include "confdefs.h"
19411 #ifdef HAVE_DB_185_H
19412 # include <db_185.h>
19417 #ifndef DB_VERSION_MAJOR
19418 # define DB_VERSION_MAJOR 1
19422 #define NULL ((void*)0)
19427 #if DB_VERSION_MAJOR > 1
19430 int major, minor, patch;
19432 version = db_version( &major, &minor, &patch );
19434 if( major != DB_VERSION_MAJOR ||
19435 minor < DB_VERSION_MINOR )
19437 printf("Berkeley DB version mismatch\n"
19438 "\theader: %s\n\tlibrary: %s\n",
19439 DB_VERSION_STRING, version);
19445 #if DB_VERSION_MAJOR > 2
19446 db_env_create( NULL, 0 );
19447 #elif DB_VERSION_MAJOR > 1
19448 db_appexit( NULL );
19450 (void) dbopen( NULL, 0, 0, 0, NULL);
19455 if { (eval echo configure:19456: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19457 ol_cv_db_db_4_dot_2=yes
19459 echo "configure: failed program was:" >&5
19460 cat conftest.$ac_ext >&5
19462 ol_cv_db_db_4_dot_2=no
19470 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
19472 if test $ol_cv_db_db_4_dot_2 = yes ; then
19473 ol_cv_lib_db=-ldb-4.2
19477 if test $ol_cv_lib_db = no ; then
19478 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
19479 echo "configure:19480: checking for Berkeley DB link (-ldb-4-2)" >&5
19480 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
19481 echo $ac_n "(cached) $ac_c" 1>&6
19486 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19488 cat > conftest.$ac_ext <<EOF
19489 #line 19490 "configure"
19490 #include "confdefs.h"
19492 #ifdef HAVE_DB_185_H
19493 # include <db_185.h>
19498 #ifndef DB_VERSION_MAJOR
19499 # define DB_VERSION_MAJOR 1
19503 #define NULL ((void*)0)
19508 #if DB_VERSION_MAJOR > 1
19511 int major, minor, patch;
19513 version = db_version( &major, &minor, &patch );
19515 if( major != DB_VERSION_MAJOR ||
19516 minor < DB_VERSION_MINOR )
19518 printf("Berkeley DB version mismatch\n"
19519 "\theader: %s\n\tlibrary: %s\n",
19520 DB_VERSION_STRING, version);
19526 #if DB_VERSION_MAJOR > 2
19527 db_env_create( NULL, 0 );
19528 #elif DB_VERSION_MAJOR > 1
19529 db_appexit( NULL );
19531 (void) dbopen( NULL, 0, 0, 0, NULL);
19536 if { (eval echo configure:19537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19538 ol_cv_db_db_4_2=yes
19540 echo "configure: failed program was:" >&5
19541 cat conftest.$ac_ext >&5
19551 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
19553 if test $ol_cv_db_db_4_2 = yes ; then
19554 ol_cv_lib_db=-ldb-4-2
19558 if test $ol_cv_lib_db = no ; then
19559 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
19560 echo "configure:19561: checking for Berkeley DB link (-ldb-4)" >&5
19561 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
19562 echo $ac_n "(cached) $ac_c" 1>&6
19567 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19569 cat > conftest.$ac_ext <<EOF
19570 #line 19571 "configure"
19571 #include "confdefs.h"
19573 #ifdef HAVE_DB_185_H
19574 # include <db_185.h>
19579 #ifndef DB_VERSION_MAJOR
19580 # define DB_VERSION_MAJOR 1
19584 #define NULL ((void*)0)
19589 #if DB_VERSION_MAJOR > 1
19592 int major, minor, patch;
19594 version = db_version( &major, &minor, &patch );
19596 if( major != DB_VERSION_MAJOR ||
19597 minor < DB_VERSION_MINOR )
19599 printf("Berkeley DB version mismatch\n"
19600 "\theader: %s\n\tlibrary: %s\n",
19601 DB_VERSION_STRING, version);
19607 #if DB_VERSION_MAJOR > 2
19608 db_env_create( NULL, 0 );
19609 #elif DB_VERSION_MAJOR > 1
19610 db_appexit( NULL );
19612 (void) dbopen( NULL, 0, 0, 0, NULL);
19617 if { (eval echo configure:19618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19621 echo "configure: failed program was:" >&5
19622 cat conftest.$ac_ext >&5
19632 echo "$ac_t""$ol_cv_db_db_4" 1>&6
19634 if test $ol_cv_db_db_4 = yes ; then
19635 ol_cv_lib_db=-ldb-4
19639 if test $ol_cv_lib_db = no ; then
19640 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
19641 echo "configure:19642: checking for Berkeley DB link (-ldb4)" >&5
19642 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
19643 echo $ac_n "(cached) $ac_c" 1>&6
19648 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19650 cat > conftest.$ac_ext <<EOF
19651 #line 19652 "configure"
19652 #include "confdefs.h"
19654 #ifdef HAVE_DB_185_H
19655 # include <db_185.h>
19660 #ifndef DB_VERSION_MAJOR
19661 # define DB_VERSION_MAJOR 1
19665 #define NULL ((void*)0)
19670 #if DB_VERSION_MAJOR > 1
19673 int major, minor, patch;
19675 version = db_version( &major, &minor, &patch );
19677 if( major != DB_VERSION_MAJOR ||
19678 minor < DB_VERSION_MINOR )
19680 printf("Berkeley DB version mismatch\n"
19681 "\theader: %s\n\tlibrary: %s\n",
19682 DB_VERSION_STRING, version);
19688 #if DB_VERSION_MAJOR > 2
19689 db_env_create( NULL, 0 );
19690 #elif DB_VERSION_MAJOR > 1
19691 db_appexit( NULL );
19693 (void) dbopen( NULL, 0, 0, 0, NULL);
19698 if { (eval echo configure:19699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19702 echo "configure: failed program was:" >&5
19703 cat conftest.$ac_ext >&5
19713 echo "$ac_t""$ol_cv_db_db4" 1>&6
19715 if test $ol_cv_db_db4 = yes ; then
19720 if test $ol_cv_lib_db = no ; then
19721 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
19722 echo "configure:19723: checking for Berkeley DB link (-ldb)" >&5
19723 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
19724 echo $ac_n "(cached) $ac_c" 1>&6
19729 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19731 cat > conftest.$ac_ext <<EOF
19732 #line 19733 "configure"
19733 #include "confdefs.h"
19735 #ifdef HAVE_DB_185_H
19736 # include <db_185.h>
19741 #ifndef DB_VERSION_MAJOR
19742 # define DB_VERSION_MAJOR 1
19746 #define NULL ((void*)0)
19751 #if DB_VERSION_MAJOR > 1
19754 int major, minor, patch;
19756 version = db_version( &major, &minor, &patch );
19758 if( major != DB_VERSION_MAJOR ||
19759 minor < DB_VERSION_MINOR )
19761 printf("Berkeley DB version mismatch\n"
19762 "\theader: %s\n\tlibrary: %s\n",
19763 DB_VERSION_STRING, version);
19769 #if DB_VERSION_MAJOR > 2
19770 db_env_create( NULL, 0 );
19771 #elif DB_VERSION_MAJOR > 1
19772 db_appexit( NULL );
19774 (void) dbopen( NULL, 0, 0, 0, NULL);
19779 if { (eval echo configure:19780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19783 echo "configure: failed program was:" >&5
19784 cat conftest.$ac_ext >&5
19794 echo "$ac_t""$ol_cv_db_db" 1>&6
19796 if test $ol_cv_db_db = yes ; then
19801 if test $ol_cv_lib_db = no ; then
19802 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
19803 echo "configure:19804: checking for Berkeley DB link (-ldb41)" >&5
19804 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
19805 echo $ac_n "(cached) $ac_c" 1>&6
19810 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19812 cat > conftest.$ac_ext <<EOF
19813 #line 19814 "configure"
19814 #include "confdefs.h"
19816 #ifdef HAVE_DB_185_H
19817 # include <db_185.h>
19822 #ifndef DB_VERSION_MAJOR
19823 # define DB_VERSION_MAJOR 1
19827 #define NULL ((void*)0)
19832 #if DB_VERSION_MAJOR > 1
19835 int major, minor, patch;
19837 version = db_version( &major, &minor, &patch );
19839 if( major != DB_VERSION_MAJOR ||
19840 minor < DB_VERSION_MINOR )
19842 printf("Berkeley DB version mismatch\n"
19843 "\theader: %s\n\tlibrary: %s\n",
19844 DB_VERSION_STRING, version);
19850 #if DB_VERSION_MAJOR > 2
19851 db_env_create( NULL, 0 );
19852 #elif DB_VERSION_MAJOR > 1
19853 db_appexit( NULL );
19855 (void) dbopen( NULL, 0, 0, 0, NULL);
19860 if { (eval echo configure:19861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19864 echo "configure: failed program was:" >&5
19865 cat conftest.$ac_ext >&5
19875 echo "$ac_t""$ol_cv_db_db41" 1>&6
19877 if test $ol_cv_db_db41 = yes ; then
19878 ol_cv_lib_db=-ldb41
19882 if test $ol_cv_lib_db = no ; then
19883 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
19884 echo "configure:19885: checking for Berkeley DB link (-ldb-41)" >&5
19885 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
19886 echo $ac_n "(cached) $ac_c" 1>&6
19891 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19893 cat > conftest.$ac_ext <<EOF
19894 #line 19895 "configure"
19895 #include "confdefs.h"
19897 #ifdef HAVE_DB_185_H
19898 # include <db_185.h>
19903 #ifndef DB_VERSION_MAJOR
19904 # define DB_VERSION_MAJOR 1
19908 #define NULL ((void*)0)
19913 #if DB_VERSION_MAJOR > 1
19916 int major, minor, patch;
19918 version = db_version( &major, &minor, &patch );
19920 if( major != DB_VERSION_MAJOR ||
19921 minor < DB_VERSION_MINOR )
19923 printf("Berkeley DB version mismatch\n"
19924 "\theader: %s\n\tlibrary: %s\n",
19925 DB_VERSION_STRING, version);
19931 #if DB_VERSION_MAJOR > 2
19932 db_env_create( NULL, 0 );
19933 #elif DB_VERSION_MAJOR > 1
19934 db_appexit( NULL );
19936 (void) dbopen( NULL, 0, 0, 0, NULL);
19941 if { (eval echo configure:19942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19945 echo "configure: failed program was:" >&5
19946 cat conftest.$ac_ext >&5
19956 echo "$ac_t""$ol_cv_db_db_41" 1>&6
19958 if test $ol_cv_db_db_41 = yes ; then
19959 ol_cv_lib_db=-ldb-41
19963 if test $ol_cv_lib_db = no ; then
19964 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
19965 echo "configure:19966: checking for Berkeley DB link (-ldb-4.1)" >&5
19966 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
19967 echo $ac_n "(cached) $ac_c" 1>&6
19972 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19974 cat > conftest.$ac_ext <<EOF
19975 #line 19976 "configure"
19976 #include "confdefs.h"
19978 #ifdef HAVE_DB_185_H
19979 # include <db_185.h>
19984 #ifndef DB_VERSION_MAJOR
19985 # define DB_VERSION_MAJOR 1
19989 #define NULL ((void*)0)
19994 #if DB_VERSION_MAJOR > 1
19997 int major, minor, patch;
19999 version = db_version( &major, &minor, &patch );
20001 if( major != DB_VERSION_MAJOR ||
20002 minor < DB_VERSION_MINOR )
20004 printf("Berkeley DB version mismatch\n"
20005 "\theader: %s\n\tlibrary: %s\n",
20006 DB_VERSION_STRING, version);
20012 #if DB_VERSION_MAJOR > 2
20013 db_env_create( NULL, 0 );
20014 #elif DB_VERSION_MAJOR > 1
20015 db_appexit( NULL );
20017 (void) dbopen( NULL, 0, 0, 0, NULL);
20022 if { (eval echo configure:20023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20024 ol_cv_db_db_4_dot_1=yes
20026 echo "configure: failed program was:" >&5
20027 cat conftest.$ac_ext >&5
20029 ol_cv_db_db_4_dot_1=no
20037 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
20039 if test $ol_cv_db_db_4_dot_1 = yes ; then
20040 ol_cv_lib_db=-ldb-4.1
20044 if test $ol_cv_lib_db = no ; then
20045 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
20046 echo "configure:20047: checking for Berkeley DB link (-ldb-4-1)" >&5
20047 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
20048 echo $ac_n "(cached) $ac_c" 1>&6
20053 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20055 cat > conftest.$ac_ext <<EOF
20056 #line 20057 "configure"
20057 #include "confdefs.h"
20059 #ifdef HAVE_DB_185_H
20060 # include <db_185.h>
20065 #ifndef DB_VERSION_MAJOR
20066 # define DB_VERSION_MAJOR 1
20070 #define NULL ((void*)0)
20075 #if DB_VERSION_MAJOR > 1
20078 int major, minor, patch;
20080 version = db_version( &major, &minor, &patch );
20082 if( major != DB_VERSION_MAJOR ||
20083 minor < DB_VERSION_MINOR )
20085 printf("Berkeley DB version mismatch\n"
20086 "\theader: %s\n\tlibrary: %s\n",
20087 DB_VERSION_STRING, version);
20093 #if DB_VERSION_MAJOR > 2
20094 db_env_create( NULL, 0 );
20095 #elif DB_VERSION_MAJOR > 1
20096 db_appexit( NULL );
20098 (void) dbopen( NULL, 0, 0, 0, NULL);
20103 if { (eval echo configure:20104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20105 ol_cv_db_db_4_1=yes
20107 echo "configure: failed program was:" >&5
20108 cat conftest.$ac_ext >&5
20118 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
20120 if test $ol_cv_db_db_4_1 = yes ; then
20121 ol_cv_lib_db=-ldb-4-1
20125 if test $ol_cv_lib_db = no ; then
20126 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
20127 echo "configure:20128: checking for Berkeley DB link (-ldb3)" >&5
20128 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
20129 echo $ac_n "(cached) $ac_c" 1>&6
20134 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20136 cat > conftest.$ac_ext <<EOF
20137 #line 20138 "configure"
20138 #include "confdefs.h"
20140 #ifdef HAVE_DB_185_H
20141 # include <db_185.h>
20146 #ifndef DB_VERSION_MAJOR
20147 # define DB_VERSION_MAJOR 1
20151 #define NULL ((void*)0)
20156 #if DB_VERSION_MAJOR > 1
20159 int major, minor, patch;
20161 version = db_version( &major, &minor, &patch );
20163 if( major != DB_VERSION_MAJOR ||
20164 minor < DB_VERSION_MINOR )
20166 printf("Berkeley DB version mismatch\n"
20167 "\theader: %s\n\tlibrary: %s\n",
20168 DB_VERSION_STRING, version);
20174 #if DB_VERSION_MAJOR > 2
20175 db_env_create( NULL, 0 );
20176 #elif DB_VERSION_MAJOR > 1
20177 db_appexit( NULL );
20179 (void) dbopen( NULL, 0, 0, 0, NULL);
20184 if { (eval echo configure:20185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20188 echo "configure: failed program was:" >&5
20189 cat conftest.$ac_ext >&5
20199 echo "$ac_t""$ol_cv_db_db3" 1>&6
20201 if test $ol_cv_db_db3 = yes ; then
20206 if test $ol_cv_lib_db = no ; then
20207 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
20208 echo "configure:20209: checking for Berkeley DB link (-ldb-3)" >&5
20209 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
20210 echo $ac_n "(cached) $ac_c" 1>&6
20215 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20217 cat > conftest.$ac_ext <<EOF
20218 #line 20219 "configure"
20219 #include "confdefs.h"
20221 #ifdef HAVE_DB_185_H
20222 # include <db_185.h>
20227 #ifndef DB_VERSION_MAJOR
20228 # define DB_VERSION_MAJOR 1
20232 #define NULL ((void*)0)
20237 #if DB_VERSION_MAJOR > 1
20240 int major, minor, patch;
20242 version = db_version( &major, &minor, &patch );
20244 if( major != DB_VERSION_MAJOR ||
20245 minor < DB_VERSION_MINOR )
20247 printf("Berkeley DB version mismatch\n"
20248 "\theader: %s\n\tlibrary: %s\n",
20249 DB_VERSION_STRING, version);
20255 #if DB_VERSION_MAJOR > 2
20256 db_env_create( NULL, 0 );
20257 #elif DB_VERSION_MAJOR > 1
20258 db_appexit( NULL );
20260 (void) dbopen( NULL, 0, 0, 0, NULL);
20265 if { (eval echo configure:20266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20269 echo "configure: failed program was:" >&5
20270 cat conftest.$ac_ext >&5
20280 echo "$ac_t""$ol_cv_db_db_3" 1>&6
20282 if test $ol_cv_db_db_3 = yes ; then
20283 ol_cv_lib_db=-ldb-3
20287 if test $ol_cv_lib_db = no ; then
20288 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
20289 echo "configure:20290: checking for Berkeley DB link (-ldb2)" >&5
20290 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
20291 echo $ac_n "(cached) $ac_c" 1>&6
20296 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20298 cat > conftest.$ac_ext <<EOF
20299 #line 20300 "configure"
20300 #include "confdefs.h"
20302 #ifdef HAVE_DB_185_H
20303 # include <db_185.h>
20308 #ifndef DB_VERSION_MAJOR
20309 # define DB_VERSION_MAJOR 1
20313 #define NULL ((void*)0)
20318 #if DB_VERSION_MAJOR > 1
20321 int major, minor, patch;
20323 version = db_version( &major, &minor, &patch );
20325 if( major != DB_VERSION_MAJOR ||
20326 minor < DB_VERSION_MINOR )
20328 printf("Berkeley DB version mismatch\n"
20329 "\theader: %s\n\tlibrary: %s\n",
20330 DB_VERSION_STRING, version);
20336 #if DB_VERSION_MAJOR > 2
20337 db_env_create( NULL, 0 );
20338 #elif DB_VERSION_MAJOR > 1
20339 db_appexit( NULL );
20341 (void) dbopen( NULL, 0, 0, 0, NULL);
20346 if { (eval echo configure:20347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20350 echo "configure: failed program was:" >&5
20351 cat conftest.$ac_ext >&5
20361 echo "$ac_t""$ol_cv_db_db2" 1>&6
20363 if test $ol_cv_db_db2 = yes ; then
20368 if test $ol_cv_lib_db = no ; then
20369 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
20370 echo "configure:20371: checking for Berkeley DB link (-ldb-2)" >&5
20371 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
20372 echo $ac_n "(cached) $ac_c" 1>&6
20377 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20379 cat > conftest.$ac_ext <<EOF
20380 #line 20381 "configure"
20381 #include "confdefs.h"
20383 #ifdef HAVE_DB_185_H
20384 # include <db_185.h>
20389 #ifndef DB_VERSION_MAJOR
20390 # define DB_VERSION_MAJOR 1
20394 #define NULL ((void*)0)
20399 #if DB_VERSION_MAJOR > 1
20402 int major, minor, patch;
20404 version = db_version( &major, &minor, &patch );
20406 if( major != DB_VERSION_MAJOR ||
20407 minor < DB_VERSION_MINOR )
20409 printf("Berkeley DB version mismatch\n"
20410 "\theader: %s\n\tlibrary: %s\n",
20411 DB_VERSION_STRING, version);
20417 #if DB_VERSION_MAJOR > 2
20418 db_env_create( NULL, 0 );
20419 #elif DB_VERSION_MAJOR > 1
20420 db_appexit( NULL );
20422 (void) dbopen( NULL, 0, 0, 0, NULL);
20427 if { (eval echo configure:20428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20431 echo "configure: failed program was:" >&5
20432 cat conftest.$ac_ext >&5
20442 echo "$ac_t""$ol_cv_db_db_2" 1>&6
20444 if test $ol_cv_db_db_2 = yes ; then
20445 ol_cv_lib_db=-ldb-2
20449 if test $ol_cv_lib_db = no ; then
20450 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
20451 echo "configure:20452: checking for Berkeley DB link (-ldb1)" >&5
20452 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
20453 echo $ac_n "(cached) $ac_c" 1>&6
20458 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20460 cat > conftest.$ac_ext <<EOF
20461 #line 20462 "configure"
20462 #include "confdefs.h"
20464 #ifdef HAVE_DB_185_H
20465 # include <db_185.h>
20470 #ifndef DB_VERSION_MAJOR
20471 # define DB_VERSION_MAJOR 1
20475 #define NULL ((void*)0)
20480 #if DB_VERSION_MAJOR > 1
20483 int major, minor, patch;
20485 version = db_version( &major, &minor, &patch );
20487 if( major != DB_VERSION_MAJOR ||
20488 minor < DB_VERSION_MINOR )
20490 printf("Berkeley DB version mismatch\n"
20491 "\theader: %s\n\tlibrary: %s\n",
20492 DB_VERSION_STRING, version);
20498 #if DB_VERSION_MAJOR > 2
20499 db_env_create( NULL, 0 );
20500 #elif DB_VERSION_MAJOR > 1
20501 db_appexit( NULL );
20503 (void) dbopen( NULL, 0, 0, 0, NULL);
20508 if { (eval echo configure:20509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20512 echo "configure: failed program was:" >&5
20513 cat conftest.$ac_ext >&5
20523 echo "$ac_t""$ol_cv_db_db1" 1>&6
20525 if test $ol_cv_db_db1 = yes ; then
20530 if test $ol_cv_lib_db = no ; then
20531 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
20532 echo "configure:20533: checking for Berkeley DB link (-ldb-1)" >&5
20533 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
20534 echo $ac_n "(cached) $ac_c" 1>&6
20539 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20541 cat > conftest.$ac_ext <<EOF
20542 #line 20543 "configure"
20543 #include "confdefs.h"
20545 #ifdef HAVE_DB_185_H
20546 # include <db_185.h>
20551 #ifndef DB_VERSION_MAJOR
20552 # define DB_VERSION_MAJOR 1
20556 #define NULL ((void*)0)
20561 #if DB_VERSION_MAJOR > 1
20564 int major, minor, patch;
20566 version = db_version( &major, &minor, &patch );
20568 if( major != DB_VERSION_MAJOR ||
20569 minor < DB_VERSION_MINOR )
20571 printf("Berkeley DB version mismatch\n"
20572 "\theader: %s\n\tlibrary: %s\n",
20573 DB_VERSION_STRING, version);
20579 #if DB_VERSION_MAJOR > 2
20580 db_env_create( NULL, 0 );
20581 #elif DB_VERSION_MAJOR > 1
20582 db_appexit( NULL );
20584 (void) dbopen( NULL, 0, 0, 0, NULL);
20589 if { (eval echo configure:20590: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20593 echo "configure: failed program was:" >&5
20594 cat conftest.$ac_ext >&5
20604 echo "$ac_t""$ol_cv_db_db_1" 1>&6
20606 if test $ol_cv_db_db_1 = yes ; then
20607 ol_cv_lib_db=-ldb-1
20612 if test "$ol_cv_lib_db" != no ; then
20613 ol_cv_berkeley_db=yes
20614 echo $ac_n "checking for Berkeley DB version match""... $ac_c" 1>&6
20615 echo "configure:20616: checking for Berkeley DB version match" >&5
20616 if eval "test \"\${ol_cv_berkeley_db_version+set}\" = set"; then
20617 echo $ac_n "(cached) $ac_c" 1>&6
20621 LIBS="$LTHREAD_LIBS $LIBS"
20622 if test $ol_cv_lib_db != yes ; then
20623 LIBS="$ol_cv_lib_db $LIBS"
20626 if test "$cross_compiling" = yes; then
20627 ol_cv_berkeley_db_version=cross
20629 cat > conftest.$ac_ext <<EOF
20630 #line 20631 "configure"
20631 #include "confdefs.h"
20633 #ifdef HAVE_DB_185_H
20638 #ifndef DB_VERSION_MAJOR
20639 # define DB_VERSION_MAJOR 1
20642 #define NULL ((void *)0)
20646 #if DB_VERSION_MAJOR > 1
20648 int major, minor, patch;
20650 version = db_version( &major, &minor, &patch );
20652 if( major != DB_VERSION_MAJOR ||
20653 minor != DB_VERSION_MINOR ||
20654 patch != DB_VERSION_PATCH )
20656 printf("Berkeley DB version mismatch\n"
20657 "\theader: %s\n\tlibrary: %s\n",
20658 DB_VERSION_STRING, version);
20666 if { (eval echo configure:20667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
20668 ol_cv_berkeley_db_version=yes
20670 echo "configure: failed program was:" >&5
20671 cat conftest.$ac_ext >&5
20673 ol_cv_berkeley_db_version=no
20683 echo "$ac_t""$ol_cv_berkeley_db_version" 1>&6
20685 if test $ol_cv_berkeley_db_version = no ; then
20686 { echo "configure: error: Berkeley DB version mismatch" 1>&2; exit 1; }
20689 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
20690 echo "configure:20691: checking for Berkeley DB thread support" >&5
20691 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
20692 echo $ac_n "(cached) $ac_c" 1>&6
20696 LIBS="$LTHREAD_LIBS $LIBS"
20697 if test $ol_cv_lib_db != yes ; then
20698 LIBS="$ol_cv_lib_db $LIBS"
20701 if test "$cross_compiling" = yes; then
20702 ol_cv_berkeley_db_thread=cross
20704 cat > conftest.$ac_ext <<EOF
20705 #line 20706 "configure"
20706 #include "confdefs.h"
20708 #ifdef HAVE_DB_185_H
20714 #define NULL ((void *)0)
20719 u_int32_t flags = DB_CREATE |
20725 #if DB_VERSION_MAJOR > 2
20726 DB_ENV *env = NULL;
20728 rc = db_env_create( &env, 0 );
20730 flags |= DB_INIT_MPOOL;
20731 #ifdef DB_MPOOL_PRIVATE
20732 flags |= DB_MPOOL_PRIVATE;
20736 printf("BerkeleyDB: %s\n", db_strerror(rc) );
20740 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
20741 rc = env->open( env, NULL, flags, 0 );
20743 rc = env->open( env, NULL, NULL, flags, 0 );
20747 rc = env->close( env, 0 );
20751 printf("BerkeleyDB: %s\n", db_strerror(rc) );
20757 memset( &env, '\0', sizeof(env) );
20759 rc = db_appinit( NULL, NULL, &env, flags );
20762 db_appexit( &env );
20765 unlink("__db_mpool.share");
20766 unlink("__db_lock.share");
20772 if { (eval echo configure:20773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
20774 ol_cv_berkeley_db_thread=yes
20776 echo "configure: failed program was:" >&5
20777 cat conftest.$ac_ext >&5
20779 ol_cv_berkeley_db_thread=no
20789 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
20791 if test $ol_cv_berkeley_db_thread != no ; then
20792 cat >> confdefs.h <<\EOF
20793 #define HAVE_BERKELEY_DB_THREAD 1
20803 if test $ol_cv_berkeley_db != no ; then
20804 cat >> confdefs.h <<\EOF
20805 #define HAVE_BERKELEY_DB 1
20809 ol_link_ldbm=berkeley
20810 ol_with_ldbm_api=berkeley
20812 if test $ol_with_ldbm_type = hash ; then
20813 cat >> confdefs.h <<\EOF
20814 #define LDBM_USE_DBHASH 1
20818 cat >> confdefs.h <<\EOF
20819 #define LDBM_USE_DBBTREE 1
20824 if test $ol_cv_lib_db != yes ; then
20825 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
20830 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
20831 if test $ol_link_ldbm != berkeley ; then
20832 { echo "configure: error: BDB/HDB: BerkeleyDB not available" 1>&2; exit 1; }
20834 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
20835 echo "configure:20836: checking Berkeley DB version for BDB backend" >&5
20836 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
20837 echo $ac_n "(cached) $ac_c" 1>&6
20840 cat > conftest.$ac_ext <<EOF
20841 #line 20842 "configure"
20842 #include "confdefs.h"
20846 /* this check could be improved */
20847 #ifndef DB_VERSION_MAJOR
20848 # define DB_VERSION_MAJOR 1
20850 #ifndef DB_VERSION_MINOR
20851 # define DB_VERSION_MINOR 0
20854 /* require 4.2 or later */
20855 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
20856 __db_version_compat
20860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20861 egrep "__db_version_compat" >/dev/null 2>&1; then
20863 ol_cv_bdb_compat=yes
20866 ol_cv_bdb_compat=no
20872 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
20875 if test $ol_cv_bdb_compat != yes ; then
20876 { echo "configure: error: BDB/HDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
20881 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
20882 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
20883 ol_with_ldbm_api=none
20886 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
20887 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
20888 echo "configure:20889: checking for MDBM library" >&5
20889 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
20890 echo $ac_n "(cached) $ac_c" 1>&6
20893 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
20894 echo "configure:20895: checking for mdbm_set_chain" >&5
20895 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
20896 echo $ac_n "(cached) $ac_c" 1>&6
20898 cat > conftest.$ac_ext <<EOF
20899 #line 20900 "configure"
20900 #include "confdefs.h"
20901 /* System header to define __stub macros and hopefully few prototypes,
20902 which can conflict with char mdbm_set_chain(); below. */
20903 #include <assert.h>
20904 /* Override any gcc2 internal prototype to avoid an error. */
20905 /* We use char because int might match the return type of a gcc2
20906 builtin and then its argument prototype would still apply. */
20907 char mdbm_set_chain();
20912 /* The GNU C library defines this for functions which it implements
20913 to always fail with ENOSYS. Some functions are actually named
20914 something starting with __ and the normal name is an alias. */
20915 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
20918 f = mdbm_set_chain;
20923 if { (eval echo configure:20924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20925 eval "ac_cv_func_mdbm_set_chain=yes"
20927 echo "configure: failed program was:" >&5
20928 cat conftest.$ac_ext >&5
20930 eval "ac_cv_func_mdbm_set_chain=no"
20935 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
20936 echo "$ac_t""yes" 1>&6
20939 echo "$ac_t""no" 1>&6
20941 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
20942 echo "configure:20943: checking for mdbm_set_chain in -lmdbm" >&5
20943 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
20944 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20945 echo $ac_n "(cached) $ac_c" 1>&6
20947 ac_save_LIBS="$LIBS"
20948 LIBS="-lmdbm $LIBS"
20949 cat > conftest.$ac_ext <<EOF
20950 #line 20951 "configure"
20951 #include "confdefs.h"
20952 /* Override any gcc2 internal prototype to avoid an error. */
20953 /* We use char because int might match the return type of a gcc2
20954 builtin and then its argument prototype would still apply. */
20955 char mdbm_set_chain();
20961 if { (eval echo configure:20962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20963 eval "ac_cv_lib_$ac_lib_var=yes"
20965 echo "configure: failed program was:" >&5
20966 cat conftest.$ac_ext >&5
20968 eval "ac_cv_lib_$ac_lib_var=no"
20971 LIBS="$ac_save_LIBS"
20974 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
20975 echo "$ac_t""yes" 1>&6
20976 ol_cv_lib_mdbm=-lmdbm
20978 echo "$ac_t""no" 1>&6
20989 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
20992 for ac_hdr in mdbm.h
20994 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
20995 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
20996 echo "configure:20997: checking for $ac_hdr" >&5
20997 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
20998 echo $ac_n "(cached) $ac_c" 1>&6
21000 cat > conftest.$ac_ext <<EOF
21001 #line 21002 "configure"
21002 #include "confdefs.h"
21005 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21006 { (eval echo configure:21007: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21007 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21008 if test -z "$ac_err"; then
21010 eval "ac_cv_header_$ac_safe=yes"
21013 echo "configure: failed program was:" >&5
21014 cat conftest.$ac_ext >&5
21016 eval "ac_cv_header_$ac_safe=no"
21020 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21021 echo "$ac_t""yes" 1>&6
21022 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21023 cat >> confdefs.h <<EOF
21024 #define $ac_tr_hdr 1
21028 echo "$ac_t""no" 1>&6
21032 echo $ac_n "checking for db""... $ac_c" 1>&6
21033 echo "configure:21034: checking for db" >&5
21034 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
21035 echo $ac_n "(cached) $ac_c" 1>&6
21038 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
21046 echo "$ac_t""$ol_cv_mdbm" 1>&6
21047 if test $ol_cv_mdbm = yes ; then
21048 cat >> confdefs.h <<\EOF
21049 #define HAVE_MDBM 1
21055 if test $ol_cv_mdbm = yes ; then
21057 ol_with_ldbm_api=mdbm
21058 if test $ol_cv_lib_mdbm != yes ; then
21059 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
21064 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
21065 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
21066 echo "configure:21067: checking for GDBM library" >&5
21067 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
21068 echo $ac_n "(cached) $ac_c" 1>&6
21071 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
21072 echo "configure:21073: checking for gdbm_open" >&5
21073 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
21074 echo $ac_n "(cached) $ac_c" 1>&6
21076 cat > conftest.$ac_ext <<EOF
21077 #line 21078 "configure"
21078 #include "confdefs.h"
21079 /* System header to define __stub macros and hopefully few prototypes,
21080 which can conflict with char gdbm_open(); below. */
21081 #include <assert.h>
21082 /* Override any gcc2 internal prototype to avoid an error. */
21083 /* We use char because int might match the return type of a gcc2
21084 builtin and then its argument prototype would still apply. */
21090 /* The GNU C library defines this for functions which it implements
21091 to always fail with ENOSYS. Some functions are actually named
21092 something starting with __ and the normal name is an alias. */
21093 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
21101 if { (eval echo configure:21102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21103 eval "ac_cv_func_gdbm_open=yes"
21105 echo "configure: failed program was:" >&5
21106 cat conftest.$ac_ext >&5
21108 eval "ac_cv_func_gdbm_open=no"
21113 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
21114 echo "$ac_t""yes" 1>&6
21117 echo "$ac_t""no" 1>&6
21119 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
21120 echo "configure:21121: checking for gdbm_open in -lgdbm" >&5
21121 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
21122 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21123 echo $ac_n "(cached) $ac_c" 1>&6
21125 ac_save_LIBS="$LIBS"
21126 LIBS="-lgdbm $LIBS"
21127 cat > conftest.$ac_ext <<EOF
21128 #line 21129 "configure"
21129 #include "confdefs.h"
21130 /* Override any gcc2 internal prototype to avoid an error. */
21131 /* We use char because int might match the return type of a gcc2
21132 builtin and then its argument prototype would still apply. */
21139 if { (eval echo configure:21140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21141 eval "ac_cv_lib_$ac_lib_var=yes"
21143 echo "configure: failed program was:" >&5
21144 cat conftest.$ac_ext >&5
21146 eval "ac_cv_lib_$ac_lib_var=no"
21149 LIBS="$ac_save_LIBS"
21152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21153 echo "$ac_t""yes" 1>&6
21154 ol_cv_lib_gdbm=-lgdbm
21156 echo "$ac_t""no" 1>&6
21167 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
21170 for ac_hdr in gdbm.h
21172 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21173 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21174 echo "configure:21175: checking for $ac_hdr" >&5
21175 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21176 echo $ac_n "(cached) $ac_c" 1>&6
21178 cat > conftest.$ac_ext <<EOF
21179 #line 21180 "configure"
21180 #include "confdefs.h"
21183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21184 { (eval echo configure:21185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21185 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21186 if test -z "$ac_err"; then
21188 eval "ac_cv_header_$ac_safe=yes"
21191 echo "configure: failed program was:" >&5
21192 cat conftest.$ac_ext >&5
21194 eval "ac_cv_header_$ac_safe=no"
21198 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21199 echo "$ac_t""yes" 1>&6
21200 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21201 cat >> confdefs.h <<EOF
21202 #define $ac_tr_hdr 1
21206 echo "$ac_t""no" 1>&6
21210 echo $ac_n "checking for db""... $ac_c" 1>&6
21211 echo "configure:21212: checking for db" >&5
21212 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
21213 echo $ac_n "(cached) $ac_c" 1>&6
21216 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
21224 echo "$ac_t""$ol_cv_gdbm" 1>&6
21225 if test $ol_cv_gdbm = yes ; then
21226 cat >> confdefs.h <<\EOF
21227 #define HAVE_GDBM 1
21233 if test $ol_cv_gdbm = yes ; then
21235 ol_with_ldbm_api=gdbm
21237 if test $ol_cv_lib_gdbm != yes ; then
21238 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
21243 if test $ol_with_ldbm_api = ndbm ; then
21244 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
21245 echo "configure:21246: checking for NDBM library" >&5
21246 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
21247 echo $ac_n "(cached) $ac_c" 1>&6
21250 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
21251 echo "configure:21252: checking for dbm_open" >&5
21252 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
21253 echo $ac_n "(cached) $ac_c" 1>&6
21255 cat > conftest.$ac_ext <<EOF
21256 #line 21257 "configure"
21257 #include "confdefs.h"
21258 /* System header to define __stub macros and hopefully few prototypes,
21259 which can conflict with char dbm_open(); below. */
21260 #include <assert.h>
21261 /* Override any gcc2 internal prototype to avoid an error. */
21262 /* We use char because int might match the return type of a gcc2
21263 builtin and then its argument prototype would still apply. */
21269 /* The GNU C library defines this for functions which it implements
21270 to always fail with ENOSYS. Some functions are actually named
21271 something starting with __ and the normal name is an alias. */
21272 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
21280 if { (eval echo configure:21281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21282 eval "ac_cv_func_dbm_open=yes"
21284 echo "configure: failed program was:" >&5
21285 cat conftest.$ac_ext >&5
21287 eval "ac_cv_func_dbm_open=no"
21292 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
21293 echo "$ac_t""yes" 1>&6
21296 echo "$ac_t""no" 1>&6
21298 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
21299 echo "configure:21300: checking for dbm_open in -lndbm" >&5
21300 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
21301 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21302 echo $ac_n "(cached) $ac_c" 1>&6
21304 ac_save_LIBS="$LIBS"
21305 LIBS="-lndbm $LIBS"
21306 cat > conftest.$ac_ext <<EOF
21307 #line 21308 "configure"
21308 #include "confdefs.h"
21309 /* Override any gcc2 internal prototype to avoid an error. */
21310 /* We use char because int might match the return type of a gcc2
21311 builtin and then its argument prototype would still apply. */
21318 if { (eval echo configure:21319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21320 eval "ac_cv_lib_$ac_lib_var=yes"
21322 echo "configure: failed program was:" >&5
21323 cat conftest.$ac_ext >&5
21325 eval "ac_cv_lib_$ac_lib_var=no"
21328 LIBS="$ac_save_LIBS"
21331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21332 echo "$ac_t""yes" 1>&6
21333 ol_cv_lib_ndbm=-lndbm
21335 echo "$ac_t""no" 1>&6
21337 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
21338 echo "configure:21339: checking for dbm_open in -ldbm" >&5
21339 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
21340 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21341 echo $ac_n "(cached) $ac_c" 1>&6
21343 ac_save_LIBS="$LIBS"
21345 cat > conftest.$ac_ext <<EOF
21346 #line 21347 "configure"
21347 #include "confdefs.h"
21348 /* Override any gcc2 internal prototype to avoid an error. */
21349 /* We use char because int might match the return type of a gcc2
21350 builtin and then its argument prototype would still apply. */
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_lib_$ac_lib_var=yes"
21361 echo "configure: failed program was:" >&5
21362 cat conftest.$ac_ext >&5
21364 eval "ac_cv_lib_$ac_lib_var=no"
21367 LIBS="$ac_save_LIBS"
21370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21371 echo "$ac_t""yes" 1>&6
21372 ol_cv_lib_ndbm=-ldbm
21374 echo "$ac_t""no" 1>&6
21387 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
21390 for ac_hdr in ndbm.h
21392 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21393 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21394 echo "configure:21395: checking for $ac_hdr" >&5
21395 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21396 echo $ac_n "(cached) $ac_c" 1>&6
21398 cat > conftest.$ac_ext <<EOF
21399 #line 21400 "configure"
21400 #include "confdefs.h"
21403 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21404 { (eval echo configure:21405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21405 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21406 if test -z "$ac_err"; then
21408 eval "ac_cv_header_$ac_safe=yes"
21411 echo "configure: failed program was:" >&5
21412 cat conftest.$ac_ext >&5
21414 eval "ac_cv_header_$ac_safe=no"
21418 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21419 echo "$ac_t""yes" 1>&6
21420 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21421 cat >> confdefs.h <<EOF
21422 #define $ac_tr_hdr 1
21426 echo "$ac_t""no" 1>&6
21430 echo $ac_n "checking for db""... $ac_c" 1>&6
21431 echo "configure:21432: checking for db" >&5
21432 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
21433 echo $ac_n "(cached) $ac_c" 1>&6
21436 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
21444 echo "$ac_t""$ol_cv_ndbm" 1>&6
21445 if test $ol_cv_ndbm = yes ; then
21446 cat >> confdefs.h <<\EOF
21447 #define HAVE_NDBM 1
21453 if test $ol_cv_ndbm = yes ; then
21455 ol_with_ldbm_api=ndbm
21457 if test $ol_cv_lib_ndbm != yes ; then
21458 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
21463 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
21464 { echo "configure: error: could not find suitable LDBM backend" 1>&2; exit 1; }
21467 if test $ol_enable_bdb = yes -o \
21468 $ol_enable_hdb = yes -o \
21469 $ol_enable_ldbm = yes ; then
21470 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
21474 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
21475 BUILD_LIBS_DYNAMIC=shared
21476 cat >> confdefs.h <<\EOF
21477 #define LDAP_LIBS_DYNAMIC 1
21482 BUILD_LIBS_DYNAMIC=static
21486 if test $ol_enable_wrappers != no ; then
21487 for ac_hdr in tcpd.h
21489 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21490 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21491 echo "configure:21492: checking for $ac_hdr" >&5
21492 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21493 echo $ac_n "(cached) $ac_c" 1>&6
21495 cat > conftest.$ac_ext <<EOF
21496 #line 21497 "configure"
21497 #include "confdefs.h"
21500 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21501 { (eval echo configure:21502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21502 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21503 if test -z "$ac_err"; then
21505 eval "ac_cv_header_$ac_safe=yes"
21508 echo "configure: failed program was:" >&5
21509 cat conftest.$ac_ext >&5
21511 eval "ac_cv_header_$ac_safe=no"
21515 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21516 echo "$ac_t""yes" 1>&6
21517 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21518 cat >> confdefs.h <<EOF
21519 #define $ac_tr_hdr 1
21522 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
21523 echo "configure:21524: checking for TCP wrappers library" >&5
21525 LIBS="$LIBS -lwrap"
21526 cat > conftest.$ac_ext <<EOF
21527 #line 21528 "configure"
21528 #include "confdefs.h"
21531 int allow_severity = 0;
21532 int deny_severity = 0;
21534 struct request_info *req;
21542 if { (eval echo configure:21543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21544 echo "$ac_t""-lwrap" 1>&6
21548 echo "configure: failed program was:" >&5
21549 cat conftest.$ac_ext >&5
21553 cat > conftest.$ac_ext <<EOF
21554 #line 21555 "configure"
21555 #include "confdefs.h"
21558 int allow_severity = 0;
21559 int deny_severity = 0;
21561 struct request_info *req;
21569 if { (eval echo configure:21570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21571 echo "$ac_t""-lwrap -lnsl" 1>&6
21573 LIBS="$save_LIBS -lnsl"
21575 echo "configure: failed program was:" >&5
21576 cat conftest.$ac_ext >&5
21579 echo "$ac_t""no" 1>&6
21587 echo "$ac_t""no" 1>&6
21593 if test $have_wrappers = yes ; then
21594 cat >> confdefs.h <<\EOF
21595 #define HAVE_TCPD 1
21599 elif test $ol_enable_wrappers = yes ; then
21600 { echo "configure: error: could not find TCP wrappers, select apppropriate options or disable" 1>&2; exit 1; }
21602 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
21607 if test $ol_enable_syslog != no ; then
21608 echo $ac_n "checking for openlog""... $ac_c" 1>&6
21609 echo "configure:21610: checking for openlog" >&5
21610 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
21611 echo $ac_n "(cached) $ac_c" 1>&6
21613 cat > conftest.$ac_ext <<EOF
21614 #line 21615 "configure"
21615 #include "confdefs.h"
21616 /* System header to define __stub macros and hopefully few prototypes,
21617 which can conflict with char openlog(); below. */
21618 #include <assert.h>
21619 /* Override any gcc2 internal prototype to avoid an error. */
21620 /* We use char because int might match the return type of a gcc2
21621 builtin and then its argument prototype would still apply. */
21627 /* The GNU C library defines this for functions which it implements
21628 to always fail with ENOSYS. Some functions are actually named
21629 something starting with __ and the normal name is an alias. */
21630 #if defined (__stub_openlog) || defined (__stub___openlog)
21638 if { (eval echo configure:21639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21640 eval "ac_cv_func_openlog=yes"
21642 echo "configure: failed program was:" >&5
21643 cat conftest.$ac_ext >&5
21645 eval "ac_cv_func_openlog=no"
21650 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
21651 echo "$ac_t""yes" 1>&6
21654 echo "$ac_t""no" 1>&6
21657 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
21658 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
21660 ol_enable_syslog=$ac_cv_func_openlog
21665 if test $ol_enable_sql != no ; then
21666 for ac_hdr in sql.h sqlext.h
21668 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21669 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21670 echo "configure:21671: checking for $ac_hdr" >&5
21671 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21672 echo $ac_n "(cached) $ac_c" 1>&6
21674 cat > conftest.$ac_ext <<EOF
21675 #line 21676 "configure"
21676 #include "confdefs.h"
21679 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21680 { (eval echo configure:21681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21681 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21682 if test -z "$ac_err"; then
21684 eval "ac_cv_header_$ac_safe=yes"
21687 echo "configure: failed program was:" >&5
21688 cat conftest.$ac_ext >&5
21690 eval "ac_cv_header_$ac_safe=no"
21694 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21695 echo "$ac_t""yes" 1>&6
21696 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21697 cat >> confdefs.h <<EOF
21698 #define $ac_tr_hdr 1
21702 echo "$ac_t""no" 1>&6
21703 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
21710 LIBS="$LTHREAD_LIBS"
21712 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
21713 echo "configure:21714: checking for SQLDriverConnect in -liodbc" >&5
21714 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
21715 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21716 echo $ac_n "(cached) $ac_c" 1>&6
21718 ac_save_LIBS="$LIBS"
21719 LIBS="-liodbc $LIBS"
21720 cat > conftest.$ac_ext <<EOF
21721 #line 21722 "configure"
21722 #include "confdefs.h"
21723 /* Override any gcc2 internal prototype to avoid an error. */
21724 /* We use char because int might match the return type of a gcc2
21725 builtin and then its argument prototype would still apply. */
21726 char SQLDriverConnect();
21732 if { (eval echo configure:21733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21734 eval "ac_cv_lib_$ac_lib_var=yes"
21736 echo "configure: failed program was:" >&5
21737 cat conftest.$ac_ext >&5
21739 eval "ac_cv_lib_$ac_lib_var=no"
21742 LIBS="$ac_save_LIBS"
21745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21746 echo "$ac_t""yes" 1>&6
21749 echo "$ac_t""no" 1>&6
21753 if test $have_iodbc = yes ; then
21754 ol_link_sql="-liodbc"
21756 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
21757 echo "configure:21758: checking for SQLDriverConnect in -lodbc" >&5
21758 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
21759 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21760 echo $ac_n "(cached) $ac_c" 1>&6
21762 ac_save_LIBS="$LIBS"
21763 LIBS="-lodbc $LIBS"
21764 cat > conftest.$ac_ext <<EOF
21765 #line 21766 "configure"
21766 #include "confdefs.h"
21767 /* Override any gcc2 internal prototype to avoid an error. */
21768 /* We use char because int might match the return type of a gcc2
21769 builtin and then its argument prototype would still apply. */
21770 char SQLDriverConnect();
21776 if { (eval echo configure:21777: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21778 eval "ac_cv_lib_$ac_lib_var=yes"
21780 echo "configure: failed program was:" >&5
21781 cat conftest.$ac_ext >&5
21783 eval "ac_cv_lib_$ac_lib_var=no"
21786 LIBS="$ac_save_LIBS"
21789 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21790 echo "$ac_t""yes" 1>&6
21793 echo "$ac_t""no" 1>&6
21797 if test $have_odbc = yes ; then
21798 ol_link_sql="-lodbc"
21804 if test $ol_link_sql != no ; then
21805 SLAPD_SQL_LIBS="$ol_link_sql"
21807 elif test $ol_enable_sql != auto ; then
21808 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
21815 if test $ol_with_cyrus_sasl != no ; then
21816 for ac_hdr in sasl/sasl.h sasl.h
21818 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21819 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21820 echo "configure:21821: checking for $ac_hdr" >&5
21821 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21822 echo $ac_n "(cached) $ac_c" 1>&6
21824 cat > conftest.$ac_ext <<EOF
21825 #line 21826 "configure"
21826 #include "confdefs.h"
21829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21830 { (eval echo configure:21831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21832 if test -z "$ac_err"; then
21834 eval "ac_cv_header_$ac_safe=yes"
21837 echo "configure: failed program was:" >&5
21838 cat conftest.$ac_ext >&5
21840 eval "ac_cv_header_$ac_safe=no"
21844 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21845 echo "$ac_t""yes" 1>&6
21846 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21847 cat >> confdefs.h <<EOF
21848 #define $ac_tr_hdr 1
21852 echo "$ac_t""no" 1>&6
21857 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
21858 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
21859 echo "configure:21860: checking for sasl_client_init in -lsasl2" >&5
21860 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
21861 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21862 echo $ac_n "(cached) $ac_c" 1>&6
21864 ac_save_LIBS="$LIBS"
21865 LIBS="-lsasl2 $LIBS"
21866 cat > conftest.$ac_ext <<EOF
21867 #line 21868 "configure"
21868 #include "confdefs.h"
21869 /* Override any gcc2 internal prototype to avoid an error. */
21870 /* We use char because int might match the return type of a gcc2
21871 builtin and then its argument prototype would still apply. */
21872 char sasl_client_init();
21878 if { (eval echo configure:21879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21880 eval "ac_cv_lib_$ac_lib_var=yes"
21882 echo "configure: failed program was:" >&5
21883 cat conftest.$ac_ext >&5
21885 eval "ac_cv_lib_$ac_lib_var=no"
21888 LIBS="$ac_save_LIBS"
21891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21892 echo "$ac_t""yes" 1>&6
21893 ol_link_sasl="-lsasl2"
21895 echo "$ac_t""no" 1>&6
21896 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
21897 echo "configure:21898: checking for sasl_client_init in -lsasl" >&5
21898 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
21899 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21900 echo $ac_n "(cached) $ac_c" 1>&6
21902 ac_save_LIBS="$LIBS"
21903 LIBS="-lsasl $LIBS"
21904 cat > conftest.$ac_ext <<EOF
21905 #line 21906 "configure"
21906 #include "confdefs.h"
21907 /* Override any gcc2 internal prototype to avoid an error. */
21908 /* We use char because int might match the return type of a gcc2
21909 builtin and then its argument prototype would still apply. */
21910 char sasl_client_init();
21916 if { (eval echo configure:21917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21918 eval "ac_cv_lib_$ac_lib_var=yes"
21920 echo "configure: failed program was:" >&5
21921 cat conftest.$ac_ext >&5
21923 eval "ac_cv_lib_$ac_lib_var=no"
21926 LIBS="$ac_save_LIBS"
21929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21930 echo "$ac_t""yes" 1>&6
21931 ol_link_sasl="-lsasl"
21933 echo "$ac_t""no" 1>&6
21940 if test $ol_link_sasl = no ; then
21941 if test $ol_with_cyrus_sasl != auto ; then
21942 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
21944 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
21945 echo "configure: warning: SASL authentication not supported!" 1>&2
21946 if test $ol_link_tls = no ; then
21947 echo "configure: warning: Strong authentication not supported!" 1>&2
21951 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
21952 echo "configure:21953: checking Cyrus SASL library version" >&5
21953 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
21954 echo $ac_n "(cached) $ac_c" 1>&6
21957 cat > conftest.$ac_ext <<EOF
21958 #line 21959 "configure"
21959 #include "confdefs.h"
21961 #ifdef HAVE_SASL_SASL_H
21962 #include <sasl/sasl.h>
21967 /* Require 2.1.15+ */
21968 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
21969 char *__sasl_compat = "2.2+ or better okay (we guess)";
21970 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
21971 && SASL_VERSION_STEP >=15
21972 char *__sasl_compat = "2.1.15+ or better okay";
21976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21977 egrep "__sasl_compat" >/dev/null 2>&1; then
21979 ol_cv_sasl_compat=yes
21982 ol_cv_sasl_compat=no
21988 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
21990 if test $ol_cv_sasl_compat = no ; then
21992 { echo "configure: error: Cyrus SASL library located but is incompatible" 1>&2; exit 1; }
21995 cat >> confdefs.h <<\EOF
21996 #define HAVE_CYRUS_SASL 1
21999 SASL_LIBS="$ol_link_sasl"
22000 if test $ol_enable_spasswd != no ; then
22001 ol_link_spasswd=yes
22004 ac_save_LIBS="$LIBS"
22005 LIBS="$LIBS $ol_link_sasl"
22006 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
22007 echo "configure:22008: checking for sasl_version" >&5
22008 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
22009 echo $ac_n "(cached) $ac_c" 1>&6
22011 cat > conftest.$ac_ext <<EOF
22012 #line 22013 "configure"
22013 #include "confdefs.h"
22014 /* System header to define __stub macros and hopefully few prototypes,
22015 which can conflict with char sasl_version(); below. */
22016 #include <assert.h>
22017 /* Override any gcc2 internal prototype to avoid an error. */
22018 /* We use char because int might match the return type of a gcc2
22019 builtin and then its argument prototype would still apply. */
22020 char sasl_version();
22025 /* The GNU C library defines this for functions which it implements
22026 to always fail with ENOSYS. Some functions are actually named
22027 something starting with __ and the normal name is an alias. */
22028 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
22036 if { (eval echo configure:22037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22038 eval "ac_cv_func_sasl_version=yes"
22040 echo "configure: failed program was:" >&5
22041 cat conftest.$ac_ext >&5
22043 eval "ac_cv_func_sasl_version=no"
22048 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
22049 echo "$ac_t""yes" 1>&6
22050 cat >> confdefs.h <<\EOF
22051 #define HAVE_SASL_VERSION 1
22055 echo "$ac_t""no" 1>&6
22058 LIBS="$ac_save_LIBS"
22064 echo "configure: warning: SASL authentication not supported!" 1>&2
22065 if test $ol_link_tls = no ; then
22066 echo "configure: warning: Strong authentication not supported!" 1>&2
22070 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
22072 if test -r /dev/urandom ; then
22073 dev="/dev/urandom";
22074 elif test -r /idev/urandom ; then
22075 dev="/idev/urandom";
22076 elif test -r /dev/srandom ; then
22077 dev="/dev/srandom";
22078 elif test -r /dev/random ; then
22080 elif test -r /idev/random ; then
22081 dev="/idev/random";
22084 if test $dev != no ; then
22085 cat >> confdefs.h <<EOF
22086 #define URANDOM_DEVICE "$dev"
22093 if test $ol_with_fetch != no ; then
22095 LIBS="-lfetch -lcom_err $LIBS"
22096 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
22097 echo "configure:22098: checking fetch(3) library" >&5
22098 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
22099 echo $ac_n "(cached) $ac_c" 1>&6
22102 cat > conftest.$ac_ext <<EOF
22103 #line 22104 "configure"
22104 #include "confdefs.h"
22106 #include <sys/param.h>
22110 struct url *u = fetchParseURL("file:///");
22113 if { (eval echo configure:22114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22115 ol_cv_lib_fetch=yes
22117 echo "configure: failed program was:" >&5
22118 cat conftest.$ac_ext >&5
22125 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
22127 if test $ol_cv_lib_fetch != no ; then
22128 ol_link_fetch="-lfetch -lcom_err"
22129 cat >> confdefs.h <<\EOF
22130 #define HAVE_FETCH 1
22136 if test $ol_cv_lib_fetch != no ; then
22137 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
22138 ol_link_fetch=freebsd
22140 elif test $ol_with_fetch != auto ; then
22141 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
22145 if test $ol_enable_crypt != no ; then
22147 LIBS="$TLS_LIBS $LIBS"
22149 echo $ac_n "checking for crypt""... $ac_c" 1>&6
22150 echo "configure:22151: checking for crypt" >&5
22151 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
22152 echo $ac_n "(cached) $ac_c" 1>&6
22154 cat > conftest.$ac_ext <<EOF
22155 #line 22156 "configure"
22156 #include "confdefs.h"
22157 /* System header to define __stub macros and hopefully few prototypes,
22158 which can conflict with char crypt(); below. */
22159 #include <assert.h>
22160 /* Override any gcc2 internal prototype to avoid an error. */
22161 /* We use char because int might match the return type of a gcc2
22162 builtin and then its argument prototype would still apply. */
22168 /* The GNU C library defines this for functions which it implements
22169 to always fail with ENOSYS. Some functions are actually named
22170 something starting with __ and the normal name is an alias. */
22171 #if defined (__stub_crypt) || defined (__stub___crypt)
22179 if { (eval echo configure:22180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22181 eval "ac_cv_func_crypt=yes"
22183 echo "configure: failed program was:" >&5
22184 cat conftest.$ac_ext >&5
22186 eval "ac_cv_func_crypt=no"
22191 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
22192 echo "$ac_t""yes" 1>&6
22195 echo "$ac_t""no" 1>&6
22198 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
22199 echo "configure:22200: checking for crypt in -lcrypt" >&5
22200 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
22201 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22202 echo $ac_n "(cached) $ac_c" 1>&6
22204 ac_save_LIBS="$LIBS"
22205 LIBS="-lcrypt $LIBS"
22206 cat > conftest.$ac_ext <<EOF
22207 #line 22208 "configure"
22208 #include "confdefs.h"
22209 /* Override any gcc2 internal prototype to avoid an error. */
22210 /* We use char because int might match the return type of a gcc2
22211 builtin and then its argument prototype would still apply. */
22218 if { (eval echo configure:22219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22220 eval "ac_cv_lib_$ac_lib_var=yes"
22222 echo "configure: failed program was:" >&5
22223 cat conftest.$ac_ext >&5
22225 eval "ac_cv_lib_$ac_lib_var=no"
22228 LIBS="$ac_save_LIBS"
22231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22232 echo "$ac_t""yes" 1>&6
22233 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
22236 echo "$ac_t""no" 1>&6
22245 if test $have_crypt = yes ; then
22246 cat >> confdefs.h <<\EOF
22247 #define HAVE_CRYPT 1
22251 echo "configure: warning: could not find crypt" 1>&2
22252 if test $ol_enable_crypt = yes ; then
22253 { echo "configure: error: could not find crypt, select appropriate options or disable" 1>&2; exit 1; }
22256 echo "configure: warning: disabling crypt support" 1>&2
22261 if test $ol_enable_proctitle != no ; then
22262 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
22263 echo "configure:22264: checking for setproctitle" >&5
22264 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
22265 echo $ac_n "(cached) $ac_c" 1>&6
22267 cat > conftest.$ac_ext <<EOF
22268 #line 22269 "configure"
22269 #include "confdefs.h"
22270 /* System header to define __stub macros and hopefully few prototypes,
22271 which can conflict with char setproctitle(); below. */
22272 #include <assert.h>
22273 /* Override any gcc2 internal prototype to avoid an error. */
22274 /* We use char because int might match the return type of a gcc2
22275 builtin and then its argument prototype would still apply. */
22276 char setproctitle();
22281 /* The GNU C library defines this for functions which it implements
22282 to always fail with ENOSYS. Some functions are actually named
22283 something starting with __ and the normal name is an alias. */
22284 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
22292 if { (eval echo configure:22293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22294 eval "ac_cv_func_setproctitle=yes"
22296 echo "configure: failed program was:" >&5
22297 cat conftest.$ac_ext >&5
22299 eval "ac_cv_func_setproctitle=no"
22304 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
22305 echo "$ac_t""yes" 1>&6
22306 have_setproctitle=yes
22308 echo "$ac_t""no" 1>&6
22310 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
22311 echo "configure:22312: checking for setproctitle in -lutil" >&5
22312 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
22313 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22314 echo $ac_n "(cached) $ac_c" 1>&6
22316 ac_save_LIBS="$LIBS"
22317 LIBS="-lutil $LIBS"
22318 cat > conftest.$ac_ext <<EOF
22319 #line 22320 "configure"
22320 #include "confdefs.h"
22321 /* Override any gcc2 internal prototype to avoid an error. */
22322 /* We use char because int might match the return type of a gcc2
22323 builtin and then its argument prototype would still apply. */
22324 char setproctitle();
22330 if { (eval echo configure:22331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22332 eval "ac_cv_lib_$ac_lib_var=yes"
22334 echo "configure: failed program was:" >&5
22335 cat conftest.$ac_ext >&5
22337 eval "ac_cv_lib_$ac_lib_var=no"
22340 LIBS="$ac_save_LIBS"
22343 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22344 echo "$ac_t""yes" 1>&6
22345 have_setproctitle=yes
22346 LUTIL_LIBS="$LUTIL_LIBS -lutil"
22348 echo "$ac_t""no" 1>&6
22349 have_setproctitle=no
22350 LIBOBJS="$LIBOBJS setproctitle.o"
22351 LIBSRCS="$LIBSRCS setproctitle.c"
22357 if test $have_setproctitle = yes ; then
22358 cat >> confdefs.h <<\EOF
22359 #define HAVE_SETPROCTITLE 1
22365 if test $ol_enable_slp != no ; then
22366 for ac_hdr in slp.h
22368 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22369 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22370 echo "configure:22371: checking for $ac_hdr" >&5
22371 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22372 echo $ac_n "(cached) $ac_c" 1>&6
22374 cat > conftest.$ac_ext <<EOF
22375 #line 22376 "configure"
22376 #include "confdefs.h"
22379 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22380 { (eval echo configure:22381: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22381 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22382 if test -z "$ac_err"; then
22384 eval "ac_cv_header_$ac_safe=yes"
22387 echo "configure: failed program was:" >&5
22388 cat conftest.$ac_ext >&5
22390 eval "ac_cv_header_$ac_safe=no"
22394 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22395 echo "$ac_t""yes" 1>&6
22396 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22397 cat >> confdefs.h <<EOF
22398 #define $ac_tr_hdr 1
22402 echo "$ac_t""no" 1>&6
22407 if test $ac_cv_header_slp_h = yes ; then
22408 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
22409 echo "configure:22410: checking for SLPOpen in -lslp" >&5
22410 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
22411 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22412 echo $ac_n "(cached) $ac_c" 1>&6
22414 ac_save_LIBS="$LIBS"
22416 cat > conftest.$ac_ext <<EOF
22417 #line 22418 "configure"
22418 #include "confdefs.h"
22419 /* Override any gcc2 internal prototype to avoid an error. */
22420 /* We use char because int might match the return type of a gcc2
22421 builtin and then its argument prototype would still apply. */
22428 if { (eval echo configure:22429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22430 eval "ac_cv_lib_$ac_lib_var=yes"
22432 echo "configure: failed program was:" >&5
22433 cat conftest.$ac_ext >&5
22435 eval "ac_cv_lib_$ac_lib_var=no"
22438 LIBS="$ac_save_LIBS"
22441 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22442 echo "$ac_t""yes" 1>&6
22445 echo "$ac_t""no" 1>&6
22449 if test $have_slp = yes ; then
22450 cat >> confdefs.h <<\EOF
22454 SLAPD_SLP_LIBS=-lslp
22457 elif test $ol_enable_slp = yes ; then
22458 { echo "configure: error: SLP not found" 1>&2; exit 1; }
22462 if test "$ol_with_multiple_precision" != "no" ; then
22466 for ac_hdr in openssl/bn.h bn.h
22468 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22469 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22470 echo "configure:22471: checking for $ac_hdr" >&5
22471 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22472 echo $ac_n "(cached) $ac_c" 1>&6
22474 cat > conftest.$ac_ext <<EOF
22475 #line 22476 "configure"
22476 #include "confdefs.h"
22479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22480 { (eval echo configure:22481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22482 if test -z "$ac_err"; then
22484 eval "ac_cv_header_$ac_safe=yes"
22487 echo "configure: failed program was:" >&5
22488 cat conftest.$ac_ext >&5
22490 eval "ac_cv_header_$ac_safe=no"
22494 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22495 echo "$ac_t""yes" 1>&6
22496 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22497 cat >> confdefs.h <<EOF
22498 #define $ac_tr_hdr 1
22502 echo "$ac_t""no" 1>&6
22506 for ac_hdr in openssl/crypto.h crypto.h
22508 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22509 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22510 echo "configure:22511: checking for $ac_hdr" >&5
22511 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22512 echo $ac_n "(cached) $ac_c" 1>&6
22514 cat > conftest.$ac_ext <<EOF
22515 #line 22516 "configure"
22516 #include "confdefs.h"
22519 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22520 { (eval echo configure:22521: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22521 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22522 if test -z "$ac_err"; then
22524 eval "ac_cv_header_$ac_safe=yes"
22527 echo "configure: failed program was:" >&5
22528 cat conftest.$ac_ext >&5
22530 eval "ac_cv_header_$ac_safe=no"
22534 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22535 echo "$ac_t""yes" 1>&6
22536 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22537 cat >> confdefs.h <<EOF
22538 #define $ac_tr_hdr 1
22542 echo "$ac_t""no" 1>&6
22546 for ac_hdr in gmp.h
22548 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22549 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22550 echo "configure:22551: checking for $ac_hdr" >&5
22551 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22552 echo $ac_n "(cached) $ac_c" 1>&6
22554 cat > conftest.$ac_ext <<EOF
22555 #line 22556 "configure"
22556 #include "confdefs.h"
22559 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22560 { (eval echo configure:22561: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22561 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22562 if test -z "$ac_err"; then
22564 eval "ac_cv_header_$ac_safe=yes"
22567 echo "configure: failed program was:" >&5
22568 cat conftest.$ac_ext >&5
22570 eval "ac_cv_header_$ac_safe=no"
22574 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22575 echo "$ac_t""yes" 1>&6
22576 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22577 cat >> confdefs.h <<EOF
22578 #define $ac_tr_hdr 1
22582 echo "$ac_t""no" 1>&6
22587 if test "$ol_with_tls" = "found" ; then
22589 ol_have_crypto_h=no
22591 if test "$ac_cv_header_openssl_bn_h" = "yes" \
22592 -o "$ac_cv_header_bn_h" = "yes" ; then
22596 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
22597 -o "$ac_cv_header_crypto_h" = "yes" ; then
22598 ol_have_crypto_h=yes
22601 if test "$ol_have_bn_h" = "yes" \
22602 -a "$ol_have_crypto_h" = "yes" ; then
22607 if test $ac_cv_header_gmp_h = yes ; then
22608 echo $ac_n "checking for __gmpz_add_ui in -lgmp""... $ac_c" 1>&6
22609 echo "configure:22610: checking for __gmpz_add_ui in -lgmp" >&5
22610 ac_lib_var=`echo gmp'_'__gmpz_add_ui | sed 'y%./+-:%__p__%'`
22611 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22612 echo $ac_n "(cached) $ac_c" 1>&6
22614 ac_save_LIBS="$LIBS"
22616 cat > conftest.$ac_ext <<EOF
22617 #line 22618 "configure"
22618 #include "confdefs.h"
22619 /* Override any gcc2 internal prototype to avoid an error. */
22620 /* We use char because int might match the return type of a gcc2
22621 builtin and then its argument prototype would still apply. */
22622 char __gmpz_add_ui();
22628 if { (eval echo configure:22629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22630 eval "ac_cv_lib_$ac_lib_var=yes"
22632 echo "configure: failed program was:" >&5
22633 cat conftest.$ac_ext >&5
22635 eval "ac_cv_lib_$ac_lib_var=no"
22638 LIBS="$ac_save_LIBS"
22641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22642 echo "$ac_t""yes" 1>&6
22645 echo "$ac_t""no" 1>&6
22649 if test $have_gmp = yes ; then
22654 echo $ac_n "checking for multiple precision support""... $ac_c" 1>&6
22655 echo "configure:22656: checking for multiple precision support" >&5
22657 ol_mp_support="none"
22658 case "$ol_with_multiple_precision" in
22660 if test "$ol_have_bignum" = "yes" ; then
22661 ol_mp_support="bignum"
22663 if test "$ol_have_gmp" = "yes" ; then
22664 ol_mp_support="gmp"
22669 if test "$ol_have_bignum" != "yes" ; then
22670 { echo "configure: error: OpenSSL's BIGNUM not available" 1>&2; exit 1; }
22672 ol_mp_support="bignum"
22675 if test "$ol_have_gmp" != "yes" ; then
22676 { echo "configure: error: GMP not available" 1>&2; exit 1; }
22678 ol_mp_support="gmp"
22681 if test "$ol_have_bignum" = "yes" ; then
22682 ol_mp_support="bignum"
22683 elif test "$ol_have_gmp" = "yes" ; then
22684 ol_mp_support="gmp"
22686 { echo "configure: error: not available" 1>&2; exit 1; }
22691 case "$ol_mp_support" in
22693 cat >> confdefs.h <<\EOF
22694 #define HAVE_BIGNUM 1
22699 cat >> confdefs.h <<\EOF
22703 SLAPD_GMP_LIBS=-lgmp
22709 echo "$ac_t""$ol_mp_support" 1>&6
22713 echo $ac_n "checking long long""... $ac_c" 1>&6
22714 echo "configure:22715: checking long long" >&5
22715 if eval "test \"\${ol_cv_type_long_long+set}\" = set"; then
22716 echo $ac_n "(cached) $ac_c" 1>&6
22719 cat > conftest.$ac_ext <<EOF
22720 #line 22721 "configure"
22721 #include "confdefs.h"
22727 if { (eval echo configure:22728: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22729 ol_cv_type_long_long=yes
22731 echo "configure: failed program was:" >&5
22732 cat conftest.$ac_ext >&5
22734 ol_cv_type_long_long=no
22739 echo "$ac_t""$ol_cv_type_long_long" 1>&6
22740 if test $ol_cv_type_long_long = yes; then
22741 cat >> confdefs.h <<\EOF
22742 #define HAVE_LONG_LONG 1
22747 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
22748 echo "configure:22749: checking for ANSI C header files" >&5
22749 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
22750 echo $ac_n "(cached) $ac_c" 1>&6
22752 cat > conftest.$ac_ext <<EOF
22753 #line 22754 "configure"
22754 #include "confdefs.h"
22755 #include <stdlib.h>
22756 #include <stdarg.h>
22757 #include <string.h>
22760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22761 { (eval echo configure:22762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22762 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22763 if test -z "$ac_err"; then
22765 ac_cv_header_stdc=yes
22768 echo "configure: failed program was:" >&5
22769 cat conftest.$ac_ext >&5
22771 ac_cv_header_stdc=no
22775 if test $ac_cv_header_stdc = yes; then
22776 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22777 cat > conftest.$ac_ext <<EOF
22778 #line 22779 "configure"
22779 #include "confdefs.h"
22780 #include <string.h>
22782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22783 egrep "memchr" >/dev/null 2>&1; then
22787 ac_cv_header_stdc=no
22793 if test $ac_cv_header_stdc = yes; then
22794 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22795 cat > conftest.$ac_ext <<EOF
22796 #line 22797 "configure"
22797 #include "confdefs.h"
22798 #include <stdlib.h>
22800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22801 egrep "free" >/dev/null 2>&1; then
22805 ac_cv_header_stdc=no
22811 if test $ac_cv_header_stdc = yes; then
22812 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22813 if test "$cross_compiling" = yes; then
22816 cat > conftest.$ac_ext <<EOF
22817 #line 22818 "configure"
22818 #include "confdefs.h"
22820 #if ((' ' & 0x0FF) == 0x020)
22821 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22822 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22824 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
22825 || ('j' <= (c) && (c) <= 'r') \
22826 || ('s' <= (c) && (c) <= 'z'))
22827 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22829 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22830 int main () { int i; for (i = 0; i < 256; i++)
22831 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
22835 if { (eval echo configure:22836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
22839 echo "configure: failed program was:" >&5
22840 cat conftest.$ac_ext >&5
22842 ac_cv_header_stdc=no
22850 echo "$ac_t""$ac_cv_header_stdc" 1>&6
22851 if test $ac_cv_header_stdc = yes; then
22852 cat >> confdefs.h <<\EOF
22853 #define STDC_HEADERS 1
22858 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
22859 echo "configure:22860: checking for mode_t" >&5
22860 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
22861 echo $ac_n "(cached) $ac_c" 1>&6
22863 cat > conftest.$ac_ext <<EOF
22864 #line 22865 "configure"
22865 #include "confdefs.h"
22866 #include <sys/types.h>
22868 #include <stdlib.h>
22869 #include <stddef.h>
22873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22874 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22876 eval "ac_cv_type_mode_t=yes"
22879 eval "ac_cv_type_mode_t=no"
22884 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
22885 echo "$ac_t""yes" 1>&6
22887 echo "$ac_t""no" 1>&6
22888 cat >> confdefs.h <<EOF
22894 echo $ac_n "checking for off_t""... $ac_c" 1>&6
22895 echo "configure:22896: checking for off_t" >&5
22896 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
22897 echo $ac_n "(cached) $ac_c" 1>&6
22899 cat > conftest.$ac_ext <<EOF
22900 #line 22901 "configure"
22901 #include "confdefs.h"
22902 #include <sys/types.h>
22904 #include <stdlib.h>
22905 #include <stddef.h>
22909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22910 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22912 eval "ac_cv_type_off_t=yes"
22915 eval "ac_cv_type_off_t=no"
22920 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
22921 echo "$ac_t""yes" 1>&6
22923 echo "$ac_t""no" 1>&6
22924 cat >> confdefs.h <<EOF
22930 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
22931 echo "configure:22932: checking for pid_t" >&5
22932 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
22933 echo $ac_n "(cached) $ac_c" 1>&6
22935 cat > conftest.$ac_ext <<EOF
22936 #line 22937 "configure"
22937 #include "confdefs.h"
22938 #include <sys/types.h>
22940 #include <stdlib.h>
22941 #include <stddef.h>
22945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22946 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22948 eval "ac_cv_type_pid_t=yes"
22951 eval "ac_cv_type_pid_t=no"
22956 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
22957 echo "$ac_t""yes" 1>&6
22959 echo "$ac_t""no" 1>&6
22960 cat >> confdefs.h <<EOF
22966 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
22967 echo "configure:22968: checking for ptrdiff_t" >&5
22968 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
22969 echo $ac_n "(cached) $ac_c" 1>&6
22971 cat > conftest.$ac_ext <<EOF
22972 #line 22973 "configure"
22973 #include "confdefs.h"
22974 #include <stddef.h>
22979 if { (eval echo configure:22980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22981 am_cv_type_ptrdiff_t=yes
22983 echo "configure: failed program was:" >&5
22984 cat conftest.$ac_ext >&5
22986 am_cv_type_ptrdiff_t=no
22991 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
22992 if test $am_cv_type_ptrdiff_t = yes; then
22993 cat >> confdefs.h <<\EOF
22994 #define HAVE_PTRDIFF_T 1
22999 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
23000 echo "configure:23001: checking return type of signal handlers" >&5
23001 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
23002 echo $ac_n "(cached) $ac_c" 1>&6
23004 cat > conftest.$ac_ext <<EOF
23005 #line 23006 "configure"
23006 #include "confdefs.h"
23007 #include <sys/types.h>
23008 #include <signal.h>
23013 extern "C" void (*signal (int, void (*)(int)))(int);
23015 void (*signal ()) ();
23022 if { (eval echo configure:23023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23024 ac_cv_type_signal=void
23026 echo "configure: failed program was:" >&5
23027 cat conftest.$ac_ext >&5
23029 ac_cv_type_signal=int
23034 echo "$ac_t""$ac_cv_type_signal" 1>&6
23035 cat >> confdefs.h <<EOF
23036 #define RETSIGTYPE $ac_cv_type_signal
23040 echo $ac_n "checking for size_t""... $ac_c" 1>&6
23041 echo "configure:23042: checking for size_t" >&5
23042 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
23043 echo $ac_n "(cached) $ac_c" 1>&6
23045 cat > conftest.$ac_ext <<EOF
23046 #line 23047 "configure"
23047 #include "confdefs.h"
23048 #include <sys/types.h>
23050 #include <stdlib.h>
23051 #include <stddef.h>
23055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23056 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
23058 eval "ac_cv_type_size_t=yes"
23061 eval "ac_cv_type_size_t=no"
23066 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
23067 echo "$ac_t""yes" 1>&6
23069 echo "$ac_t""no" 1>&6
23070 cat >> confdefs.h <<EOF
23071 #define size_t unsigned
23077 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
23078 echo "configure:23079: checking for ssize_t" >&5
23079 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
23080 echo $ac_n "(cached) $ac_c" 1>&6
23082 cat > conftest.$ac_ext <<EOF
23083 #line 23084 "configure"
23084 #include "confdefs.h"
23085 #include <sys/types.h>
23087 #include <stdlib.h>
23088 #include <stddef.h>
23092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23093 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
23095 eval "ac_cv_type_ssize_t=yes"
23098 eval "ac_cv_type_ssize_t=no"
23103 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
23104 echo "$ac_t""yes" 1>&6
23106 echo "$ac_t""no" 1>&6
23107 cat >> confdefs.h <<EOF
23108 #define ssize_t signed int
23113 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
23114 echo "configure:23115: checking for caddr_t" >&5
23115 if eval "test \"\${ac_cv_type_caddr_t+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 #include <sys/types.h>
23123 #include <stdlib.h>
23124 #include <stddef.h>
23128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23129 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
23131 eval "ac_cv_type_caddr_t=yes"
23134 eval "ac_cv_type_caddr_t=no"
23139 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
23140 echo "$ac_t""yes" 1>&6
23142 echo "$ac_t""no" 1>&6
23143 cat >> confdefs.h <<EOF
23144 #define caddr_t char *
23150 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
23151 echo "configure:23152: checking for socklen_t" >&5
23152 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
23153 echo $ac_n "(cached) $ac_c" 1>&6
23155 cat > conftest.$ac_ext <<EOF
23156 #line 23157 "configure"
23157 #include "confdefs.h"
23159 #ifdef HAVE_SYS_TYPES_H
23160 #include <sys/types.h>
23162 #ifdef HAVE_SYS_SOCKET_H
23163 #include <sys/socket.h>
23170 if { (eval echo configure:23171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23172 ol_cv_type_socklen_t=yes
23174 echo "configure: failed program was:" >&5
23175 cat conftest.$ac_ext >&5
23177 ol_cv_type_socklen_t=no
23182 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
23183 if test $ol_cv_type_socklen_t = no; then
23184 cat >> confdefs.h <<\EOF
23185 #define socklen_t int
23190 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
23191 echo "configure:23192: checking for member st_blksize in aggregate type struct stat" >&5
23192 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
23193 echo $ac_n "(cached) $ac_c" 1>&6
23195 cat > conftest.$ac_ext <<EOF
23196 #line 23197 "configure"
23197 #include "confdefs.h"
23198 #include <sys/types.h>
23199 #include <sys/stat.h>
23201 struct stat foo; foo.st_blksize;
23204 if { (eval echo configure:23205: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23206 ac_cv_c_struct_member_st_blksize=yes
23208 echo "configure: failed program was:" >&5
23209 cat conftest.$ac_ext >&5
23211 ac_cv_c_struct_member_st_blksize=no
23216 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
23217 st_blksize="$ac_cv_c_struct_member_st_blksize"
23218 if test $ac_cv_c_struct_member_st_blksize = yes; then
23219 cat >> confdefs.h <<\EOF
23220 #define HAVE_ST_BLKSIZE 1
23225 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
23226 echo "configure:23227: checking whether time.h and sys/time.h may both be included" >&5
23227 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
23228 echo $ac_n "(cached) $ac_c" 1>&6
23230 cat > conftest.$ac_ext <<EOF
23231 #line 23232 "configure"
23232 #include "confdefs.h"
23233 #include <sys/types.h>
23234 #include <sys/time.h>
23240 if { (eval echo configure:23241: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23242 ac_cv_header_time=yes
23244 echo "configure: failed program was:" >&5
23245 cat conftest.$ac_ext >&5
23247 ac_cv_header_time=no
23252 echo "$ac_t""$ac_cv_header_time" 1>&6
23253 if test $ac_cv_header_time = yes; then
23254 cat >> confdefs.h <<\EOF
23255 #define TIME_WITH_SYS_TIME 1
23260 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
23261 echo "configure:23262: checking whether struct tm is in sys/time.h or time.h" >&5
23262 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
23263 echo $ac_n "(cached) $ac_c" 1>&6
23265 cat > conftest.$ac_ext <<EOF
23266 #line 23267 "configure"
23267 #include "confdefs.h"
23268 #include <sys/types.h>
23271 struct tm *tp; tp->tm_sec;
23274 if { (eval echo configure:23275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23276 ac_cv_struct_tm=time.h
23278 echo "configure: failed program was:" >&5
23279 cat conftest.$ac_ext >&5
23281 ac_cv_struct_tm=sys/time.h
23286 echo "$ac_t""$ac_cv_struct_tm" 1>&6
23287 if test $ac_cv_struct_tm = sys/time.h; then
23288 cat >> confdefs.h <<\EOF
23289 #define TM_IN_SYS_TIME 1
23294 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
23295 echo "configure:23296: checking for uid_t in sys/types.h" >&5
23296 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
23297 echo $ac_n "(cached) $ac_c" 1>&6
23299 cat > conftest.$ac_ext <<EOF
23300 #line 23301 "configure"
23301 #include "confdefs.h"
23302 #include <sys/types.h>
23304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23305 egrep "uid_t" >/dev/null 2>&1; then
23307 ac_cv_type_uid_t=yes
23310 ac_cv_type_uid_t=no
23316 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
23317 if test $ac_cv_type_uid_t = no; then
23318 cat >> confdefs.h <<\EOF
23322 cat >> confdefs.h <<\EOF
23328 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
23329 echo "configure:23330: checking for sig_atomic_t" >&5
23330 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
23331 echo $ac_n "(cached) $ac_c" 1>&6
23333 cat > conftest.$ac_ext <<EOF
23334 #line 23335 "configure"
23335 #include "confdefs.h"
23336 #include <signal.h>
23338 sig_atomic_t atomic;
23341 if { (eval echo configure:23342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23343 ol_cv_type_sig_atomic_t=yes
23345 echo "configure: failed program was:" >&5
23346 cat conftest.$ac_ext >&5
23348 ol_cv_type_sig_atomic_t=no
23353 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
23354 if test $ol_cv_type_sig_atomic_t = no; then
23355 cat >> confdefs.h <<\EOF
23356 #define sig_atomic_t int
23363 # test for pw_gecos in struct passwd
23364 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
23365 echo "configure:23366: checking struct passwd for pw_gecos" >&5
23366 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
23367 echo $ac_n "(cached) $ac_c" 1>&6
23370 cat > conftest.$ac_ext <<EOF
23371 #line 23372 "configure"
23372 #include "confdefs.h"
23377 pwd.pw_gecos = pwd.pw_name;
23381 if { (eval echo configure:23382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23383 ol_cv_struct_passwd_pw_gecos=yes
23385 echo "configure: failed program was:" >&5
23386 cat conftest.$ac_ext >&5
23388 ol_cv_struct_passwd_pw_gecos=no
23393 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
23394 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
23395 cat >> confdefs.h <<\EOF
23396 #define HAVE_PW_GECOS 1
23401 # test for pw_passwd in struct passwd
23402 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
23403 echo "configure:23404: checking struct passwd for pw_passwd" >&5
23404 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
23405 echo $ac_n "(cached) $ac_c" 1>&6
23408 cat > conftest.$ac_ext <<EOF
23409 #line 23410 "configure"
23410 #include "confdefs.h"
23415 pwd.pw_passwd = pwd.pw_name;
23419 if { (eval echo configure:23420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23421 ol_cv_struct_passwd_pw_passwd=yes
23423 echo "configure: failed program was:" >&5
23424 cat conftest.$ac_ext >&5
23426 ol_cv_struct_passwd_pw_passwd=no
23431 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
23432 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
23433 cat >> confdefs.h <<\EOF
23434 #define HAVE_PW_PASSWD 1
23440 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
23441 echo "configure:23442: checking if toupper() requires islower()" >&5
23442 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
23443 echo $ac_n "(cached) $ac_c" 1>&6
23446 if test "$cross_compiling" = yes; then
23447 ol_cv_c_upper_lower=safe
23449 cat > conftest.$ac_ext <<EOF
23450 #line 23451 "configure"
23451 #include "confdefs.h"
23456 if ('C' == toupper('C'))
23462 if { (eval echo configure:23463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
23464 ol_cv_c_upper_lower=no
23466 echo "configure: failed program was:" >&5
23467 cat conftest.$ac_ext >&5
23469 ol_cv_c_upper_lower=yes
23476 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
23477 if test $ol_cv_c_upper_lower != no ; then
23478 cat >> confdefs.h <<\EOF
23479 #define C_UPPER_LOWER 1
23484 echo $ac_n "checking for working const""... $ac_c" 1>&6
23485 echo "configure:23486: checking for working const" >&5
23486 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
23487 echo $ac_n "(cached) $ac_c" 1>&6
23489 cat > conftest.$ac_ext <<EOF
23490 #line 23491 "configure"
23491 #include "confdefs.h"
23495 /* Ultrix mips cc rejects this. */
23496 typedef int charset[2]; const charset x;
23497 /* SunOS 4.1.1 cc rejects this. */
23498 char const *const *ccp;
23500 /* NEC SVR4.0.2 mips cc rejects this. */
23501 struct point {int x, y;};
23502 static struct point const zero = {0,0};
23503 /* AIX XL C 1.02.0.0 rejects this.
23504 It does not let you subtract one const X* pointer from another in an arm
23505 of an if-expression whose if-part is not a constant expression */
23506 const char *g = "string";
23507 ccp = &g + (g ? g-g : 0);
23508 /* HPUX 7.0 cc rejects these. */
23511 ccp = (char const *const *) p;
23512 { /* SCO 3.2v4 cc rejects this. */
23514 char const *s = 0 ? (char *) 0 : (char const *) 0;
23518 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23519 int x[] = {25, 17};
23520 const int *foo = &x[0];
23523 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23524 typedef const int *iptr;
23528 { /* AIX XL C 1.02.0.0 rejects this saying
23529 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23530 struct s { int j; const int *ap[3]; };
23531 struct s *b; b->j = 5;
23533 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23534 const int foo = 10;
23539 if { (eval echo configure:23540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23543 echo "configure: failed program was:" >&5
23544 cat conftest.$ac_ext >&5
23551 echo "$ac_t""$ac_cv_c_const" 1>&6
23552 if test $ac_cv_c_const = no; then
23553 cat >> confdefs.h <<\EOF
23559 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
23560 echo "configure:23561: checking if compiler understands volatile" >&5
23561 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
23562 echo $ac_n "(cached) $ac_c" 1>&6
23564 cat > conftest.$ac_ext <<EOF
23565 #line 23566 "configure"
23566 #include "confdefs.h"
23569 volatile int a; int * volatile b = x ? &y : &z;
23570 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
23574 if { (eval echo configure:23575: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23576 ol_cv_c_volatile=yes
23578 echo "configure: failed program was:" >&5
23579 cat conftest.$ac_ext >&5
23581 ol_cv_c_volatile=no
23586 echo "$ac_t""$ol_cv_c_volatile" 1>&6
23587 if test $ol_cv_c_volatile = yes; then
23590 cat >> confdefs.h <<\EOF
23597 if test $cross_compiling = yes ; then
23598 echo "configure: warning: Crossing compiling... all bets are off!" 1>&2
23599 cat >> confdefs.h <<\EOF
23600 #define CROSS_COMPILING 1
23604 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
23605 echo "configure:23606: checking whether byte ordering is bigendian" >&5
23606 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
23607 echo $ac_n "(cached) $ac_c" 1>&6
23609 ac_cv_c_bigendian=unknown
23610 # See if sys/param.h defines the BYTE_ORDER macro.
23611 cat > conftest.$ac_ext <<EOF
23612 #line 23613 "configure"
23613 #include "confdefs.h"
23614 #include <sys/types.h>
23615 #include <sys/param.h>
23618 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
23619 bogus endian macros
23623 if { (eval echo configure:23624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23625 # It does; now see whether it defined to BIG_ENDIAN or not.
23626 cat > conftest.$ac_ext <<EOF
23627 #line 23628 "configure"
23628 #include "confdefs.h"
23629 #include <sys/types.h>
23630 #include <sys/param.h>
23633 #if BYTE_ORDER != BIG_ENDIAN
23638 if { (eval echo configure:23639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23640 ac_cv_c_bigendian=yes
23642 echo "configure: failed program was:" >&5
23643 cat conftest.$ac_ext >&5
23645 ac_cv_c_bigendian=no
23649 echo "configure: failed program was:" >&5
23650 cat conftest.$ac_ext >&5
23653 if test $ac_cv_c_bigendian = unknown; then
23654 if test "$cross_compiling" = yes; then
23655 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
23657 cat > conftest.$ac_ext <<EOF
23658 #line 23659 "configure"
23659 #include "confdefs.h"
23661 /* Are we little or big endian? From Harbison&Steele. */
23665 char c[sizeof (long)];
23668 exit (u.c[sizeof (long) - 1] == 1);
23671 if { (eval echo configure:23672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
23673 ac_cv_c_bigendian=no
23675 echo "configure: failed program was:" >&5
23676 cat conftest.$ac_ext >&5
23678 ac_cv_c_bigendian=yes
23686 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
23687 if test $ac_cv_c_bigendian = yes; then
23688 cat >> confdefs.h <<\EOF
23689 #define WORDS_BIGENDIAN 1
23696 echo $ac_n "checking size of short""... $ac_c" 1>&6
23697 echo "configure:23698: checking size of short" >&5
23698 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
23699 echo $ac_n "(cached) $ac_c" 1>&6
23701 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23702 cat > conftest.$ac_ext <<EOF
23703 #line 23704 "configure"
23704 #include "confdefs.h"
23705 #include "confdefs.h"
23706 #include <stdlib.h>
23707 #include <sys/types.h>
23711 switch (0) case 0: case (sizeof (short) == $ac_size):;
23714 if { (eval echo configure:23715: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23716 ac_cv_sizeof_short=$ac_size
23718 echo "configure: failed program was:" >&5
23719 cat conftest.$ac_ext >&5
23722 if test x$ac_cv_sizeof_short != x ; then break; fi
23727 if test x$ac_cv_sizeof_short = x ; then
23728 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
23730 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
23731 cat >> confdefs.h <<EOF
23732 #define SIZEOF_SHORT $ac_cv_sizeof_short
23736 echo $ac_n "checking size of int""... $ac_c" 1>&6
23737 echo "configure:23738: checking size of int" >&5
23738 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
23739 echo $ac_n "(cached) $ac_c" 1>&6
23741 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23742 cat > conftest.$ac_ext <<EOF
23743 #line 23744 "configure"
23744 #include "confdefs.h"
23745 #include "confdefs.h"
23746 #include <stdlib.h>
23747 #include <sys/types.h>
23751 switch (0) case 0: case (sizeof (int) == $ac_size):;
23754 if { (eval echo configure:23755: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23756 ac_cv_sizeof_int=$ac_size
23758 echo "configure: failed program was:" >&5
23759 cat conftest.$ac_ext >&5
23762 if test x$ac_cv_sizeof_int != x ; then break; fi
23767 if test x$ac_cv_sizeof_int = x ; then
23768 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
23770 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
23771 cat >> confdefs.h <<EOF
23772 #define SIZEOF_INT $ac_cv_sizeof_int
23776 echo $ac_n "checking size of long""... $ac_c" 1>&6
23777 echo "configure:23778: checking size of long" >&5
23778 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
23779 echo $ac_n "(cached) $ac_c" 1>&6
23781 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23782 cat > conftest.$ac_ext <<EOF
23783 #line 23784 "configure"
23784 #include "confdefs.h"
23785 #include "confdefs.h"
23786 #include <stdlib.h>
23787 #include <sys/types.h>
23791 switch (0) case 0: case (sizeof (long) == $ac_size):;
23794 if { (eval echo configure:23795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23796 ac_cv_sizeof_long=$ac_size
23798 echo "configure: failed program was:" >&5
23799 cat conftest.$ac_ext >&5
23802 if test x$ac_cv_sizeof_long != x ; then break; fi
23807 if test x$ac_cv_sizeof_long = x ; then
23808 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
23810 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
23811 cat >> confdefs.h <<EOF
23812 #define SIZEOF_LONG $ac_cv_sizeof_long
23816 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
23817 echo "configure:23818: checking size of wchar_t" >&5
23818 if eval "test \"\${ac_cv_sizeof_wchar_t+set}\" = set"; then
23819 echo $ac_n "(cached) $ac_c" 1>&6
23821 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23822 cat > conftest.$ac_ext <<EOF
23823 #line 23824 "configure"
23824 #include "confdefs.h"
23825 #include "confdefs.h"
23826 #include <stdlib.h>
23827 #include <sys/types.h>
23831 switch (0) case 0: case (sizeof (wchar_t) == $ac_size):;
23834 if { (eval echo configure:23835: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23836 ac_cv_sizeof_wchar_t=$ac_size
23838 echo "configure: failed program was:" >&5
23839 cat conftest.$ac_ext >&5
23842 if test x$ac_cv_sizeof_wchar_t != x ; then break; fi
23847 if test x$ac_cv_sizeof_wchar_t = x ; then
23848 { echo "configure: error: cannot determine a size for wchar_t" 1>&2; exit 1; }
23850 echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
23851 cat >> confdefs.h <<EOF
23852 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23857 if test "$ac_cv_sizeof_int" -lt 4 ; then
23858 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
23860 cat >> confdefs.h <<\EOF
23861 #define LBER_INT_T long
23865 cat >> confdefs.h <<\EOF
23866 #define LBER_INT_T int
23871 cat >> confdefs.h <<\EOF
23872 #define LBER_LEN_T long
23875 cat >> confdefs.h <<\EOF
23876 #define LBER_SOCKET_T int
23879 cat >> confdefs.h <<\EOF
23880 #define LBER_TAG_T long
23884 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
23885 echo "configure:23886: checking for 8-bit clean memcmp" >&5
23886 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
23887 echo $ac_n "(cached) $ac_c" 1>&6
23889 if test "$cross_compiling" = yes; then
23890 ac_cv_func_memcmp_clean=no
23892 cat > conftest.$ac_ext <<EOF
23893 #line 23894 "configure"
23894 #include "confdefs.h"
23898 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
23899 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
23903 if { (eval echo configure:23904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
23905 ac_cv_func_memcmp_clean=yes
23907 echo "configure: failed program was:" >&5
23908 cat conftest.$ac_ext >&5
23910 ac_cv_func_memcmp_clean=no
23917 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
23918 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
23921 if test $ac_cv_func_memcmp_clean = no ; then
23922 cat >> confdefs.h <<\EOF
23923 #define NEED_MEMCMP_REPLACEMENT 1
23928 echo $ac_n "checking for strftime""... $ac_c" 1>&6
23929 echo "configure:23930: checking for strftime" >&5
23930 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
23931 echo $ac_n "(cached) $ac_c" 1>&6
23933 cat > conftest.$ac_ext <<EOF
23934 #line 23935 "configure"
23935 #include "confdefs.h"
23936 /* System header to define __stub macros and hopefully few prototypes,
23937 which can conflict with char strftime(); below. */
23938 #include <assert.h>
23939 /* Override any gcc2 internal prototype to avoid an error. */
23940 /* We use char because int might match the return type of a gcc2
23941 builtin and then its argument prototype would still apply. */
23947 /* The GNU C library defines this for functions which it implements
23948 to always fail with ENOSYS. Some functions are actually named
23949 something starting with __ and the normal name is an alias. */
23950 #if defined (__stub_strftime) || defined (__stub___strftime)
23958 if { (eval echo configure:23959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
23960 eval "ac_cv_func_strftime=yes"
23962 echo "configure: failed program was:" >&5
23963 cat conftest.$ac_ext >&5
23965 eval "ac_cv_func_strftime=no"
23970 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
23971 echo "$ac_t""yes" 1>&6
23972 cat >> confdefs.h <<\EOF
23973 #define HAVE_STRFTIME 1
23977 echo "$ac_t""no" 1>&6
23978 # strftime is in -lintl on SCO UNIX.
23979 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
23980 echo "configure:23981: checking for strftime in -lintl" >&5
23981 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
23982 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
23983 echo $ac_n "(cached) $ac_c" 1>&6
23985 ac_save_LIBS="$LIBS"
23986 LIBS="-lintl $LIBS"
23987 cat > conftest.$ac_ext <<EOF
23988 #line 23989 "configure"
23989 #include "confdefs.h"
23990 /* Override any gcc2 internal prototype to avoid an error. */
23991 /* We use char because int might match the return type of a gcc2
23992 builtin and then its argument prototype would still apply. */
23999 if { (eval echo configure:24000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24001 eval "ac_cv_lib_$ac_lib_var=yes"
24003 echo "configure: failed program was:" >&5
24004 cat conftest.$ac_ext >&5
24006 eval "ac_cv_lib_$ac_lib_var=no"
24009 LIBS="$ac_save_LIBS"
24012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
24013 echo "$ac_t""yes" 1>&6
24014 cat >> confdefs.h <<\EOF
24015 #define HAVE_STRFTIME 1
24018 LIBS="-lintl $LIBS"
24020 echo "$ac_t""no" 1>&6
24026 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
24027 echo "configure:24028: checking for inet_aton()" >&5
24028 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
24029 echo $ac_n "(cached) $ac_c" 1>&6
24031 cat > conftest.$ac_ext <<EOF
24032 #line 24033 "configure"
24033 #include "confdefs.h"
24035 #ifdef HAVE_SYS_TYPES_H
24036 # include <sys/types.h>
24038 #ifdef HAVE_SYS_SOCKET_H
24039 # include <sys/socket.h>
24040 # ifdef HAVE_SYS_SELECT_H
24041 # include <sys/select.h>
24043 # include <netinet/in.h>
24044 # ifdef HAVE_ARPA_INET_H
24045 # include <arpa/inet.h>
24051 int rc = inet_aton( "255.255.255.255", &in );
24054 if { (eval echo configure:24055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24056 ol_cv_func_inet_aton=yes
24058 echo "configure: failed program was:" >&5
24059 cat conftest.$ac_ext >&5
24061 ol_cv_func_inet_aton=no
24066 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
24067 if test $ol_cv_func_inet_aton != no; then
24068 cat >> confdefs.h <<\EOF
24069 #define HAVE_INET_ATON 1
24075 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
24076 echo "configure:24077: checking for _spawnlp" >&5
24077 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
24078 echo $ac_n "(cached) $ac_c" 1>&6
24080 cat > conftest.$ac_ext <<EOF
24081 #line 24082 "configure"
24082 #include "confdefs.h"
24083 /* System header to define __stub macros and hopefully few prototypes,
24084 which can conflict with char _spawnlp(); below. */
24085 #include <assert.h>
24086 /* Override any gcc2 internal prototype to avoid an error. */
24087 /* We use char because int might match the return type of a gcc2
24088 builtin and then its argument prototype would still apply. */
24094 /* The GNU C library defines this for functions which it implements
24095 to always fail with ENOSYS. Some functions are actually named
24096 something starting with __ and the normal name is an alias. */
24097 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
24105 if { (eval echo configure:24106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24107 eval "ac_cv_func__spawnlp=yes"
24109 echo "configure: failed program was:" >&5
24110 cat conftest.$ac_ext >&5
24112 eval "ac_cv_func__spawnlp=no"
24117 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
24118 echo "$ac_t""yes" 1>&6
24119 cat >> confdefs.h <<\EOF
24120 #define HAVE_SPAWNLP 1
24124 echo "$ac_t""no" 1>&6
24128 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
24129 echo "configure:24130: checking for _snprintf" >&5
24130 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
24131 echo $ac_n "(cached) $ac_c" 1>&6
24133 cat > conftest.$ac_ext <<EOF
24134 #line 24135 "configure"
24135 #include "confdefs.h"
24136 /* System header to define __stub macros and hopefully few prototypes,
24137 which can conflict with char _snprintf(); below. */
24138 #include <assert.h>
24139 /* Override any gcc2 internal prototype to avoid an error. */
24140 /* We use char because int might match the return type of a gcc2
24141 builtin and then its argument prototype would still apply. */
24147 /* The GNU C library defines this for functions which it implements
24148 to always fail with ENOSYS. Some functions are actually named
24149 something starting with __ and the normal name is an alias. */
24150 #if defined (__stub__snprintf) || defined (__stub____snprintf)
24158 if { (eval echo configure:24159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24160 eval "ac_cv_func__snprintf=yes"
24162 echo "configure: failed program was:" >&5
24163 cat conftest.$ac_ext >&5
24165 eval "ac_cv_func__snprintf=no"
24170 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
24171 echo "$ac_t""yes" 1>&6
24172 ac_cv_func_snprintf=yes
24173 cat >> confdefs.h <<\EOF
24174 #define snprintf _snprintf
24179 echo "$ac_t""no" 1>&6
24183 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
24184 echo "configure:24185: checking for _vsnprintf" >&5
24185 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
24186 echo $ac_n "(cached) $ac_c" 1>&6
24188 cat > conftest.$ac_ext <<EOF
24189 #line 24190 "configure"
24190 #include "confdefs.h"
24191 /* System header to define __stub macros and hopefully few prototypes,
24192 which can conflict with char _vsnprintf(); below. */
24193 #include <assert.h>
24194 /* Override any gcc2 internal prototype to avoid an error. */
24195 /* We use char because int might match the return type of a gcc2
24196 builtin and then its argument prototype would still apply. */
24202 /* The GNU C library defines this for functions which it implements
24203 to always fail with ENOSYS. Some functions are actually named
24204 something starting with __ and the normal name is an alias. */
24205 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
24213 if { (eval echo configure:24214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24215 eval "ac_cv_func__vsnprintf=yes"
24217 echo "configure: failed program was:" >&5
24218 cat conftest.$ac_ext >&5
24220 eval "ac_cv_func__vsnprintf=no"
24225 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
24226 echo "$ac_t""yes" 1>&6
24227 ac_cv_func_vsnprintf=yes
24228 cat >> confdefs.h <<\EOF
24229 #define vsnprintf _vsnprintf
24234 echo "$ac_t""no" 1>&6
24238 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
24239 echo "configure:24240: checking for vprintf" >&5
24240 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
24241 echo $ac_n "(cached) $ac_c" 1>&6
24243 cat > conftest.$ac_ext <<EOF
24244 #line 24245 "configure"
24245 #include "confdefs.h"
24246 /* System header to define __stub macros and hopefully few prototypes,
24247 which can conflict with char vprintf(); below. */
24248 #include <assert.h>
24249 /* Override any gcc2 internal prototype to avoid an error. */
24250 /* We use char because int might match the return type of a gcc2
24251 builtin and then its argument prototype would still apply. */
24257 /* The GNU C library defines this for functions which it implements
24258 to always fail with ENOSYS. Some functions are actually named
24259 something starting with __ and the normal name is an alias. */
24260 #if defined (__stub_vprintf) || defined (__stub___vprintf)
24268 if { (eval echo configure:24269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24270 eval "ac_cv_func_vprintf=yes"
24272 echo "configure: failed program was:" >&5
24273 cat conftest.$ac_ext >&5
24275 eval "ac_cv_func_vprintf=no"
24280 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
24281 echo "$ac_t""yes" 1>&6
24282 cat >> confdefs.h <<\EOF
24283 #define HAVE_VPRINTF 1
24287 echo "$ac_t""no" 1>&6
24290 if test "$ac_cv_func_vprintf" != yes; then
24291 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
24292 echo "configure:24293: checking for _doprnt" >&5
24293 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
24294 echo $ac_n "(cached) $ac_c" 1>&6
24296 cat > conftest.$ac_ext <<EOF
24297 #line 24298 "configure"
24298 #include "confdefs.h"
24299 /* System header to define __stub macros and hopefully few prototypes,
24300 which can conflict with char _doprnt(); below. */
24301 #include <assert.h>
24302 /* Override any gcc2 internal prototype to avoid an error. */
24303 /* We use char because int might match the return type of a gcc2
24304 builtin and then its argument prototype would still apply. */
24310 /* The GNU C library defines this for functions which it implements
24311 to always fail with ENOSYS. Some functions are actually named
24312 something starting with __ and the normal name is an alias. */
24313 #if defined (__stub__doprnt) || defined (__stub____doprnt)
24321 if { (eval echo configure:24322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24323 eval "ac_cv_func__doprnt=yes"
24325 echo "configure: failed program was:" >&5
24326 cat conftest.$ac_ext >&5
24328 eval "ac_cv_func__doprnt=no"
24333 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
24334 echo "$ac_t""yes" 1>&6
24335 cat >> confdefs.h <<\EOF
24336 #define HAVE_DOPRNT 1
24340 echo "$ac_t""no" 1>&6
24346 if test $ac_cv_func_vprintf = yes ; then
24347 for ac_func in snprintf vsnprintf
24349 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24350 echo "configure:24351: checking for $ac_func" >&5
24351 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
24352 echo $ac_n "(cached) $ac_c" 1>&6
24354 cat > conftest.$ac_ext <<EOF
24355 #line 24356 "configure"
24356 #include "confdefs.h"
24357 /* System header to define __stub macros and hopefully few prototypes,
24358 which can conflict with char $ac_func(); below. */
24359 #include <assert.h>
24360 /* Override any gcc2 internal prototype to avoid an error. */
24361 /* We use char because int might match the return type of a gcc2
24362 builtin and then its argument prototype would still apply. */
24368 /* The GNU C library defines this for functions which it implements
24369 to always fail with ENOSYS. Some functions are actually named
24370 something starting with __ and the normal name is an alias. */
24371 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24379 if { (eval echo configure:24380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24381 eval "ac_cv_func_$ac_func=yes"
24383 echo "configure: failed program was:" >&5
24384 cat conftest.$ac_ext >&5
24386 eval "ac_cv_func_$ac_func=no"
24391 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
24392 echo "$ac_t""yes" 1>&6
24393 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24394 cat >> confdefs.h <<EOF
24395 #define $ac_tr_func 1
24399 echo "$ac_t""no" 1>&6
24461 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24462 echo "configure:24463: checking for $ac_func" >&5
24463 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
24464 echo $ac_n "(cached) $ac_c" 1>&6
24466 cat > conftest.$ac_ext <<EOF
24467 #line 24468 "configure"
24468 #include "confdefs.h"
24469 /* System header to define __stub macros and hopefully few prototypes,
24470 which can conflict with char $ac_func(); below. */
24471 #include <assert.h>
24472 /* Override any gcc2 internal prototype to avoid an error. */
24473 /* We use char because int might match the return type of a gcc2
24474 builtin and then its argument prototype would still apply. */
24480 /* The GNU C library defines this for functions which it implements
24481 to always fail with ENOSYS. Some functions are actually named
24482 something starting with __ and the normal name is an alias. */
24483 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24491 if { (eval echo configure:24492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24493 eval "ac_cv_func_$ac_func=yes"
24495 echo "configure: failed program was:" >&5
24496 cat conftest.$ac_ext >&5
24498 eval "ac_cv_func_$ac_func=no"
24503 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
24504 echo "$ac_t""yes" 1>&6
24505 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24506 cat >> confdefs.h <<EOF
24507 #define $ac_tr_func 1
24511 echo "$ac_t""no" 1>&6
24516 for ac_func in getopt getpeereid
24518 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24519 echo "configure:24520: checking for $ac_func" >&5
24520 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
24521 echo $ac_n "(cached) $ac_c" 1>&6
24523 cat > conftest.$ac_ext <<EOF
24524 #line 24525 "configure"
24525 #include "confdefs.h"
24526 /* System header to define __stub macros and hopefully few prototypes,
24527 which can conflict with char $ac_func(); below. */
24528 #include <assert.h>
24529 /* Override any gcc2 internal prototype to avoid an error. */
24530 /* We use char because int might match the return type of a gcc2
24531 builtin and then its argument prototype would still apply. */
24537 /* The GNU C library defines this for functions which it implements
24538 to always fail with ENOSYS. Some functions are actually named
24539 something starting with __ and the normal name is an alias. */
24540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24548 if { (eval echo configure:24549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24550 eval "ac_cv_func_$ac_func=yes"
24552 echo "configure: failed program was:" >&5
24553 cat conftest.$ac_ext >&5
24555 eval "ac_cv_func_$ac_func=no"
24560 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
24561 echo "$ac_t""yes" 1>&6
24562 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24563 cat >> confdefs.h <<EOF
24564 #define $ac_tr_func 1
24568 echo "$ac_t""no" 1>&6
24569 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
24575 if test "$ac_cv_func_getopt" != yes; then
24576 LIBSRCS="$LIBSRCS getopt.c"
24578 if test "$ac_cv_func_getpeereid" != yes; then
24579 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
24580 echo "configure:24581: checking for msg_accrights in msghdr" >&5
24581 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
24582 echo $ac_n "(cached) $ac_c" 1>&6
24584 cat > conftest.$ac_ext <<EOF
24585 #line 24586 "configure"
24586 #include "confdefs.h"
24587 #include <sys/socket.h>
24589 struct msghdr m; m.msg_accrightslen=0
24592 if { (eval echo configure:24593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
24594 ol_cv_msghdr_msg_accrights=yes
24596 echo "configure: failed program was:" >&5
24597 cat conftest.$ac_ext >&5
24599 ol_cv_msghdr_msg_accrights=no
24605 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
24606 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
24607 cat >> confdefs.h <<\EOF
24608 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
24613 if test "$ac_cv_func_getpeereid" != yes; then
24614 echo $ac_n "checking for msg_control in msghdr""... $ac_c" 1>&6
24615 echo "configure:24616: checking for msg_control in msghdr" >&5
24616 if eval "test \"\${ol_cv_msghdr_msg_control+set}\" = set"; then
24617 echo $ac_n "(cached) $ac_c" 1>&6
24619 cat > conftest.$ac_ext <<EOF
24620 #line 24621 "configure"
24621 #include "confdefs.h"
24622 #include <sys/socket.h>
24624 struct msghdr m; m.msg_control=(struct cmsghdr *)0
24627 if { (eval echo configure:24628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
24629 ol_cv_msghdr_msg_control=yes
24631 echo "configure: failed program was:" >&5
24632 cat conftest.$ac_ext >&5
24634 ol_cv_msghdr_msg_control=no
24640 echo "$ac_t""$ol_cv_msghdr_msg_control" 1>&6
24641 if test $ol_cv_msghdr_msg_control = "yes" ; then
24642 cat >> confdefs.h <<\EOF
24643 #define HAVE_MSGHDR_MSG_CONTROL 1
24649 LIBSRCS="$LIBSRCS getpeereid.c"
24651 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
24652 if test "$ac_cv_func_snprintf" != yes; then
24653 cat >> confdefs.h <<\EOF
24654 #define snprintf ber_pvt_snprintf
24658 if test "$ac_cv_func_vsnprintf" != yes; then
24659 cat >> confdefs.h <<\EOF
24660 #define vsnprintf ber_pvt_vsnprintf
24667 if test "$ol_enable_slapi" != no ; then
24668 for ac_hdr in ltdl.h
24670 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
24671 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
24672 echo "configure:24673: checking for $ac_hdr" >&5
24673 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
24674 echo $ac_n "(cached) $ac_c" 1>&6
24676 cat > conftest.$ac_ext <<EOF
24677 #line 24678 "configure"
24678 #include "confdefs.h"
24681 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24682 { (eval echo configure:24683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
24683 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
24684 if test -z "$ac_err"; then
24686 eval "ac_cv_header_$ac_safe=yes"
24689 echo "configure: failed program was:" >&5
24690 cat conftest.$ac_ext >&5
24692 eval "ac_cv_header_$ac_safe=no"
24696 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
24697 echo "$ac_t""yes" 1>&6
24698 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
24699 cat >> confdefs.h <<EOF
24700 #define $ac_tr_hdr 1
24704 echo "$ac_t""no" 1>&6
24709 if test $ac_cv_header_ltdl_h != yes ; then
24710 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
24712 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
24713 echo "configure:24714: checking for lt_dlinit in -lltdl" >&5
24714 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
24715 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
24716 echo $ac_n "(cached) $ac_c" 1>&6
24718 ac_save_LIBS="$LIBS"
24719 LIBS="-lltdl $LIBS"
24720 cat > conftest.$ac_ext <<EOF
24721 #line 24722 "configure"
24722 #include "confdefs.h"
24723 /* Override any gcc2 internal prototype to avoid an error. */
24724 /* We use char because int might match the return type of a gcc2
24725 builtin and then its argument prototype would still apply. */
24732 if { (eval echo configure:24733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24734 eval "ac_cv_lib_$ac_lib_var=yes"
24736 echo "configure: failed program was:" >&5
24737 cat conftest.$ac_ext >&5
24739 eval "ac_cv_lib_$ac_lib_var=no"
24742 LIBS="$ac_save_LIBS"
24745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
24746 echo "$ac_t""yes" 1>&6
24749 LIBSLAPI=libslapi.a
24750 LIBSLAPITOOLS=../libslapi.a
24751 cat >> confdefs.h <<\EOF
24752 #define HAVE_LIBLTDL 1
24757 echo "$ac_t""no" 1>&6
24758 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
24762 cat >> confdefs.h <<\EOF
24763 #define LDAP_SLAPI 1
24768 if test "$ol_enable_debug" != no ; then
24769 cat >> confdefs.h <<\EOF
24770 #define LDAP_DEBUG 1
24774 if test "$ol_enable_syslog" = yes ; then
24775 cat >> confdefs.h <<\EOF
24776 #define LDAP_SYSLOG 1
24780 if test "$ol_link_kbind" != no ; then
24781 cat >> confdefs.h <<\EOF
24782 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
24786 if test "$ol_enable_proctitle" != no ; then
24787 cat >> confdefs.h <<\EOF
24788 #define LDAP_PROCTITLE 1
24792 if test "$ol_enable_referrals" != no ; then
24793 cat >> confdefs.h <<\EOF
24794 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
24798 if test "$ol_enable_local" != no; then
24799 cat >> confdefs.h <<\EOF
24800 #define LDAP_PF_LOCAL 1
24804 if test "$ol_link_ipv6" != no; then
24805 cat >> confdefs.h <<\EOF
24806 #define LDAP_PF_INET6 1
24810 if test "$ol_enable_cleartext" != no ; then
24811 cat >> confdefs.h <<\EOF
24812 #define SLAPD_CLEARTEXT 1
24816 if test "$ol_enable_crypt" != no ; then
24817 cat >> confdefs.h <<\EOF
24818 #define SLAPD_CRYPT 1
24822 if test "$ol_link_spasswd" != no ; then
24823 cat >> confdefs.h <<\EOF
24824 #define SLAPD_SPASSWD 1
24828 if test "$ol_enable_multimaster" != no ; then
24829 cat >> confdefs.h <<\EOF
24830 #define SLAPD_MULTIMASTER 1
24834 if test "$ol_enable_rlookups" != no ; then
24835 cat >> confdefs.h <<\EOF
24836 #define SLAPD_RLOOKUPS 1
24840 if test "$ol_enable_aci" != no ; then
24841 cat >> confdefs.h <<\EOF
24842 #define SLAPD_ACI_ENABLED 1
24847 if test "$ol_link_modules" != no ; then
24848 cat >> confdefs.h <<\EOF
24849 #define SLAPD_MODULES 1
24853 SLAPD_MODULES_LDFLAGS="-dlopen self"
24856 cat >> confdefs.h <<\EOF
24857 #define SLAPD_MOD_STATIC 1
24860 cat >> confdefs.h <<\EOF
24861 #define SLAPD_MOD_DYNAMIC 2
24865 if test "$ol_enable_bdb" != no ; then
24867 BUILD_BDB=$ol_enable_bdb
24868 if test "$ol_enable_bdb" = mod ; then
24869 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
24870 MFLAG=SLAPD_MOD_DYNAMIC
24872 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
24873 MFLAG=SLAPD_MOD_STATIC
24875 cat >> confdefs.h <<EOF
24876 #define SLAPD_BDB $MFLAG
24881 if test "$ol_enable_dnssrv" != no ; then
24883 BUILD_DNSSRV=$ol_enable_dnssrv
24884 if test "$ol_enable_dnssrv" = mod ; then
24885 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
24886 MFLAG=SLAPD_MOD_DYNAMIC
24888 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
24889 MFLAG=SLAPD_MOD_STATIC
24891 cat >> confdefs.h <<EOF
24892 #define SLAPD_DNSSRV $MFLAG
24897 if test "$ol_enable_hdb" != no ; then
24899 BUILD_HDB=$ol_enable_hdb
24900 if test "$ol_enable_hdb" = mod ; then
24901 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
24902 MFLAG=SLAPD_MOD_DYNAMIC
24904 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
24905 MFLAG=SLAPD_MOD_STATIC
24907 cat >> confdefs.h <<EOF
24908 #define SLAPD_HDB $MFLAG
24913 if test "$ol_enable_ldap" != no ; then
24915 BUILD_LDAP=$ol_enable_ldap
24916 if test "$ol_enable_ldap" = mod ; then
24917 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
24918 MFLAG=SLAPD_MOD_DYNAMIC
24920 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
24921 MFLAG=SLAPD_MOD_STATIC
24923 cat >> confdefs.h <<EOF
24924 #define SLAPD_LDAP $MFLAG
24929 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
24931 BUILD_LDBM=$ol_enable_ldbm
24932 if test "$ol_enable_ldbm" = mod ; then
24933 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
24934 MFLAG=SLAPD_MOD_DYNAMIC
24936 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
24937 MFLAG=SLAPD_MOD_STATIC
24939 cat >> confdefs.h <<EOF
24940 #define SLAPD_LDBM $MFLAG
24945 if test "$ol_enable_meta" != no ; then
24947 BUILD_META=$ol_enable_meta
24949 if test "$ol_enable_meta" = mod ; then
24950 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
24951 MFLAG=SLAPD_MOD_DYNAMIC
24953 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
24954 MFLAG=SLAPD_MOD_STATIC
24956 cat >> confdefs.h <<EOF
24957 #define SLAPD_META $MFLAG
24962 if test "$ol_enable_monitor" != no ; then
24964 BUILD_MONITOR=$ol_enable_monitor
24965 if test "$ol_enable_monitor" = mod ; then
24966 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
24967 MFLAG=SLAPD_MOD_DYNAMIC
24969 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
24970 MFLAG=SLAPD_MOD_STATIC
24972 cat >> confdefs.h <<EOF
24973 #define SLAPD_MONITOR $MFLAG
24978 if test "$ol_enable_null" != no ; then
24980 BUILD_NULL=$ol_enable_null
24981 if test "$ol_enable_null" = mod ; then
24982 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
24983 MFLAG=SLAPD_MOD_DYNAMIC
24985 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
24986 MFLAG=SLAPD_MOD_STATIC
24988 cat >> confdefs.h <<EOF
24989 #define SLAPD_NULL $MFLAG
24994 if test "$ol_enable_passwd" != no ; then
24996 BUILD_PASSWD=$ol_enable_passwd
24997 if test "$ol_enable_passwd" = mod ; then
24998 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
24999 MFLAG=SLAPD_MOD_DYNAMIC
25001 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
25002 MFLAG=SLAPD_MOD_STATIC
25004 cat >> confdefs.h <<EOF
25005 #define SLAPD_PASSWD $MFLAG
25010 if test "$ol_link_perl" != no ; then
25012 BUILD_PERL=$ol_enable_perl
25013 if test "$ol_enable_perl" = mod ; then
25014 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
25015 MFLAG=SLAPD_MOD_DYNAMIC
25017 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
25018 MFLAG=SLAPD_MOD_STATIC
25020 cat >> confdefs.h <<EOF
25021 #define SLAPD_PERL $MFLAG
25026 if test "$ol_enable_relay" != no ; then
25028 BUILD_RELAY=$ol_enable_relay
25029 if test "$ol_enable_relay" = mod ; then
25030 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
25031 MFLAG=SLAPD_MOD_DYNAMIC
25033 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
25034 MFLAG=SLAPD_MOD_STATIC
25036 cat >> confdefs.h <<EOF
25037 #define SLAPD_RELAY $MFLAG
25042 if test "$ol_enable_shell" != no ; then
25043 if test "$ol_link_thread" != no ; then
25044 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
25047 BUILD_SHELL=$ol_enable_shell
25048 if test "$ol_enable_shell" = mod ; then
25049 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
25050 MFLAG=SLAPD_MOD_DYNAMIC
25052 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
25053 MFLAG=SLAPD_MOD_STATIC
25055 cat >> confdefs.h <<EOF
25056 #define SLAPD_SHELL $MFLAG
25061 if test "$ol_link_sql" != no ; then
25063 BUILD_SQL=$ol_enable_sql
25064 if test "$ol_enable_sql" = mod; then
25065 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
25066 MFLAG=SLAPD_MOD_DYNAMIC
25068 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
25069 MFLAG=SLAPD_MOD_STATIC
25071 cat >> confdefs.h <<EOF
25072 #define SLAPD_SQL $MFLAG
25077 if test "$ol_enable_accesslog" != no ; then
25078 BUILD_ACCESSLOG=$ol_enable_accesslog
25079 if test "$ol_enable_accesslog" = mod ; then
25080 MFLAG=SLAPD_MOD_DYNAMIC
25081 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
25083 MFLAG=SLAPD_MOD_STATIC
25084 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
25086 cat >> confdefs.h <<EOF
25087 #define SLAPD_OVER_ACCESSLOG $MFLAG
25092 if test "$ol_enable_denyop" != no ; then
25093 BUILD_DENYOP=$ol_enable_denyop
25094 if test "$ol_enable_denyop" = mod ; then
25095 MFLAG=SLAPD_MOD_DYNAMIC
25096 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
25098 MFLAG=SLAPD_MOD_STATIC
25099 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
25101 cat >> confdefs.h <<EOF
25102 #define SLAPD_OVER_DENYOP $MFLAG
25107 if test "$ol_enable_dyngroup" != no ; then
25108 BUILD_DYNGROUP=$ol_enable_dyngroup
25109 if test "$ol_enable_dyngroup" = mod ; then
25110 MFLAG=SLAPD_MOD_DYNAMIC
25111 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
25113 MFLAG=SLAPD_MOD_STATIC
25114 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
25116 cat >> confdefs.h <<EOF
25117 #define SLAPD_OVER_DYNGROUP $MFLAG
25122 if test "$ol_enable_dynlist" != no ; then
25123 BUILD_DYNLIST=$ol_enable_dynlist
25124 if test "$ol_enable_dynlist" = mod ; then
25125 MFLAG=SLAPD_MOD_DYNAMIC
25126 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
25128 MFLAG=SLAPD_MOD_STATIC
25129 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
25131 cat >> confdefs.h <<EOF
25132 #define SLAPD_OVER_DYNLIST $MFLAG
25137 if test "$ol_enable_glue" != no ; then
25138 BUILD_GLUE=$ol_enable_glue
25139 if test "$ol_enable_glue" = mod ; then
25140 MFLAG=SLAPD_MOD_DYNAMIC
25141 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
25143 MFLAG=SLAPD_MOD_STATIC
25144 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
25146 cat >> confdefs.h <<EOF
25147 #define SLAPD_OVER_GLUE $MFLAG
25152 if test "$ol_enable_lastmod" != no ; then
25153 BUILD_LASTMOD=$ol_enable_lastmod
25154 if test "$ol_enable_lastmod" = mod ; then
25155 MFLAG=SLAPD_MOD_DYNAMIC
25156 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
25158 MFLAG=SLAPD_MOD_STATIC
25159 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
25161 cat >> confdefs.h <<EOF
25162 #define SLAPD_OVER_LASTMOD $MFLAG
25167 if test "$ol_enable_ppolicy" != no ; then
25168 BUILD_PPOLICY=$ol_enable_ppolicy
25169 if test "$ol_enable_ppolicy" = mod ; then
25170 MFLAG=SLAPD_MOD_DYNAMIC
25171 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
25173 MFLAG=SLAPD_MOD_STATIC
25174 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
25176 cat >> confdefs.h <<EOF
25177 #define SLAPD_OVER_PPOLICY $MFLAG
25182 if test "$ol_enable_proxycache" != no ; then
25183 BUILD_PROXYCACHE=$ol_enable_proxycache
25184 if test "$ol_enable_proxycache" = mod ; then
25185 MFLAG=SLAPD_MOD_DYNAMIC
25186 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
25188 MFLAG=SLAPD_MOD_STATIC
25189 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
25191 cat >> confdefs.h <<EOF
25192 #define SLAPD_OVER_PROXYCACHE $MFLAG
25197 if test "$ol_enable_refint" != no ; then
25198 BUILD_REFINT=$ol_enable_refint
25199 if test "$ol_enable_refint" = mod ; then
25200 MFLAG=SLAPD_MOD_DYNAMIC
25201 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
25203 MFLAG=SLAPD_MOD_STATIC
25204 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
25206 cat >> confdefs.h <<EOF
25207 #define SLAPD_OVER_REFINT $MFLAG
25212 if test "$ol_enable_retcode" != no ; then
25213 BUILD_RETCODE=$ol_enable_retcode
25214 if test "$ol_enable_retcode" = mod ; then
25215 MFLAG=SLAPD_MOD_DYNAMIC
25216 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
25218 MFLAG=SLAPD_MOD_STATIC
25219 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
25221 cat >> confdefs.h <<EOF
25222 #define SLAPD_OVER_RETCODE $MFLAG
25227 if test "$ol_enable_rwm" != no ; then
25229 BUILD_RWM=$ol_enable_rwm
25230 if test "$ol_enable_rwm" = mod ; then
25231 MFLAG=SLAPD_MOD_DYNAMIC
25232 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
25234 MFLAG=SLAPD_MOD_STATIC
25235 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
25237 cat >> confdefs.h <<EOF
25238 #define SLAPD_OVER_RWM $MFLAG
25243 if test "$ol_enable_syncprov" != no ; then
25244 BUILD_SYNCPROV=$ol_enable_syncprov
25245 if test "$ol_enable_syncprov" = mod ; then
25246 MFLAG=SLAPD_MOD_DYNAMIC
25247 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
25249 MFLAG=SLAPD_MOD_STATIC
25250 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
25252 cat >> confdefs.h <<EOF
25253 #define SLAPD_OVER_SYNCPROV $MFLAG
25258 if test "$ol_enable_translucent" != no ; then
25259 BUILD_TRANSLUCENT=$ol_enable_translucent
25260 if test "$ol_enable_translucent" = mod ; then
25261 MFLAG=SLAPD_MOD_DYNAMIC
25262 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
25264 MFLAG=SLAPD_MOD_STATIC
25265 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
25267 cat >> confdefs.h <<EOF
25268 #define SLAPD_OVER_TRANSLUCENT $MFLAG
25273 if test "$ol_enable_unique" != no ; then
25274 BUILD_UNIQUE=$ol_enable_unique
25275 if test "$ol_enable_unique" = mod ; then
25276 MFLAG=SLAPD_MOD_DYNAMIC
25277 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
25279 MFLAG=SLAPD_MOD_STATIC
25280 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
25282 cat >> confdefs.h <<EOF
25283 #define SLAPD_OVER_UNIQUE $MFLAG
25288 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
25289 $BUILD_SLAPD = yes ; then
25293 if test "$ol_enable_rewrite" != no ; then
25294 cat >> confdefs.h <<\EOF
25295 #define ENABLE_REWRITE 1
25301 if test "$ol_enable_slapi" != no ; then
25302 cat >> confdefs.h <<\EOF
25303 #define ENABLE_SLAPI 1
25307 SLAPD_SLAPI_DEPEND=libslapi.a
25312 if test "$ac_cv_mingw32" = yes ; then
25314 SLAPD_MODULES_LDFLAGS=
25396 # Check whether --with-xxinstall or --without-xxinstall was given.
25397 if test "${with_xxinstall+set}" = set; then
25398 withval="$with_xxinstall"
25406 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
25408 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25409 # Let make expand exec_prefix.
25410 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25412 # Any assignment to VPATH causes Sun make to only execute
25413 # the first set of double-colon rules, so remove it if not needed.
25414 # If there is a colon in the path, we need to keep it.
25415 if test "x$srcdir" = x.; then
25416 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
25419 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
25421 DEFS=-DHAVE_CONFIG_H
25423 # Without the "./", some shells look in PATH for config.status.
25424 : ${CONFIG_STATUS=./config.status}
25426 echo creating $CONFIG_STATUS
25427 rm -f $CONFIG_STATUS
25428 cat > $CONFIG_STATUS <<EOF
25430 # Generated automatically by configure.
25431 # Run this file to recreate the current configuration.
25432 # This directory was configured as follows,
25433 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25435 # $0 $ac_configure_args
25437 # Compiler output produced by configure, useful for debugging
25438 # configure, is in ./config.log if it exists.
25440 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
25443 case "\$ac_option" in
25444 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25445 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
25446 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
25447 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
25448 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
25450 -help | --help | --hel | --he | --h)
25451 echo "\$ac_cs_usage"; exit 0 ;;
25452 *) echo "\$ac_cs_usage"; exit 1 ;;
25456 ac_given_srcdir=$srcdir
25457 ac_given_INSTALL="$INSTALL"
25459 trap 'rm -fr `echo "\
25460 Makefile:build/top.mk:Makefile.in:build/dir.mk \
25461 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
25462 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
25463 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
25464 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
25465 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
25466 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
25467 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
25468 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
25469 include/Makefile:build/top.mk:include/Makefile.in \
25470 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
25471 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
25472 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
25473 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
25474 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
25475 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
25476 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk \
25477 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
25478 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
25479 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
25480 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
25481 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
25482 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
25483 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
25484 servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk \
25485 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
25486 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
25487 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
25488 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
25489 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
25490 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
25491 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
25492 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
25493 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
25494 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
25495 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
25496 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
25497 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
25499 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
25500 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
25502 cat >> $CONFIG_STATUS <<EOF
25504 # Protect against being on the right side of a sed subst in config.status.
25505 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
25506 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
25510 s%@CFLAGS@%$CFLAGS%g
25511 s%@CPPFLAGS@%$CPPFLAGS%g
25512 s%@CXXFLAGS@%$CXXFLAGS%g
25513 s%@FFLAGS@%$FFLAGS%g
25515 s%@LDFLAGS@%$LDFLAGS%g
25517 s%@exec_prefix@%$exec_prefix%g
25518 s%@prefix@%$prefix%g
25519 s%@program_transform_name@%$program_transform_name%g
25520 s%@bindir@%$bindir%g
25521 s%@sbindir@%$sbindir%g
25522 s%@libexecdir@%$libexecdir%g
25523 s%@datadir@%$datadir%g
25524 s%@sysconfdir@%$sysconfdir%g
25525 s%@sharedstatedir@%$sharedstatedir%g
25526 s%@localstatedir@%$localstatedir%g
25527 s%@libdir@%$libdir%g
25528 s%@includedir@%$includedir%g
25529 s%@oldincludedir@%$oldincludedir%g
25530 s%@infodir@%$infodir%g
25531 s%@mandir@%$mandir%g
25533 s%@host_alias@%$host_alias%g
25534 s%@host_cpu@%$host_cpu%g
25535 s%@host_vendor@%$host_vendor%g
25536 s%@host_os@%$host_os%g
25537 s%@target@%$target%g
25538 s%@target_alias@%$target_alias%g
25539 s%@target_cpu@%$target_cpu%g
25540 s%@target_vendor@%$target_vendor%g
25541 s%@target_os@%$target_os%g
25543 s%@build_alias@%$build_alias%g
25544 s%@build_cpu@%$build_cpu%g
25545 s%@build_vendor@%$build_vendor%g
25546 s%@build_os@%$build_os%g
25547 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
25548 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
25549 s%@INSTALL_DATA@%$INSTALL_DATA%g
25550 s%@PACKAGE@%$PACKAGE%g
25551 s%@VERSION@%$VERSION%g
25552 s%@ACLOCAL@%$ACLOCAL%g
25553 s%@AUTOCONF@%$AUTOCONF%g
25554 s%@AUTOMAKE@%$AUTOMAKE%g
25555 s%@AUTOHEADER@%$AUTOHEADER%g
25556 s%@MAKEINFO@%$MAKEINFO%g
25557 s%@install_sh@%$install_sh%g
25560 s%@AMTARFLAGS@%$AMTARFLAGS%g
25561 s%@SET_MAKE@%$SET_MAKE%g
25562 s%@OPENLDAP_LIBRELEASE@%$OPENLDAP_LIBRELEASE%g
25563 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
25564 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
25565 s%@top_builddir@%$top_builddir%g
25566 s%@ldap_subdir@%$ldap_subdir%g
25570 s%@OBJEXT@%$OBJEXT%g
25571 s%@EXEEXT@%$EXEEXT%g
25573 s%@RANLIB@%$RANLIB%g
25575 s%@DLLTOOL@%$DLLTOOL%g
25577 s%@OBJDUMP@%$OBJDUMP%g
25579 s%@LIBTOOL@%$LIBTOOL%g
25580 s%@PERLBIN@%$PERLBIN%g
25581 s%@OL_MKDEP@%$OL_MKDEP%g
25582 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
25583 s%@LTSTATIC@%$LTSTATIC%g
25584 s%@LIBOBJS@%$LIBOBJS%g
25585 s%@LIBSRCS@%$LIBSRCS%g
25587 s%@WITH_SASL@%$WITH_SASL%g
25588 s%@WITH_TLS@%$WITH_TLS%g
25589 s%@WITH_MODULES_ENABLED@%$WITH_MODULES_ENABLED%g
25590 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
25591 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
25592 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
25593 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
25594 s%@BUILD_BDB@%$BUILD_BDB%g
25595 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
25596 s%@BUILD_HDB@%$BUILD_HDB%g
25597 s%@BUILD_LDAP@%$BUILD_LDAP%g
25598 s%@BUILD_LDBM@%$BUILD_LDBM%g
25599 s%@BUILD_META@%$BUILD_META%g
25600 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
25601 s%@BUILD_NULL@%$BUILD_NULL%g
25602 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
25603 s%@BUILD_RELAY@%$BUILD_RELAY%g
25604 s%@BUILD_PERL@%$BUILD_PERL%g
25605 s%@BUILD_SHELL@%$BUILD_SHELL%g
25606 s%@BUILD_SQL@%$BUILD_SQL%g
25607 s%@BUILD_ACCESSLOG@%$BUILD_ACCESSLOG%g
25608 s%@BUILD_DENYOP@%$BUILD_DENYOP%g
25609 s%@BUILD_DYNGROUP@%$BUILD_DYNGROUP%g
25610 s%@BUILD_DYNLIST@%$BUILD_DYNLIST%g
25611 s%@BUILD_GLUE@%$BUILD_GLUE%g
25612 s%@BUILD_LASTMOD@%$BUILD_LASTMOD%g
25613 s%@BUILD_PPOLICY@%$BUILD_PPOLICY%g
25614 s%@BUILD_PROXYCACHE@%$BUILD_PROXYCACHE%g
25615 s%@BUILD_REFINT@%$BUILD_REFINT%g
25616 s%@BUILD_RETCODE@%$BUILD_RETCODE%g
25617 s%@BUILD_RWM@%$BUILD_RWM%g
25618 s%@BUILD_SYNCPROV@%$BUILD_SYNCPROV%g
25619 s%@BUILD_TRANSLUCENT@%$BUILD_TRANSLUCENT%g
25620 s%@BUILD_UNIQUE@%$BUILD_UNIQUE%g
25621 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
25622 s%@LDAP_LIBS@%$LDAP_LIBS%g
25623 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
25624 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
25625 s%@LDBM_LIBS@%$LDBM_LIBS%g
25626 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
25627 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
25628 s%@WRAP_LIBS@%$WRAP_LIBS%g
25629 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
25630 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
25631 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
25632 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
25633 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
25634 s%@SLAPD_STATIC_OVERLAYS@%$SLAPD_STATIC_OVERLAYS%g
25635 s%@SLAPD_DYNAMIC_OVERLAYS@%$SLAPD_DYNAMIC_OVERLAYS%g
25636 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
25637 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
25638 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
25639 s%@KRB4_LIBS@%$KRB4_LIBS%g
25640 s%@KRB5_LIBS@%$KRB5_LIBS%g
25641 s%@SASL_LIBS@%$SASL_LIBS%g
25642 s%@TLS_LIBS@%$TLS_LIBS%g
25643 s%@MODULES_LIBS@%$MODULES_LIBS%g
25644 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
25645 s%@LIBSLAPI@%$LIBSLAPI%g
25646 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
25647 s%@AUTH_LIBS@%$AUTH_LIBS%g
25648 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
25649 s%@SLAPD_GMP_LIBS@%$SLAPD_GMP_LIBS%g
25650 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
25651 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
25652 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
25657 cat >> $CONFIG_STATUS <<\EOF
25659 # Split the substitutions into bite-sized pieces for seds with
25660 # small command number limits, like on Digital OSF/1 and HP-UX.
25661 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
25662 ac_file=1 # Number of current file.
25663 ac_beg=1 # First line for current file.
25664 ac_end=$ac_max_sed_cmds # Line after last line for current file.
25667 while $ac_more_lines; do
25668 if test $ac_beg -gt 1; then
25669 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
25671 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
25673 if test ! -s conftest.s$ac_file; then
25674 ac_more_lines=false
25675 rm -f conftest.s$ac_file
25677 if test -z "$ac_sed_cmds"; then
25678 ac_sed_cmds="sed -f conftest.s$ac_file"
25680 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
25682 ac_file=`expr $ac_file + 1`
25684 ac_end=`expr $ac_end + $ac_max_sed_cmds`
25687 if test -z "$ac_sed_cmds"; then
25692 cat >> $CONFIG_STATUS <<EOF
25694 CONFIG_FILES=\${CONFIG_FILES-"\
25695 Makefile:build/top.mk:Makefile.in:build/dir.mk \
25696 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
25697 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
25698 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
25699 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
25700 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
25701 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
25702 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
25703 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
25704 include/Makefile:build/top.mk:include/Makefile.in \
25705 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
25706 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
25707 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
25708 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
25709 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
25710 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
25711 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk \
25712 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
25713 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
25714 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
25715 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
25716 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
25717 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
25718 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
25719 servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk \
25720 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
25721 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
25722 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
25723 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
25724 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
25725 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
25726 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
25727 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
25728 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
25729 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
25730 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
25731 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
25732 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
25734 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
25737 cat >> $CONFIG_STATUS <<\EOF
25738 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
25739 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25741 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
25742 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25743 *) ac_file_in="${ac_file}.in" ;;
25746 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
25748 # Remove last slash and all that follows it. Not all systems have dirname.
25749 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
25750 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
25751 # The file is in a subdirectory.
25752 test ! -d "$ac_dir" && mkdir "$ac_dir"
25753 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
25754 # A "../" for each directory in $ac_dir_suffix.
25755 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
25757 ac_dir_suffix= ac_dots=
25760 case "$ac_given_srcdir" in
25762 if test -z "$ac_dots"; then top_srcdir=.
25763 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
25764 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
25765 *) # Relative path.
25766 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
25767 top_srcdir="$ac_dots$ac_given_srcdir" ;;
25770 case "$ac_given_INSTALL" in
25771 [/$]*) INSTALL="$ac_given_INSTALL" ;;
25772 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
25775 echo creating "$ac_file"
25777 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
25779 *[Mm]akefile*) ac_comsub="1i\\
25780 # $configure_input" ;;
25784 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
25786 s%@configure_input@%$configure_input%g
25787 s%@srcdir@%$srcdir%g
25788 s%@top_srcdir@%$top_srcdir%g
25789 s%@INSTALL@%$INSTALL%g
25790 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
25794 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25795 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25797 # ac_d sets the value in "#define NAME VALUE" lines.
25798 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25799 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
25802 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
25803 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25804 ac_uB='\([ ]\)%\1#\2define\3'
25807 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25808 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25809 ac_eB='$%\1#\2define\3'
25813 if test "${CONFIG_HEADERS+set}" != set; then
25815 cat >> $CONFIG_STATUS <<EOF
25816 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
25818 cat >> $CONFIG_STATUS <<\EOF
25820 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
25821 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25823 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
25824 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25825 *) ac_file_in="${ac_file}.in" ;;
25828 echo creating $ac_file
25830 rm -f conftest.frag conftest.in conftest.out
25831 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
25832 cat $ac_file_inputs > conftest.in
25836 # Transform confdefs.h into a sed script conftest.vals that substitutes
25837 # the proper values into config.h.in to produce config.h. And first:
25838 # Protect against being on the right side of a sed subst in config.status.
25839 # Protect against being in an unquoted here document in config.status.
25840 rm -f conftest.vals
25841 cat > conftest.hdr <<\EOF
25844 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
25848 sed -n -f conftest.hdr confdefs.h > conftest.vals
25851 # This sed command replaces #undef with comments. This is necessary, for
25852 # example, in the case of _POSIX_SOURCE, which is predefined and required
25853 # on some systems where configure will not decide to define it.
25854 cat >> conftest.vals <<\EOF
25855 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
25858 # Break up conftest.vals because some shells have a limit on
25859 # the size of here documents, and old seds have small limits too.
25861 rm -f conftest.tail
25864 ac_lines=`grep -c . conftest.vals`
25865 # grep -c gives empty output for an empty file on some AIX systems.
25866 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
25867 # Write a limited-size here document to conftest.frag.
25868 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
25869 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
25871 sed -f conftest.frag conftest.in > conftest.out
25873 mv conftest.out conftest.in
25874 ' >> $CONFIG_STATUS
25875 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
25876 rm -f conftest.vals
25877 mv conftest.tail conftest.vals
25879 rm -f conftest.vals
25881 cat >> $CONFIG_STATUS <<\EOF
25882 rm -f conftest.frag conftest.h
25883 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
25884 cat conftest.in >> conftest.h
25886 if cmp -s $ac_file conftest.h 2>/dev/null; then
25887 echo "$ac_file is unchanged"
25890 # Remove last slash and all that follows it. Not all systems have dirname.
25891 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
25892 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
25893 # The file is in a subdirectory.
25894 test ! -d "$ac_dir" && mkdir "$ac_dir"
25897 mv conftest.h $ac_file
25902 cat >> $CONFIG_STATUS <<EOF
25903 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
25905 cat >> $CONFIG_STATUS <<\EOF
25909 BACKENDSC="servers/slapd/backends.c"
25910 echo "Making $BACKENDSC"
25912 cat > $BACKENDSC << ENDX
25913 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
25915 * Copyright 1998-2005 The OpenLDAP Foundation.
25916 * All rights reserved.
25918 * Redistribution and use in source and binary forms, with or without
25919 * modification, are permitted only as authorized by the OpenLDAP
25922 * A copy of this license is available in the file LICENSE in the
25923 * top-level directory of the distribution or, alternatively, at
25924 * <http://www.OpenLDAP.org/license.html>.
25926 /* This file is automatically generated by configure; please do not edit. */
25928 #include "portable.h"
25932 if test "${STATIC_BACKENDS}"; then
25933 for b in config ${STATIC_BACKENDS}; do
25934 bb=`echo "${b}" | sed -e 's/back-//'`
25935 cat >> $BACKENDSC << ENDX
25936 extern BI_init ${bb}_back_initialize;
25940 cat >> $BACKENDSC << ENDX
25942 BackendInfo slap_binfo[] = {
25945 for b in config ${STATIC_BACKENDS}; do
25946 bb=`echo "${b}" | sed -e 's/back-//'`
25947 echo " Add ${bb} ..."
25948 cat >> $BACKENDSC << ENDX
25949 { "${bb}", ${bb}_back_initialize },
25953 cat >> $BACKENDSC << ENDX
25957 /* end of generated file */
25961 echo Please run \"make depend\" to build dependencies
25965 chmod +x $CONFIG_STATUS
25966 rm -fr confdefs* $ac_clean_files
25967 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1