3 # from OpenLDAP: pkg/ldap/configure.in,v 1.585 2005/07/25 18:51:00 ando 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 the rwm overlay [auto]"
81 --enable-rlookups enable reverse lookups of client hostnames [no]"
83 --enable-slapi enable SLAPI support (experimental) [no]"
85 --enable-slp enable SLPv2 support [no]"
87 --enable-wrappers enable tcp wrapper support [no]"
90 SLAPD Backend Options:"
92 --enable-backends enable all available backends no|yes|mod [no]"
94 --enable-bdb enable Berkeley DB backend no|yes|mod [yes]"
96 --enable-dnssrv enable dnssrv backend no|yes|mod [no]"
98 --enable-hdb enable Hierarchical DB backend no|yes|mod [yes]"
100 --enable-ldap enable ldap backend no|yes|mod [no]"
102 --enable-ldbm enable ldbm backend no|yes|mod [no]"
104 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
106 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
108 --enable-meta enable metadirectory backend no|yes|mod [no]"
110 --enable-monitor enable monitor backend no|yes|mod [yes]"
112 --enable-null enable null backend no|yes|mod [no]"
114 --enable-passwd enable passwd backend no|yes|mod [no]"
116 --enable-perl enable perl backend no|yes|mod [no]"
118 --enable-relay enable relay backend no|yes|mod [yes]"
120 --enable-shell enable shell backend no|yes|mod [no]"
122 --enable-sql enable sql backend no|yes|mod [no]"
125 SLAPD Overlay Options:"
127 --enable-overlays enable all available overlays no|yes|mod [no]"
129 --enable-accesslog In-Directory Access Logging overlay no|yes|mod [no]"
131 --enable-denyop Deny Operation overlay no|yes|mod [no]"
133 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]"
135 --enable-dynlist Dynamic List overlay no|yes|mod [no]"
137 --enable-glue Backend Glue overlay no|yes|mod [yes]"
139 --enable-lastmod Last Modification overlay no|yes|mod [no]"
141 --enable-ppolicy Password Policy overlay no|yes|mod [no]"
143 --enable-proxycache Proxy Cache overlay no|yes|mod [no]"
145 --enable-refint Referential Integrity overlay no|yes|mod [no]"
147 --enable-retcode Return Code testing overlay no|yes|mod [no]"
149 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]"
151 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]"
153 --enable-translucent Translucent Proxy overlay no|yes|mod [no]"
155 --enable-unique Attribute Uniqueness overlay no|yes|mod [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 ol_enable_backends="no"
1944 # end --enable-backends
1945 # OpenLDAP --enable-bdb
1946 # Check whether --enable-bdb or --disable-bdb was given.
1947 if test "${enable_bdb+set}" = set; then
1948 enableval="$enable_bdb"
1951 for ol_val in no yes mod ; do
1952 if test "$enableval" = "$ol_val" ; then
1956 if test "$ol_arg" = "invalid" ; then
1957 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1959 ol_enable_bdb="$ol_arg"
1965 # OpenLDAP --enable-dnssrv
1966 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1967 if test "${enable_dnssrv+set}" = set; then
1968 enableval="$enable_dnssrv"
1971 for ol_val in no yes mod ; do
1972 if test "$enableval" = "$ol_val" ; then
1976 if test "$ol_arg" = "invalid" ; then
1977 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1979 ol_enable_dnssrv="$ol_arg"
1982 ol_enable_dnssrv="no"
1984 # end --enable-dnssrv
1985 # OpenLDAP --enable-hdb
1986 # Check whether --enable-hdb or --disable-hdb was given.
1987 if test "${enable_hdb+set}" = set; then
1988 enableval="$enable_hdb"
1991 for ol_val in no yes mod ; do
1992 if test "$enableval" = "$ol_val" ; then
1996 if test "$ol_arg" = "invalid" ; then
1997 { echo "configure: error: bad value $enableval for --enable-hdb" 1>&2; exit 1; }
1999 ol_enable_hdb="$ol_arg"
2005 # OpenLDAP --enable-ldap
2006 # Check whether --enable-ldap or --disable-ldap was given.
2007 if test "${enable_ldap+set}" = set; then
2008 enableval="$enable_ldap"
2011 for ol_val in no yes mod ; do
2012 if test "$enableval" = "$ol_val" ; then
2016 if test "$ol_arg" = "invalid" ; then
2017 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2019 ol_enable_ldap="$ol_arg"
2025 # OpenLDAP --enable-ldbm
2026 # Check whether --enable-ldbm or --disable-ldbm was given.
2027 if test "${enable_ldbm+set}" = set; then
2028 enableval="$enable_ldbm"
2031 for ol_val in no yes mod ; do
2032 if test "$enableval" = "$ol_val" ; then
2036 if test "$ol_arg" = "invalid" ; then
2037 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2039 ol_enable_ldbm="$ol_arg"
2045 # OpenLDAP --with-ldbm_api
2046 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2047 if test "${with_ldbm_api+set}" = set; then
2048 withval="$with_ldbm_api"
2051 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2052 if test "$withval" = "$ol_val" ; then
2056 if test "$ol_arg" = "invalid" ; then
2057 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2059 ol_with_ldbm_api="$ol_arg"
2062 ol_with_ldbm_api="auto"
2064 # end --with-ldbm_api
2066 # OpenLDAP --with-ldbm_type
2067 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2068 if test "${with_ldbm_type+set}" = set; then
2069 withval="$with_ldbm_type"
2072 for ol_val in auto btree hash ; do
2073 if test "$withval" = "$ol_val" ; then
2077 if test "$ol_arg" = "invalid" ; then
2078 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2080 ol_with_ldbm_type="$ol_arg"
2083 ol_with_ldbm_type="auto"
2085 # end --with-ldbm_type
2087 # OpenLDAP --enable-meta
2088 # Check whether --enable-meta or --disable-meta was given.
2089 if test "${enable_meta+set}" = set; then
2090 enableval="$enable_meta"
2093 for ol_val in no yes mod ; do
2094 if test "$enableval" = "$ol_val" ; then
2098 if test "$ol_arg" = "invalid" ; then
2099 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2101 ol_enable_meta="$ol_arg"
2107 # OpenLDAP --enable-monitor
2108 # Check whether --enable-monitor or --disable-monitor was given.
2109 if test "${enable_monitor+set}" = set; then
2110 enableval="$enable_monitor"
2113 for ol_val in no yes mod ; do
2114 if test "$enableval" = "$ol_val" ; then
2118 if test "$ol_arg" = "invalid" ; then
2119 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2121 ol_enable_monitor="$ol_arg"
2124 ol_enable_monitor="yes"
2126 # end --enable-monitor
2127 # OpenLDAP --enable-null
2128 # Check whether --enable-null or --disable-null was given.
2129 if test "${enable_null+set}" = set; then
2130 enableval="$enable_null"
2133 for ol_val in no yes mod ; do
2134 if test "$enableval" = "$ol_val" ; then
2138 if test "$ol_arg" = "invalid" ; then
2139 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2141 ol_enable_null="$ol_arg"
2147 # OpenLDAP --enable-passwd
2148 # Check whether --enable-passwd or --disable-passwd was given.
2149 if test "${enable_passwd+set}" = set; then
2150 enableval="$enable_passwd"
2153 for ol_val in no yes mod ; do
2154 if test "$enableval" = "$ol_val" ; then
2158 if test "$ol_arg" = "invalid" ; then
2159 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2161 ol_enable_passwd="$ol_arg"
2164 ol_enable_passwd="no"
2166 # end --enable-passwd
2167 # OpenLDAP --enable-perl
2168 # Check whether --enable-perl or --disable-perl was given.
2169 if test "${enable_perl+set}" = set; then
2170 enableval="$enable_perl"
2173 for ol_val in no yes mod ; do
2174 if test "$enableval" = "$ol_val" ; then
2178 if test "$ol_arg" = "invalid" ; then
2179 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2181 ol_enable_perl="$ol_arg"
2187 # OpenLDAP --enable-relay
2188 # Check whether --enable-relay or --disable-relay was given.
2189 if test "${enable_relay+set}" = set; then
2190 enableval="$enable_relay"
2193 for ol_val in no yes mod ; do
2194 if test "$enableval" = "$ol_val" ; then
2198 if test "$ol_arg" = "invalid" ; then
2199 { echo "configure: error: bad value $enableval for --enable-relay" 1>&2; exit 1; }
2201 ol_enable_relay="$ol_arg"
2204 ol_enable_relay="yes"
2206 # end --enable-relay
2207 # OpenLDAP --enable-shell
2208 # Check whether --enable-shell or --disable-shell was given.
2209 if test "${enable_shell+set}" = set; then
2210 enableval="$enable_shell"
2213 for ol_val in no yes mod ; do
2214 if test "$enableval" = "$ol_val" ; then
2218 if test "$ol_arg" = "invalid" ; then
2219 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2221 ol_enable_shell="$ol_arg"
2224 ol_enable_shell="no"
2226 # end --enable-shell
2227 # OpenLDAP --enable-sql
2228 # Check whether --enable-sql or --disable-sql was given.
2229 if test "${enable_sql+set}" = set; then
2230 enableval="$enable_sql"
2233 for ol_val in no yes mod ; do
2234 if test "$enableval" = "$ol_val" ; then
2238 if test "$ol_arg" = "invalid" ; then
2239 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2241 ol_enable_sql="$ol_arg"
2248 Overlays="accesslog denyop dyngroup dynlist glue lastmod ppolicy proxycache \
2249 refint retcode rwm syncprov translucent unique"
2251 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
2252 if test "${with_xxslapoverlays+set}" = set; then
2253 withval="$with_xxslapoverlays"
2258 # OpenLDAP --enable-overlays
2259 # Check whether --enable-overlays or --disable-overlays was given.
2260 if test "${enable_overlays+set}" = set; then
2261 enableval="$enable_overlays"
2264 for ol_val in no yes mod ; do
2265 if test "$enableval" = "$ol_val" ; then
2269 if test "$ol_arg" = "invalid" ; then
2270 { echo "configure: error: bad value $enableval for --enable-overlays" 1>&2; exit 1; }
2272 ol_enable_overlays="$ol_arg"
2275 ol_enable_overlays="no"
2277 # end --enable-overlays
2278 # OpenLDAP --enable-accesslog
2279 # Check whether --enable-accesslog or --disable-accesslog was given.
2280 if test "${enable_accesslog+set}" = set; then
2281 enableval="$enable_accesslog"
2284 for ol_val in no yes mod ; do
2285 if test "$enableval" = "$ol_val" ; then
2289 if test "$ol_arg" = "invalid" ; then
2290 { echo "configure: error: bad value $enableval for --enable-accesslog" 1>&2; exit 1; }
2292 ol_enable_accesslog="$ol_arg"
2295 ol_enable_accesslog="no"
2297 # end --enable-accesslog
2299 # OpenLDAP --enable-denyop
2300 # Check whether --enable-denyop or --disable-denyop was given.
2301 if test "${enable_denyop+set}" = set; then
2302 enableval="$enable_denyop"
2305 for ol_val in no yes mod ; do
2306 if test "$enableval" = "$ol_val" ; then
2310 if test "$ol_arg" = "invalid" ; then
2311 { echo "configure: error: bad value $enableval for --enable-denyop" 1>&2; exit 1; }
2313 ol_enable_denyop="$ol_arg"
2316 ol_enable_denyop="no"
2318 # end --enable-denyop
2320 # OpenLDAP --enable-dyngroup
2321 # Check whether --enable-dyngroup or --disable-dyngroup was given.
2322 if test "${enable_dyngroup+set}" = set; then
2323 enableval="$enable_dyngroup"
2326 for ol_val in no yes mod ; do
2327 if test "$enableval" = "$ol_val" ; then
2331 if test "$ol_arg" = "invalid" ; then
2332 { echo "configure: error: bad value $enableval for --enable-dyngroup" 1>&2; exit 1; }
2334 ol_enable_dyngroup="$ol_arg"
2337 ol_enable_dyngroup="no"
2339 # end --enable-dyngroup
2341 # OpenLDAP --enable-dynlist
2342 # Check whether --enable-dynlist or --disable-dynlist was given.
2343 if test "${enable_dynlist+set}" = set; then
2344 enableval="$enable_dynlist"
2347 for ol_val in no yes mod ; do
2348 if test "$enableval" = "$ol_val" ; then
2352 if test "$ol_arg" = "invalid" ; then
2353 { echo "configure: error: bad value $enableval for --enable-dynlist" 1>&2; exit 1; }
2355 ol_enable_dynlist="$ol_arg"
2358 ol_enable_dynlist="no"
2360 # end --enable-dynlist
2362 # OpenLDAP --enable-glue
2363 # Check whether --enable-glue or --disable-glue was given.
2364 if test "${enable_glue+set}" = set; then
2365 enableval="$enable_glue"
2368 for ol_val in no yes mod ; do
2369 if test "$enableval" = "$ol_val" ; then
2373 if test "$ol_arg" = "invalid" ; then
2374 { echo "configure: error: bad value $enableval for --enable-glue" 1>&2; exit 1; }
2376 ol_enable_glue="$ol_arg"
2379 ol_enable_glue="yes"
2383 # OpenLDAP --enable-lastmod
2384 # Check whether --enable-lastmod or --disable-lastmod was given.
2385 if test "${enable_lastmod+set}" = set; then
2386 enableval="$enable_lastmod"
2389 for ol_val in no yes mod ; do
2390 if test "$enableval" = "$ol_val" ; then
2394 if test "$ol_arg" = "invalid" ; then
2395 { echo "configure: error: bad value $enableval for --enable-lastmod" 1>&2; exit 1; }
2397 ol_enable_lastmod="$ol_arg"
2400 ol_enable_lastmod="no"
2402 # end --enable-lastmod
2404 # OpenLDAP --enable-ppolicy
2405 # Check whether --enable-ppolicy or --disable-ppolicy was given.
2406 if test "${enable_ppolicy+set}" = set; then
2407 enableval="$enable_ppolicy"
2410 for ol_val in no yes mod ; do
2411 if test "$enableval" = "$ol_val" ; then
2415 if test "$ol_arg" = "invalid" ; then
2416 { echo "configure: error: bad value $enableval for --enable-ppolicy" 1>&2; exit 1; }
2418 ol_enable_ppolicy="$ol_arg"
2421 ol_enable_ppolicy="no"
2423 # end --enable-ppolicy
2425 # OpenLDAP --enable-proxycache
2426 # Check whether --enable-proxycache or --disable-proxycache was given.
2427 if test "${enable_proxycache+set}" = set; then
2428 enableval="$enable_proxycache"
2431 for ol_val in no yes mod ; do
2432 if test "$enableval" = "$ol_val" ; then
2436 if test "$ol_arg" = "invalid" ; then
2437 { echo "configure: error: bad value $enableval for --enable-proxycache" 1>&2; exit 1; }
2439 ol_enable_proxycache="$ol_arg"
2442 ol_enable_proxycache="no"
2444 # end --enable-proxycache
2446 # OpenLDAP --enable-refint
2447 # Check whether --enable-refint or --disable-refint was given.
2448 if test "${enable_refint+set}" = set; then
2449 enableval="$enable_refint"
2452 for ol_val in no yes mod ; do
2453 if test "$enableval" = "$ol_val" ; then
2457 if test "$ol_arg" = "invalid" ; then
2458 { echo "configure: error: bad value $enableval for --enable-refint" 1>&2; exit 1; }
2460 ol_enable_refint="$ol_arg"
2463 ol_enable_refint="no"
2465 # end --enable-refint
2467 # OpenLDAP --enable-retcode
2468 # Check whether --enable-retcode or --disable-retcode was given.
2469 if test "${enable_retcode+set}" = set; then
2470 enableval="$enable_retcode"
2473 for ol_val in no yes mod ; do
2474 if test "$enableval" = "$ol_val" ; then
2478 if test "$ol_arg" = "invalid" ; then
2479 { echo "configure: error: bad value $enableval for --enable-retcode" 1>&2; exit 1; }
2481 ol_enable_retcode="$ol_arg"
2484 ol_enable_retcode="no"
2486 # end --enable-retcode
2488 # OpenLDAP --enable-rwm
2489 # Check whether --enable-rwm or --disable-rwm was given.
2490 if test "${enable_rwm+set}" = set; then
2491 enableval="$enable_rwm"
2494 for ol_val in no yes mod ; do
2495 if test "$enableval" = "$ol_val" ; then
2499 if test "$ol_arg" = "invalid" ; then
2500 { echo "configure: error: bad value $enableval for --enable-rwm" 1>&2; exit 1; }
2502 ol_enable_rwm="$ol_arg"
2509 # OpenLDAP --enable-syncprov
2510 # Check whether --enable-syncprov or --disable-syncprov was given.
2511 if test "${enable_syncprov+set}" = set; then
2512 enableval="$enable_syncprov"
2515 for ol_val in no yes mod ; do
2516 if test "$enableval" = "$ol_val" ; then
2520 if test "$ol_arg" = "invalid" ; then
2521 { echo "configure: error: bad value $enableval for --enable-syncprov" 1>&2; exit 1; }
2523 ol_enable_syncprov="$ol_arg"
2526 ol_enable_syncprov="yes"
2528 # end --enable-syncprov
2530 # OpenLDAP --enable-translucent
2531 # Check whether --enable-translucent or --disable-translucent was given.
2532 if test "${enable_translucent+set}" = set; then
2533 enableval="$enable_translucent"
2536 for ol_val in no yes mod ; do
2537 if test "$enableval" = "$ol_val" ; then
2541 if test "$ol_arg" = "invalid" ; then
2542 { echo "configure: error: bad value $enableval for --enable-translucent" 1>&2; exit 1; }
2544 ol_enable_translucent="$ol_arg"
2547 ol_enable_translucent="no"
2549 # end --enable-translucent
2551 # OpenLDAP --enable-unique
2552 # Check whether --enable-unique or --disable-unique was given.
2553 if test "${enable_unique+set}" = set; then
2554 enableval="$enable_unique"
2557 for ol_val in no yes mod ; do
2558 if test "$enableval" = "$ol_val" ; then
2562 if test "$ol_arg" = "invalid" ; then
2563 { echo "configure: error: bad value $enableval for --enable-unique" 1>&2; exit 1; }
2565 ol_enable_unique="$ol_arg"
2568 ol_enable_unique="no"
2570 # end --enable-unique
2574 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2575 if test "${with_xxslurpdoptions+set}" = set; then
2576 withval="$with_xxslurpdoptions"
2580 # OpenLDAP --enable-slurpd
2581 # Check whether --enable-slurpd or --disable-slurpd was given.
2582 if test "${enable_slurpd+set}" = set; then
2583 enableval="$enable_slurpd"
2586 for ol_val in auto yes no ; do
2587 if test "$enableval" = "$ol_val" ; then
2591 if test "$ol_arg" = "invalid" ; then
2592 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2594 ol_enable_slurpd="$ol_arg"
2597 ol_enable_slurpd="auto"
2599 # end --enable-slurpd
2601 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2602 if test "${with_xxliboptions+set}" = set; then
2603 withval="$with_xxliboptions"
2607 # Check whether --enable-static or --disable-static was given.
2608 if test "${enable_static+set}" = set; then
2609 enableval="$enable_static"
2610 p=${PACKAGE-default}
2612 yes) enable_static=yes ;;
2613 no) enable_static=no ;;
2616 # Look at the argument we got. We use all the common list separators.
2617 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2618 for pkg in $enableval; do
2619 if test "X$pkg" = "X$p"; then
2630 # Check whether --enable-shared or --disable-shared was given.
2631 if test "${enable_shared+set}" = set; then
2632 enableval="$enable_shared"
2633 p=${PACKAGE-default}
2635 yes) enable_shared=yes ;;
2636 no) enable_shared=no ;;
2639 # Look at the argument we got. We use all the common list separators.
2640 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2641 for pkg in $enableval; do
2642 if test "X$pkg" = "X$p"; then
2655 # Activate any backends that were not explicitly enabled.
2656 # Note that back_bdb defaults to "yes" so this loop won't touch it.
2657 if test $ol_enable_backends != no ; then
2658 for i in $Backends; do
2659 eval "ol_tmp=\$ol_enable_$i"
2660 if test $ol_tmp = no ; then
2661 eval "ol_enable_$i=$ol_enable_backends"
2665 # Activate the overlays
2666 if test $ol_enable_overlays != no ; then
2667 for i in $Overlays; do
2668 eval "ol_tmp=\$ol_enable_$i"
2669 if test $ol_tmp = no ; then
2670 eval "ol_enable_$i=$ol_enable_overlays"
2676 if test $ol_enable_slapd = no ; then
2677 if test $ol_enable_slapi = yes ; then
2678 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2680 if test $ol_enable_backends != no ; then
2681 echo "configure: warning: slapd disabled, ignoring --enable-backends argument" 1>&2
2683 for i in $Backends; do
2684 eval "ol_tmp=\$ol_enable_$i"
2685 if test $ol_tmp != no ; then
2686 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2687 eval "ol_enable_$i=no"
2690 if test $ol_enable_modules = yes ; then
2691 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2693 if test $ol_enable_multimaster = yes ; then
2694 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2696 if test $ol_enable_wrappers = yes ; then
2697 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2699 if test $ol_enable_rlookups = yes ; then
2700 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2702 if test $ol_enable_aci = yes ; then
2703 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2705 if test $ol_with_ldbm_api != auto ; then
2706 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2708 if test $ol_with_ldbm_type != auto ; then
2709 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2711 if test $ol_enable_slurpd = yes ; then
2712 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2714 if test $ol_enable_rewrite = yes ; then
2715 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2717 if test $ol_enable_overlays != no ; then
2718 echo "configure: warning: slapd disabled, ignoring --enable-overlays argument" 1>&2
2720 for i in $Overlays; do
2721 eval "ol_tmp=\$ol_enable_$i"
2722 if test $ol_tmp != no ; then
2723 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2724 eval "ol_enable_$i=no"
2728 # force settings to no
2731 ol_enable_backends=no
2732 ol_enable_overlays=no
2733 ol_enable_modules=no
2734 ol_enable_multimaster=no
2735 ol_enable_rlookups=no
2737 ol_enable_wrappers=no
2740 ol_with_ldbm_type=no
2744 ol_enable_rewrite=no
2746 elif test $ol_enable_ldbm = no ; then
2748 if test $ol_with_ldbm_api != auto ; then
2749 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2752 if test $ol_with_ldbm_type != auto ; then
2753 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2756 if test $ol_enable_modules != yes -a \
2757 $ol_enable_bdb = no -a \
2758 $ol_enable_dnssrv = no -a \
2759 $ol_enable_hdb = no -a \
2760 $ol_enable_ldap = no -a \
2761 $ol_enable_meta = no -a \
2762 $ol_enable_monitor = no -a \
2763 $ol_enable_null = no -a \
2764 $ol_enable_passwd = no -a \
2765 $ol_enable_perl = no -a \
2766 $ol_enable_relay = no -a \
2767 $ol_enable_shell = no -a \
2768 $ol_enable_sql = no ; then
2770 if test $ol_enable_slapd = yes ; then
2771 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2773 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2779 ol_with_ldbm_type=no
2781 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
2782 ol_with_ldbm_api=berkeley
2786 if test $ol_with_ldbm_api = gdbm -a \
2787 $ol_with_ldbm_type = btree ; then
2788 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2790 if test $ol_with_ldbm_api = mdbm -a \
2791 $ol_with_ldbm_type = btree ; then
2792 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2794 if test $ol_with_ldbm_api = ndbm -a \
2795 $ol_with_ldbm_type = btree ; then
2796 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2799 if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
2800 if test $ol_with_ldbm_api = auto ; then
2801 ol_with_ldbm_api=berkeley
2802 elif test $ol_with_ldbm_api != berkeley ; then
2803 { echo "configure: error: LDBM API not compatible with BDB/HDB" 1>&2; exit 1; }
2808 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
2809 { echo "configure: error: --enable-meta requires --enable-ldap" 1>&2; exit 1; }
2812 if test $ol_enable_slurpd = yes ; then
2813 if test $ol_with_threads = no ; then
2814 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2818 if test $ol_enable_lmpasswd = yes ; then
2819 if test $ol_with_tls = no ; then
2820 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2824 if test $ol_enable_kbind = yes ; then
2825 if test $ol_with_kerberos = no ; then
2826 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2827 elif test $ol_with_kerberos = auto ; then
2828 ol_with_kerberos=yes
2831 elif test $ol_enable_kbind = no ; then
2832 if test $ol_with_kerberos = auto ; then
2834 elif test $ol_with_kerberos != no ; then
2835 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2840 if test $ol_enable_spasswd = yes ; then
2841 if test $ol_with_cyrus_sasl = no ; then
2842 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2844 ol_with_cyrus_sasl=yes
2847 echo "$ac_t""done" 1>&6
2891 BUILD_TRANSLUCENT=no
2894 SLAPD_STATIC_OVERLAYS=
2895 SLAPD_DYNAMIC_OVERLAYS=
2897 SLAPD_MODULES_LDFLAGS=
2898 SLAPD_MODULES_CPPFLAGS=
2900 SLAPD_STATIC_BACKENDS=back-ldif
2901 SLAPD_DYNAMIC_BACKENDS=
2925 cat >> confdefs.h <<\EOF
2926 #define HAVE_MKVERSION 1
2934 *-*-aix*) if test -z "$CC" ; then
2935 case "$ol_with_threads" in
2936 auto | yes | posix) ol_aix_threads=yes ;;
2942 if test $ol_aix_threads = yes ; then
2943 if test -z "${CC}" ; then
2944 for ac_prog in cc_r xlc_r cc
2946 # Extract the first word of "$ac_prog", so it can be a program name with args.
2947 set dummy $ac_prog; ac_word=$2
2948 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2949 echo "configure:2950: checking for $ac_word" >&5
2950 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2951 echo $ac_n "(cached) $ac_c" 1>&6
2953 if test -n "$CC"; then
2954 ac_cv_prog_CC="$CC" # Let the user override the test.
2956 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2958 for ac_dir in $ac_dummy; do
2959 test -z "$ac_dir" && ac_dir=.
2960 if test -f $ac_dir/$ac_word; then
2961 ac_cv_prog_CC="$ac_prog"
2969 if test -n "$CC"; then
2970 echo "$ac_t""$CC" 1>&6
2972 echo "$ac_t""no" 1>&6
2975 test -n "$CC" && break
2979 if test "$CC" = cc ; then
2980 if test $ol_with_threads != auto ; then
2981 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2983 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2989 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2990 ol_with_threads=posix
2991 ol_cv_pthread_create=yes
2995 if test -z "${CC}"; then
2996 for ac_prog in cc gcc
2998 # Extract the first word of "$ac_prog", so it can be a program name with args.
2999 set dummy $ac_prog; ac_word=$2
3000 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3001 echo "configure:3002: checking for $ac_word" >&5
3002 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3003 echo $ac_n "(cached) $ac_c" 1>&6
3005 if test -n "$CC"; then
3006 ac_cv_prog_CC="$CC" # Let the user override the test.
3008 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3010 for ac_dir in $ac_dummy; do
3011 test -z "$ac_dir" && ac_dir=.
3012 if test -f $ac_dir/$ac_word; then
3013 ac_cv_prog_CC="$ac_prog"
3021 if test -n "$CC"; then
3022 echo "$ac_t""$CC" 1>&6
3024 echo "$ac_t""no" 1>&6
3027 test -n "$CC" && break
3029 test -n "$CC" || CC="missing"
3032 if test "${CC}" = "missing" ; then
3033 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
3037 if test -z "${AR}"; then
3038 for ac_prog in ar gar
3040 # Extract the first word of "$ac_prog", so it can be a program name with args.
3041 set dummy $ac_prog; ac_word=$2
3042 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3043 echo "configure:3044: checking for $ac_word" >&5
3044 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
3045 echo $ac_n "(cached) $ac_c" 1>&6
3047 if test -n "$AR"; then
3048 ac_cv_prog_AR="$AR" # Let the user override the test.
3050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3052 for ac_dir in $ac_dummy; do
3053 test -z "$ac_dir" && ac_dir=.
3054 if test -f $ac_dir/$ac_word; then
3055 ac_cv_prog_AR="$ac_prog"
3063 if test -n "$AR"; then
3064 echo "$ac_t""$AR" 1>&6
3066 echo "$ac_t""no" 1>&6
3069 test -n "$AR" && break
3071 test -n "$AR" || AR="missing"
3074 if test "${AR}" = "missing" ; then
3075 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3081 # Find the correct PATH separator. Usually this is `:', but
3082 # DJGPP uses `;' like DOS.
3083 if test "X${PATH_SEPARATOR+set}" != Xset; then
3084 UNAME=${UNAME-`uname 2>/dev/null`}
3086 *-DOS) lt_cv_sys_path_separator=';' ;;
3087 *) lt_cv_sys_path_separator=':' ;;
3089 PATH_SEPARATOR=$lt_cv_sys_path_separator
3092 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3093 echo "configure:3094: checking for Cygwin environment" >&5
3094 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3095 echo $ac_n "(cached) $ac_c" 1>&6
3097 cat > conftest.$ac_ext <<EOF
3098 #line 3099 "configure"
3099 #include "confdefs.h"
3104 #define __CYGWIN__ __CYGWIN32__
3109 if { (eval echo configure:3110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3113 echo "configure: failed program was:" >&5
3114 cat conftest.$ac_ext >&5
3121 echo "$ac_t""$ac_cv_cygwin" 1>&6
3123 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3124 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3125 echo "configure:3126: checking for mingw32 environment" >&5
3126 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3127 echo $ac_n "(cached) $ac_c" 1>&6
3129 cat > conftest.$ac_ext <<EOF
3130 #line 3131 "configure"
3131 #include "confdefs.h"
3137 if { (eval echo configure:3138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3141 echo "configure: failed program was:" >&5
3142 cat conftest.$ac_ext >&5
3149 echo "$ac_t""$ac_cv_mingw32" 1>&6
3151 test "$ac_cv_mingw32" = yes && MINGW32=yes
3152 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3153 echo "configure:3154: checking for EMX OS/2 environment" >&5
3154 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3155 echo $ac_n "(cached) $ac_c" 1>&6
3157 cat > conftest.$ac_ext <<EOF
3158 #line 3159 "configure"
3159 #include "confdefs.h"
3165 if { (eval echo configure:3166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3169 echo "configure: failed program was:" >&5
3170 cat conftest.$ac_ext >&5
3177 echo "$ac_t""$ac_cv_emxos2" 1>&6
3179 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3180 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3181 echo "configure:3182: checking how to run the C preprocessor" >&5
3182 # On Suns, sometimes $CPP names a directory.
3183 if test -n "$CPP" && test -d "$CPP"; then
3186 if test -z "$CPP"; then
3187 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3188 echo $ac_n "(cached) $ac_c" 1>&6
3190 # This must be in double quotes, not single quotes, because CPP may get
3191 # substituted into the Makefile and "${CC-cc}" will confuse make.
3193 # On the NeXT, cc -E runs the code through the compiler's parser,
3194 # not just through cpp.
3195 cat > conftest.$ac_ext <<EOF
3196 #line 3197 "configure"
3197 #include "confdefs.h"
3201 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3202 { (eval echo configure:3203: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3203 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3204 if test -z "$ac_err"; then
3208 echo "configure: failed program was:" >&5
3209 cat conftest.$ac_ext >&5
3211 CPP="${CC-cc} -E -traditional-cpp"
3212 cat > conftest.$ac_ext <<EOF
3213 #line 3214 "configure"
3214 #include "confdefs.h"
3218 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3219 { (eval echo configure:3220: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3220 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3221 if test -z "$ac_err"; then
3225 echo "configure: failed program was:" >&5
3226 cat conftest.$ac_ext >&5
3228 CPP="${CC-cc} -nologo -E"
3229 cat > conftest.$ac_ext <<EOF
3230 #line 3231 "configure"
3231 #include "confdefs.h"
3235 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3236 { (eval echo configure:3237: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3237 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3238 if test -z "$ac_err"; then
3242 echo "configure: failed program was:" >&5
3243 cat conftest.$ac_ext >&5
3252 ac_cv_prog_CPP="$CPP"
3254 CPP="$ac_cv_prog_CPP"
3256 ac_cv_prog_CPP="$CPP"
3258 echo "$ac_t""$CPP" 1>&6
3260 # Check whether --enable-fast-install or --disable-fast-install was given.
3261 if test "${enable_fast_install+set}" = set; then
3262 enableval="$enable_fast_install"
3263 p=${PACKAGE-default}
3265 yes) enable_fast_install=yes ;;
3266 no) enable_fast_install=no ;;
3268 enable_fast_install=no
3269 # Look at the argument we got. We use all the common list separators.
3270 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3271 for pkg in $enableval; do
3272 if test "X$pkg" = "X$p"; then
3273 enable_fast_install=yes
3280 enable_fast_install=yes
3283 # Extract the first word of "gcc", so it can be a program name with args.
3284 set dummy gcc; ac_word=$2
3285 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3286 echo "configure:3287: checking for $ac_word" >&5
3287 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3288 echo $ac_n "(cached) $ac_c" 1>&6
3290 if test -n "$CC"; then
3291 ac_cv_prog_CC="$CC" # Let the user override the test.
3293 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3295 for ac_dir in $ac_dummy; do
3296 test -z "$ac_dir" && ac_dir=.
3297 if test -f $ac_dir/$ac_word; then
3306 if test -n "$CC"; then
3307 echo "$ac_t""$CC" 1>&6
3309 echo "$ac_t""no" 1>&6
3312 if test -z "$CC"; then
3313 # Extract the first word of "cc", so it can be a program name with args.
3314 set dummy cc; ac_word=$2
3315 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3316 echo "configure:3317: checking for $ac_word" >&5
3317 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3318 echo $ac_n "(cached) $ac_c" 1>&6
3320 if test -n "$CC"; then
3321 ac_cv_prog_CC="$CC" # Let the user override the test.
3323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3326 for ac_dir in $ac_dummy; do
3327 test -z "$ac_dir" && ac_dir=.
3328 if test -f $ac_dir/$ac_word; then
3329 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3330 ac_prog_rejected=yes
3338 if test $ac_prog_rejected = yes; then
3339 # We found a bogon in the path, so make sure we never use it.
3340 set dummy $ac_cv_prog_CC
3342 if test $# -gt 0; then
3343 # We chose a different compiler from the bogus one.
3344 # However, it has the same basename, so the bogon will be chosen
3345 # first if we set CC to just the basename; use the full file name.
3347 set dummy "$ac_dir/$ac_word" "$@"
3355 if test -n "$CC"; then
3356 echo "$ac_t""$CC" 1>&6
3358 echo "$ac_t""no" 1>&6
3361 if test -z "$CC"; then
3362 case "`uname -s`" in
3363 *win32* | *WIN32* | *CYGWIN*)
3364 # Extract the first word of "cl", so it can be a program name with args.
3365 set dummy cl; ac_word=$2
3366 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3367 echo "configure:3368: checking for $ac_word" >&5
3368 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3369 echo $ac_n "(cached) $ac_c" 1>&6
3371 if test -n "$CC"; then
3372 ac_cv_prog_CC="$CC" # Let the user override the test.
3374 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3376 for ac_dir in $ac_dummy; do
3377 test -z "$ac_dir" && ac_dir=.
3378 if test -f $ac_dir/$ac_word; then
3387 if test -n "$CC"; then
3388 echo "$ac_t""$CC" 1>&6
3390 echo "$ac_t""no" 1>&6
3395 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3398 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3399 echo "configure:3400: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3402 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3403 ac_cpp='$CPP $CPPFLAGS'
3404 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3405 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3406 cross_compiling=$ac_cv_prog_cc_cross
3408 cat > conftest.$ac_ext << EOF
3410 #line 3411 "configure"
3411 #include "confdefs.h"
3415 if { (eval echo configure:3416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3416 ac_cv_prog_cc_works=yes
3417 # If we can't run a trivial program, we are probably using a cross compiler.
3418 if (./conftest; exit) 2>/dev/null; then
3419 ac_cv_prog_cc_cross=no
3421 ac_cv_prog_cc_cross=yes
3424 echo "configure: failed program was:" >&5
3425 cat conftest.$ac_ext >&5
3426 ac_cv_prog_cc_works=no
3430 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3431 ac_cpp='$CPP $CPPFLAGS'
3432 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3433 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3434 cross_compiling=$ac_cv_prog_cc_cross
3436 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3437 if test $ac_cv_prog_cc_works = no; then
3438 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3440 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3441 echo "configure:3442: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3442 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3443 cross_compiling=$ac_cv_prog_cc_cross
3445 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3446 echo "configure:3447: checking whether we are using GNU C" >&5
3447 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3448 echo $ac_n "(cached) $ac_c" 1>&6
3450 cat > conftest.c <<EOF
3455 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3462 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3464 if test $ac_cv_prog_gcc = yes; then
3470 ac_test_CFLAGS="${CFLAGS+set}"
3471 ac_save_CFLAGS="$CFLAGS"
3473 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3474 echo "configure:3475: checking whether ${CC-cc} accepts -g" >&5
3475 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3476 echo $ac_n "(cached) $ac_c" 1>&6
3478 echo 'void f(){}' > conftest.c
3479 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3488 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3489 if test "$ac_test_CFLAGS" = set; then
3490 CFLAGS="$ac_save_CFLAGS"
3491 elif test $ac_cv_prog_cc_g = yes; then
3492 if test "$GCC" = yes; then
3498 if test "$GCC" = yes; then
3505 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3506 if test "${with_gnu_ld+set}" = set; then
3507 withval="$with_gnu_ld"
3508 test "$withval" = no || with_gnu_ld=yes
3514 if test "$GCC" = yes; then
3515 # Check if gcc -print-prog-name=ld gives a path.
3516 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3517 echo "configure:3518: checking for ld used by GCC" >&5
3520 # gcc leaves a trailing carriage return which upsets mingw
3521 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3523 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3526 # Accept absolute paths.
3527 [\\/]* | [A-Za-z]:[\\/]*)
3528 re_direlt='/[^/][^/]*/\.\./'
3529 # Canonicalize the path of ld
3530 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3531 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3532 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3534 test -z "$LD" && LD="$ac_prog"
3537 # If it fails, then pretend we aren't using GCC.
3541 # If it is relative, then search for the first ld in PATH.
3545 elif test "$with_gnu_ld" = yes; then
3546 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3547 echo "configure:3548: checking for GNU ld" >&5
3549 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3550 echo "configure:3551: checking for non-GNU ld" >&5
3552 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3553 echo $ac_n "(cached) $ac_c" 1>&6
3555 if test -z "$LD"; then
3556 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3557 for ac_dir in $PATH; do
3558 test -z "$ac_dir" && ac_dir=.
3559 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3560 lt_cv_path_LD="$ac_dir/$ac_prog"
3561 # Check to see if the program is GNU ld. I'd rather use --version,
3562 # but apparently some GNU ld's only accept -v.
3563 # Break only if it was the GNU/non-GNU ld that we prefer.
3564 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3565 test "$with_gnu_ld" != no && break
3567 test "$with_gnu_ld" != yes && break
3573 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3578 if test -n "$LD"; then
3579 echo "$ac_t""$LD" 1>&6
3581 echo "$ac_t""no" 1>&6
3583 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3584 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3585 echo "configure:3586: checking if the linker ($LD) is GNU ld" >&5
3586 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3587 echo $ac_n "(cached) $ac_c" 1>&6
3589 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3590 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3591 lt_cv_prog_gnu_ld=yes
3593 lt_cv_prog_gnu_ld=no
3597 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3598 with_gnu_ld=$lt_cv_prog_gnu_ld
3601 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3602 echo "configure:3603: checking for $LD option to reload object files" >&5
3603 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3604 echo $ac_n "(cached) $ac_c" 1>&6
3606 lt_cv_ld_reload_flag='-r'
3609 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3610 reload_flag=$lt_cv_ld_reload_flag
3611 test -n "$reload_flag" && reload_flag=" $reload_flag"
3613 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3614 echo "configure:3615: checking for BSD-compatible nm" >&5
3615 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3616 echo $ac_n "(cached) $ac_c" 1>&6
3618 if test -n "$NM"; then
3619 # Let the user override the test.
3622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3623 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3624 test -z "$ac_dir" && ac_dir=.
3625 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3626 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3627 # Check to see if the nm accepts a BSD-compat flag.
3628 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3629 # nm: unknown option "B" ignored
3630 # Tru64's nm complains that /dev/null is an invalid object file
3631 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3632 lt_cv_path_NM="$tmp_nm -B"
3634 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3635 lt_cv_path_NM="$tmp_nm -p"
3638 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3639 continue # so that we can try to find one that supports BSD flags
3644 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3649 echo "$ac_t""$NM" 1>&6
3651 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3652 echo "configure:3653: checking for a sed that does not truncate output" >&5
3653 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3654 echo $ac_n "(cached) $ac_c" 1>&6
3656 # Loop through the user's path and test for sed and gsed.
3657 # Then use that list of sed's as ones to test for truncation.
3658 as_executable_p="test -f"
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 test -z "$as_dir" && as_dir=.
3664 for ac_prog in sed gsed; do
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3667 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3673 # Create a temporary directory, and hook for its removal unless debugging.
3676 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3677 trap '{ (exit 1); exit 1; }' 1 2 13 15
3680 # Create a (secure) tmp directory for tmp files.
3683 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3684 test -n "$tmp" && test -d "$tmp"
3687 tmp=$TMPDIR/sed$$-$RANDOM
3688 (umask 077 && mkdir $tmp)
3691 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3692 { (exit 1); exit 1; }
3696 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3697 # along with /bin/sed that truncates output.
3698 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3699 test ! -f ${_sed} && break
3700 cat /dev/null > "$tmp/sed.in"
3702 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3703 # Check for GNU sed and select it if it is found.
3704 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3705 lt_cv_path_SED=${_sed}
3709 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3710 mv "$tmp/sed.tmp" "$tmp/sed.in"
3711 cp "$tmp/sed.in" "$tmp/sed.nl"
3712 echo >>"$tmp/sed.nl"
3713 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3714 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3715 # 40000 chars as input seems more than enough
3716 test $_count -gt 10 && break
3717 _count=`expr $_count + 1`
3718 if test $_count -gt $_max; then
3720 lt_cv_path_SED=$_sed
3728 if test "X$SED" != "X"; then
3733 echo "$ac_t""$SED" 1>&6
3735 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3736 echo "configure:3737: checking whether ln -s works" >&5
3737 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3738 echo $ac_n "(cached) $ac_c" 1>&6
3741 if ln -s X conftestdata 2>/dev/null
3744 ac_cv_prog_LN_S="ln -s"
3749 LN_S="$ac_cv_prog_LN_S"
3750 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3751 echo "$ac_t""yes" 1>&6
3753 echo "$ac_t""no" 1>&6
3756 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3757 echo "configure:3758: checking how to recognise dependent libraries" >&5
3758 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3759 echo $ac_n "(cached) $ac_c" 1>&6
3761 lt_cv_file_magic_cmd='$MAGIC_CMD'
3762 lt_cv_file_magic_test_file=
3763 lt_cv_deplibs_check_method='unknown'
3764 # Need to set the preceding variable on all platforms that support
3765 # interlibrary dependencies.
3766 # 'none' -- dependencies not supported.
3767 # `unknown' -- same as none, but documents that we really don't know.
3768 # 'pass_all' -- all dependencies passed with no checks.
3769 # 'test_compile' -- check by making test program.
3770 # 'file_magic [[regex]]' -- check by looking for files in library path
3771 # which responds to the $file_magic_cmd with a given egrep regex.
3772 # If you have `file' or equivalent on your system and you're not sure
3773 # whether `pass_all' will *always* work, you probably want this one.
3777 lt_cv_deplibs_check_method=pass_all
3781 lt_cv_deplibs_check_method=pass_all
3785 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3786 lt_cv_file_magic_cmd='/usr/bin/file -L'
3787 lt_cv_file_magic_test_file=/shlib/libc.so
3790 cygwin* | mingw* | pw32*)
3791 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3792 lt_cv_file_magic_cmd='$OBJDUMP -f'
3795 darwin* | rhapsody*)
3796 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3797 lt_cv_file_magic_cmd='/usr/bin/file -L'
3799 rhapsody* | darwin1.[012])
3800 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3803 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3809 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3812 # Not sure whether the presence of OpenBSD here was a mistake.
3813 # Let's accept both of them until this is cleared up.
3814 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3815 lt_cv_file_magic_cmd=/usr/bin/file
3816 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3820 lt_cv_deplibs_check_method=pass_all
3825 lt_cv_deplibs_check_method=pass_all
3829 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3830 lt_cv_file_magic_cmd=/usr/bin/file
3831 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3834 irix5* | irix6* | nonstopux*)
3836 irix5* | nonstopux*)
3837 # this will be overridden with pass_all, but let us keep it just in case
3838 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3842 *-32|*"-32 ") libmagic=32-bit;;
3843 *-n32|*"-n32 ") libmagic=N32;;
3844 *-64|*"-64 ") libmagic=64-bit;;
3845 *) libmagic=never-match;;
3847 # this will be overridden with pass_all, but let us keep it just in case
3848 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3851 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3852 lt_cv_deplibs_check_method=pass_all
3855 # This must be Linux ELF.
3858 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3859 lt_cv_deplibs_check_method=pass_all ;;
3861 # glibc up to 2.1.1 does not perform some relocations on ARM
3862 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3864 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3868 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3869 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3871 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3876 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3877 lt_cv_file_magic_cmd=/usr/bin/file
3878 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3882 lt_cv_file_magic_cmd=/usr/bin/file
3883 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3884 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3885 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3887 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3892 lt_cv_deplibs_check_method=pass_all
3895 osf3* | osf4* | osf5*)
3896 # this will be overridden with pass_all, but let us keep it just in case
3897 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3898 lt_cv_file_magic_test_file=/shlib/libc.so
3899 lt_cv_deplibs_check_method=pass_all
3903 lt_cv_deplibs_check_method=pass_all
3907 lt_cv_deplibs_check_method=pass_all
3908 lt_cv_file_magic_test_file=/lib/libc.so
3911 sysv5uw[78]* | sysv4*uw2*)
3912 lt_cv_deplibs_check_method=pass_all
3915 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3916 case $host_vendor in
3918 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]'
3919 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3922 lt_cv_deplibs_check_method=pass_all
3925 lt_cv_file_magic_cmd='/bin/file'
3926 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3929 lt_cv_file_magic_cmd='/bin/file'
3930 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3931 lt_cv_file_magic_test_file=/lib/libc.so
3934 lt_cv_deplibs_check_method=pass_all
3942 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3943 file_magic_cmd=$lt_cv_file_magic_cmd
3944 deplibs_check_method=$lt_cv_deplibs_check_method
3946 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3947 echo "configure:3948: checking for object suffix" >&5
3948 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3949 echo $ac_n "(cached) $ac_c" 1>&6
3952 echo 'int i = 1;' > conftest.$ac_ext
3953 if { (eval echo configure:3954: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3954 for ac_file in conftest.*; do
3957 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3961 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3966 echo "$ac_t""$ac_cv_objext" 1>&6
3967 OBJEXT=$ac_cv_objext
3968 ac_objext=$ac_cv_objext
3973 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3974 echo "configure:3975: checking for executable suffix" >&5
3975 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3976 echo $ac_n "(cached) $ac_c" 1>&6
3978 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3982 echo 'int main () { return 0; }' > conftest.$ac_ext
3984 if { (eval echo configure:3985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3985 for file in conftest.*; do
3987 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3988 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3992 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3995 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
4000 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
4001 echo "$ac_t""${ac_cv_exeext}" 1>&6
4004 if test $host != $build; then
4005 ac_tool_prefix=${host_alias}-
4013 # Check for command to grab the raw symbol name followed by C symbol from nm.
4014 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
4015 echo "configure:4016: checking command to parse $NM output" >&5
4016 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
4017 echo $ac_n "(cached) $ac_c" 1>&6
4020 # These are sane defaults that work on at least a few old systems.
4021 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4023 # Character class describing NM global symbol codes.
4024 symcode='[BCDEGRST]'
4026 # Regexp to match symbols that can be accessed directly from C.
4027 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4029 # Transform the above into a raw symbol and a C symbol.
4030 symxfrm='\1 \2\3 \3'
4032 # Transform an extracted symbol line into a proper C declaration
4033 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4035 # Transform an extracted symbol line into symbol name and symbol address
4036 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'"
4038 # Define system-specific variables.
4043 cygwin* | mingw* | pw32*)
4044 symcode='[ABCDGISTW]'
4046 hpux*) # Its linker distinguishes data from code symbols
4047 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4048 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'"
4051 symcode='[BCDEGRST]'
4054 symcode='[BCDEGQRST]'
4064 # Handle CRLF in mingw tool chain
4068 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4072 # If we're using GNU nm, then use its standard symbol codes.
4073 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4074 symcode='[ABCDGISTW]'
4077 # Try without a prefix undercore, then with it.
4078 for ac_symprfx in "" "_"; do
4080 # Write the raw and C identifiers.
4081 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4083 # Check to see that the pipe works correctly.
4086 cat > conftest.$ac_ext <<EOF
4091 void nm_test_func(){}
4095 int main(){nm_test_var='a';nm_test_func();return(0);}
4098 if { (eval echo configure:4099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4099 # Now try to grab the symbols.
4101 if { (eval echo configure:4102: \"$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
4102 # Try sorting and uniquifying the output.
4103 if sort "$nlist" | uniq > "$nlist"T; then
4104 mv -f "$nlist"T "$nlist"
4109 # Make sure that we snagged all the symbols we need.
4110 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4111 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4112 cat <<EOF > conftest.$ac_ext
4118 # Now generate the symbol file.
4119 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4121 cat <<EOF >> conftest.$ac_ext
4122 #if defined (__STDC__) && __STDC__
4123 # define lt_ptr void *
4125 # define lt_ptr char *
4129 /* The mapping between symbol names and symbols. */
4134 lt_preloaded_symbols[] =
4137 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4138 cat <<\EOF >> conftest.$ac_ext
4146 # Now try linking the two files.
4147 mv conftest.$ac_objext conftstm.$ac_objext
4149 save_CFLAGS="$CFLAGS"
4150 LIBS="conftstm.$ac_objext"
4151 CFLAGS="$CFLAGS$no_builtin_flag"
4152 if { (eval echo configure:4153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4156 CFLAGS="$save_CFLAGS"
4158 echo "cannot find nm_test_func in $nlist" >&5
4161 echo "cannot find nm_test_var in $nlist" >&5
4164 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4167 echo "$progname: failed program was:" >&5
4168 cat conftest.$ac_ext >&5
4170 rm -f conftest* conftst*
4172 # Do not use the global_symbol_pipe unless it works.
4173 if test "$pipe_works" = yes; then
4176 lt_cv_sys_global_symbol_pipe=
4182 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4183 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4184 global_symbol_to_cdecl=
4185 global_symbol_to_c_name_address=
4187 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4188 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4190 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4192 echo "$ac_t""failed" 1>&6
4194 echo "$ac_t""ok" 1>&6
4197 for ac_hdr in dlfcn.h
4199 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4200 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4201 echo "configure:4202: checking for $ac_hdr" >&5
4202 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4203 echo $ac_n "(cached) $ac_c" 1>&6
4205 cat > conftest.$ac_ext <<EOF
4206 #line 4207 "configure"
4207 #include "confdefs.h"
4210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4211 { (eval echo configure:4212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4212 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4213 if test -z "$ac_err"; then
4215 eval "ac_cv_header_$ac_safe=yes"
4218 echo "configure: failed program was:" >&5
4219 cat conftest.$ac_ext >&5
4221 eval "ac_cv_header_$ac_safe=no"
4225 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4226 echo "$ac_t""yes" 1>&6
4227 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4228 cat >> confdefs.h <<EOF
4229 #define $ac_tr_hdr 1
4233 echo "$ac_t""no" 1>&6
4242 # Only perform the check for file, if the check method requires it
4243 case $deplibs_check_method in
4245 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4246 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4247 echo "configure:4248: checking for ${ac_tool_prefix}file" >&5
4248 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4249 echo $ac_n "(cached) $ac_c" 1>&6
4253 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4256 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4259 ac_save_MAGIC_CMD="$MAGIC_CMD"
4260 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4261 ac_dummy="/usr/bin:$PATH"
4262 for ac_dir in $ac_dummy; do
4263 test -z "$ac_dir" && ac_dir=.
4264 if test -f $ac_dir/${ac_tool_prefix}file; then
4265 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4266 if test -n "$file_magic_test_file"; then
4267 case $deplibs_check_method in
4269 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4270 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4271 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4272 egrep "$file_magic_regex" > /dev/null; then
4277 *** Warning: the command libtool uses to detect shared libraries,
4278 *** $file_magic_cmd, produces output that libtool cannot recognize.
4279 *** The result is that libtool may fail to recognize shared libraries
4280 *** as such. This will affect the creation of libtool libraries that
4281 *** depend on shared libraries, but programs linked with such libtool
4282 *** libraries will work regardless of this problem. Nevertheless, you
4283 *** may want to report the problem to your system manager and/or to
4284 *** bug-libtool@gnu.org
4294 MAGIC_CMD="$ac_save_MAGIC_CMD"
4299 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4300 if test -n "$MAGIC_CMD"; then
4301 echo "$ac_t""$MAGIC_CMD" 1>&6
4303 echo "$ac_t""no" 1>&6
4306 if test -z "$lt_cv_path_MAGIC_CMD"; then
4307 if test -n "$ac_tool_prefix"; then
4308 echo $ac_n "checking for file""... $ac_c" 1>&6
4309 echo "configure:4310: checking for file" >&5
4310 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4311 echo $ac_n "(cached) $ac_c" 1>&6
4315 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4318 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4321 ac_save_MAGIC_CMD="$MAGIC_CMD"
4322 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4323 ac_dummy="/usr/bin:$PATH"
4324 for ac_dir in $ac_dummy; do
4325 test -z "$ac_dir" && ac_dir=.
4326 if test -f $ac_dir/file; then
4327 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4328 if test -n "$file_magic_test_file"; then
4329 case $deplibs_check_method in
4331 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4332 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4333 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4334 egrep "$file_magic_regex" > /dev/null; then
4339 *** Warning: the command libtool uses to detect shared libraries,
4340 *** $file_magic_cmd, produces output that libtool cannot recognize.
4341 *** The result is that libtool may fail to recognize shared libraries
4342 *** as such. This will affect the creation of libtool libraries that
4343 *** depend on shared libraries, but programs linked with such libtool
4344 *** libraries will work regardless of this problem. Nevertheless, you
4345 *** may want to report the problem to your system manager and/or to
4346 *** bug-libtool@gnu.org
4356 MAGIC_CMD="$ac_save_MAGIC_CMD"
4361 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4362 if test -n "$MAGIC_CMD"; then
4363 echo "$ac_t""$MAGIC_CMD" 1>&6
4365 echo "$ac_t""no" 1>&6
4377 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4378 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4379 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4380 echo "configure:4381: checking for $ac_word" >&5
4381 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4382 echo $ac_n "(cached) $ac_c" 1>&6
4384 if test -n "$RANLIB"; then
4385 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4387 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4389 for ac_dir in $ac_dummy; do
4390 test -z "$ac_dir" && ac_dir=.
4391 if test -f $ac_dir/$ac_word; then
4392 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4399 RANLIB="$ac_cv_prog_RANLIB"
4400 if test -n "$RANLIB"; then
4401 echo "$ac_t""$RANLIB" 1>&6
4403 echo "$ac_t""no" 1>&6
4407 if test -z "$ac_cv_prog_RANLIB"; then
4408 if test -n "$ac_tool_prefix"; then
4409 # Extract the first word of "ranlib", so it can be a program name with args.
4410 set dummy ranlib; ac_word=$2
4411 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4412 echo "configure:4413: checking for $ac_word" >&5
4413 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4414 echo $ac_n "(cached) $ac_c" 1>&6
4416 if test -n "$RANLIB"; then
4417 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4419 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4421 for ac_dir in $ac_dummy; do
4422 test -z "$ac_dir" && ac_dir=.
4423 if test -f $ac_dir/$ac_word; then
4424 ac_cv_prog_RANLIB="ranlib"
4429 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4432 RANLIB="$ac_cv_prog_RANLIB"
4433 if test -n "$RANLIB"; then
4434 echo "$ac_t""$RANLIB" 1>&6
4436 echo "$ac_t""no" 1>&6
4444 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4445 set dummy ${ac_tool_prefix}strip; ac_word=$2
4446 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4447 echo "configure:4448: checking for $ac_word" >&5
4448 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4449 echo $ac_n "(cached) $ac_c" 1>&6
4451 if test -n "$STRIP"; then
4452 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4454 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4456 for ac_dir in $ac_dummy; do
4457 test -z "$ac_dir" && ac_dir=.
4458 if test -f $ac_dir/$ac_word; then
4459 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4466 STRIP="$ac_cv_prog_STRIP"
4467 if test -n "$STRIP"; then
4468 echo "$ac_t""$STRIP" 1>&6
4470 echo "$ac_t""no" 1>&6
4474 if test -z "$ac_cv_prog_STRIP"; then
4475 if test -n "$ac_tool_prefix"; then
4476 # Extract the first word of "strip", so it can be a program name with args.
4477 set dummy strip; ac_word=$2
4478 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4479 echo "configure:4480: checking for $ac_word" >&5
4480 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4481 echo $ac_n "(cached) $ac_c" 1>&6
4483 if test -n "$STRIP"; then
4484 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4486 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4488 for ac_dir in $ac_dummy; do
4489 test -z "$ac_dir" && ac_dir=.
4490 if test -f $ac_dir/$ac_word; then
4491 ac_cv_prog_STRIP="strip"
4496 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4499 STRIP="$ac_cv_prog_STRIP"
4500 if test -n "$STRIP"; then
4501 echo "$ac_t""$STRIP" 1>&6
4503 echo "$ac_t""no" 1>&6
4513 enable_win32_dll=yes
4515 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4516 if test "${enable_libtool_lock+set}" = set; then
4517 enableval="$enable_libtool_lock"
4521 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4523 # Some flags need to be propagated to the compiler or linker for good
4527 # Find out which ABI we are using.
4528 echo '#line 4529 "configure"' > conftest.$ac_ext
4529 if { (eval echo configure:4530: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4530 case `/usr/bin/file conftest.$ac_objext` in
4546 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4547 SAVE_CFLAGS="$CFLAGS"
4548 CFLAGS="$CFLAGS -belf"
4549 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4550 echo "configure:4551: checking whether the C compiler needs -belf" >&5
4551 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4552 echo $ac_n "(cached) $ac_c" 1>&6
4556 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4557 ac_cpp='$CPP $CPPFLAGS'
4558 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4559 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4560 cross_compiling=$ac_cv_prog_cc_cross
4562 cat > conftest.$ac_ext <<EOF
4563 #line 4564 "configure"
4564 #include "confdefs.h"
4570 if { (eval echo configure:4571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4572 lt_cv_cc_needs_belf=yes
4574 echo "configure: failed program was:" >&5
4575 cat conftest.$ac_ext >&5
4577 lt_cv_cc_needs_belf=no
4581 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4582 ac_cpp='$CPP $CPPFLAGS'
4583 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4584 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4585 cross_compiling=$ac_cv_prog_cc_cross
4589 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4590 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4591 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4592 CFLAGS="$SAVE_CFLAGS"
4596 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4597 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4598 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4599 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4600 echo "configure:4601: checking for $ac_word" >&5
4601 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4602 echo $ac_n "(cached) $ac_c" 1>&6
4604 if test -n "$DLLTOOL"; then
4605 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4607 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4609 for ac_dir in $ac_dummy; do
4610 test -z "$ac_dir" && ac_dir=.
4611 if test -f $ac_dir/$ac_word; then
4612 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4619 DLLTOOL="$ac_cv_prog_DLLTOOL"
4620 if test -n "$DLLTOOL"; then
4621 echo "$ac_t""$DLLTOOL" 1>&6
4623 echo "$ac_t""no" 1>&6
4627 if test -z "$ac_cv_prog_DLLTOOL"; then
4628 if test -n "$ac_tool_prefix"; then
4629 # Extract the first word of "dlltool", so it can be a program name with args.
4630 set dummy dlltool; ac_word=$2
4631 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4632 echo "configure:4633: checking for $ac_word" >&5
4633 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4634 echo $ac_n "(cached) $ac_c" 1>&6
4636 if test -n "$DLLTOOL"; then
4637 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4639 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4641 for ac_dir in $ac_dummy; do
4642 test -z "$ac_dir" && ac_dir=.
4643 if test -f $ac_dir/$ac_word; then
4644 ac_cv_prog_DLLTOOL="dlltool"
4649 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4652 DLLTOOL="$ac_cv_prog_DLLTOOL"
4653 if test -n "$DLLTOOL"; then
4654 echo "$ac_t""$DLLTOOL" 1>&6
4656 echo "$ac_t""no" 1>&6
4664 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4665 set dummy ${ac_tool_prefix}as; ac_word=$2
4666 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4667 echo "configure:4668: checking for $ac_word" >&5
4668 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4669 echo $ac_n "(cached) $ac_c" 1>&6
4671 if test -n "$AS"; then
4672 ac_cv_prog_AS="$AS" # Let the user override the test.
4674 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4676 for ac_dir in $ac_dummy; do
4677 test -z "$ac_dir" && ac_dir=.
4678 if test -f $ac_dir/$ac_word; then
4679 ac_cv_prog_AS="${ac_tool_prefix}as"
4687 if test -n "$AS"; then
4688 echo "$ac_t""$AS" 1>&6
4690 echo "$ac_t""no" 1>&6
4694 if test -z "$ac_cv_prog_AS"; then
4695 if test -n "$ac_tool_prefix"; then
4696 # Extract the first word of "as", so it can be a program name with args.
4697 set dummy as; ac_word=$2
4698 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4699 echo "configure:4700: checking for $ac_word" >&5
4700 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4701 echo $ac_n "(cached) $ac_c" 1>&6
4703 if test -n "$AS"; then
4704 ac_cv_prog_AS="$AS" # Let the user override the test.
4706 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4708 for ac_dir in $ac_dummy; do
4709 test -z "$ac_dir" && ac_dir=.
4710 if test -f $ac_dir/$ac_word; then
4716 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4720 if test -n "$AS"; then
4721 echo "$ac_t""$AS" 1>&6
4723 echo "$ac_t""no" 1>&6
4731 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4732 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4733 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4734 echo "configure:4735: checking for $ac_word" >&5
4735 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4736 echo $ac_n "(cached) $ac_c" 1>&6
4738 if test -n "$OBJDUMP"; then
4739 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4741 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4743 for ac_dir in $ac_dummy; do
4744 test -z "$ac_dir" && ac_dir=.
4745 if test -f $ac_dir/$ac_word; then
4746 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4753 OBJDUMP="$ac_cv_prog_OBJDUMP"
4754 if test -n "$OBJDUMP"; then
4755 echo "$ac_t""$OBJDUMP" 1>&6
4757 echo "$ac_t""no" 1>&6
4761 if test -z "$ac_cv_prog_OBJDUMP"; then
4762 if test -n "$ac_tool_prefix"; then
4763 # Extract the first word of "objdump", so it can be a program name with args.
4764 set dummy objdump; ac_word=$2
4765 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4766 echo "configure:4767: checking for $ac_word" >&5
4767 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4768 echo $ac_n "(cached) $ac_c" 1>&6
4770 if test -n "$OBJDUMP"; then
4771 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4773 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4775 for ac_dir in $ac_dummy; do
4776 test -z "$ac_dir" && ac_dir=.
4777 if test -f $ac_dir/$ac_word; then
4778 ac_cv_prog_OBJDUMP="objdump"
4783 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4786 OBJDUMP="$ac_cv_prog_OBJDUMP"
4787 if test -n "$OBJDUMP"; then
4788 echo "$ac_t""$OBJDUMP" 1>&6
4790 echo "$ac_t""no" 1>&6
4799 # recent cygwin and mingw systems supply a stub DllMain which the user
4800 # can override, but on older systems we have to supply one
4801 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4802 echo "configure:4803: checking if libtool should supply DllMain function" >&5
4803 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4804 echo $ac_n "(cached) $ac_c" 1>&6
4806 cat > conftest.$ac_ext <<EOF
4807 #line 4808 "configure"
4808 #include "confdefs.h"
4811 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4815 if { (eval echo configure:4816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4817 lt_cv_need_dllmain=no
4819 echo "configure: failed program was:" >&5
4820 cat conftest.$ac_ext >&5
4822 lt_cv_need_dllmain=yes
4827 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4830 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4831 # old mingw systems require "-dll" to link a DLL, while more recent ones
4833 SAVE_CFLAGS="$CFLAGS"
4834 CFLAGS="$CFLAGS -mdll"
4835 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4836 echo "configure:4837: checking how to link DLLs" >&5
4837 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4838 echo $ac_n "(cached) $ac_c" 1>&6
4840 cat > conftest.$ac_ext <<EOF
4841 #line 4842 "configure"
4842 #include "confdefs.h"
4848 if { (eval echo configure:4849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4850 lt_cv_cc_dll_switch=-mdll
4852 echo "configure: failed program was:" >&5
4853 cat conftest.$ac_ext >&5
4855 lt_cv_cc_dll_switch=-dll
4860 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4861 CFLAGS="$SAVE_CFLAGS" ;;
4862 *-*-cygwin* | *-*-pw32*)
4863 # cygwin systems need to pass --dll to the linker, and not link
4864 # crt.o which will require a WinMain@16 definition.
4865 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4871 # Sed substitution that helps us do robust quoting. It backslashifies
4872 # metacharacters that are still active within double-quoted strings.
4873 Xsed='sed -e s/^X//'
4874 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4876 # Same as above, but do not quote variable references.
4877 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4879 # Sed substitution to delay expansion of an escaped shell variable in a
4880 # double_quote_subst'ed string.
4881 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4887 default_ofile=libtool
4888 can_build_shared=yes
4890 # All known linkers require a `.a' archive for static linking (except M$VC,
4891 # which needs '.lib').
4893 ltmain="$ac_aux_dir/ltmain.sh"
4894 ofile="$default_ofile"
4895 with_gnu_ld="$lt_cv_prog_gnu_ld"
4896 need_locks="$enable_libtool_lock"
4899 old_CFLAGS="$CFLAGS"
4901 # Set sane defaults for various variables
4902 test -z "$AR" && AR=ar
4903 test -z "$AR_FLAGS" && AR_FLAGS=cru
4904 test -z "$AS" && AS=as
4905 test -z "$CC" && CC=cc
4906 test -z "$DLLTOOL" && DLLTOOL=dlltool
4907 test -z "$LD" && LD=ld
4908 test -z "$LN_S" && LN_S="ln -s"
4909 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4910 test -z "$NM" && NM=nm
4911 test -z "$OBJDUMP" && OBJDUMP=objdump
4912 test -z "$RANLIB" && RANLIB=:
4913 test -z "$STRIP" && STRIP=:
4914 test -z "$ac_objext" && ac_objext=o
4916 if test x"$host" != x"$build"; then
4917 ac_tool_prefix=${host_alias}-
4922 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4925 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4930 # AIX sometimes has problems with the GCC collect2 program. For some
4931 # reason, if we set the COLLECT_NAMES environment variable, the problems
4932 # vanish in a puff of smoke.
4933 if test "X${COLLECT_NAMES+set}" != Xset; then
4935 export COLLECT_NAMES
4940 # Determine commands to create old-style static archives.
4941 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4942 old_postinstall_cmds='chmod 644 $oldlib'
4943 old_postuninstall_cmds=
4945 if test -n "$RANLIB"; then
4948 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4951 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4954 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4957 # Allow CC to be a program name with arguments.
4961 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4962 echo "configure:4963: checking for objdir" >&5
4963 rm -f .libs 2>/dev/null
4964 mkdir .libs 2>/dev/null
4965 if test -d .libs; then
4968 # MS-DOS does not allow filenames that begin with a dot.
4971 rmdir .libs 2>/dev/null
4972 echo "$ac_t""$objdir" 1>&6
4975 # Check whether --with-pic or --without-pic was given.
4976 if test "${with_pic+set}" = set; then
4983 test -z "$pic_mode" && pic_mode=default
4985 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4986 # in isolation, and that seeing it set (from the cache) indicates that
4987 # the associated values are set (in the cache) correctly too.
4988 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4989 echo "configure:4990: checking for $compiler option to produce PIC" >&5
4990 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4991 echo $ac_n "(cached) $ac_c" 1>&6
4994 lt_cv_prog_cc_shlib=
4996 lt_cv_prog_cc_static=
4997 lt_cv_prog_cc_no_builtin=
4998 lt_cv_prog_cc_can_build_shared=$can_build_shared
5000 if test "$GCC" = yes; then
5001 lt_cv_prog_cc_wl='-Wl,'
5002 lt_cv_prog_cc_static='-static'
5006 # Below there is a dirty hack to force normal static linking with -ldl
5007 # The problem is because libdl dynamically linked with both libc and
5008 # libC (AIX C++ library), which obviously doesn't included in libraries
5009 # list by gcc. This cause undefined symbols with -static flags.
5010 # This hack allows C programs to be linked with "-static -ldl", but
5011 # not sure about C++ programs.
5012 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5015 # FIXME: we need at least 68020 code to build shared libraries, but
5016 # adding the `-m68020' flag to GCC prevents building anything better,
5018 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5020 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5021 # PIC is the default for these OSes.
5023 darwin* | rhapsody*)
5024 # PIC is the default on this platform
5025 # Common symbols not allowed in MH_DYLIB files
5026 lt_cv_prog_cc_pic='-fno-common'
5028 cygwin* | mingw* | pw32* | os2*)
5029 # This hack is so that the source file can tell whether it is being
5030 # built for inclusion in a dll (and should export symbols for example).
5031 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5034 if test -d /usr/nec; then
5035 lt_cv_prog_cc_pic=-Kconform_pic
5039 lt_cv_prog_cc_pic='-fPIC'
5043 # PORTME Check for PIC flags for the system compiler.
5045 aix3* | aix4* | aix5*)
5046 lt_cv_prog_cc_wl='-Wl,'
5047 # All AIX code is PIC.
5048 if test "$host_cpu" = ia64; then
5049 # AIX 5 now supports IA64 processor
5050 lt_cv_prog_cc_static='-Bstatic'
5052 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5056 hpux9* | hpux10* | hpux11*)
5057 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5058 lt_cv_prog_cc_wl='-Wl,'
5059 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5060 lt_cv_prog_cc_pic='+Z'
5063 irix5* | irix6* | nonstopux*)
5064 lt_cv_prog_cc_wl='-Wl,'
5065 lt_cv_prog_cc_static='-non_shared'
5066 # PIC (with -KPIC) is the default.
5069 cygwin* | mingw* | pw32* | os2*)
5070 # This hack is so that the source file can tell whether it is being
5071 # built for inclusion in a dll (and should export symbols for example).
5072 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5076 lt_cv_prog_cc_pic='-KPIC'
5077 lt_cv_prog_cc_static='-Bstatic'
5081 # XPLINK code is PIC by default
5084 osf3* | osf4* | osf5*)
5085 # All OSF/1 code is PIC.
5086 lt_cv_prog_cc_wl='-Wl,'
5087 lt_cv_prog_cc_static='-non_shared'
5091 lt_cv_prog_cc_pic='-Kpic'
5092 lt_cv_prog_cc_static='-dn'
5093 lt_cv_prog_cc_shlib='-belf'
5097 lt_cv_prog_cc_pic='-KPIC'
5098 lt_cv_prog_cc_static='-Bstatic'
5099 lt_cv_prog_cc_wl='-Wl,'
5103 lt_cv_prog_cc_pic='-PIC'
5104 lt_cv_prog_cc_static='-Bstatic'
5105 lt_cv_prog_cc_wl='-Qoption ld '
5108 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5109 lt_cv_prog_cc_pic='-KPIC'
5110 lt_cv_prog_cc_static='-Bstatic'
5111 lt_cv_prog_cc_wl='-Wl,'
5115 lt_cv_prog_cc_pic='-pic'
5116 lt_cv_prog_cc_static='-Bstatic'
5120 if test -d /usr/nec ;then
5121 lt_cv_prog_cc_pic='-Kconform_pic'
5122 lt_cv_prog_cc_static='-Bstatic'
5127 lt_cv_prog_cc_can_build_shared=no
5134 if test -z "$lt_cv_prog_cc_pic"; then
5135 echo "$ac_t""none" 1>&6
5137 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5139 # Check to make sure the pic_flag actually works.
5140 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5141 echo "configure:5142: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5142 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5143 echo $ac_n "(cached) $ac_c" 1>&6
5145 save_CFLAGS="$CFLAGS"
5146 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5147 cat > conftest.$ac_ext <<EOF
5148 #line 5149 "configure"
5149 #include "confdefs.h"
5155 if { (eval echo configure:5156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5158 hpux9* | hpux10* | hpux11*)
5159 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5160 # they create non-PIC objects. So, if there were any warnings, we
5161 # assume that PIC is not supported.
5162 if test -s conftest.err; then
5163 lt_cv_prog_cc_pic_works=no
5165 lt_cv_prog_cc_pic_works=yes
5169 lt_cv_prog_cc_pic_works=yes
5174 echo "configure: failed program was:" >&5
5175 cat conftest.$ac_ext >&5
5177 lt_cv_prog_cc_pic_works=no
5181 CFLAGS="$save_CFLAGS"
5186 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5188 lt_cv_prog_cc_can_build_shared=no
5190 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5193 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5196 # Check for any special shared library compilation flags.
5197 if test -n "$lt_cv_prog_cc_shlib"; then
5198 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5199 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5201 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5202 lt_cv_prog_cc_can_build_shared=no
5206 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5207 echo "configure:5208: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5208 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5209 echo $ac_n "(cached) $ac_c" 1>&6
5211 lt_cv_prog_cc_static_works=no
5212 save_LDFLAGS="$LDFLAGS"
5213 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5214 cat > conftest.$ac_ext <<EOF
5215 #line 5216 "configure"
5216 #include "confdefs.h"
5222 if { (eval echo configure:5223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5224 lt_cv_prog_cc_static_works=yes
5226 echo "configure: failed program was:" >&5
5227 cat conftest.$ac_ext >&5
5230 LDFLAGS="$save_LDFLAGS"
5235 # Belt *and* braces to stop my trousers falling down:
5236 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5237 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5239 pic_flag="$lt_cv_prog_cc_pic"
5240 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5241 wl="$lt_cv_prog_cc_wl"
5242 link_static_flag="$lt_cv_prog_cc_static"
5243 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5244 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5247 # Check to see if options -o and -c are simultaneously supported by compiler
5248 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5249 echo "configure:5250: checking if $compiler supports -c -o file.$ac_objext" >&5
5250 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5251 echo $ac_n "(cached) $ac_c" 1>&6
5254 $rm -r conftest 2>/dev/null
5257 echo "int some_variable = 0;" > conftest.$ac_ext
5259 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5260 # that will create temporary files in the current directory regardless of
5261 # the output directory. Thus, making CWD read-only will cause this test
5262 # to fail, enabling locking or at least warning the user not to do parallel
5265 save_CFLAGS="$CFLAGS"
5266 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5268 if { (eval echo configure:5269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5269 # The compiler can only warn and ignore the option if not recognized
5270 # So say no if there are warnings
5271 if test -s out/conftest.err; then
5272 lt_cv_compiler_c_o=no
5274 lt_cv_compiler_c_o=yes
5277 # Append any errors to the config.log.
5278 cat out/conftest.err 1>&5
5279 lt_cv_compiler_c_o=no
5281 CFLAGS="$save_CFLAGS"
5287 $rm -r conftest 2>/dev/null
5291 compiler_c_o=$lt_cv_compiler_c_o
5292 echo "$ac_t""$compiler_c_o" 1>&6
5294 if test x"$compiler_c_o" = x"yes"; then
5295 # Check to see if we can write to a .lo
5296 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5297 echo "configure:5298: checking if $compiler supports -c -o file.lo" >&5
5298 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5299 echo $ac_n "(cached) $ac_c" 1>&6
5302 lt_cv_compiler_o_lo=no
5303 save_CFLAGS="$CFLAGS"
5304 CFLAGS="$CFLAGS -c -o conftest.lo"
5305 save_objext="$ac_objext"
5307 cat > conftest.$ac_ext <<EOF
5308 #line 5309 "configure"
5309 #include "confdefs.h"
5312 int some_variable = 0;
5315 if { (eval echo configure:5316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5317 # The compiler can only warn and ignore the option if not recognized
5318 # So say no if there are warnings
5319 if test -s conftest.err; then
5320 lt_cv_compiler_o_lo=no
5322 lt_cv_compiler_o_lo=yes
5326 echo "configure: failed program was:" >&5
5327 cat conftest.$ac_ext >&5
5330 ac_objext="$save_objext"
5331 CFLAGS="$save_CFLAGS"
5335 compiler_o_lo=$lt_cv_compiler_o_lo
5336 echo "$ac_t""$compiler_o_lo" 1>&6
5341 # Check to see if we can do hard links to lock some files if needed
5342 hard_links="nottested"
5343 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5344 # do not overwrite the value of need_locks provided by the user
5345 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5346 echo "configure:5347: checking if we can lock with hard links" >&5
5349 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5351 ln conftest.a conftest.b 2>&5 || hard_links=no
5352 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5353 echo "$ac_t""$hard_links" 1>&6
5354 if test "$hard_links" = no; then
5355 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5362 if test "$GCC" = yes; then
5363 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5364 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5365 echo "configure:5366: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5366 echo "int some_variable = 0;" > conftest.$ac_ext
5367 save_CFLAGS="$CFLAGS"
5368 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5369 compiler_rtti_exceptions=no
5370 cat > conftest.$ac_ext <<EOF
5371 #line 5372 "configure"
5372 #include "confdefs.h"
5375 int some_variable = 0;
5378 if { (eval echo configure:5379: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5380 # The compiler can only warn and ignore the option if not recognized
5381 # So say no if there are warnings
5382 if test -s conftest.err; then
5383 compiler_rtti_exceptions=no
5385 compiler_rtti_exceptions=yes
5389 echo "configure: failed program was:" >&5
5390 cat conftest.$ac_ext >&5
5393 CFLAGS="$save_CFLAGS"
5394 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5396 if test "$compiler_rtti_exceptions" = "yes"; then
5397 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5399 no_builtin_flag=' -fno-builtin'
5403 # See if the linker supports building shared libraries.
5404 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5405 echo "configure:5406: checking whether the linker ($LD) supports shared libraries" >&5
5407 allow_undefined_flag=
5409 need_lib_prefix=unknown
5410 need_version=unknown
5411 # when you set need_version to no, make sure it does not cause -set_version
5412 # flags to be left without arguments
5414 archive_expsym_cmds=
5415 old_archive_from_new_cmds=
5416 old_archive_from_expsyms_cmds=
5417 export_dynamic_flag_spec=
5418 whole_archive_flag_spec=
5419 thread_safe_flag_spec=
5420 hardcode_into_libs=no
5421 hardcode_libdir_flag_spec=
5422 hardcode_libdir_separator=
5425 hardcode_shlibpath_var=unsupported
5427 link_all_deplibs=unknown
5428 always_export_symbols=no
5429 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5430 # include_expsyms should be a list of space-separated symbols to be *always*
5431 # included in the symbol list
5433 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5434 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5435 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5436 # as well as any symbol that contains `d'.
5437 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5438 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5439 # platforms (ab)use it in PIC code, but their linkers get confused if
5440 # the symbol is explicitly referenced. Since portable code cannot
5441 # rely on this symbol name, it's probably fine to never include it in
5442 # preloaded symbol tables.
5443 extract_expsyms_cmds=
5446 cygwin* | mingw* | pw32*)
5447 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5448 # When not using gcc, we currently assume that we are using
5449 # Microsoft Visual C++.
5450 if test "$GCC" != yes; then
5460 if test "$with_gnu_ld" = yes; then
5461 # If archive_cmds runs LD, not CC, wlarc should be empty
5464 # See if GNU ld supports shared libraries.
5466 aix3* | aix4* | aix5*)
5467 # On AIX, the GNU linker is very broken
5468 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5472 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5473 *** to be unable to reliably create shared libraries on AIX.
5474 *** Therefore, libtool is disabling shared libraries support. If you
5475 *** really care for shared libraries, you may want to modify your PATH
5476 *** so that a non-GNU linker is found, and then restart.
5482 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)'
5483 hardcode_libdir_flag_spec='-L$libdir'
5484 hardcode_minus_L=yes
5486 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5487 # that the semantics of dynamic libraries on AmigaOS, at least up
5488 # to version 4, is to share data among multiple programs linked
5489 # with the same dynamic library. Since this doesn't match the
5490 # behavior of shared libraries on other platforms, we can use
5496 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5497 allow_undefined_flag=unsupported
5498 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5499 # support --undefined. This deserves some investigation. FIXME
5500 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5506 cygwin* | mingw* | pw32*)
5507 # hardcode_libdir_flag_spec is actually meaningless, as there is
5508 # no search path for DLLs.
5509 hardcode_libdir_flag_spec='-L$libdir'
5510 allow_undefined_flag=unsupported
5511 always_export_symbols=yes
5513 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5514 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5515 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5516 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5517 else $CC -o impgen impgen.c ; fi)~
5518 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5520 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5522 # cygwin and mingw dlls have different entry points and sets of symbols
5524 # FIXME: what about values for MSVC?
5525 dll_entry=__cygwin_dll_entry@12
5526 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5530 dll_entry=_DllMainCRTStartup@12
5531 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5535 # mingw and cygwin differ, and it's simplest to just exclude the union
5536 # of the two symbol sets.
5537 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5539 # recent cygwin and mingw systems supply a stub DllMain which the user
5540 # can override, but on older systems we have to supply one (in ltdll.c)
5541 if test "x$lt_cv_need_dllmain" = "xyes"; then
5542 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5543 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~
5544 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5550 # Extract the symbol export list from an `--export-all' def file,
5551 # then regenerate the def file from the symbol export list, so that
5552 # the compiled dll only exports the symbol export list.
5553 # Be careful not to strip the DATA tag left be newer dlltools.
5554 export_symbols_cmds="$ltdll_cmds"'
5555 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5556 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5558 # If the export-symbols file already is a .def file (1st line
5559 # is EXPORTS), use it as is.
5560 # If DATA tags from a recent dlltool are present, honour them!
5561 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5562 cp $export_symbols $output_objdir/$soname-def;
5564 echo EXPORTS > $output_objdir/$soname-def;
5566 cat $export_symbols | while read symbol; do
5569 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5570 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5571 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5573 _lt_hint=`expr 1 + \$_lt_hint`;
5577 $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~
5578 $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~
5579 $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~
5580 $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~
5581 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5585 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5586 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5589 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5590 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5595 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5599 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5600 *** create shared libraries on Solaris systems. Therefore, libtool
5601 *** is disabling shared libraries support. We urge you to upgrade GNU
5602 *** binutils to release 2.9.1 or newer. Another option is to modify
5603 *** your PATH or compiler configuration so that the native linker is
5604 *** used, and then restart.
5607 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5608 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5609 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5616 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5619 hardcode_shlibpath_var=no
5623 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5624 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5625 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5632 if test "$ld_shlibs" = yes; then
5633 runpath_var=LD_RUN_PATH
5634 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5635 export_dynamic_flag_spec='${wl}--export-dynamic'
5637 cygwin* | mingw* | pw32*)
5638 # dlltool doesn't understand --whole-archive et. al.
5639 whole_archive_flag_spec=
5642 # ancient GNU ld didn't support --whole-archive et. al.
5643 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5644 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5646 whole_archive_flag_spec=
5652 # PORTME fill in a description of your system's linker (not GNU ld)
5655 allow_undefined_flag=unsupported
5656 always_export_symbols=yes
5657 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'
5658 # Note: this linker hardcodes the directories in LIBPATH if there
5659 # are no directories specified by -L.
5660 hardcode_minus_L=yes
5661 if test "$GCC" = yes && test -z "$link_static_flag"; then
5662 # Neither direct hardcoding nor static linking is supported with a
5664 hardcode_direct=unsupported
5669 if test "$host_cpu" = ia64; then
5670 # On IA64, the linker does run time linking by default, so we don't
5671 # have to do anything special.
5672 aix_use_runtimelinking=no
5673 exp_sym_flag='-Bexport'
5676 aix_use_runtimelinking=no
5678 # Test if we are trying to use run time linking or normal
5679 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5680 # need to do runtime linking.
5681 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5682 for ld_flag in $LDFLAGS; do
5685 aix_use_runtimelinking=yes
5692 exp_sym_flag='-bexport'
5693 no_entry_flag='-bnoentry'
5696 # When large executables or shared objects are built, AIX ld can
5697 # have problems creating the table of contents. If linking a library
5698 # or program results in "error TOC overflow" add -mminimal-toc to
5699 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5700 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5704 hardcode_libdir_separator=':'
5705 if test "$GCC" = yes; then
5706 case $host_os in aix4.[012]|aix4.[012].*)
5707 collect2name=`${CC} -print-prog-name=collect2`
5708 if test -f "$collect2name" && \
5709 strings "$collect2name" | grep resolve_lib_name >/dev/null
5711 # We have reworked collect2
5714 # We have old collect2
5715 hardcode_direct=unsupported
5716 # It fails to find uninstalled libraries when the uninstalled
5717 # path is not listed in the libpath. Setting hardcode_minus_L
5718 # to unsupported forces relinking
5719 hardcode_minus_L=yes
5720 hardcode_libdir_flag_spec='-L$libdir'
5721 hardcode_libdir_separator=
5725 shared_flag='-shared'
5728 if test "$host_cpu" = ia64; then
5729 shared_flag='${wl}-G'
5731 if test "$aix_use_runtimelinking" = yes; then
5732 shared_flag='${wl}-G'
5734 shared_flag='${wl}-bM:SRE'
5739 # It seems that -bexpall can do strange things, so it is better to
5740 # generate a list of symbols to export.
5741 always_export_symbols=yes
5742 if test "$aix_use_runtimelinking" = yes; then
5743 # Warning - without using the other runtime loading flags (-brtl),
5744 # -berok will link without error, but may produce a broken library.
5745 allow_undefined_flag='-berok'
5746 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5747 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"
5749 if test "$host_cpu" = ia64; then
5750 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5751 allow_undefined_flag="-z nodefs"
5752 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"
5754 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5755 # Warning - without using the other run time loading flags,
5756 # -berok will link without error, but may produce a broken library.
5757 allow_undefined_flag='${wl}-berok'
5758 # This is a bit strange, but is similar to how AIX traditionally builds
5759 # it's shared libraries.
5760 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'
5766 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)'
5767 hardcode_libdir_flag_spec='-L$libdir'
5768 hardcode_minus_L=yes
5769 # see comment about different semantics on the GNU ld section
5773 cygwin* | mingw* | pw32*)
5774 # When not using gcc, we currently assume that we are using
5775 # Microsoft Visual C++.
5776 # hardcode_libdir_flag_spec is actually meaningless, as there is
5777 # no search path for DLLs.
5778 hardcode_libdir_flag_spec=' '
5779 allow_undefined_flag=unsupported
5780 # Tell ltmain to make .lib files, not .a files.
5782 # FIXME: Setting linknames here is a bad hack.
5783 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5784 # The linker will automatically build a .lib file if we build a DLL.
5785 old_archive_from_new_cmds='true'
5786 # FIXME: Should let the user specify the lib program.
5787 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5788 fix_srcfile_path='`cygpath -w "$srcfile"`'
5791 darwin* | rhapsody*)
5793 rhapsody* | darwin1.[012])
5794 allow_undefined_flag='-undefined suppress'
5797 allow_undefined_flag='-flat_namespace -undefined suppress'
5800 # FIXME: Relying on posixy $() will cause problems for
5801 # cross-compilation, but unfortunately the echo tests do not
5802 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5803 # `"' quotes if we put them in here... so don't!
5804 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)'
5805 # We need to add '_' to the symbols in $export_symbols first
5806 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5808 hardcode_shlibpath_var=no
5809 whole_archive_flag_spec='-all_load $convenience'
5816 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5817 # support. Future versions do this automatically, but an explicit c++rt0.o
5818 # does not break anything, and helps significantly (at the cost of a little
5821 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5822 hardcode_libdir_flag_spec='-R$libdir'
5824 hardcode_shlibpath_var=no
5827 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5829 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5831 hardcode_minus_L=yes
5832 hardcode_shlibpath_var=no
5835 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5837 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5838 hardcode_libdir_flag_spec='-R$libdir'
5840 hardcode_shlibpath_var=no
5843 hpux9* | hpux10* | hpux11*)
5845 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' ;;
5846 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5848 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5849 hardcode_libdir_separator=:
5851 hardcode_minus_L=yes # Not in the search PATH, but as the default
5852 # location of the library.
5853 export_dynamic_flag_spec='${wl}-E'
5856 irix5* | irix6* | nonstopux*)
5857 if test "$GCC" = yes; then
5858 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'
5859 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5861 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'
5862 hardcode_libdir_flag_spec='-rpath $libdir'
5864 hardcode_libdir_separator=:
5865 link_all_deplibs=yes
5869 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5870 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5872 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5874 hardcode_libdir_flag_spec='-R$libdir'
5876 hardcode_shlibpath_var=no
5880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5883 hardcode_libdir_separator=:
5884 hardcode_shlibpath_var=no
5889 hardcode_shlibpath_var=no
5890 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5891 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5892 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5893 export_dynamic_flag_spec='${wl}-E'
5896 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5897 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5898 hardcode_libdir_flag_spec='-R$libdir'
5901 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5902 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5909 archive_cmds="\$CC -Wl,DLL \$libobjs \$deplibs \$compiler_flags -o \$lib &&
5910 cp \$linknames \$output_objdir && linknames=''"
5911 export_dynamic_flag_spec="-Wl,DLL"
5915 hardcode_libdir_flag_spec='-L$libdir'
5916 hardcode_minus_L=yes
5917 allow_undefined_flag=unsupported
5918 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'
5919 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5923 if test "$GCC" = yes; then
5924 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5925 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'
5927 allow_undefined_flag=' -expect_unresolved \*'
5928 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'
5930 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5931 hardcode_libdir_separator=:
5934 osf4* | osf5*) # as osf3* with the addition of -msym flag
5935 if test "$GCC" = yes; then
5936 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5937 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'
5938 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5940 allow_undefined_flag=' -expect_unresolved \*'
5941 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'
5942 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5943 $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'
5945 #Both c and cxx compiler support -rpath directly
5946 hardcode_libdir_flag_spec='-rpath $libdir'
5948 hardcode_libdir_separator=:
5952 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5953 hardcode_shlibpath_var=no
5954 runpath_var=LD_RUN_PATH
5955 hardcode_runpath_var=yes
5956 export_dynamic_flag_spec='${wl}-Bexport'
5960 # gcc --version < 3.0 without binutils cannot create self contained
5961 # shared libraries reliably, requiring libgcc.a to resolve some of
5962 # the object symbols generated in some cases. Libraries that use
5963 # assert need libgcc.a to resolve __eprintf, for example. Linking
5964 # a copy of libgcc.a into every shared library to guarantee resolving
5965 # such symbols causes other problems: According to Tim Van Holder
5966 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5967 # (to the application) exception stack for one thing.
5968 no_undefined_flag=' -z defs'
5969 if test "$GCC" = yes; then
5970 case `$CC --version 2>/dev/null` in
5974 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5975 *** create self contained shared libraries on Solaris systems, without
5976 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5977 *** -no-undefined support, which will at least allow you to build shared
5978 *** libraries. However, you may find that when you link such libraries
5979 *** into an application without using GCC, you have to manually add
5980 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5981 *** upgrade to a newer version of GCC. Another option is to rebuild your
5982 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5989 # $CC -shared without GNU ld will not create a library from C++
5990 # object files and a static libstdc++, better avoid it by now
5991 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5992 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5993 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5994 hardcode_libdir_flag_spec='-R$libdir'
5995 hardcode_shlibpath_var=no
5997 solaris2.[0-5] | solaris2.[0-5].*) ;;
5998 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5999 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6001 link_all_deplibs=yes
6005 if test "x$host_vendor" = xsequent; then
6006 # Use $CC to link under sequent, because it throws in some extra .o
6007 # files that make .init and .fini sections work.
6008 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6010 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6012 hardcode_libdir_flag_spec='-L$libdir'
6014 hardcode_minus_L=yes
6015 hardcode_shlibpath_var=no
6019 case $host_vendor in
6021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6022 hardcode_direct=yes # is this really true???
6025 ## LD is ld it makes a PLAMLIB
6026 ## CC just makes a GrossModule.
6027 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6028 reload_cmds='$CC -r -o $output$reload_objs'
6032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6033 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6036 runpath_var='LD_RUN_PATH'
6037 hardcode_shlibpath_var=no
6041 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6042 hardcode_shlibpath_var=no
6043 export_dynamic_flag_spec='-Bexport'
6047 no_undefined_flag=' -z text'
6048 # $CC -shared without GNU ld will not create a library from C++
6049 # object files and a static libstdc++, better avoid it by now
6050 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6051 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6052 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6053 hardcode_libdir_flag_spec=
6054 hardcode_shlibpath_var=no
6055 runpath_var='LD_RUN_PATH'
6059 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6060 hardcode_libdir_flag_spec='-L$libdir'
6061 hardcode_shlibpath_var=no
6065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6066 hardcode_libdir_flag_spec='-L$libdir'
6067 hardcode_shlibpath_var=no
6071 if test -d /usr/nec; then
6072 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6073 hardcode_shlibpath_var=no
6074 runpath_var=LD_RUN_PATH
6075 hardcode_runpath_var=yes
6081 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6084 hardcode_shlibpath_var=no
6085 hardcode_runpath_var=yes
6086 runpath_var=LD_RUN_PATH
6089 sysv5uw7* | unixware7*)
6090 no_undefined_flag='${wl}-z ${wl}text'
6091 if test "$GCC" = yes; then
6092 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6094 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6096 runpath_var='LD_RUN_PATH'
6097 hardcode_shlibpath_var=no
6105 echo "$ac_t""$ld_shlibs" 1>&6
6106 test "$ld_shlibs" = no && can_build_shared=no
6108 # Check hardcoding attributes.
6109 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6110 echo "configure:6111: checking how to hardcode library paths into programs" >&5
6112 if test -n "$hardcode_libdir_flag_spec" || \
6113 test -n "$runpath_var"; then
6115 # We can hardcode non-existant directories.
6116 if test "$hardcode_direct" != no &&
6117 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6118 # have to relink, otherwise we might link with an installed library
6119 # when we should be linking with a yet-to-be-installed one
6120 ## test "$hardcode_shlibpath_var" != no &&
6121 test "$hardcode_minus_L" != no; then
6122 # Linking always hardcodes the temporary library directory.
6123 hardcode_action=relink
6125 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6126 hardcode_action=immediate
6129 # We cannot hardcode anything, or else we can only hardcode existing
6131 hardcode_action=unsupported
6133 echo "$ac_t""$hardcode_action" 1>&6
6137 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6138 echo "configure:6139: checking whether stripping libraries is possible" >&5
6139 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6140 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6141 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6142 echo "$ac_t""yes" 1>&6
6144 echo "$ac_t""no" 1>&6
6147 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6148 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6150 # PORTME Fill in your ld.so characteristics
6151 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6152 echo "configure:6153: checking dynamic linker characteristics" >&5
6154 libname_spec='lib$name'
6161 shlibpath_overrides_runpath=unknown
6163 dynamic_linker="$host_os ld.so"
6164 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6165 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6170 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6171 shlibpath_var=LIBPATH
6173 # AIX has no versioning support, so we append a major version to the name.
6174 soname_spec='${libname}${release}.so$major'
6181 hardcode_into_libs=yes
6182 if test "$host_cpu" = ia64; then
6183 # AIX 5 supports IA64
6184 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6185 shlibpath_var=LD_LIBRARY_PATH
6187 # With GCC up to 2.95.x, collect2 would create an import file
6188 # for dependence libraries. The import file would start with
6189 # the line `#! .'. This would cause the generated library to
6190 # depend on `.', always an invalid library. This was fixed in
6191 # development snapshots of GCC prior to 3.0.
6193 aix4 | aix4.[01] | aix4.[01].*)
6194 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6196 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6203 # AIX (on Power*) has no versioning support, so currently we can
6204 # not hardcode correct soname into executable. Probably we can
6205 # add versioning support to collect2, so additional links can
6206 # be useful in future.
6207 if test "$aix_use_runtimelinking" = yes; then
6208 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6209 # instead of lib<name>.a to let people know that these are not
6210 # typical AIX shared libraries.
6211 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6213 # We preserve .a as extension for shared libraries through AIX4.2
6214 # and later when we are not doing run time linking.
6215 library_names_spec='${libname}${release}.a $libname.a'
6216 soname_spec='${libname}${release}.so$major'
6218 shlibpath_var=LIBPATH
6220 hardcode_into_libs=yes
6224 library_names_spec='$libname.ixlibrary $libname.a'
6225 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6226 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'
6230 library_names_spec='${libname}.so'
6231 dynamic_linker="$host_os ld.so"
6232 shlibpath_var=LIBRARY_PATH
6238 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6239 soname_spec='${libname}${release}.so$major'
6240 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6241 shlibpath_var=LD_LIBRARY_PATH
6242 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6243 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6244 export_dynamic_flag_spec=-rdynamic
6245 # the default ld.so.conf also contains /usr/contrib/lib and
6246 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6247 # libtool to hard-code these into programs
6250 cygwin* | mingw* | pw32*)
6251 version_type=windows
6254 case $GCC,$host_os in
6256 library_names_spec='$libname.dll.a'
6257 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6258 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6259 dldir=$destdir/`dirname \$dlpath`~
6260 test -d \$dldir || mkdir -p \$dldir~
6261 $install_prog .libs/$dlname \$dldir/$dlname'
6262 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6263 dlpath=$dir/\$dldll~
6267 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6268 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6271 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6274 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6277 dynamic_linker='Win32 ld.exe'
6278 # FIXME: first we should search . and the directory the executable is in
6282 darwin* | rhapsody*)
6283 dynamic_linker="$host_os dyld"
6287 # FIXME: Relying on posixy $() will cause problems for
6288 # cross-compilation, but unfortunately the echo tests do not
6289 # yet detect zsh echo's removal of \ escapes.
6290 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)'
6291 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6292 shlibpath_overrides_runpath=yes
6293 shlibpath_var=DYLD_LIBRARY_PATH
6301 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6302 version_type=freebsd-$objformat
6303 case $version_type in
6305 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6310 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6314 shlibpath_var=LD_LIBRARY_PATH
6317 shlibpath_overrides_runpath=yes
6320 shlibpath_overrides_runpath=no
6321 hardcode_into_libs=yes
6330 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6331 soname_spec='${libname}${release}.so$major'
6332 shlibpath_var=LD_LIBRARY_PATH
6333 hardcode_into_libs=yes
6336 hpux9* | hpux10* | hpux11*)
6337 # Give a soname corresponding to the major version so that dld.sl refuses to
6338 # link against other versions.
6339 dynamic_linker="$host_os dld.sl"
6343 shlibpath_var=SHLIB_PATH
6344 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6345 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6346 soname_spec='${libname}${release}.sl$major'
6347 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6348 postinstall_cmds='chmod 555 $lib'
6351 irix5* | irix6* | nonstopux*)
6353 nonstopux*) version_type=nonstopux ;;
6354 *) version_type=irix ;;
6358 soname_spec='${libname}${release}.so$major'
6359 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6361 irix5* | nonstopux*)
6365 case $LD in # libtool.m4 will add one of these switches to LD
6366 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6367 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6368 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6369 *) libsuff= shlibsuff= libmagic=never-match;;
6373 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6374 shlibpath_overrides_runpath=no
6375 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6376 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6379 # No shared lib support for Linux oldld, aout, or coff.
6380 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6384 # This must be Linux ELF.
6389 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6390 soname_spec='${libname}${release}.so$major'
6391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6392 shlibpath_var=LD_LIBRARY_PATH
6393 shlibpath_overrides_runpath=no
6394 # This implies no fast_install, which is unacceptable.
6395 # Some rework will be needed to allow for fast_install
6396 # before this can be enabled.
6397 hardcode_into_libs=yes
6399 # We used to test for /lib/ld.so.1 and disable shared libraries on
6400 # powerpc, because MkLinux only supported shared libraries with the
6401 # GNU dynamic linker. Since this was broken with cross compilers,
6402 # most powerpc-linux boxes support dynamic linking these days and
6403 # people can always --disable-shared, the test was removed, and we
6404 # assume the GNU/Linux dynamic linker is in use.
6405 dynamic_linker='GNU/Linux ld.so'
6412 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6413 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6415 dynamic_linker='NetBSD (a.out) ld.so'
6417 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6418 soname_spec='${libname}${release}.so$major'
6419 dynamic_linker='NetBSD ld.elf_so'
6421 shlibpath_var=LD_LIBRARY_PATH
6422 shlibpath_overrides_runpath=yes
6423 hardcode_into_libs=yes
6428 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6429 shlibpath_var=LD_LIBRARY_PATH
6430 shlibpath_overrides_runpath=yes
6437 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6439 openbsd2.[89] | openbsd2.[89].*)
6440 shlibpath_overrides_runpath=no
6443 shlibpath_overrides_runpath=yes
6447 shlibpath_overrides_runpath=yes
6449 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6450 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6451 shlibpath_var=LD_LIBRARY_PATH
6457 shlibpath_overrides_runpath=yes
6458 shlibpath_var=LIBPATH
6459 postinstall_cmds="rm \$destdir/\$linkname; cp \$linkname \$destdir; chmod a+x \$lib"
6460 # the library's exports are in libname.x; this is the file that must
6461 # actually be linked with to use a DLL.
6462 library_names_spec="\${libname}\${release}.so\$versuffix \${libname}.x"
6466 libname_spec='$name'
6468 library_names_spec='$libname.dll $libname.a'
6469 dynamic_linker='OS/2 ld.exe'
6470 shlibpath_var=LIBPATH
6473 osf3* | osf4* | osf5*)
6476 soname_spec='${libname}${release}.so$major'
6477 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6478 shlibpath_var=LD_LIBRARY_PATH
6479 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6480 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6481 hardcode_into_libs=yes
6486 soname_spec='${libname}${release}.so$major'
6487 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6488 shlibpath_var=LD_LIBRARY_PATH
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
6498 shlibpath_overrides_runpath=yes
6499 hardcode_into_libs=yes
6500 # ldd complains unless libraries are executable
6501 postinstall_cmds='chmod +x $lib'
6506 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6507 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6508 shlibpath_var=LD_LIBRARY_PATH
6509 shlibpath_overrides_runpath=yes
6510 if test "$with_gnu_ld" = yes; then
6516 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6518 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6519 soname_spec='${libname}${release}.so$major'
6520 shlibpath_var=LD_LIBRARY_PATH
6521 case $host_vendor in
6523 shlibpath_overrides_runpath=no
6525 export_dynamic_flag_spec='${wl}-Blargedynsym'
6526 runpath_var=LD_RUN_PATH
6534 shlibpath_overrides_runpath=no
6535 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6542 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6543 soname_spec='${libname}${release}.so$major'
6544 shlibpath_var=LD_LIBRARY_PATH
6551 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6552 soname_spec='${libname}${release}.so$major'
6553 shlibpath_var=LD_LIBRARY_PATH
6557 if test -d /usr/nec ;then
6559 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6560 soname_spec='$libname.so.$major'
6561 shlibpath_var=LD_LIBRARY_PATH
6569 echo "$ac_t""$dynamic_linker" 1>&6
6570 test "$dynamic_linker" = no && can_build_shared=no
6572 # Report the final consequences.
6573 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6574 echo "configure:6575: checking if libtool supports shared libraries" >&5
6575 echo "$ac_t""$can_build_shared" 1>&6
6577 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6578 echo "configure:6579: checking whether to build shared libraries" >&5
6579 test "$can_build_shared" = "no" && enable_shared=no
6581 # On AIX, shared libraries and static libraries use the same namespace, and
6582 # are all built from PIC.
6585 test "$enable_shared" = yes && enable_static=no
6586 if test -n "$RANLIB"; then
6587 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6588 postinstall_cmds='$RANLIB $lib'
6593 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6594 test "$enable_shared" = yes && enable_static=no
6598 echo "$ac_t""$enable_shared" 1>&6
6600 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6601 echo "configure:6602: checking whether to build static libraries" >&5
6602 # Make sure either enable_shared or enable_static is yes.
6603 test "$enable_shared" = yes || enable_static=yes
6604 echo "$ac_t""$enable_static" 1>&6
6606 if test "$hardcode_action" = relink; then
6607 # Fast installation is not supported
6608 enable_fast_install=no
6609 elif test "$shlibpath_overrides_runpath" = yes ||
6610 test "$enable_shared" = no; then
6611 # Fast installation is not necessary
6612 enable_fast_install=needless
6615 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6616 if test "$GCC" = yes; then
6617 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6620 if test "x$enable_dlopen" != xyes; then
6621 enable_dlopen=unknown
6622 enable_dlopen_self=unknown
6623 enable_dlopen_self_static=unknown
6630 lt_cv_dlopen="load_add_on"
6632 lt_cv_dlopen_self=yes
6635 cygwin* | mingw* | pw32*)
6636 lt_cv_dlopen="LoadLibrary"
6641 echo $ac_n "checking for dllload""... $ac_c" 1>&6
6642 echo "configure:6643: checking for dllload" >&5
6643 if eval "test \"\${ac_cv_func_dllload+set}\" = set"; then
6644 echo $ac_n "(cached) $ac_c" 1>&6
6646 cat > conftest.$ac_ext <<EOF
6647 #line 6648 "configure"
6648 #include "confdefs.h"
6649 /* System header to define __stub macros and hopefully few prototypes,
6650 which can conflict with char dllload(); below. */
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. */
6660 /* The GNU C library defines this for functions which it implements
6661 to always fail with ENOSYS. Some functions are actually named
6662 something starting with __ and the normal name is an alias. */
6663 #if defined (__stub_dllload) || defined (__stub___dllload)
6671 if { (eval echo configure:6672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6673 eval "ac_cv_func_dllload=yes"
6675 echo "configure: failed program was:" >&5
6676 cat conftest.$ac_ext >&5
6678 eval "ac_cv_func_dllload=no"
6683 if eval "test \"`echo '$ac_cv_func_'dllload`\" = yes"; then
6684 echo "$ac_t""yes" 1>&6
6685 lt_cv_dlopen="dllload"
6687 echo "$ac_t""no" 1>&6
6688 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6689 echo "configure:6690: checking for shl_load" >&5
6690 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6691 echo $ac_n "(cached) $ac_c" 1>&6
6693 cat > conftest.$ac_ext <<EOF
6694 #line 6695 "configure"
6695 #include "confdefs.h"
6696 /* System header to define __stub macros and hopefully few prototypes,
6697 which can conflict with char shl_load(); below. */
6699 /* Override any gcc2 internal prototype to avoid an error. */
6700 /* We use char because int might match the return type of a gcc2
6701 builtin and then its argument prototype would still apply. */
6707 /* The GNU C library defines this for functions which it implements
6708 to always fail with ENOSYS. Some functions are actually named
6709 something starting with __ and the normal name is an alias. */
6710 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6718 if { (eval echo configure:6719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6720 eval "ac_cv_func_shl_load=yes"
6722 echo "configure: failed program was:" >&5
6723 cat conftest.$ac_ext >&5
6725 eval "ac_cv_func_shl_load=no"
6730 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6731 echo "$ac_t""yes" 1>&6
6732 lt_cv_dlopen="shl_load"
6734 echo "$ac_t""no" 1>&6
6735 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6736 echo "configure:6737: checking for shl_load in -ldld" >&5
6737 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6738 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6739 echo $ac_n "(cached) $ac_c" 1>&6
6741 ac_save_LIBS="$LIBS"
6743 cat > conftest.$ac_ext <<EOF
6744 #line 6745 "configure"
6745 #include "confdefs.h"
6746 /* Override any gcc2 internal prototype to avoid an error. */
6747 /* We use char because int might match the return type of a gcc2
6748 builtin and then its argument prototype would still apply. */
6755 if { (eval echo configure:6756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6757 eval "ac_cv_lib_$ac_lib_var=yes"
6759 echo "configure: failed program was:" >&5
6760 cat conftest.$ac_ext >&5
6762 eval "ac_cv_lib_$ac_lib_var=no"
6765 LIBS="$ac_save_LIBS"
6768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6769 echo "$ac_t""yes" 1>&6
6770 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6772 echo "$ac_t""no" 1>&6
6773 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6774 echo "configure:6775: checking for dlopen" >&5
6775 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6776 echo $ac_n "(cached) $ac_c" 1>&6
6778 cat > conftest.$ac_ext <<EOF
6779 #line 6780 "configure"
6780 #include "confdefs.h"
6781 /* System header to define __stub macros and hopefully few prototypes,
6782 which can conflict with char dlopen(); below. */
6784 /* Override any gcc2 internal prototype to avoid an error. */
6785 /* We use char because int might match the return type of a gcc2
6786 builtin and then its argument prototype would still apply. */
6792 /* The GNU C library defines this for functions which it implements
6793 to always fail with ENOSYS. Some functions are actually named
6794 something starting with __ and the normal name is an alias. */
6795 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6803 if { (eval echo configure:6804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6805 eval "ac_cv_func_dlopen=yes"
6807 echo "configure: failed program was:" >&5
6808 cat conftest.$ac_ext >&5
6810 eval "ac_cv_func_dlopen=no"
6815 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6816 echo "$ac_t""yes" 1>&6
6817 lt_cv_dlopen="dlopen"
6819 echo "$ac_t""no" 1>&6
6820 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6821 echo "configure:6822: checking for dlopen in -ldl" >&5
6822 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6823 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6824 echo $ac_n "(cached) $ac_c" 1>&6
6826 ac_save_LIBS="$LIBS"
6828 cat > conftest.$ac_ext <<EOF
6829 #line 6830 "configure"
6830 #include "confdefs.h"
6831 /* Override any gcc2 internal prototype to avoid an error. */
6832 /* We use char because int might match the return type of a gcc2
6833 builtin and then its argument prototype would still apply. */
6840 if { (eval echo configure:6841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6842 eval "ac_cv_lib_$ac_lib_var=yes"
6844 echo "configure: failed program was:" >&5
6845 cat conftest.$ac_ext >&5
6847 eval "ac_cv_lib_$ac_lib_var=no"
6850 LIBS="$ac_save_LIBS"
6853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6854 echo "$ac_t""yes" 1>&6
6855 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6857 echo "$ac_t""no" 1>&6
6858 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6859 echo "configure:6860: checking for dlopen in -lsvld" >&5
6860 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6861 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6862 echo $ac_n "(cached) $ac_c" 1>&6
6864 ac_save_LIBS="$LIBS"
6866 cat > conftest.$ac_ext <<EOF
6867 #line 6868 "configure"
6868 #include "confdefs.h"
6869 /* Override any gcc2 internal prototype to avoid an error. */
6870 /* We use char because int might match the return type of a gcc2
6871 builtin and then its argument prototype would still apply. */
6878 if { (eval echo configure:6879: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6880 eval "ac_cv_lib_$ac_lib_var=yes"
6882 echo "configure: failed program was:" >&5
6883 cat conftest.$ac_ext >&5
6885 eval "ac_cv_lib_$ac_lib_var=no"
6888 LIBS="$ac_save_LIBS"
6891 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6892 echo "$ac_t""yes" 1>&6
6893 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6895 echo "$ac_t""no" 1>&6
6896 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6897 echo "configure:6898: checking for dld_link in -ldld" >&5
6898 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6899 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6900 echo $ac_n "(cached) $ac_c" 1>&6
6902 ac_save_LIBS="$LIBS"
6904 cat > conftest.$ac_ext <<EOF
6905 #line 6906 "configure"
6906 #include "confdefs.h"
6907 /* Override any gcc2 internal prototype to avoid an error. */
6908 /* We use char because int might match the return type of a gcc2
6909 builtin and then its argument prototype would still apply. */
6916 if { (eval echo configure:6917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6918 eval "ac_cv_lib_$ac_lib_var=yes"
6920 echo "configure: failed program was:" >&5
6921 cat conftest.$ac_ext >&5
6923 eval "ac_cv_lib_$ac_lib_var=no"
6926 LIBS="$ac_save_LIBS"
6929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6930 echo "$ac_t""yes" 1>&6
6931 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6933 echo "$ac_t""no" 1>&6
6957 if test "x$lt_cv_dlopen" != xno; then
6963 case $lt_cv_dlopen in
6965 save_CPPFLAGS="$CPPFLAGS"
6966 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6968 save_LDFLAGS="$LDFLAGS"
6969 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6972 LIBS="$lt_cv_dlopen_libs $LIBS"
6974 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6975 echo "configure:6976: checking whether a program can dlopen itself" >&5
6976 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6977 echo $ac_n "(cached) $ac_c" 1>&6
6979 if test "$cross_compiling" = yes; then :
6980 lt_cv_dlopen_self=cross
6982 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6983 lt_status=$lt_dlunknown
6984 cat > conftest.$ac_ext <<EOF
6985 #line 6986 "configure"
6986 #include "confdefs.h"
6995 # define LT_DLGLOBAL RTLD_GLOBAL
6998 # define LT_DLGLOBAL DL_GLOBAL
7000 # define LT_DLGLOBAL 0
7004 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7005 find out it does not work in some platform. */
7006 #ifndef LT_DLLAZY_OR_NOW
7008 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7011 # define LT_DLLAZY_OR_NOW DL_LAZY
7014 # define LT_DLLAZY_OR_NOW RTLD_NOW
7017 # define LT_DLLAZY_OR_NOW DL_NOW
7019 # define LT_DLLAZY_OR_NOW 0
7027 extern "C" void exit (int);
7030 void fnord() { int i=42;}
7033 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7034 int status = $lt_dlunknown;
7038 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7039 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7040 /* dlclose (self); */
7046 if { (eval echo configure:7047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7047 (./conftest; exit; ) 2>/dev/null
7050 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7051 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7052 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7055 # compilation failed
7056 lt_cv_dlopen_self=no
7064 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
7066 if test "x$lt_cv_dlopen_self" = xyes; then
7067 LDFLAGS="$LDFLAGS $link_static_flag"
7068 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
7069 echo "configure:7070: checking whether a statically linked program can dlopen itself" >&5
7070 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
7071 echo $ac_n "(cached) $ac_c" 1>&6
7073 if test "$cross_compiling" = yes; then :
7074 lt_cv_dlopen_self_static=cross
7076 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7077 lt_status=$lt_dlunknown
7078 cat > conftest.$ac_ext <<EOF
7079 #line 7080 "configure"
7080 #include "confdefs.h"
7089 # define LT_DLGLOBAL RTLD_GLOBAL
7092 # define LT_DLGLOBAL DL_GLOBAL
7094 # define LT_DLGLOBAL 0
7098 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7099 find out it does not work in some platform. */
7100 #ifndef LT_DLLAZY_OR_NOW
7102 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7105 # define LT_DLLAZY_OR_NOW DL_LAZY
7108 # define LT_DLLAZY_OR_NOW RTLD_NOW
7111 # define LT_DLLAZY_OR_NOW DL_NOW
7113 # define LT_DLLAZY_OR_NOW 0
7121 extern "C" void exit (int);
7124 void fnord() { int i=42;}
7127 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7128 int status = $lt_dlunknown;
7132 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7133 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7134 /* dlclose (self); */
7140 if { (eval echo configure:7141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7141 (./conftest; exit; ) 2>/dev/null
7144 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7145 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7146 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7149 # compilation failed
7150 lt_cv_dlopen_self_static=no
7158 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7161 CPPFLAGS="$save_CPPFLAGS"
7162 LDFLAGS="$save_LDFLAGS"
7167 case $lt_cv_dlopen_self in
7168 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7169 *) enable_dlopen_self=unknown ;;
7172 case $lt_cv_dlopen_self_static in
7173 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7174 *) enable_dlopen_self_static=unknown ;;
7179 if test "$enable_shared" = yes && test "$GCC" = yes; then
7180 case $archive_cmds in
7182 # FIXME: we may have to deal with multi-command sequences.
7185 # Test whether the compiler implicitly links with -lc since on some
7186 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7187 # to ld, don't add -lc before -lgcc.
7188 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7189 echo "configure:7190: checking whether -lc should be explicitly linked in" >&5
7190 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7191 echo $ac_n "(cached) $ac_c" 1>&6
7194 echo 'static int dummy;' > conftest.$ac_ext
7196 if { (eval echo configure:7197: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7199 libobjs=conftest.$ac_objext
7201 wl=$lt_cv_prog_cc_wl
7207 save_allow_undefined_flag=$allow_undefined_flag
7208 allow_undefined_flag=
7209 if { (eval echo configure:7210: \"$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; }
7211 lt_cv_archive_cmds_need_lc=no
7213 lt_cv_archive_cmds_need_lc=yes
7215 allow_undefined_flag=$save_allow_undefined_flag
7217 cat conftest.err 1>&5
7221 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7225 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7227 # The second clause should only fire when bootstrapping the
7228 # libtool distribution, otherwise you forgot to ship ltmain.sh
7229 # with your package, and you will get complaints that there are
7230 # no rules to generate ltmain.sh.
7231 if test -f "$ltmain"; then
7234 # If there is no Makefile yet, we rely on a make rule to execute
7235 # `config.status --recheck' to rerun these tests and create the
7236 # libtool script then.
7237 test -f Makefile && make "$ltmain"
7240 if test -f "$ltmain"; then
7241 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7244 echo creating $ofile
7246 # Now quote all the things that may contain metacharacters while being
7247 # careful not to overquote the AC_SUBSTed values. We take copies of the
7248 # variables and quote the copies for generation of the libtool script.
7249 for var in echo old_CC old_CFLAGS SED \
7250 AR AR_FLAGS CC LD LN_S NM SHELL \
7251 reload_flag reload_cmds wl \
7252 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7253 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7254 library_names_spec soname_spec \
7255 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7256 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7257 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7258 old_striplib striplib file_magic_cmd export_symbols_cmds \
7259 deplibs_check_method allow_undefined_flag no_undefined_flag \
7260 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7261 global_symbol_to_c_name_address \
7262 hardcode_libdir_flag_spec hardcode_libdir_separator \
7263 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7264 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7267 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7268 old_postinstall_cmds | old_postuninstall_cmds | \
7269 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7270 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7271 postinstall_cmds | postuninstall_cmds | \
7272 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7273 # Double-quote double-evaled strings.
7274 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7277 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7282 cat <<__EOF__ > "${ofile}T"
7285 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7286 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7287 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7289 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7290 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7292 # This program is free software; you can redistribute it and/or modify
7293 # it under the terms of the GNU General Public License as published by
7294 # the Free Software Foundation; either version 2 of the License, or
7295 # (at your option) any later version.
7297 # This program is distributed in the hope that it will be useful, but
7298 # WITHOUT ANY WARRANTY; without even the implied warranty of
7299 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7300 # General Public License for more details.
7302 # You should have received a copy of the GNU General Public License
7303 # along with this program; if not, write to the Free Software
7304 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7306 # As a special exception to the GNU General Public License, if you
7307 # distribute this file as part of a program that contains a
7308 # configuration script generated by Autoconf, you may include it under
7309 # the same distribution terms that you use for the rest of that program.
7311 # A sed that does not truncate output.
7314 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7315 Xsed="${SED} -e s/^X//"
7317 # The HP-UX ksh and POSIX shell print the target directory to stdout
7319 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7321 # ### BEGIN LIBTOOL CONFIG
7323 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7325 # Shell to use when invoking shell scripts.
7328 # Whether or not to build shared libraries.
7329 build_libtool_libs=$enable_shared
7331 # Whether or not to build static libraries.
7332 build_old_libs=$enable_static
7334 # Whether or not to add -lc for building shared libraries.
7335 build_libtool_need_lc=$need_lc
7337 # Whether or not to optimize for fast installation.
7338 fast_install=$enable_fast_install
7341 host_alias=$host_alias
7344 # An echo program that does not interpret backslashes.
7349 AR_FLAGS=$lt_AR_FLAGS
7351 # The default C compiler.
7354 # Is the compiler the GNU C compiler?
7357 # The linker used to build libraries.
7360 # Whether we need hard or soft links.
7363 # A BSD-compatible nm program.
7366 # A symbol stripping program
7369 # Used to examine libraries when file_magic_cmd begins "file"
7370 MAGIC_CMD=$MAGIC_CMD
7372 # Used on cygwin: DLL creation program.
7375 # Used on cygwin: object dumper.
7378 # Used on cygwin: assembler.
7381 # The name of the directory that contains temporary libtool files.
7384 # How to create reloadable object files.
7385 reload_flag=$lt_reload_flag
7386 reload_cmds=$lt_reload_cmds
7388 # How to pass a linker flag through the compiler.
7391 # Object file suffix (normally "o").
7394 # Old archive suffix (normally "a").
7397 # Executable file suffix (normally "").
7400 # Additional compiler flags for building library objects.
7401 pic_flag=$lt_pic_flag
7404 # Does compiler simultaneously support -c and -o options?
7405 compiler_c_o=$lt_compiler_c_o
7407 # Can we write directly to a .lo ?
7408 compiler_o_lo=$lt_compiler_o_lo
7410 # Must we lock files when doing compilation ?
7411 need_locks=$lt_need_locks
7413 # Do we need the lib prefix for modules?
7414 need_lib_prefix=$need_lib_prefix
7416 # Do we need a version for libraries?
7417 need_version=$need_version
7419 # Whether dlopen is supported.
7420 dlopen_support=$enable_dlopen
7422 # Whether dlopen of programs is supported.
7423 dlopen_self=$enable_dlopen_self
7425 # Whether dlopen of statically linked programs is supported.
7426 dlopen_self_static=$enable_dlopen_self_static
7428 # Compiler flag to prevent dynamic linking.
7429 link_static_flag=$lt_link_static_flag
7431 # Compiler flag to turn off builtin functions.
7432 no_builtin_flag=$lt_no_builtin_flag
7434 # Compiler flag to allow reflexive dlopens.
7435 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7437 # Compiler flag to generate shared objects directly from archives.
7438 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7440 # Compiler flag to generate thread-safe objects.
7441 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7443 # Library versioning type.
7444 version_type=$version_type
7446 # Format of library name prefix.
7447 libname_spec=$lt_libname_spec
7449 # List of archive names. First name is the real one, the rest are links.
7450 # The last name is the one that the linker finds with -lNAME.
7451 library_names_spec=$lt_library_names_spec
7453 # The coded name of the library, if different from the real name.
7454 soname_spec=$lt_soname_spec
7456 # Commands used to build and install an old-style archive.
7458 old_archive_cmds=$lt_old_archive_cmds
7459 old_postinstall_cmds=$lt_old_postinstall_cmds
7460 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7462 # Create an old-style archive from a shared archive.
7463 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7465 # Create a temporary old-style archive to link instead of a shared archive.
7466 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7468 # Commands used to build and install a shared archive.
7469 archive_cmds=$lt_archive_cmds
7470 archive_expsym_cmds=$lt_archive_expsym_cmds
7471 postinstall_cmds=$lt_postinstall_cmds
7472 postuninstall_cmds=$lt_postuninstall_cmds
7474 # Commands to strip libraries.
7475 old_striplib=$lt_old_striplib
7476 striplib=$lt_striplib
7478 # Method to check whether dependent libraries are shared objects.
7479 deplibs_check_method=$lt_deplibs_check_method
7481 # Command to use when deplibs_check_method == file_magic.
7482 file_magic_cmd=$lt_file_magic_cmd
7484 # Flag that allows shared libraries with undefined symbols to be built.
7485 allow_undefined_flag=$lt_allow_undefined_flag
7487 # Flag that forces no undefined symbols.
7488 no_undefined_flag=$lt_no_undefined_flag
7490 # Commands used to finish a libtool library installation in a directory.
7491 finish_cmds=$lt_finish_cmds
7493 # Same as above, but a single script fragment to be evaled but not shown.
7494 finish_eval=$lt_finish_eval
7496 # Take the output of nm and produce a listing of raw symbols and C names.
7497 global_symbol_pipe=$lt_global_symbol_pipe
7499 # Transform the output of nm in a proper C declaration
7500 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7502 # Transform the output of nm in a C name address pair
7503 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7505 # This is the shared library runtime path variable.
7506 runpath_var=$runpath_var
7508 # This is the shared library path variable.
7509 shlibpath_var=$shlibpath_var
7511 # Is shlibpath searched before the hard-coded library search path?
7512 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7514 # How to hardcode a shared library path into an executable.
7515 hardcode_action=$hardcode_action
7517 # Whether we should hardcode library paths into libraries.
7518 hardcode_into_libs=$hardcode_into_libs
7520 # Flag to hardcode \$libdir into a binary during linking.
7521 # This must work even if \$libdir does not exist.
7522 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7524 # Whether we need a single -rpath flag with a separated argument.
7525 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7527 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7529 hardcode_direct=$hardcode_direct
7531 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7533 hardcode_minus_L=$hardcode_minus_L
7535 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7536 # the resulting binary.
7537 hardcode_shlibpath_var=$hardcode_shlibpath_var
7539 # Variables whose values should be saved in libtool wrapper scripts and
7540 # restored at relink time.
7541 variables_saved_for_relink="$variables_saved_for_relink"
7543 # Whether libtool must link a program against all its dependency libraries.
7544 link_all_deplibs=$link_all_deplibs
7546 # Compile-time system search path for libraries
7547 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7549 # Run-time system search path for libraries
7550 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7552 # Fix the shell variable \$srcfile for the compiler.
7553 fix_srcfile_path="$fix_srcfile_path"
7555 # Set to yes if exported symbols are required.
7556 always_export_symbols=$always_export_symbols
7558 # The commands to list exported symbols.
7559 export_symbols_cmds=$lt_export_symbols_cmds
7561 # The commands to extract the exported symbol list from a shared archive.
7562 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7564 # Symbols that should not be listed in the preloaded symbols.
7565 exclude_expsyms=$lt_exclude_expsyms
7567 # Symbols that must always be exported.
7568 include_expsyms=$lt_include_expsyms
7570 # ### END LIBTOOL CONFIG
7576 cat <<\EOF >> "${ofile}T"
7578 # AIX sometimes has problems with the GCC collect2 program. For some
7579 # reason, if we set the COLLECT_NAMES environment variable, the problems
7580 # vanish in a puff of smoke.
7581 if test "X${COLLECT_NAMES+set}" != Xset; then
7583 export COLLECT_NAMES
7590 cygwin* | mingw* | pw32* | os2*)
7591 cat <<'EOF' >> "${ofile}T"
7592 # This is a source program that is used to create dlls on Windows
7593 # Don't remove nor modify the starting and closing comments
7594 # /* ltdll.c starts here */
7595 # #define WIN32_LEAN_AND_MEAN
7596 # #include <windows.h>
7597 # #undef WIN32_LEAN_AND_MEAN
7598 # #include <stdio.h>
7600 # #ifndef __CYGWIN__
7601 # # ifdef __CYGWIN32__
7602 # # define __CYGWIN__ __CYGWIN32__
7606 # #ifdef __cplusplus
7609 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7610 # #ifdef __cplusplus
7615 # #include <cygwin/cygwin_dll.h>
7616 # DECLARE_CYGWIN_DLL( DllMain );
7618 # HINSTANCE __hDllInstance_base;
7621 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7623 # __hDllInstance_base = hInst;
7626 # /* ltdll.c ends here */
7627 # This is a source program that is used to create import libraries
7628 # on Windows for dlls which lack them. Don't remove nor modify the
7629 # starting and closing comments
7630 # /* impgen.c starts here */
7631 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7633 # This file is part of GNU libtool.
7635 # This program is free software; you can redistribute it and/or modify
7636 # it under the terms of the GNU General Public License as published by
7637 # the Free Software Foundation; either version 2 of the License, or
7638 # (at your option) any later version.
7640 # This program is distributed in the hope that it will be useful,
7641 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7642 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7643 # GNU General Public License for more details.
7645 # You should have received a copy of the GNU General Public License
7646 # along with this program; if not, write to the Free Software
7647 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7650 # #include <stdio.h> /* for printf() */
7651 # #include <unistd.h> /* for open(), lseek(), read() */
7652 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7653 # #include <string.h> /* for strdup() */
7655 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7657 # #define O_BINARY 0
7660 # static unsigned int
7661 # pe_get16 (fd, offset)
7665 # unsigned char b[2];
7666 # lseek (fd, offset, SEEK_SET);
7668 # return b[0] + (b[1]<<8);
7671 # static unsigned int
7672 # pe_get32 (fd, offset)
7676 # unsigned char b[4];
7677 # lseek (fd, offset, SEEK_SET);
7679 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7682 # static unsigned int
7686 # unsigned char *b = ptr;
7687 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7696 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7697 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7698 # unsigned long name_rvas, nexp;
7699 # unsigned char *expdata, *erva;
7700 # char *filename, *dll_name;
7702 # filename = argv[1];
7704 # dll = open(filename, O_RDONLY|O_BINARY);
7708 # dll_name = filename;
7710 # for (i=0; filename[i]; i++)
7711 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7712 # dll_name = filename + i +1;
7714 # pe_header_offset = pe_get32 (dll, 0x3c);
7715 # opthdr_ofs = pe_header_offset + 4 + 20;
7716 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7718 # if (num_entries < 1) /* no exports */
7721 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7722 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7723 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7724 # secptr = (pe_header_offset + 4 + 20 +
7725 # pe_get16 (dll, pe_header_offset + 4 + 16));
7728 # for (i = 0; i < nsections; i++)
7731 # unsigned long secptr1 = secptr + 40 * i;
7732 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7733 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7734 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7735 # lseek(dll, secptr1, SEEK_SET);
7736 # read(dll, sname, 8);
7737 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7739 # expptr = fptr + (export_rva - vaddr);
7740 # if (export_rva + export_size > vaddr + vsize)
7741 # export_size = vsize - (export_rva - vaddr);
7746 # expdata = (unsigned char*)malloc(export_size);
7747 # lseek (dll, expptr, SEEK_SET);
7748 # read (dll, expdata, export_size);
7749 # erva = expdata - export_rva;
7751 # nexp = pe_as32 (expdata+24);
7752 # name_rvas = pe_as32 (expdata+32);
7754 # printf ("EXPORTS\n");
7755 # for (i = 0; i<nexp; i++)
7757 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7758 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7763 # /* impgen.c ends here */
7769 # We use sed instead of cat because bash on DJGPP gets confused if
7770 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7771 # text mode, it properly converts lines to CR/LF. This bash problem
7772 # is reportedly fixed, but why not run on old versions too?
7773 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7775 mv -f "${ofile}T" "$ofile" || \
7776 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7784 # This can be used to rebuild libtool when needed
7785 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7787 # Always use our own libtool.
7788 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7790 # Prevent multiple expansion
7795 if test $ol_enable_perl != no ; then
7796 # Extract the first word of "perl", so it can be a program name with args.
7797 set dummy perl; ac_word=$2
7798 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7799 echo "configure:7800: checking for $ac_word" >&5
7800 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7801 echo $ac_n "(cached) $ac_c" 1>&6
7805 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7808 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7811 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7813 for ac_dir in $ac_dummy; do
7814 test -z "$ac_dir" && ac_dir=.
7815 if test -f $ac_dir/$ac_word; then
7816 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7821 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7825 PERLBIN="$ac_cv_path_PERLBIN"
7826 if test -n "$PERLBIN"; then
7827 echo "$ac_t""$PERLBIN" 1>&6
7829 echo "$ac_t""no" 1>&6
7833 if test "no$PERLBIN" = "no" ; then
7834 if test $ol_enable_perl = yes ; then
7835 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7839 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7840 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
7842 if test x"$ol_enable_perl" = "xyes" ; then
7843 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
7845 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
7851 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7852 echo "configure:7853: checking how to run the C preprocessor" >&5
7853 # On Suns, sometimes $CPP names a directory.
7854 if test -n "$CPP" && test -d "$CPP"; then
7857 if test -z "$CPP"; then
7858 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7859 echo $ac_n "(cached) $ac_c" 1>&6
7861 # This must be in double quotes, not single quotes, because CPP may get
7862 # substituted into the Makefile and "${CC-cc}" will confuse make.
7864 # On the NeXT, cc -E runs the code through the compiler's parser,
7865 # not just through cpp.
7866 cat > conftest.$ac_ext <<EOF
7867 #line 7868 "configure"
7868 #include "confdefs.h"
7872 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7873 { (eval echo configure:7874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7874 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7875 if test -z "$ac_err"; then
7879 echo "configure: failed program was:" >&5
7880 cat conftest.$ac_ext >&5
7882 CPP="${CC-cc} -E -traditional-cpp"
7883 cat > conftest.$ac_ext <<EOF
7884 #line 7885 "configure"
7885 #include "confdefs.h"
7889 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7890 { (eval echo configure:7891: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7891 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7892 if test -z "$ac_err"; then
7896 echo "configure: failed program was:" >&5
7897 cat conftest.$ac_ext >&5
7899 CPP="${CC-cc} -nologo -E"
7900 cat > conftest.$ac_ext <<EOF
7901 #line 7902 "configure"
7902 #include "confdefs.h"
7906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7907 { (eval echo configure:7908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7909 if test -z "$ac_err"; then
7913 echo "configure: failed program was:" >&5
7914 cat conftest.$ac_ext >&5
7923 ac_cv_prog_CPP="$CPP"
7925 CPP="$ac_cv_prog_CPP"
7927 ac_cv_prog_CPP="$CPP"
7929 echo "$ac_t""$CPP" 1>&6
7933 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7934 echo "configure:7935: checking for Cygwin environment" >&5
7935 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7936 echo $ac_n "(cached) $ac_c" 1>&6
7938 cat > conftest.$ac_ext <<EOF
7939 #line 7940 "configure"
7940 #include "confdefs.h"
7945 #define __CYGWIN__ __CYGWIN32__
7950 if { (eval echo configure:7951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7954 echo "configure: failed program was:" >&5
7955 cat conftest.$ac_ext >&5
7962 echo "$ac_t""$ac_cv_cygwin" 1>&6
7964 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7965 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7966 echo "configure:7967: checking for mingw32 environment" >&5
7967 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7968 echo $ac_n "(cached) $ac_c" 1>&6
7970 cat > conftest.$ac_ext <<EOF
7971 #line 7972 "configure"
7972 #include "confdefs.h"
7978 if { (eval echo configure:7979: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7982 echo "configure: failed program was:" >&5
7983 cat conftest.$ac_ext >&5
7990 echo "$ac_t""$ac_cv_mingw32" 1>&6
7992 test "$ac_cv_mingw32" = yes && MINGW32=yes
7996 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7997 echo "configure:7998: checking for executable suffix" >&5
7998 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
7999 echo $ac_n "(cached) $ac_c" 1>&6
8001 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
8005 echo 'int main () { return 0; }' > conftest.$ac_ext
8007 if { (eval echo configure:8008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
8008 for file in conftest.*; do
8010 *.c | *.C | *.o | *.obj | *.xcoff) ;;
8011 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
8015 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
8018 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
8023 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
8024 echo "$ac_t""${ac_cv_exeext}" 1>&6
8027 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
8028 echo "configure:8029: checking for object suffix" >&5
8029 if eval "test \"\${ac_cv_objext+set}\" = set"; then
8030 echo $ac_n "(cached) $ac_c" 1>&6
8033 echo 'int i = 1;' > conftest.$ac_ext
8034 if { (eval echo configure:8035: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8035 for ac_file in conftest.*; do
8038 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
8042 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8047 echo "$ac_t""$ac_cv_objext" 1>&6
8048 OBJEXT=$ac_cv_objext
8049 ac_objext=$ac_cv_objext
8052 cat >> confdefs.h <<EOF
8053 #define EXEEXT "${EXEEXT}"
8057 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8058 echo "configure:8059: checking for be_app in -lbe" >&5
8059 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8060 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8061 echo $ac_n "(cached) $ac_c" 1>&6
8063 ac_save_LIBS="$LIBS"
8064 LIBS="-lbe -lroot -lnet $LIBS"
8065 cat > conftest.$ac_ext <<EOF
8066 #line 8067 "configure"
8067 #include "confdefs.h"
8068 /* Override any gcc2 internal prototype to avoid an error. */
8069 /* We use char because int might match the return type of a gcc2
8070 builtin and then its argument prototype would still apply. */
8077 if { (eval echo configure:8078: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8079 eval "ac_cv_lib_$ac_lib_var=yes"
8081 echo "configure: failed program was:" >&5
8082 cat conftest.$ac_ext >&5
8084 eval "ac_cv_lib_$ac_lib_var=no"
8087 LIBS="$ac_save_LIBS"
8090 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8091 echo "$ac_t""yes" 1>&6
8092 LIBS="$LIBS -lbe -lroot -lnet"
8094 echo "$ac_t""no" 1>&6
8102 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8103 echo "configure:8104: checking for ${CC-cc} option to accept ANSI C" >&5
8104 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8105 echo $ac_n "(cached) $ac_c" 1>&6
8107 am_cv_prog_cc_stdc=no
8109 # Don't try gcc -ansi; that turns off useful extensions and
8110 # breaks some systems' header files.
8111 # AIX -qlanglvl=ansi
8112 # Ultrix and OSF/1 -std1
8113 # HP-UX 10.20 and later -Ae
8114 # HP-UX older versions -Aa -D_HPUX_SOURCE
8115 # SVR4 -Xc -D__EXTENSIONS__
8116 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8118 CC="$ac_save_CC $ac_arg"
8119 cat > conftest.$ac_ext <<EOF
8120 #line 8121 "configure"
8121 #include "confdefs.h"
8124 #include <sys/types.h>
8125 #include <sys/stat.h>
8126 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8127 struct buf { int x; };
8128 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8129 static char *e (p, i)
8135 static char *f (char * (*g) (char **, int), char **p, ...)
8140 s = g (p, va_arg (v,int));
8144 int test (int i, double x);
8145 struct s1 {int (*f) (int a);};
8146 struct s2 {int (*f) (double a);};
8147 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8153 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8157 if { (eval echo configure:8158: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8159 am_cv_prog_cc_stdc="$ac_arg"; break
8161 echo "configure: failed program was:" >&5
8162 cat conftest.$ac_ext >&5
8170 if test -z "$am_cv_prog_cc_stdc"; then
8171 echo "$ac_t""none needed" 1>&6
8173 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8175 case "x$am_cv_prog_cc_stdc" in
8177 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8180 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8181 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8184 # test for make depend flag
8187 if test -z "${MKDEP}"; then
8189 if test -z "${MKDEP_FLAGS}"; then
8190 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8191 echo "configure:8192: checking for ${OL_MKDEP} depend flag" >&5
8192 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8193 echo $ac_n "(cached) $ac_c" 1>&6
8197 for flag in "-M" "-xM"; do
8198 cat > conftest.c <<EOF
8201 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8202 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8204 if test ! -f conftest."${ac_object}" ; then
8206 OL_MKDEP_FLAGS="$flag"
8215 echo "$ac_t""$ol_cv_mkdep" 1>&6
8218 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8223 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8228 if test "${ol_cv_mkdep}" = no ; then
8229 # this will soon become an error
8230 echo "configure: warning: do not know how to generate dependencies" 1>&2
8233 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8234 echo "configure:8235: checking for afopen in -ls" >&5
8235 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8236 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8237 echo $ac_n "(cached) $ac_c" 1>&6
8239 ac_save_LIBS="$LIBS"
8241 cat > conftest.$ac_ext <<EOF
8242 #line 8243 "configure"
8243 #include "confdefs.h"
8244 /* Override any gcc2 internal prototype to avoid an error. */
8245 /* We use char because int might match the return type of a gcc2
8246 builtin and then its argument prototype would still apply. */
8253 if { (eval echo configure:8254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8255 eval "ac_cv_lib_$ac_lib_var=yes"
8257 echo "configure: failed program was:" >&5
8258 cat conftest.$ac_ext >&5
8260 eval "ac_cv_lib_$ac_lib_var=no"
8263 LIBS="$ac_save_LIBS"
8266 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8267 echo "$ac_t""yes" 1>&6
8270 cat >> confdefs.h <<\EOF
8271 #define HAVE_AIX_SECURITY 1
8276 echo "$ac_t""no" 1>&6
8282 ac_cv_func_getopt=no
8283 cat >> confdefs.h <<\EOF
8284 #define BOTH_STRINGS_H 1
8291 WITH_MODULES_ENABLED=no
8292 if test $ol_enable_modules != no ; then
8293 for ac_hdr in ltdl.h
8295 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8296 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8297 echo "configure:8298: checking for $ac_hdr" >&5
8298 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8299 echo $ac_n "(cached) $ac_c" 1>&6
8301 cat > conftest.$ac_ext <<EOF
8302 #line 8303 "configure"
8303 #include "confdefs.h"
8306 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8307 { (eval echo configure:8308: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8308 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8309 if test -z "$ac_err"; then
8311 eval "ac_cv_header_$ac_safe=yes"
8314 echo "configure: failed program was:" >&5
8315 cat conftest.$ac_ext >&5
8317 eval "ac_cv_header_$ac_safe=no"
8321 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8322 echo "$ac_t""yes" 1>&6
8323 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8324 cat >> confdefs.h <<EOF
8325 #define $ac_tr_hdr 1
8329 echo "$ac_t""no" 1>&6
8334 if test $ac_cv_header_ltdl_h = no ; then
8335 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8338 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8339 echo "configure:8340: checking for lt_dlinit in -lltdl" >&5
8340 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8341 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8342 echo $ac_n "(cached) $ac_c" 1>&6
8344 ac_save_LIBS="$LIBS"
8346 cat > conftest.$ac_ext <<EOF
8347 #line 8348 "configure"
8348 #include "confdefs.h"
8349 /* Override any gcc2 internal prototype to avoid an error. */
8350 /* We use char because int might match the return type of a gcc2
8351 builtin and then its argument prototype would still apply. */
8358 if { (eval echo configure:8359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8360 eval "ac_cv_lib_$ac_lib_var=yes"
8362 echo "configure: failed program was:" >&5
8363 cat conftest.$ac_ext >&5
8365 eval "ac_cv_lib_$ac_lib_var=no"
8368 LIBS="$ac_save_LIBS"
8371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8372 echo "$ac_t""yes" 1>&6
8375 cat >> confdefs.h <<\EOF
8376 #define HAVE_LIBLTDL 1
8381 echo "$ac_t""no" 1>&6
8385 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8386 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8389 WITH_MODULES_ENABLED=yes
8392 for i in $Backends; do
8393 eval "ol_tmp=\$ol_enable_$i"
8394 if test $ol_tmp = mod ; then
8395 echo "configure: warning: building static $i backend" 1>&2
8396 eval "ol_enable_$i=yes"
8399 for i in $Overlays; do
8400 eval "ol_tmp=\$ol_enable_$i"
8401 if test $ol_tmp = mod ; then
8402 echo "configure: warning: building static $i overlay" 1>&2
8403 eval "ol_enable_$i=yes"
8409 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8410 echo "configure:8411: checking for EBCDIC" >&5
8411 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8412 echo $ac_n "(cached) $ac_c" 1>&6
8415 cat > conftest.$ac_ext <<EOF
8416 #line 8417 "configure"
8417 #include "confdefs.h"
8420 #include <__ASCII__/generate_error.h>
8424 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8425 { (eval echo configure:8426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8426 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8427 if test -z "$ac_err"; then
8429 ol_cv_cpp_ebcdic=yes
8432 echo "configure: failed program was:" >&5
8433 cat conftest.$ac_ext >&5
8440 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8441 if test $ol_cv_cpp_ebcdic = yes ; then
8442 cat >> confdefs.h <<\EOF
8443 #define HAVE_EBCDIC 1
8448 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8449 echo "configure:8450: checking for ANSI C header files" >&5
8450 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8451 echo $ac_n "(cached) $ac_c" 1>&6
8453 cat > conftest.$ac_ext <<EOF
8454 #line 8455 "configure"
8455 #include "confdefs.h"
8461 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8462 { (eval echo configure:8463: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8463 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8464 if test -z "$ac_err"; then
8466 ol_cv_header_stdc=yes
8469 echo "configure: failed program was:" >&5
8470 cat conftest.$ac_ext >&5
8472 ol_cv_header_stdc=no
8476 if test $ol_cv_header_stdc = yes; then
8477 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8478 cat > conftest.$ac_ext <<EOF
8479 #line 8480 "configure"
8480 #include "confdefs.h"
8483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8484 egrep "memchr" >/dev/null 2>&1; then
8488 ol_cv_header_stdc=no
8494 if test $ol_cv_header_stdc = yes; then
8495 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8496 cat > conftest.$ac_ext <<EOF
8497 #line 8498 "configure"
8498 #include "confdefs.h"
8501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8502 egrep "free" >/dev/null 2>&1; then
8506 ol_cv_header_stdc=no
8512 if test $ol_cv_header_stdc = yes; then
8513 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8514 if test "$cross_compiling" = yes; then
8517 cat > conftest.$ac_ext <<EOF
8518 #line 8519 "configure"
8519 #include "confdefs.h"
8522 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8523 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8525 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8526 || ('j' <= (c) && (c) <= 'r') \
8527 || ('s' <= (c) && (c) <= 'z'))
8528 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8530 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8531 int main () { int i; for (i = 0; i < 256; i++)
8532 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8536 if { (eval echo configure:8537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
8540 echo "configure: failed program was:" >&5
8541 cat conftest.$ac_ext >&5
8543 ol_cv_header_stdc=no
8551 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8552 if test $ol_cv_header_stdc = yes; then
8553 cat >> confdefs.h <<\EOF
8554 #define STDC_HEADERS 1
8558 ac_cv_header_stdc=disable
8561 if test $ol_cv_header_stdc != yes; then
8562 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8566 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8568 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8569 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8570 echo "configure:8571: checking for $ac_hdr that defines DIR" >&5
8571 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8572 echo $ac_n "(cached) $ac_c" 1>&6
8574 cat > conftest.$ac_ext <<EOF
8575 #line 8576 "configure"
8576 #include "confdefs.h"
8577 #include <sys/types.h>
8583 if { (eval echo configure:8584: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8585 eval "ac_cv_header_dirent_$ac_safe=yes"
8587 echo "configure: failed program was:" >&5
8588 cat conftest.$ac_ext >&5
8590 eval "ac_cv_header_dirent_$ac_safe=no"
8594 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8595 echo "$ac_t""yes" 1>&6
8596 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8597 cat >> confdefs.h <<EOF
8598 #define $ac_tr_hdr 1
8600 ac_header_dirent=$ac_hdr; break
8602 echo "$ac_t""no" 1>&6
8605 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8606 if test $ac_header_dirent = dirent.h; then
8607 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8608 echo "configure:8609: checking for opendir in -ldir" >&5
8609 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8610 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8611 echo $ac_n "(cached) $ac_c" 1>&6
8613 ac_save_LIBS="$LIBS"
8615 cat > conftest.$ac_ext <<EOF
8616 #line 8617 "configure"
8617 #include "confdefs.h"
8618 /* Override any gcc2 internal prototype to avoid an error. */
8619 /* We use char because int might match the return type of a gcc2
8620 builtin and then its argument prototype would still apply. */
8627 if { (eval echo configure:8628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8629 eval "ac_cv_lib_$ac_lib_var=yes"
8631 echo "configure: failed program was:" >&5
8632 cat conftest.$ac_ext >&5
8634 eval "ac_cv_lib_$ac_lib_var=no"
8637 LIBS="$ac_save_LIBS"
8640 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8641 echo "$ac_t""yes" 1>&6
8644 echo "$ac_t""no" 1>&6
8648 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8649 echo "configure:8650: checking for opendir in -lx" >&5
8650 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8651 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8652 echo $ac_n "(cached) $ac_c" 1>&6
8654 ac_save_LIBS="$LIBS"
8656 cat > conftest.$ac_ext <<EOF
8657 #line 8658 "configure"
8658 #include "confdefs.h"
8659 /* Override any gcc2 internal prototype to avoid an error. */
8660 /* We use char because int might match the return type of a gcc2
8661 builtin and then its argument prototype would still apply. */
8668 if { (eval echo configure:8669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8670 eval "ac_cv_lib_$ac_lib_var=yes"
8672 echo "configure: failed program was:" >&5
8673 cat conftest.$ac_ext >&5
8675 eval "ac_cv_lib_$ac_lib_var=no"
8678 LIBS="$ac_save_LIBS"
8681 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8682 echo "$ac_t""yes" 1>&6
8685 echo "$ac_t""no" 1>&6
8690 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8691 echo "configure:8692: checking for sys/wait.h that is POSIX.1 compatible" >&5
8692 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8693 echo $ac_n "(cached) $ac_c" 1>&6
8695 cat > conftest.$ac_ext <<EOF
8696 #line 8697 "configure"
8697 #include "confdefs.h"
8698 #include <sys/types.h>
8699 #include <sys/wait.h>
8701 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8704 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8709 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8712 if { (eval echo configure:8713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8714 ac_cv_header_sys_wait_h=yes
8716 echo "configure: failed program was:" >&5
8717 cat conftest.$ac_ext >&5
8719 ac_cv_header_sys_wait_h=no
8724 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8725 if test $ac_cv_header_sys_wait_h = yes; then
8726 cat >> confdefs.h <<\EOF
8727 #define HAVE_SYS_WAIT_H 1
8732 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8733 echo "configure:8734: checking POSIX termios" >&5
8734 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8735 echo $ac_n "(cached) $ac_c" 1>&6
8737 cat > conftest.$ac_ext <<EOF
8738 #line 8739 "configure"
8739 #include "confdefs.h"
8740 #include <sys/types.h>
8742 #include <termios.h>
8744 /* SunOS 4.0.3 has termios.h but not the library calls. */
8748 if { (eval echo configure:8749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8750 am_cv_sys_posix_termios=yes
8752 echo "configure: failed program was:" >&5
8753 cat conftest.$ac_ext >&5
8755 am_cv_sys_posix_termios=no
8760 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8763 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8764 echo "configure:8765: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8765 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8766 echo $ac_n "(cached) $ac_c" 1>&6
8768 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8770 gwinsz_in_termios_h=no
8771 if test $am_cv_sys_posix_termios = yes; then
8772 cat > conftest.$ac_ext <<EOF
8773 #line 8774 "configure"
8774 #include "confdefs.h"
8775 #include <sys/types.h>
8776 # include <termios.h>
8782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8783 egrep "yes" >/dev/null 2>&1; then
8785 gwinsz_in_termios_h=yes
8791 if test $gwinsz_in_termios_h = no; then
8792 cat > conftest.$ac_ext <<EOF
8793 #line 8794 "configure"
8794 #include "confdefs.h"
8795 #include <sys/types.h>
8796 # include <sys/ioctl.h>
8802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8803 egrep "yes" >/dev/null 2>&1; then
8805 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8813 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8814 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8815 cat >> confdefs.h <<\EOF
8816 #define GWINSZ_IN_SYS_IOCTL 1
8821 if test $am_cv_sys_posix_termios = yes ; then
8822 cat >> confdefs.h <<\EOF
8823 #define HAVE_POSIX_TERMIOS 1
8880 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8881 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8882 echo "configure:8883: checking for $ac_hdr" >&5
8883 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8884 echo $ac_n "(cached) $ac_c" 1>&6
8886 cat > conftest.$ac_ext <<EOF
8887 #line 8888 "configure"
8888 #include "confdefs.h"
8891 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8892 { (eval echo configure:8893: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8893 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8894 if test -z "$ac_err"; then
8896 eval "ac_cv_header_$ac_safe=yes"
8899 echo "configure: failed program was:" >&5
8900 cat conftest.$ac_ext >&5
8902 eval "ac_cv_header_$ac_safe=no"
8906 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8907 echo "$ac_t""yes" 1>&6
8908 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8909 cat >> confdefs.h <<EOF
8910 #define $ac_tr_hdr 1
8914 echo "$ac_t""no" 1>&6
8920 for ac_func in sigaction sigset
8922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8923 echo "configure:8924: checking for $ac_func" >&5
8924 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8925 echo $ac_n "(cached) $ac_c" 1>&6
8927 cat > conftest.$ac_ext <<EOF
8928 #line 8929 "configure"
8929 #include "confdefs.h"
8930 /* System header to define __stub macros and hopefully few prototypes,
8931 which can conflict with char $ac_func(); below. */
8933 /* Override any gcc2 internal prototype to avoid an error. */
8934 /* We use char because int might match the return type of a gcc2
8935 builtin and then its argument prototype would still apply. */
8941 /* The GNU C library defines this for functions which it implements
8942 to always fail with ENOSYS. Some functions are actually named
8943 something starting with __ and the normal name is an alias. */
8944 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8952 if { (eval echo configure:8953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8954 eval "ac_cv_func_$ac_func=yes"
8956 echo "configure: failed program was:" >&5
8957 cat conftest.$ac_ext >&5
8959 eval "ac_cv_func_$ac_func=no"
8964 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8965 echo "$ac_t""yes" 1>&6
8966 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8967 cat >> confdefs.h <<EOF
8968 #define $ac_tr_func 1
8972 echo "$ac_t""no" 1>&6
8977 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
8978 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
8979 echo "configure:8980: checking for sigset in -lV3" >&5
8980 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
8981 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8982 echo $ac_n "(cached) $ac_c" 1>&6
8984 ac_save_LIBS="$LIBS"
8986 cat > conftest.$ac_ext <<EOF
8987 #line 8988 "configure"
8988 #include "confdefs.h"
8989 /* Override any gcc2 internal prototype to avoid an error. */
8990 /* We use char because int might match the return type of a gcc2
8991 builtin and then its argument prototype would still apply. */
8998 if { (eval echo configure:8999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9000 eval "ac_cv_lib_$ac_lib_var=yes"
9002 echo "configure: failed program was:" >&5
9003 cat conftest.$ac_ext >&5
9005 eval "ac_cv_lib_$ac_lib_var=no"
9008 LIBS="$ac_save_LIBS"
9011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9012 echo "$ac_t""yes" 1>&6
9013 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9014 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9015 cat >> confdefs.h <<EOF
9016 #define $ac_tr_lib 1
9022 echo "$ac_t""no" 1>&6
9027 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
9028 echo $ac_n "checking for winsock""... $ac_c" 1>&6
9029 echo "configure:9030: checking for winsock" >&5
9030 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
9031 echo $ac_n "(cached) $ac_c" 1>&6
9034 for curlib in ws2_32 wsock32; do
9035 LIBS="$LIBS -l$curlib"
9036 cat > conftest.$ac_ext <<EOF
9037 #line 9038 "configure"
9038 #include "confdefs.h"
9039 #include <winsock.h>
9044 select(0,NULL,NULL,NULL,NULL);
9046 gethostname(NULL,0);
9050 if { (eval echo configure:9051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9054 echo "configure: failed program was:" >&5
9055 cat conftest.$ac_ext >&5
9061 if test $ol_cv_winsock = yes; then
9062 cat >> confdefs.h <<\EOF
9063 #define HAVE_WINSOCK 1
9066 ac_cv_func_socket=yes
9067 ac_cv_func_select=yes
9068 ac_cv_func_closesocket=yes
9069 ac_cv_func_gethostname=yes
9070 if test $curlib = ws2_32; then
9071 ol_cv_winsock=winsock2
9072 cat >> confdefs.h <<\EOF
9073 #define HAVE_WINSOCK2 1
9083 echo "$ac_t""$ol_cv_winsock" 1>&6
9087 echo $ac_n "checking for socket""... $ac_c" 1>&6
9088 echo "configure:9089: checking for socket" >&5
9089 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9090 echo $ac_n "(cached) $ac_c" 1>&6
9092 cat > conftest.$ac_ext <<EOF
9093 #line 9094 "configure"
9094 #include "confdefs.h"
9095 /* System header to define __stub macros and hopefully few prototypes,
9096 which can conflict with char socket(); below. */
9098 /* Override any gcc2 internal prototype to avoid an error. */
9099 /* We use char because int might match the return type of a gcc2
9100 builtin and then its argument prototype would still apply. */
9106 /* The GNU C library defines this for functions which it implements
9107 to always fail with ENOSYS. Some functions are actually named
9108 something starting with __ and the normal name is an alias. */
9109 #if defined (__stub_socket) || defined (__stub___socket)
9117 if { (eval echo configure:9118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9119 eval "ac_cv_func_socket=yes"
9121 echo "configure: failed program was:" >&5
9122 cat conftest.$ac_ext >&5
9124 eval "ac_cv_func_socket=no"
9129 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9130 echo "$ac_t""yes" 1>&6
9133 echo "$ac_t""no" 1>&6
9135 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9136 echo "configure:9137: checking for main in -lsocket" >&5
9137 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9138 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9139 echo $ac_n "(cached) $ac_c" 1>&6
9141 ac_save_LIBS="$LIBS"
9142 LIBS="-lsocket $LIBS"
9143 cat > conftest.$ac_ext <<EOF
9144 #line 9145 "configure"
9145 #include "confdefs.h"
9151 if { (eval echo configure:9152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9153 eval "ac_cv_lib_$ac_lib_var=yes"
9155 echo "configure: failed program was:" >&5
9156 cat conftest.$ac_ext >&5
9158 eval "ac_cv_lib_$ac_lib_var=no"
9161 LIBS="$ac_save_LIBS"
9164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9165 echo "$ac_t""yes" 1>&6
9166 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9167 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9168 cat >> confdefs.h <<EOF
9169 #define $ac_tr_lib 1
9172 LIBS="-lsocket $LIBS"
9175 echo "$ac_t""no" 1>&6
9178 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9179 echo "configure:9180: checking for main in -lnet" >&5
9180 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9181 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9182 echo $ac_n "(cached) $ac_c" 1>&6
9184 ac_save_LIBS="$LIBS"
9186 cat > conftest.$ac_ext <<EOF
9187 #line 9188 "configure"
9188 #include "confdefs.h"
9194 if { (eval echo configure:9195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9196 eval "ac_cv_lib_$ac_lib_var=yes"
9198 echo "configure: failed program was:" >&5
9199 cat conftest.$ac_ext >&5
9201 eval "ac_cv_lib_$ac_lib_var=no"
9204 LIBS="$ac_save_LIBS"
9207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9208 echo "$ac_t""yes" 1>&6
9209 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9210 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9211 cat >> confdefs.h <<EOF
9212 #define $ac_tr_lib 1
9218 echo "$ac_t""no" 1>&6
9221 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9222 echo "configure:9223: checking for main in -lnsl_s" >&5
9223 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9224 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9225 echo $ac_n "(cached) $ac_c" 1>&6
9227 ac_save_LIBS="$LIBS"
9228 LIBS="-lnsl_s $LIBS"
9229 cat > conftest.$ac_ext <<EOF
9230 #line 9231 "configure"
9231 #include "confdefs.h"
9237 if { (eval echo configure:9238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9239 eval "ac_cv_lib_$ac_lib_var=yes"
9241 echo "configure: failed program was:" >&5
9242 cat conftest.$ac_ext >&5
9244 eval "ac_cv_lib_$ac_lib_var=no"
9247 LIBS="$ac_save_LIBS"
9250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9251 echo "$ac_t""yes" 1>&6
9252 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9253 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9254 cat >> confdefs.h <<EOF
9255 #define $ac_tr_lib 1
9258 LIBS="-lnsl_s $LIBS"
9261 echo "$ac_t""no" 1>&6
9264 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9265 echo "configure:9266: checking for main in -lnsl" >&5
9266 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9267 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9268 echo $ac_n "(cached) $ac_c" 1>&6
9270 ac_save_LIBS="$LIBS"
9272 cat > conftest.$ac_ext <<EOF
9273 #line 9274 "configure"
9274 #include "confdefs.h"
9280 if { (eval echo configure:9281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9282 eval "ac_cv_lib_$ac_lib_var=yes"
9284 echo "configure: failed program was:" >&5
9285 cat conftest.$ac_ext >&5
9287 eval "ac_cv_lib_$ac_lib_var=no"
9290 LIBS="$ac_save_LIBS"
9293 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9294 echo "$ac_t""yes" 1>&6
9295 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9296 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9297 cat >> confdefs.h <<EOF
9298 #define $ac_tr_lib 1
9304 echo "$ac_t""no" 1>&6
9307 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9308 echo "configure:9309: checking for socket in -linet" >&5
9309 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9310 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9311 echo $ac_n "(cached) $ac_c" 1>&6
9313 ac_save_LIBS="$LIBS"
9315 cat > conftest.$ac_ext <<EOF
9316 #line 9317 "configure"
9317 #include "confdefs.h"
9318 /* Override any gcc2 internal prototype to avoid an error. */
9319 /* We use char because int might match the return type of a gcc2
9320 builtin and then its argument prototype would still apply. */
9327 if { (eval echo configure:9328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9329 eval "ac_cv_lib_$ac_lib_var=yes"
9331 echo "configure: failed program was:" >&5
9332 cat conftest.$ac_ext >&5
9334 eval "ac_cv_lib_$ac_lib_var=no"
9337 LIBS="$ac_save_LIBS"
9340 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9341 echo "$ac_t""yes" 1>&6
9342 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9343 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9344 cat >> confdefs.h <<EOF
9345 #define $ac_tr_lib 1
9351 echo "$ac_t""no" 1>&6
9354 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9355 echo "configure:9356: checking for main in -lgen" >&5
9356 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9357 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9358 echo $ac_n "(cached) $ac_c" 1>&6
9360 ac_save_LIBS="$LIBS"
9362 cat > conftest.$ac_ext <<EOF
9363 #line 9364 "configure"
9364 #include "confdefs.h"
9370 if { (eval echo configure:9371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9372 eval "ac_cv_lib_$ac_lib_var=yes"
9374 echo "configure: failed program was:" >&5
9375 cat conftest.$ac_ext >&5
9377 eval "ac_cv_lib_$ac_lib_var=no"
9380 LIBS="$ac_save_LIBS"
9383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9384 echo "$ac_t""yes" 1>&6
9385 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9386 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9387 cat >> confdefs.h <<EOF
9388 #define $ac_tr_lib 1
9394 echo "$ac_t""no" 1>&6
9401 echo $ac_n "checking for select""... $ac_c" 1>&6
9402 echo "configure:9403: checking for select" >&5
9403 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9404 echo $ac_n "(cached) $ac_c" 1>&6
9406 cat > conftest.$ac_ext <<EOF
9407 #line 9408 "configure"
9408 #include "confdefs.h"
9409 /* System header to define __stub macros and hopefully few prototypes,
9410 which can conflict with char select(); below. */
9412 /* Override any gcc2 internal prototype to avoid an error. */
9413 /* We use char because int might match the return type of a gcc2
9414 builtin and then its argument prototype would still apply. */
9420 /* The GNU C library defines this for functions which it implements
9421 to always fail with ENOSYS. Some functions are actually named
9422 something starting with __ and the normal name is an alias. */
9423 #if defined (__stub_select) || defined (__stub___select)
9431 if { (eval echo configure:9432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9433 eval "ac_cv_func_select=yes"
9435 echo "configure: failed program was:" >&5
9436 cat conftest.$ac_ext >&5
9438 eval "ac_cv_func_select=no"
9443 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9444 echo "$ac_t""yes" 1>&6
9447 echo "$ac_t""no" 1>&6
9448 { echo "configure: error: select() required." 1>&2; exit 1; }
9452 if test "${ac_cv_header_winsock_h}" != yes; then
9453 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9454 echo "configure:9455: checking types of arguments for select()" >&5
9455 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9456 echo $ac_n "(cached) $ac_c" 1>&6
9458 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9459 echo $ac_n "(cached) $ac_c" 1>&6
9461 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9462 echo $ac_n "(cached) $ac_c" 1>&6
9464 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9465 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9466 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9467 cat > conftest.$ac_ext <<EOF
9468 #line 9469 "configure"
9469 #include "confdefs.h"
9470 #ifdef HAVE_SYS_TYPES_H
9471 #include <sys/types.h>
9473 #ifdef HAVE_SYS_TIME_H
9474 #include <sys/time.h>
9476 #ifdef HAVE_SYS_SELECT_H
9477 #include <sys/select.h>
9479 #ifdef HAVE_SYS_SOCKET_H
9480 #include <sys/socket.h>
9482 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);
9487 if { (eval echo configure:9488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9489 ac_not_found=no ; break 3
9491 echo "configure: failed program was:" >&5
9492 cat conftest.$ac_ext >&5
9506 if test "$ac_not_found" = yes; then
9507 ac_cv_func_select_arg1=int
9508 ac_cv_func_select_arg234='int *'
9509 ac_cv_func_select_arg5='struct timeval *'
9511 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9512 cat >> confdefs.h <<EOF
9513 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9516 cat >> confdefs.h <<EOF
9517 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9520 cat >> confdefs.h <<EOF
9521 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9531 echo "configure:9532: checking for $ac_func" >&5
9532 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9533 echo $ac_n "(cached) $ac_c" 1>&6
9535 cat > conftest.$ac_ext <<EOF
9536 #line 9537 "configure"
9537 #include "confdefs.h"
9538 /* System header to define __stub macros and hopefully few prototypes,
9539 which can conflict with char $ac_func(); below. */
9541 /* Override any gcc2 internal prototype to avoid an error. */
9542 /* We use char because int might match the return type of a gcc2
9543 builtin and then its argument prototype would still apply. */
9549 /* The GNU C library defines this for functions which it implements
9550 to always fail with ENOSYS. Some functions are actually named
9551 something starting with __ and the normal name is an alias. */
9552 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9560 if { (eval echo configure:9561: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9562 eval "ac_cv_func_$ac_func=yes"
9564 echo "configure: failed program was:" >&5
9565 cat conftest.$ac_ext >&5
9567 eval "ac_cv_func_$ac_func=no"
9572 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9573 echo "$ac_t""yes" 1>&6
9574 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9575 cat >> confdefs.h <<EOF
9576 #define $ac_tr_func 1
9580 echo "$ac_t""no" 1>&6
9584 for ac_hdr in poll.h
9586 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9587 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9588 echo "configure:9589: checking for $ac_hdr" >&5
9589 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9590 echo $ac_n "(cached) $ac_c" 1>&6
9592 cat > conftest.$ac_ext <<EOF
9593 #line 9594 "configure"
9594 #include "confdefs.h"
9597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9598 { (eval echo configure:9599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9600 if test -z "$ac_err"; then
9602 eval "ac_cv_header_$ac_safe=yes"
9605 echo "configure: failed program was:" >&5
9606 cat conftest.$ac_ext >&5
9608 eval "ac_cv_header_$ac_safe=no"
9612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9613 echo "$ac_t""yes" 1>&6
9614 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9615 cat >> confdefs.h <<EOF
9616 #define $ac_tr_hdr 1
9620 echo "$ac_t""no" 1>&6
9625 for ac_hdr in sys/epoll.h
9627 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9628 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9629 echo "configure:9630: checking for $ac_hdr" >&5
9630 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9631 echo $ac_n "(cached) $ac_c" 1>&6
9633 cat > conftest.$ac_ext <<EOF
9634 #line 9635 "configure"
9635 #include "confdefs.h"
9638 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9639 { (eval echo configure:9640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9640 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9641 if test -z "$ac_err"; then
9643 eval "ac_cv_header_$ac_safe=yes"
9646 echo "configure: failed program was:" >&5
9647 cat conftest.$ac_ext >&5
9649 eval "ac_cv_header_$ac_safe=no"
9653 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9654 echo "$ac_t""yes" 1>&6
9655 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9656 cat >> confdefs.h <<EOF
9657 #define $ac_tr_hdr 1
9661 echo "$ac_t""no" 1>&6
9665 if test "${ac_cv_header_sys_epoll_h}" = yes; then
9666 echo $ac_n "checking for epoll system call""... $ac_c" 1>&6
9667 echo "configure:9668: checking for epoll system call" >&5
9668 if test "$cross_compiling" = yes; then
9669 echo "$ac_t""no" 1>&6
9671 cat > conftest.$ac_ext <<EOF
9672 #line 9673 "configure"
9673 #include "confdefs.h"
9674 int main(int argc, char *argv)
9676 int epfd = epoll_create(256);
9677 exit (epfd == -1 ? 1 : 0);
9680 if { (eval echo configure:9681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
9682 echo "$ac_t""yes" 1>&6
9683 cat >> confdefs.h <<\EOF
9684 #define HAVE_EPOLL 1
9688 echo "configure: failed program was:" >&5
9689 cat conftest.$ac_ext >&5
9691 echo "$ac_t""no" 1>&6
9699 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
9700 echo "configure:9701: checking declaration of sys_errlist" >&5
9701 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
9702 echo $ac_n "(cached) $ac_c" 1>&6
9705 cat > conftest.$ac_ext <<EOF
9706 #line 9707 "configure"
9707 #include "confdefs.h"
9710 #include <sys/types.h>
9716 char *c = (char *) *sys_errlist
9719 if { (eval echo configure:9720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9721 ol_cv_dcl_sys_errlist=yes
9722 ol_cv_have_sys_errlist=yes
9724 echo "configure: failed program was:" >&5
9725 cat conftest.$ac_ext >&5
9727 ol_cv_dcl_sys_errlist=no
9732 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
9734 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
9735 if test $ol_cv_dcl_sys_errlist = no ; then
9736 cat >> confdefs.h <<\EOF
9737 #define DECL_SYS_ERRLIST 1
9741 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
9742 echo "configure:9743: checking existence of sys_errlist" >&5
9743 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
9744 echo $ac_n "(cached) $ac_c" 1>&6
9747 cat > conftest.$ac_ext <<EOF
9748 #line 9749 "configure"
9749 #include "confdefs.h"
9752 char *c = (char *) *sys_errlist
9755 if { (eval echo configure:9756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9757 ol_cv_have_sys_errlist=yes
9759 echo "configure: failed program was:" >&5
9760 cat conftest.$ac_ext >&5
9762 ol_cv_have_sys_errlist=no
9767 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
9769 if test $ol_cv_have_sys_errlist = yes ; then
9770 cat >> confdefs.h <<\EOF
9771 #define HAVE_SYS_ERRLIST 1
9775 for ac_func in strerror strerror_r
9777 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9778 echo "configure:9779: checking for $ac_func" >&5
9779 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9780 echo $ac_n "(cached) $ac_c" 1>&6
9782 cat > conftest.$ac_ext <<EOF
9783 #line 9784 "configure"
9784 #include "confdefs.h"
9785 /* System header to define __stub macros and hopefully few prototypes,
9786 which can conflict with char $ac_func(); below. */
9788 /* Override any gcc2 internal prototype to avoid an error. */
9789 /* We use char because int might match the return type of a gcc2
9790 builtin and then its argument prototype would still apply. */
9796 /* The GNU C library defines this for functions which it implements
9797 to always fail with ENOSYS. Some functions are actually named
9798 something starting with __ and the normal name is an alias. */
9799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9807 if { (eval echo configure:9808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9809 eval "ac_cv_func_$ac_func=yes"
9811 echo "configure: failed program was:" >&5
9812 cat conftest.$ac_ext >&5
9814 eval "ac_cv_func_$ac_func=no"
9819 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9820 echo "$ac_t""yes" 1>&6
9821 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9822 cat >> confdefs.h <<EOF
9823 #define $ac_tr_func 1
9827 echo "$ac_t""no" 1>&6
9831 ol_cv_func_strerror_r=no
9832 if test "${ac_cv_func_strerror_r}" = yes ; then
9833 echo $ac_n "checking non-posix strerror_r""... $ac_c" 1>&6
9834 echo "configure:9835: checking non-posix strerror_r" >&5
9835 if eval "test \"\${ol_cv_nonposix_strerror_r+set}\" = set"; then
9836 echo $ac_n "(cached) $ac_c" 1>&6
9839 cat > conftest.$ac_ext <<EOF
9840 #line 9841 "configure"
9841 #include "confdefs.h"
9844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9845 egrep "strerror_r" >/dev/null 2>&1; then
9847 ol_decl_strerror_r=yes
9850 ol_decl_strerror_r=no
9854 if test $ol_decl_strerror_r = yes ; then
9855 cat > conftest.$ac_ext <<EOF
9856 #line 9857 "configure"
9857 #include "confdefs.h"
9860 /* from autoconf 2.59 */
9862 char x = *strerror_r (0, buf, sizeof buf);
9863 char *p = strerror_r (0, buf, sizeof buf);
9867 if { (eval echo configure:9868: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9869 ol_cv_nonposix_strerror_r=yes
9871 echo "configure: failed program was:" >&5
9872 cat conftest.$ac_ext >&5
9874 ol_cv_nonposix_strerror_r=no
9878 if test "$cross_compiling" = yes; then
9879 ol_cv_nonposix_strerror=no
9881 cat > conftest.$ac_ext <<EOF
9882 #line 9883 "configure"
9883 #include "confdefs.h"
9888 strerror_r( 1, buf, sizeof buf );
9889 exit( buf[0] == 0 );
9893 if { (eval echo configure:9894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
9895 ol_cv_nonposix_strerror_r=yes
9897 echo "configure: failed program was:" >&5
9898 cat conftest.$ac_ext >&5
9900 ol_cv_nonposix_strerror=no
9909 echo "$ac_t""$ol_cv_nonposix_strerror_r" 1>&6
9910 if test $ol_cv_nonposix_strerror_r = yes ; then
9911 cat >> confdefs.h <<\EOF
9912 #define HAVE_NONPOSIX_STRERROR_R 1
9917 elif test "${ac_cv_func_strerror}" = no ; then
9918 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
9919 echo "configure:9920: checking declaration of sys_errlist" >&5
9920 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
9921 echo $ac_n "(cached) $ac_c" 1>&6
9924 cat > conftest.$ac_ext <<EOF
9925 #line 9926 "configure"
9926 #include "confdefs.h"
9929 #include <sys/types.h>
9935 char *c = (char *) *sys_errlist
9938 if { (eval echo configure:9939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9940 ol_cv_dcl_sys_errlist=yes
9941 ol_cv_have_sys_errlist=yes
9943 echo "configure: failed program was:" >&5
9944 cat conftest.$ac_ext >&5
9946 ol_cv_dcl_sys_errlist=no
9951 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
9953 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
9954 if test $ol_cv_dcl_sys_errlist = no ; then
9955 cat >> confdefs.h <<\EOF
9956 #define DECL_SYS_ERRLIST 1
9960 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
9961 echo "configure:9962: checking existence of sys_errlist" >&5
9962 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
9963 echo $ac_n "(cached) $ac_c" 1>&6
9966 cat > conftest.$ac_ext <<EOF
9967 #line 9968 "configure"
9968 #include "confdefs.h"
9971 char *c = (char *) *sys_errlist
9974 if { (eval echo configure:9975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9976 ol_cv_have_sys_errlist=yes
9978 echo "configure: failed program was:" >&5
9979 cat conftest.$ac_ext >&5
9981 ol_cv_have_sys_errlist=no
9986 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
9988 if test $ol_cv_have_sys_errlist = yes ; then
9989 cat >> confdefs.h <<\EOF
9990 #define HAVE_SYS_ERRLIST 1
9998 for ac_hdr in regex.h
10000 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10001 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10002 echo "configure:10003: checking for $ac_hdr" >&5
10003 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10004 echo $ac_n "(cached) $ac_c" 1>&6
10006 cat > conftest.$ac_ext <<EOF
10007 #line 10008 "configure"
10008 #include "confdefs.h"
10011 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10012 { (eval echo configure:10013: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10013 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10014 if test -z "$ac_err"; then
10016 eval "ac_cv_header_$ac_safe=yes"
10019 echo "configure: failed program was:" >&5
10020 cat conftest.$ac_ext >&5
10022 eval "ac_cv_header_$ac_safe=no"
10026 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10027 echo "$ac_t""yes" 1>&6
10028 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10029 cat >> confdefs.h <<EOF
10030 #define $ac_tr_hdr 1
10034 echo "$ac_t""no" 1>&6
10038 if test "$ac_cv_header_regex_h" != yes ; then
10039 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
10042 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
10043 echo "configure:10044: checking for library containing regfree" >&5
10044 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
10045 echo $ac_n "(cached) $ac_c" 1>&6
10047 ac_func_search_save_LIBS="$LIBS"
10048 ac_cv_search_regfree="no"
10049 cat > conftest.$ac_ext <<EOF
10050 #line 10051 "configure"
10051 #include "confdefs.h"
10052 /* Override any gcc2 internal prototype to avoid an error. */
10053 /* We use char because int might match the return type of a gcc2
10054 builtin and then its argument prototype would still apply. */
10061 if { (eval echo configure:10062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10063 ac_cv_search_regfree="none required"
10065 echo "configure: failed program was:" >&5
10066 cat conftest.$ac_ext >&5
10069 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
10070 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10071 cat > conftest.$ac_ext <<EOF
10072 #line 10073 "configure"
10073 #include "confdefs.h"
10074 /* Override any gcc2 internal prototype to avoid an error. */
10075 /* We use char because int might match the return type of a gcc2
10076 builtin and then its argument prototype would still apply. */
10083 if { (eval echo configure:10084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10085 ac_cv_search_regfree="-l$ac_lib"
10088 echo "configure: failed program was:" >&5
10089 cat conftest.$ac_ext >&5
10093 LIBS="$ac_func_search_save_LIBS"
10096 echo "$ac_t""$ac_cv_search_regfree" 1>&6
10097 if test "$ac_cv_search_regfree" != "no"; then
10098 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
10101 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
10105 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
10106 echo "configure:10107: checking for compatible POSIX regex" >&5
10107 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
10108 echo $ac_n "(cached) $ac_c" 1>&6
10111 if test "$cross_compiling" = yes; then
10112 ol_cv_c_posix_regex=cross
10114 cat > conftest.$ac_ext <<EOF
10115 #line 10116 "configure"
10116 #include "confdefs.h"
10118 #include <sys/types.h>
10120 static char *pattern, *string;
10128 if(regcomp(&re, pattern, 0)) {
10132 string = "ALL MATCH";
10134 rc = regexec(&re, string, 0, (void*)0, 0);
10141 if { (eval echo configure:10142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
10143 ol_cv_c_posix_regex=yes
10145 echo "configure: failed program was:" >&5
10146 cat conftest.$ac_ext >&5
10148 ol_cv_c_posix_regex=no
10155 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
10157 if test "$ol_cv_c_posix_regex" = no ; then
10158 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
10163 for ac_hdr in sys/uuid.h
10165 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10166 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10167 echo "configure:10168: checking for $ac_hdr" >&5
10168 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10169 echo $ac_n "(cached) $ac_c" 1>&6
10171 cat > conftest.$ac_ext <<EOF
10172 #line 10173 "configure"
10173 #include "confdefs.h"
10176 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10177 { (eval echo configure:10178: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10178 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10179 if test -z "$ac_err"; then
10181 eval "ac_cv_header_$ac_safe=yes"
10184 echo "configure: failed program was:" >&5
10185 cat conftest.$ac_ext >&5
10187 eval "ac_cv_header_$ac_safe=no"
10191 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10192 echo "$ac_t""yes" 1>&6
10193 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10194 cat >> confdefs.h <<EOF
10195 #define $ac_tr_hdr 1
10199 echo "$ac_t""no" 1>&6
10203 if test $ac_cv_header_sys_uuid_h = yes ; then
10206 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
10207 echo "configure:10208: checking for library containing uuid_to_str" >&5
10208 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
10209 echo $ac_n "(cached) $ac_c" 1>&6
10211 ac_func_search_save_LIBS="$LIBS"
10212 ac_cv_search_uuid_to_str="no"
10213 cat > conftest.$ac_ext <<EOF
10214 #line 10215 "configure"
10215 #include "confdefs.h"
10216 /* Override any gcc2 internal prototype to avoid an error. */
10217 /* We use char because int might match the return type of a gcc2
10218 builtin and then its argument prototype would still apply. */
10219 char uuid_to_str();
10225 if { (eval echo configure:10226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10227 ac_cv_search_uuid_to_str="none required"
10229 echo "configure: failed program was:" >&5
10230 cat conftest.$ac_ext >&5
10233 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
10234 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10235 cat > conftest.$ac_ext <<EOF
10236 #line 10237 "configure"
10237 #include "confdefs.h"
10238 /* Override any gcc2 internal prototype to avoid an error. */
10239 /* We use char because int might match the return type of a gcc2
10240 builtin and then its argument prototype would still apply. */
10241 char uuid_to_str();
10247 if { (eval echo configure:10248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10249 ac_cv_search_uuid_to_str="-l$ac_lib"
10252 echo "configure: failed program was:" >&5
10253 cat conftest.$ac_ext >&5
10257 LIBS="$ac_func_search_save_LIBS"
10260 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
10261 if test "$ac_cv_search_uuid_to_str" != "no"; then
10262 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
10269 if test have_uuid = yes ; then
10270 cat >> confdefs.h <<\EOF
10271 #define HAVE_UUID_TO_STR 1
10275 test "$ac_cv_search_uuid_to_str" = "none required" || \
10276 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
10280 if test $have_uuid = no ; then
10281 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
10282 echo "configure:10283: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
10284 LIBS="$LIBS -lrpcrt4"
10285 cat > conftest.$ac_ext <<EOF
10286 #line 10287 "configure"
10287 #include "confdefs.h"
10289 int __stdcall UuidCreate(void *);
10290 int __stdcall UuidToStringA(void *,void **);
10295 UuidToStringA(0,0);
10299 if { (eval echo configure:10300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10303 echo "configure: failed program was:" >&5
10304 cat conftest.$ac_ext >&5
10309 if test $need_rpcrt = yes; then
10310 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
10313 echo "$ac_t""$need_rpcrt" 1>&6
10316 ol_cv_lib_resolver=no
10317 if test $ol_cv_lib_resolver = no ; then
10318 echo $ac_n "checking for resolver link (default)""... $ac_c" 1>&6
10319 echo "configure:10320: checking for resolver link (default)" >&5
10320 if eval "test \"\${ol_cv_resolver_none+set}\" = set"; then
10321 echo $ac_n "(cached) $ac_c" 1>&6
10326 LIBS="$ol_RESOLVER_LIB $LIBS"
10328 cat > conftest.$ac_ext <<EOF
10329 #line 10330 "configure"
10330 #include "confdefs.h"
10332 #ifdef HAVE_SYS_TYPES_H
10333 # include <sys/types.h>
10335 #include <netinet/in.h>
10336 #ifdef HAVE_ARPA_NAMESER_H
10337 # include <arpa/nameser.h>
10339 #ifdef HAVE_RESOLV_H
10340 # include <resolv.h>
10346 char *request = NULL;
10347 unsigned char reply[64*1024];
10348 unsigned char host[64*1024];
10352 /* Bind 8/9 interface */
10353 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
10355 /* Bind 4 interface */
10359 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
10363 /* Bind 8/9 interface */
10365 #elif defined(HFIXEDSZ)
10366 /* Bind 4 interface w/ HFIXEDSZ */
10369 /* Bind 4 interface w/o HFIXEDSZ */
10370 p += sizeof(HEADER);
10372 status = dn_expand( reply, reply+len, p, host, sizeof(host));
10376 if { (eval echo configure:10377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10378 ol_cv_resolver_none=yes
10380 echo "configure: failed program was:" >&5
10381 cat conftest.$ac_ext >&5
10383 ol_cv_resolver_none=no
10391 echo "$ac_t""$ol_cv_resolver_none" 1>&6
10393 if test $ol_cv_resolver_none = yes ; then
10394 ol_cv_lib_resolver=yes
10398 if test $ol_cv_lib_resolver = no ; then
10399 echo $ac_n "checking for resolver link (-lresolv)""... $ac_c" 1>&6
10400 echo "configure:10401: checking for resolver link (-lresolv)" >&5
10401 if eval "test \"\${ol_cv_resolver_resolv+set}\" = set"; then
10402 echo $ac_n "(cached) $ac_c" 1>&6
10405 ol_RESOLVER_LIB=-lresolv
10407 LIBS="$ol_RESOLVER_LIB $LIBS"
10409 cat > conftest.$ac_ext <<EOF
10410 #line 10411 "configure"
10411 #include "confdefs.h"
10413 #ifdef HAVE_SYS_TYPES_H
10414 # include <sys/types.h>
10416 #include <netinet/in.h>
10417 #ifdef HAVE_ARPA_NAMESER_H
10418 # include <arpa/nameser.h>
10420 #ifdef HAVE_RESOLV_H
10421 # include <resolv.h>
10427 char *request = NULL;
10428 unsigned char reply[64*1024];
10429 unsigned char host[64*1024];
10433 /* Bind 8/9 interface */
10434 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
10436 /* Bind 4 interface */
10440 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
10444 /* Bind 8/9 interface */
10446 #elif defined(HFIXEDSZ)
10447 /* Bind 4 interface w/ HFIXEDSZ */
10450 /* Bind 4 interface w/o HFIXEDSZ */
10451 p += sizeof(HEADER);
10453 status = dn_expand( reply, reply+len, p, host, sizeof(host));
10457 if { (eval echo configure:10458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10459 ol_cv_resolver_resolv=yes
10461 echo "configure: failed program was:" >&5
10462 cat conftest.$ac_ext >&5
10464 ol_cv_resolver_resolv=no
10472 echo "$ac_t""$ol_cv_resolver_resolv" 1>&6
10474 if test $ol_cv_resolver_resolv = yes ; then
10475 ol_cv_lib_resolver=-lresolv
10479 if test $ol_cv_lib_resolver = no ; then
10480 echo $ac_n "checking for resolver link (-lbind)""... $ac_c" 1>&6
10481 echo "configure:10482: checking for resolver link (-lbind)" >&5
10482 if eval "test \"\${ol_cv_resolver_bind+set}\" = set"; then
10483 echo $ac_n "(cached) $ac_c" 1>&6
10486 ol_RESOLVER_LIB=-lbind
10488 LIBS="$ol_RESOLVER_LIB $LIBS"
10490 cat > conftest.$ac_ext <<EOF
10491 #line 10492 "configure"
10492 #include "confdefs.h"
10494 #ifdef HAVE_SYS_TYPES_H
10495 # include <sys/types.h>
10497 #include <netinet/in.h>
10498 #ifdef HAVE_ARPA_NAMESER_H
10499 # include <arpa/nameser.h>
10501 #ifdef HAVE_RESOLV_H
10502 # include <resolv.h>
10508 char *request = NULL;
10509 unsigned char reply[64*1024];
10510 unsigned char host[64*1024];
10514 /* Bind 8/9 interface */
10515 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
10517 /* Bind 4 interface */
10521 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
10525 /* Bind 8/9 interface */
10527 #elif defined(HFIXEDSZ)
10528 /* Bind 4 interface w/ HFIXEDSZ */
10531 /* Bind 4 interface w/o HFIXEDSZ */
10532 p += sizeof(HEADER);
10534 status = dn_expand( reply, reply+len, p, host, sizeof(host));
10538 if { (eval echo configure:10539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10540 ol_cv_resolver_bind=yes
10542 echo "configure: failed program was:" >&5
10543 cat conftest.$ac_ext >&5
10545 ol_cv_resolver_bind=no
10553 echo "$ac_t""$ol_cv_resolver_bind" 1>&6
10555 if test $ol_cv_resolver_bind = yes ; then
10556 ol_cv_lib_resolver=-lbind
10563 if test "$ol_cv_lib_resolver" != no ; then
10564 cat >> confdefs.h <<\EOF
10565 #define HAVE_RES_QUERY 1
10569 if test "$ol_enable_dnssrv" != no ; then
10573 if test "$ol_cv_lib_resolver" != yes ; then
10574 LIBS="$ol_cv_lib_resolver $LIBS"
10578 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
10579 if test "$ol_link_dnssrv" = no ; then
10580 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10583 ol_enable_dnssrv=no
10586 for ac_func in hstrerror
10588 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10589 echo "configure:10590: checking for $ac_func" >&5
10590 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10591 echo $ac_n "(cached) $ac_c" 1>&6
10593 cat > conftest.$ac_ext <<EOF
10594 #line 10595 "configure"
10595 #include "confdefs.h"
10596 /* System header to define __stub macros and hopefully few prototypes,
10597 which can conflict with char $ac_func(); below. */
10598 #include <assert.h>
10599 /* Override any gcc2 internal prototype to avoid an error. */
10600 /* We use char because int might match the return type of a gcc2
10601 builtin and then its argument prototype would still apply. */
10607 /* The GNU C library defines this for functions which it implements
10608 to always fail with ENOSYS. Some functions are actually named
10609 something starting with __ and the normal name is an alias. */
10610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10618 if { (eval echo configure:10619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10620 eval "ac_cv_func_$ac_func=yes"
10622 echo "configure: failed program was:" >&5
10623 cat conftest.$ac_ext >&5
10625 eval "ac_cv_func_$ac_func=no"
10630 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10631 echo "$ac_t""yes" 1>&6
10632 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10633 cat >> confdefs.h <<EOF
10634 #define $ac_tr_func 1
10638 echo "$ac_t""no" 1>&6
10643 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
10645 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10646 echo "configure:10647: checking for $ac_func" >&5
10647 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10648 echo $ac_n "(cached) $ac_c" 1>&6
10650 cat > conftest.$ac_ext <<EOF
10651 #line 10652 "configure"
10652 #include "confdefs.h"
10653 /* System header to define __stub macros and hopefully few prototypes,
10654 which can conflict with char $ac_func(); below. */
10655 #include <assert.h>
10656 /* Override any gcc2 internal prototype to avoid an error. */
10657 /* We use char because int might match the return type of a gcc2
10658 builtin and then its argument prototype would still apply. */
10664 /* The GNU C library defines this for functions which it implements
10665 to always fail with ENOSYS. Some functions are actually named
10666 something starting with __ and the normal name is an alias. */
10667 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10675 if { (eval echo configure:10676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10677 eval "ac_cv_func_$ac_func=yes"
10679 echo "configure: failed program was:" >&5
10680 cat conftest.$ac_ext >&5
10682 eval "ac_cv_func_$ac_func=no"
10687 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10688 echo "$ac_t""yes" 1>&6
10689 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10690 cat >> confdefs.h <<EOF
10691 #define $ac_tr_func 1
10695 echo "$ac_t""no" 1>&6
10701 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10702 if test $ol_enable_ipv6 = yes ; then
10703 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10705 elif test $ol_enable_ipv6 != no ; then
10706 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10707 echo "configure:10708: checking INET6_ADDRSTRLEN" >&5
10708 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10709 echo $ac_n "(cached) $ac_c" 1>&6
10712 cat > conftest.$ac_ext <<EOF
10713 #line 10714 "configure"
10714 #include "confdefs.h"
10716 # include <netinet/in.h>
10717 # ifdef INET6_ADDRSTRLEN
10718 __has_inet6_addrstrlen__;
10722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10723 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10725 ol_cv_inet6_addrstrlen=yes
10728 ol_cv_inet6_addrstrlen=no
10734 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10737 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10738 echo "configure:10739: checking struct sockaddr_storage" >&5
10739 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10740 echo $ac_n "(cached) $ac_c" 1>&6
10743 cat > conftest.$ac_ext <<EOF
10744 #line 10745 "configure"
10745 #include "confdefs.h"
10747 #include <sys/types.h>
10748 #include <sys/socket.h>
10752 struct sockaddr_storage ss;
10756 if { (eval echo configure:10757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10758 ol_cv_struct_sockaddr_storage=yes
10760 echo "configure: failed program was:" >&5
10761 cat conftest.$ac_ext >&5
10763 ol_cv_struct_sockaddr_storage=no
10768 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10770 if test $ol_cv_inet6_addrstrlen = yes \
10771 -a $ol_cv_struct_sockaddr_storage = yes ; then
10773 elif test $ol_enable_ipv6 = yes \
10774 -a $ol_cv_inet6_addrstrlen = no ; then
10775 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10776 elif test $ol_enable_ipv6 = yes \
10777 -a $ol_cv_struct_sockaddr_storage = no ; then
10778 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10782 if test $ol_enable_local != no ; then
10783 for ac_hdr in sys/un.h
10785 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10786 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10787 echo "configure:10788: checking for $ac_hdr" >&5
10788 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10789 echo $ac_n "(cached) $ac_c" 1>&6
10791 cat > conftest.$ac_ext <<EOF
10792 #line 10793 "configure"
10793 #include "confdefs.h"
10796 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10797 { (eval echo configure:10798: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10798 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10799 if test -z "$ac_err"; then
10801 eval "ac_cv_header_$ac_safe=yes"
10804 echo "configure: failed program was:" >&5
10805 cat conftest.$ac_ext >&5
10807 eval "ac_cv_header_$ac_safe=no"
10811 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10812 echo "$ac_t""yes" 1>&6
10813 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10814 cat >> confdefs.h <<EOF
10815 #define $ac_tr_hdr 1
10819 echo "$ac_t""no" 1>&6
10824 if test $ol_enable_local = auto ; then
10825 ol_enable_local=$ac_cv_header_sys_un_h
10826 elif test $ac_cv_header_sys_un_h = no ; then
10827 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10835 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10836 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10837 -o $ol_with_kerberos = k425 ; then
10839 for ac_hdr in krb5.h
10841 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10842 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10843 echo "configure:10844: checking for $ac_hdr" >&5
10844 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10845 echo $ac_n "(cached) $ac_c" 1>&6
10847 cat > conftest.$ac_ext <<EOF
10848 #line 10849 "configure"
10849 #include "confdefs.h"
10852 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10853 { (eval echo configure:10854: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10854 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10855 if test -z "$ac_err"; then
10857 eval "ac_cv_header_$ac_safe=yes"
10860 echo "configure: failed program was:" >&5
10861 cat conftest.$ac_ext >&5
10863 eval "ac_cv_header_$ac_safe=no"
10867 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10868 echo "$ac_t""yes" 1>&6
10869 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10870 cat >> confdefs.h <<EOF
10871 #define $ac_tr_hdr 1
10875 echo "$ac_t""no" 1>&6
10880 if test $ac_cv_header_krb5_h = yes ; then
10881 for ac_hdr in heim_err.h
10883 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10884 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10885 echo "configure:10886: checking for $ac_hdr" >&5
10886 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10887 echo $ac_n "(cached) $ac_c" 1>&6
10889 cat > conftest.$ac_ext <<EOF
10890 #line 10891 "configure"
10891 #include "confdefs.h"
10894 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10895 { (eval echo configure:10896: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10896 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10897 if test -z "$ac_err"; then
10899 eval "ac_cv_header_$ac_safe=yes"
10902 echo "configure: failed program was:" >&5
10903 cat conftest.$ac_ext >&5
10905 eval "ac_cv_header_$ac_safe=no"
10909 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10910 echo "$ac_t""yes" 1>&6
10911 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10912 cat >> confdefs.h <<EOF
10913 #define $ac_tr_hdr 1
10917 echo "$ac_t""no" 1>&6
10921 if test $ac_cv_header_heim_err_h = yes ; then
10927 if test $krb5_impl = mit; then
10928 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10929 echo "configure:10930: checking for main in -lk5crypto" >&5
10930 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10931 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10932 echo $ac_n "(cached) $ac_c" 1>&6
10934 ac_save_LIBS="$LIBS"
10935 LIBS="-lk5crypto $LIBS"
10936 cat > conftest.$ac_ext <<EOF
10937 #line 10938 "configure"
10938 #include "confdefs.h"
10944 if { (eval echo configure:10945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10946 eval "ac_cv_lib_$ac_lib_var=yes"
10948 echo "configure: failed program was:" >&5
10949 cat conftest.$ac_ext >&5
10951 eval "ac_cv_lib_$ac_lib_var=no"
10954 LIBS="$ac_save_LIBS"
10957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10958 echo "$ac_t""yes" 1>&6
10959 krb5crypto=k5crypto
10961 echo "$ac_t""no" 1>&6
10966 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10967 echo "configure:10968: checking for main in -lkrb5" >&5
10968 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10969 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10970 echo $ac_n "(cached) $ac_c" 1>&6
10972 ac_save_LIBS="$LIBS"
10973 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10974 cat > conftest.$ac_ext <<EOF
10975 #line 10976 "configure"
10976 #include "confdefs.h"
10982 if { (eval echo configure:10983: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10984 eval "ac_cv_lib_$ac_lib_var=yes"
10986 echo "configure: failed program was:" >&5
10987 cat conftest.$ac_ext >&5
10989 eval "ac_cv_lib_$ac_lib_var=no"
10992 LIBS="$ac_save_LIBS"
10995 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10996 echo "$ac_t""yes" 1>&6
10998 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
11000 echo "$ac_t""no" 1>&6
11005 elif test $krb5_impl = heimdal; then
11006 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
11007 echo "configure:11008: checking for main in -ldes" >&5
11008 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
11009 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11010 echo $ac_n "(cached) $ac_c" 1>&6
11012 ac_save_LIBS="$LIBS"
11014 cat > conftest.$ac_ext <<EOF
11015 #line 11016 "configure"
11016 #include "confdefs.h"
11022 if { (eval echo configure:11023: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11024 eval "ac_cv_lib_$ac_lib_var=yes"
11026 echo "configure: failed program was:" >&5
11027 cat conftest.$ac_ext >&5
11029 eval "ac_cv_lib_$ac_lib_var=no"
11032 LIBS="$ac_save_LIBS"
11035 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11036 echo "$ac_t""yes" 1>&6
11039 echo "$ac_t""no" 1>&6
11044 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
11045 echo "configure:11046: checking for main in -lkrb5" >&5
11046 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
11047 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11048 echo $ac_n "(cached) $ac_c" 1>&6
11050 ac_save_LIBS="$LIBS"
11051 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
11052 cat > conftest.$ac_ext <<EOF
11053 #line 11054 "configure"
11054 #include "confdefs.h"
11060 if { (eval echo configure:11061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11062 eval "ac_cv_lib_$ac_lib_var=yes"
11064 echo "configure: failed program was:" >&5
11065 cat conftest.$ac_ext >&5
11067 eval "ac_cv_lib_$ac_lib_var=no"
11070 LIBS="$ac_save_LIBS"
11073 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11074 echo "$ac_t""yes" 1>&6
11076 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
11078 echo "$ac_t""no" 1>&6
11083 cat >> confdefs.h <<\EOF
11084 #define HAVE_HEIMDAL_KERBEROS 1
11090 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
11093 if test $have_krb5 = yes ; then
11096 cat >> confdefs.h <<\EOF
11097 #define HAVE_KRB5 1
11101 if test $ol_with_kerberos = k5only ; then
11102 ol_with_kerberos=found
11105 elif test $ol_with_kerberos != auto ; then
11106 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
11112 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
11113 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
11115 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
11117 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11118 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11119 echo "configure:11120: checking for $ac_hdr" >&5
11120 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11121 echo $ac_n "(cached) $ac_c" 1>&6
11123 cat > conftest.$ac_ext <<EOF
11124 #line 11125 "configure"
11125 #include "confdefs.h"
11128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11129 { (eval echo configure:11130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11131 if test -z "$ac_err"; then
11133 eval "ac_cv_header_$ac_safe=yes"
11136 echo "configure: failed program was:" >&5
11137 cat conftest.$ac_ext >&5
11139 eval "ac_cv_header_$ac_safe=no"
11143 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11144 echo "$ac_t""yes" 1>&6
11145 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11146 cat >> confdefs.h <<EOF
11147 #define $ac_tr_hdr 1
11151 echo "$ac_t""no" 1>&6
11156 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
11157 if test $krb5_impl = mit; then
11158 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
11159 echo "configure:11160: checking for main in -lkrb4" >&5
11160 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
11161 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11162 echo $ac_n "(cached) $ac_c" 1>&6
11164 ac_save_LIBS="$LIBS"
11165 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
11166 cat > conftest.$ac_ext <<EOF
11167 #line 11168 "configure"
11168 #include "confdefs.h"
11174 if { (eval echo configure:11175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11176 eval "ac_cv_lib_$ac_lib_var=yes"
11178 echo "configure: failed program was:" >&5
11179 cat conftest.$ac_ext >&5
11181 eval "ac_cv_lib_$ac_lib_var=no"
11184 LIBS="$ac_save_LIBS"
11187 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11188 echo "$ac_t""yes" 1>&6
11190 KRB4_LIBS="-lkrb4 -ldes425"
11192 echo "$ac_t""no" 1>&6
11197 elif test $krb5_impl = heimdal; then
11198 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
11199 echo "configure:11200: checking for main in -lkrb4" >&5
11200 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
11201 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11202 echo $ac_n "(cached) $ac_c" 1>&6
11204 ac_save_LIBS="$LIBS"
11205 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
11206 cat > conftest.$ac_ext <<EOF
11207 #line 11208 "configure"
11208 #include "confdefs.h"
11214 if { (eval echo configure:11215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11216 eval "ac_cv_lib_$ac_lib_var=yes"
11218 echo "configure: failed program was:" >&5
11219 cat conftest.$ac_ext >&5
11221 eval "ac_cv_lib_$ac_lib_var=no"
11224 LIBS="$ac_save_LIBS"
11227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11228 echo "$ac_t""yes" 1>&6
11232 echo "$ac_t""no" 1>&6
11239 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
11242 if test $have_k425 = yes ; then
11243 ol_with_kerberos=found
11246 cat >> confdefs.h <<\EOF
11247 #define HAVE_KRB425 1
11250 cat >> confdefs.h <<\EOF
11251 #define HAVE_KRB4 1
11255 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
11256 echo "configure:11257: checking for des_debug in Kerberos libraries" >&5
11257 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
11258 echo $ac_n "(cached) $ac_c" 1>&6
11262 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
11263 cat > conftest.$ac_ext <<EOF
11264 #line 11265 "configure"
11265 #include "confdefs.h"
11267 #include <kerberosIV/krb.h>
11268 #include <kerberosIV/des.h>
11269 extern int des_debug;
11277 if { (eval echo configure:11278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11279 ol_cv_var_des_debug=yes
11281 echo "configure: failed program was:" >&5
11282 cat conftest.$ac_ext >&5
11284 ol_cv_var_des_debug=no
11291 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
11293 if test $ol_cv_var_des_debug = yes ; then
11294 cat >> confdefs.h <<\EOF
11295 #define HAVE_DES_DEBUG 1
11305 if test $ol_link_krb5 = yes ; then
11306 ol_with_kerberos=found
11309 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
11310 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
11312 for ac_hdr in krb.h des.h krb-archaeology.h
11314 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11315 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11316 echo "configure:11317: checking for $ac_hdr" >&5
11317 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11318 echo $ac_n "(cached) $ac_c" 1>&6
11320 cat > conftest.$ac_ext <<EOF
11321 #line 11322 "configure"
11322 #include "confdefs.h"
11325 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11326 { (eval echo configure:11327: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11327 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11328 if test -z "$ac_err"; then
11330 eval "ac_cv_header_$ac_safe=yes"
11333 echo "configure: failed program was:" >&5
11334 cat conftest.$ac_ext >&5
11336 eval "ac_cv_header_$ac_safe=no"
11340 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11341 echo "$ac_t""yes" 1>&6
11342 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11343 cat >> confdefs.h <<EOF
11344 #define $ac_tr_hdr 1
11348 echo "$ac_t""no" 1>&6
11353 if test $ac_cv_header_krb_h = yes ; then
11354 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
11355 echo "configure:11356: checking for main in -lkrb" >&5
11356 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
11357 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11358 echo $ac_n "(cached) $ac_c" 1>&6
11360 ac_save_LIBS="$LIBS"
11361 LIBS="-lkrb -ldes $LIBS"
11362 cat > conftest.$ac_ext <<EOF
11363 #line 11364 "configure"
11364 #include "confdefs.h"
11370 if { (eval echo configure:11371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11372 eval "ac_cv_lib_$ac_lib_var=yes"
11374 echo "configure: failed program was:" >&5
11375 cat conftest.$ac_ext >&5
11377 eval "ac_cv_lib_$ac_lib_var=no"
11380 LIBS="$ac_save_LIBS"
11383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11384 echo "$ac_t""yes" 1>&6
11387 echo "$ac_t""no" 1>&6
11392 if test $have_k4 = yes ; then
11393 ol_with_kerberos=found
11396 cat >> confdefs.h <<\EOF
11397 #define HAVE_KRB4 1
11401 KRB4_LIBS="-lkrb -ldes"
11403 if test $ac_cv_header_krb_archaeology_h = yes ; then
11404 cat >> confdefs.h <<\EOF
11405 #define HAVE_KTH_KERBEROS 1
11413 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
11416 elif test $ol_enable_kbind = yes ; then
11417 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
11420 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
11421 cat >> confdefs.h <<\EOF
11422 #define HAVE_KERBEROS 1
11426 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
11427 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
11432 if test $ol_with_tls != no ; then
11433 for ac_hdr in openssl/ssl.h ssl.h
11435 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11436 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11437 echo "configure:11438: checking for $ac_hdr" >&5
11438 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11439 echo $ac_n "(cached) $ac_c" 1>&6
11441 cat > conftest.$ac_ext <<EOF
11442 #line 11443 "configure"
11443 #include "confdefs.h"
11446 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11447 { (eval echo configure:11448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11448 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11449 if test -z "$ac_err"; then
11451 eval "ac_cv_header_$ac_safe=yes"
11454 echo "configure: failed program was:" >&5
11455 cat conftest.$ac_ext >&5
11457 eval "ac_cv_header_$ac_safe=no"
11461 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11462 echo "$ac_t""yes" 1>&6
11463 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11464 cat >> confdefs.h <<EOF
11465 #define $ac_tr_hdr 1
11469 echo "$ac_t""no" 1>&6
11474 if test $ac_cv_header_openssl_ssl_h = yes \
11475 -o $ac_cv_header_ssl_h = yes ; then
11476 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11477 echo "configure:11478: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11478 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11479 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11480 echo $ac_n "(cached) $ac_c" 1>&6
11482 ac_save_LIBS="$LIBS"
11483 LIBS="-lssl -lcrypto $LIBS"
11484 cat > conftest.$ac_ext <<EOF
11485 #line 11486 "configure"
11486 #include "confdefs.h"
11487 /* Override any gcc2 internal prototype to avoid an error. */
11488 /* We use char because int might match the return type of a gcc2
11489 builtin and then its argument prototype would still apply. */
11490 char SSLeay_add_ssl_algorithms();
11493 SSLeay_add_ssl_algorithms()
11496 if { (eval echo configure:11497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11498 eval "ac_cv_lib_$ac_lib_var=yes"
11500 echo "configure: failed program was:" >&5
11501 cat conftest.$ac_ext >&5
11503 eval "ac_cv_lib_$ac_lib_var=no"
11506 LIBS="$ac_save_LIBS"
11509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11510 echo "$ac_t""yes" 1>&6
11514 echo "$ac_t""no" 1>&6
11519 if test $have_ssleay = no ; then
11520 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11521 echo "configure:11522: checking for SSL_library_init in -lssl" >&5
11522 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11523 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11524 echo $ac_n "(cached) $ac_c" 1>&6
11526 ac_save_LIBS="$LIBS"
11527 LIBS="-lssl -lcrypto $LIBS"
11528 cat > conftest.$ac_ext <<EOF
11529 #line 11530 "configure"
11530 #include "confdefs.h"
11531 /* Override any gcc2 internal prototype to avoid an error. */
11532 /* We use char because int might match the return type of a gcc2
11533 builtin and then its argument prototype would still apply. */
11534 char SSL_library_init();
11540 if { (eval echo configure:11541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11542 eval "ac_cv_lib_$ac_lib_var=yes"
11544 echo "configure: failed program was:" >&5
11545 cat conftest.$ac_ext >&5
11547 eval "ac_cv_lib_$ac_lib_var=no"
11550 LIBS="$ac_save_LIBS"
11553 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11554 echo "$ac_t""yes" 1>&6
11558 echo "$ac_t""no" 1>&6
11564 if test $have_ssleay = no ; then
11565 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11566 echo "configure:11567: checking for ssl3_accept in -lssl" >&5
11567 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11568 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11569 echo $ac_n "(cached) $ac_c" 1>&6
11571 ac_save_LIBS="$LIBS"
11572 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11573 cat > conftest.$ac_ext <<EOF
11574 #line 11575 "configure"
11575 #include "confdefs.h"
11576 /* Override any gcc2 internal prototype to avoid an error. */
11577 /* We use char because int might match the return type of a gcc2
11578 builtin and then its argument prototype would still apply. */
11579 char ssl3_accept();
11585 if { (eval echo configure:11586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11587 eval "ac_cv_lib_$ac_lib_var=yes"
11589 echo "configure: failed program was:" >&5
11590 cat conftest.$ac_ext >&5
11592 eval "ac_cv_lib_$ac_lib_var=no"
11595 LIBS="$ac_save_LIBS"
11598 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11599 echo "$ac_t""yes" 1>&6
11603 echo "$ac_t""no" 1>&6
11609 if test $have_ssleay = yes ; then
11613 cat >> confdefs.h <<\EOF
11614 #define HAVE_SSLEAY 1
11618 if test $need_rsaref = yes; then
11619 cat >> confdefs.h <<\EOF
11620 #define HAVE_RSAREF 1
11624 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11626 TLS_LIBS="-lssl -lcrypto"
11629 echo $ac_n "checking OpenSSL library version (CRL checking capability)""... $ac_c" 1>&6
11630 echo "configure:11631: checking OpenSSL library version (CRL checking capability)" >&5
11631 if eval "test \"\${ol_cv_ssl_crl_compat+set}\" = set"; then
11632 echo $ac_n "(cached) $ac_c" 1>&6
11635 cat > conftest.$ac_ext <<EOF
11636 #line 11637 "configure"
11637 #include "confdefs.h"
11639 #ifdef HAVE_OPENSSL_SSL_H
11640 #include <openssl/ssl.h>
11645 /* Require 0.9.7d+ */
11646 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
11647 char *__ssl_compat = "0.9.7d";
11651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11652 egrep "__ssl_compat" >/dev/null 2>&1; then
11654 ol_cv_ssl_crl_compat=yes
11657 ol_cv_ssl_crl_compat=no
11663 echo "$ac_t""$ol_cv_ssl_crl_compat" 1>&6
11665 if test $ol_cv_ssl_crl_compat = no ; then
11668 cat >> confdefs.h <<\EOF
11669 #define HAVE_OPENSSL_CRL 1
11676 echo "configure: warning: TLS data protection not supported!" 1>&2
11680 if test $ol_link_tls = yes ; then
11681 cat >> confdefs.h <<\EOF
11687 elif test $ol_with_tls = auto ; then
11688 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11689 echo "configure: warning: TLS data protection not supported!" 1>&2
11691 elif test $ol_with_tls != no ; then
11692 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11695 if test $ol_enable_lmpasswd != no; then
11696 if test $ol_link_tls != yes ; then
11697 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11700 cat >> confdefs.h <<\EOF
11701 #define SLAPD_LMHASH 1
11708 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11709 -o $ol_with_threads = nt ; then
11712 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11713 echo "configure:11714: checking for _beginthread" >&5
11714 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11715 echo $ac_n "(cached) $ac_c" 1>&6
11717 cat > conftest.$ac_ext <<EOF
11718 #line 11719 "configure"
11719 #include "confdefs.h"
11720 /* System header to define __stub macros and hopefully few prototypes,
11721 which can conflict with char _beginthread(); below. */
11722 #include <assert.h>
11723 /* Override any gcc2 internal prototype to avoid an error. */
11724 /* We use char because int might match the return type of a gcc2
11725 builtin and then its argument prototype would still apply. */
11726 char _beginthread();
11731 /* The GNU C library defines this for functions which it implements
11732 to always fail with ENOSYS. Some functions are actually named
11733 something starting with __ and the normal name is an alias. */
11734 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11742 if { (eval echo configure:11743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11744 eval "ac_cv_func__beginthread=yes"
11746 echo "configure: failed program was:" >&5
11747 cat conftest.$ac_ext >&5
11749 eval "ac_cv_func__beginthread=no"
11754 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11755 echo "$ac_t""yes" 1>&6
11758 echo "$ac_t""no" 1>&6
11762 if test $ac_cv_func__beginthread = yes ; then
11763 cat >> confdefs.h <<\EOF
11764 #define HAVE_NT_THREADS 1
11767 ol_cv_nt_threads=yes
11771 if test "$ol_cv_nt_threads" = yes ; then
11773 ol_with_threads=found
11774 ol_with_yielding_select=yes
11776 cat >> confdefs.h <<\EOF
11777 #define HAVE_NT_SERVICE_MANAGER 1
11780 cat >> confdefs.h <<\EOF
11781 #define HAVE_NT_EVENT_LOG 1
11786 if test $ol_with_threads = nt ; then
11787 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11791 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11792 -o $ol_with_threads = posix ; then
11794 for ac_hdr in pthread.h
11796 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11797 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11798 echo "configure:11799: checking for $ac_hdr" >&5
11799 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11800 echo $ac_n "(cached) $ac_c" 1>&6
11802 cat > conftest.$ac_ext <<EOF
11803 #line 11804 "configure"
11804 #include "confdefs.h"
11807 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11808 { (eval echo configure:11809: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11809 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11810 if test -z "$ac_err"; then
11812 eval "ac_cv_header_$ac_safe=yes"
11815 echo "configure: failed program was:" >&5
11816 cat conftest.$ac_ext >&5
11818 eval "ac_cv_header_$ac_safe=no"
11822 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11823 echo "$ac_t""yes" 1>&6
11824 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11825 cat >> confdefs.h <<EOF
11826 #define $ac_tr_hdr 1
11830 echo "$ac_t""no" 1>&6
11835 if test $ac_cv_header_pthread_h = yes ; then
11836 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11837 echo "configure:11838: checking POSIX thread version" >&5
11838 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11839 echo $ac_n "(cached) $ac_c" 1>&6
11842 cat > conftest.$ac_ext <<EOF
11843 #line 11844 "configure"
11844 #include "confdefs.h"
11846 # include <pthread.h>
11850 int i = PTHREAD_CREATE_JOINABLE;
11854 if { (eval echo configure:11855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11857 cat > conftest.$ac_ext <<EOF
11858 #line 11859 "configure"
11859 #include "confdefs.h"
11860 #include <pthread.h>
11862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11863 egrep "pthread_detach" >/dev/null 2>&1; then
11865 ol_cv_pthread_version=10
11868 ol_cv_pthread_version=8
11873 echo "configure: failed program was:" >&5
11874 cat conftest.$ac_ext >&5
11877 cat > conftest.$ac_ext <<EOF
11878 #line 11879 "configure"
11879 #include "confdefs.h"
11881 # include <pthread.h>
11882 # ifdef PTHREAD_CREATE_UNDETACHED
11887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11888 egrep "draft7" >/dev/null 2>&1; then
11890 ol_cv_pthread_version=7
11894 cat > conftest.$ac_ext <<EOF
11895 #line 11896 "configure"
11896 #include "confdefs.h"
11897 #include <pthread.h>
11899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11900 egrep "pthread_attr_init" >/dev/null 2>&1; then
11902 ol_cv_pthread_version=6
11906 cat > conftest.$ac_ext <<EOF
11907 #line 11908 "configure"
11908 #include "confdefs.h"
11910 # include <pthread.h>
11911 #ifdef PTHREAD_MUTEX_INITIALIZER
11916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11917 egrep "draft5" >/dev/null 2>&1; then
11919 ol_cv_pthread_version=5
11922 ol_cv_pthread_version=4
11937 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11940 if test $ol_cv_pthread_version != 0 ; then
11941 cat >> confdefs.h <<EOF
11942 #define HAVE_PTHREADS $ol_cv_pthread_version
11946 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11949 # consider threads found
11950 ol_with_threads=found
11953 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11954 echo "configure:11955: checking for LinuxThreads pthread.h" >&5
11955 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11956 echo $ac_n "(cached) $ac_c" 1>&6
11958 cat > conftest.$ac_ext <<EOF
11959 #line 11960 "configure"
11960 #include "confdefs.h"
11961 #include <pthread.h>
11963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11964 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11966 ol_cv_header_linux_threads=yes
11969 ol_cv_header_linux_threads=no
11976 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11977 if test $ol_cv_header_linux_threads = yes; then
11978 cat >> confdefs.h <<\EOF
11979 #define HAVE_LINUX_THREADS 1
11985 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11986 echo "configure:11987: checking for GNU Pth pthread.h" >&5
11987 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11988 echo $ac_n "(cached) $ac_c" 1>&6
11990 cat > conftest.$ac_ext <<EOF
11991 #line 11992 "configure"
11992 #include "confdefs.h"
11993 #include <pthread.h>
11994 #ifdef _POSIX_THREAD_IS_GNU_PTH
11999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12000 egrep "__gnu_pth__" >/dev/null 2>&1; then
12002 ol_cv_header_gnu_pth_pthread_h=yes
12005 ol_cv_header_gnu_pth_pthread_h=no
12012 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
12015 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
12016 for ac_hdr in sched.h
12018 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12019 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12020 echo "configure:12021: checking for $ac_hdr" >&5
12021 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12022 echo $ac_n "(cached) $ac_c" 1>&6
12024 cat > conftest.$ac_ext <<EOF
12025 #line 12026 "configure"
12026 #include "confdefs.h"
12029 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12030 { (eval echo configure:12031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12031 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12032 if test -z "$ac_err"; then
12034 eval "ac_cv_header_$ac_safe=yes"
12037 echo "configure: failed program was:" >&5
12038 cat conftest.$ac_ext >&5
12040 eval "ac_cv_header_$ac_safe=no"
12044 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12045 echo "$ac_t""yes" 1>&6
12046 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12047 cat >> confdefs.h <<EOF
12048 #define $ac_tr_hdr 1
12052 echo "$ac_t""no" 1>&6
12059 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
12060 echo "configure:12061: checking for pthread_create in default libraries" >&5
12061 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
12062 echo $ac_n "(cached) $ac_c" 1>&6
12065 if test "$cross_compiling" = yes; then
12066 cat > conftest.$ac_ext <<EOF
12067 #line 12068 "configure"
12068 #include "confdefs.h"
12069 /* pthread test headers */
12070 #include <pthread.h>
12071 #if HAVE_PTHREADS < 7
12075 #define NULL (void*)0
12078 static void *task(p)
12081 return (void *) (p == NULL);
12086 /* pthread test function */
12087 #ifndef PTHREAD_CREATE_DETACHED
12088 #define PTHREAD_CREATE_DETACHED 1
12092 int detach = PTHREAD_CREATE_DETACHED;
12094 #if HAVE_PTHREADS > 4
12095 /* Final pthreads */
12096 pthread_attr_t attr;
12098 status = pthread_attr_init(&attr);
12099 if( status ) return status;
12101 #if HAVE_PTHREADS < 7
12102 status = pthread_attr_setdetachstate(&attr, &detach);
12103 if( status < 0 ) status = errno;
12105 status = pthread_attr_setdetachstate(&attr, detach);
12107 if( status ) return status;
12108 status = pthread_create( &t, &attr, task, NULL );
12109 #if HAVE_PTHREADS < 7
12110 if( status < 0 ) status = errno;
12112 if( status ) return status;
12114 /* Draft 4 pthreads */
12115 status = pthread_create( &t, pthread_attr_default, task, NULL );
12116 if( status ) return errno;
12118 /* give thread a chance to complete */
12119 /* it should remain joinable and hence detachable */
12122 status = pthread_detach( &t );
12123 if( status ) return errno;
12126 #ifdef HAVE_LINUX_THREADS
12127 pthread_kill_other_threads_np();
12134 if { (eval echo configure:12135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12136 ol_cv_pthread_create=yes
12138 echo "configure: failed program was:" >&5
12139 cat conftest.$ac_ext >&5
12141 ol_cv_pthread_create=no
12145 cat > conftest.$ac_ext <<EOF
12146 #line 12147 "configure"
12147 #include "confdefs.h"
12148 /* pthread test headers */
12149 #include <pthread.h>
12150 #if HAVE_PTHREADS < 7
12154 #define NULL (void*)0
12157 static void *task(p)
12160 return (void *) (p == NULL);
12164 int main(argc, argv)
12169 /* pthread test function */
12170 #ifndef PTHREAD_CREATE_DETACHED
12171 #define PTHREAD_CREATE_DETACHED 1
12175 int detach = PTHREAD_CREATE_DETACHED;
12177 #if HAVE_PTHREADS > 4
12178 /* Final pthreads */
12179 pthread_attr_t attr;
12181 status = pthread_attr_init(&attr);
12182 if( status ) return status;
12184 #if HAVE_PTHREADS < 7
12185 status = pthread_attr_setdetachstate(&attr, &detach);
12186 if( status < 0 ) status = errno;
12188 status = pthread_attr_setdetachstate(&attr, detach);
12190 if( status ) return status;
12191 status = pthread_create( &t, &attr, task, NULL );
12192 #if HAVE_PTHREADS < 7
12193 if( status < 0 ) status = errno;
12195 if( status ) return status;
12197 /* Draft 4 pthreads */
12198 status = pthread_create( &t, pthread_attr_default, task, NULL );
12199 if( status ) return errno;
12201 /* give thread a chance to complete */
12202 /* it should remain joinable and hence detachable */
12205 status = pthread_detach( &t );
12206 if( status ) return errno;
12209 #ifdef HAVE_LINUX_THREADS
12210 pthread_kill_other_threads_np();
12218 if { (eval echo configure:12219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12220 ol_cv_pthread_create=yes
12222 echo "configure: failed program was:" >&5
12223 cat conftest.$ac_ext >&5
12225 ol_cv_pthread_create=no
12232 echo "$ac_t""$ol_cv_pthread_create" 1>&6
12234 if test $ol_cv_pthread_create != no ; then
12235 ol_link_threads=posix
12236 ol_link_pthreads=""
12239 # Pthread try link: -kthread (ol_cv_pthread_kthread)
12240 if test "$ol_link_threads" = no ; then
12242 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
12243 echo "configure:12244: checking for pthread link with -kthread" >&5
12244 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
12245 echo $ac_n "(cached) $ac_c" 1>&6
12250 LIBS="-kthread $LIBS"
12252 if test "$cross_compiling" = yes; then
12253 cat > conftest.$ac_ext <<EOF
12254 #line 12255 "configure"
12255 #include "confdefs.h"
12256 /* pthread test headers */
12257 #include <pthread.h>
12258 #if HAVE_PTHREADS < 7
12262 #define NULL (void*)0
12265 static void *task(p)
12268 return (void *) (p == NULL);
12273 /* pthread test function */
12274 #ifndef PTHREAD_CREATE_DETACHED
12275 #define PTHREAD_CREATE_DETACHED 1
12279 int detach = PTHREAD_CREATE_DETACHED;
12281 #if HAVE_PTHREADS > 4
12282 /* Final pthreads */
12283 pthread_attr_t attr;
12285 status = pthread_attr_init(&attr);
12286 if( status ) return status;
12288 #if HAVE_PTHREADS < 7
12289 status = pthread_attr_setdetachstate(&attr, &detach);
12290 if( status < 0 ) status = errno;
12292 status = pthread_attr_setdetachstate(&attr, detach);
12294 if( status ) return status;
12295 status = pthread_create( &t, &attr, task, NULL );
12296 #if HAVE_PTHREADS < 7
12297 if( status < 0 ) status = errno;
12299 if( status ) return status;
12301 /* Draft 4 pthreads */
12302 status = pthread_create( &t, pthread_attr_default, task, NULL );
12303 if( status ) return errno;
12305 /* give thread a chance to complete */
12306 /* it should remain joinable and hence detachable */
12309 status = pthread_detach( &t );
12310 if( status ) return errno;
12313 #ifdef HAVE_LINUX_THREADS
12314 pthread_kill_other_threads_np();
12321 if { (eval echo configure:12322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12323 ol_cv_pthread_kthread=yes
12325 echo "configure: failed program was:" >&5
12326 cat conftest.$ac_ext >&5
12328 ol_cv_pthread_kthread=no
12332 cat > conftest.$ac_ext <<EOF
12333 #line 12334 "configure"
12334 #include "confdefs.h"
12335 /* pthread test headers */
12336 #include <pthread.h>
12337 #if HAVE_PTHREADS < 7
12341 #define NULL (void*)0
12344 static void *task(p)
12347 return (void *) (p == NULL);
12351 int main(argc, argv)
12356 /* pthread test function */
12357 #ifndef PTHREAD_CREATE_DETACHED
12358 #define PTHREAD_CREATE_DETACHED 1
12362 int detach = PTHREAD_CREATE_DETACHED;
12364 #if HAVE_PTHREADS > 4
12365 /* Final pthreads */
12366 pthread_attr_t attr;
12368 status = pthread_attr_init(&attr);
12369 if( status ) return status;
12371 #if HAVE_PTHREADS < 7
12372 status = pthread_attr_setdetachstate(&attr, &detach);
12373 if( status < 0 ) status = errno;
12375 status = pthread_attr_setdetachstate(&attr, detach);
12377 if( status ) return status;
12378 status = pthread_create( &t, &attr, task, NULL );
12379 #if HAVE_PTHREADS < 7
12380 if( status < 0 ) status = errno;
12382 if( status ) return status;
12384 /* Draft 4 pthreads */
12385 status = pthread_create( &t, pthread_attr_default, task, NULL );
12386 if( status ) return errno;
12388 /* give thread a chance to complete */
12389 /* it should remain joinable and hence detachable */
12392 status = pthread_detach( &t );
12393 if( status ) return errno;
12396 #ifdef HAVE_LINUX_THREADS
12397 pthread_kill_other_threads_np();
12405 if { (eval echo configure:12406: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12407 ol_cv_pthread_kthread=yes
12409 echo "configure: failed program was:" >&5
12410 cat conftest.$ac_ext >&5
12412 ol_cv_pthread_kthread=no
12423 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12425 if test $ol_cv_pthread_kthread = yes ; then
12426 ol_link_pthreads="-kthread"
12427 ol_link_threads=posix
12431 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12432 if test "$ol_link_threads" = no ; then
12434 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12435 echo "configure:12436: checking for pthread link with -pthread" >&5
12436 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12437 echo $ac_n "(cached) $ac_c" 1>&6
12442 LIBS="-pthread $LIBS"
12444 if test "$cross_compiling" = yes; then
12445 cat > conftest.$ac_ext <<EOF
12446 #line 12447 "configure"
12447 #include "confdefs.h"
12448 /* pthread test headers */
12449 #include <pthread.h>
12450 #if HAVE_PTHREADS < 7
12454 #define NULL (void*)0
12457 static void *task(p)
12460 return (void *) (p == NULL);
12465 /* pthread test function */
12466 #ifndef PTHREAD_CREATE_DETACHED
12467 #define PTHREAD_CREATE_DETACHED 1
12471 int detach = PTHREAD_CREATE_DETACHED;
12473 #if HAVE_PTHREADS > 4
12474 /* Final pthreads */
12475 pthread_attr_t attr;
12477 status = pthread_attr_init(&attr);
12478 if( status ) return status;
12480 #if HAVE_PTHREADS < 7
12481 status = pthread_attr_setdetachstate(&attr, &detach);
12482 if( status < 0 ) status = errno;
12484 status = pthread_attr_setdetachstate(&attr, detach);
12486 if( status ) return status;
12487 status = pthread_create( &t, &attr, task, NULL );
12488 #if HAVE_PTHREADS < 7
12489 if( status < 0 ) status = errno;
12491 if( status ) return status;
12493 /* Draft 4 pthreads */
12494 status = pthread_create( &t, pthread_attr_default, task, NULL );
12495 if( status ) return errno;
12497 /* give thread a chance to complete */
12498 /* it should remain joinable and hence detachable */
12501 status = pthread_detach( &t );
12502 if( status ) return errno;
12505 #ifdef HAVE_LINUX_THREADS
12506 pthread_kill_other_threads_np();
12513 if { (eval echo configure:12514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12515 ol_cv_pthread_pthread=yes
12517 echo "configure: failed program was:" >&5
12518 cat conftest.$ac_ext >&5
12520 ol_cv_pthread_pthread=no
12524 cat > conftest.$ac_ext <<EOF
12525 #line 12526 "configure"
12526 #include "confdefs.h"
12527 /* pthread test headers */
12528 #include <pthread.h>
12529 #if HAVE_PTHREADS < 7
12533 #define NULL (void*)0
12536 static void *task(p)
12539 return (void *) (p == NULL);
12543 int main(argc, argv)
12548 /* pthread test function */
12549 #ifndef PTHREAD_CREATE_DETACHED
12550 #define PTHREAD_CREATE_DETACHED 1
12554 int detach = PTHREAD_CREATE_DETACHED;
12556 #if HAVE_PTHREADS > 4
12557 /* Final pthreads */
12558 pthread_attr_t attr;
12560 status = pthread_attr_init(&attr);
12561 if( status ) return status;
12563 #if HAVE_PTHREADS < 7
12564 status = pthread_attr_setdetachstate(&attr, &detach);
12565 if( status < 0 ) status = errno;
12567 status = pthread_attr_setdetachstate(&attr, detach);
12569 if( status ) return status;
12570 status = pthread_create( &t, &attr, task, NULL );
12571 #if HAVE_PTHREADS < 7
12572 if( status < 0 ) status = errno;
12574 if( status ) return status;
12576 /* Draft 4 pthreads */
12577 status = pthread_create( &t, pthread_attr_default, task, NULL );
12578 if( status ) return errno;
12580 /* give thread a chance to complete */
12581 /* it should remain joinable and hence detachable */
12584 status = pthread_detach( &t );
12585 if( status ) return errno;
12588 #ifdef HAVE_LINUX_THREADS
12589 pthread_kill_other_threads_np();
12597 if { (eval echo configure:12598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12599 ol_cv_pthread_pthread=yes
12601 echo "configure: failed program was:" >&5
12602 cat conftest.$ac_ext >&5
12604 ol_cv_pthread_pthread=no
12615 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12617 if test $ol_cv_pthread_pthread = yes ; then
12618 ol_link_pthreads="-pthread"
12619 ol_link_threads=posix
12623 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12624 if test "$ol_link_threads" = no ; then
12626 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12627 echo "configure:12628: checking for pthread link with -pthreads" >&5
12628 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12629 echo $ac_n "(cached) $ac_c" 1>&6
12634 LIBS="-pthreads $LIBS"
12636 if test "$cross_compiling" = yes; then
12637 cat > conftest.$ac_ext <<EOF
12638 #line 12639 "configure"
12639 #include "confdefs.h"
12640 /* pthread test headers */
12641 #include <pthread.h>
12642 #if HAVE_PTHREADS < 7
12646 #define NULL (void*)0
12649 static void *task(p)
12652 return (void *) (p == NULL);
12657 /* pthread test function */
12658 #ifndef PTHREAD_CREATE_DETACHED
12659 #define PTHREAD_CREATE_DETACHED 1
12663 int detach = PTHREAD_CREATE_DETACHED;
12665 #if HAVE_PTHREADS > 4
12666 /* Final pthreads */
12667 pthread_attr_t attr;
12669 status = pthread_attr_init(&attr);
12670 if( status ) return status;
12672 #if HAVE_PTHREADS < 7
12673 status = pthread_attr_setdetachstate(&attr, &detach);
12674 if( status < 0 ) status = errno;
12676 status = pthread_attr_setdetachstate(&attr, detach);
12678 if( status ) return status;
12679 status = pthread_create( &t, &attr, task, NULL );
12680 #if HAVE_PTHREADS < 7
12681 if( status < 0 ) status = errno;
12683 if( status ) return status;
12685 /* Draft 4 pthreads */
12686 status = pthread_create( &t, pthread_attr_default, task, NULL );
12687 if( status ) return errno;
12689 /* give thread a chance to complete */
12690 /* it should remain joinable and hence detachable */
12693 status = pthread_detach( &t );
12694 if( status ) return errno;
12697 #ifdef HAVE_LINUX_THREADS
12698 pthread_kill_other_threads_np();
12705 if { (eval echo configure:12706: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12707 ol_cv_pthread_pthreads=yes
12709 echo "configure: failed program was:" >&5
12710 cat conftest.$ac_ext >&5
12712 ol_cv_pthread_pthreads=no
12716 cat > conftest.$ac_ext <<EOF
12717 #line 12718 "configure"
12718 #include "confdefs.h"
12719 /* pthread test headers */
12720 #include <pthread.h>
12721 #if HAVE_PTHREADS < 7
12725 #define NULL (void*)0
12728 static void *task(p)
12731 return (void *) (p == NULL);
12735 int main(argc, argv)
12740 /* pthread test function */
12741 #ifndef PTHREAD_CREATE_DETACHED
12742 #define PTHREAD_CREATE_DETACHED 1
12746 int detach = PTHREAD_CREATE_DETACHED;
12748 #if HAVE_PTHREADS > 4
12749 /* Final pthreads */
12750 pthread_attr_t attr;
12752 status = pthread_attr_init(&attr);
12753 if( status ) return status;
12755 #if HAVE_PTHREADS < 7
12756 status = pthread_attr_setdetachstate(&attr, &detach);
12757 if( status < 0 ) status = errno;
12759 status = pthread_attr_setdetachstate(&attr, detach);
12761 if( status ) return status;
12762 status = pthread_create( &t, &attr, task, NULL );
12763 #if HAVE_PTHREADS < 7
12764 if( status < 0 ) status = errno;
12766 if( status ) return status;
12768 /* Draft 4 pthreads */
12769 status = pthread_create( &t, pthread_attr_default, task, NULL );
12770 if( status ) return errno;
12772 /* give thread a chance to complete */
12773 /* it should remain joinable and hence detachable */
12776 status = pthread_detach( &t );
12777 if( status ) return errno;
12780 #ifdef HAVE_LINUX_THREADS
12781 pthread_kill_other_threads_np();
12789 if { (eval echo configure:12790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12791 ol_cv_pthread_pthreads=yes
12793 echo "configure: failed program was:" >&5
12794 cat conftest.$ac_ext >&5
12796 ol_cv_pthread_pthreads=no
12807 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12809 if test $ol_cv_pthread_pthreads = yes ; then
12810 ol_link_pthreads="-pthreads"
12811 ol_link_threads=posix
12815 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12816 if test "$ol_link_threads" = no ; then
12818 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12819 echo "configure:12820: checking for pthread link with -mthreads" >&5
12820 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12821 echo $ac_n "(cached) $ac_c" 1>&6
12826 LIBS="-mthreads $LIBS"
12828 if test "$cross_compiling" = yes; then
12829 cat > conftest.$ac_ext <<EOF
12830 #line 12831 "configure"
12831 #include "confdefs.h"
12832 /* pthread test headers */
12833 #include <pthread.h>
12834 #if HAVE_PTHREADS < 7
12838 #define NULL (void*)0
12841 static void *task(p)
12844 return (void *) (p == NULL);
12849 /* pthread test function */
12850 #ifndef PTHREAD_CREATE_DETACHED
12851 #define PTHREAD_CREATE_DETACHED 1
12855 int detach = PTHREAD_CREATE_DETACHED;
12857 #if HAVE_PTHREADS > 4
12858 /* Final pthreads */
12859 pthread_attr_t attr;
12861 status = pthread_attr_init(&attr);
12862 if( status ) return status;
12864 #if HAVE_PTHREADS < 7
12865 status = pthread_attr_setdetachstate(&attr, &detach);
12866 if( status < 0 ) status = errno;
12868 status = pthread_attr_setdetachstate(&attr, detach);
12870 if( status ) return status;
12871 status = pthread_create( &t, &attr, task, NULL );
12872 #if HAVE_PTHREADS < 7
12873 if( status < 0 ) status = errno;
12875 if( status ) return status;
12877 /* Draft 4 pthreads */
12878 status = pthread_create( &t, pthread_attr_default, task, NULL );
12879 if( status ) return errno;
12881 /* give thread a chance to complete */
12882 /* it should remain joinable and hence detachable */
12885 status = pthread_detach( &t );
12886 if( status ) return errno;
12889 #ifdef HAVE_LINUX_THREADS
12890 pthread_kill_other_threads_np();
12897 if { (eval echo configure:12898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12899 ol_cv_pthread_mthreads=yes
12901 echo "configure: failed program was:" >&5
12902 cat conftest.$ac_ext >&5
12904 ol_cv_pthread_mthreads=no
12908 cat > conftest.$ac_ext <<EOF
12909 #line 12910 "configure"
12910 #include "confdefs.h"
12911 /* pthread test headers */
12912 #include <pthread.h>
12913 #if HAVE_PTHREADS < 7
12917 #define NULL (void*)0
12920 static void *task(p)
12923 return (void *) (p == NULL);
12927 int main(argc, argv)
12932 /* pthread test function */
12933 #ifndef PTHREAD_CREATE_DETACHED
12934 #define PTHREAD_CREATE_DETACHED 1
12938 int detach = PTHREAD_CREATE_DETACHED;
12940 #if HAVE_PTHREADS > 4
12941 /* Final pthreads */
12942 pthread_attr_t attr;
12944 status = pthread_attr_init(&attr);
12945 if( status ) return status;
12947 #if HAVE_PTHREADS < 7
12948 status = pthread_attr_setdetachstate(&attr, &detach);
12949 if( status < 0 ) status = errno;
12951 status = pthread_attr_setdetachstate(&attr, detach);
12953 if( status ) return status;
12954 status = pthread_create( &t, &attr, task, NULL );
12955 #if HAVE_PTHREADS < 7
12956 if( status < 0 ) status = errno;
12958 if( status ) return status;
12960 /* Draft 4 pthreads */
12961 status = pthread_create( &t, pthread_attr_default, task, NULL );
12962 if( status ) return errno;
12964 /* give thread a chance to complete */
12965 /* it should remain joinable and hence detachable */
12968 status = pthread_detach( &t );
12969 if( status ) return errno;
12972 #ifdef HAVE_LINUX_THREADS
12973 pthread_kill_other_threads_np();
12981 if { (eval echo configure:12982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12983 ol_cv_pthread_mthreads=yes
12985 echo "configure: failed program was:" >&5
12986 cat conftest.$ac_ext >&5
12988 ol_cv_pthread_mthreads=no
12999 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
13001 if test $ol_cv_pthread_mthreads = yes ; then
13002 ol_link_pthreads="-mthreads"
13003 ol_link_threads=posix
13007 # Pthread try link: -thread (ol_cv_pthread_thread)
13008 if test "$ol_link_threads" = no ; then
13010 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
13011 echo "configure:13012: checking for pthread link with -thread" >&5
13012 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
13013 echo $ac_n "(cached) $ac_c" 1>&6
13018 LIBS="-thread $LIBS"
13020 if test "$cross_compiling" = yes; then
13021 cat > conftest.$ac_ext <<EOF
13022 #line 13023 "configure"
13023 #include "confdefs.h"
13024 /* pthread test headers */
13025 #include <pthread.h>
13026 #if HAVE_PTHREADS < 7
13030 #define NULL (void*)0
13033 static void *task(p)
13036 return (void *) (p == NULL);
13041 /* pthread test function */
13042 #ifndef PTHREAD_CREATE_DETACHED
13043 #define PTHREAD_CREATE_DETACHED 1
13047 int detach = PTHREAD_CREATE_DETACHED;
13049 #if HAVE_PTHREADS > 4
13050 /* Final pthreads */
13051 pthread_attr_t attr;
13053 status = pthread_attr_init(&attr);
13054 if( status ) return status;
13056 #if HAVE_PTHREADS < 7
13057 status = pthread_attr_setdetachstate(&attr, &detach);
13058 if( status < 0 ) status = errno;
13060 status = pthread_attr_setdetachstate(&attr, detach);
13062 if( status ) return status;
13063 status = pthread_create( &t, &attr, task, NULL );
13064 #if HAVE_PTHREADS < 7
13065 if( status < 0 ) status = errno;
13067 if( status ) return status;
13069 /* Draft 4 pthreads */
13070 status = pthread_create( &t, pthread_attr_default, task, NULL );
13071 if( status ) return errno;
13073 /* give thread a chance to complete */
13074 /* it should remain joinable and hence detachable */
13077 status = pthread_detach( &t );
13078 if( status ) return errno;
13081 #ifdef HAVE_LINUX_THREADS
13082 pthread_kill_other_threads_np();
13089 if { (eval echo configure:13090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13091 ol_cv_pthread_thread=yes
13093 echo "configure: failed program was:" >&5
13094 cat conftest.$ac_ext >&5
13096 ol_cv_pthread_thread=no
13100 cat > conftest.$ac_ext <<EOF
13101 #line 13102 "configure"
13102 #include "confdefs.h"
13103 /* pthread test headers */
13104 #include <pthread.h>
13105 #if HAVE_PTHREADS < 7
13109 #define NULL (void*)0
13112 static void *task(p)
13115 return (void *) (p == NULL);
13119 int main(argc, argv)
13124 /* pthread test function */
13125 #ifndef PTHREAD_CREATE_DETACHED
13126 #define PTHREAD_CREATE_DETACHED 1
13130 int detach = PTHREAD_CREATE_DETACHED;
13132 #if HAVE_PTHREADS > 4
13133 /* Final pthreads */
13134 pthread_attr_t attr;
13136 status = pthread_attr_init(&attr);
13137 if( status ) return status;
13139 #if HAVE_PTHREADS < 7
13140 status = pthread_attr_setdetachstate(&attr, &detach);
13141 if( status < 0 ) status = errno;
13143 status = pthread_attr_setdetachstate(&attr, detach);
13145 if( status ) return status;
13146 status = pthread_create( &t, &attr, task, NULL );
13147 #if HAVE_PTHREADS < 7
13148 if( status < 0 ) status = errno;
13150 if( status ) return status;
13152 /* Draft 4 pthreads */
13153 status = pthread_create( &t, pthread_attr_default, task, NULL );
13154 if( status ) return errno;
13156 /* give thread a chance to complete */
13157 /* it should remain joinable and hence detachable */
13160 status = pthread_detach( &t );
13161 if( status ) return errno;
13164 #ifdef HAVE_LINUX_THREADS
13165 pthread_kill_other_threads_np();
13173 if { (eval echo configure:13174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13175 ol_cv_pthread_thread=yes
13177 echo "configure: failed program was:" >&5
13178 cat conftest.$ac_ext >&5
13180 ol_cv_pthread_thread=no
13191 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
13193 if test $ol_cv_pthread_thread = yes ; then
13194 ol_link_pthreads="-thread"
13195 ol_link_threads=posix
13200 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
13201 if test "$ol_link_threads" = no ; then
13202 # try -lpthread -lmach -lexc -lc_r
13203 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
13204 echo "configure:13205: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
13205 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
13206 echo $ac_n "(cached) $ac_c" 1>&6
13211 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
13213 if test "$cross_compiling" = yes; then
13214 cat > conftest.$ac_ext <<EOF
13215 #line 13216 "configure"
13216 #include "confdefs.h"
13217 /* pthread test headers */
13218 #include <pthread.h>
13219 #if HAVE_PTHREADS < 7
13223 #define NULL (void*)0
13226 static void *task(p)
13229 return (void *) (p == NULL);
13234 /* pthread test function */
13235 #ifndef PTHREAD_CREATE_DETACHED
13236 #define PTHREAD_CREATE_DETACHED 1
13240 int detach = PTHREAD_CREATE_DETACHED;
13242 #if HAVE_PTHREADS > 4
13243 /* Final pthreads */
13244 pthread_attr_t attr;
13246 status = pthread_attr_init(&attr);
13247 if( status ) return status;
13249 #if HAVE_PTHREADS < 7
13250 status = pthread_attr_setdetachstate(&attr, &detach);
13251 if( status < 0 ) status = errno;
13253 status = pthread_attr_setdetachstate(&attr, detach);
13255 if( status ) return status;
13256 status = pthread_create( &t, &attr, task, NULL );
13257 #if HAVE_PTHREADS < 7
13258 if( status < 0 ) status = errno;
13260 if( status ) return status;
13262 /* Draft 4 pthreads */
13263 status = pthread_create( &t, pthread_attr_default, task, NULL );
13264 if( status ) return errno;
13266 /* give thread a chance to complete */
13267 /* it should remain joinable and hence detachable */
13270 status = pthread_detach( &t );
13271 if( status ) return errno;
13274 #ifdef HAVE_LINUX_THREADS
13275 pthread_kill_other_threads_np();
13282 if { (eval echo configure:13283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13284 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13286 echo "configure: failed program was:" >&5
13287 cat conftest.$ac_ext >&5
13289 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13293 cat > conftest.$ac_ext <<EOF
13294 #line 13295 "configure"
13295 #include "confdefs.h"
13296 /* pthread test headers */
13297 #include <pthread.h>
13298 #if HAVE_PTHREADS < 7
13302 #define NULL (void*)0
13305 static void *task(p)
13308 return (void *) (p == NULL);
13312 int main(argc, argv)
13317 /* pthread test function */
13318 #ifndef PTHREAD_CREATE_DETACHED
13319 #define PTHREAD_CREATE_DETACHED 1
13323 int detach = PTHREAD_CREATE_DETACHED;
13325 #if HAVE_PTHREADS > 4
13326 /* Final pthreads */
13327 pthread_attr_t attr;
13329 status = pthread_attr_init(&attr);
13330 if( status ) return status;
13332 #if HAVE_PTHREADS < 7
13333 status = pthread_attr_setdetachstate(&attr, &detach);
13334 if( status < 0 ) status = errno;
13336 status = pthread_attr_setdetachstate(&attr, detach);
13338 if( status ) return status;
13339 status = pthread_create( &t, &attr, task, NULL );
13340 #if HAVE_PTHREADS < 7
13341 if( status < 0 ) status = errno;
13343 if( status ) return status;
13345 /* Draft 4 pthreads */
13346 status = pthread_create( &t, pthread_attr_default, task, NULL );
13347 if( status ) return errno;
13349 /* give thread a chance to complete */
13350 /* it should remain joinable and hence detachable */
13353 status = pthread_detach( &t );
13354 if( status ) return errno;
13357 #ifdef HAVE_LINUX_THREADS
13358 pthread_kill_other_threads_np();
13366 if { (eval echo configure:13367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13368 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13370 echo "configure: failed program was:" >&5
13371 cat conftest.$ac_ext >&5
13373 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13384 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13386 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13387 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13388 ol_link_threads=posix
13392 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13393 if test "$ol_link_threads" = no ; then
13394 # try -lpthread -lmach -lexc
13395 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13396 echo "configure:13397: checking for pthread link with -lpthread -lmach -lexc" >&5
13397 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13398 echo $ac_n "(cached) $ac_c" 1>&6
13403 LIBS="-lpthread -lmach -lexc $LIBS"
13405 if test "$cross_compiling" = yes; then
13406 cat > conftest.$ac_ext <<EOF
13407 #line 13408 "configure"
13408 #include "confdefs.h"
13409 /* pthread test headers */
13410 #include <pthread.h>
13411 #if HAVE_PTHREADS < 7
13415 #define NULL (void*)0
13418 static void *task(p)
13421 return (void *) (p == NULL);
13426 /* pthread test function */
13427 #ifndef PTHREAD_CREATE_DETACHED
13428 #define PTHREAD_CREATE_DETACHED 1
13432 int detach = PTHREAD_CREATE_DETACHED;
13434 #if HAVE_PTHREADS > 4
13435 /* Final pthreads */
13436 pthread_attr_t attr;
13438 status = pthread_attr_init(&attr);
13439 if( status ) return status;
13441 #if HAVE_PTHREADS < 7
13442 status = pthread_attr_setdetachstate(&attr, &detach);
13443 if( status < 0 ) status = errno;
13445 status = pthread_attr_setdetachstate(&attr, detach);
13447 if( status ) return status;
13448 status = pthread_create( &t, &attr, task, NULL );
13449 #if HAVE_PTHREADS < 7
13450 if( status < 0 ) status = errno;
13452 if( status ) return status;
13454 /* Draft 4 pthreads */
13455 status = pthread_create( &t, pthread_attr_default, task, NULL );
13456 if( status ) return errno;
13458 /* give thread a chance to complete */
13459 /* it should remain joinable and hence detachable */
13462 status = pthread_detach( &t );
13463 if( status ) return errno;
13466 #ifdef HAVE_LINUX_THREADS
13467 pthread_kill_other_threads_np();
13474 if { (eval echo configure:13475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13476 ol_cv_pthread_lpthread_lmach_lexc=yes
13478 echo "configure: failed program was:" >&5
13479 cat conftest.$ac_ext >&5
13481 ol_cv_pthread_lpthread_lmach_lexc=no
13485 cat > conftest.$ac_ext <<EOF
13486 #line 13487 "configure"
13487 #include "confdefs.h"
13488 /* pthread test headers */
13489 #include <pthread.h>
13490 #if HAVE_PTHREADS < 7
13494 #define NULL (void*)0
13497 static void *task(p)
13500 return (void *) (p == NULL);
13504 int main(argc, argv)
13509 /* pthread test function */
13510 #ifndef PTHREAD_CREATE_DETACHED
13511 #define PTHREAD_CREATE_DETACHED 1
13515 int detach = PTHREAD_CREATE_DETACHED;
13517 #if HAVE_PTHREADS > 4
13518 /* Final pthreads */
13519 pthread_attr_t attr;
13521 status = pthread_attr_init(&attr);
13522 if( status ) return status;
13524 #if HAVE_PTHREADS < 7
13525 status = pthread_attr_setdetachstate(&attr, &detach);
13526 if( status < 0 ) status = errno;
13528 status = pthread_attr_setdetachstate(&attr, detach);
13530 if( status ) return status;
13531 status = pthread_create( &t, &attr, task, NULL );
13532 #if HAVE_PTHREADS < 7
13533 if( status < 0 ) status = errno;
13535 if( status ) return status;
13537 /* Draft 4 pthreads */
13538 status = pthread_create( &t, pthread_attr_default, task, NULL );
13539 if( status ) return errno;
13541 /* give thread a chance to complete */
13542 /* it should remain joinable and hence detachable */
13545 status = pthread_detach( &t );
13546 if( status ) return errno;
13549 #ifdef HAVE_LINUX_THREADS
13550 pthread_kill_other_threads_np();
13558 if { (eval echo configure:13559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13560 ol_cv_pthread_lpthread_lmach_lexc=yes
13562 echo "configure: failed program was:" >&5
13563 cat conftest.$ac_ext >&5
13565 ol_cv_pthread_lpthread_lmach_lexc=no
13576 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13578 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13579 ol_link_pthreads="-lpthread -lmach -lexc"
13580 ol_link_threads=posix
13585 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13586 if test "$ol_link_threads" = no ; then
13587 # try -lpthread -Wl,-woff,85
13588 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13589 echo "configure:13590: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13590 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13591 echo $ac_n "(cached) $ac_c" 1>&6
13596 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13598 if test "$cross_compiling" = yes; then
13599 cat > conftest.$ac_ext <<EOF
13600 #line 13601 "configure"
13601 #include "confdefs.h"
13602 /* pthread test headers */
13603 #include <pthread.h>
13604 #if HAVE_PTHREADS < 7
13608 #define NULL (void*)0
13611 static void *task(p)
13614 return (void *) (p == NULL);
13619 /* pthread test function */
13620 #ifndef PTHREAD_CREATE_DETACHED
13621 #define PTHREAD_CREATE_DETACHED 1
13625 int detach = PTHREAD_CREATE_DETACHED;
13627 #if HAVE_PTHREADS > 4
13628 /* Final pthreads */
13629 pthread_attr_t attr;
13631 status = pthread_attr_init(&attr);
13632 if( status ) return status;
13634 #if HAVE_PTHREADS < 7
13635 status = pthread_attr_setdetachstate(&attr, &detach);
13636 if( status < 0 ) status = errno;
13638 status = pthread_attr_setdetachstate(&attr, detach);
13640 if( status ) return status;
13641 status = pthread_create( &t, &attr, task, NULL );
13642 #if HAVE_PTHREADS < 7
13643 if( status < 0 ) status = errno;
13645 if( status ) return status;
13647 /* Draft 4 pthreads */
13648 status = pthread_create( &t, pthread_attr_default, task, NULL );
13649 if( status ) return errno;
13651 /* give thread a chance to complete */
13652 /* it should remain joinable and hence detachable */
13655 status = pthread_detach( &t );
13656 if( status ) return errno;
13659 #ifdef HAVE_LINUX_THREADS
13660 pthread_kill_other_threads_np();
13667 if { (eval echo configure:13668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13669 ol_cv_pthread_lib_lpthread_woff=yes
13671 echo "configure: failed program was:" >&5
13672 cat conftest.$ac_ext >&5
13674 ol_cv_pthread_lib_lpthread_woff=no
13678 cat > conftest.$ac_ext <<EOF
13679 #line 13680 "configure"
13680 #include "confdefs.h"
13681 /* pthread test headers */
13682 #include <pthread.h>
13683 #if HAVE_PTHREADS < 7
13687 #define NULL (void*)0
13690 static void *task(p)
13693 return (void *) (p == NULL);
13697 int main(argc, argv)
13702 /* pthread test function */
13703 #ifndef PTHREAD_CREATE_DETACHED
13704 #define PTHREAD_CREATE_DETACHED 1
13708 int detach = PTHREAD_CREATE_DETACHED;
13710 #if HAVE_PTHREADS > 4
13711 /* Final pthreads */
13712 pthread_attr_t attr;
13714 status = pthread_attr_init(&attr);
13715 if( status ) return status;
13717 #if HAVE_PTHREADS < 7
13718 status = pthread_attr_setdetachstate(&attr, &detach);
13719 if( status < 0 ) status = errno;
13721 status = pthread_attr_setdetachstate(&attr, detach);
13723 if( status ) return status;
13724 status = pthread_create( &t, &attr, task, NULL );
13725 #if HAVE_PTHREADS < 7
13726 if( status < 0 ) status = errno;
13728 if( status ) return status;
13730 /* Draft 4 pthreads */
13731 status = pthread_create( &t, pthread_attr_default, task, NULL );
13732 if( status ) return errno;
13734 /* give thread a chance to complete */
13735 /* it should remain joinable and hence detachable */
13738 status = pthread_detach( &t );
13739 if( status ) return errno;
13742 #ifdef HAVE_LINUX_THREADS
13743 pthread_kill_other_threads_np();
13751 if { (eval echo configure:13752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13753 ol_cv_pthread_lib_lpthread_woff=yes
13755 echo "configure: failed program was:" >&5
13756 cat conftest.$ac_ext >&5
13758 ol_cv_pthread_lib_lpthread_woff=no
13769 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13771 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13772 ol_link_pthreads="-lpthread -Wl,-woff,85"
13773 ol_link_threads=posix
13778 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13779 if test "$ol_link_threads" = no ; then
13781 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13782 echo "configure:13783: checking for pthread link with -lpthread" >&5
13783 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13784 echo $ac_n "(cached) $ac_c" 1>&6
13789 LIBS="-lpthread $LIBS"
13791 if test "$cross_compiling" = yes; then
13792 cat > conftest.$ac_ext <<EOF
13793 #line 13794 "configure"
13794 #include "confdefs.h"
13795 /* pthread test headers */
13796 #include <pthread.h>
13797 #if HAVE_PTHREADS < 7
13801 #define NULL (void*)0
13804 static void *task(p)
13807 return (void *) (p == NULL);
13812 /* pthread test function */
13813 #ifndef PTHREAD_CREATE_DETACHED
13814 #define PTHREAD_CREATE_DETACHED 1
13818 int detach = PTHREAD_CREATE_DETACHED;
13820 #if HAVE_PTHREADS > 4
13821 /* Final pthreads */
13822 pthread_attr_t attr;
13824 status = pthread_attr_init(&attr);
13825 if( status ) return status;
13827 #if HAVE_PTHREADS < 7
13828 status = pthread_attr_setdetachstate(&attr, &detach);
13829 if( status < 0 ) status = errno;
13831 status = pthread_attr_setdetachstate(&attr, detach);
13833 if( status ) return status;
13834 status = pthread_create( &t, &attr, task, NULL );
13835 #if HAVE_PTHREADS < 7
13836 if( status < 0 ) status = errno;
13838 if( status ) return status;
13840 /* Draft 4 pthreads */
13841 status = pthread_create( &t, pthread_attr_default, task, NULL );
13842 if( status ) return errno;
13844 /* give thread a chance to complete */
13845 /* it should remain joinable and hence detachable */
13848 status = pthread_detach( &t );
13849 if( status ) return errno;
13852 #ifdef HAVE_LINUX_THREADS
13853 pthread_kill_other_threads_np();
13860 if { (eval echo configure:13861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13862 ol_cv_pthread_lpthread=yes
13864 echo "configure: failed program was:" >&5
13865 cat conftest.$ac_ext >&5
13867 ol_cv_pthread_lpthread=no
13871 cat > conftest.$ac_ext <<EOF
13872 #line 13873 "configure"
13873 #include "confdefs.h"
13874 /* pthread test headers */
13875 #include <pthread.h>
13876 #if HAVE_PTHREADS < 7
13880 #define NULL (void*)0
13883 static void *task(p)
13886 return (void *) (p == NULL);
13890 int main(argc, argv)
13895 /* pthread test function */
13896 #ifndef PTHREAD_CREATE_DETACHED
13897 #define PTHREAD_CREATE_DETACHED 1
13901 int detach = PTHREAD_CREATE_DETACHED;
13903 #if HAVE_PTHREADS > 4
13904 /* Final pthreads */
13905 pthread_attr_t attr;
13907 status = pthread_attr_init(&attr);
13908 if( status ) return status;
13910 #if HAVE_PTHREADS < 7
13911 status = pthread_attr_setdetachstate(&attr, &detach);
13912 if( status < 0 ) status = errno;
13914 status = pthread_attr_setdetachstate(&attr, detach);
13916 if( status ) return status;
13917 status = pthread_create( &t, &attr, task, NULL );
13918 #if HAVE_PTHREADS < 7
13919 if( status < 0 ) status = errno;
13921 if( status ) return status;
13923 /* Draft 4 pthreads */
13924 status = pthread_create( &t, pthread_attr_default, task, NULL );
13925 if( status ) return errno;
13927 /* give thread a chance to complete */
13928 /* it should remain joinable and hence detachable */
13931 status = pthread_detach( &t );
13932 if( status ) return errno;
13935 #ifdef HAVE_LINUX_THREADS
13936 pthread_kill_other_threads_np();
13944 if { (eval echo configure:13945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13946 ol_cv_pthread_lpthread=yes
13948 echo "configure: failed program was:" >&5
13949 cat conftest.$ac_ext >&5
13951 ol_cv_pthread_lpthread=no
13962 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13964 if test $ol_cv_pthread_lpthread = yes ; then
13965 ol_link_pthreads="-lpthread"
13966 ol_link_threads=posix
13970 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13971 if test "$ol_link_threads" = no ; then
13973 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13974 echo "configure:13975: checking for pthread link with -lc_r" >&5
13975 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13976 echo $ac_n "(cached) $ac_c" 1>&6
13983 if test "$cross_compiling" = yes; then
13984 cat > conftest.$ac_ext <<EOF
13985 #line 13986 "configure"
13986 #include "confdefs.h"
13987 /* pthread test headers */
13988 #include <pthread.h>
13989 #if HAVE_PTHREADS < 7
13993 #define NULL (void*)0
13996 static void *task(p)
13999 return (void *) (p == NULL);
14004 /* pthread test function */
14005 #ifndef PTHREAD_CREATE_DETACHED
14006 #define PTHREAD_CREATE_DETACHED 1
14010 int detach = PTHREAD_CREATE_DETACHED;
14012 #if HAVE_PTHREADS > 4
14013 /* Final pthreads */
14014 pthread_attr_t attr;
14016 status = pthread_attr_init(&attr);
14017 if( status ) return status;
14019 #if HAVE_PTHREADS < 7
14020 status = pthread_attr_setdetachstate(&attr, &detach);
14021 if( status < 0 ) status = errno;
14023 status = pthread_attr_setdetachstate(&attr, detach);
14025 if( status ) return status;
14026 status = pthread_create( &t, &attr, task, NULL );
14027 #if HAVE_PTHREADS < 7
14028 if( status < 0 ) status = errno;
14030 if( status ) return status;
14032 /* Draft 4 pthreads */
14033 status = pthread_create( &t, pthread_attr_default, task, NULL );
14034 if( status ) return errno;
14036 /* give thread a chance to complete */
14037 /* it should remain joinable and hence detachable */
14040 status = pthread_detach( &t );
14041 if( status ) return errno;
14044 #ifdef HAVE_LINUX_THREADS
14045 pthread_kill_other_threads_np();
14052 if { (eval echo configure:14053: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14054 ol_cv_pthread_lc_r=yes
14056 echo "configure: failed program was:" >&5
14057 cat conftest.$ac_ext >&5
14059 ol_cv_pthread_lc_r=no
14063 cat > conftest.$ac_ext <<EOF
14064 #line 14065 "configure"
14065 #include "confdefs.h"
14066 /* pthread test headers */
14067 #include <pthread.h>
14068 #if HAVE_PTHREADS < 7
14072 #define NULL (void*)0
14075 static void *task(p)
14078 return (void *) (p == NULL);
14082 int main(argc, argv)
14087 /* pthread test function */
14088 #ifndef PTHREAD_CREATE_DETACHED
14089 #define PTHREAD_CREATE_DETACHED 1
14093 int detach = PTHREAD_CREATE_DETACHED;
14095 #if HAVE_PTHREADS > 4
14096 /* Final pthreads */
14097 pthread_attr_t attr;
14099 status = pthread_attr_init(&attr);
14100 if( status ) return status;
14102 #if HAVE_PTHREADS < 7
14103 status = pthread_attr_setdetachstate(&attr, &detach);
14104 if( status < 0 ) status = errno;
14106 status = pthread_attr_setdetachstate(&attr, detach);
14108 if( status ) return status;
14109 status = pthread_create( &t, &attr, task, NULL );
14110 #if HAVE_PTHREADS < 7
14111 if( status < 0 ) status = errno;
14113 if( status ) return status;
14115 /* Draft 4 pthreads */
14116 status = pthread_create( &t, pthread_attr_default, task, NULL );
14117 if( status ) return errno;
14119 /* give thread a chance to complete */
14120 /* it should remain joinable and hence detachable */
14123 status = pthread_detach( &t );
14124 if( status ) return errno;
14127 #ifdef HAVE_LINUX_THREADS
14128 pthread_kill_other_threads_np();
14136 if { (eval echo configure:14137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
14138 ol_cv_pthread_lc_r=yes
14140 echo "configure: failed program was:" >&5
14141 cat conftest.$ac_ext >&5
14143 ol_cv_pthread_lc_r=no
14154 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
14156 if test $ol_cv_pthread_lc_r = yes ; then
14157 ol_link_pthreads="-lc_r"
14158 ol_link_threads=posix
14163 # Pthread try link: -threads (ol_cv_pthread_threads)
14164 if test "$ol_link_threads" = no ; then
14166 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
14167 echo "configure:14168: checking for pthread link with -threads" >&5
14168 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
14169 echo $ac_n "(cached) $ac_c" 1>&6
14174 LIBS="-threads $LIBS"
14176 if test "$cross_compiling" = yes; then
14177 cat > conftest.$ac_ext <<EOF
14178 #line 14179 "configure"
14179 #include "confdefs.h"
14180 /* pthread test headers */
14181 #include <pthread.h>
14182 #if HAVE_PTHREADS < 7
14186 #define NULL (void*)0
14189 static void *task(p)
14192 return (void *) (p == NULL);
14197 /* pthread test function */
14198 #ifndef PTHREAD_CREATE_DETACHED
14199 #define PTHREAD_CREATE_DETACHED 1
14203 int detach = PTHREAD_CREATE_DETACHED;
14205 #if HAVE_PTHREADS > 4
14206 /* Final pthreads */
14207 pthread_attr_t attr;
14209 status = pthread_attr_init(&attr);
14210 if( status ) return status;
14212 #if HAVE_PTHREADS < 7
14213 status = pthread_attr_setdetachstate(&attr, &detach);
14214 if( status < 0 ) status = errno;
14216 status = pthread_attr_setdetachstate(&attr, detach);
14218 if( status ) return status;
14219 status = pthread_create( &t, &attr, task, NULL );
14220 #if HAVE_PTHREADS < 7
14221 if( status < 0 ) status = errno;
14223 if( status ) return status;
14225 /* Draft 4 pthreads */
14226 status = pthread_create( &t, pthread_attr_default, task, NULL );
14227 if( status ) return errno;
14229 /* give thread a chance to complete */
14230 /* it should remain joinable and hence detachable */
14233 status = pthread_detach( &t );
14234 if( status ) return errno;
14237 #ifdef HAVE_LINUX_THREADS
14238 pthread_kill_other_threads_np();
14245 if { (eval echo configure:14246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14247 ol_cv_pthread_threads=yes
14249 echo "configure: failed program was:" >&5
14250 cat conftest.$ac_ext >&5
14252 ol_cv_pthread_threads=no
14256 cat > conftest.$ac_ext <<EOF
14257 #line 14258 "configure"
14258 #include "confdefs.h"
14259 /* pthread test headers */
14260 #include <pthread.h>
14261 #if HAVE_PTHREADS < 7
14265 #define NULL (void*)0
14268 static void *task(p)
14271 return (void *) (p == NULL);
14275 int main(argc, argv)
14280 /* pthread test function */
14281 #ifndef PTHREAD_CREATE_DETACHED
14282 #define PTHREAD_CREATE_DETACHED 1
14286 int detach = PTHREAD_CREATE_DETACHED;
14288 #if HAVE_PTHREADS > 4
14289 /* Final pthreads */
14290 pthread_attr_t attr;
14292 status = pthread_attr_init(&attr);
14293 if( status ) return status;
14295 #if HAVE_PTHREADS < 7
14296 status = pthread_attr_setdetachstate(&attr, &detach);
14297 if( status < 0 ) status = errno;
14299 status = pthread_attr_setdetachstate(&attr, detach);
14301 if( status ) return status;
14302 status = pthread_create( &t, &attr, task, NULL );
14303 #if HAVE_PTHREADS < 7
14304 if( status < 0 ) status = errno;
14306 if( status ) return status;
14308 /* Draft 4 pthreads */
14309 status = pthread_create( &t, pthread_attr_default, task, NULL );
14310 if( status ) return errno;
14312 /* give thread a chance to complete */
14313 /* it should remain joinable and hence detachable */
14316 status = pthread_detach( &t );
14317 if( status ) return errno;
14320 #ifdef HAVE_LINUX_THREADS
14321 pthread_kill_other_threads_np();
14329 if { (eval echo configure:14330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
14331 ol_cv_pthread_threads=yes
14333 echo "configure: failed program was:" >&5
14334 cat conftest.$ac_ext >&5
14336 ol_cv_pthread_threads=no
14347 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
14349 if test $ol_cv_pthread_threads = yes ; then
14350 ol_link_pthreads="-threads"
14351 ol_link_threads=posix
14356 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
14357 if test "$ol_link_threads" = no ; then
14358 # try -lpthreads -lmach -lexc -lc_r
14359 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
14360 echo "configure:14361: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
14361 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
14362 echo $ac_n "(cached) $ac_c" 1>&6
14367 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
14369 if test "$cross_compiling" = yes; then
14370 cat > conftest.$ac_ext <<EOF
14371 #line 14372 "configure"
14372 #include "confdefs.h"
14373 /* pthread test headers */
14374 #include <pthread.h>
14375 #if HAVE_PTHREADS < 7
14379 #define NULL (void*)0
14382 static void *task(p)
14385 return (void *) (p == NULL);
14390 /* pthread test function */
14391 #ifndef PTHREAD_CREATE_DETACHED
14392 #define PTHREAD_CREATE_DETACHED 1
14396 int detach = PTHREAD_CREATE_DETACHED;
14398 #if HAVE_PTHREADS > 4
14399 /* Final pthreads */
14400 pthread_attr_t attr;
14402 status = pthread_attr_init(&attr);
14403 if( status ) return status;
14405 #if HAVE_PTHREADS < 7
14406 status = pthread_attr_setdetachstate(&attr, &detach);
14407 if( status < 0 ) status = errno;
14409 status = pthread_attr_setdetachstate(&attr, detach);
14411 if( status ) return status;
14412 status = pthread_create( &t, &attr, task, NULL );
14413 #if HAVE_PTHREADS < 7
14414 if( status < 0 ) status = errno;
14416 if( status ) return status;
14418 /* Draft 4 pthreads */
14419 status = pthread_create( &t, pthread_attr_default, task, NULL );
14420 if( status ) return errno;
14422 /* give thread a chance to complete */
14423 /* it should remain joinable and hence detachable */
14426 status = pthread_detach( &t );
14427 if( status ) return errno;
14430 #ifdef HAVE_LINUX_THREADS
14431 pthread_kill_other_threads_np();
14438 if { (eval echo configure:14439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14440 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14442 echo "configure: failed program was:" >&5
14443 cat conftest.$ac_ext >&5
14445 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14449 cat > conftest.$ac_ext <<EOF
14450 #line 14451 "configure"
14451 #include "confdefs.h"
14452 /* pthread test headers */
14453 #include <pthread.h>
14454 #if HAVE_PTHREADS < 7
14458 #define NULL (void*)0
14461 static void *task(p)
14464 return (void *) (p == NULL);
14468 int main(argc, argv)
14473 /* pthread test function */
14474 #ifndef PTHREAD_CREATE_DETACHED
14475 #define PTHREAD_CREATE_DETACHED 1
14479 int detach = PTHREAD_CREATE_DETACHED;
14481 #if HAVE_PTHREADS > 4
14482 /* Final pthreads */
14483 pthread_attr_t attr;
14485 status = pthread_attr_init(&attr);
14486 if( status ) return status;
14488 #if HAVE_PTHREADS < 7
14489 status = pthread_attr_setdetachstate(&attr, &detach);
14490 if( status < 0 ) status = errno;
14492 status = pthread_attr_setdetachstate(&attr, detach);
14494 if( status ) return status;
14495 status = pthread_create( &t, &attr, task, NULL );
14496 #if HAVE_PTHREADS < 7
14497 if( status < 0 ) status = errno;
14499 if( status ) return status;
14501 /* Draft 4 pthreads */
14502 status = pthread_create( &t, pthread_attr_default, task, NULL );
14503 if( status ) return errno;
14505 /* give thread a chance to complete */
14506 /* it should remain joinable and hence detachable */
14509 status = pthread_detach( &t );
14510 if( status ) return errno;
14513 #ifdef HAVE_LINUX_THREADS
14514 pthread_kill_other_threads_np();
14522 if { (eval echo configure:14523: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
14524 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14526 echo "configure: failed program was:" >&5
14527 cat conftest.$ac_ext >&5
14529 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14540 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14542 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14543 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14544 ol_link_threads=posix
14548 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14549 if test "$ol_link_threads" = no ; then
14550 # try -lpthreads -lmach -lexc
14551 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14552 echo "configure:14553: checking for pthread link with -lpthreads -lmach -lexc" >&5
14553 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14554 echo $ac_n "(cached) $ac_c" 1>&6
14559 LIBS="-lpthreads -lmach -lexc $LIBS"
14561 if test "$cross_compiling" = yes; then
14562 cat > conftest.$ac_ext <<EOF
14563 #line 14564 "configure"
14564 #include "confdefs.h"
14565 /* pthread test headers */
14566 #include <pthread.h>
14567 #if HAVE_PTHREADS < 7
14571 #define NULL (void*)0
14574 static void *task(p)
14577 return (void *) (p == NULL);
14582 /* pthread test function */
14583 #ifndef PTHREAD_CREATE_DETACHED
14584 #define PTHREAD_CREATE_DETACHED 1
14588 int detach = PTHREAD_CREATE_DETACHED;
14590 #if HAVE_PTHREADS > 4
14591 /* Final pthreads */
14592 pthread_attr_t attr;
14594 status = pthread_attr_init(&attr);
14595 if( status ) return status;
14597 #if HAVE_PTHREADS < 7
14598 status = pthread_attr_setdetachstate(&attr, &detach);
14599 if( status < 0 ) status = errno;
14601 status = pthread_attr_setdetachstate(&attr, detach);
14603 if( status ) return status;
14604 status = pthread_create( &t, &attr, task, NULL );
14605 #if HAVE_PTHREADS < 7
14606 if( status < 0 ) status = errno;
14608 if( status ) return status;
14610 /* Draft 4 pthreads */
14611 status = pthread_create( &t, pthread_attr_default, task, NULL );
14612 if( status ) return errno;
14614 /* give thread a chance to complete */
14615 /* it should remain joinable and hence detachable */
14618 status = pthread_detach( &t );
14619 if( status ) return errno;
14622 #ifdef HAVE_LINUX_THREADS
14623 pthread_kill_other_threads_np();
14630 if { (eval echo configure:14631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14632 ol_cv_pthread_lpthreads_lmach_lexc=yes
14634 echo "configure: failed program was:" >&5
14635 cat conftest.$ac_ext >&5
14637 ol_cv_pthread_lpthreads_lmach_lexc=no
14641 cat > conftest.$ac_ext <<EOF
14642 #line 14643 "configure"
14643 #include "confdefs.h"
14644 /* pthread test headers */
14645 #include <pthread.h>
14646 #if HAVE_PTHREADS < 7
14650 #define NULL (void*)0
14653 static void *task(p)
14656 return (void *) (p == NULL);
14660 int main(argc, argv)
14665 /* pthread test function */
14666 #ifndef PTHREAD_CREATE_DETACHED
14667 #define PTHREAD_CREATE_DETACHED 1
14671 int detach = PTHREAD_CREATE_DETACHED;
14673 #if HAVE_PTHREADS > 4
14674 /* Final pthreads */
14675 pthread_attr_t attr;
14677 status = pthread_attr_init(&attr);
14678 if( status ) return status;
14680 #if HAVE_PTHREADS < 7
14681 status = pthread_attr_setdetachstate(&attr, &detach);
14682 if( status < 0 ) status = errno;
14684 status = pthread_attr_setdetachstate(&attr, detach);
14686 if( status ) return status;
14687 status = pthread_create( &t, &attr, task, NULL );
14688 #if HAVE_PTHREADS < 7
14689 if( status < 0 ) status = errno;
14691 if( status ) return status;
14693 /* Draft 4 pthreads */
14694 status = pthread_create( &t, pthread_attr_default, task, NULL );
14695 if( status ) return errno;
14697 /* give thread a chance to complete */
14698 /* it should remain joinable and hence detachable */
14701 status = pthread_detach( &t );
14702 if( status ) return errno;
14705 #ifdef HAVE_LINUX_THREADS
14706 pthread_kill_other_threads_np();
14714 if { (eval echo configure:14715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
14716 ol_cv_pthread_lpthreads_lmach_lexc=yes
14718 echo "configure: failed program was:" >&5
14719 cat conftest.$ac_ext >&5
14721 ol_cv_pthread_lpthreads_lmach_lexc=no
14732 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14734 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14735 ol_link_pthreads="-lpthreads -lmach -lexc"
14736 ol_link_threads=posix
14740 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14741 if test "$ol_link_threads" = no ; then
14742 # try -lpthreads -lexc
14743 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14744 echo "configure:14745: checking for pthread link with -lpthreads -lexc" >&5
14745 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14746 echo $ac_n "(cached) $ac_c" 1>&6
14751 LIBS="-lpthreads -lexc $LIBS"
14753 if test "$cross_compiling" = yes; then
14754 cat > conftest.$ac_ext <<EOF
14755 #line 14756 "configure"
14756 #include "confdefs.h"
14757 /* pthread test headers */
14758 #include <pthread.h>
14759 #if HAVE_PTHREADS < 7
14763 #define NULL (void*)0
14766 static void *task(p)
14769 return (void *) (p == NULL);
14774 /* pthread test function */
14775 #ifndef PTHREAD_CREATE_DETACHED
14776 #define PTHREAD_CREATE_DETACHED 1
14780 int detach = PTHREAD_CREATE_DETACHED;
14782 #if HAVE_PTHREADS > 4
14783 /* Final pthreads */
14784 pthread_attr_t attr;
14786 status = pthread_attr_init(&attr);
14787 if( status ) return status;
14789 #if HAVE_PTHREADS < 7
14790 status = pthread_attr_setdetachstate(&attr, &detach);
14791 if( status < 0 ) status = errno;
14793 status = pthread_attr_setdetachstate(&attr, detach);
14795 if( status ) return status;
14796 status = pthread_create( &t, &attr, task, NULL );
14797 #if HAVE_PTHREADS < 7
14798 if( status < 0 ) status = errno;
14800 if( status ) return status;
14802 /* Draft 4 pthreads */
14803 status = pthread_create( &t, pthread_attr_default, task, NULL );
14804 if( status ) return errno;
14806 /* give thread a chance to complete */
14807 /* it should remain joinable and hence detachable */
14810 status = pthread_detach( &t );
14811 if( status ) return errno;
14814 #ifdef HAVE_LINUX_THREADS
14815 pthread_kill_other_threads_np();
14822 if { (eval echo configure:14823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14824 ol_cv_pthread_lpthreads_lexc=yes
14826 echo "configure: failed program was:" >&5
14827 cat conftest.$ac_ext >&5
14829 ol_cv_pthread_lpthreads_lexc=no
14833 cat > conftest.$ac_ext <<EOF
14834 #line 14835 "configure"
14835 #include "confdefs.h"
14836 /* pthread test headers */
14837 #include <pthread.h>
14838 #if HAVE_PTHREADS < 7
14842 #define NULL (void*)0
14845 static void *task(p)
14848 return (void *) (p == NULL);
14852 int main(argc, argv)
14857 /* pthread test function */
14858 #ifndef PTHREAD_CREATE_DETACHED
14859 #define PTHREAD_CREATE_DETACHED 1
14863 int detach = PTHREAD_CREATE_DETACHED;
14865 #if HAVE_PTHREADS > 4
14866 /* Final pthreads */
14867 pthread_attr_t attr;
14869 status = pthread_attr_init(&attr);
14870 if( status ) return status;
14872 #if HAVE_PTHREADS < 7
14873 status = pthread_attr_setdetachstate(&attr, &detach);
14874 if( status < 0 ) status = errno;
14876 status = pthread_attr_setdetachstate(&attr, detach);
14878 if( status ) return status;
14879 status = pthread_create( &t, &attr, task, NULL );
14880 #if HAVE_PTHREADS < 7
14881 if( status < 0 ) status = errno;
14883 if( status ) return status;
14885 /* Draft 4 pthreads */
14886 status = pthread_create( &t, pthread_attr_default, task, NULL );
14887 if( status ) return errno;
14889 /* give thread a chance to complete */
14890 /* it should remain joinable and hence detachable */
14893 status = pthread_detach( &t );
14894 if( status ) return errno;
14897 #ifdef HAVE_LINUX_THREADS
14898 pthread_kill_other_threads_np();
14906 if { (eval echo configure:14907: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
14908 ol_cv_pthread_lpthreads_lexc=yes
14910 echo "configure: failed program was:" >&5
14911 cat conftest.$ac_ext >&5
14913 ol_cv_pthread_lpthreads_lexc=no
14924 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14926 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14927 ol_link_pthreads="-lpthreads -lexc"
14928 ol_link_threads=posix
14933 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14934 if test "$ol_link_threads" = no ; then
14936 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14937 echo "configure:14938: checking for pthread link with -lpthreads" >&5
14938 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14939 echo $ac_n "(cached) $ac_c" 1>&6
14944 LIBS="-lpthreads $LIBS"
14946 if test "$cross_compiling" = yes; then
14947 cat > conftest.$ac_ext <<EOF
14948 #line 14949 "configure"
14949 #include "confdefs.h"
14950 /* pthread test headers */
14951 #include <pthread.h>
14952 #if HAVE_PTHREADS < 7
14956 #define NULL (void*)0
14959 static void *task(p)
14962 return (void *) (p == NULL);
14967 /* pthread test function */
14968 #ifndef PTHREAD_CREATE_DETACHED
14969 #define PTHREAD_CREATE_DETACHED 1
14973 int detach = PTHREAD_CREATE_DETACHED;
14975 #if HAVE_PTHREADS > 4
14976 /* Final pthreads */
14977 pthread_attr_t attr;
14979 status = pthread_attr_init(&attr);
14980 if( status ) return status;
14982 #if HAVE_PTHREADS < 7
14983 status = pthread_attr_setdetachstate(&attr, &detach);
14984 if( status < 0 ) status = errno;
14986 status = pthread_attr_setdetachstate(&attr, detach);
14988 if( status ) return status;
14989 status = pthread_create( &t, &attr, task, NULL );
14990 #if HAVE_PTHREADS < 7
14991 if( status < 0 ) status = errno;
14993 if( status ) return status;
14995 /* Draft 4 pthreads */
14996 status = pthread_create( &t, pthread_attr_default, task, NULL );
14997 if( status ) return errno;
14999 /* give thread a chance to complete */
15000 /* it should remain joinable and hence detachable */
15003 status = pthread_detach( &t );
15004 if( status ) return errno;
15007 #ifdef HAVE_LINUX_THREADS
15008 pthread_kill_other_threads_np();
15015 if { (eval echo configure:15016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15017 ol_cv_pthread_lib_lpthreads=yes
15019 echo "configure: failed program was:" >&5
15020 cat conftest.$ac_ext >&5
15022 ol_cv_pthread_lib_lpthreads=no
15026 cat > conftest.$ac_ext <<EOF
15027 #line 15028 "configure"
15028 #include "confdefs.h"
15029 /* pthread test headers */
15030 #include <pthread.h>
15031 #if HAVE_PTHREADS < 7
15035 #define NULL (void*)0
15038 static void *task(p)
15041 return (void *) (p == NULL);
15045 int main(argc, argv)
15050 /* pthread test function */
15051 #ifndef PTHREAD_CREATE_DETACHED
15052 #define PTHREAD_CREATE_DETACHED 1
15056 int detach = PTHREAD_CREATE_DETACHED;
15058 #if HAVE_PTHREADS > 4
15059 /* Final pthreads */
15060 pthread_attr_t attr;
15062 status = pthread_attr_init(&attr);
15063 if( status ) return status;
15065 #if HAVE_PTHREADS < 7
15066 status = pthread_attr_setdetachstate(&attr, &detach);
15067 if( status < 0 ) status = errno;
15069 status = pthread_attr_setdetachstate(&attr, detach);
15071 if( status ) return status;
15072 status = pthread_create( &t, &attr, task, NULL );
15073 #if HAVE_PTHREADS < 7
15074 if( status < 0 ) status = errno;
15076 if( status ) return status;
15078 /* Draft 4 pthreads */
15079 status = pthread_create( &t, pthread_attr_default, task, NULL );
15080 if( status ) return errno;
15082 /* give thread a chance to complete */
15083 /* it should remain joinable and hence detachable */
15086 status = pthread_detach( &t );
15087 if( status ) return errno;
15090 #ifdef HAVE_LINUX_THREADS
15091 pthread_kill_other_threads_np();
15099 if { (eval echo configure:15100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
15101 ol_cv_pthread_lib_lpthreads=yes
15103 echo "configure: failed program was:" >&5
15104 cat conftest.$ac_ext >&5
15106 ol_cv_pthread_lib_lpthreads=no
15117 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
15119 if test $ol_cv_pthread_lib_lpthreads = yes ; then
15120 ol_link_pthreads="-lpthreads"
15121 ol_link_threads=posix
15126 if test $ol_link_threads != no ; then
15127 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
15129 save_CPPFLAGS="$CPPFLAGS"
15131 LIBS="$LTHREAD_LIBS $LIBS"
15133 for ac_func in sched_yield pthread_yield thr_yield
15135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15136 echo "configure:15137: checking for $ac_func" >&5
15137 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15138 echo $ac_n "(cached) $ac_c" 1>&6
15140 cat > conftest.$ac_ext <<EOF
15141 #line 15142 "configure"
15142 #include "confdefs.h"
15143 /* System header to define __stub macros and hopefully few prototypes,
15144 which can conflict with char $ac_func(); below. */
15145 #include <assert.h>
15146 /* Override any gcc2 internal prototype to avoid an error. */
15147 /* We use char because int might match the return type of a gcc2
15148 builtin and then its argument prototype would still apply. */
15154 /* The GNU C library defines this for functions which it implements
15155 to always fail with ENOSYS. Some functions are actually named
15156 something starting with __ and the normal name is an alias. */
15157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15165 if { (eval echo configure:15166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15167 eval "ac_cv_func_$ac_func=yes"
15169 echo "configure: failed program was:" >&5
15170 cat conftest.$ac_ext >&5
15172 eval "ac_cv_func_$ac_func=no"
15177 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15178 echo "$ac_t""yes" 1>&6
15179 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15180 cat >> confdefs.h <<EOF
15181 #define $ac_tr_func 1
15185 echo "$ac_t""no" 1>&6
15190 if test $ac_cv_func_sched_yield = no -a \
15191 $ac_cv_func_pthread_yield = no -a \
15192 $ac_cv_func_thr_yield = no ; then
15193 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
15194 echo "configure:15195: checking for sched_yield in -lrt" >&5
15195 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
15196 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15197 echo $ac_n "(cached) $ac_c" 1>&6
15199 ac_save_LIBS="$LIBS"
15201 cat > conftest.$ac_ext <<EOF
15202 #line 15203 "configure"
15203 #include "confdefs.h"
15204 /* Override any gcc2 internal prototype to avoid an error. */
15205 /* We use char because int might match the return type of a gcc2
15206 builtin and then its argument prototype would still apply. */
15207 char sched_yield();
15213 if { (eval echo configure:15214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15215 eval "ac_cv_lib_$ac_lib_var=yes"
15217 echo "configure: failed program was:" >&5
15218 cat conftest.$ac_ext >&5
15220 eval "ac_cv_lib_$ac_lib_var=no"
15223 LIBS="$ac_save_LIBS"
15226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15227 echo "$ac_t""yes" 1>&6
15228 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
15229 cat >> confdefs.h <<\EOF
15230 #define HAVE_SCHED_YIELD 1
15233 ac_cv_func_sched_yield=yes
15235 echo "$ac_t""no" 1>&6
15236 ac_cv_func_sched_yield=no
15240 if test $ac_cv_func_sched_yield = no -a \
15241 $ac_cv_func_pthread_yield = no -a \
15242 "$ac_cv_func_thr_yield" = no ; then
15243 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
15246 for ac_func in pthread_kill pthread_rwlock_destroy
15248 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15249 echo "configure:15250: checking for $ac_func" >&5
15250 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15251 echo $ac_n "(cached) $ac_c" 1>&6
15253 cat > conftest.$ac_ext <<EOF
15254 #line 15255 "configure"
15255 #include "confdefs.h"
15256 /* System header to define __stub macros and hopefully few prototypes,
15257 which can conflict with char $ac_func(); below. */
15258 #include <assert.h>
15259 /* Override any gcc2 internal prototype to avoid an error. */
15260 /* We use char because int might match the return type of a gcc2
15261 builtin and then its argument prototype would still apply. */
15267 /* The GNU C library defines this for functions which it implements
15268 to always fail with ENOSYS. Some functions are actually named
15269 something starting with __ and the normal name is an alias. */
15270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15278 if { (eval echo configure:15279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15280 eval "ac_cv_func_$ac_func=yes"
15282 echo "configure: failed program was:" >&5
15283 cat conftest.$ac_ext >&5
15285 eval "ac_cv_func_$ac_func=no"
15290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15291 echo "$ac_t""yes" 1>&6
15292 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15293 cat >> confdefs.h <<EOF
15294 #define $ac_tr_func 1
15298 echo "$ac_t""no" 1>&6
15303 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
15304 echo "configure:15305: checking for pthread_detach with <pthread.h>" >&5
15305 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
15306 echo $ac_n "(cached) $ac_c" 1>&6
15309 cat > conftest.$ac_ext <<EOF
15310 #line 15311 "configure"
15311 #include "confdefs.h"
15313 #include <pthread.h>
15315 #define NULL (void*)0
15319 pthread_detach(NULL);
15322 if { (eval echo configure:15323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15324 ol_cv_func_pthread_detach=yes
15326 echo "configure: failed program was:" >&5
15327 cat conftest.$ac_ext >&5
15329 ol_cv_func_pthread_detach=no
15335 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
15337 if test $ol_cv_func_pthread_detach = no ; then
15338 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
15341 cat >> confdefs.h <<\EOF
15342 #define HAVE_PTHREAD_DETACH 1
15347 pthread_setconcurrency \
15348 pthread_getconcurrency \
15349 thr_setconcurrency \
15350 thr_getconcurrency \
15353 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15354 echo "configure:15355: checking for $ac_func" >&5
15355 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15356 echo $ac_n "(cached) $ac_c" 1>&6
15358 cat > conftest.$ac_ext <<EOF
15359 #line 15360 "configure"
15360 #include "confdefs.h"
15361 /* System header to define __stub macros and hopefully few prototypes,
15362 which can conflict with char $ac_func(); below. */
15363 #include <assert.h>
15364 /* Override any gcc2 internal prototype to avoid an error. */
15365 /* We use char because int might match the return type of a gcc2
15366 builtin and then its argument prototype would still apply. */
15372 /* The GNU C library defines this for functions which it implements
15373 to always fail with ENOSYS. Some functions are actually named
15374 something starting with __ and the normal name is an alias. */
15375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15383 if { (eval echo configure:15384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15385 eval "ac_cv_func_$ac_func=yes"
15387 echo "configure: failed program was:" >&5
15388 cat conftest.$ac_ext >&5
15390 eval "ac_cv_func_$ac_func=no"
15395 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15396 echo "$ac_t""yes" 1>&6
15397 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15398 cat >> confdefs.h <<EOF
15399 #define $ac_tr_func 1
15403 echo "$ac_t""no" 1>&6
15409 for ac_func in pthread_kill_other_threads_np
15411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15412 echo "configure:15413: checking for $ac_func" >&5
15413 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15414 echo $ac_n "(cached) $ac_c" 1>&6
15416 cat > conftest.$ac_ext <<EOF
15417 #line 15418 "configure"
15418 #include "confdefs.h"
15419 /* System header to define __stub macros and hopefully few prototypes,
15420 which can conflict with char $ac_func(); below. */
15421 #include <assert.h>
15422 /* Override any gcc2 internal prototype to avoid an error. */
15423 /* We use char because int might match the return type of a gcc2
15424 builtin and then its argument prototype would still apply. */
15430 /* The GNU C library defines this for functions which it implements
15431 to always fail with ENOSYS. Some functions are actually named
15432 something starting with __ and the normal name is an alias. */
15433 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15441 if { (eval echo configure:15442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15443 eval "ac_cv_func_$ac_func=yes"
15445 echo "configure: failed program was:" >&5
15446 cat conftest.$ac_ext >&5
15448 eval "ac_cv_func_$ac_func=no"
15453 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15454 echo "$ac_t""yes" 1>&6
15455 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15456 cat >> confdefs.h <<EOF
15457 #define $ac_tr_func 1
15461 echo "$ac_t""no" 1>&6
15465 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15466 echo "configure:15467: checking for LinuxThreads implementation" >&5
15467 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15468 echo $ac_n "(cached) $ac_c" 1>&6
15470 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15473 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15478 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15479 echo "configure:15480: checking for LinuxThreads consistency" >&5
15480 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15481 echo $ac_n "(cached) $ac_c" 1>&6
15484 if test $ol_cv_header_linux_threads = yes -a \
15485 $ol_cv_sys_linux_threads = yes; then
15486 ol_cv_linux_threads=yes
15487 elif test $ol_cv_header_linux_threads = no -a \
15488 $ol_cv_sys_linux_threads = no; then
15489 ol_cv_linux_threads=no
15491 ol_cv_linux_threads=error
15496 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15499 if test $ol_cv_linux_threads = error; then
15500 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15503 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15504 echo "configure:15505: checking if pthread_create() works" >&5
15505 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15506 echo $ac_n "(cached) $ac_c" 1>&6
15509 if test "$cross_compiling" = yes; then
15510 ol_cv_pthread_create_works=yes
15512 cat > conftest.$ac_ext <<EOF
15513 #line 15514 "configure"
15514 #include "confdefs.h"
15515 /* pthread test headers */
15516 #include <pthread.h>
15517 #if HAVE_PTHREADS < 7
15521 #define NULL (void*)0
15524 static void *task(p)
15527 return (void *) (p == NULL);
15531 int main(argc, argv)
15536 /* pthread test function */
15537 #ifndef PTHREAD_CREATE_DETACHED
15538 #define PTHREAD_CREATE_DETACHED 1
15542 int detach = PTHREAD_CREATE_DETACHED;
15544 #if HAVE_PTHREADS > 4
15545 /* Final pthreads */
15546 pthread_attr_t attr;
15548 status = pthread_attr_init(&attr);
15549 if( status ) return status;
15551 #if HAVE_PTHREADS < 7
15552 status = pthread_attr_setdetachstate(&attr, &detach);
15553 if( status < 0 ) status = errno;
15555 status = pthread_attr_setdetachstate(&attr, detach);
15557 if( status ) return status;
15558 status = pthread_create( &t, &attr, task, NULL );
15559 #if HAVE_PTHREADS < 7
15560 if( status < 0 ) status = errno;
15562 if( status ) return status;
15564 /* Draft 4 pthreads */
15565 status = pthread_create( &t, pthread_attr_default, task, NULL );
15566 if( status ) return errno;
15568 /* give thread a chance to complete */
15569 /* it should remain joinable and hence detachable */
15572 status = pthread_detach( &t );
15573 if( status ) return errno;
15576 #ifdef HAVE_LINUX_THREADS
15577 pthread_kill_other_threads_np();
15585 if { (eval echo configure:15586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
15587 ol_cv_pthread_create_works=yes
15589 echo "configure: failed program was:" >&5
15590 cat conftest.$ac_ext >&5
15592 ol_cv_pthread_create_works=no
15599 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15601 if test $ol_cv_pthread_create_works = no ; then
15602 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15605 if test $ol_with_yielding_select = auto ; then
15606 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15607 echo "configure:15608: checking if select yields when using pthreads" >&5
15608 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15609 echo $ac_n "(cached) $ac_c" 1>&6
15612 if test "$cross_compiling" = yes; then
15613 ol_cv_pthread_select_yields=cross
15615 cat > conftest.$ac_ext <<EOF
15616 #line 15617 "configure"
15617 #include "confdefs.h"
15619 #include <sys/types.h>
15620 #include <sys/time.h>
15621 #include <unistd.h>
15622 #include <pthread.h>
15624 #define NULL (void*) 0
15627 static int fildes[2];
15629 static void *task(p)
15641 FD_SET(fildes[0], &rfds);
15643 /* we're not interested in any fds */
15644 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15651 exit(0); /* if we exit here, the select blocked the whole process */
15654 int main(argc, argv)
15660 /* create a pipe to select */
15661 if(pipe(&fildes[0])) {
15666 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15667 (void) pthread_setconcurrency(2);
15669 #ifdef HAVE_THR_SETCONCURRENCY
15670 /* Set Solaris LWP concurrency to 2 */
15671 thr_setconcurrency(2);
15675 #if HAVE_PTHREADS < 6
15676 pthread_create(&t, pthread_attr_default, task, NULL);
15678 pthread_create(&t, NULL, task, NULL);
15681 /* make sure task runs first */
15684 #elif defined( HAVE_SCHED_YIELD )
15686 #elif defined( HAVE_PTHREAD_YIELD )
15693 if { (eval echo configure:15694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
15695 ol_cv_pthread_select_yields=no
15697 echo "configure: failed program was:" >&5
15698 cat conftest.$ac_ext >&5
15700 ol_cv_pthread_select_yields=yes
15707 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15709 if test $ol_cv_pthread_select_yields = cross ; then
15710 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15713 if test $ol_cv_pthread_select_yields = yes ; then
15714 ol_with_yielding_select=yes
15718 CPPFLAGS="$save_CPPFLAGS"
15721 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15725 if test $ol_with_threads = posix ; then
15726 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15730 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15731 -o $ol_with_threads = mach ; then
15733 for ac_hdr in mach/cthreads.h cthreads.h
15735 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15737 echo "configure:15738: checking for $ac_hdr" >&5
15738 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15739 echo $ac_n "(cached) $ac_c" 1>&6
15741 cat > conftest.$ac_ext <<EOF
15742 #line 15743 "configure"
15743 #include "confdefs.h"
15746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15747 { (eval echo configure:15748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15749 if test -z "$ac_err"; then
15751 eval "ac_cv_header_$ac_safe=yes"
15754 echo "configure: failed program was:" >&5
15755 cat conftest.$ac_ext >&5
15757 eval "ac_cv_header_$ac_safe=no"
15761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15762 echo "$ac_t""yes" 1>&6
15763 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15764 cat >> confdefs.h <<EOF
15765 #define $ac_tr_hdr 1
15769 echo "$ac_t""no" 1>&6
15773 if test $ac_cv_header_mach_cthreads_h = yes ; then
15774 ol_with_threads=found
15776 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15777 echo "configure:15778: checking for cthread_fork" >&5
15778 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15779 echo $ac_n "(cached) $ac_c" 1>&6
15781 cat > conftest.$ac_ext <<EOF
15782 #line 15783 "configure"
15783 #include "confdefs.h"
15784 /* System header to define __stub macros and hopefully few prototypes,
15785 which can conflict with char cthread_fork(); below. */
15786 #include <assert.h>
15787 /* Override any gcc2 internal prototype to avoid an error. */
15788 /* We use char because int might match the return type of a gcc2
15789 builtin and then its argument prototype would still apply. */
15790 char cthread_fork();
15795 /* The GNU C library defines this for functions which it implements
15796 to always fail with ENOSYS. Some functions are actually named
15797 something starting with __ and the normal name is an alias. */
15798 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15806 if { (eval echo configure:15807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15808 eval "ac_cv_func_cthread_fork=yes"
15810 echo "configure: failed program was:" >&5
15811 cat conftest.$ac_ext >&5
15813 eval "ac_cv_func_cthread_fork=no"
15818 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15819 echo "$ac_t""yes" 1>&6
15820 ol_link_threads=yes
15822 echo "$ac_t""no" 1>&6
15826 if test $ol_link_threads = no ; then
15827 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15828 echo "configure:15829: checking for cthread_fork with -all_load" >&5
15829 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15830 echo $ac_n "(cached) $ac_c" 1>&6
15834 LIBS="-all_load $LIBS"
15835 cat > conftest.$ac_ext <<EOF
15836 #line 15837 "configure"
15837 #include "confdefs.h"
15838 #include <mach/cthreads.h>
15841 cthread_fork((void *)0, (void *)0);
15845 if { (eval echo configure:15846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15847 ol_cv_cthread_all_load=yes
15849 echo "configure: failed program was:" >&5
15850 cat conftest.$ac_ext >&5
15852 ol_cv_cthread_all_load=no
15859 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15861 if test $ol_cv_cthread_all_load = yes ; then
15862 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15863 ol_link_threads=mach
15864 ol_with_threads=found
15868 elif test $ac_cv_header_cthreads_h = yes ; then
15870 ol_with_threads=found
15873 LIBS="$LIBS -lthreads"
15874 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15875 echo "configure:15876: checking for cthread_fork" >&5
15876 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15877 echo $ac_n "(cached) $ac_c" 1>&6
15879 cat > conftest.$ac_ext <<EOF
15880 #line 15881 "configure"
15881 #include "confdefs.h"
15882 /* System header to define __stub macros and hopefully few prototypes,
15883 which can conflict with char cthread_fork(); below. */
15884 #include <assert.h>
15885 /* Override any gcc2 internal prototype to avoid an error. */
15886 /* We use char because int might match the return type of a gcc2
15887 builtin and then its argument prototype would still apply. */
15888 char cthread_fork();
15893 /* The GNU C library defines this for functions which it implements
15894 to always fail with ENOSYS. Some functions are actually named
15895 something starting with __ and the normal name is an alias. */
15896 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15904 if { (eval echo configure:15905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15906 eval "ac_cv_func_cthread_fork=yes"
15908 echo "configure: failed program was:" >&5
15909 cat conftest.$ac_ext >&5
15911 eval "ac_cv_func_cthread_fork=no"
15916 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15917 echo "$ac_t""yes" 1>&6
15918 ol_link_threads=yes
15920 echo "$ac_t""no" 1>&6
15925 if test $ol_link_threads = yes ; then
15926 LTHREAD_LIBS="-lthreads"
15927 ol_link_threads=mach
15928 ol_with_threads=found
15930 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15933 elif test $ol_with_threads = mach ; then
15934 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15937 if test $ol_link_threads = mach ; then
15938 cat >> confdefs.h <<\EOF
15939 #define HAVE_MACH_CTHREADS 1
15942 elif test $ol_with_threads = found ; then
15943 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15947 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15948 -o $ol_with_threads = pth ; then
15950 for ac_hdr in pth.h
15952 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15953 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15954 echo "configure:15955: checking for $ac_hdr" >&5
15955 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15956 echo $ac_n "(cached) $ac_c" 1>&6
15958 cat > conftest.$ac_ext <<EOF
15959 #line 15960 "configure"
15960 #include "confdefs.h"
15963 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15964 { (eval echo configure:15965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15965 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15966 if test -z "$ac_err"; then
15968 eval "ac_cv_header_$ac_safe=yes"
15971 echo "configure: failed program was:" >&5
15972 cat conftest.$ac_ext >&5
15974 eval "ac_cv_header_$ac_safe=no"
15978 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15979 echo "$ac_t""yes" 1>&6
15980 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15981 cat >> confdefs.h <<EOF
15982 #define $ac_tr_hdr 1
15986 echo "$ac_t""no" 1>&6
15991 if test $ac_cv_header_pth_h = yes ; then
15992 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15993 echo "configure:15994: checking for pth_version in -lpth" >&5
15994 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15995 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15996 echo $ac_n "(cached) $ac_c" 1>&6
15998 ac_save_LIBS="$LIBS"
16000 cat > conftest.$ac_ext <<EOF
16001 #line 16002 "configure"
16002 #include "confdefs.h"
16003 /* Override any gcc2 internal prototype to avoid an error. */
16004 /* We use char because int might match the return type of a gcc2
16005 builtin and then its argument prototype would still apply. */
16006 char pth_version();
16012 if { (eval echo configure:16013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16014 eval "ac_cv_lib_$ac_lib_var=yes"
16016 echo "configure: failed program was:" >&5
16017 cat conftest.$ac_ext >&5
16019 eval "ac_cv_lib_$ac_lib_var=no"
16022 LIBS="$ac_save_LIBS"
16025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16026 echo "$ac_t""yes" 1>&6
16029 echo "$ac_t""no" 1>&6
16034 if test $have_pth = yes ; then
16035 cat >> confdefs.h <<\EOF
16036 #define HAVE_GNU_PTH 1
16039 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
16040 ol_link_threads=pth
16041 ol_with_threads=found
16043 if test $ol_with_yielding_select = auto ; then
16044 ol_with_yielding_select=yes
16050 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16051 -o $ol_with_threads = lwp ; then
16053 for ac_hdr in thread.h synch.h
16055 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16056 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16057 echo "configure:16058: checking for $ac_hdr" >&5
16058 if eval "test \"\${ac_cv_header_$ac_safe+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"
16066 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16067 { (eval echo configure:16068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16068 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16069 if test -z "$ac_err"; then
16071 eval "ac_cv_header_$ac_safe=yes"
16074 echo "configure: failed program was:" >&5
16075 cat conftest.$ac_ext >&5
16077 eval "ac_cv_header_$ac_safe=no"
16081 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16082 echo "$ac_t""yes" 1>&6
16083 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16084 cat >> confdefs.h <<EOF
16085 #define $ac_tr_hdr 1
16089 echo "$ac_t""no" 1>&6
16093 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
16094 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
16095 echo "configure:16096: checking for thr_create in -lthread" >&5
16096 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
16097 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16098 echo $ac_n "(cached) $ac_c" 1>&6
16100 ac_save_LIBS="$LIBS"
16101 LIBS="-lthread $LIBS"
16102 cat > conftest.$ac_ext <<EOF
16103 #line 16104 "configure"
16104 #include "confdefs.h"
16105 /* Override any gcc2 internal prototype to avoid an error. */
16106 /* We use char because int might match the return type of a gcc2
16107 builtin and then its argument prototype would still apply. */
16114 if { (eval echo configure:16115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16116 eval "ac_cv_lib_$ac_lib_var=yes"
16118 echo "configure: failed program was:" >&5
16119 cat conftest.$ac_ext >&5
16121 eval "ac_cv_lib_$ac_lib_var=no"
16124 LIBS="$ac_save_LIBS"
16127 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16128 echo "$ac_t""yes" 1>&6
16131 echo "$ac_t""no" 1>&6
16136 if test $have_thr = yes ; then
16137 cat >> confdefs.h <<\EOF
16141 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
16142 ol_link_threads=thr
16144 if test $ol_with_yielding_select = auto ; then
16145 ol_with_yielding_select=yes
16149 thr_setconcurrency \
16150 thr_getconcurrency \
16153 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16154 echo "configure:16155: checking for $ac_func" >&5
16155 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16156 echo $ac_n "(cached) $ac_c" 1>&6
16158 cat > conftest.$ac_ext <<EOF
16159 #line 16160 "configure"
16160 #include "confdefs.h"
16161 /* System header to define __stub macros and hopefully few prototypes,
16162 which can conflict with char $ac_func(); below. */
16163 #include <assert.h>
16164 /* Override any gcc2 internal prototype to avoid an error. */
16165 /* We use char because int might match the return type of a gcc2
16166 builtin and then its argument prototype would still apply. */
16172 /* The GNU C library defines this for functions which it implements
16173 to always fail with ENOSYS. Some functions are actually named
16174 something starting with __ and the normal name is an alias. */
16175 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16183 if { (eval echo configure:16184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16185 eval "ac_cv_func_$ac_func=yes"
16187 echo "configure: failed program was:" >&5
16188 cat conftest.$ac_ext >&5
16190 eval "ac_cv_func_$ac_func=no"
16195 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16196 echo "$ac_t""yes" 1>&6
16197 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16198 cat >> confdefs.h <<EOF
16199 #define $ac_tr_func 1
16203 echo "$ac_t""no" 1>&6
16210 for ac_hdr in lwp/lwp.h
16212 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16213 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16214 echo "configure:16215: checking for $ac_hdr" >&5
16215 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16216 echo $ac_n "(cached) $ac_c" 1>&6
16218 cat > conftest.$ac_ext <<EOF
16219 #line 16220 "configure"
16220 #include "confdefs.h"
16223 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16224 { (eval echo configure:16225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16225 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16226 if test -z "$ac_err"; then
16228 eval "ac_cv_header_$ac_safe=yes"
16231 echo "configure: failed program was:" >&5
16232 cat conftest.$ac_ext >&5
16234 eval "ac_cv_header_$ac_safe=no"
16238 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16239 echo "$ac_t""yes" 1>&6
16240 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16241 cat >> confdefs.h <<EOF
16242 #define $ac_tr_hdr 1
16246 echo "$ac_t""no" 1>&6
16250 if test $ac_cv_header_lwp_lwp_h = yes ; then
16251 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
16252 echo "configure:16253: checking for lwp_create in -llwp" >&5
16253 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
16254 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16255 echo $ac_n "(cached) $ac_c" 1>&6
16257 ac_save_LIBS="$LIBS"
16259 cat > conftest.$ac_ext <<EOF
16260 #line 16261 "configure"
16261 #include "confdefs.h"
16262 /* Override any gcc2 internal prototype to avoid an error. */
16263 /* We use char because int might match the return type of a gcc2
16264 builtin and then its argument prototype would still apply. */
16271 if { (eval echo configure:16272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16273 eval "ac_cv_lib_$ac_lib_var=yes"
16275 echo "configure: failed program was:" >&5
16276 cat conftest.$ac_ext >&5
16278 eval "ac_cv_lib_$ac_lib_var=no"
16281 LIBS="$ac_save_LIBS"
16284 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16285 echo "$ac_t""yes" 1>&6
16288 echo "$ac_t""no" 1>&6
16293 if test $have_lwp = yes ; then
16294 cat >> confdefs.h <<\EOF
16298 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
16299 ol_link_threads=lwp
16301 if test $ol_with_yielding_select = auto ; then
16302 ol_with_yielding_select=no
16308 if test $ol_with_yielding_select = yes ; then
16309 cat >> confdefs.h <<\EOF
16310 #define HAVE_YIELDING_SELECT 1
16315 if test $ol_with_threads = manual ; then
16316 ol_link_threads=yes
16318 echo "configure: warning: thread defines and link options must be set manually" 1>&2
16320 for ac_hdr in pthread.h sched.h
16322 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16323 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16324 echo "configure:16325: checking for $ac_hdr" >&5
16325 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16326 echo $ac_n "(cached) $ac_c" 1>&6
16328 cat > conftest.$ac_ext <<EOF
16329 #line 16330 "configure"
16330 #include "confdefs.h"
16333 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16334 { (eval echo configure:16335: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16335 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16336 if test -z "$ac_err"; then
16338 eval "ac_cv_header_$ac_safe=yes"
16341 echo "configure: failed program was:" >&5
16342 cat conftest.$ac_ext >&5
16344 eval "ac_cv_header_$ac_safe=no"
16348 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16349 echo "$ac_t""yes" 1>&6
16350 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16351 cat >> confdefs.h <<EOF
16352 #define $ac_tr_hdr 1
16356 echo "$ac_t""no" 1>&6
16360 for ac_func in sched_yield pthread_yield
16362 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16363 echo "configure:16364: checking for $ac_func" >&5
16364 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16365 echo $ac_n "(cached) $ac_c" 1>&6
16367 cat > conftest.$ac_ext <<EOF
16368 #line 16369 "configure"
16369 #include "confdefs.h"
16370 /* System header to define __stub macros and hopefully few prototypes,
16371 which can conflict with char $ac_func(); below. */
16372 #include <assert.h>
16373 /* Override any gcc2 internal prototype to avoid an error. */
16374 /* We use char because int might match the return type of a gcc2
16375 builtin and then its argument prototype would still apply. */
16381 /* The GNU C library defines this for functions which it implements
16382 to always fail with ENOSYS. Some functions are actually named
16383 something starting with __ and the normal name is an alias. */
16384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16392 if { (eval echo configure:16393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16394 eval "ac_cv_func_$ac_func=yes"
16396 echo "configure: failed program was:" >&5
16397 cat conftest.$ac_ext >&5
16399 eval "ac_cv_func_$ac_func=no"
16404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16405 echo "$ac_t""yes" 1>&6
16406 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16407 cat >> confdefs.h <<EOF
16408 #define $ac_tr_func 1
16412 echo "$ac_t""no" 1>&6
16417 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16418 echo "configure:16419: checking for LinuxThreads pthread.h" >&5
16419 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16420 echo $ac_n "(cached) $ac_c" 1>&6
16422 cat > conftest.$ac_ext <<EOF
16423 #line 16424 "configure"
16424 #include "confdefs.h"
16425 #include <pthread.h>
16427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16428 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16430 ol_cv_header_linux_threads=yes
16433 ol_cv_header_linux_threads=no
16440 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16441 if test $ol_cv_header_linux_threads = yes; then
16442 cat >> confdefs.h <<\EOF
16443 #define HAVE_LINUX_THREADS 1
16449 for ac_hdr in mach/cthreads.h
16451 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16452 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16453 echo "configure:16454: checking for $ac_hdr" >&5
16454 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16455 echo $ac_n "(cached) $ac_c" 1>&6
16457 cat > conftest.$ac_ext <<EOF
16458 #line 16459 "configure"
16459 #include "confdefs.h"
16462 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16463 { (eval echo configure:16464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16464 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16465 if test -z "$ac_err"; then
16467 eval "ac_cv_header_$ac_safe=yes"
16470 echo "configure: failed program was:" >&5
16471 cat conftest.$ac_ext >&5
16473 eval "ac_cv_header_$ac_safe=no"
16477 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16478 echo "$ac_t""yes" 1>&6
16479 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16480 cat >> confdefs.h <<EOF
16481 #define $ac_tr_hdr 1
16485 echo "$ac_t""no" 1>&6
16489 for ac_hdr in lwp/lwp.h
16491 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16492 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16493 echo "configure:16494: checking for $ac_hdr" >&5
16494 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16495 echo $ac_n "(cached) $ac_c" 1>&6
16497 cat > conftest.$ac_ext <<EOF
16498 #line 16499 "configure"
16499 #include "confdefs.h"
16502 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16503 { (eval echo configure:16504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16504 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16505 if test -z "$ac_err"; then
16507 eval "ac_cv_header_$ac_safe=yes"
16510 echo "configure: failed program was:" >&5
16511 cat conftest.$ac_ext >&5
16513 eval "ac_cv_header_$ac_safe=no"
16517 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16518 echo "$ac_t""yes" 1>&6
16519 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16520 cat >> confdefs.h <<EOF
16521 #define $ac_tr_hdr 1
16525 echo "$ac_t""no" 1>&6
16529 for ac_hdr in thread.h synch.h
16531 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16532 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16533 echo "configure:16534: checking for $ac_hdr" >&5
16534 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16535 echo $ac_n "(cached) $ac_c" 1>&6
16537 cat > conftest.$ac_ext <<EOF
16538 #line 16539 "configure"
16539 #include "confdefs.h"
16542 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16543 { (eval echo configure:16544: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16544 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16545 if test -z "$ac_err"; then
16547 eval "ac_cv_header_$ac_safe=yes"
16550 echo "configure: failed program was:" >&5
16551 cat conftest.$ac_ext >&5
16553 eval "ac_cv_header_$ac_safe=no"
16557 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16558 echo "$ac_t""yes" 1>&6
16559 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16560 cat >> confdefs.h <<EOF
16561 #define $ac_tr_hdr 1
16565 echo "$ac_t""no" 1>&6
16571 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16572 cat >> confdefs.h <<\EOF
16573 #define REENTRANT 1
16576 cat >> confdefs.h <<\EOF
16577 #define _REENTRANT 1
16580 cat >> confdefs.h <<\EOF
16581 #define THREAD_SAFE 1
16584 cat >> confdefs.h <<\EOF
16585 #define _THREAD_SAFE 1
16588 cat >> confdefs.h <<\EOF
16589 #define THREADSAFE 1
16592 cat >> confdefs.h <<\EOF
16593 #define _THREADSAFE 1
16596 cat >> confdefs.h <<\EOF
16597 #define _SGI_MP_SOURCE 1
16601 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16602 echo "configure:16603: checking for thread specific errno" >&5
16603 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16604 echo $ac_n "(cached) $ac_c" 1>&6
16607 cat > conftest.$ac_ext <<EOF
16608 #line 16609 "configure"
16609 #include "confdefs.h"
16615 if { (eval echo configure:16616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16617 ol_cv_errno_thread_specific=yes
16619 echo "configure: failed program was:" >&5
16620 cat conftest.$ac_ext >&5
16622 ol_cv_errno_thread_specific=no
16628 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16630 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16631 echo "configure:16632: checking for thread specific h_errno" >&5
16632 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16633 echo $ac_n "(cached) $ac_c" 1>&6
16636 cat > conftest.$ac_ext <<EOF
16637 #line 16638 "configure"
16638 #include "confdefs.h"
16644 if { (eval echo configure:16645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16646 ol_cv_h_errno_thread_specific=yes
16648 echo "configure: failed program was:" >&5
16649 cat conftest.$ac_ext >&5
16651 ol_cv_h_errno_thread_specific=no
16657 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16659 if test $ol_cv_errno_thread_specific != yes \
16660 -o $ol_cv_h_errno_thread_specific != yes ; then
16661 LIBS="$LTHREAD_LIBS $LIBS"
16667 if test $ol_link_threads = no ; then
16668 if test $ol_with_threads = yes ; then
16669 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16672 if test $ol_with_threads = auto ; then
16673 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16677 cat >> confdefs.h <<\EOF
16678 #define NO_THREADS 1
16684 if test $ol_link_threads != no ; then
16685 cat >> confdefs.h <<\EOF
16686 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16693 gethostbyname_r gethostbyaddr_r \
16696 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16697 echo "configure:16698: checking for $ac_func" >&5
16698 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16699 echo $ac_n "(cached) $ac_c" 1>&6
16701 cat > conftest.$ac_ext <<EOF
16702 #line 16703 "configure"
16703 #include "confdefs.h"
16704 /* System header to define __stub macros and hopefully few prototypes,
16705 which can conflict with char $ac_func(); below. */
16706 #include <assert.h>
16707 /* Override any gcc2 internal prototype to avoid an error. */
16708 /* We use char because int might match the return type of a gcc2
16709 builtin and then its argument prototype would still apply. */
16715 /* The GNU C library defines this for functions which it implements
16716 to always fail with ENOSYS. Some functions are actually named
16717 something starting with __ and the normal name is an alias. */
16718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16726 if { (eval echo configure:16727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16728 eval "ac_cv_func_$ac_func=yes"
16730 echo "configure: failed program was:" >&5
16731 cat conftest.$ac_ext >&5
16733 eval "ac_cv_func_$ac_func=no"
16738 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16739 echo "$ac_t""yes" 1>&6
16740 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16741 cat >> confdefs.h <<EOF
16742 #define $ac_tr_func 1
16746 echo "$ac_t""no" 1>&6
16751 if test "$ac_cv_func_ctime_r" = no ; then
16752 ol_cv_func_ctime_r_nargs=0
16754 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16755 echo "configure:16756: checking number of arguments of ctime_r" >&5
16756 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16757 echo $ac_n "(cached) $ac_c" 1>&6
16759 cat > conftest.$ac_ext <<EOF
16760 #line 16761 "configure"
16761 #include "confdefs.h"
16764 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16767 if { (eval echo configure:16768: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16769 ol_cv_func_ctime_r_nargs3=yes
16771 echo "configure: failed program was:" >&5
16772 cat conftest.$ac_ext >&5
16774 ol_cv_func_ctime_r_nargs3=no
16778 cat > conftest.$ac_ext <<EOF
16779 #line 16780 "configure"
16780 #include "confdefs.h"
16783 time_t ti; char *buffer; ctime_r(&ti,buffer);
16786 if { (eval echo configure:16787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16788 ol_cv_func_ctime_r_nargs2=yes
16790 echo "configure: failed program was:" >&5
16791 cat conftest.$ac_ext >&5
16793 ol_cv_func_ctime_r_nargs2=no
16797 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16798 $ol_cv_func_ctime_r_nargs2 = no ; then
16800 ol_cv_func_ctime_r_nargs=3
16802 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16803 $ol_cv_func_ctime_r_nargs2 = yes ; then
16805 ol_cv_func_ctime_r_nargs=2
16808 ol_cv_func_ctime_r_nargs=0
16813 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16815 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16816 cat >> confdefs.h <<EOF
16817 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16824 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16825 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16826 echo "configure:16827: checking number of arguments of gethostbyname_r" >&5
16827 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16828 echo $ac_n "(cached) $ac_c" 1>&6
16830 cat > conftest.$ac_ext <<EOF
16831 #line 16832 "configure"
16832 #include "confdefs.h"
16833 #include <sys/types.h>
16834 #include <sys/socket.h>
16835 #include <netinet/in.h>
16837 #define BUFSIZE (sizeof(struct hostent)+10)
16839 struct hostent hent; char buffer[BUFSIZE];
16840 int bufsize=BUFSIZE;int h_errno;
16841 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16842 buffer, bufsize, &h_errno);
16845 if { (eval echo configure:16846: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16847 ol_cv_func_gethostbyname_r_nargs5=yes
16849 echo "configure: failed program was:" >&5
16850 cat conftest.$ac_ext >&5
16852 ol_cv_func_gethostbyname_r_nargs5=no
16856 cat > conftest.$ac_ext <<EOF
16857 #line 16858 "configure"
16858 #include "confdefs.h"
16859 #include <sys/types.h>
16860 #include <sys/socket.h>
16861 #include <netinet/in.h>
16863 #define BUFSIZE (sizeof(struct hostent)+10)
16865 struct hostent hent;struct hostent *rhent;
16866 char buffer[BUFSIZE];
16867 int bufsize=BUFSIZE;int h_errno;
16868 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16872 if { (eval echo configure:16873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16874 ol_cv_func_gethostbyname_r_nargs6=yes
16876 echo "configure: failed program was:" >&5
16877 cat conftest.$ac_ext >&5
16879 ol_cv_func_gethostbyname_r_nargs6=no
16883 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16884 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16886 ol_cv_func_gethostbyname_r_nargs=5
16888 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16889 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16891 ol_cv_func_gethostbyname_r_nargs=6
16894 ol_cv_func_gethostbyname_r_nargs=0
16899 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16900 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16901 cat >> confdefs.h <<EOF
16902 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16908 ol_cv_func_gethostbyname_r_nargs=0
16911 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16912 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16913 echo "configure:16914: checking number of arguments of gethostbyaddr_r" >&5
16914 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16915 echo $ac_n "(cached) $ac_c" 1>&6
16917 cat > conftest.$ac_ext <<EOF
16918 #line 16919 "configure"
16919 #include "confdefs.h"
16920 #include <sys/types.h>
16921 #include <sys/socket.h>
16922 #include <netinet/in.h>
16924 #define BUFSIZE (sizeof(struct hostent)+10)
16926 struct hostent hent; char buffer[BUFSIZE];
16927 struct in_addr add;
16928 size_t alen=sizeof(struct in_addr);
16929 int bufsize=BUFSIZE;int h_errno;
16930 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16931 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16934 if { (eval echo configure:16935: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16936 ol_cv_func_gethostbyaddr_r_nargs7=yes
16938 echo "configure: failed program was:" >&5
16939 cat conftest.$ac_ext >&5
16941 ol_cv_func_gethostbyaddr_r_nargs7=no
16945 cat > conftest.$ac_ext <<EOF
16946 #line 16947 "configure"
16947 #include "confdefs.h"
16948 #include <sys/types.h>
16949 #include <sys/socket.h>
16950 #include <netinet/in.h>
16952 #define BUFSIZE (sizeof(struct hostent)+10)
16954 struct hostent hent;
16955 struct hostent *rhent; char buffer[BUFSIZE];
16956 struct in_addr add;
16957 size_t alen=sizeof(struct in_addr);
16958 int bufsize=BUFSIZE;int h_errno;
16959 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16960 alen, AF_INET, &hent, buffer, bufsize,
16964 if { (eval echo configure:16965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16966 ol_cv_func_gethostbyaddr_r_nargs8=yes
16968 echo "configure: failed program was:" >&5
16969 cat conftest.$ac_ext >&5
16971 ol_cv_func_gethostbyaddr_r_nargs8=no
16975 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16976 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16978 ol_cv_func_gethostbyaddr_r_nargs=7
16980 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16981 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16983 ol_cv_func_gethostbyaddr_r_nargs=8
16986 ol_cv_func_gethostbyaddr_r_nargs=0
16991 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16992 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16993 cat >> confdefs.h <<EOF
16994 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
17000 ol_cv_func_gethostbyaddr_r_nargs=0
17005 if test $ol_with_ldbm_api = auto \
17006 -o $ol_with_ldbm_api = berkeley \
17007 -o $ol_with_ldbm_api = bcompat ; then
17009 if test $ol_with_ldbm_api = bcompat; then \
17010 for ac_hdr in db_185.h db.h
17012 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17013 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17014 echo "configure:17015: checking for $ac_hdr" >&5
17015 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17016 echo $ac_n "(cached) $ac_c" 1>&6
17018 cat > conftest.$ac_ext <<EOF
17019 #line 17020 "configure"
17020 #include "confdefs.h"
17023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17024 { (eval echo configure:17025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17026 if test -z "$ac_err"; then
17028 eval "ac_cv_header_$ac_safe=yes"
17031 echo "configure: failed program was:" >&5
17032 cat conftest.$ac_ext >&5
17034 eval "ac_cv_header_$ac_safe=no"
17038 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17039 echo "$ac_t""yes" 1>&6
17040 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17041 cat >> confdefs.h <<EOF
17042 #define $ac_tr_hdr 1
17046 echo "$ac_t""no" 1>&6
17050 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
17051 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
17052 echo "configure:17053: checking if Berkeley DB header compatibility" >&5
17053 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
17054 echo $ac_n "(cached) $ac_c" 1>&6
17057 cat > conftest.$ac_ext <<EOF
17058 #line 17059 "configure"
17059 #include "confdefs.h"
17062 # include <db_185.h>
17067 /* this check could be improved */
17068 #ifndef DB_VERSION_MAJOR
17069 # define DB_VERSION_MAJOR 1
17072 #if DB_VERSION_MAJOR == 1
17077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17078 egrep "__db_version_1" >/dev/null 2>&1; then
17080 ol_cv_header_db1=yes
17083 ol_cv_header_db1=no
17089 echo "$ac_t""$ol_cv_header_db1" 1>&6
17091 if test $ol_cv_header_db1 = yes ; then
17093 if test $ol_cv_lib_db = no ; then
17094 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17095 echo "configure:17096: checking for Berkeley DB link (default)" >&5
17096 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17097 echo $ac_n "(cached) $ac_c" 1>&6
17102 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17104 cat > conftest.$ac_ext <<EOF
17105 #line 17106 "configure"
17106 #include "confdefs.h"
17108 #ifdef HAVE_DB_185_H
17109 # include <db_185.h>
17114 #ifndef DB_VERSION_MAJOR
17115 # define DB_VERSION_MAJOR 1
17119 #define NULL ((void*)0)
17124 #if DB_VERSION_MAJOR > 1
17127 int major, minor, patch;
17129 version = db_version( &major, &minor, &patch );
17131 if( major != DB_VERSION_MAJOR ||
17132 minor < DB_VERSION_MINOR )
17134 printf("Berkeley DB version mismatch\n"
17135 "\theader: %s\n\tlibrary: %s\n",
17136 DB_VERSION_STRING, version);
17142 #if DB_VERSION_MAJOR > 2
17143 db_env_create( NULL, 0 );
17144 #elif DB_VERSION_MAJOR > 1
17145 db_appexit( NULL );
17147 (void) dbopen( NULL, 0, 0, 0, NULL);
17152 if { (eval echo configure:17153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17156 echo "configure: failed program was:" >&5
17157 cat conftest.$ac_ext >&5
17167 echo "$ac_t""$ol_cv_db_none" 1>&6
17169 if test $ol_cv_db_none = yes ; then
17174 if test $ol_cv_lib_db = no ; then
17175 echo $ac_n "checking for Berkeley DB link (-ldb43)""... $ac_c" 1>&6
17176 echo "configure:17177: checking for Berkeley DB link (-ldb43)" >&5
17177 if eval "test \"\${ol_cv_db_db43+set}\" = set"; then
17178 echo $ac_n "(cached) $ac_c" 1>&6
17183 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17185 cat > conftest.$ac_ext <<EOF
17186 #line 17187 "configure"
17187 #include "confdefs.h"
17189 #ifdef HAVE_DB_185_H
17190 # include <db_185.h>
17195 #ifndef DB_VERSION_MAJOR
17196 # define DB_VERSION_MAJOR 1
17200 #define NULL ((void*)0)
17205 #if DB_VERSION_MAJOR > 1
17208 int major, minor, patch;
17210 version = db_version( &major, &minor, &patch );
17212 if( major != DB_VERSION_MAJOR ||
17213 minor < DB_VERSION_MINOR )
17215 printf("Berkeley DB version mismatch\n"
17216 "\theader: %s\n\tlibrary: %s\n",
17217 DB_VERSION_STRING, version);
17223 #if DB_VERSION_MAJOR > 2
17224 db_env_create( NULL, 0 );
17225 #elif DB_VERSION_MAJOR > 1
17226 db_appexit( NULL );
17228 (void) dbopen( NULL, 0, 0, 0, NULL);
17233 if { (eval echo configure:17234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17237 echo "configure: failed program was:" >&5
17238 cat conftest.$ac_ext >&5
17248 echo "$ac_t""$ol_cv_db_db43" 1>&6
17250 if test $ol_cv_db_db43 = yes ; then
17251 ol_cv_lib_db=-ldb43
17255 if test $ol_cv_lib_db = no ; then
17256 echo $ac_n "checking for Berkeley DB link (-ldb-43)""... $ac_c" 1>&6
17257 echo "configure:17258: checking for Berkeley DB link (-ldb-43)" >&5
17258 if eval "test \"\${ol_cv_db_db_43+set}\" = set"; then
17259 echo $ac_n "(cached) $ac_c" 1>&6
17264 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17266 cat > conftest.$ac_ext <<EOF
17267 #line 17268 "configure"
17268 #include "confdefs.h"
17270 #ifdef HAVE_DB_185_H
17271 # include <db_185.h>
17276 #ifndef DB_VERSION_MAJOR
17277 # define DB_VERSION_MAJOR 1
17281 #define NULL ((void*)0)
17286 #if DB_VERSION_MAJOR > 1
17289 int major, minor, patch;
17291 version = db_version( &major, &minor, &patch );
17293 if( major != DB_VERSION_MAJOR ||
17294 minor < DB_VERSION_MINOR )
17296 printf("Berkeley DB version mismatch\n"
17297 "\theader: %s\n\tlibrary: %s\n",
17298 DB_VERSION_STRING, version);
17304 #if DB_VERSION_MAJOR > 2
17305 db_env_create( NULL, 0 );
17306 #elif DB_VERSION_MAJOR > 1
17307 db_appexit( NULL );
17309 (void) dbopen( NULL, 0, 0, 0, NULL);
17314 if { (eval echo configure:17315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17318 echo "configure: failed program was:" >&5
17319 cat conftest.$ac_ext >&5
17329 echo "$ac_t""$ol_cv_db_db_43" 1>&6
17331 if test $ol_cv_db_db_43 = yes ; then
17332 ol_cv_lib_db=-ldb-43
17336 if test $ol_cv_lib_db = no ; then
17337 echo $ac_n "checking for Berkeley DB link (-ldb-4.3)""... $ac_c" 1>&6
17338 echo "configure:17339: checking for Berkeley DB link (-ldb-4.3)" >&5
17339 if eval "test \"\${ol_cv_db_db_4_dot_3+set}\" = set"; then
17340 echo $ac_n "(cached) $ac_c" 1>&6
17345 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17347 cat > conftest.$ac_ext <<EOF
17348 #line 17349 "configure"
17349 #include "confdefs.h"
17351 #ifdef HAVE_DB_185_H
17352 # include <db_185.h>
17357 #ifndef DB_VERSION_MAJOR
17358 # define DB_VERSION_MAJOR 1
17362 #define NULL ((void*)0)
17367 #if DB_VERSION_MAJOR > 1
17370 int major, minor, patch;
17372 version = db_version( &major, &minor, &patch );
17374 if( major != DB_VERSION_MAJOR ||
17375 minor < DB_VERSION_MINOR )
17377 printf("Berkeley DB version mismatch\n"
17378 "\theader: %s\n\tlibrary: %s\n",
17379 DB_VERSION_STRING, version);
17385 #if DB_VERSION_MAJOR > 2
17386 db_env_create( NULL, 0 );
17387 #elif DB_VERSION_MAJOR > 1
17388 db_appexit( NULL );
17390 (void) dbopen( NULL, 0, 0, 0, NULL);
17395 if { (eval echo configure:17396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17397 ol_cv_db_db_4_dot_3=yes
17399 echo "configure: failed program was:" >&5
17400 cat conftest.$ac_ext >&5
17402 ol_cv_db_db_4_dot_3=no
17410 echo "$ac_t""$ol_cv_db_db_4_dot_3" 1>&6
17412 if test $ol_cv_db_db_4_dot_3 = yes ; then
17413 ol_cv_lib_db=-ldb-4.3
17417 if test $ol_cv_lib_db = no ; then
17418 echo $ac_n "checking for Berkeley DB link (-ldb-4-3)""... $ac_c" 1>&6
17419 echo "configure:17420: checking for Berkeley DB link (-ldb-4-3)" >&5
17420 if eval "test \"\${ol_cv_db_db_4_3+set}\" = set"; then
17421 echo $ac_n "(cached) $ac_c" 1>&6
17426 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17428 cat > conftest.$ac_ext <<EOF
17429 #line 17430 "configure"
17430 #include "confdefs.h"
17432 #ifdef HAVE_DB_185_H
17433 # include <db_185.h>
17438 #ifndef DB_VERSION_MAJOR
17439 # define DB_VERSION_MAJOR 1
17443 #define NULL ((void*)0)
17448 #if DB_VERSION_MAJOR > 1
17451 int major, minor, patch;
17453 version = db_version( &major, &minor, &patch );
17455 if( major != DB_VERSION_MAJOR ||
17456 minor < DB_VERSION_MINOR )
17458 printf("Berkeley DB version mismatch\n"
17459 "\theader: %s\n\tlibrary: %s\n",
17460 DB_VERSION_STRING, version);
17466 #if DB_VERSION_MAJOR > 2
17467 db_env_create( NULL, 0 );
17468 #elif DB_VERSION_MAJOR > 1
17469 db_appexit( NULL );
17471 (void) dbopen( NULL, 0, 0, 0, NULL);
17476 if { (eval echo configure:17477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17478 ol_cv_db_db_4_3=yes
17480 echo "configure: failed program was:" >&5
17481 cat conftest.$ac_ext >&5
17491 echo "$ac_t""$ol_cv_db_db_4_3" 1>&6
17493 if test $ol_cv_db_db_4_3 = yes ; then
17494 ol_cv_lib_db=-ldb-4-3
17498 if test $ol_cv_lib_db = no ; then
17499 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
17500 echo "configure:17501: checking for Berkeley DB link (-ldb42)" >&5
17501 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
17502 echo $ac_n "(cached) $ac_c" 1>&6
17507 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17509 cat > conftest.$ac_ext <<EOF
17510 #line 17511 "configure"
17511 #include "confdefs.h"
17513 #ifdef HAVE_DB_185_H
17514 # include <db_185.h>
17519 #ifndef DB_VERSION_MAJOR
17520 # define DB_VERSION_MAJOR 1
17524 #define NULL ((void*)0)
17529 #if DB_VERSION_MAJOR > 1
17532 int major, minor, patch;
17534 version = db_version( &major, &minor, &patch );
17536 if( major != DB_VERSION_MAJOR ||
17537 minor < DB_VERSION_MINOR )
17539 printf("Berkeley DB version mismatch\n"
17540 "\theader: %s\n\tlibrary: %s\n",
17541 DB_VERSION_STRING, version);
17547 #if DB_VERSION_MAJOR > 2
17548 db_env_create( NULL, 0 );
17549 #elif DB_VERSION_MAJOR > 1
17550 db_appexit( NULL );
17552 (void) dbopen( NULL, 0, 0, 0, NULL);
17557 if { (eval echo configure:17558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17561 echo "configure: failed program was:" >&5
17562 cat conftest.$ac_ext >&5
17572 echo "$ac_t""$ol_cv_db_db42" 1>&6
17574 if test $ol_cv_db_db42 = yes ; then
17575 ol_cv_lib_db=-ldb42
17579 if test $ol_cv_lib_db = no ; then
17580 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
17581 echo "configure:17582: checking for Berkeley DB link (-ldb-42)" >&5
17582 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
17583 echo $ac_n "(cached) $ac_c" 1>&6
17588 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17590 cat > conftest.$ac_ext <<EOF
17591 #line 17592 "configure"
17592 #include "confdefs.h"
17594 #ifdef HAVE_DB_185_H
17595 # include <db_185.h>
17600 #ifndef DB_VERSION_MAJOR
17601 # define DB_VERSION_MAJOR 1
17605 #define NULL ((void*)0)
17610 #if DB_VERSION_MAJOR > 1
17613 int major, minor, patch;
17615 version = db_version( &major, &minor, &patch );
17617 if( major != DB_VERSION_MAJOR ||
17618 minor < DB_VERSION_MINOR )
17620 printf("Berkeley DB version mismatch\n"
17621 "\theader: %s\n\tlibrary: %s\n",
17622 DB_VERSION_STRING, version);
17628 #if DB_VERSION_MAJOR > 2
17629 db_env_create( NULL, 0 );
17630 #elif DB_VERSION_MAJOR > 1
17631 db_appexit( NULL );
17633 (void) dbopen( NULL, 0, 0, 0, NULL);
17638 if { (eval echo configure:17639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17642 echo "configure: failed program was:" >&5
17643 cat conftest.$ac_ext >&5
17653 echo "$ac_t""$ol_cv_db_db_42" 1>&6
17655 if test $ol_cv_db_db_42 = yes ; then
17656 ol_cv_lib_db=-ldb-42
17660 if test $ol_cv_lib_db = no ; then
17661 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
17662 echo "configure:17663: checking for Berkeley DB link (-ldb-4.2)" >&5
17663 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
17664 echo $ac_n "(cached) $ac_c" 1>&6
17669 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17671 cat > conftest.$ac_ext <<EOF
17672 #line 17673 "configure"
17673 #include "confdefs.h"
17675 #ifdef HAVE_DB_185_H
17676 # include <db_185.h>
17681 #ifndef DB_VERSION_MAJOR
17682 # define DB_VERSION_MAJOR 1
17686 #define NULL ((void*)0)
17691 #if DB_VERSION_MAJOR > 1
17694 int major, minor, patch;
17696 version = db_version( &major, &minor, &patch );
17698 if( major != DB_VERSION_MAJOR ||
17699 minor < DB_VERSION_MINOR )
17701 printf("Berkeley DB version mismatch\n"
17702 "\theader: %s\n\tlibrary: %s\n",
17703 DB_VERSION_STRING, version);
17709 #if DB_VERSION_MAJOR > 2
17710 db_env_create( NULL, 0 );
17711 #elif DB_VERSION_MAJOR > 1
17712 db_appexit( NULL );
17714 (void) dbopen( NULL, 0, 0, 0, NULL);
17719 if { (eval echo configure:17720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17721 ol_cv_db_db_4_dot_2=yes
17723 echo "configure: failed program was:" >&5
17724 cat conftest.$ac_ext >&5
17726 ol_cv_db_db_4_dot_2=no
17734 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
17736 if test $ol_cv_db_db_4_dot_2 = yes ; then
17737 ol_cv_lib_db=-ldb-4.2
17741 if test $ol_cv_lib_db = no ; then
17742 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
17743 echo "configure:17744: checking for Berkeley DB link (-ldb-4-2)" >&5
17744 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
17745 echo $ac_n "(cached) $ac_c" 1>&6
17750 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17752 cat > conftest.$ac_ext <<EOF
17753 #line 17754 "configure"
17754 #include "confdefs.h"
17756 #ifdef HAVE_DB_185_H
17757 # include <db_185.h>
17762 #ifndef DB_VERSION_MAJOR
17763 # define DB_VERSION_MAJOR 1
17767 #define NULL ((void*)0)
17772 #if DB_VERSION_MAJOR > 1
17775 int major, minor, patch;
17777 version = db_version( &major, &minor, &patch );
17779 if( major != DB_VERSION_MAJOR ||
17780 minor < DB_VERSION_MINOR )
17782 printf("Berkeley DB version mismatch\n"
17783 "\theader: %s\n\tlibrary: %s\n",
17784 DB_VERSION_STRING, version);
17790 #if DB_VERSION_MAJOR > 2
17791 db_env_create( NULL, 0 );
17792 #elif DB_VERSION_MAJOR > 1
17793 db_appexit( NULL );
17795 (void) dbopen( NULL, 0, 0, 0, NULL);
17800 if { (eval echo configure:17801: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17802 ol_cv_db_db_4_2=yes
17804 echo "configure: failed program was:" >&5
17805 cat conftest.$ac_ext >&5
17815 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
17817 if test $ol_cv_db_db_4_2 = yes ; then
17818 ol_cv_lib_db=-ldb-4-2
17822 if test $ol_cv_lib_db = no ; then
17823 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17824 echo "configure:17825: checking for Berkeley DB link (-ldb-4)" >&5
17825 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17826 echo $ac_n "(cached) $ac_c" 1>&6
17831 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17833 cat > conftest.$ac_ext <<EOF
17834 #line 17835 "configure"
17835 #include "confdefs.h"
17837 #ifdef HAVE_DB_185_H
17838 # include <db_185.h>
17843 #ifndef DB_VERSION_MAJOR
17844 # define DB_VERSION_MAJOR 1
17848 #define NULL ((void*)0)
17853 #if DB_VERSION_MAJOR > 1
17856 int major, minor, patch;
17858 version = db_version( &major, &minor, &patch );
17860 if( major != DB_VERSION_MAJOR ||
17861 minor < DB_VERSION_MINOR )
17863 printf("Berkeley DB version mismatch\n"
17864 "\theader: %s\n\tlibrary: %s\n",
17865 DB_VERSION_STRING, version);
17871 #if DB_VERSION_MAJOR > 2
17872 db_env_create( NULL, 0 );
17873 #elif DB_VERSION_MAJOR > 1
17874 db_appexit( NULL );
17876 (void) dbopen( NULL, 0, 0, 0, NULL);
17881 if { (eval echo configure:17882: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17885 echo "configure: failed program was:" >&5
17886 cat conftest.$ac_ext >&5
17896 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17898 if test $ol_cv_db_db_4 = yes ; then
17899 ol_cv_lib_db=-ldb-4
17903 if test $ol_cv_lib_db = no ; then
17904 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17905 echo "configure:17906: checking for Berkeley DB link (-ldb4)" >&5
17906 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17907 echo $ac_n "(cached) $ac_c" 1>&6
17912 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17914 cat > conftest.$ac_ext <<EOF
17915 #line 17916 "configure"
17916 #include "confdefs.h"
17918 #ifdef HAVE_DB_185_H
17919 # include <db_185.h>
17924 #ifndef DB_VERSION_MAJOR
17925 # define DB_VERSION_MAJOR 1
17929 #define NULL ((void*)0)
17934 #if DB_VERSION_MAJOR > 1
17937 int major, minor, patch;
17939 version = db_version( &major, &minor, &patch );
17941 if( major != DB_VERSION_MAJOR ||
17942 minor < DB_VERSION_MINOR )
17944 printf("Berkeley DB version mismatch\n"
17945 "\theader: %s\n\tlibrary: %s\n",
17946 DB_VERSION_STRING, version);
17952 #if DB_VERSION_MAJOR > 2
17953 db_env_create( NULL, 0 );
17954 #elif DB_VERSION_MAJOR > 1
17955 db_appexit( NULL );
17957 (void) dbopen( NULL, 0, 0, 0, NULL);
17962 if { (eval echo configure:17963: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17966 echo "configure: failed program was:" >&5
17967 cat conftest.$ac_ext >&5
17977 echo "$ac_t""$ol_cv_db_db4" 1>&6
17979 if test $ol_cv_db_db4 = yes ; then
17984 if test $ol_cv_lib_db = no ; then
17985 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17986 echo "configure:17987: checking for Berkeley DB link (-ldb)" >&5
17987 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17988 echo $ac_n "(cached) $ac_c" 1>&6
17993 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17995 cat > conftest.$ac_ext <<EOF
17996 #line 17997 "configure"
17997 #include "confdefs.h"
17999 #ifdef HAVE_DB_185_H
18000 # include <db_185.h>
18005 #ifndef DB_VERSION_MAJOR
18006 # define DB_VERSION_MAJOR 1
18010 #define NULL ((void*)0)
18015 #if DB_VERSION_MAJOR > 1
18018 int major, minor, patch;
18020 version = db_version( &major, &minor, &patch );
18022 if( major != DB_VERSION_MAJOR ||
18023 minor < DB_VERSION_MINOR )
18025 printf("Berkeley DB version mismatch\n"
18026 "\theader: %s\n\tlibrary: %s\n",
18027 DB_VERSION_STRING, version);
18033 #if DB_VERSION_MAJOR > 2
18034 db_env_create( NULL, 0 );
18035 #elif DB_VERSION_MAJOR > 1
18036 db_appexit( NULL );
18038 (void) dbopen( NULL, 0, 0, 0, NULL);
18043 if { (eval echo configure:18044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18047 echo "configure: failed program was:" >&5
18048 cat conftest.$ac_ext >&5
18058 echo "$ac_t""$ol_cv_db_db" 1>&6
18060 if test $ol_cv_db_db = yes ; then
18065 if test $ol_cv_lib_db = no ; then
18066 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
18067 echo "configure:18068: checking for Berkeley DB link (-ldb41)" >&5
18068 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
18069 echo $ac_n "(cached) $ac_c" 1>&6
18074 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18076 cat > conftest.$ac_ext <<EOF
18077 #line 18078 "configure"
18078 #include "confdefs.h"
18080 #ifdef HAVE_DB_185_H
18081 # include <db_185.h>
18086 #ifndef DB_VERSION_MAJOR
18087 # define DB_VERSION_MAJOR 1
18091 #define NULL ((void*)0)
18096 #if DB_VERSION_MAJOR > 1
18099 int major, minor, patch;
18101 version = db_version( &major, &minor, &patch );
18103 if( major != DB_VERSION_MAJOR ||
18104 minor < DB_VERSION_MINOR )
18106 printf("Berkeley DB version mismatch\n"
18107 "\theader: %s\n\tlibrary: %s\n",
18108 DB_VERSION_STRING, version);
18114 #if DB_VERSION_MAJOR > 2
18115 db_env_create( NULL, 0 );
18116 #elif DB_VERSION_MAJOR > 1
18117 db_appexit( NULL );
18119 (void) dbopen( NULL, 0, 0, 0, NULL);
18124 if { (eval echo configure:18125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18128 echo "configure: failed program was:" >&5
18129 cat conftest.$ac_ext >&5
18139 echo "$ac_t""$ol_cv_db_db41" 1>&6
18141 if test $ol_cv_db_db41 = yes ; then
18142 ol_cv_lib_db=-ldb41
18146 if test $ol_cv_lib_db = no ; then
18147 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
18148 echo "configure:18149: checking for Berkeley DB link (-ldb-41)" >&5
18149 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
18150 echo $ac_n "(cached) $ac_c" 1>&6
18155 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18157 cat > conftest.$ac_ext <<EOF
18158 #line 18159 "configure"
18159 #include "confdefs.h"
18161 #ifdef HAVE_DB_185_H
18162 # include <db_185.h>
18167 #ifndef DB_VERSION_MAJOR
18168 # define DB_VERSION_MAJOR 1
18172 #define NULL ((void*)0)
18177 #if DB_VERSION_MAJOR > 1
18180 int major, minor, patch;
18182 version = db_version( &major, &minor, &patch );
18184 if( major != DB_VERSION_MAJOR ||
18185 minor < DB_VERSION_MINOR )
18187 printf("Berkeley DB version mismatch\n"
18188 "\theader: %s\n\tlibrary: %s\n",
18189 DB_VERSION_STRING, version);
18195 #if DB_VERSION_MAJOR > 2
18196 db_env_create( NULL, 0 );
18197 #elif DB_VERSION_MAJOR > 1
18198 db_appexit( NULL );
18200 (void) dbopen( NULL, 0, 0, 0, NULL);
18205 if { (eval echo configure:18206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18209 echo "configure: failed program was:" >&5
18210 cat conftest.$ac_ext >&5
18220 echo "$ac_t""$ol_cv_db_db_41" 1>&6
18222 if test $ol_cv_db_db_41 = yes ; then
18223 ol_cv_lib_db=-ldb-41
18227 if test $ol_cv_lib_db = no ; then
18228 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
18229 echo "configure:18230: checking for Berkeley DB link (-ldb-4.1)" >&5
18230 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
18231 echo $ac_n "(cached) $ac_c" 1>&6
18236 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18238 cat > conftest.$ac_ext <<EOF
18239 #line 18240 "configure"
18240 #include "confdefs.h"
18242 #ifdef HAVE_DB_185_H
18243 # include <db_185.h>
18248 #ifndef DB_VERSION_MAJOR
18249 # define DB_VERSION_MAJOR 1
18253 #define NULL ((void*)0)
18258 #if DB_VERSION_MAJOR > 1
18261 int major, minor, patch;
18263 version = db_version( &major, &minor, &patch );
18265 if( major != DB_VERSION_MAJOR ||
18266 minor < DB_VERSION_MINOR )
18268 printf("Berkeley DB version mismatch\n"
18269 "\theader: %s\n\tlibrary: %s\n",
18270 DB_VERSION_STRING, version);
18276 #if DB_VERSION_MAJOR > 2
18277 db_env_create( NULL, 0 );
18278 #elif DB_VERSION_MAJOR > 1
18279 db_appexit( NULL );
18281 (void) dbopen( NULL, 0, 0, 0, NULL);
18286 if { (eval echo configure:18287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18288 ol_cv_db_db_4_dot_1=yes
18290 echo "configure: failed program was:" >&5
18291 cat conftest.$ac_ext >&5
18293 ol_cv_db_db_4_dot_1=no
18301 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
18303 if test $ol_cv_db_db_4_dot_1 = yes ; then
18304 ol_cv_lib_db=-ldb-4.1
18308 if test $ol_cv_lib_db = no ; then
18309 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
18310 echo "configure:18311: checking for Berkeley DB link (-ldb-4-1)" >&5
18311 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
18312 echo $ac_n "(cached) $ac_c" 1>&6
18317 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18319 cat > conftest.$ac_ext <<EOF
18320 #line 18321 "configure"
18321 #include "confdefs.h"
18323 #ifdef HAVE_DB_185_H
18324 # include <db_185.h>
18329 #ifndef DB_VERSION_MAJOR
18330 # define DB_VERSION_MAJOR 1
18334 #define NULL ((void*)0)
18339 #if DB_VERSION_MAJOR > 1
18342 int major, minor, patch;
18344 version = db_version( &major, &minor, &patch );
18346 if( major != DB_VERSION_MAJOR ||
18347 minor < DB_VERSION_MINOR )
18349 printf("Berkeley DB version mismatch\n"
18350 "\theader: %s\n\tlibrary: %s\n",
18351 DB_VERSION_STRING, version);
18357 #if DB_VERSION_MAJOR > 2
18358 db_env_create( NULL, 0 );
18359 #elif DB_VERSION_MAJOR > 1
18360 db_appexit( NULL );
18362 (void) dbopen( NULL, 0, 0, 0, NULL);
18367 if { (eval echo configure:18368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18369 ol_cv_db_db_4_1=yes
18371 echo "configure: failed program was:" >&5
18372 cat conftest.$ac_ext >&5
18382 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
18384 if test $ol_cv_db_db_4_1 = yes ; then
18385 ol_cv_lib_db=-ldb-4-1
18389 if test $ol_cv_lib_db = no ; then
18390 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
18391 echo "configure:18392: checking for Berkeley DB link (-ldb3)" >&5
18392 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
18393 echo $ac_n "(cached) $ac_c" 1>&6
18398 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18400 cat > conftest.$ac_ext <<EOF
18401 #line 18402 "configure"
18402 #include "confdefs.h"
18404 #ifdef HAVE_DB_185_H
18405 # include <db_185.h>
18410 #ifndef DB_VERSION_MAJOR
18411 # define DB_VERSION_MAJOR 1
18415 #define NULL ((void*)0)
18420 #if DB_VERSION_MAJOR > 1
18423 int major, minor, patch;
18425 version = db_version( &major, &minor, &patch );
18427 if( major != DB_VERSION_MAJOR ||
18428 minor < DB_VERSION_MINOR )
18430 printf("Berkeley DB version mismatch\n"
18431 "\theader: %s\n\tlibrary: %s\n",
18432 DB_VERSION_STRING, version);
18438 #if DB_VERSION_MAJOR > 2
18439 db_env_create( NULL, 0 );
18440 #elif DB_VERSION_MAJOR > 1
18441 db_appexit( NULL );
18443 (void) dbopen( NULL, 0, 0, 0, NULL);
18448 if { (eval echo configure:18449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18452 echo "configure: failed program was:" >&5
18453 cat conftest.$ac_ext >&5
18463 echo "$ac_t""$ol_cv_db_db3" 1>&6
18465 if test $ol_cv_db_db3 = yes ; then
18470 if test $ol_cv_lib_db = no ; then
18471 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
18472 echo "configure:18473: checking for Berkeley DB link (-ldb-3)" >&5
18473 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
18474 echo $ac_n "(cached) $ac_c" 1>&6
18479 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18481 cat > conftest.$ac_ext <<EOF
18482 #line 18483 "configure"
18483 #include "confdefs.h"
18485 #ifdef HAVE_DB_185_H
18486 # include <db_185.h>
18491 #ifndef DB_VERSION_MAJOR
18492 # define DB_VERSION_MAJOR 1
18496 #define NULL ((void*)0)
18501 #if DB_VERSION_MAJOR > 1
18504 int major, minor, patch;
18506 version = db_version( &major, &minor, &patch );
18508 if( major != DB_VERSION_MAJOR ||
18509 minor < DB_VERSION_MINOR )
18511 printf("Berkeley DB version mismatch\n"
18512 "\theader: %s\n\tlibrary: %s\n",
18513 DB_VERSION_STRING, version);
18519 #if DB_VERSION_MAJOR > 2
18520 db_env_create( NULL, 0 );
18521 #elif DB_VERSION_MAJOR > 1
18522 db_appexit( NULL );
18524 (void) dbopen( NULL, 0, 0, 0, NULL);
18529 if { (eval echo configure:18530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18533 echo "configure: failed program was:" >&5
18534 cat conftest.$ac_ext >&5
18544 echo "$ac_t""$ol_cv_db_db_3" 1>&6
18546 if test $ol_cv_db_db_3 = yes ; then
18547 ol_cv_lib_db=-ldb-3
18551 if test $ol_cv_lib_db = no ; then
18552 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
18553 echo "configure:18554: checking for Berkeley DB link (-ldb2)" >&5
18554 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
18555 echo $ac_n "(cached) $ac_c" 1>&6
18560 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18562 cat > conftest.$ac_ext <<EOF
18563 #line 18564 "configure"
18564 #include "confdefs.h"
18566 #ifdef HAVE_DB_185_H
18567 # include <db_185.h>
18572 #ifndef DB_VERSION_MAJOR
18573 # define DB_VERSION_MAJOR 1
18577 #define NULL ((void*)0)
18582 #if DB_VERSION_MAJOR > 1
18585 int major, minor, patch;
18587 version = db_version( &major, &minor, &patch );
18589 if( major != DB_VERSION_MAJOR ||
18590 minor < DB_VERSION_MINOR )
18592 printf("Berkeley DB version mismatch\n"
18593 "\theader: %s\n\tlibrary: %s\n",
18594 DB_VERSION_STRING, version);
18600 #if DB_VERSION_MAJOR > 2
18601 db_env_create( NULL, 0 );
18602 #elif DB_VERSION_MAJOR > 1
18603 db_appexit( NULL );
18605 (void) dbopen( NULL, 0, 0, 0, NULL);
18610 if { (eval echo configure:18611: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18614 echo "configure: failed program was:" >&5
18615 cat conftest.$ac_ext >&5
18625 echo "$ac_t""$ol_cv_db_db2" 1>&6
18627 if test $ol_cv_db_db2 = yes ; then
18632 if test $ol_cv_lib_db = no ; then
18633 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
18634 echo "configure:18635: checking for Berkeley DB link (-ldb-2)" >&5
18635 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
18636 echo $ac_n "(cached) $ac_c" 1>&6
18641 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18643 cat > conftest.$ac_ext <<EOF
18644 #line 18645 "configure"
18645 #include "confdefs.h"
18647 #ifdef HAVE_DB_185_H
18648 # include <db_185.h>
18653 #ifndef DB_VERSION_MAJOR
18654 # define DB_VERSION_MAJOR 1
18658 #define NULL ((void*)0)
18663 #if DB_VERSION_MAJOR > 1
18666 int major, minor, patch;
18668 version = db_version( &major, &minor, &patch );
18670 if( major != DB_VERSION_MAJOR ||
18671 minor < DB_VERSION_MINOR )
18673 printf("Berkeley DB version mismatch\n"
18674 "\theader: %s\n\tlibrary: %s\n",
18675 DB_VERSION_STRING, version);
18681 #if DB_VERSION_MAJOR > 2
18682 db_env_create( NULL, 0 );
18683 #elif DB_VERSION_MAJOR > 1
18684 db_appexit( NULL );
18686 (void) dbopen( NULL, 0, 0, 0, NULL);
18691 if { (eval echo configure:18692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18695 echo "configure: failed program was:" >&5
18696 cat conftest.$ac_ext >&5
18706 echo "$ac_t""$ol_cv_db_db_2" 1>&6
18708 if test $ol_cv_db_db_2 = yes ; then
18709 ol_cv_lib_db=-ldb-2
18713 if test $ol_cv_lib_db = no ; then
18714 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18715 echo "configure:18716: checking for Berkeley DB link (-ldb1)" >&5
18716 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18717 echo $ac_n "(cached) $ac_c" 1>&6
18722 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18724 cat > conftest.$ac_ext <<EOF
18725 #line 18726 "configure"
18726 #include "confdefs.h"
18728 #ifdef HAVE_DB_185_H
18729 # include <db_185.h>
18734 #ifndef DB_VERSION_MAJOR
18735 # define DB_VERSION_MAJOR 1
18739 #define NULL ((void*)0)
18744 #if DB_VERSION_MAJOR > 1
18747 int major, minor, patch;
18749 version = db_version( &major, &minor, &patch );
18751 if( major != DB_VERSION_MAJOR ||
18752 minor < DB_VERSION_MINOR )
18754 printf("Berkeley DB version mismatch\n"
18755 "\theader: %s\n\tlibrary: %s\n",
18756 DB_VERSION_STRING, version);
18762 #if DB_VERSION_MAJOR > 2
18763 db_env_create( NULL, 0 );
18764 #elif DB_VERSION_MAJOR > 1
18765 db_appexit( NULL );
18767 (void) dbopen( NULL, 0, 0, 0, NULL);
18772 if { (eval echo configure:18773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18776 echo "configure: failed program was:" >&5
18777 cat conftest.$ac_ext >&5
18787 echo "$ac_t""$ol_cv_db_db1" 1>&6
18789 if test $ol_cv_db_db1 = yes ; then
18794 if test $ol_cv_lib_db = no ; then
18795 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18796 echo "configure:18797: checking for Berkeley DB link (-ldb-1)" >&5
18797 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18798 echo $ac_n "(cached) $ac_c" 1>&6
18803 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18805 cat > conftest.$ac_ext <<EOF
18806 #line 18807 "configure"
18807 #include "confdefs.h"
18809 #ifdef HAVE_DB_185_H
18810 # include <db_185.h>
18815 #ifndef DB_VERSION_MAJOR
18816 # define DB_VERSION_MAJOR 1
18820 #define NULL ((void*)0)
18825 #if DB_VERSION_MAJOR > 1
18828 int major, minor, patch;
18830 version = db_version( &major, &minor, &patch );
18832 if( major != DB_VERSION_MAJOR ||
18833 minor < DB_VERSION_MINOR )
18835 printf("Berkeley DB version mismatch\n"
18836 "\theader: %s\n\tlibrary: %s\n",
18837 DB_VERSION_STRING, version);
18843 #if DB_VERSION_MAJOR > 2
18844 db_env_create( NULL, 0 );
18845 #elif DB_VERSION_MAJOR > 1
18846 db_appexit( NULL );
18848 (void) dbopen( NULL, 0, 0, 0, NULL);
18853 if { (eval echo configure:18854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18857 echo "configure: failed program was:" >&5
18858 cat conftest.$ac_ext >&5
18868 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18870 if test $ol_cv_db_db_1 = yes ; then
18871 ol_cv_lib_db=-ldb-1
18876 if test "$ol_cv_lib_db" != no ; then
18877 ol_cv_berkeley_db=yes
18883 ol_cv_berkeley_db=no
18886 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18887 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18888 echo "configure:18889: checking for $ac_hdr" >&5
18889 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18890 echo $ac_n "(cached) $ac_c" 1>&6
18892 cat > conftest.$ac_ext <<EOF
18893 #line 18894 "configure"
18894 #include "confdefs.h"
18897 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18898 { (eval echo configure:18899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18899 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18900 if test -z "$ac_err"; then
18902 eval "ac_cv_header_$ac_safe=yes"
18905 echo "configure: failed program was:" >&5
18906 cat conftest.$ac_ext >&5
18908 eval "ac_cv_header_$ac_safe=no"
18912 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18913 echo "$ac_t""yes" 1>&6
18914 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18915 cat >> confdefs.h <<EOF
18916 #define $ac_tr_hdr 1
18920 echo "$ac_t""no" 1>&6
18924 if test $ac_cv_header_db_h = yes; then
18926 if test $ol_cv_lib_db = no ; then
18927 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
18928 echo "configure:18929: checking for Berkeley DB link (default)" >&5
18929 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
18930 echo $ac_n "(cached) $ac_c" 1>&6
18935 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18937 cat > conftest.$ac_ext <<EOF
18938 #line 18939 "configure"
18939 #include "confdefs.h"
18941 #ifdef HAVE_DB_185_H
18942 # include <db_185.h>
18947 #ifndef DB_VERSION_MAJOR
18948 # define DB_VERSION_MAJOR 1
18952 #define NULL ((void*)0)
18957 #if DB_VERSION_MAJOR > 1
18960 int major, minor, patch;
18962 version = db_version( &major, &minor, &patch );
18964 if( major != DB_VERSION_MAJOR ||
18965 minor < DB_VERSION_MINOR )
18967 printf("Berkeley DB version mismatch\n"
18968 "\theader: %s\n\tlibrary: %s\n",
18969 DB_VERSION_STRING, version);
18975 #if DB_VERSION_MAJOR > 2
18976 db_env_create( NULL, 0 );
18977 #elif DB_VERSION_MAJOR > 1
18978 db_appexit( NULL );
18980 (void) dbopen( NULL, 0, 0, 0, NULL);
18985 if { (eval echo configure:18986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18989 echo "configure: failed program was:" >&5
18990 cat conftest.$ac_ext >&5
19000 echo "$ac_t""$ol_cv_db_none" 1>&6
19002 if test $ol_cv_db_none = yes ; then
19007 if test $ol_cv_lib_db = no ; then
19008 echo $ac_n "checking for Berkeley DB link (-ldb43)""... $ac_c" 1>&6
19009 echo "configure:19010: checking for Berkeley DB link (-ldb43)" >&5
19010 if eval "test \"\${ol_cv_db_db43+set}\" = set"; then
19011 echo $ac_n "(cached) $ac_c" 1>&6
19016 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19018 cat > conftest.$ac_ext <<EOF
19019 #line 19020 "configure"
19020 #include "confdefs.h"
19022 #ifdef HAVE_DB_185_H
19023 # include <db_185.h>
19028 #ifndef DB_VERSION_MAJOR
19029 # define DB_VERSION_MAJOR 1
19033 #define NULL ((void*)0)
19038 #if DB_VERSION_MAJOR > 1
19041 int major, minor, patch;
19043 version = db_version( &major, &minor, &patch );
19045 if( major != DB_VERSION_MAJOR ||
19046 minor < DB_VERSION_MINOR )
19048 printf("Berkeley DB version mismatch\n"
19049 "\theader: %s\n\tlibrary: %s\n",
19050 DB_VERSION_STRING, version);
19056 #if DB_VERSION_MAJOR > 2
19057 db_env_create( NULL, 0 );
19058 #elif DB_VERSION_MAJOR > 1
19059 db_appexit( NULL );
19061 (void) dbopen( NULL, 0, 0, 0, NULL);
19066 if { (eval echo configure:19067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19070 echo "configure: failed program was:" >&5
19071 cat conftest.$ac_ext >&5
19081 echo "$ac_t""$ol_cv_db_db43" 1>&6
19083 if test $ol_cv_db_db43 = yes ; then
19084 ol_cv_lib_db=-ldb43
19088 if test $ol_cv_lib_db = no ; then
19089 echo $ac_n "checking for Berkeley DB link (-ldb-43)""... $ac_c" 1>&6
19090 echo "configure:19091: checking for Berkeley DB link (-ldb-43)" >&5
19091 if eval "test \"\${ol_cv_db_db_43+set}\" = set"; then
19092 echo $ac_n "(cached) $ac_c" 1>&6
19097 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19099 cat > conftest.$ac_ext <<EOF
19100 #line 19101 "configure"
19101 #include "confdefs.h"
19103 #ifdef HAVE_DB_185_H
19104 # include <db_185.h>
19109 #ifndef DB_VERSION_MAJOR
19110 # define DB_VERSION_MAJOR 1
19114 #define NULL ((void*)0)
19119 #if DB_VERSION_MAJOR > 1
19122 int major, minor, patch;
19124 version = db_version( &major, &minor, &patch );
19126 if( major != DB_VERSION_MAJOR ||
19127 minor < DB_VERSION_MINOR )
19129 printf("Berkeley DB version mismatch\n"
19130 "\theader: %s\n\tlibrary: %s\n",
19131 DB_VERSION_STRING, version);
19137 #if DB_VERSION_MAJOR > 2
19138 db_env_create( NULL, 0 );
19139 #elif DB_VERSION_MAJOR > 1
19140 db_appexit( NULL );
19142 (void) dbopen( NULL, 0, 0, 0, NULL);
19147 if { (eval echo configure:19148: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19151 echo "configure: failed program was:" >&5
19152 cat conftest.$ac_ext >&5
19162 echo "$ac_t""$ol_cv_db_db_43" 1>&6
19164 if test $ol_cv_db_db_43 = yes ; then
19165 ol_cv_lib_db=-ldb-43
19169 if test $ol_cv_lib_db = no ; then
19170 echo $ac_n "checking for Berkeley DB link (-ldb-4.3)""... $ac_c" 1>&6
19171 echo "configure:19172: checking for Berkeley DB link (-ldb-4.3)" >&5
19172 if eval "test \"\${ol_cv_db_db_4_dot_3+set}\" = set"; then
19173 echo $ac_n "(cached) $ac_c" 1>&6
19178 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19180 cat > conftest.$ac_ext <<EOF
19181 #line 19182 "configure"
19182 #include "confdefs.h"
19184 #ifdef HAVE_DB_185_H
19185 # include <db_185.h>
19190 #ifndef DB_VERSION_MAJOR
19191 # define DB_VERSION_MAJOR 1
19195 #define NULL ((void*)0)
19200 #if DB_VERSION_MAJOR > 1
19203 int major, minor, patch;
19205 version = db_version( &major, &minor, &patch );
19207 if( major != DB_VERSION_MAJOR ||
19208 minor < DB_VERSION_MINOR )
19210 printf("Berkeley DB version mismatch\n"
19211 "\theader: %s\n\tlibrary: %s\n",
19212 DB_VERSION_STRING, version);
19218 #if DB_VERSION_MAJOR > 2
19219 db_env_create( NULL, 0 );
19220 #elif DB_VERSION_MAJOR > 1
19221 db_appexit( NULL );
19223 (void) dbopen( NULL, 0, 0, 0, NULL);
19228 if { (eval echo configure:19229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19230 ol_cv_db_db_4_dot_3=yes
19232 echo "configure: failed program was:" >&5
19233 cat conftest.$ac_ext >&5
19235 ol_cv_db_db_4_dot_3=no
19243 echo "$ac_t""$ol_cv_db_db_4_dot_3" 1>&6
19245 if test $ol_cv_db_db_4_dot_3 = yes ; then
19246 ol_cv_lib_db=-ldb-4.3
19250 if test $ol_cv_lib_db = no ; then
19251 echo $ac_n "checking for Berkeley DB link (-ldb-4-3)""... $ac_c" 1>&6
19252 echo "configure:19253: checking for Berkeley DB link (-ldb-4-3)" >&5
19253 if eval "test \"\${ol_cv_db_db_4_3+set}\" = set"; then
19254 echo $ac_n "(cached) $ac_c" 1>&6
19259 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19261 cat > conftest.$ac_ext <<EOF
19262 #line 19263 "configure"
19263 #include "confdefs.h"
19265 #ifdef HAVE_DB_185_H
19266 # include <db_185.h>
19271 #ifndef DB_VERSION_MAJOR
19272 # define DB_VERSION_MAJOR 1
19276 #define NULL ((void*)0)
19281 #if DB_VERSION_MAJOR > 1
19284 int major, minor, patch;
19286 version = db_version( &major, &minor, &patch );
19288 if( major != DB_VERSION_MAJOR ||
19289 minor < DB_VERSION_MINOR )
19291 printf("Berkeley DB version mismatch\n"
19292 "\theader: %s\n\tlibrary: %s\n",
19293 DB_VERSION_STRING, version);
19299 #if DB_VERSION_MAJOR > 2
19300 db_env_create( NULL, 0 );
19301 #elif DB_VERSION_MAJOR > 1
19302 db_appexit( NULL );
19304 (void) dbopen( NULL, 0, 0, 0, NULL);
19309 if { (eval echo configure:19310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19311 ol_cv_db_db_4_3=yes
19313 echo "configure: failed program was:" >&5
19314 cat conftest.$ac_ext >&5
19324 echo "$ac_t""$ol_cv_db_db_4_3" 1>&6
19326 if test $ol_cv_db_db_4_3 = yes ; then
19327 ol_cv_lib_db=-ldb-4-3
19331 if test $ol_cv_lib_db = no ; then
19332 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
19333 echo "configure:19334: checking for Berkeley DB link (-ldb42)" >&5
19334 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
19335 echo $ac_n "(cached) $ac_c" 1>&6
19340 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19342 cat > conftest.$ac_ext <<EOF
19343 #line 19344 "configure"
19344 #include "confdefs.h"
19346 #ifdef HAVE_DB_185_H
19347 # include <db_185.h>
19352 #ifndef DB_VERSION_MAJOR
19353 # define DB_VERSION_MAJOR 1
19357 #define NULL ((void*)0)
19362 #if DB_VERSION_MAJOR > 1
19365 int major, minor, patch;
19367 version = db_version( &major, &minor, &patch );
19369 if( major != DB_VERSION_MAJOR ||
19370 minor < DB_VERSION_MINOR )
19372 printf("Berkeley DB version mismatch\n"
19373 "\theader: %s\n\tlibrary: %s\n",
19374 DB_VERSION_STRING, version);
19380 #if DB_VERSION_MAJOR > 2
19381 db_env_create( NULL, 0 );
19382 #elif DB_VERSION_MAJOR > 1
19383 db_appexit( NULL );
19385 (void) dbopen( NULL, 0, 0, 0, NULL);
19390 if { (eval echo configure:19391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19394 echo "configure: failed program was:" >&5
19395 cat conftest.$ac_ext >&5
19405 echo "$ac_t""$ol_cv_db_db42" 1>&6
19407 if test $ol_cv_db_db42 = yes ; then
19408 ol_cv_lib_db=-ldb42
19412 if test $ol_cv_lib_db = no ; then
19413 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
19414 echo "configure:19415: checking for Berkeley DB link (-ldb-42)" >&5
19415 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
19416 echo $ac_n "(cached) $ac_c" 1>&6
19421 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19423 cat > conftest.$ac_ext <<EOF
19424 #line 19425 "configure"
19425 #include "confdefs.h"
19427 #ifdef HAVE_DB_185_H
19428 # include <db_185.h>
19433 #ifndef DB_VERSION_MAJOR
19434 # define DB_VERSION_MAJOR 1
19438 #define NULL ((void*)0)
19443 #if DB_VERSION_MAJOR > 1
19446 int major, minor, patch;
19448 version = db_version( &major, &minor, &patch );
19450 if( major != DB_VERSION_MAJOR ||
19451 minor < DB_VERSION_MINOR )
19453 printf("Berkeley DB version mismatch\n"
19454 "\theader: %s\n\tlibrary: %s\n",
19455 DB_VERSION_STRING, version);
19461 #if DB_VERSION_MAJOR > 2
19462 db_env_create( NULL, 0 );
19463 #elif DB_VERSION_MAJOR > 1
19464 db_appexit( NULL );
19466 (void) dbopen( NULL, 0, 0, 0, NULL);
19471 if { (eval echo configure:19472: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19475 echo "configure: failed program was:" >&5
19476 cat conftest.$ac_ext >&5
19486 echo "$ac_t""$ol_cv_db_db_42" 1>&6
19488 if test $ol_cv_db_db_42 = yes ; then
19489 ol_cv_lib_db=-ldb-42
19493 if test $ol_cv_lib_db = no ; then
19494 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
19495 echo "configure:19496: checking for Berkeley DB link (-ldb-4.2)" >&5
19496 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
19497 echo $ac_n "(cached) $ac_c" 1>&6
19502 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19504 cat > conftest.$ac_ext <<EOF
19505 #line 19506 "configure"
19506 #include "confdefs.h"
19508 #ifdef HAVE_DB_185_H
19509 # include <db_185.h>
19514 #ifndef DB_VERSION_MAJOR
19515 # define DB_VERSION_MAJOR 1
19519 #define NULL ((void*)0)
19524 #if DB_VERSION_MAJOR > 1
19527 int major, minor, patch;
19529 version = db_version( &major, &minor, &patch );
19531 if( major != DB_VERSION_MAJOR ||
19532 minor < DB_VERSION_MINOR )
19534 printf("Berkeley DB version mismatch\n"
19535 "\theader: %s\n\tlibrary: %s\n",
19536 DB_VERSION_STRING, version);
19542 #if DB_VERSION_MAJOR > 2
19543 db_env_create( NULL, 0 );
19544 #elif DB_VERSION_MAJOR > 1
19545 db_appexit( NULL );
19547 (void) dbopen( NULL, 0, 0, 0, NULL);
19552 if { (eval echo configure:19553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19554 ol_cv_db_db_4_dot_2=yes
19556 echo "configure: failed program was:" >&5
19557 cat conftest.$ac_ext >&5
19559 ol_cv_db_db_4_dot_2=no
19567 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
19569 if test $ol_cv_db_db_4_dot_2 = yes ; then
19570 ol_cv_lib_db=-ldb-4.2
19574 if test $ol_cv_lib_db = no ; then
19575 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
19576 echo "configure:19577: checking for Berkeley DB link (-ldb-4-2)" >&5
19577 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
19578 echo $ac_n "(cached) $ac_c" 1>&6
19583 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19585 cat > conftest.$ac_ext <<EOF
19586 #line 19587 "configure"
19587 #include "confdefs.h"
19589 #ifdef HAVE_DB_185_H
19590 # include <db_185.h>
19595 #ifndef DB_VERSION_MAJOR
19596 # define DB_VERSION_MAJOR 1
19600 #define NULL ((void*)0)
19605 #if DB_VERSION_MAJOR > 1
19608 int major, minor, patch;
19610 version = db_version( &major, &minor, &patch );
19612 if( major != DB_VERSION_MAJOR ||
19613 minor < DB_VERSION_MINOR )
19615 printf("Berkeley DB version mismatch\n"
19616 "\theader: %s\n\tlibrary: %s\n",
19617 DB_VERSION_STRING, version);
19623 #if DB_VERSION_MAJOR > 2
19624 db_env_create( NULL, 0 );
19625 #elif DB_VERSION_MAJOR > 1
19626 db_appexit( NULL );
19628 (void) dbopen( NULL, 0, 0, 0, NULL);
19633 if { (eval echo configure:19634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19635 ol_cv_db_db_4_2=yes
19637 echo "configure: failed program was:" >&5
19638 cat conftest.$ac_ext >&5
19648 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
19650 if test $ol_cv_db_db_4_2 = yes ; then
19651 ol_cv_lib_db=-ldb-4-2
19655 if test $ol_cv_lib_db = no ; then
19656 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
19657 echo "configure:19658: checking for Berkeley DB link (-ldb-4)" >&5
19658 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
19659 echo $ac_n "(cached) $ac_c" 1>&6
19664 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19666 cat > conftest.$ac_ext <<EOF
19667 #line 19668 "configure"
19668 #include "confdefs.h"
19670 #ifdef HAVE_DB_185_H
19671 # include <db_185.h>
19676 #ifndef DB_VERSION_MAJOR
19677 # define DB_VERSION_MAJOR 1
19681 #define NULL ((void*)0)
19686 #if DB_VERSION_MAJOR > 1
19689 int major, minor, patch;
19691 version = db_version( &major, &minor, &patch );
19693 if( major != DB_VERSION_MAJOR ||
19694 minor < DB_VERSION_MINOR )
19696 printf("Berkeley DB version mismatch\n"
19697 "\theader: %s\n\tlibrary: %s\n",
19698 DB_VERSION_STRING, version);
19704 #if DB_VERSION_MAJOR > 2
19705 db_env_create( NULL, 0 );
19706 #elif DB_VERSION_MAJOR > 1
19707 db_appexit( NULL );
19709 (void) dbopen( NULL, 0, 0, 0, NULL);
19714 if { (eval echo configure:19715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19718 echo "configure: failed program was:" >&5
19719 cat conftest.$ac_ext >&5
19729 echo "$ac_t""$ol_cv_db_db_4" 1>&6
19731 if test $ol_cv_db_db_4 = yes ; then
19732 ol_cv_lib_db=-ldb-4
19736 if test $ol_cv_lib_db = no ; then
19737 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
19738 echo "configure:19739: checking for Berkeley DB link (-ldb4)" >&5
19739 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
19740 echo $ac_n "(cached) $ac_c" 1>&6
19745 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19747 cat > conftest.$ac_ext <<EOF
19748 #line 19749 "configure"
19749 #include "confdefs.h"
19751 #ifdef HAVE_DB_185_H
19752 # include <db_185.h>
19757 #ifndef DB_VERSION_MAJOR
19758 # define DB_VERSION_MAJOR 1
19762 #define NULL ((void*)0)
19767 #if DB_VERSION_MAJOR > 1
19770 int major, minor, patch;
19772 version = db_version( &major, &minor, &patch );
19774 if( major != DB_VERSION_MAJOR ||
19775 minor < DB_VERSION_MINOR )
19777 printf("Berkeley DB version mismatch\n"
19778 "\theader: %s\n\tlibrary: %s\n",
19779 DB_VERSION_STRING, version);
19785 #if DB_VERSION_MAJOR > 2
19786 db_env_create( NULL, 0 );
19787 #elif DB_VERSION_MAJOR > 1
19788 db_appexit( NULL );
19790 (void) dbopen( NULL, 0, 0, 0, NULL);
19795 if { (eval echo configure:19796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19799 echo "configure: failed program was:" >&5
19800 cat conftest.$ac_ext >&5
19810 echo "$ac_t""$ol_cv_db_db4" 1>&6
19812 if test $ol_cv_db_db4 = yes ; then
19817 if test $ol_cv_lib_db = no ; then
19818 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
19819 echo "configure:19820: checking for Berkeley DB link (-ldb)" >&5
19820 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
19821 echo $ac_n "(cached) $ac_c" 1>&6
19826 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19828 cat > conftest.$ac_ext <<EOF
19829 #line 19830 "configure"
19830 #include "confdefs.h"
19832 #ifdef HAVE_DB_185_H
19833 # include <db_185.h>
19838 #ifndef DB_VERSION_MAJOR
19839 # define DB_VERSION_MAJOR 1
19843 #define NULL ((void*)0)
19848 #if DB_VERSION_MAJOR > 1
19851 int major, minor, patch;
19853 version = db_version( &major, &minor, &patch );
19855 if( major != DB_VERSION_MAJOR ||
19856 minor < DB_VERSION_MINOR )
19858 printf("Berkeley DB version mismatch\n"
19859 "\theader: %s\n\tlibrary: %s\n",
19860 DB_VERSION_STRING, version);
19866 #if DB_VERSION_MAJOR > 2
19867 db_env_create( NULL, 0 );
19868 #elif DB_VERSION_MAJOR > 1
19869 db_appexit( NULL );
19871 (void) dbopen( NULL, 0, 0, 0, NULL);
19876 if { (eval echo configure:19877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19880 echo "configure: failed program was:" >&5
19881 cat conftest.$ac_ext >&5
19891 echo "$ac_t""$ol_cv_db_db" 1>&6
19893 if test $ol_cv_db_db = yes ; then
19898 if test $ol_cv_lib_db = no ; then
19899 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
19900 echo "configure:19901: checking for Berkeley DB link (-ldb41)" >&5
19901 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
19902 echo $ac_n "(cached) $ac_c" 1>&6
19907 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19909 cat > conftest.$ac_ext <<EOF
19910 #line 19911 "configure"
19911 #include "confdefs.h"
19913 #ifdef HAVE_DB_185_H
19914 # include <db_185.h>
19919 #ifndef DB_VERSION_MAJOR
19920 # define DB_VERSION_MAJOR 1
19924 #define NULL ((void*)0)
19929 #if DB_VERSION_MAJOR > 1
19932 int major, minor, patch;
19934 version = db_version( &major, &minor, &patch );
19936 if( major != DB_VERSION_MAJOR ||
19937 minor < DB_VERSION_MINOR )
19939 printf("Berkeley DB version mismatch\n"
19940 "\theader: %s\n\tlibrary: %s\n",
19941 DB_VERSION_STRING, version);
19947 #if DB_VERSION_MAJOR > 2
19948 db_env_create( NULL, 0 );
19949 #elif DB_VERSION_MAJOR > 1
19950 db_appexit( NULL );
19952 (void) dbopen( NULL, 0, 0, 0, NULL);
19957 if { (eval echo configure:19958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19961 echo "configure: failed program was:" >&5
19962 cat conftest.$ac_ext >&5
19972 echo "$ac_t""$ol_cv_db_db41" 1>&6
19974 if test $ol_cv_db_db41 = yes ; then
19975 ol_cv_lib_db=-ldb41
19979 if test $ol_cv_lib_db = no ; then
19980 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
19981 echo "configure:19982: checking for Berkeley DB link (-ldb-41)" >&5
19982 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
19983 echo $ac_n "(cached) $ac_c" 1>&6
19988 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19990 cat > conftest.$ac_ext <<EOF
19991 #line 19992 "configure"
19992 #include "confdefs.h"
19994 #ifdef HAVE_DB_185_H
19995 # include <db_185.h>
20000 #ifndef DB_VERSION_MAJOR
20001 # define DB_VERSION_MAJOR 1
20005 #define NULL ((void*)0)
20010 #if DB_VERSION_MAJOR > 1
20013 int major, minor, patch;
20015 version = db_version( &major, &minor, &patch );
20017 if( major != DB_VERSION_MAJOR ||
20018 minor < DB_VERSION_MINOR )
20020 printf("Berkeley DB version mismatch\n"
20021 "\theader: %s\n\tlibrary: %s\n",
20022 DB_VERSION_STRING, version);
20028 #if DB_VERSION_MAJOR > 2
20029 db_env_create( NULL, 0 );
20030 #elif DB_VERSION_MAJOR > 1
20031 db_appexit( NULL );
20033 (void) dbopen( NULL, 0, 0, 0, NULL);
20038 if { (eval echo configure:20039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20042 echo "configure: failed program was:" >&5
20043 cat conftest.$ac_ext >&5
20053 echo "$ac_t""$ol_cv_db_db_41" 1>&6
20055 if test $ol_cv_db_db_41 = yes ; then
20056 ol_cv_lib_db=-ldb-41
20060 if test $ol_cv_lib_db = no ; then
20061 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
20062 echo "configure:20063: checking for Berkeley DB link (-ldb-4.1)" >&5
20063 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
20064 echo $ac_n "(cached) $ac_c" 1>&6
20069 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20071 cat > conftest.$ac_ext <<EOF
20072 #line 20073 "configure"
20073 #include "confdefs.h"
20075 #ifdef HAVE_DB_185_H
20076 # include <db_185.h>
20081 #ifndef DB_VERSION_MAJOR
20082 # define DB_VERSION_MAJOR 1
20086 #define NULL ((void*)0)
20091 #if DB_VERSION_MAJOR > 1
20094 int major, minor, patch;
20096 version = db_version( &major, &minor, &patch );
20098 if( major != DB_VERSION_MAJOR ||
20099 minor < DB_VERSION_MINOR )
20101 printf("Berkeley DB version mismatch\n"
20102 "\theader: %s\n\tlibrary: %s\n",
20103 DB_VERSION_STRING, version);
20109 #if DB_VERSION_MAJOR > 2
20110 db_env_create( NULL, 0 );
20111 #elif DB_VERSION_MAJOR > 1
20112 db_appexit( NULL );
20114 (void) dbopen( NULL, 0, 0, 0, NULL);
20119 if { (eval echo configure:20120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20121 ol_cv_db_db_4_dot_1=yes
20123 echo "configure: failed program was:" >&5
20124 cat conftest.$ac_ext >&5
20126 ol_cv_db_db_4_dot_1=no
20134 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
20136 if test $ol_cv_db_db_4_dot_1 = yes ; then
20137 ol_cv_lib_db=-ldb-4.1
20141 if test $ol_cv_lib_db = no ; then
20142 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
20143 echo "configure:20144: checking for Berkeley DB link (-ldb-4-1)" >&5
20144 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
20145 echo $ac_n "(cached) $ac_c" 1>&6
20150 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20152 cat > conftest.$ac_ext <<EOF
20153 #line 20154 "configure"
20154 #include "confdefs.h"
20156 #ifdef HAVE_DB_185_H
20157 # include <db_185.h>
20162 #ifndef DB_VERSION_MAJOR
20163 # define DB_VERSION_MAJOR 1
20167 #define NULL ((void*)0)
20172 #if DB_VERSION_MAJOR > 1
20175 int major, minor, patch;
20177 version = db_version( &major, &minor, &patch );
20179 if( major != DB_VERSION_MAJOR ||
20180 minor < DB_VERSION_MINOR )
20182 printf("Berkeley DB version mismatch\n"
20183 "\theader: %s\n\tlibrary: %s\n",
20184 DB_VERSION_STRING, version);
20190 #if DB_VERSION_MAJOR > 2
20191 db_env_create( NULL, 0 );
20192 #elif DB_VERSION_MAJOR > 1
20193 db_appexit( NULL );
20195 (void) dbopen( NULL, 0, 0, 0, NULL);
20200 if { (eval echo configure:20201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20202 ol_cv_db_db_4_1=yes
20204 echo "configure: failed program was:" >&5
20205 cat conftest.$ac_ext >&5
20215 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
20217 if test $ol_cv_db_db_4_1 = yes ; then
20218 ol_cv_lib_db=-ldb-4-1
20222 if test $ol_cv_lib_db = no ; then
20223 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
20224 echo "configure:20225: checking for Berkeley DB link (-ldb3)" >&5
20225 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
20226 echo $ac_n "(cached) $ac_c" 1>&6
20231 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20233 cat > conftest.$ac_ext <<EOF
20234 #line 20235 "configure"
20235 #include "confdefs.h"
20237 #ifdef HAVE_DB_185_H
20238 # include <db_185.h>
20243 #ifndef DB_VERSION_MAJOR
20244 # define DB_VERSION_MAJOR 1
20248 #define NULL ((void*)0)
20253 #if DB_VERSION_MAJOR > 1
20256 int major, minor, patch;
20258 version = db_version( &major, &minor, &patch );
20260 if( major != DB_VERSION_MAJOR ||
20261 minor < DB_VERSION_MINOR )
20263 printf("Berkeley DB version mismatch\n"
20264 "\theader: %s\n\tlibrary: %s\n",
20265 DB_VERSION_STRING, version);
20271 #if DB_VERSION_MAJOR > 2
20272 db_env_create( NULL, 0 );
20273 #elif DB_VERSION_MAJOR > 1
20274 db_appexit( NULL );
20276 (void) dbopen( NULL, 0, 0, 0, NULL);
20281 if { (eval echo configure:20282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20285 echo "configure: failed program was:" >&5
20286 cat conftest.$ac_ext >&5
20296 echo "$ac_t""$ol_cv_db_db3" 1>&6
20298 if test $ol_cv_db_db3 = yes ; then
20303 if test $ol_cv_lib_db = no ; then
20304 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
20305 echo "configure:20306: checking for Berkeley DB link (-ldb-3)" >&5
20306 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
20307 echo $ac_n "(cached) $ac_c" 1>&6
20312 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20314 cat > conftest.$ac_ext <<EOF
20315 #line 20316 "configure"
20316 #include "confdefs.h"
20318 #ifdef HAVE_DB_185_H
20319 # include <db_185.h>
20324 #ifndef DB_VERSION_MAJOR
20325 # define DB_VERSION_MAJOR 1
20329 #define NULL ((void*)0)
20334 #if DB_VERSION_MAJOR > 1
20337 int major, minor, patch;
20339 version = db_version( &major, &minor, &patch );
20341 if( major != DB_VERSION_MAJOR ||
20342 minor < DB_VERSION_MINOR )
20344 printf("Berkeley DB version mismatch\n"
20345 "\theader: %s\n\tlibrary: %s\n",
20346 DB_VERSION_STRING, version);
20352 #if DB_VERSION_MAJOR > 2
20353 db_env_create( NULL, 0 );
20354 #elif DB_VERSION_MAJOR > 1
20355 db_appexit( NULL );
20357 (void) dbopen( NULL, 0, 0, 0, NULL);
20362 if { (eval echo configure:20363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20366 echo "configure: failed program was:" >&5
20367 cat conftest.$ac_ext >&5
20377 echo "$ac_t""$ol_cv_db_db_3" 1>&6
20379 if test $ol_cv_db_db_3 = yes ; then
20380 ol_cv_lib_db=-ldb-3
20384 if test $ol_cv_lib_db = no ; then
20385 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
20386 echo "configure:20387: checking for Berkeley DB link (-ldb2)" >&5
20387 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
20388 echo $ac_n "(cached) $ac_c" 1>&6
20393 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20395 cat > conftest.$ac_ext <<EOF
20396 #line 20397 "configure"
20397 #include "confdefs.h"
20399 #ifdef HAVE_DB_185_H
20400 # include <db_185.h>
20405 #ifndef DB_VERSION_MAJOR
20406 # define DB_VERSION_MAJOR 1
20410 #define NULL ((void*)0)
20415 #if DB_VERSION_MAJOR > 1
20418 int major, minor, patch;
20420 version = db_version( &major, &minor, &patch );
20422 if( major != DB_VERSION_MAJOR ||
20423 minor < DB_VERSION_MINOR )
20425 printf("Berkeley DB version mismatch\n"
20426 "\theader: %s\n\tlibrary: %s\n",
20427 DB_VERSION_STRING, version);
20433 #if DB_VERSION_MAJOR > 2
20434 db_env_create( NULL, 0 );
20435 #elif DB_VERSION_MAJOR > 1
20436 db_appexit( NULL );
20438 (void) dbopen( NULL, 0, 0, 0, NULL);
20443 if { (eval echo configure:20444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20447 echo "configure: failed program was:" >&5
20448 cat conftest.$ac_ext >&5
20458 echo "$ac_t""$ol_cv_db_db2" 1>&6
20460 if test $ol_cv_db_db2 = yes ; then
20465 if test $ol_cv_lib_db = no ; then
20466 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
20467 echo "configure:20468: checking for Berkeley DB link (-ldb-2)" >&5
20468 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
20469 echo $ac_n "(cached) $ac_c" 1>&6
20474 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20476 cat > conftest.$ac_ext <<EOF
20477 #line 20478 "configure"
20478 #include "confdefs.h"
20480 #ifdef HAVE_DB_185_H
20481 # include <db_185.h>
20486 #ifndef DB_VERSION_MAJOR
20487 # define DB_VERSION_MAJOR 1
20491 #define NULL ((void*)0)
20496 #if DB_VERSION_MAJOR > 1
20499 int major, minor, patch;
20501 version = db_version( &major, &minor, &patch );
20503 if( major != DB_VERSION_MAJOR ||
20504 minor < DB_VERSION_MINOR )
20506 printf("Berkeley DB version mismatch\n"
20507 "\theader: %s\n\tlibrary: %s\n",
20508 DB_VERSION_STRING, version);
20514 #if DB_VERSION_MAJOR > 2
20515 db_env_create( NULL, 0 );
20516 #elif DB_VERSION_MAJOR > 1
20517 db_appexit( NULL );
20519 (void) dbopen( NULL, 0, 0, 0, NULL);
20524 if { (eval echo configure:20525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20528 echo "configure: failed program was:" >&5
20529 cat conftest.$ac_ext >&5
20539 echo "$ac_t""$ol_cv_db_db_2" 1>&6
20541 if test $ol_cv_db_db_2 = yes ; then
20542 ol_cv_lib_db=-ldb-2
20546 if test $ol_cv_lib_db = no ; then
20547 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
20548 echo "configure:20549: checking for Berkeley DB link (-ldb1)" >&5
20549 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
20550 echo $ac_n "(cached) $ac_c" 1>&6
20555 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20557 cat > conftest.$ac_ext <<EOF
20558 #line 20559 "configure"
20559 #include "confdefs.h"
20561 #ifdef HAVE_DB_185_H
20562 # include <db_185.h>
20567 #ifndef DB_VERSION_MAJOR
20568 # define DB_VERSION_MAJOR 1
20572 #define NULL ((void*)0)
20577 #if DB_VERSION_MAJOR > 1
20580 int major, minor, patch;
20582 version = db_version( &major, &minor, &patch );
20584 if( major != DB_VERSION_MAJOR ||
20585 minor < DB_VERSION_MINOR )
20587 printf("Berkeley DB version mismatch\n"
20588 "\theader: %s\n\tlibrary: %s\n",
20589 DB_VERSION_STRING, version);
20595 #if DB_VERSION_MAJOR > 2
20596 db_env_create( NULL, 0 );
20597 #elif DB_VERSION_MAJOR > 1
20598 db_appexit( NULL );
20600 (void) dbopen( NULL, 0, 0, 0, NULL);
20605 if { (eval echo configure:20606: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20609 echo "configure: failed program was:" >&5
20610 cat conftest.$ac_ext >&5
20620 echo "$ac_t""$ol_cv_db_db1" 1>&6
20622 if test $ol_cv_db_db1 = yes ; then
20627 if test $ol_cv_lib_db = no ; then
20628 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
20629 echo "configure:20630: checking for Berkeley DB link (-ldb-1)" >&5
20630 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
20631 echo $ac_n "(cached) $ac_c" 1>&6
20636 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20638 cat > conftest.$ac_ext <<EOF
20639 #line 20640 "configure"
20640 #include "confdefs.h"
20642 #ifdef HAVE_DB_185_H
20643 # include <db_185.h>
20648 #ifndef DB_VERSION_MAJOR
20649 # define DB_VERSION_MAJOR 1
20653 #define NULL ((void*)0)
20658 #if DB_VERSION_MAJOR > 1
20661 int major, minor, patch;
20663 version = db_version( &major, &minor, &patch );
20665 if( major != DB_VERSION_MAJOR ||
20666 minor < DB_VERSION_MINOR )
20668 printf("Berkeley DB version mismatch\n"
20669 "\theader: %s\n\tlibrary: %s\n",
20670 DB_VERSION_STRING, version);
20676 #if DB_VERSION_MAJOR > 2
20677 db_env_create( NULL, 0 );
20678 #elif DB_VERSION_MAJOR > 1
20679 db_appexit( NULL );
20681 (void) dbopen( NULL, 0, 0, 0, NULL);
20686 if { (eval echo configure:20687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20690 echo "configure: failed program was:" >&5
20691 cat conftest.$ac_ext >&5
20701 echo "$ac_t""$ol_cv_db_db_1" 1>&6
20703 if test $ol_cv_db_db_1 = yes ; then
20704 ol_cv_lib_db=-ldb-1
20709 if test "$ol_cv_lib_db" != no ; then
20710 ol_cv_berkeley_db=yes
20711 echo $ac_n "checking for Berkeley DB version match""... $ac_c" 1>&6
20712 echo "configure:20713: checking for Berkeley DB version match" >&5
20713 if eval "test \"\${ol_cv_berkeley_db_version+set}\" = set"; then
20714 echo $ac_n "(cached) $ac_c" 1>&6
20718 LIBS="$LTHREAD_LIBS $LIBS"
20719 if test $ol_cv_lib_db != yes ; then
20720 LIBS="$ol_cv_lib_db $LIBS"
20723 if test "$cross_compiling" = yes; then
20724 ol_cv_berkeley_db_version=cross
20726 cat > conftest.$ac_ext <<EOF
20727 #line 20728 "configure"
20728 #include "confdefs.h"
20730 #ifdef HAVE_DB_185_H
20735 #ifndef DB_VERSION_MAJOR
20736 # define DB_VERSION_MAJOR 1
20739 #define NULL ((void *)0)
20743 #if DB_VERSION_MAJOR > 1
20745 int major, minor, patch;
20747 version = db_version( &major, &minor, &patch );
20749 if( major != DB_VERSION_MAJOR ||
20750 minor != DB_VERSION_MINOR ||
20751 patch != DB_VERSION_PATCH )
20753 printf("Berkeley DB version mismatch\n"
20754 "\theader: %s\n\tlibrary: %s\n",
20755 DB_VERSION_STRING, version);
20763 if { (eval echo configure:20764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
20765 ol_cv_berkeley_db_version=yes
20767 echo "configure: failed program was:" >&5
20768 cat conftest.$ac_ext >&5
20770 ol_cv_berkeley_db_version=no
20780 echo "$ac_t""$ol_cv_berkeley_db_version" 1>&6
20782 if test $ol_cv_berkeley_db_version = no ; then
20783 { echo "configure: error: Berkeley DB version mismatch" 1>&2; exit 1; }
20786 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
20787 echo "configure:20788: checking for Berkeley DB thread support" >&5
20788 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
20789 echo $ac_n "(cached) $ac_c" 1>&6
20793 LIBS="$LTHREAD_LIBS $LIBS"
20794 if test $ol_cv_lib_db != yes ; then
20795 LIBS="$ol_cv_lib_db $LIBS"
20798 if test "$cross_compiling" = yes; then
20799 ol_cv_berkeley_db_thread=cross
20801 cat > conftest.$ac_ext <<EOF
20802 #line 20803 "configure"
20803 #include "confdefs.h"
20805 #ifdef HAVE_DB_185_H
20811 #define NULL ((void *)0)
20816 u_int32_t flags = DB_CREATE |
20822 #if DB_VERSION_MAJOR > 2
20823 DB_ENV *env = NULL;
20825 rc = db_env_create( &env, 0 );
20827 flags |= DB_INIT_MPOOL;
20828 #ifdef DB_MPOOL_PRIVATE
20829 flags |= DB_MPOOL_PRIVATE;
20833 printf("BerkeleyDB: %s\n", db_strerror(rc) );
20837 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
20838 rc = env->open( env, NULL, flags, 0 );
20840 rc = env->open( env, NULL, NULL, flags, 0 );
20844 rc = env->close( env, 0 );
20848 printf("BerkeleyDB: %s\n", db_strerror(rc) );
20854 memset( &env, '\0', sizeof(env) );
20856 rc = db_appinit( NULL, NULL, &env, flags );
20859 db_appexit( &env );
20862 unlink("__db_mpool.share");
20863 unlink("__db_lock.share");
20869 if { (eval echo configure:20870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
20871 ol_cv_berkeley_db_thread=yes
20873 echo "configure: failed program was:" >&5
20874 cat conftest.$ac_ext >&5
20876 ol_cv_berkeley_db_thread=no
20886 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
20888 if test $ol_cv_berkeley_db_thread != no ; then
20889 cat >> confdefs.h <<\EOF
20890 #define HAVE_BERKELEY_DB_THREAD 1
20900 if test $ol_cv_berkeley_db != no ; then
20901 cat >> confdefs.h <<\EOF
20902 #define HAVE_BERKELEY_DB 1
20906 ol_link_ldbm=berkeley
20907 ol_with_ldbm_api=berkeley
20909 if test $ol_with_ldbm_type = hash ; then
20910 cat >> confdefs.h <<\EOF
20911 #define LDBM_USE_DBHASH 1
20915 cat >> confdefs.h <<\EOF
20916 #define LDBM_USE_DBBTREE 1
20921 if test $ol_cv_lib_db != yes ; then
20922 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
20927 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
20928 if test $ol_link_ldbm != berkeley ; then
20929 { echo "configure: error: BDB/HDB: BerkeleyDB not available" 1>&2; exit 1; }
20931 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
20932 echo "configure:20933: checking Berkeley DB version for BDB backend" >&5
20933 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
20934 echo $ac_n "(cached) $ac_c" 1>&6
20937 cat > conftest.$ac_ext <<EOF
20938 #line 20939 "configure"
20939 #include "confdefs.h"
20943 /* this check could be improved */
20944 #ifndef DB_VERSION_MAJOR
20945 # define DB_VERSION_MAJOR 1
20947 #ifndef DB_VERSION_MINOR
20948 # define DB_VERSION_MINOR 0
20951 /* require 4.2 or later */
20952 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
20953 __db_version_compat
20957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20958 egrep "__db_version_compat" >/dev/null 2>&1; then
20960 ol_cv_bdb_compat=yes
20963 ol_cv_bdb_compat=no
20969 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
20972 if test $ol_cv_bdb_compat != yes ; then
20973 { echo "configure: error: BDB/HDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
20978 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
20979 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
20980 ol_with_ldbm_api=none
20983 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
20984 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
20985 echo "configure:20986: checking for MDBM library" >&5
20986 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
20987 echo $ac_n "(cached) $ac_c" 1>&6
20990 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
20991 echo "configure:20992: checking for mdbm_set_chain" >&5
20992 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
20993 echo $ac_n "(cached) $ac_c" 1>&6
20995 cat > conftest.$ac_ext <<EOF
20996 #line 20997 "configure"
20997 #include "confdefs.h"
20998 /* System header to define __stub macros and hopefully few prototypes,
20999 which can conflict with char mdbm_set_chain(); below. */
21000 #include <assert.h>
21001 /* Override any gcc2 internal prototype to avoid an error. */
21002 /* We use char because int might match the return type of a gcc2
21003 builtin and then its argument prototype would still apply. */
21004 char mdbm_set_chain();
21009 /* The GNU C library defines this for functions which it implements
21010 to always fail with ENOSYS. Some functions are actually named
21011 something starting with __ and the normal name is an alias. */
21012 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
21015 f = mdbm_set_chain;
21020 if { (eval echo configure:21021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21022 eval "ac_cv_func_mdbm_set_chain=yes"
21024 echo "configure: failed program was:" >&5
21025 cat conftest.$ac_ext >&5
21027 eval "ac_cv_func_mdbm_set_chain=no"
21032 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
21033 echo "$ac_t""yes" 1>&6
21036 echo "$ac_t""no" 1>&6
21038 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
21039 echo "configure:21040: checking for mdbm_set_chain in -lmdbm" >&5
21040 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
21041 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21042 echo $ac_n "(cached) $ac_c" 1>&6
21044 ac_save_LIBS="$LIBS"
21045 LIBS="-lmdbm $LIBS"
21046 cat > conftest.$ac_ext <<EOF
21047 #line 21048 "configure"
21048 #include "confdefs.h"
21049 /* Override any gcc2 internal prototype to avoid an error. */
21050 /* We use char because int might match the return type of a gcc2
21051 builtin and then its argument prototype would still apply. */
21052 char mdbm_set_chain();
21058 if { (eval echo configure:21059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21060 eval "ac_cv_lib_$ac_lib_var=yes"
21062 echo "configure: failed program was:" >&5
21063 cat conftest.$ac_ext >&5
21065 eval "ac_cv_lib_$ac_lib_var=no"
21068 LIBS="$ac_save_LIBS"
21071 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21072 echo "$ac_t""yes" 1>&6
21073 ol_cv_lib_mdbm=-lmdbm
21075 echo "$ac_t""no" 1>&6
21086 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
21089 for ac_hdr in mdbm.h
21091 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21092 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21093 echo "configure:21094: checking for $ac_hdr" >&5
21094 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21095 echo $ac_n "(cached) $ac_c" 1>&6
21097 cat > conftest.$ac_ext <<EOF
21098 #line 21099 "configure"
21099 #include "confdefs.h"
21102 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21103 { (eval echo configure:21104: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21104 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21105 if test -z "$ac_err"; then
21107 eval "ac_cv_header_$ac_safe=yes"
21110 echo "configure: failed program was:" >&5
21111 cat conftest.$ac_ext >&5
21113 eval "ac_cv_header_$ac_safe=no"
21117 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21118 echo "$ac_t""yes" 1>&6
21119 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21120 cat >> confdefs.h <<EOF
21121 #define $ac_tr_hdr 1
21125 echo "$ac_t""no" 1>&6
21129 echo $ac_n "checking for db""... $ac_c" 1>&6
21130 echo "configure:21131: checking for db" >&5
21131 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
21132 echo $ac_n "(cached) $ac_c" 1>&6
21135 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
21143 echo "$ac_t""$ol_cv_mdbm" 1>&6
21144 if test $ol_cv_mdbm = yes ; then
21145 cat >> confdefs.h <<\EOF
21146 #define HAVE_MDBM 1
21152 if test $ol_cv_mdbm = yes ; then
21154 ol_with_ldbm_api=mdbm
21155 if test $ol_cv_lib_mdbm != yes ; then
21156 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
21161 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
21162 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
21163 echo "configure:21164: checking for GDBM library" >&5
21164 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
21165 echo $ac_n "(cached) $ac_c" 1>&6
21168 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
21169 echo "configure:21170: checking for gdbm_open" >&5
21170 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
21171 echo $ac_n "(cached) $ac_c" 1>&6
21173 cat > conftest.$ac_ext <<EOF
21174 #line 21175 "configure"
21175 #include "confdefs.h"
21176 /* System header to define __stub macros and hopefully few prototypes,
21177 which can conflict with char gdbm_open(); below. */
21178 #include <assert.h>
21179 /* Override any gcc2 internal prototype to avoid an error. */
21180 /* We use char because int might match the return type of a gcc2
21181 builtin and then its argument prototype would still apply. */
21187 /* The GNU C library defines this for functions which it implements
21188 to always fail with ENOSYS. Some functions are actually named
21189 something starting with __ and the normal name is an alias. */
21190 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
21198 if { (eval echo configure:21199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21200 eval "ac_cv_func_gdbm_open=yes"
21202 echo "configure: failed program was:" >&5
21203 cat conftest.$ac_ext >&5
21205 eval "ac_cv_func_gdbm_open=no"
21210 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
21211 echo "$ac_t""yes" 1>&6
21214 echo "$ac_t""no" 1>&6
21216 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
21217 echo "configure:21218: checking for gdbm_open in -lgdbm" >&5
21218 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
21219 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21220 echo $ac_n "(cached) $ac_c" 1>&6
21222 ac_save_LIBS="$LIBS"
21223 LIBS="-lgdbm $LIBS"
21224 cat > conftest.$ac_ext <<EOF
21225 #line 21226 "configure"
21226 #include "confdefs.h"
21227 /* Override any gcc2 internal prototype to avoid an error. */
21228 /* We use char because int might match the return type of a gcc2
21229 builtin and then its argument prototype would still apply. */
21236 if { (eval echo configure:21237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21238 eval "ac_cv_lib_$ac_lib_var=yes"
21240 echo "configure: failed program was:" >&5
21241 cat conftest.$ac_ext >&5
21243 eval "ac_cv_lib_$ac_lib_var=no"
21246 LIBS="$ac_save_LIBS"
21249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21250 echo "$ac_t""yes" 1>&6
21251 ol_cv_lib_gdbm=-lgdbm
21253 echo "$ac_t""no" 1>&6
21264 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
21267 for ac_hdr in gdbm.h
21269 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21270 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21271 echo "configure:21272: checking for $ac_hdr" >&5
21272 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21273 echo $ac_n "(cached) $ac_c" 1>&6
21275 cat > conftest.$ac_ext <<EOF
21276 #line 21277 "configure"
21277 #include "confdefs.h"
21280 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21281 { (eval echo configure:21282: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21282 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21283 if test -z "$ac_err"; then
21285 eval "ac_cv_header_$ac_safe=yes"
21288 echo "configure: failed program was:" >&5
21289 cat conftest.$ac_ext >&5
21291 eval "ac_cv_header_$ac_safe=no"
21295 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21296 echo "$ac_t""yes" 1>&6
21297 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21298 cat >> confdefs.h <<EOF
21299 #define $ac_tr_hdr 1
21303 echo "$ac_t""no" 1>&6
21307 echo $ac_n "checking for db""... $ac_c" 1>&6
21308 echo "configure:21309: checking for db" >&5
21309 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
21310 echo $ac_n "(cached) $ac_c" 1>&6
21313 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
21321 echo "$ac_t""$ol_cv_gdbm" 1>&6
21322 if test $ol_cv_gdbm = yes ; then
21323 cat >> confdefs.h <<\EOF
21324 #define HAVE_GDBM 1
21330 if test $ol_cv_gdbm = yes ; then
21332 ol_with_ldbm_api=gdbm
21334 if test $ol_cv_lib_gdbm != yes ; then
21335 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
21340 if test $ol_with_ldbm_api = ndbm ; then
21341 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
21342 echo "configure:21343: checking for NDBM library" >&5
21343 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
21344 echo $ac_n "(cached) $ac_c" 1>&6
21347 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
21348 echo "configure:21349: checking for dbm_open" >&5
21349 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
21350 echo $ac_n "(cached) $ac_c" 1>&6
21352 cat > conftest.$ac_ext <<EOF
21353 #line 21354 "configure"
21354 #include "confdefs.h"
21355 /* System header to define __stub macros and hopefully few prototypes,
21356 which can conflict with char dbm_open(); below. */
21357 #include <assert.h>
21358 /* Override any gcc2 internal prototype to avoid an error. */
21359 /* We use char because int might match the return type of a gcc2
21360 builtin and then its argument prototype would still apply. */
21366 /* The GNU C library defines this for functions which it implements
21367 to always fail with ENOSYS. Some functions are actually named
21368 something starting with __ and the normal name is an alias. */
21369 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
21377 if { (eval echo configure:21378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21379 eval "ac_cv_func_dbm_open=yes"
21381 echo "configure: failed program was:" >&5
21382 cat conftest.$ac_ext >&5
21384 eval "ac_cv_func_dbm_open=no"
21389 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
21390 echo "$ac_t""yes" 1>&6
21393 echo "$ac_t""no" 1>&6
21395 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
21396 echo "configure:21397: checking for dbm_open in -lndbm" >&5
21397 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
21398 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21399 echo $ac_n "(cached) $ac_c" 1>&6
21401 ac_save_LIBS="$LIBS"
21402 LIBS="-lndbm $LIBS"
21403 cat > conftest.$ac_ext <<EOF
21404 #line 21405 "configure"
21405 #include "confdefs.h"
21406 /* Override any gcc2 internal prototype to avoid an error. */
21407 /* We use char because int might match the return type of a gcc2
21408 builtin and then its argument prototype would still apply. */
21415 if { (eval echo configure:21416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21417 eval "ac_cv_lib_$ac_lib_var=yes"
21419 echo "configure: failed program was:" >&5
21420 cat conftest.$ac_ext >&5
21422 eval "ac_cv_lib_$ac_lib_var=no"
21425 LIBS="$ac_save_LIBS"
21428 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21429 echo "$ac_t""yes" 1>&6
21430 ol_cv_lib_ndbm=-lndbm
21432 echo "$ac_t""no" 1>&6
21434 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
21435 echo "configure:21436: checking for dbm_open in -ldbm" >&5
21436 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
21437 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21438 echo $ac_n "(cached) $ac_c" 1>&6
21440 ac_save_LIBS="$LIBS"
21442 cat > conftest.$ac_ext <<EOF
21443 #line 21444 "configure"
21444 #include "confdefs.h"
21445 /* Override any gcc2 internal prototype to avoid an error. */
21446 /* We use char because int might match the return type of a gcc2
21447 builtin and then its argument prototype would still apply. */
21454 if { (eval echo configure:21455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21456 eval "ac_cv_lib_$ac_lib_var=yes"
21458 echo "configure: failed program was:" >&5
21459 cat conftest.$ac_ext >&5
21461 eval "ac_cv_lib_$ac_lib_var=no"
21464 LIBS="$ac_save_LIBS"
21467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21468 echo "$ac_t""yes" 1>&6
21469 ol_cv_lib_ndbm=-ldbm
21471 echo "$ac_t""no" 1>&6
21484 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
21487 for ac_hdr in ndbm.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
21523 echo "$ac_t""no" 1>&6
21527 echo $ac_n "checking for db""... $ac_c" 1>&6
21528 echo "configure:21529: checking for db" >&5
21529 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
21530 echo $ac_n "(cached) $ac_c" 1>&6
21533 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
21541 echo "$ac_t""$ol_cv_ndbm" 1>&6
21542 if test $ol_cv_ndbm = yes ; then
21543 cat >> confdefs.h <<\EOF
21544 #define HAVE_NDBM 1
21550 if test $ol_cv_ndbm = yes ; then
21552 ol_with_ldbm_api=ndbm
21554 if test $ol_cv_lib_ndbm != yes ; then
21555 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
21560 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
21561 { echo "configure: error: could not find suitable LDBM backend" 1>&2; exit 1; }
21564 if test $ol_enable_bdb = yes -o \
21565 $ol_enable_hdb = yes -o \
21566 $ol_enable_ldbm = yes ; then
21567 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
21571 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
21572 BUILD_LIBS_DYNAMIC=shared
21573 cat >> confdefs.h <<\EOF
21574 #define LDAP_LIBS_DYNAMIC 1
21579 BUILD_LIBS_DYNAMIC=static
21583 if test $ol_enable_wrappers != no ; then
21584 for ac_hdr in tcpd.h
21586 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21587 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21588 echo "configure:21589: checking for $ac_hdr" >&5
21589 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21590 echo $ac_n "(cached) $ac_c" 1>&6
21592 cat > conftest.$ac_ext <<EOF
21593 #line 21594 "configure"
21594 #include "confdefs.h"
21597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21598 { (eval echo configure:21599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21600 if test -z "$ac_err"; then
21602 eval "ac_cv_header_$ac_safe=yes"
21605 echo "configure: failed program was:" >&5
21606 cat conftest.$ac_ext >&5
21608 eval "ac_cv_header_$ac_safe=no"
21612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21613 echo "$ac_t""yes" 1>&6
21614 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21615 cat >> confdefs.h <<EOF
21616 #define $ac_tr_hdr 1
21619 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
21620 echo "configure:21621: checking for TCP wrappers library" >&5
21622 LIBS="$LIBS -lwrap"
21623 cat > conftest.$ac_ext <<EOF
21624 #line 21625 "configure"
21625 #include "confdefs.h"
21628 int allow_severity = 0;
21629 int deny_severity = 0;
21631 struct request_info *req;
21639 if { (eval echo configure:21640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21641 echo "$ac_t""-lwrap" 1>&6
21645 echo "configure: failed program was:" >&5
21646 cat conftest.$ac_ext >&5
21650 cat > conftest.$ac_ext <<EOF
21651 #line 21652 "configure"
21652 #include "confdefs.h"
21655 int allow_severity = 0;
21656 int deny_severity = 0;
21658 struct request_info *req;
21666 if { (eval echo configure:21667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21668 echo "$ac_t""-lwrap -lnsl" 1>&6
21670 LIBS="$save_LIBS -lnsl"
21672 echo "configure: failed program was:" >&5
21673 cat conftest.$ac_ext >&5
21676 echo "$ac_t""no" 1>&6
21684 echo "$ac_t""no" 1>&6
21690 if test $have_wrappers = yes ; then
21691 cat >> confdefs.h <<\EOF
21692 #define HAVE_TCPD 1
21696 elif test $ol_enable_wrappers = yes ; then
21697 { echo "configure: error: could not find TCP wrappers, select apppropriate options or disable" 1>&2; exit 1; }
21699 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
21704 if test $ol_enable_syslog != no ; then
21705 echo $ac_n "checking for openlog""... $ac_c" 1>&6
21706 echo "configure:21707: checking for openlog" >&5
21707 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
21708 echo $ac_n "(cached) $ac_c" 1>&6
21710 cat > conftest.$ac_ext <<EOF
21711 #line 21712 "configure"
21712 #include "confdefs.h"
21713 /* System header to define __stub macros and hopefully few prototypes,
21714 which can conflict with char openlog(); below. */
21715 #include <assert.h>
21716 /* Override any gcc2 internal prototype to avoid an error. */
21717 /* We use char because int might match the return type of a gcc2
21718 builtin and then its argument prototype would still apply. */
21724 /* The GNU C library defines this for functions which it implements
21725 to always fail with ENOSYS. Some functions are actually named
21726 something starting with __ and the normal name is an alias. */
21727 #if defined (__stub_openlog) || defined (__stub___openlog)
21735 if { (eval echo configure:21736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21737 eval "ac_cv_func_openlog=yes"
21739 echo "configure: failed program was:" >&5
21740 cat conftest.$ac_ext >&5
21742 eval "ac_cv_func_openlog=no"
21747 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
21748 echo "$ac_t""yes" 1>&6
21751 echo "$ac_t""no" 1>&6
21754 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
21755 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
21757 ol_enable_syslog=$ac_cv_func_openlog
21762 if test $ol_enable_sql != no ; then
21763 for ac_hdr in sql.h sqlext.h
21765 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21766 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21767 echo "configure:21768: checking for $ac_hdr" >&5
21768 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21769 echo $ac_n "(cached) $ac_c" 1>&6
21771 cat > conftest.$ac_ext <<EOF
21772 #line 21773 "configure"
21773 #include "confdefs.h"
21776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21777 { (eval echo configure:21778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21778 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21779 if test -z "$ac_err"; then
21781 eval "ac_cv_header_$ac_safe=yes"
21784 echo "configure: failed program was:" >&5
21785 cat conftest.$ac_ext >&5
21787 eval "ac_cv_header_$ac_safe=no"
21791 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21792 echo "$ac_t""yes" 1>&6
21793 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21794 cat >> confdefs.h <<EOF
21795 #define $ac_tr_hdr 1
21799 echo "$ac_t""no" 1>&6
21800 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
21807 LIBS="$LTHREAD_LIBS"
21809 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
21810 echo "configure:21811: checking for SQLDriverConnect in -liodbc" >&5
21811 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
21812 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21813 echo $ac_n "(cached) $ac_c" 1>&6
21815 ac_save_LIBS="$LIBS"
21816 LIBS="-liodbc $LIBS"
21817 cat > conftest.$ac_ext <<EOF
21818 #line 21819 "configure"
21819 #include "confdefs.h"
21820 /* Override any gcc2 internal prototype to avoid an error. */
21821 /* We use char because int might match the return type of a gcc2
21822 builtin and then its argument prototype would still apply. */
21823 char SQLDriverConnect();
21829 if { (eval echo configure:21830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21831 eval "ac_cv_lib_$ac_lib_var=yes"
21833 echo "configure: failed program was:" >&5
21834 cat conftest.$ac_ext >&5
21836 eval "ac_cv_lib_$ac_lib_var=no"
21839 LIBS="$ac_save_LIBS"
21842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21843 echo "$ac_t""yes" 1>&6
21846 echo "$ac_t""no" 1>&6
21850 if test $have_iodbc = yes ; then
21851 ol_link_sql="-liodbc"
21853 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
21854 echo "configure:21855: checking for SQLDriverConnect in -lodbc" >&5
21855 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
21856 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21857 echo $ac_n "(cached) $ac_c" 1>&6
21859 ac_save_LIBS="$LIBS"
21860 LIBS="-lodbc $LIBS"
21861 cat > conftest.$ac_ext <<EOF
21862 #line 21863 "configure"
21863 #include "confdefs.h"
21864 /* Override any gcc2 internal prototype to avoid an error. */
21865 /* We use char because int might match the return type of a gcc2
21866 builtin and then its argument prototype would still apply. */
21867 char SQLDriverConnect();
21873 if { (eval echo configure:21874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21875 eval "ac_cv_lib_$ac_lib_var=yes"
21877 echo "configure: failed program was:" >&5
21878 cat conftest.$ac_ext >&5
21880 eval "ac_cv_lib_$ac_lib_var=no"
21883 LIBS="$ac_save_LIBS"
21886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21887 echo "$ac_t""yes" 1>&6
21890 echo "$ac_t""no" 1>&6
21894 if test $have_odbc = yes ; then
21895 ol_link_sql="-lodbc"
21901 if test $ol_link_sql != no ; then
21902 SLAPD_SQL_LIBS="$ol_link_sql"
21904 elif test $ol_enable_sql != auto ; then
21905 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
21912 if test $ol_with_cyrus_sasl != no ; then
21913 for ac_hdr in sasl/sasl.h sasl.h
21915 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21916 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21917 echo "configure:21918: checking for $ac_hdr" >&5
21918 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21919 echo $ac_n "(cached) $ac_c" 1>&6
21921 cat > conftest.$ac_ext <<EOF
21922 #line 21923 "configure"
21923 #include "confdefs.h"
21926 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21927 { (eval echo configure:21928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21928 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21929 if test -z "$ac_err"; then
21931 eval "ac_cv_header_$ac_safe=yes"
21934 echo "configure: failed program was:" >&5
21935 cat conftest.$ac_ext >&5
21937 eval "ac_cv_header_$ac_safe=no"
21941 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21942 echo "$ac_t""yes" 1>&6
21943 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21944 cat >> confdefs.h <<EOF
21945 #define $ac_tr_hdr 1
21949 echo "$ac_t""no" 1>&6
21954 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
21955 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
21956 echo "configure:21957: checking for sasl_client_init in -lsasl2" >&5
21957 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
21958 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21959 echo $ac_n "(cached) $ac_c" 1>&6
21961 ac_save_LIBS="$LIBS"
21962 LIBS="-lsasl2 $LIBS"
21963 cat > conftest.$ac_ext <<EOF
21964 #line 21965 "configure"
21965 #include "confdefs.h"
21966 /* Override any gcc2 internal prototype to avoid an error. */
21967 /* We use char because int might match the return type of a gcc2
21968 builtin and then its argument prototype would still apply. */
21969 char sasl_client_init();
21975 if { (eval echo configure:21976: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21977 eval "ac_cv_lib_$ac_lib_var=yes"
21979 echo "configure: failed program was:" >&5
21980 cat conftest.$ac_ext >&5
21982 eval "ac_cv_lib_$ac_lib_var=no"
21985 LIBS="$ac_save_LIBS"
21988 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21989 echo "$ac_t""yes" 1>&6
21990 ol_link_sasl="-lsasl2"
21992 echo "$ac_t""no" 1>&6
21993 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
21994 echo "configure:21995: checking for sasl_client_init in -lsasl" >&5
21995 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
21996 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21997 echo $ac_n "(cached) $ac_c" 1>&6
21999 ac_save_LIBS="$LIBS"
22000 LIBS="-lsasl $LIBS"
22001 cat > conftest.$ac_ext <<EOF
22002 #line 22003 "configure"
22003 #include "confdefs.h"
22004 /* Override any gcc2 internal prototype to avoid an error. */
22005 /* We use char because int might match the return type of a gcc2
22006 builtin and then its argument prototype would still apply. */
22007 char sasl_client_init();
22013 if { (eval echo configure:22014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22015 eval "ac_cv_lib_$ac_lib_var=yes"
22017 echo "configure: failed program was:" >&5
22018 cat conftest.$ac_ext >&5
22020 eval "ac_cv_lib_$ac_lib_var=no"
22023 LIBS="$ac_save_LIBS"
22026 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22027 echo "$ac_t""yes" 1>&6
22028 ol_link_sasl="-lsasl"
22030 echo "$ac_t""no" 1>&6
22037 if test $ol_link_sasl = no ; then
22038 if test $ol_with_cyrus_sasl != auto ; then
22039 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
22041 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
22042 echo "configure: warning: SASL authentication not supported!" 1>&2
22043 if test $ol_link_tls = no ; then
22044 echo "configure: warning: Strong authentication not supported!" 1>&2
22048 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
22049 echo "configure:22050: checking Cyrus SASL library version" >&5
22050 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
22051 echo $ac_n "(cached) $ac_c" 1>&6
22054 cat > conftest.$ac_ext <<EOF
22055 #line 22056 "configure"
22056 #include "confdefs.h"
22058 #ifdef HAVE_SASL_SASL_H
22059 #include <sasl/sasl.h>
22064 /* Require 2.1.15+ */
22065 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
22066 char *__sasl_compat = "2.2+ or better okay (we guess)";
22067 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
22068 && SASL_VERSION_STEP >=15
22069 char *__sasl_compat = "2.1.15+ or better okay";
22073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22074 egrep "__sasl_compat" >/dev/null 2>&1; then
22076 ol_cv_sasl_compat=yes
22079 ol_cv_sasl_compat=no
22085 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
22087 if test $ol_cv_sasl_compat = no ; then
22089 { echo "configure: error: Cyrus SASL library located but is incompatible" 1>&2; exit 1; }
22092 cat >> confdefs.h <<\EOF
22093 #define HAVE_CYRUS_SASL 1
22096 SASL_LIBS="$ol_link_sasl"
22097 if test $ol_enable_spasswd != no ; then
22098 ol_link_spasswd=yes
22101 ac_save_LIBS="$LIBS"
22102 LIBS="$LIBS $ol_link_sasl"
22103 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
22104 echo "configure:22105: checking for sasl_version" >&5
22105 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
22106 echo $ac_n "(cached) $ac_c" 1>&6
22108 cat > conftest.$ac_ext <<EOF
22109 #line 22110 "configure"
22110 #include "confdefs.h"
22111 /* System header to define __stub macros and hopefully few prototypes,
22112 which can conflict with char sasl_version(); below. */
22113 #include <assert.h>
22114 /* Override any gcc2 internal prototype to avoid an error. */
22115 /* We use char because int might match the return type of a gcc2
22116 builtin and then its argument prototype would still apply. */
22117 char sasl_version();
22122 /* The GNU C library defines this for functions which it implements
22123 to always fail with ENOSYS. Some functions are actually named
22124 something starting with __ and the normal name is an alias. */
22125 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
22133 if { (eval echo configure:22134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22135 eval "ac_cv_func_sasl_version=yes"
22137 echo "configure: failed program was:" >&5
22138 cat conftest.$ac_ext >&5
22140 eval "ac_cv_func_sasl_version=no"
22145 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
22146 echo "$ac_t""yes" 1>&6
22147 cat >> confdefs.h <<\EOF
22148 #define HAVE_SASL_VERSION 1
22152 echo "$ac_t""no" 1>&6
22155 LIBS="$ac_save_LIBS"
22161 echo "configure: warning: SASL authentication not supported!" 1>&2
22162 if test $ol_link_tls = no ; then
22163 echo "configure: warning: Strong authentication not supported!" 1>&2
22167 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
22169 if test -r /dev/urandom ; then
22170 dev="/dev/urandom";
22171 elif test -r /idev/urandom ; then
22172 dev="/idev/urandom";
22173 elif test -r /dev/srandom ; then
22174 dev="/dev/srandom";
22175 elif test -r /dev/random ; then
22177 elif test -r /idev/random ; then
22178 dev="/idev/random";
22181 if test $dev != no ; then
22182 cat >> confdefs.h <<EOF
22183 #define URANDOM_DEVICE "$dev"
22190 if test $ol_with_fetch != no ; then
22192 LIBS="-lfetch -lcom_err $LIBS"
22193 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
22194 echo "configure:22195: checking fetch(3) library" >&5
22195 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
22196 echo $ac_n "(cached) $ac_c" 1>&6
22199 cat > conftest.$ac_ext <<EOF
22200 #line 22201 "configure"
22201 #include "confdefs.h"
22203 #include <sys/param.h>
22207 struct url *u = fetchParseURL("file:///");
22210 if { (eval echo configure:22211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22212 ol_cv_lib_fetch=yes
22214 echo "configure: failed program was:" >&5
22215 cat conftest.$ac_ext >&5
22222 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
22224 if test $ol_cv_lib_fetch != no ; then
22225 ol_link_fetch="-lfetch -lcom_err"
22226 cat >> confdefs.h <<\EOF
22227 #define HAVE_FETCH 1
22233 if test $ol_cv_lib_fetch != no ; then
22234 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
22235 ol_link_fetch=freebsd
22237 elif test $ol_with_fetch != auto ; then
22238 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
22242 if test $ol_enable_crypt != no ; then
22244 LIBS="$TLS_LIBS $LIBS"
22246 echo $ac_n "checking for crypt""... $ac_c" 1>&6
22247 echo "configure:22248: checking for crypt" >&5
22248 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
22249 echo $ac_n "(cached) $ac_c" 1>&6
22251 cat > conftest.$ac_ext <<EOF
22252 #line 22253 "configure"
22253 #include "confdefs.h"
22254 /* System header to define __stub macros and hopefully few prototypes,
22255 which can conflict with char crypt(); below. */
22256 #include <assert.h>
22257 /* Override any gcc2 internal prototype to avoid an error. */
22258 /* We use char because int might match the return type of a gcc2
22259 builtin and then its argument prototype would still apply. */
22265 /* The GNU C library defines this for functions which it implements
22266 to always fail with ENOSYS. Some functions are actually named
22267 something starting with __ and the normal name is an alias. */
22268 #if defined (__stub_crypt) || defined (__stub___crypt)
22276 if { (eval echo configure:22277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22278 eval "ac_cv_func_crypt=yes"
22280 echo "configure: failed program was:" >&5
22281 cat conftest.$ac_ext >&5
22283 eval "ac_cv_func_crypt=no"
22288 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
22289 echo "$ac_t""yes" 1>&6
22292 echo "$ac_t""no" 1>&6
22295 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
22296 echo "configure:22297: checking for crypt in -lcrypt" >&5
22297 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
22298 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22299 echo $ac_n "(cached) $ac_c" 1>&6
22301 ac_save_LIBS="$LIBS"
22302 LIBS="-lcrypt $LIBS"
22303 cat > conftest.$ac_ext <<EOF
22304 #line 22305 "configure"
22305 #include "confdefs.h"
22306 /* Override any gcc2 internal prototype to avoid an error. */
22307 /* We use char because int might match the return type of a gcc2
22308 builtin and then its argument prototype would still apply. */
22315 if { (eval echo configure:22316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22317 eval "ac_cv_lib_$ac_lib_var=yes"
22319 echo "configure: failed program was:" >&5
22320 cat conftest.$ac_ext >&5
22322 eval "ac_cv_lib_$ac_lib_var=no"
22325 LIBS="$ac_save_LIBS"
22328 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22329 echo "$ac_t""yes" 1>&6
22330 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
22333 echo "$ac_t""no" 1>&6
22342 if test $have_crypt = yes ; then
22343 cat >> confdefs.h <<\EOF
22344 #define HAVE_CRYPT 1
22348 echo "configure: warning: could not find crypt" 1>&2
22349 if test $ol_enable_crypt = yes ; then
22350 { echo "configure: error: could not find crypt, select appropriate options or disable" 1>&2; exit 1; }
22353 echo "configure: warning: disabling crypt support" 1>&2
22358 if test $ol_enable_proctitle != no ; then
22359 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
22360 echo "configure:22361: checking for setproctitle" >&5
22361 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
22362 echo $ac_n "(cached) $ac_c" 1>&6
22364 cat > conftest.$ac_ext <<EOF
22365 #line 22366 "configure"
22366 #include "confdefs.h"
22367 /* System header to define __stub macros and hopefully few prototypes,
22368 which can conflict with char setproctitle(); below. */
22369 #include <assert.h>
22370 /* Override any gcc2 internal prototype to avoid an error. */
22371 /* We use char because int might match the return type of a gcc2
22372 builtin and then its argument prototype would still apply. */
22373 char setproctitle();
22378 /* The GNU C library defines this for functions which it implements
22379 to always fail with ENOSYS. Some functions are actually named
22380 something starting with __ and the normal name is an alias. */
22381 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
22389 if { (eval echo configure:22390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22391 eval "ac_cv_func_setproctitle=yes"
22393 echo "configure: failed program was:" >&5
22394 cat conftest.$ac_ext >&5
22396 eval "ac_cv_func_setproctitle=no"
22401 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
22402 echo "$ac_t""yes" 1>&6
22403 have_setproctitle=yes
22405 echo "$ac_t""no" 1>&6
22407 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
22408 echo "configure:22409: checking for setproctitle in -lutil" >&5
22409 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
22410 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22411 echo $ac_n "(cached) $ac_c" 1>&6
22413 ac_save_LIBS="$LIBS"
22414 LIBS="-lutil $LIBS"
22415 cat > conftest.$ac_ext <<EOF
22416 #line 22417 "configure"
22417 #include "confdefs.h"
22418 /* Override any gcc2 internal prototype to avoid an error. */
22419 /* We use char because int might match the return type of a gcc2
22420 builtin and then its argument prototype would still apply. */
22421 char setproctitle();
22427 if { (eval echo configure:22428: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22429 eval "ac_cv_lib_$ac_lib_var=yes"
22431 echo "configure: failed program was:" >&5
22432 cat conftest.$ac_ext >&5
22434 eval "ac_cv_lib_$ac_lib_var=no"
22437 LIBS="$ac_save_LIBS"
22440 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22441 echo "$ac_t""yes" 1>&6
22442 have_setproctitle=yes
22443 LUTIL_LIBS="$LUTIL_LIBS -lutil"
22445 echo "$ac_t""no" 1>&6
22446 have_setproctitle=no
22447 LIBOBJS="$LIBOBJS setproctitle.o"
22448 LIBSRCS="$LIBSRCS setproctitle.c"
22454 if test $have_setproctitle = yes ; then
22455 cat >> confdefs.h <<\EOF
22456 #define HAVE_SETPROCTITLE 1
22462 if test $ol_enable_slp != no ; then
22463 for ac_hdr in slp.h
22465 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22466 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22467 echo "configure:22468: checking for $ac_hdr" >&5
22468 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22469 echo $ac_n "(cached) $ac_c" 1>&6
22471 cat > conftest.$ac_ext <<EOF
22472 #line 22473 "configure"
22473 #include "confdefs.h"
22476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22477 { (eval echo configure:22478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22479 if test -z "$ac_err"; then
22481 eval "ac_cv_header_$ac_safe=yes"
22484 echo "configure: failed program was:" >&5
22485 cat conftest.$ac_ext >&5
22487 eval "ac_cv_header_$ac_safe=no"
22491 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22492 echo "$ac_t""yes" 1>&6
22493 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22494 cat >> confdefs.h <<EOF
22495 #define $ac_tr_hdr 1
22499 echo "$ac_t""no" 1>&6
22504 if test $ac_cv_header_slp_h = yes ; then
22505 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
22506 echo "configure:22507: checking for SLPOpen in -lslp" >&5
22507 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
22508 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22509 echo $ac_n "(cached) $ac_c" 1>&6
22511 ac_save_LIBS="$LIBS"
22513 cat > conftest.$ac_ext <<EOF
22514 #line 22515 "configure"
22515 #include "confdefs.h"
22516 /* Override any gcc2 internal prototype to avoid an error. */
22517 /* We use char because int might match the return type of a gcc2
22518 builtin and then its argument prototype would still apply. */
22525 if { (eval echo configure:22526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22527 eval "ac_cv_lib_$ac_lib_var=yes"
22529 echo "configure: failed program was:" >&5
22530 cat conftest.$ac_ext >&5
22532 eval "ac_cv_lib_$ac_lib_var=no"
22535 LIBS="$ac_save_LIBS"
22538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22539 echo "$ac_t""yes" 1>&6
22542 echo "$ac_t""no" 1>&6
22546 if test $have_slp = yes ; then
22547 cat >> confdefs.h <<\EOF
22551 SLAPD_SLP_LIBS=-lslp
22554 elif test $ol_enable_slp = yes ; then
22555 { echo "configure: error: SLP not found" 1>&2; exit 1; }
22559 if test "$ol_with_multiple_precision" != "no" ; then
22563 for ac_hdr in openssl/bn.h bn.h
22565 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22566 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22567 echo "configure:22568: checking for $ac_hdr" >&5
22568 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22569 echo $ac_n "(cached) $ac_c" 1>&6
22571 cat > conftest.$ac_ext <<EOF
22572 #line 22573 "configure"
22573 #include "confdefs.h"
22576 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22577 { (eval echo configure:22578: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22578 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22579 if test -z "$ac_err"; then
22581 eval "ac_cv_header_$ac_safe=yes"
22584 echo "configure: failed program was:" >&5
22585 cat conftest.$ac_ext >&5
22587 eval "ac_cv_header_$ac_safe=no"
22591 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22592 echo "$ac_t""yes" 1>&6
22593 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22594 cat >> confdefs.h <<EOF
22595 #define $ac_tr_hdr 1
22599 echo "$ac_t""no" 1>&6
22603 for ac_hdr in openssl/crypto.h crypto.h
22605 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22606 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22607 echo "configure:22608: checking for $ac_hdr" >&5
22608 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22609 echo $ac_n "(cached) $ac_c" 1>&6
22611 cat > conftest.$ac_ext <<EOF
22612 #line 22613 "configure"
22613 #include "confdefs.h"
22616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22617 { (eval echo configure:22618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22618 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22619 if test -z "$ac_err"; then
22621 eval "ac_cv_header_$ac_safe=yes"
22624 echo "configure: failed program was:" >&5
22625 cat conftest.$ac_ext >&5
22627 eval "ac_cv_header_$ac_safe=no"
22631 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22632 echo "$ac_t""yes" 1>&6
22633 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22634 cat >> confdefs.h <<EOF
22635 #define $ac_tr_hdr 1
22639 echo "$ac_t""no" 1>&6
22643 for ac_hdr in gmp.h
22645 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22646 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22647 echo "configure:22648: checking for $ac_hdr" >&5
22648 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22649 echo $ac_n "(cached) $ac_c" 1>&6
22651 cat > conftest.$ac_ext <<EOF
22652 #line 22653 "configure"
22653 #include "confdefs.h"
22656 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22657 { (eval echo configure:22658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22658 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22659 if test -z "$ac_err"; then
22661 eval "ac_cv_header_$ac_safe=yes"
22664 echo "configure: failed program was:" >&5
22665 cat conftest.$ac_ext >&5
22667 eval "ac_cv_header_$ac_safe=no"
22671 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22672 echo "$ac_t""yes" 1>&6
22673 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22674 cat >> confdefs.h <<EOF
22675 #define $ac_tr_hdr 1
22679 echo "$ac_t""no" 1>&6
22684 if test "$ol_with_tls" = "found" ; then
22686 ol_have_crypto_h=no
22688 if test "$ac_cv_header_openssl_bn_h" = "yes" \
22689 -o "$ac_cv_header_bn_h" = "yes" ; then
22693 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
22694 -o "$ac_cv_header_crypto_h" = "yes" ; then
22695 ol_have_crypto_h=yes
22698 if test "$ol_have_bn_h" = "yes" \
22699 -a "$ol_have_crypto_h" = "yes" ; then
22704 if test $ac_cv_header_gmp_h = yes ; then
22705 echo $ac_n "checking for __gmpz_add_ui in -lgmp""... $ac_c" 1>&6
22706 echo "configure:22707: checking for __gmpz_add_ui in -lgmp" >&5
22707 ac_lib_var=`echo gmp'_'__gmpz_add_ui | sed 'y%./+-:%__p__%'`
22708 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22709 echo $ac_n "(cached) $ac_c" 1>&6
22711 ac_save_LIBS="$LIBS"
22713 cat > conftest.$ac_ext <<EOF
22714 #line 22715 "configure"
22715 #include "confdefs.h"
22716 /* Override any gcc2 internal prototype to avoid an error. */
22717 /* We use char because int might match the return type of a gcc2
22718 builtin and then its argument prototype would still apply. */
22719 char __gmpz_add_ui();
22725 if { (eval echo configure:22726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22727 eval "ac_cv_lib_$ac_lib_var=yes"
22729 echo "configure: failed program was:" >&5
22730 cat conftest.$ac_ext >&5
22732 eval "ac_cv_lib_$ac_lib_var=no"
22735 LIBS="$ac_save_LIBS"
22738 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22739 echo "$ac_t""yes" 1>&6
22742 echo "$ac_t""no" 1>&6
22746 if test $have_gmp = yes ; then
22751 echo $ac_n "checking for multiple precision support""... $ac_c" 1>&6
22752 echo "configure:22753: checking for multiple precision support" >&5
22754 ol_mp_support="none"
22755 case "$ol_with_multiple_precision" in
22757 if test "$ol_have_bignum" = "yes" ; then
22758 ol_mp_support="bignum"
22760 if test "$ol_have_gmp" = "yes" ; then
22761 ol_mp_support="gmp"
22766 if test "$ol_have_bignum" != "yes" ; then
22767 { echo "configure: error: OpenSSL's BIGNUM not available" 1>&2; exit 1; }
22769 ol_mp_support="bignum"
22772 if test "$ol_have_gmp" != "yes" ; then
22773 { echo "configure: error: GMP not available" 1>&2; exit 1; }
22775 ol_mp_support="gmp"
22778 if test "$ol_have_bignum" = "yes" ; then
22779 ol_mp_support="bignum"
22780 elif test "$ol_have_gmp" = "yes" ; then
22781 ol_mp_support="gmp"
22783 { echo "configure: error: not available" 1>&2; exit 1; }
22788 case "$ol_mp_support" in
22790 cat >> confdefs.h <<\EOF
22791 #define HAVE_BIGNUM 1
22796 cat >> confdefs.h <<\EOF
22800 SLAPD_GMP_LIBS=-lgmp
22806 echo "$ac_t""$ol_mp_support" 1>&6
22810 echo $ac_n "checking long long""... $ac_c" 1>&6
22811 echo "configure:22812: checking long long" >&5
22812 if eval "test \"\${ol_cv_type_long_long+set}\" = set"; then
22813 echo $ac_n "(cached) $ac_c" 1>&6
22816 cat > conftest.$ac_ext <<EOF
22817 #line 22818 "configure"
22818 #include "confdefs.h"
22824 if { (eval echo configure:22825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22826 ol_cv_type_long_long=yes
22828 echo "configure: failed program was:" >&5
22829 cat conftest.$ac_ext >&5
22831 ol_cv_type_long_long=no
22836 echo "$ac_t""$ol_cv_type_long_long" 1>&6
22837 if test $ol_cv_type_long_long = yes; then
22838 cat >> confdefs.h <<\EOF
22839 #define HAVE_LONG_LONG 1
22844 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
22845 echo "configure:22846: checking for ANSI C header files" >&5
22846 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
22847 echo $ac_n "(cached) $ac_c" 1>&6
22849 cat > conftest.$ac_ext <<EOF
22850 #line 22851 "configure"
22851 #include "confdefs.h"
22852 #include <stdlib.h>
22853 #include <stdarg.h>
22854 #include <string.h>
22857 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22858 { (eval echo configure:22859: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22859 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22860 if test -z "$ac_err"; then
22862 ac_cv_header_stdc=yes
22865 echo "configure: failed program was:" >&5
22866 cat conftest.$ac_ext >&5
22868 ac_cv_header_stdc=no
22872 if test $ac_cv_header_stdc = yes; then
22873 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22874 cat > conftest.$ac_ext <<EOF
22875 #line 22876 "configure"
22876 #include "confdefs.h"
22877 #include <string.h>
22879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22880 egrep "memchr" >/dev/null 2>&1; then
22884 ac_cv_header_stdc=no
22890 if test $ac_cv_header_stdc = yes; then
22891 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22892 cat > conftest.$ac_ext <<EOF
22893 #line 22894 "configure"
22894 #include "confdefs.h"
22895 #include <stdlib.h>
22897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22898 egrep "free" >/dev/null 2>&1; then
22902 ac_cv_header_stdc=no
22908 if test $ac_cv_header_stdc = yes; then
22909 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22910 if test "$cross_compiling" = yes; then
22913 cat > conftest.$ac_ext <<EOF
22914 #line 22915 "configure"
22915 #include "confdefs.h"
22917 #if ((' ' & 0x0FF) == 0x020)
22918 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22919 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22921 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
22922 || ('j' <= (c) && (c) <= 'r') \
22923 || ('s' <= (c) && (c) <= 'z'))
22924 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22926 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22927 int main () { int i; for (i = 0; i < 256; i++)
22928 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
22932 if { (eval echo configure:22933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
22936 echo "configure: failed program was:" >&5
22937 cat conftest.$ac_ext >&5
22939 ac_cv_header_stdc=no
22947 echo "$ac_t""$ac_cv_header_stdc" 1>&6
22948 if test $ac_cv_header_stdc = yes; then
22949 cat >> confdefs.h <<\EOF
22950 #define STDC_HEADERS 1
22955 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
22956 echo "configure:22957: checking for mode_t" >&5
22957 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
22958 echo $ac_n "(cached) $ac_c" 1>&6
22960 cat > conftest.$ac_ext <<EOF
22961 #line 22962 "configure"
22962 #include "confdefs.h"
22963 #include <sys/types.h>
22965 #include <stdlib.h>
22966 #include <stddef.h>
22970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22971 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22973 eval "ac_cv_type_mode_t=yes"
22976 eval "ac_cv_type_mode_t=no"
22981 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
22982 echo "$ac_t""yes" 1>&6
22984 echo "$ac_t""no" 1>&6
22985 cat >> confdefs.h <<EOF
22991 echo $ac_n "checking for off_t""... $ac_c" 1>&6
22992 echo "configure:22993: checking for off_t" >&5
22993 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
22994 echo $ac_n "(cached) $ac_c" 1>&6
22996 cat > conftest.$ac_ext <<EOF
22997 #line 22998 "configure"
22998 #include "confdefs.h"
22999 #include <sys/types.h>
23001 #include <stdlib.h>
23002 #include <stddef.h>
23006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23007 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
23009 eval "ac_cv_type_off_t=yes"
23012 eval "ac_cv_type_off_t=no"
23017 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
23018 echo "$ac_t""yes" 1>&6
23020 echo "$ac_t""no" 1>&6
23021 cat >> confdefs.h <<EOF
23027 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
23028 echo "configure:23029: checking for pid_t" >&5
23029 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
23030 echo $ac_n "(cached) $ac_c" 1>&6
23032 cat > conftest.$ac_ext <<EOF
23033 #line 23034 "configure"
23034 #include "confdefs.h"
23035 #include <sys/types.h>
23037 #include <stdlib.h>
23038 #include <stddef.h>
23042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23043 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
23045 eval "ac_cv_type_pid_t=yes"
23048 eval "ac_cv_type_pid_t=no"
23053 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
23054 echo "$ac_t""yes" 1>&6
23056 echo "$ac_t""no" 1>&6
23057 cat >> confdefs.h <<EOF
23063 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
23064 echo "configure:23065: checking for ptrdiff_t" >&5
23065 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
23066 echo $ac_n "(cached) $ac_c" 1>&6
23068 cat > conftest.$ac_ext <<EOF
23069 #line 23070 "configure"
23070 #include "confdefs.h"
23071 #include <stddef.h>
23076 if { (eval echo configure:23077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23078 am_cv_type_ptrdiff_t=yes
23080 echo "configure: failed program was:" >&5
23081 cat conftest.$ac_ext >&5
23083 am_cv_type_ptrdiff_t=no
23088 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
23089 if test $am_cv_type_ptrdiff_t = yes; then
23090 cat >> confdefs.h <<\EOF
23091 #define HAVE_PTRDIFF_T 1
23096 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
23097 echo "configure:23098: checking return type of signal handlers" >&5
23098 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
23099 echo $ac_n "(cached) $ac_c" 1>&6
23101 cat > conftest.$ac_ext <<EOF
23102 #line 23103 "configure"
23103 #include "confdefs.h"
23104 #include <sys/types.h>
23105 #include <signal.h>
23110 extern "C" void (*signal (int, void (*)(int)))(int);
23112 void (*signal ()) ();
23119 if { (eval echo configure:23120: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23121 ac_cv_type_signal=void
23123 echo "configure: failed program was:" >&5
23124 cat conftest.$ac_ext >&5
23126 ac_cv_type_signal=int
23131 echo "$ac_t""$ac_cv_type_signal" 1>&6
23132 cat >> confdefs.h <<EOF
23133 #define RETSIGTYPE $ac_cv_type_signal
23137 echo $ac_n "checking for size_t""... $ac_c" 1>&6
23138 echo "configure:23139: checking for size_t" >&5
23139 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
23140 echo $ac_n "(cached) $ac_c" 1>&6
23142 cat > conftest.$ac_ext <<EOF
23143 #line 23144 "configure"
23144 #include "confdefs.h"
23145 #include <sys/types.h>
23147 #include <stdlib.h>
23148 #include <stddef.h>
23152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23153 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
23155 eval "ac_cv_type_size_t=yes"
23158 eval "ac_cv_type_size_t=no"
23163 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
23164 echo "$ac_t""yes" 1>&6
23166 echo "$ac_t""no" 1>&6
23167 cat >> confdefs.h <<EOF
23168 #define size_t unsigned
23174 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
23175 echo "configure:23176: checking for ssize_t" >&5
23176 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
23177 echo $ac_n "(cached) $ac_c" 1>&6
23179 cat > conftest.$ac_ext <<EOF
23180 #line 23181 "configure"
23181 #include "confdefs.h"
23182 #include <sys/types.h>
23184 #include <stdlib.h>
23185 #include <stddef.h>
23189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23190 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
23192 eval "ac_cv_type_ssize_t=yes"
23195 eval "ac_cv_type_ssize_t=no"
23200 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
23201 echo "$ac_t""yes" 1>&6
23203 echo "$ac_t""no" 1>&6
23204 cat >> confdefs.h <<EOF
23205 #define ssize_t signed int
23210 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
23211 echo "configure:23212: checking for caddr_t" >&5
23212 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
23213 echo $ac_n "(cached) $ac_c" 1>&6
23215 cat > conftest.$ac_ext <<EOF
23216 #line 23217 "configure"
23217 #include "confdefs.h"
23218 #include <sys/types.h>
23220 #include <stdlib.h>
23221 #include <stddef.h>
23225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23226 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
23228 eval "ac_cv_type_caddr_t=yes"
23231 eval "ac_cv_type_caddr_t=no"
23236 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
23237 echo "$ac_t""yes" 1>&6
23239 echo "$ac_t""no" 1>&6
23240 cat >> confdefs.h <<EOF
23241 #define caddr_t char *
23247 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
23248 echo "configure:23249: checking for socklen_t" >&5
23249 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
23250 echo $ac_n "(cached) $ac_c" 1>&6
23252 cat > conftest.$ac_ext <<EOF
23253 #line 23254 "configure"
23254 #include "confdefs.h"
23256 #ifdef HAVE_SYS_TYPES_H
23257 #include <sys/types.h>
23259 #ifdef HAVE_SYS_SOCKET_H
23260 #include <sys/socket.h>
23267 if { (eval echo configure:23268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23269 ol_cv_type_socklen_t=yes
23271 echo "configure: failed program was:" >&5
23272 cat conftest.$ac_ext >&5
23274 ol_cv_type_socklen_t=no
23279 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
23280 if test $ol_cv_type_socklen_t = no; then
23281 cat >> confdefs.h <<\EOF
23282 #define socklen_t int
23287 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
23288 echo "configure:23289: checking for member st_blksize in aggregate type struct stat" >&5
23289 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
23290 echo $ac_n "(cached) $ac_c" 1>&6
23292 cat > conftest.$ac_ext <<EOF
23293 #line 23294 "configure"
23294 #include "confdefs.h"
23295 #include <sys/types.h>
23296 #include <sys/stat.h>
23298 struct stat foo; foo.st_blksize;
23301 if { (eval echo configure:23302: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23303 ac_cv_c_struct_member_st_blksize=yes
23305 echo "configure: failed program was:" >&5
23306 cat conftest.$ac_ext >&5
23308 ac_cv_c_struct_member_st_blksize=no
23313 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
23314 st_blksize="$ac_cv_c_struct_member_st_blksize"
23315 if test $ac_cv_c_struct_member_st_blksize = yes; then
23316 cat >> confdefs.h <<\EOF
23317 #define HAVE_ST_BLKSIZE 1
23322 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
23323 echo "configure:23324: checking whether time.h and sys/time.h may both be included" >&5
23324 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
23325 echo $ac_n "(cached) $ac_c" 1>&6
23327 cat > conftest.$ac_ext <<EOF
23328 #line 23329 "configure"
23329 #include "confdefs.h"
23330 #include <sys/types.h>
23331 #include <sys/time.h>
23337 if { (eval echo configure:23338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23339 ac_cv_header_time=yes
23341 echo "configure: failed program was:" >&5
23342 cat conftest.$ac_ext >&5
23344 ac_cv_header_time=no
23349 echo "$ac_t""$ac_cv_header_time" 1>&6
23350 if test $ac_cv_header_time = yes; then
23351 cat >> confdefs.h <<\EOF
23352 #define TIME_WITH_SYS_TIME 1
23357 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
23358 echo "configure:23359: checking whether struct tm is in sys/time.h or time.h" >&5
23359 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
23360 echo $ac_n "(cached) $ac_c" 1>&6
23362 cat > conftest.$ac_ext <<EOF
23363 #line 23364 "configure"
23364 #include "confdefs.h"
23365 #include <sys/types.h>
23368 struct tm *tp; tp->tm_sec;
23371 if { (eval echo configure:23372: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23373 ac_cv_struct_tm=time.h
23375 echo "configure: failed program was:" >&5
23376 cat conftest.$ac_ext >&5
23378 ac_cv_struct_tm=sys/time.h
23383 echo "$ac_t""$ac_cv_struct_tm" 1>&6
23384 if test $ac_cv_struct_tm = sys/time.h; then
23385 cat >> confdefs.h <<\EOF
23386 #define TM_IN_SYS_TIME 1
23391 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
23392 echo "configure:23393: checking for uid_t in sys/types.h" >&5
23393 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
23394 echo $ac_n "(cached) $ac_c" 1>&6
23396 cat > conftest.$ac_ext <<EOF
23397 #line 23398 "configure"
23398 #include "confdefs.h"
23399 #include <sys/types.h>
23401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23402 egrep "uid_t" >/dev/null 2>&1; then
23404 ac_cv_type_uid_t=yes
23407 ac_cv_type_uid_t=no
23413 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
23414 if test $ac_cv_type_uid_t = no; then
23415 cat >> confdefs.h <<\EOF
23419 cat >> confdefs.h <<\EOF
23425 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
23426 echo "configure:23427: checking for sig_atomic_t" >&5
23427 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
23428 echo $ac_n "(cached) $ac_c" 1>&6
23430 cat > conftest.$ac_ext <<EOF
23431 #line 23432 "configure"
23432 #include "confdefs.h"
23433 #include <signal.h>
23435 sig_atomic_t atomic;
23438 if { (eval echo configure:23439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23440 ol_cv_type_sig_atomic_t=yes
23442 echo "configure: failed program was:" >&5
23443 cat conftest.$ac_ext >&5
23445 ol_cv_type_sig_atomic_t=no
23450 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
23451 if test $ol_cv_type_sig_atomic_t = no; then
23452 cat >> confdefs.h <<\EOF
23453 #define sig_atomic_t int
23460 # test for pw_gecos in struct passwd
23461 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
23462 echo "configure:23463: checking struct passwd for pw_gecos" >&5
23463 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
23464 echo $ac_n "(cached) $ac_c" 1>&6
23467 cat > conftest.$ac_ext <<EOF
23468 #line 23469 "configure"
23469 #include "confdefs.h"
23474 pwd.pw_gecos = pwd.pw_name;
23478 if { (eval echo configure:23479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23480 ol_cv_struct_passwd_pw_gecos=yes
23482 echo "configure: failed program was:" >&5
23483 cat conftest.$ac_ext >&5
23485 ol_cv_struct_passwd_pw_gecos=no
23490 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
23491 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
23492 cat >> confdefs.h <<\EOF
23493 #define HAVE_PW_GECOS 1
23498 # test for pw_passwd in struct passwd
23499 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
23500 echo "configure:23501: checking struct passwd for pw_passwd" >&5
23501 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
23502 echo $ac_n "(cached) $ac_c" 1>&6
23505 cat > conftest.$ac_ext <<EOF
23506 #line 23507 "configure"
23507 #include "confdefs.h"
23512 pwd.pw_passwd = pwd.pw_name;
23516 if { (eval echo configure:23517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23518 ol_cv_struct_passwd_pw_passwd=yes
23520 echo "configure: failed program was:" >&5
23521 cat conftest.$ac_ext >&5
23523 ol_cv_struct_passwd_pw_passwd=no
23528 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
23529 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
23530 cat >> confdefs.h <<\EOF
23531 #define HAVE_PW_PASSWD 1
23537 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
23538 echo "configure:23539: checking if toupper() requires islower()" >&5
23539 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
23540 echo $ac_n "(cached) $ac_c" 1>&6
23543 if test "$cross_compiling" = yes; then
23544 ol_cv_c_upper_lower=safe
23546 cat > conftest.$ac_ext <<EOF
23547 #line 23548 "configure"
23548 #include "confdefs.h"
23553 if ('C' == toupper('C'))
23559 if { (eval echo configure:23560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
23561 ol_cv_c_upper_lower=no
23563 echo "configure: failed program was:" >&5
23564 cat conftest.$ac_ext >&5
23566 ol_cv_c_upper_lower=yes
23573 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
23574 if test $ol_cv_c_upper_lower != no ; then
23575 cat >> confdefs.h <<\EOF
23576 #define C_UPPER_LOWER 1
23581 echo $ac_n "checking for working const""... $ac_c" 1>&6
23582 echo "configure:23583: checking for working const" >&5
23583 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
23584 echo $ac_n "(cached) $ac_c" 1>&6
23586 cat > conftest.$ac_ext <<EOF
23587 #line 23588 "configure"
23588 #include "confdefs.h"
23592 /* Ultrix mips cc rejects this. */
23593 typedef int charset[2]; const charset x;
23594 /* SunOS 4.1.1 cc rejects this. */
23595 char const *const *ccp;
23597 /* NEC SVR4.0.2 mips cc rejects this. */
23598 struct point {int x, y;};
23599 static struct point const zero = {0,0};
23600 /* AIX XL C 1.02.0.0 rejects this.
23601 It does not let you subtract one const X* pointer from another in an arm
23602 of an if-expression whose if-part is not a constant expression */
23603 const char *g = "string";
23604 ccp = &g + (g ? g-g : 0);
23605 /* HPUX 7.0 cc rejects these. */
23608 ccp = (char const *const *) p;
23609 { /* SCO 3.2v4 cc rejects this. */
23611 char const *s = 0 ? (char *) 0 : (char const *) 0;
23615 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23616 int x[] = {25, 17};
23617 const int *foo = &x[0];
23620 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23621 typedef const int *iptr;
23625 { /* AIX XL C 1.02.0.0 rejects this saying
23626 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23627 struct s { int j; const int *ap[3]; };
23628 struct s *b; b->j = 5;
23630 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23631 const int foo = 10;
23636 if { (eval echo configure:23637: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23640 echo "configure: failed program was:" >&5
23641 cat conftest.$ac_ext >&5
23648 echo "$ac_t""$ac_cv_c_const" 1>&6
23649 if test $ac_cv_c_const = no; then
23650 cat >> confdefs.h <<\EOF
23656 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
23657 echo "configure:23658: checking if compiler understands volatile" >&5
23658 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
23659 echo $ac_n "(cached) $ac_c" 1>&6
23661 cat > conftest.$ac_ext <<EOF
23662 #line 23663 "configure"
23663 #include "confdefs.h"
23666 volatile int a; int * volatile b = x ? &y : &z;
23667 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
23671 if { (eval echo configure:23672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23673 ol_cv_c_volatile=yes
23675 echo "configure: failed program was:" >&5
23676 cat conftest.$ac_ext >&5
23678 ol_cv_c_volatile=no
23683 echo "$ac_t""$ol_cv_c_volatile" 1>&6
23684 if test $ol_cv_c_volatile = yes; then
23687 cat >> confdefs.h <<\EOF
23694 if test $cross_compiling = yes ; then
23695 echo "configure: warning: Crossing compiling... all bets are off!" 1>&2
23696 cat >> confdefs.h <<\EOF
23697 #define CROSS_COMPILING 1
23701 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
23702 echo "configure:23703: checking whether byte ordering is bigendian" >&5
23703 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
23704 echo $ac_n "(cached) $ac_c" 1>&6
23706 ac_cv_c_bigendian=unknown
23707 # See if sys/param.h defines the BYTE_ORDER macro.
23708 cat > conftest.$ac_ext <<EOF
23709 #line 23710 "configure"
23710 #include "confdefs.h"
23711 #include <sys/types.h>
23712 #include <sys/param.h>
23715 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
23716 bogus endian macros
23720 if { (eval echo configure:23721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23722 # It does; now see whether it defined to BIG_ENDIAN or not.
23723 cat > conftest.$ac_ext <<EOF
23724 #line 23725 "configure"
23725 #include "confdefs.h"
23726 #include <sys/types.h>
23727 #include <sys/param.h>
23730 #if BYTE_ORDER != BIG_ENDIAN
23735 if { (eval echo configure:23736: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23737 ac_cv_c_bigendian=yes
23739 echo "configure: failed program was:" >&5
23740 cat conftest.$ac_ext >&5
23742 ac_cv_c_bigendian=no
23746 echo "configure: failed program was:" >&5
23747 cat conftest.$ac_ext >&5
23750 if test $ac_cv_c_bigendian = unknown; then
23751 if test "$cross_compiling" = yes; then
23752 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
23754 cat > conftest.$ac_ext <<EOF
23755 #line 23756 "configure"
23756 #include "confdefs.h"
23758 /* Are we little or big endian? From Harbison&Steele. */
23762 char c[sizeof (long)];
23765 exit (u.c[sizeof (long) - 1] == 1);
23768 if { (eval echo configure:23769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
23770 ac_cv_c_bigendian=no
23772 echo "configure: failed program was:" >&5
23773 cat conftest.$ac_ext >&5
23775 ac_cv_c_bigendian=yes
23783 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
23784 if test $ac_cv_c_bigendian = yes; then
23785 cat >> confdefs.h <<\EOF
23786 #define WORDS_BIGENDIAN 1
23793 echo $ac_n "checking size of short""... $ac_c" 1>&6
23794 echo "configure:23795: checking size of short" >&5
23795 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
23796 echo $ac_n "(cached) $ac_c" 1>&6
23798 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23799 cat > conftest.$ac_ext <<EOF
23800 #line 23801 "configure"
23801 #include "confdefs.h"
23802 #include "confdefs.h"
23803 #include <stdlib.h>
23804 #include <sys/types.h>
23808 switch (0) case 0: case (sizeof (short) == $ac_size):;
23811 if { (eval echo configure:23812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23813 ac_cv_sizeof_short=$ac_size
23815 echo "configure: failed program was:" >&5
23816 cat conftest.$ac_ext >&5
23819 if test x$ac_cv_sizeof_short != x ; then break; fi
23824 if test x$ac_cv_sizeof_short = x ; then
23825 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
23827 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
23828 cat >> confdefs.h <<EOF
23829 #define SIZEOF_SHORT $ac_cv_sizeof_short
23833 echo $ac_n "checking size of int""... $ac_c" 1>&6
23834 echo "configure:23835: checking size of int" >&5
23835 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
23836 echo $ac_n "(cached) $ac_c" 1>&6
23838 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23839 cat > conftest.$ac_ext <<EOF
23840 #line 23841 "configure"
23841 #include "confdefs.h"
23842 #include "confdefs.h"
23843 #include <stdlib.h>
23844 #include <sys/types.h>
23848 switch (0) case 0: case (sizeof (int) == $ac_size):;
23851 if { (eval echo configure:23852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23853 ac_cv_sizeof_int=$ac_size
23855 echo "configure: failed program was:" >&5
23856 cat conftest.$ac_ext >&5
23859 if test x$ac_cv_sizeof_int != x ; then break; fi
23864 if test x$ac_cv_sizeof_int = x ; then
23865 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
23867 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
23868 cat >> confdefs.h <<EOF
23869 #define SIZEOF_INT $ac_cv_sizeof_int
23873 echo $ac_n "checking size of long""... $ac_c" 1>&6
23874 echo "configure:23875: checking size of long" >&5
23875 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
23876 echo $ac_n "(cached) $ac_c" 1>&6
23878 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23879 cat > conftest.$ac_ext <<EOF
23880 #line 23881 "configure"
23881 #include "confdefs.h"
23882 #include "confdefs.h"
23883 #include <stdlib.h>
23884 #include <sys/types.h>
23888 switch (0) case 0: case (sizeof (long) == $ac_size):;
23891 if { (eval echo configure:23892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23893 ac_cv_sizeof_long=$ac_size
23895 echo "configure: failed program was:" >&5
23896 cat conftest.$ac_ext >&5
23899 if test x$ac_cv_sizeof_long != x ; then break; fi
23904 if test x$ac_cv_sizeof_long = x ; then
23905 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
23907 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
23908 cat >> confdefs.h <<EOF
23909 #define SIZEOF_LONG $ac_cv_sizeof_long
23913 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
23914 echo "configure:23915: checking size of wchar_t" >&5
23915 if eval "test \"\${ac_cv_sizeof_wchar_t+set}\" = set"; then
23916 echo $ac_n "(cached) $ac_c" 1>&6
23918 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23919 cat > conftest.$ac_ext <<EOF
23920 #line 23921 "configure"
23921 #include "confdefs.h"
23922 #include "confdefs.h"
23923 #include <stdlib.h>
23924 #include <sys/types.h>
23928 switch (0) case 0: case (sizeof (wchar_t) == $ac_size):;
23931 if { (eval echo configure:23932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23933 ac_cv_sizeof_wchar_t=$ac_size
23935 echo "configure: failed program was:" >&5
23936 cat conftest.$ac_ext >&5
23939 if test x$ac_cv_sizeof_wchar_t != x ; then break; fi
23944 if test x$ac_cv_sizeof_wchar_t = x ; then
23945 { echo "configure: error: cannot determine a size for wchar_t" 1>&2; exit 1; }
23947 echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
23948 cat >> confdefs.h <<EOF
23949 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23954 if test "$ac_cv_sizeof_int" -lt 4 ; then
23955 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
23957 cat >> confdefs.h <<\EOF
23958 #define LBER_INT_T long
23962 cat >> confdefs.h <<\EOF
23963 #define LBER_INT_T int
23968 cat >> confdefs.h <<\EOF
23969 #define LBER_LEN_T long
23972 cat >> confdefs.h <<\EOF
23973 #define LBER_SOCKET_T int
23976 cat >> confdefs.h <<\EOF
23977 #define LBER_TAG_T long
23981 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
23982 echo "configure:23983: checking for 8-bit clean memcmp" >&5
23983 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
23984 echo $ac_n "(cached) $ac_c" 1>&6
23986 if test "$cross_compiling" = yes; then
23987 ac_cv_func_memcmp_clean=no
23989 cat > conftest.$ac_ext <<EOF
23990 #line 23991 "configure"
23991 #include "confdefs.h"
23995 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
23996 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
24000 if { (eval echo configure:24001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
24002 ac_cv_func_memcmp_clean=yes
24004 echo "configure: failed program was:" >&5
24005 cat conftest.$ac_ext >&5
24007 ac_cv_func_memcmp_clean=no
24014 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
24015 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
24018 if test $ac_cv_func_memcmp_clean = no ; then
24019 cat >> confdefs.h <<\EOF
24020 #define NEED_MEMCMP_REPLACEMENT 1
24025 echo $ac_n "checking for strftime""... $ac_c" 1>&6
24026 echo "configure:24027: checking for strftime" >&5
24027 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
24028 echo $ac_n "(cached) $ac_c" 1>&6
24030 cat > conftest.$ac_ext <<EOF
24031 #line 24032 "configure"
24032 #include "confdefs.h"
24033 /* System header to define __stub macros and hopefully few prototypes,
24034 which can conflict with char strftime(); below. */
24035 #include <assert.h>
24036 /* Override any gcc2 internal prototype to avoid an error. */
24037 /* We use char because int might match the return type of a gcc2
24038 builtin and then its argument prototype would still apply. */
24044 /* The GNU C library defines this for functions which it implements
24045 to always fail with ENOSYS. Some functions are actually named
24046 something starting with __ and the normal name is an alias. */
24047 #if defined (__stub_strftime) || defined (__stub___strftime)
24055 if { (eval echo configure:24056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24057 eval "ac_cv_func_strftime=yes"
24059 echo "configure: failed program was:" >&5
24060 cat conftest.$ac_ext >&5
24062 eval "ac_cv_func_strftime=no"
24067 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
24068 echo "$ac_t""yes" 1>&6
24069 cat >> confdefs.h <<\EOF
24070 #define HAVE_STRFTIME 1
24074 echo "$ac_t""no" 1>&6
24075 # strftime is in -lintl on SCO UNIX.
24076 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
24077 echo "configure:24078: checking for strftime in -lintl" >&5
24078 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
24079 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
24080 echo $ac_n "(cached) $ac_c" 1>&6
24082 ac_save_LIBS="$LIBS"
24083 LIBS="-lintl $LIBS"
24084 cat > conftest.$ac_ext <<EOF
24085 #line 24086 "configure"
24086 #include "confdefs.h"
24087 /* Override any gcc2 internal prototype to avoid an error. */
24088 /* We use char because int might match the return type of a gcc2
24089 builtin and then its argument prototype would still apply. */
24096 if { (eval echo configure:24097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24098 eval "ac_cv_lib_$ac_lib_var=yes"
24100 echo "configure: failed program was:" >&5
24101 cat conftest.$ac_ext >&5
24103 eval "ac_cv_lib_$ac_lib_var=no"
24106 LIBS="$ac_save_LIBS"
24109 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
24110 echo "$ac_t""yes" 1>&6
24111 cat >> confdefs.h <<\EOF
24112 #define HAVE_STRFTIME 1
24115 LIBS="-lintl $LIBS"
24117 echo "$ac_t""no" 1>&6
24123 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
24124 echo "configure:24125: checking for inet_aton()" >&5
24125 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
24126 echo $ac_n "(cached) $ac_c" 1>&6
24128 cat > conftest.$ac_ext <<EOF
24129 #line 24130 "configure"
24130 #include "confdefs.h"
24132 #ifdef HAVE_SYS_TYPES_H
24133 # include <sys/types.h>
24135 #ifdef HAVE_SYS_SOCKET_H
24136 # include <sys/socket.h>
24137 # ifdef HAVE_SYS_SELECT_H
24138 # include <sys/select.h>
24140 # include <netinet/in.h>
24141 # ifdef HAVE_ARPA_INET_H
24142 # include <arpa/inet.h>
24148 int rc = inet_aton( "255.255.255.255", &in );
24151 if { (eval echo configure:24152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24153 ol_cv_func_inet_aton=yes
24155 echo "configure: failed program was:" >&5
24156 cat conftest.$ac_ext >&5
24158 ol_cv_func_inet_aton=no
24163 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
24164 if test $ol_cv_func_inet_aton != no; then
24165 cat >> confdefs.h <<\EOF
24166 #define HAVE_INET_ATON 1
24172 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
24173 echo "configure:24174: checking for _spawnlp" >&5
24174 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
24175 echo $ac_n "(cached) $ac_c" 1>&6
24177 cat > conftest.$ac_ext <<EOF
24178 #line 24179 "configure"
24179 #include "confdefs.h"
24180 /* System header to define __stub macros and hopefully few prototypes,
24181 which can conflict with char _spawnlp(); below. */
24182 #include <assert.h>
24183 /* Override any gcc2 internal prototype to avoid an error. */
24184 /* We use char because int might match the return type of a gcc2
24185 builtin and then its argument prototype would still apply. */
24191 /* The GNU C library defines this for functions which it implements
24192 to always fail with ENOSYS. Some functions are actually named
24193 something starting with __ and the normal name is an alias. */
24194 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
24202 if { (eval echo configure:24203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24204 eval "ac_cv_func__spawnlp=yes"
24206 echo "configure: failed program was:" >&5
24207 cat conftest.$ac_ext >&5
24209 eval "ac_cv_func__spawnlp=no"
24214 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
24215 echo "$ac_t""yes" 1>&6
24216 cat >> confdefs.h <<\EOF
24217 #define HAVE_SPAWNLP 1
24221 echo "$ac_t""no" 1>&6
24225 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
24226 echo "configure:24227: checking for _snprintf" >&5
24227 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
24228 echo $ac_n "(cached) $ac_c" 1>&6
24230 cat > conftest.$ac_ext <<EOF
24231 #line 24232 "configure"
24232 #include "confdefs.h"
24233 /* System header to define __stub macros and hopefully few prototypes,
24234 which can conflict with char _snprintf(); below. */
24235 #include <assert.h>
24236 /* Override any gcc2 internal prototype to avoid an error. */
24237 /* We use char because int might match the return type of a gcc2
24238 builtin and then its argument prototype would still apply. */
24244 /* The GNU C library defines this for functions which it implements
24245 to always fail with ENOSYS. Some functions are actually named
24246 something starting with __ and the normal name is an alias. */
24247 #if defined (__stub__snprintf) || defined (__stub____snprintf)
24255 if { (eval echo configure:24256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24257 eval "ac_cv_func__snprintf=yes"
24259 echo "configure: failed program was:" >&5
24260 cat conftest.$ac_ext >&5
24262 eval "ac_cv_func__snprintf=no"
24267 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
24268 echo "$ac_t""yes" 1>&6
24269 ac_cv_func_snprintf=yes
24270 cat >> confdefs.h <<\EOF
24271 #define snprintf _snprintf
24276 echo "$ac_t""no" 1>&6
24280 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
24281 echo "configure:24282: checking for _vsnprintf" >&5
24282 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
24283 echo $ac_n "(cached) $ac_c" 1>&6
24285 cat > conftest.$ac_ext <<EOF
24286 #line 24287 "configure"
24287 #include "confdefs.h"
24288 /* System header to define __stub macros and hopefully few prototypes,
24289 which can conflict with char _vsnprintf(); below. */
24290 #include <assert.h>
24291 /* Override any gcc2 internal prototype to avoid an error. */
24292 /* We use char because int might match the return type of a gcc2
24293 builtin and then its argument prototype would still apply. */
24299 /* The GNU C library defines this for functions which it implements
24300 to always fail with ENOSYS. Some functions are actually named
24301 something starting with __ and the normal name is an alias. */
24302 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
24310 if { (eval echo configure:24311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24312 eval "ac_cv_func__vsnprintf=yes"
24314 echo "configure: failed program was:" >&5
24315 cat conftest.$ac_ext >&5
24317 eval "ac_cv_func__vsnprintf=no"
24322 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
24323 echo "$ac_t""yes" 1>&6
24324 ac_cv_func_vsnprintf=yes
24325 cat >> confdefs.h <<\EOF
24326 #define vsnprintf _vsnprintf
24331 echo "$ac_t""no" 1>&6
24335 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
24336 echo "configure:24337: checking for vprintf" >&5
24337 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
24338 echo $ac_n "(cached) $ac_c" 1>&6
24340 cat > conftest.$ac_ext <<EOF
24341 #line 24342 "configure"
24342 #include "confdefs.h"
24343 /* System header to define __stub macros and hopefully few prototypes,
24344 which can conflict with char vprintf(); below. */
24345 #include <assert.h>
24346 /* Override any gcc2 internal prototype to avoid an error. */
24347 /* We use char because int might match the return type of a gcc2
24348 builtin and then its argument prototype would still apply. */
24354 /* The GNU C library defines this for functions which it implements
24355 to always fail with ENOSYS. Some functions are actually named
24356 something starting with __ and the normal name is an alias. */
24357 #if defined (__stub_vprintf) || defined (__stub___vprintf)
24365 if { (eval echo configure:24366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24367 eval "ac_cv_func_vprintf=yes"
24369 echo "configure: failed program was:" >&5
24370 cat conftest.$ac_ext >&5
24372 eval "ac_cv_func_vprintf=no"
24377 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
24378 echo "$ac_t""yes" 1>&6
24379 cat >> confdefs.h <<\EOF
24380 #define HAVE_VPRINTF 1
24384 echo "$ac_t""no" 1>&6
24387 if test "$ac_cv_func_vprintf" != yes; then
24388 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
24389 echo "configure:24390: checking for _doprnt" >&5
24390 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
24391 echo $ac_n "(cached) $ac_c" 1>&6
24393 cat > conftest.$ac_ext <<EOF
24394 #line 24395 "configure"
24395 #include "confdefs.h"
24396 /* System header to define __stub macros and hopefully few prototypes,
24397 which can conflict with char _doprnt(); below. */
24398 #include <assert.h>
24399 /* Override any gcc2 internal prototype to avoid an error. */
24400 /* We use char because int might match the return type of a gcc2
24401 builtin and then its argument prototype would still apply. */
24407 /* The GNU C library defines this for functions which it implements
24408 to always fail with ENOSYS. Some functions are actually named
24409 something starting with __ and the normal name is an alias. */
24410 #if defined (__stub__doprnt) || defined (__stub____doprnt)
24418 if { (eval echo configure:24419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24420 eval "ac_cv_func__doprnt=yes"
24422 echo "configure: failed program was:" >&5
24423 cat conftest.$ac_ext >&5
24425 eval "ac_cv_func__doprnt=no"
24430 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
24431 echo "$ac_t""yes" 1>&6
24432 cat >> confdefs.h <<\EOF
24433 #define HAVE_DOPRNT 1
24437 echo "$ac_t""no" 1>&6
24443 if test $ac_cv_func_vprintf = yes ; then
24444 for ac_func in snprintf vsnprintf
24446 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24447 echo "configure:24448: checking for $ac_func" >&5
24448 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
24449 echo $ac_n "(cached) $ac_c" 1>&6
24451 cat > conftest.$ac_ext <<EOF
24452 #line 24453 "configure"
24453 #include "confdefs.h"
24454 /* System header to define __stub macros and hopefully few prototypes,
24455 which can conflict with char $ac_func(); below. */
24456 #include <assert.h>
24457 /* Override any gcc2 internal prototype to avoid an error. */
24458 /* We use char because int might match the return type of a gcc2
24459 builtin and then its argument prototype would still apply. */
24465 /* The GNU C library defines this for functions which it implements
24466 to always fail with ENOSYS. Some functions are actually named
24467 something starting with __ and the normal name is an alias. */
24468 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24476 if { (eval echo configure:24477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24478 eval "ac_cv_func_$ac_func=yes"
24480 echo "configure: failed program was:" >&5
24481 cat conftest.$ac_ext >&5
24483 eval "ac_cv_func_$ac_func=no"
24488 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
24489 echo "$ac_t""yes" 1>&6
24490 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24491 cat >> confdefs.h <<EOF
24492 #define $ac_tr_func 1
24496 echo "$ac_t""no" 1>&6
24558 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24559 echo "configure:24560: checking for $ac_func" >&5
24560 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
24561 echo $ac_n "(cached) $ac_c" 1>&6
24563 cat > conftest.$ac_ext <<EOF
24564 #line 24565 "configure"
24565 #include "confdefs.h"
24566 /* System header to define __stub macros and hopefully few prototypes,
24567 which can conflict with char $ac_func(); below. */
24568 #include <assert.h>
24569 /* Override any gcc2 internal prototype to avoid an error. */
24570 /* We use char because int might match the return type of a gcc2
24571 builtin and then its argument prototype would still apply. */
24577 /* The GNU C library defines this for functions which it implements
24578 to always fail with ENOSYS. Some functions are actually named
24579 something starting with __ and the normal name is an alias. */
24580 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24588 if { (eval echo configure:24589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24590 eval "ac_cv_func_$ac_func=yes"
24592 echo "configure: failed program was:" >&5
24593 cat conftest.$ac_ext >&5
24595 eval "ac_cv_func_$ac_func=no"
24600 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
24601 echo "$ac_t""yes" 1>&6
24602 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24603 cat >> confdefs.h <<EOF
24604 #define $ac_tr_func 1
24608 echo "$ac_t""no" 1>&6
24613 for ac_func in getopt getpeereid
24615 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24616 echo "configure:24617: checking for $ac_func" >&5
24617 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
24618 echo $ac_n "(cached) $ac_c" 1>&6
24620 cat > conftest.$ac_ext <<EOF
24621 #line 24622 "configure"
24622 #include "confdefs.h"
24623 /* System header to define __stub macros and hopefully few prototypes,
24624 which can conflict with char $ac_func(); below. */
24625 #include <assert.h>
24626 /* Override any gcc2 internal prototype to avoid an error. */
24627 /* We use char because int might match the return type of a gcc2
24628 builtin and then its argument prototype would still apply. */
24634 /* The GNU C library defines this for functions which it implements
24635 to always fail with ENOSYS. Some functions are actually named
24636 something starting with __ and the normal name is an alias. */
24637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24645 if { (eval echo configure:24646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24647 eval "ac_cv_func_$ac_func=yes"
24649 echo "configure: failed program was:" >&5
24650 cat conftest.$ac_ext >&5
24652 eval "ac_cv_func_$ac_func=no"
24657 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
24658 echo "$ac_t""yes" 1>&6
24659 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24660 cat >> confdefs.h <<EOF
24661 #define $ac_tr_func 1
24665 echo "$ac_t""no" 1>&6
24666 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
24672 if test "$ac_cv_func_getopt" != yes; then
24673 LIBSRCS="$LIBSRCS getopt.c"
24675 if test "$ac_cv_func_getpeereid" != yes; then
24676 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
24677 echo "configure:24678: checking for msg_accrights in msghdr" >&5
24678 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
24679 echo $ac_n "(cached) $ac_c" 1>&6
24681 cat > conftest.$ac_ext <<EOF
24682 #line 24683 "configure"
24683 #include "confdefs.h"
24684 #include <sys/socket.h>
24686 struct msghdr m; m.msg_accrightslen=0
24689 if { (eval echo configure:24690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
24691 ol_cv_msghdr_msg_accrights=yes
24693 echo "configure: failed program was:" >&5
24694 cat conftest.$ac_ext >&5
24696 ol_cv_msghdr_msg_accrights=no
24702 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
24703 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
24704 cat >> confdefs.h <<\EOF
24705 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
24710 if test "$ac_cv_func_getpeereid" != yes; then
24711 echo $ac_n "checking for msg_control in msghdr""... $ac_c" 1>&6
24712 echo "configure:24713: checking for msg_control in msghdr" >&5
24713 if eval "test \"\${ol_cv_msghdr_msg_control+set}\" = set"; then
24714 echo $ac_n "(cached) $ac_c" 1>&6
24716 cat > conftest.$ac_ext <<EOF
24717 #line 24718 "configure"
24718 #include "confdefs.h"
24719 #include <sys/socket.h>
24721 struct msghdr m; m.msg_control=(struct cmsghdr *)0
24724 if { (eval echo configure:24725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
24726 ol_cv_msghdr_msg_control=yes
24728 echo "configure: failed program was:" >&5
24729 cat conftest.$ac_ext >&5
24731 ol_cv_msghdr_msg_control=no
24737 echo "$ac_t""$ol_cv_msghdr_msg_control" 1>&6
24738 if test $ol_cv_msghdr_msg_control = "yes" ; then
24739 cat >> confdefs.h <<\EOF
24740 #define HAVE_MSGHDR_MSG_CONTROL 1
24746 LIBSRCS="$LIBSRCS getpeereid.c"
24748 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
24749 if test "$ac_cv_func_snprintf" != yes; then
24750 cat >> confdefs.h <<\EOF
24751 #define snprintf ber_pvt_snprintf
24755 if test "$ac_cv_func_vsnprintf" != yes; then
24756 cat >> confdefs.h <<\EOF
24757 #define vsnprintf ber_pvt_vsnprintf
24764 if test "$ol_enable_slapi" != no ; then
24765 for ac_hdr in ltdl.h
24767 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
24768 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
24769 echo "configure:24770: checking for $ac_hdr" >&5
24770 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
24771 echo $ac_n "(cached) $ac_c" 1>&6
24773 cat > conftest.$ac_ext <<EOF
24774 #line 24775 "configure"
24775 #include "confdefs.h"
24778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24779 { (eval echo configure:24780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
24780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
24781 if test -z "$ac_err"; then
24783 eval "ac_cv_header_$ac_safe=yes"
24786 echo "configure: failed program was:" >&5
24787 cat conftest.$ac_ext >&5
24789 eval "ac_cv_header_$ac_safe=no"
24793 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
24794 echo "$ac_t""yes" 1>&6
24795 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
24796 cat >> confdefs.h <<EOF
24797 #define $ac_tr_hdr 1
24801 echo "$ac_t""no" 1>&6
24806 if test $ac_cv_header_ltdl_h != yes ; then
24807 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
24809 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
24810 echo "configure:24811: checking for lt_dlinit in -lltdl" >&5
24811 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
24812 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
24813 echo $ac_n "(cached) $ac_c" 1>&6
24815 ac_save_LIBS="$LIBS"
24816 LIBS="-lltdl $LIBS"
24817 cat > conftest.$ac_ext <<EOF
24818 #line 24819 "configure"
24819 #include "confdefs.h"
24820 /* Override any gcc2 internal prototype to avoid an error. */
24821 /* We use char because int might match the return type of a gcc2
24822 builtin and then its argument prototype would still apply. */
24829 if { (eval echo configure:24830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24831 eval "ac_cv_lib_$ac_lib_var=yes"
24833 echo "configure: failed program was:" >&5
24834 cat conftest.$ac_ext >&5
24836 eval "ac_cv_lib_$ac_lib_var=no"
24839 LIBS="$ac_save_LIBS"
24842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
24843 echo "$ac_t""yes" 1>&6
24846 LIBSLAPI=libslapi.a
24847 LIBSLAPITOOLS=../libslapi.a
24848 cat >> confdefs.h <<\EOF
24849 #define HAVE_LIBLTDL 1
24854 echo "$ac_t""no" 1>&6
24855 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
24859 cat >> confdefs.h <<\EOF
24860 #define LDAP_SLAPI 1
24865 if test "$ol_enable_debug" != no ; then
24866 cat >> confdefs.h <<\EOF
24867 #define LDAP_DEBUG 1
24871 if test "$ol_enable_syslog" = yes ; then
24872 cat >> confdefs.h <<\EOF
24873 #define LDAP_SYSLOG 1
24877 if test "$ol_link_kbind" != no ; then
24878 cat >> confdefs.h <<\EOF
24879 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
24883 if test "$ol_enable_proctitle" != no ; then
24884 cat >> confdefs.h <<\EOF
24885 #define LDAP_PROCTITLE 1
24889 if test "$ol_enable_referrals" != no ; then
24890 cat >> confdefs.h <<\EOF
24891 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
24895 if test "$ol_enable_local" != no; then
24896 cat >> confdefs.h <<\EOF
24897 #define LDAP_PF_LOCAL 1
24901 if test "$ol_link_ipv6" != no; then
24902 cat >> confdefs.h <<\EOF
24903 #define LDAP_PF_INET6 1
24907 if test "$ol_enable_cleartext" != no ; then
24908 cat >> confdefs.h <<\EOF
24909 #define SLAPD_CLEARTEXT 1
24913 if test "$ol_enable_crypt" != no ; then
24914 cat >> confdefs.h <<\EOF
24915 #define SLAPD_CRYPT 1
24919 if test "$ol_link_spasswd" != no ; then
24920 cat >> confdefs.h <<\EOF
24921 #define SLAPD_SPASSWD 1
24925 if test "$ol_enable_multimaster" != no ; then
24926 cat >> confdefs.h <<\EOF
24927 #define SLAPD_MULTIMASTER 1
24931 if test "$ol_enable_rlookups" != no ; then
24932 cat >> confdefs.h <<\EOF
24933 #define SLAPD_RLOOKUPS 1
24937 if test "$ol_enable_aci" != no ; then
24938 cat >> confdefs.h <<\EOF
24939 #define SLAPD_ACI_ENABLED 1
24944 if test "$ol_link_modules" != no ; then
24945 cat >> confdefs.h <<\EOF
24946 #define SLAPD_MODULES 1
24950 SLAPD_MODULES_LDFLAGS="-dlopen self"
24953 cat >> confdefs.h <<\EOF
24954 #define SLAPD_MOD_STATIC 1
24957 cat >> confdefs.h <<\EOF
24958 #define SLAPD_MOD_DYNAMIC 2
24962 if test "$ol_enable_bdb" != no ; then
24964 BUILD_BDB=$ol_enable_bdb
24965 if test "$ol_enable_bdb" = mod ; then
24966 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
24967 MFLAG=SLAPD_MOD_DYNAMIC
24969 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
24970 MFLAG=SLAPD_MOD_STATIC
24972 cat >> confdefs.h <<EOF
24973 #define SLAPD_BDB $MFLAG
24978 if test "$ol_enable_dnssrv" != no ; then
24980 BUILD_DNSSRV=$ol_enable_dnssrv
24981 if test "$ol_enable_dnssrv" = mod ; then
24982 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
24983 MFLAG=SLAPD_MOD_DYNAMIC
24985 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
24986 MFLAG=SLAPD_MOD_STATIC
24988 cat >> confdefs.h <<EOF
24989 #define SLAPD_DNSSRV $MFLAG
24994 if test "$ol_enable_hdb" != no ; then
24996 BUILD_HDB=$ol_enable_hdb
24997 if test "$ol_enable_hdb" = mod ; then
24998 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
24999 MFLAG=SLAPD_MOD_DYNAMIC
25001 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
25002 MFLAG=SLAPD_MOD_STATIC
25004 cat >> confdefs.h <<EOF
25005 #define SLAPD_HDB $MFLAG
25010 if test "$ol_enable_ldap" != no ; then
25012 BUILD_LDAP=$ol_enable_ldap
25013 if test "$ol_enable_ldap" = mod ; then
25014 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
25015 MFLAG=SLAPD_MOD_DYNAMIC
25017 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
25018 MFLAG=SLAPD_MOD_STATIC
25020 cat >> confdefs.h <<EOF
25021 #define SLAPD_LDAP $MFLAG
25026 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
25028 BUILD_LDBM=$ol_enable_ldbm
25029 if test "$ol_enable_ldbm" = mod ; then
25030 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
25031 MFLAG=SLAPD_MOD_DYNAMIC
25033 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
25034 MFLAG=SLAPD_MOD_STATIC
25036 cat >> confdefs.h <<EOF
25037 #define SLAPD_LDBM $MFLAG
25042 if test "$ol_enable_meta" != no ; then
25044 BUILD_META=$ol_enable_meta
25046 if test "$ol_enable_meta" = mod ; then
25047 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
25048 MFLAG=SLAPD_MOD_DYNAMIC
25050 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
25051 MFLAG=SLAPD_MOD_STATIC
25053 cat >> confdefs.h <<EOF
25054 #define SLAPD_META $MFLAG
25059 if test "$ol_enable_monitor" != no ; then
25061 BUILD_MONITOR=$ol_enable_monitor
25062 if test "$ol_enable_monitor" = mod ; then
25063 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
25064 MFLAG=SLAPD_MOD_DYNAMIC
25066 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
25067 MFLAG=SLAPD_MOD_STATIC
25069 cat >> confdefs.h <<EOF
25070 #define SLAPD_MONITOR $MFLAG
25075 if test "$ol_enable_null" != no ; then
25077 BUILD_NULL=$ol_enable_null
25078 if test "$ol_enable_null" = mod ; then
25079 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
25080 MFLAG=SLAPD_MOD_DYNAMIC
25082 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
25083 MFLAG=SLAPD_MOD_STATIC
25085 cat >> confdefs.h <<EOF
25086 #define SLAPD_NULL $MFLAG
25091 if test "$ol_enable_passwd" != no ; then
25093 BUILD_PASSWD=$ol_enable_passwd
25094 if test "$ol_enable_passwd" = mod ; then
25095 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
25096 MFLAG=SLAPD_MOD_DYNAMIC
25098 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
25099 MFLAG=SLAPD_MOD_STATIC
25101 cat >> confdefs.h <<EOF
25102 #define SLAPD_PASSWD $MFLAG
25107 if test "$ol_link_perl" != no ; then
25109 BUILD_PERL=$ol_enable_perl
25110 if test "$ol_enable_perl" = mod ; then
25111 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
25112 MFLAG=SLAPD_MOD_DYNAMIC
25114 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
25115 MFLAG=SLAPD_MOD_STATIC
25117 cat >> confdefs.h <<EOF
25118 #define SLAPD_PERL $MFLAG
25123 if test "$ol_enable_relay" != no ; then
25125 BUILD_RELAY=$ol_enable_relay
25126 if test "$ol_enable_relay" = mod ; then
25127 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
25128 MFLAG=SLAPD_MOD_DYNAMIC
25130 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
25131 MFLAG=SLAPD_MOD_STATIC
25133 cat >> confdefs.h <<EOF
25134 #define SLAPD_RELAY $MFLAG
25139 if test "$ol_enable_shell" != no ; then
25140 if test "$ol_link_thread" != no ; then
25141 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
25144 BUILD_SHELL=$ol_enable_shell
25145 if test "$ol_enable_shell" = mod ; then
25146 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
25147 MFLAG=SLAPD_MOD_DYNAMIC
25149 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
25150 MFLAG=SLAPD_MOD_STATIC
25152 cat >> confdefs.h <<EOF
25153 #define SLAPD_SHELL $MFLAG
25158 if test "$ol_link_sql" != no ; then
25160 BUILD_SQL=$ol_enable_sql
25161 if test "$ol_enable_sql" = mod; then
25162 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
25163 MFLAG=SLAPD_MOD_DYNAMIC
25165 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
25166 MFLAG=SLAPD_MOD_STATIC
25168 cat >> confdefs.h <<EOF
25169 #define SLAPD_SQL $MFLAG
25174 if test "$ol_enable_accesslog" != no ; then
25175 BUILD_ACCESSLOG=$ol_enable_accesslog
25176 if test "$ol_enable_accesslog" = mod ; then
25177 MFLAG=SLAPD_MOD_DYNAMIC
25178 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
25180 MFLAG=SLAPD_MOD_STATIC
25181 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
25183 cat >> confdefs.h <<EOF
25184 #define SLAPD_OVER_ACCESSLOG $MFLAG
25189 if test "$ol_enable_denyop" != no ; then
25190 BUILD_DENYOP=$ol_enable_denyop
25191 if test "$ol_enable_denyop" = mod ; then
25192 MFLAG=SLAPD_MOD_DYNAMIC
25193 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
25195 MFLAG=SLAPD_MOD_STATIC
25196 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
25198 cat >> confdefs.h <<EOF
25199 #define SLAPD_OVER_DENYOP $MFLAG
25204 if test "$ol_enable_dyngroup" != no ; then
25205 BUILD_DYNGROUP=$ol_enable_dyngroup
25206 if test "$ol_enable_dyngroup" = mod ; then
25207 MFLAG=SLAPD_MOD_DYNAMIC
25208 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
25210 MFLAG=SLAPD_MOD_STATIC
25211 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
25213 cat >> confdefs.h <<EOF
25214 #define SLAPD_OVER_DYNGROUP $MFLAG
25219 if test "$ol_enable_dynlist" != no ; then
25220 BUILD_DYNLIST=$ol_enable_dynlist
25221 if test "$ol_enable_dynlist" = mod ; then
25222 MFLAG=SLAPD_MOD_DYNAMIC
25223 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
25225 MFLAG=SLAPD_MOD_STATIC
25226 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
25228 cat >> confdefs.h <<EOF
25229 #define SLAPD_OVER_DYNLIST $MFLAG
25234 if test "$ol_enable_glue" != no ; then
25235 BUILD_GLUE=$ol_enable_glue
25236 if test "$ol_enable_glue" = mod ; then
25237 MFLAG=SLAPD_MOD_DYNAMIC
25238 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
25240 MFLAG=SLAPD_MOD_STATIC
25241 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
25243 cat >> confdefs.h <<EOF
25244 #define SLAPD_OVER_GLUE $MFLAG
25249 if test "$ol_enable_lastmod" != no ; then
25250 BUILD_LASTMOD=$ol_enable_lastmod
25251 if test "$ol_enable_lastmod" = mod ; then
25252 MFLAG=SLAPD_MOD_DYNAMIC
25253 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
25255 MFLAG=SLAPD_MOD_STATIC
25256 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
25258 cat >> confdefs.h <<EOF
25259 #define SLAPD_OVER_LASTMOD $MFLAG
25264 if test "$ol_enable_ppolicy" != no ; then
25265 BUILD_PPOLICY=$ol_enable_ppolicy
25266 if test "$ol_enable_ppolicy" = mod ; then
25267 MFLAG=SLAPD_MOD_DYNAMIC
25268 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
25270 MFLAG=SLAPD_MOD_STATIC
25271 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
25273 cat >> confdefs.h <<EOF
25274 #define SLAPD_OVER_PPOLICY $MFLAG
25279 if test "$ol_enable_proxycache" != no ; then
25280 BUILD_PROXYCACHE=$ol_enable_proxycache
25281 if test "$ol_enable_proxycache" = mod ; then
25282 MFLAG=SLAPD_MOD_DYNAMIC
25283 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
25285 MFLAG=SLAPD_MOD_STATIC
25286 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
25288 cat >> confdefs.h <<EOF
25289 #define SLAPD_OVER_PROXYCACHE $MFLAG
25294 if test "$ol_enable_refint" != no ; then
25295 BUILD_REFINT=$ol_enable_refint
25296 if test "$ol_enable_refint" = mod ; then
25297 MFLAG=SLAPD_MOD_DYNAMIC
25298 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
25300 MFLAG=SLAPD_MOD_STATIC
25301 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
25303 cat >> confdefs.h <<EOF
25304 #define SLAPD_OVER_REFINT $MFLAG
25309 if test "$ol_enable_retcode" != no ; then
25310 BUILD_RETCODE=$ol_enable_retcode
25311 if test "$ol_enable_retcode" = mod ; then
25312 MFLAG=SLAPD_MOD_DYNAMIC
25313 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
25315 MFLAG=SLAPD_MOD_STATIC
25316 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
25318 cat >> confdefs.h <<EOF
25319 #define SLAPD_OVER_RETCODE $MFLAG
25324 if test "$ol_enable_rwm" != no ; then
25326 BUILD_RWM=$ol_enable_rwm
25327 if test "$ol_enable_rwm" = mod ; then
25328 MFLAG=SLAPD_MOD_DYNAMIC
25329 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
25331 MFLAG=SLAPD_MOD_STATIC
25332 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
25334 cat >> confdefs.h <<EOF
25335 #define SLAPD_OVER_RWM $MFLAG
25340 if test "$ol_enable_syncprov" != no ; then
25341 BUILD_SYNCPROV=$ol_enable_syncprov
25342 if test "$ol_enable_syncprov" = mod ; then
25343 MFLAG=SLAPD_MOD_DYNAMIC
25344 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
25346 MFLAG=SLAPD_MOD_STATIC
25347 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
25349 cat >> confdefs.h <<EOF
25350 #define SLAPD_OVER_SYNCPROV $MFLAG
25355 if test "$ol_enable_translucent" != no ; then
25356 BUILD_TRANSLUCENT=$ol_enable_translucent
25357 if test "$ol_enable_translucent" = mod ; then
25358 MFLAG=SLAPD_MOD_DYNAMIC
25359 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
25361 MFLAG=SLAPD_MOD_STATIC
25362 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
25364 cat >> confdefs.h <<EOF
25365 #define SLAPD_OVER_TRANSLUCENT $MFLAG
25370 if test "$ol_enable_unique" != no ; then
25371 BUILD_UNIQUE=$ol_enable_unique
25372 if test "$ol_enable_unique" = mod ; then
25373 MFLAG=SLAPD_MOD_DYNAMIC
25374 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
25376 MFLAG=SLAPD_MOD_STATIC
25377 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
25379 cat >> confdefs.h <<EOF
25380 #define SLAPD_OVER_UNIQUE $MFLAG
25385 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
25386 $BUILD_SLAPD = yes ; then
25390 if test "$ol_enable_rewrite" != no ; then
25391 cat >> confdefs.h <<\EOF
25392 #define ENABLE_REWRITE 1
25398 if test "$ol_enable_slapi" != no ; then
25399 cat >> confdefs.h <<\EOF
25400 #define ENABLE_SLAPI 1
25404 SLAPD_SLAPI_DEPEND=libslapi.a
25409 if test "$ac_cv_mingw32" = yes ; then
25411 SLAPD_MODULES_LDFLAGS=
25493 # Check whether --with-xxinstall or --without-xxinstall was given.
25494 if test "${with_xxinstall+set}" = set; then
25495 withval="$with_xxinstall"
25503 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
25505 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25506 # Let make expand exec_prefix.
25507 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25509 # Any assignment to VPATH causes Sun make to only execute
25510 # the first set of double-colon rules, so remove it if not needed.
25511 # If there is a colon in the path, we need to keep it.
25512 if test "x$srcdir" = x.; then
25513 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
25516 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
25518 DEFS=-DHAVE_CONFIG_H
25520 # Without the "./", some shells look in PATH for config.status.
25521 : ${CONFIG_STATUS=./config.status}
25523 echo creating $CONFIG_STATUS
25524 rm -f $CONFIG_STATUS
25525 cat > $CONFIG_STATUS <<EOF
25527 # Generated automatically by configure.
25528 # Run this file to recreate the current configuration.
25529 # This directory was configured as follows,
25530 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25532 # $0 $ac_configure_args
25534 # Compiler output produced by configure, useful for debugging
25535 # configure, is in ./config.log if it exists.
25537 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
25540 case "\$ac_option" in
25541 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25542 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
25543 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
25544 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
25545 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
25547 -help | --help | --hel | --he | --h)
25548 echo "\$ac_cs_usage"; exit 0 ;;
25549 *) echo "\$ac_cs_usage"; exit 1 ;;
25553 ac_given_srcdir=$srcdir
25554 ac_given_INSTALL="$INSTALL"
25556 trap 'rm -fr `echo "\
25557 Makefile:build/top.mk:Makefile.in:build/dir.mk \
25558 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
25559 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
25560 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
25561 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
25562 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
25563 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
25564 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
25565 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
25566 include/Makefile:build/top.mk:include/Makefile.in \
25567 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
25568 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
25569 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
25570 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
25571 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
25572 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
25573 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk \
25574 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
25575 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
25576 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
25577 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
25578 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
25579 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
25580 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
25581 servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk \
25582 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
25583 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
25584 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
25585 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
25586 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
25587 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
25588 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
25589 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
25590 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
25591 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
25592 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
25593 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
25594 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
25596 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
25597 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
25599 cat >> $CONFIG_STATUS <<EOF
25601 # Protect against being on the right side of a sed subst in config.status.
25602 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
25603 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
25607 s%@CFLAGS@%$CFLAGS%g
25608 s%@CPPFLAGS@%$CPPFLAGS%g
25609 s%@CXXFLAGS@%$CXXFLAGS%g
25610 s%@FFLAGS@%$FFLAGS%g
25612 s%@LDFLAGS@%$LDFLAGS%g
25614 s%@exec_prefix@%$exec_prefix%g
25615 s%@prefix@%$prefix%g
25616 s%@program_transform_name@%$program_transform_name%g
25617 s%@bindir@%$bindir%g
25618 s%@sbindir@%$sbindir%g
25619 s%@libexecdir@%$libexecdir%g
25620 s%@datadir@%$datadir%g
25621 s%@sysconfdir@%$sysconfdir%g
25622 s%@sharedstatedir@%$sharedstatedir%g
25623 s%@localstatedir@%$localstatedir%g
25624 s%@libdir@%$libdir%g
25625 s%@includedir@%$includedir%g
25626 s%@oldincludedir@%$oldincludedir%g
25627 s%@infodir@%$infodir%g
25628 s%@mandir@%$mandir%g
25630 s%@host_alias@%$host_alias%g
25631 s%@host_cpu@%$host_cpu%g
25632 s%@host_vendor@%$host_vendor%g
25633 s%@host_os@%$host_os%g
25634 s%@target@%$target%g
25635 s%@target_alias@%$target_alias%g
25636 s%@target_cpu@%$target_cpu%g
25637 s%@target_vendor@%$target_vendor%g
25638 s%@target_os@%$target_os%g
25640 s%@build_alias@%$build_alias%g
25641 s%@build_cpu@%$build_cpu%g
25642 s%@build_vendor@%$build_vendor%g
25643 s%@build_os@%$build_os%g
25644 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
25645 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
25646 s%@INSTALL_DATA@%$INSTALL_DATA%g
25647 s%@PACKAGE@%$PACKAGE%g
25648 s%@VERSION@%$VERSION%g
25649 s%@ACLOCAL@%$ACLOCAL%g
25650 s%@AUTOCONF@%$AUTOCONF%g
25651 s%@AUTOMAKE@%$AUTOMAKE%g
25652 s%@AUTOHEADER@%$AUTOHEADER%g
25653 s%@MAKEINFO@%$MAKEINFO%g
25654 s%@install_sh@%$install_sh%g
25657 s%@AMTARFLAGS@%$AMTARFLAGS%g
25658 s%@SET_MAKE@%$SET_MAKE%g
25659 s%@OPENLDAP_LIBRELEASE@%$OPENLDAP_LIBRELEASE%g
25660 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
25661 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
25662 s%@top_builddir@%$top_builddir%g
25663 s%@ldap_subdir@%$ldap_subdir%g
25667 s%@OBJEXT@%$OBJEXT%g
25668 s%@EXEEXT@%$EXEEXT%g
25670 s%@RANLIB@%$RANLIB%g
25672 s%@DLLTOOL@%$DLLTOOL%g
25674 s%@OBJDUMP@%$OBJDUMP%g
25676 s%@LIBTOOL@%$LIBTOOL%g
25677 s%@PERLBIN@%$PERLBIN%g
25678 s%@OL_MKDEP@%$OL_MKDEP%g
25679 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
25680 s%@LTSTATIC@%$LTSTATIC%g
25681 s%@LIBOBJS@%$LIBOBJS%g
25682 s%@LIBSRCS@%$LIBSRCS%g
25684 s%@WITH_SASL@%$WITH_SASL%g
25685 s%@WITH_TLS@%$WITH_TLS%g
25686 s%@WITH_MODULES_ENABLED@%$WITH_MODULES_ENABLED%g
25687 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
25688 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
25689 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
25690 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
25691 s%@BUILD_BDB@%$BUILD_BDB%g
25692 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
25693 s%@BUILD_HDB@%$BUILD_HDB%g
25694 s%@BUILD_LDAP@%$BUILD_LDAP%g
25695 s%@BUILD_LDBM@%$BUILD_LDBM%g
25696 s%@BUILD_META@%$BUILD_META%g
25697 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
25698 s%@BUILD_NULL@%$BUILD_NULL%g
25699 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
25700 s%@BUILD_RELAY@%$BUILD_RELAY%g
25701 s%@BUILD_PERL@%$BUILD_PERL%g
25702 s%@BUILD_SHELL@%$BUILD_SHELL%g
25703 s%@BUILD_SQL@%$BUILD_SQL%g
25704 s%@BUILD_ACCESSLOG@%$BUILD_ACCESSLOG%g
25705 s%@BUILD_DENYOP@%$BUILD_DENYOP%g
25706 s%@BUILD_DYNGROUP@%$BUILD_DYNGROUP%g
25707 s%@BUILD_DYNLIST@%$BUILD_DYNLIST%g
25708 s%@BUILD_GLUE@%$BUILD_GLUE%g
25709 s%@BUILD_LASTMOD@%$BUILD_LASTMOD%g
25710 s%@BUILD_PPOLICY@%$BUILD_PPOLICY%g
25711 s%@BUILD_PROXYCACHE@%$BUILD_PROXYCACHE%g
25712 s%@BUILD_REFINT@%$BUILD_REFINT%g
25713 s%@BUILD_RETCODE@%$BUILD_RETCODE%g
25714 s%@BUILD_RWM@%$BUILD_RWM%g
25715 s%@BUILD_SYNCPROV@%$BUILD_SYNCPROV%g
25716 s%@BUILD_TRANSLUCENT@%$BUILD_TRANSLUCENT%g
25717 s%@BUILD_UNIQUE@%$BUILD_UNIQUE%g
25718 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
25719 s%@LDAP_LIBS@%$LDAP_LIBS%g
25720 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
25721 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
25722 s%@LDBM_LIBS@%$LDBM_LIBS%g
25723 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
25724 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
25725 s%@WRAP_LIBS@%$WRAP_LIBS%g
25726 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
25727 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
25728 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
25729 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
25730 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
25731 s%@SLAPD_STATIC_OVERLAYS@%$SLAPD_STATIC_OVERLAYS%g
25732 s%@SLAPD_DYNAMIC_OVERLAYS@%$SLAPD_DYNAMIC_OVERLAYS%g
25733 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
25734 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
25735 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
25736 s%@KRB4_LIBS@%$KRB4_LIBS%g
25737 s%@KRB5_LIBS@%$KRB5_LIBS%g
25738 s%@SASL_LIBS@%$SASL_LIBS%g
25739 s%@TLS_LIBS@%$TLS_LIBS%g
25740 s%@MODULES_LIBS@%$MODULES_LIBS%g
25741 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
25742 s%@LIBSLAPI@%$LIBSLAPI%g
25743 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
25744 s%@AUTH_LIBS@%$AUTH_LIBS%g
25745 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
25746 s%@SLAPD_GMP_LIBS@%$SLAPD_GMP_LIBS%g
25747 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
25748 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
25749 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
25754 cat >> $CONFIG_STATUS <<\EOF
25756 # Split the substitutions into bite-sized pieces for seds with
25757 # small command number limits, like on Digital OSF/1 and HP-UX.
25758 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
25759 ac_file=1 # Number of current file.
25760 ac_beg=1 # First line for current file.
25761 ac_end=$ac_max_sed_cmds # Line after last line for current file.
25764 while $ac_more_lines; do
25765 if test $ac_beg -gt 1; then
25766 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
25768 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
25770 if test ! -s conftest.s$ac_file; then
25771 ac_more_lines=false
25772 rm -f conftest.s$ac_file
25774 if test -z "$ac_sed_cmds"; then
25775 ac_sed_cmds="sed -f conftest.s$ac_file"
25777 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
25779 ac_file=`expr $ac_file + 1`
25781 ac_end=`expr $ac_end + $ac_max_sed_cmds`
25784 if test -z "$ac_sed_cmds"; then
25789 cat >> $CONFIG_STATUS <<EOF
25791 CONFIG_FILES=\${CONFIG_FILES-"\
25792 Makefile:build/top.mk:Makefile.in:build/dir.mk \
25793 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
25794 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
25795 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
25796 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
25797 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
25798 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
25799 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
25800 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
25801 include/Makefile:build/top.mk:include/Makefile.in \
25802 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
25803 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
25804 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
25805 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
25806 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
25807 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
25808 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk \
25809 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
25810 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
25811 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
25812 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
25813 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
25814 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
25815 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
25816 servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk \
25817 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
25818 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
25819 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
25820 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
25821 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
25822 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
25823 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
25824 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
25825 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
25826 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
25827 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
25828 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
25829 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
25831 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
25834 cat >> $CONFIG_STATUS <<\EOF
25835 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
25836 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25838 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
25839 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25840 *) ac_file_in="${ac_file}.in" ;;
25843 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
25845 # Remove last slash and all that follows it. Not all systems have dirname.
25846 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
25847 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
25848 # The file is in a subdirectory.
25849 test ! -d "$ac_dir" && mkdir "$ac_dir"
25850 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
25851 # A "../" for each directory in $ac_dir_suffix.
25852 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
25854 ac_dir_suffix= ac_dots=
25857 case "$ac_given_srcdir" in
25859 if test -z "$ac_dots"; then top_srcdir=.
25860 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
25861 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
25862 *) # Relative path.
25863 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
25864 top_srcdir="$ac_dots$ac_given_srcdir" ;;
25867 case "$ac_given_INSTALL" in
25868 [/$]*) INSTALL="$ac_given_INSTALL" ;;
25869 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
25872 echo creating "$ac_file"
25874 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
25876 *[Mm]akefile*) ac_comsub="1i\\
25877 # $configure_input" ;;
25881 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
25883 s%@configure_input@%$configure_input%g
25884 s%@srcdir@%$srcdir%g
25885 s%@top_srcdir@%$top_srcdir%g
25886 s%@INSTALL@%$INSTALL%g
25887 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
25891 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25892 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25894 # ac_d sets the value in "#define NAME VALUE" lines.
25895 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25896 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
25899 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
25900 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25901 ac_uB='\([ ]\)%\1#\2define\3'
25904 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25905 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25906 ac_eB='$%\1#\2define\3'
25910 if test "${CONFIG_HEADERS+set}" != set; then
25912 cat >> $CONFIG_STATUS <<EOF
25913 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
25915 cat >> $CONFIG_STATUS <<\EOF
25917 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
25918 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25920 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
25921 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25922 *) ac_file_in="${ac_file}.in" ;;
25925 echo creating $ac_file
25927 rm -f conftest.frag conftest.in conftest.out
25928 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
25929 cat $ac_file_inputs > conftest.in
25933 # Transform confdefs.h into a sed script conftest.vals that substitutes
25934 # the proper values into config.h.in to produce config.h. And first:
25935 # Protect against being on the right side of a sed subst in config.status.
25936 # Protect against being in an unquoted here document in config.status.
25937 rm -f conftest.vals
25938 cat > conftest.hdr <<\EOF
25941 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
25945 sed -n -f conftest.hdr confdefs.h > conftest.vals
25948 # This sed command replaces #undef with comments. This is necessary, for
25949 # example, in the case of _POSIX_SOURCE, which is predefined and required
25950 # on some systems where configure will not decide to define it.
25951 cat >> conftest.vals <<\EOF
25952 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
25955 # Break up conftest.vals because some shells have a limit on
25956 # the size of here documents, and old seds have small limits too.
25958 rm -f conftest.tail
25961 ac_lines=`grep -c . conftest.vals`
25962 # grep -c gives empty output for an empty file on some AIX systems.
25963 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
25964 # Write a limited-size here document to conftest.frag.
25965 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
25966 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
25968 sed -f conftest.frag conftest.in > conftest.out
25970 mv conftest.out conftest.in
25971 ' >> $CONFIG_STATUS
25972 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
25973 rm -f conftest.vals
25974 mv conftest.tail conftest.vals
25976 rm -f conftest.vals
25978 cat >> $CONFIG_STATUS <<\EOF
25979 rm -f conftest.frag conftest.h
25980 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
25981 cat conftest.in >> conftest.h
25983 if cmp -s $ac_file conftest.h 2>/dev/null; then
25984 echo "$ac_file is unchanged"
25987 # Remove last slash and all that follows it. Not all systems have dirname.
25988 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
25989 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
25990 # The file is in a subdirectory.
25991 test ! -d "$ac_dir" && mkdir "$ac_dir"
25994 mv conftest.h $ac_file
25999 cat >> $CONFIG_STATUS <<EOF
26000 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
26002 cat >> $CONFIG_STATUS <<\EOF
26006 BACKENDSC="servers/slapd/backends.c"
26007 echo "Making $BACKENDSC"
26009 cat > $BACKENDSC << ENDX
26010 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
26012 * Copyright 1998-2005 The OpenLDAP Foundation.
26013 * All rights reserved.
26015 * Redistribution and use in source and binary forms, with or without
26016 * modification, are permitted only as authorized by the OpenLDAP
26019 * A copy of this license is available in the file LICENSE in the
26020 * top-level directory of the distribution or, alternatively, at
26021 * <http://www.OpenLDAP.org/license.html>.
26023 /* This file is automatically generated by configure; please do not edit. */
26025 #include "portable.h"
26029 if test "${STATIC_BACKENDS}"; then
26030 for b in config ${STATIC_BACKENDS}; do
26031 bb=`echo "${b}" | sed -e 's/back-//'`
26032 cat >> $BACKENDSC << ENDX
26033 extern BI_init ${bb}_back_initialize;
26037 cat >> $BACKENDSC << ENDX
26039 BackendInfo slap_binfo[] = {
26042 for b in config ${STATIC_BACKENDS}; do
26043 bb=`echo "${b}" | sed -e 's/back-//'`
26044 echo " Add ${bb} ..."
26045 cat >> $BACKENDSC << ENDX
26046 { "${bb}", ${bb}_back_initialize },
26050 cat >> $BACKENDSC << ENDX
26054 /* end of generated file */
26058 echo Please run \"make depend\" to build dependencies
26062 chmod +x $CONFIG_STATUS
26063 rm -fr confdefs* $ac_clean_files
26064 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1