3 # from OpenLDAP: pkg/ldap/configure.in,v 1.560.2.8 2005/05/19 22:17:05 kurt 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-denyop Deny Operation overlay no|yes|mod [no]"
131 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]"
133 --enable-dynlist Dynamic List overlay no|yes|mod [no]"
135 --enable-glue Backend Glue overlay no|yes|mod [yes]"
137 --enable-lastmod Last Modification overlay no|yes|mod [no]"
139 --enable-ppolicy Password Policy overlay no|yes|mod [no]"
141 --enable-proxycache Proxy Cache overlay no|yes|mod [no]"
143 --enable-refint Referential Integrity overlay no|yes|mod [no]"
145 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]"
147 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]"
149 --enable-translucent Translucent Proxy overlay no|yes|mod [no]"
151 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]"
154 SLURPD (Replication Daemon) Options:"
156 --enable-slurpd enable building slurpd [auto]"
159 Library Generation & Linking Options"
161 --enable-static[=PKGS] build static libraries [default=yes]"
163 --enable-shared[=PKGS] build shared libraries [default=yes]"
165 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
167 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
169 # Find the correct PATH separator. Usually this is `:', but
170 # DJGPP uses `;' like DOS.
171 if test "X${PATH_SEPARATOR+set}" != Xset; then
172 UNAME=${UNAME-`uname 2>/dev/null`}
174 *-DOS) lt_cv_sys_path_separator=';' ;;
175 *) lt_cv_sys_path_separator=':' ;;
177 PATH_SEPARATOR=$lt_cv_sys_path_separator
181 # Check that we are running under the correct shell.
182 SHELL=${CONFIG_SHELL-/bin/sh}
186 # Remove one level of quotation (which was required for Make).
187 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
192 if test "X$1" = X--no-reexec; then
193 # Discard the --no-reexec flag, and continue.
195 elif test "X$1" = X--fallback-echo; then
196 # Avoid inline document here, it may be left over
198 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
199 # Yippee, $echo works!
202 # Restart under the correct shell.
203 exec $SHELL "$0" --no-reexec ${1+"$@"}
206 if test "X$1" = X--fallback-echo; then
207 # used as fallback echo
215 # The HP-UX ksh and POSIX shell print the target directory to stdout
217 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
219 if test -z "$ECHO"; then
220 if test "X${echo_test_string+set}" != Xset; then
221 # find a string as large as possible, as long as the shell can cope with it
222 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
223 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
224 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
225 echo_test_string="`eval $cmd`" &&
226 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
233 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
234 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
235 test "X$echo_testing_string" = "X$echo_test_string"; then
238 # The Solaris, AIX, and Digital Unix default echo programs unquote
239 # backslashes. This makes it impossible to quote backslashes using
240 # echo "$something" | sed 's/\\/\\\\/g'
242 # So, first we look for a working echo in the user's PATH.
244 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
245 for dir in $PATH /usr/ucb; do
246 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
247 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
248 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
249 test "X$echo_testing_string" = "X$echo_test_string"; then
256 if test "X$echo" = Xecho; then
257 # We didn't find a better echo, so look for alternatives.
258 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
259 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
260 test "X$echo_testing_string" = "X$echo_test_string"; then
261 # This shell has a builtin print -r that does the trick.
263 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
264 test "X$CONFIG_SHELL" != X/bin/ksh; then
265 # If we have ksh, try running configure again with it.
266 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
267 export ORIGINAL_CONFIG_SHELL
268 CONFIG_SHELL=/bin/ksh
270 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
274 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
275 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
276 test "X$echo_testing_string" = "X$echo_test_string"; then
279 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
280 test "X$echo_testing_string" = 'X\t' &&
281 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
282 test "X$echo_testing_string" = "X$echo_test_string"; then
283 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
285 SHELL="$CONFIG_SHELL"
287 echo="$CONFIG_SHELL $0 --fallback-echo"
288 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
289 test "X$echo_testing_string" = 'X\t' &&
290 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
291 test "X$echo_testing_string" = "X$echo_test_string"; then
292 echo="$CONFIG_SHELL $0 --fallback-echo"
294 # maybe with a smaller string...
297 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
298 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
305 if test "$prev" != 'sed 50q "$0"'; then
306 echo_test_string=`eval $prev`
307 export echo_test_string
308 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
310 # Oops. We lost completely, so just stick with echo.
319 # Copy echo and quote the copy suitably for passing to libtool from
320 # the Makefile, instead of quoting the original, which is used later.
322 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
323 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
328 --disable-libtool-lock avoid locking (might break parallel builds)"
330 --with-pic try to use only PIC/non-PIC objects [default=use both]"
333 See INSTALL file for further details."
335 # Initialize some variables set by options.
336 # The variables have the same names as the options, with
337 # dashes changed to underlines.
339 cache_file=./config.cache
348 program_transform_name=s,x,x,
356 bindir='${exec_prefix}/bin'
357 sbindir='${exec_prefix}/sbin'
358 libexecdir='${exec_prefix}/libexec'
359 datadir='${prefix}/share'
360 sysconfdir='${prefix}/etc'
361 sharedstatedir='${prefix}/com'
362 localstatedir='${prefix}/var'
363 libdir='${exec_prefix}/lib'
364 includedir='${prefix}/include'
365 oldincludedir='/usr/include'
366 infodir='${prefix}/info'
367 mandir='${prefix}/man'
369 # Initialize some other variables.
372 SHELL=${CONFIG_SHELL-/bin/sh}
373 # Maximum number of lines to put in a shell here document.
380 # If the previous option needs an argument, assign it.
381 if test -n "$ac_prev"; then
382 eval "$ac_prev=\$ac_option"
388 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
392 # Accept the important Cygnus configure options, so we can diagnose typos.
396 -bindir | --bindir | --bindi | --bind | --bin | --bi)
398 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
399 bindir="$ac_optarg" ;;
401 -build | --build | --buil | --bui | --bu)
403 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
404 build="$ac_optarg" ;;
406 -cache-file | --cache-file | --cache-fil | --cache-fi \
407 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
408 ac_prev=cache_file ;;
409 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
410 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
411 cache_file="$ac_optarg" ;;
413 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
415 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
417 datadir="$ac_optarg" ;;
419 -disable-* | --disable-*)
420 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
421 # Reject names that are not valid shell variable names.
422 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
423 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
425 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
426 eval "enable_${ac_feature}=no" ;;
428 -enable-* | --enable-*)
429 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
430 # Reject names that are not valid shell variable names.
431 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
432 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
434 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
439 eval "enable_${ac_feature}='$ac_optarg'" ;;
441 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
442 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
443 | --exec | --exe | --ex)
444 ac_prev=exec_prefix ;;
445 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
446 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
447 | --exec=* | --exe=* | --ex=*)
448 exec_prefix="$ac_optarg" ;;
450 -gas | --gas | --ga | --g)
451 # Obsolete; use --with-gas.
454 -help | --help | --hel | --he)
455 # Omit some internal or obsolete options to make the list less imposing.
456 # This message is too long to be a string in the A/UX 3.1 sh.
458 Usage: configure [options] [host]
459 Options: [defaults in brackets after descriptions]
461 --cache-file=FILE cache test results in FILE
462 --help print this message
463 --no-create do not create output files
464 --quiet, --silent do not print \`checking...' messages
465 --version print the version of autoconf that created configure
466 Directory and file names:
467 --prefix=PREFIX install architecture-independent files in PREFIX
469 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
471 --bindir=DIR user executables in DIR [EPREFIX/bin]
472 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
473 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
474 --datadir=DIR read-only architecture-independent data in DIR
476 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
477 --sharedstatedir=DIR modifiable architecture-independent data in DIR
479 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
480 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
481 --includedir=DIR C header files in DIR [PREFIX/include]
482 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
483 --infodir=DIR info documentation in DIR [PREFIX/info]
484 --mandir=DIR man documentation in DIR [PREFIX/man]
485 --srcdir=DIR find the sources in DIR [configure dir or ..]
486 --program-prefix=PREFIX prepend PREFIX to installed program names
487 --program-suffix=SUFFIX append SUFFIX to installed program names
488 --program-transform-name=PROGRAM
489 run sed PROGRAM on installed program names
493 --build=BUILD configure for building on BUILD [BUILD=HOST]
494 --host=HOST configure for HOST [guessed]
495 --target=TARGET configure for TARGET [TARGET=HOST]
496 Features and packages:
497 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
498 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
501 --x-includes=DIR X include files are in DIR
502 --x-libraries=DIR X library files are in DIR
504 if test -n "$ac_help"; then
505 echo "--enable and --with options recognized:$ac_help"
509 -host | --host | --hos | --ho)
511 -host=* | --host=* | --hos=* | --ho=*)
514 -includedir | --includedir | --includedi | --included | --include \
515 | --includ | --inclu | --incl | --inc)
516 ac_prev=includedir ;;
517 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
518 | --includ=* | --inclu=* | --incl=* | --inc=*)
519 includedir="$ac_optarg" ;;
521 -infodir | --infodir | --infodi | --infod | --info | --inf)
523 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
524 infodir="$ac_optarg" ;;
526 -libdir | --libdir | --libdi | --libd)
528 -libdir=* | --libdir=* | --libdi=* | --libd=*)
529 libdir="$ac_optarg" ;;
531 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
532 | --libexe | --libex | --libe)
533 ac_prev=libexecdir ;;
534 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
535 | --libexe=* | --libex=* | --libe=*)
536 libexecdir="$ac_optarg" ;;
538 -localstatedir | --localstatedir | --localstatedi | --localstated \
539 | --localstate | --localstat | --localsta | --localst \
540 | --locals | --local | --loca | --loc | --lo)
541 ac_prev=localstatedir ;;
542 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
543 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
544 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
545 localstatedir="$ac_optarg" ;;
547 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
549 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
550 mandir="$ac_optarg" ;;
553 # Obsolete; use --without-fp.
556 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
560 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
561 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
564 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
565 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
566 | --oldin | --oldi | --old | --ol | --o)
567 ac_prev=oldincludedir ;;
568 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
569 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
570 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
571 oldincludedir="$ac_optarg" ;;
573 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
575 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
576 prefix="$ac_optarg" ;;
578 -program-prefix | --program-prefix | --program-prefi | --program-pref \
579 | --program-pre | --program-pr | --program-p)
580 ac_prev=program_prefix ;;
581 -program-prefix=* | --program-prefix=* | --program-prefi=* \
582 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
583 program_prefix="$ac_optarg" ;;
585 -program-suffix | --program-suffix | --program-suffi | --program-suff \
586 | --program-suf | --program-su | --program-s)
587 ac_prev=program_suffix ;;
588 -program-suffix=* | --program-suffix=* | --program-suffi=* \
589 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
590 program_suffix="$ac_optarg" ;;
592 -program-transform-name | --program-transform-name \
593 | --program-transform-nam | --program-transform-na \
594 | --program-transform-n | --program-transform- \
595 | --program-transform | --program-transfor \
596 | --program-transfo | --program-transf \
597 | --program-trans | --program-tran \
598 | --progr-tra | --program-tr | --program-t)
599 ac_prev=program_transform_name ;;
600 -program-transform-name=* | --program-transform-name=* \
601 | --program-transform-nam=* | --program-transform-na=* \
602 | --program-transform-n=* | --program-transform-=* \
603 | --program-transform=* | --program-transfor=* \
604 | --program-transfo=* | --program-transf=* \
605 | --program-trans=* | --program-tran=* \
606 | --progr-tra=* | --program-tr=* | --program-t=*)
607 program_transform_name="$ac_optarg" ;;
609 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
610 | -silent | --silent | --silen | --sile | --sil)
613 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
615 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
617 sbindir="$ac_optarg" ;;
619 -sharedstatedir | --sharedstatedir | --sharedstatedi \
620 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
621 | --sharedst | --shareds | --shared | --share | --shar \
623 ac_prev=sharedstatedir ;;
624 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
625 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
626 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
628 sharedstatedir="$ac_optarg" ;;
630 -site | --site | --sit)
632 -site=* | --site=* | --sit=*)
635 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
637 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
638 srcdir="$ac_optarg" ;;
640 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
641 | --syscon | --sysco | --sysc | --sys | --sy)
642 ac_prev=sysconfdir ;;
643 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
644 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
645 sysconfdir="$ac_optarg" ;;
647 -target | --target | --targe | --targ | --tar | --ta | --t)
649 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
650 target="$ac_optarg" ;;
652 -v | -verbose | --verbose | --verbos | --verbo | --verb)
655 -version | --version | --versio | --versi | --vers)
656 echo "configure generated by autoconf version 2.13.1"
660 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
661 # Reject names that are not valid shell variable names.
662 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
663 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
665 ac_package=`echo $ac_package| sed 's/-/_/g'`
670 eval "with_${ac_package}='$ac_optarg'" ;;
672 -without-* | --without-*)
673 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
674 # Reject names that are not valid shell variable names.
675 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
676 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
678 ac_package=`echo $ac_package| sed 's/-/_/g'`
679 eval "with_${ac_package}=no" ;;
682 # Obsolete; use --with-x.
685 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
686 | --x-incl | --x-inc | --x-in | --x-i)
687 ac_prev=x_includes ;;
688 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
689 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
690 x_includes="$ac_optarg" ;;
692 -x-libraries | --x-libraries | --x-librarie | --x-librari \
693 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
694 ac_prev=x_libraries ;;
695 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
696 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
697 x_libraries="$ac_optarg" ;;
699 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
703 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
704 echo "configure: warning: $ac_option: invalid host type" 1>&2
706 if test "x$nonopt" != xNONE; then
707 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
715 if test -n "$ac_prev"; then
716 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
719 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
721 # File descriptor usage:
724 # 2 errors and warnings
725 # 3 some systems may open it to /dev/tty
726 # 4 used on the Kubota Titan
727 # 6 checking for... messages and results
728 # 5 compiler messages saved in config.log
729 if test "$silent" = yes; then
737 This file contains any messages produced by compilers while
738 running configure, to aid debugging if configure makes a mistake.
741 # Strip out --no-create and --no-recursion so they do not pile up.
742 # Also quote any args containing shell metacharacters.
747 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
748 | --no-cr | --no-c) ;;
749 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
750 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
751 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
752 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
753 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
758 # Only set these to C if already set. These must not be set unconditionally
759 # because not all systems understand e.g. LANG=C (notably SCO).
760 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
761 # Non-C LC_CTYPE values break the ctype check.
762 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
763 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
764 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
765 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
767 # confdefs.h avoids OS command line length limits that DEFS can exceed.
768 rm -rf conftest* confdefs.h
769 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
772 # A filename unique to this package, relative to the directory that
773 # configure is in, which we can look for to find out if srcdir is correct.
774 ac_unique_file=build/version.sh
776 # Find the source files, if location was not specified.
777 if test -z "$srcdir"; then
778 ac_srcdir_defaulted=yes
779 # Try the directory containing this script, then its parent.
781 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
782 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
784 if test ! -r $srcdir/$ac_unique_file; then
788 ac_srcdir_defaulted=no
790 if test ! -r $srcdir/$ac_unique_file; then
791 if test "$ac_srcdir_defaulted" = yes; then
792 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
794 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
797 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
799 # Prefer explicitly selected file to automatically selected ones.
800 if test -z "$CONFIG_SITE"; then
801 if test "x$prefix" != xNONE; then
802 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
804 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
807 for ac_site_file in $CONFIG_SITE; do
808 if test -r "$ac_site_file"; then
809 echo "loading site script $ac_site_file"
816 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
817 ac_cpp='$CPP $CPPFLAGS'
818 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
819 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
820 cross_compiling=$ac_cv_prog_cc_cross
824 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
825 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
826 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
833 ac_n= ac_c='\c' ac_t=
837 # set unset (borrowed from autoconf 2.49c)
838 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
844 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
847 for ac_dir in build $srcdir/build; do
848 if test -f $ac_dir/install-sh; then
850 ac_install_sh="$ac_aux_dir/install-sh -c"
852 elif test -f $ac_dir/install.sh; then
854 ac_install_sh="$ac_aux_dir/install.sh -c"
856 elif test -f $ac_dir/shtool; then
858 ac_install_sh="$ac_aux_dir/shtool install -c"
862 if test -z "$ac_aux_dir"; then
863 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
865 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
866 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
867 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
869 eval `$ac_aux_dir/version.sh`
870 if test -z "$OL_STRING"; then
871 { echo "configure: error: could not determine version" 1>&2; exit 1; }
874 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
875 ac_cv_shtool="$ac_aux_dir/shtool"
877 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
880 SHTOOL="$ac_cv_shtool"
882 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
883 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
886 if test -d $ac_aux_dir/CVS; then
887 OPENLDAP_CVS="(from CVS sources) "
890 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
893 echo $ac_n "checking host system type""... $ac_c" 1>&6
894 echo "configure:895: checking host system type" >&5
895 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
897 # Make sure we can run config.sub.
898 if $ac_config_sub sun4 >/dev/null 2>&1; then :
899 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
902 ac_cv_host_alias=$host
903 case "$ac_cv_host_alias" in
907 if ac_cv_host_alias=`$ac_config_guess`; then :
908 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
910 *) ac_cv_host_alias=$nonopt ;;
914 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
915 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
916 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
917 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
919 echo $ac_n "(cached) $ac_c" 1>&6
922 echo "$ac_t""$ac_cv_host" 1>&6
925 host_alias=$ac_cv_host_alias
926 host_cpu=$ac_cv_host_cpu
927 host_vendor=$ac_cv_host_vendor
928 host_os=$ac_cv_host_os
934 echo $ac_n "checking target system type""... $ac_c" 1>&6
935 echo "configure:936: checking target system type" >&5
936 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
938 # Make sure we can run config.sub.
939 if $ac_config_sub sun4 >/dev/null 2>&1; then :
940 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
943 ac_cv_target_alias=$target
944 case "$ac_cv_target_alias" in
948 ac_cv_target_alias=$host_alias ;;
950 *) ac_cv_target_alias=$nonopt ;;
954 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
955 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
956 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
957 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
959 echo $ac_n "(cached) $ac_c" 1>&6
962 echo "$ac_t""$ac_cv_target" 1>&6
965 target_alias=$ac_cv_target_alias
966 target_cpu=$ac_cv_target_cpu
967 target_vendor=$ac_cv_target_vendor
968 target_os=$ac_cv_target_os
974 echo $ac_n "checking build system type""... $ac_c" 1>&6
975 echo "configure:976: checking build system type" >&5
976 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
978 # Make sure we can run config.sub.
979 if $ac_config_sub sun4 >/dev/null 2>&1; then :
980 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
983 ac_cv_build_alias=$build
984 case "$ac_cv_build_alias" in
988 ac_cv_build_alias=$host_alias ;;
990 *) ac_cv_build_alias=$nonopt ;;
994 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
995 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
996 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
997 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
999 echo $ac_n "(cached) $ac_c" 1>&6
1002 echo "$ac_t""$ac_cv_build" 1>&6
1005 build_alias=$ac_cv_build_alias
1006 build_cpu=$ac_cv_build_cpu
1007 build_vendor=$ac_cv_build_vendor
1008 build_os=$ac_cv_build_os
1014 # Do some error checking and defaulting for the host and target type.
1016 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1019 # 1. You are not allowed to specify --host, --target, and nonopt at the
1021 # 2. Host defaults to nonopt.
1022 # 3. If nonopt is not specified, then host defaults to the current host,
1023 # as determined by config.guess.
1024 # 4. Target and build default to nonopt.
1025 # 5. If nonopt is not specified, then target and build default to host.
1027 # The aliases save the names the user supplied, while $host etc.
1028 # will get canonicalized.
1029 case $host---$target---$nonopt in
1030 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1031 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1034 test "$host_alias" != "$target_alias" &&
1035 test "$program_prefix$program_suffix$program_transform_name" = \
1037 program_prefix=${target_alias}-
1040 # Find a good install program. We prefer a C program (faster),
1041 # so one script is as good as another. But avoid the broken or
1042 # incompatible versions:
1043 # SysV /etc/install, /usr/sbin/install
1044 # SunOS /usr/etc/install
1045 # IRIX /sbin/install
1047 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1048 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1049 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1050 # ./install, which can be erroneously created by make from ./install.sh.
1051 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1052 echo "configure:1053: checking for a BSD compatible install" >&5
1053 if test -z "$INSTALL"; then
1054 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1055 echo $ac_n "(cached) $ac_c" 1>&6
1057 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1058 for ac_dir in $PATH; do
1059 # Account for people who put trailing slashes in PATH elements.
1061 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1063 # OSF1 and SCO ODT 3.0 have their own names for install.
1064 # Don't use installbsd from OSF since it installs stuff as root
1066 for ac_prog in ginstall scoinst install; do
1067 if test -f $ac_dir/$ac_prog; then
1068 if test $ac_prog = install &&
1069 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1070 # AIX install. It has an incompatible calling convention.
1072 elif test $ac_prog = install &&
1073 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1074 # program-specific install script used by HP pwplus--don't use.
1077 ac_cv_path_install="$ac_dir/$ac_prog -c"
1088 if test "${ac_cv_path_install+set}" = set; then
1089 INSTALL="$ac_cv_path_install"
1091 # As a last resort, use the slow shell script. We don't cache a
1092 # path for INSTALL within a source directory, because that will
1093 # break other packages using the cache if that directory is
1094 # removed, or if the path is relative.
1095 INSTALL="$ac_install_sh"
1098 echo "$ac_t""$INSTALL" 1>&6
1100 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1101 # It thinks the first close brace ends the variable substitution.
1102 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1104 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1106 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1108 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1109 echo "configure:1110: checking whether build environment is sane" >&5
1112 echo timestamp > conftestfile
1113 # Do `set' in a subshell so we don't clobber the current shell's
1114 # arguments. Must try -L first in case configure is actually a
1115 # symlink; some systems play weird games with the mod time of symlinks
1116 # (eg FreeBSD returns the mod time of the symlink's containing
1119 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1120 if test "$*" = "X"; then
1122 set X `ls -t $srcdir/configure conftestfile`
1124 if test "$*" != "X $srcdir/configure conftestfile" \
1125 && test "$*" != "X conftestfile $srcdir/configure"; then
1127 # If neither matched, then we have a broken ls. This can happen
1128 # if, for instance, CONFIG_SHELL is bash and it inherits a
1129 # broken ls alias from the environment. This has actually
1130 # happened. Such a system could not be considered "sane".
1131 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1132 alias in your environment" 1>&2; exit 1; }
1135 test "$2" = conftestfile
1141 { echo "configure: error: newly created file is older than distributed files!
1142 Check your system clock" 1>&2; exit 1; }
1145 echo "$ac_t""yes" 1>&6
1146 if test "$program_transform_name" = s,x,x,; then
1147 program_transform_name=
1149 # Double any \ or $. echo might interpret backslashes.
1150 cat <<\EOF_SED > conftestsed
1151 s,\\,\\\\,g; s,\$,$$,g
1153 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1156 test "$program_prefix" != NONE &&
1157 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1158 # Use a double $ so make ignores it.
1159 test "$program_suffix" != NONE &&
1160 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1162 # sed with no file args requires a program.
1163 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1165 for ac_prog in mawk gawk nawk awk
1167 # Extract the first word of "$ac_prog", so it can be a program name with args.
1168 set dummy $ac_prog; ac_word=$2
1169 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1170 echo "configure:1171: checking for $ac_word" >&5
1171 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1174 if test -n "$AWK"; then
1175 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1177 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1179 for ac_dir in $ac_dummy; do
1180 test -z "$ac_dir" && ac_dir=.
1181 if test -f $ac_dir/$ac_word; then
1182 ac_cv_prog_AWK="$ac_prog"
1189 AWK="$ac_cv_prog_AWK"
1190 if test -n "$AWK"; then
1191 echo "$ac_t""$AWK" 1>&6
1193 echo "$ac_t""no" 1>&6
1196 test -n "$AWK" && break
1199 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1200 echo "configure:1201: checking whether ${MAKE-make} sets \${MAKE}" >&5
1201 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1202 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1203 echo $ac_n "(cached) $ac_c" 1>&6
1205 cat > conftestmake <<\EOF
1207 @echo 'ac_maketemp="${MAKE}"'
1209 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1210 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1211 if test -n "$ac_maketemp"; then
1212 eval ac_cv_prog_make_${ac_make}_set=yes
1214 eval ac_cv_prog_make_${ac_make}_set=no
1218 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1219 echo "$ac_t""yes" 1>&6
1222 echo "$ac_t""no" 1>&6
1223 SET_MAKE="MAKE=${MAKE-make}"
1232 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1233 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1238 missing_dir=`cd $ac_aux_dir && pwd`
1239 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1240 echo "configure:1241: checking for working aclocal" >&5
1241 # Run test in a subshell; some versions of sh will print an error if
1242 # an executable is not found, even if stderr is redirected.
1243 # Redirect stdin to placate older versions of autoconf. Sigh.
1244 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1246 echo "$ac_t""found" 1>&6
1248 ACLOCAL="$missing_dir/missing aclocal"
1249 echo "$ac_t""missing" 1>&6
1252 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1253 echo "configure:1254: checking for working autoconf" >&5
1254 # Run test in a subshell; some versions of sh will print an error if
1255 # an executable is not found, even if stderr is redirected.
1256 # Redirect stdin to placate older versions of autoconf. Sigh.
1257 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1259 echo "$ac_t""found" 1>&6
1261 AUTOCONF="$missing_dir/missing autoconf"
1262 echo "$ac_t""missing" 1>&6
1265 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1266 echo "configure:1267: checking for working automake" >&5
1267 # Run test in a subshell; some versions of sh will print an error if
1268 # an executable is not found, even if stderr is redirected.
1269 # Redirect stdin to placate older versions of autoconf. Sigh.
1270 if (automake --version) < /dev/null > /dev/null 2>&1; then
1272 echo "$ac_t""found" 1>&6
1274 AUTOMAKE="$missing_dir/missing automake"
1275 echo "$ac_t""missing" 1>&6
1278 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1279 echo "configure:1280: checking for working autoheader" >&5
1280 # Run test in a subshell; some versions of sh will print an error if
1281 # an executable is not found, even if stderr is redirected.
1282 # Redirect stdin to placate older versions of autoconf. Sigh.
1283 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1284 AUTOHEADER=autoheader
1285 echo "$ac_t""found" 1>&6
1287 AUTOHEADER="$missing_dir/missing autoheader"
1288 echo "$ac_t""missing" 1>&6
1291 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1292 echo "configure:1293: checking for working makeinfo" >&5
1293 # Run test in a subshell; some versions of sh will print an error if
1294 # an executable is not found, even if stderr is redirected.
1295 # Redirect stdin to placate older versions of autoconf. Sigh.
1296 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1298 echo "$ac_t""found" 1>&6
1300 MAKEINFO="$missing_dir/missing makeinfo"
1301 echo "$ac_t""missing" 1>&6
1304 install_sh="$missing_dir/install-sh"
1305 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1307 for ac_prog in gnutar gtar tar
1309 # Extract the first word of "$ac_prog", so it can be a program name with args.
1310 set dummy $ac_prog; ac_word=$2
1311 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1312 echo "configure:1313: checking for $ac_word" >&5
1313 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1314 echo $ac_n "(cached) $ac_c" 1>&6
1316 if test -n "$AMTAR"; then
1317 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1319 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1321 for ac_dir in $ac_dummy; do
1322 test -z "$ac_dir" && ac_dir=.
1323 if test -f $ac_dir/$ac_word; then
1324 ac_cv_prog_AMTAR="$ac_prog"
1331 AMTAR="$ac_cv_prog_AMTAR"
1332 if test -n "$AMTAR"; then
1333 echo "$ac_t""$AMTAR" 1>&6
1335 echo "$ac_t""no" 1>&6
1338 test -n "$AMTAR" && break
1343 if test -n "$AMTAR"; then
1344 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1349 cat >> confdefs.h <<EOF
1350 #define OPENLDAP_PACKAGE "$PACKAGE"
1353 cat >> confdefs.h <<EOF
1354 #define OPENLDAP_VERSION "$VERSION"
1358 cat >> confdefs.h <<EOF
1359 #define LDAP_VENDOR_VERSION $OL_API_INC
1362 cat >> confdefs.h <<EOF
1363 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1366 cat >> confdefs.h <<EOF
1367 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1370 cat >> confdefs.h <<EOF
1371 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1375 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
1377 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
1379 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1383 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1384 echo "configure:1385: checking configure arguments" >&5
1389 ldap_subdir="/openldap"
1391 # Check whether --with-subdir or --without-subdir was given.
1392 if test "${with_subdir+set}" = set; then
1393 withval="$with_subdir"
1400 ldap_subdir="$withval"
1403 ldap_subdir="/$withval"
1410 # OpenLDAP --enable-debug
1411 # Check whether --enable-debug or --disable-debug was given.
1412 if test "${enable_debug+set}" = set; then
1413 enableval="$enable_debug"
1416 for ol_val in auto yes no ; do
1417 if test "$enableval" = "$ol_val" ; then
1421 if test "$ol_arg" = "invalid" ; then
1422 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1424 ol_enable_debug="$ol_arg"
1427 ol_enable_debug="yes"
1429 # end --enable-debug
1430 # OpenLDAP --enable-dynamic
1431 # Check whether --enable-dynamic or --disable-dynamic was given.
1432 if test "${enable_dynamic+set}" = set; then
1433 enableval="$enable_dynamic"
1436 for ol_val in auto yes no ; do
1437 if test "$enableval" = "$ol_val" ; then
1441 if test "$ol_arg" = "invalid" ; then
1442 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1444 ol_enable_dynamic="$ol_arg"
1447 ol_enable_dynamic="no"
1449 # end --enable-dynamic
1450 # OpenLDAP --enable-syslog
1451 # Check whether --enable-syslog or --disable-syslog was given.
1452 if test "${enable_syslog+set}" = set; then
1453 enableval="$enable_syslog"
1456 for ol_val in auto yes no ; do
1457 if test "$enableval" = "$ol_val" ; then
1461 if test "$ol_arg" = "invalid" ; then
1462 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1464 ol_enable_syslog="$ol_arg"
1467 ol_enable_syslog="auto"
1469 # end --enable-syslog
1470 # OpenLDAP --enable-proctitle
1471 # Check whether --enable-proctitle or --disable-proctitle was given.
1472 if test "${enable_proctitle+set}" = set; then
1473 enableval="$enable_proctitle"
1476 for ol_val in auto yes no ; do
1477 if test "$enableval" = "$ol_val" ; then
1481 if test "$ol_arg" = "invalid" ; then
1482 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1484 ol_enable_proctitle="$ol_arg"
1487 ol_enable_proctitle="yes"
1489 # end --enable-proctitle
1490 ol_enable_referrals=${ol_enable_referrals-no}
1491 ol_enable_kbind=${ol_enable_kbind-no}
1492 # OpenLDAP --enable-ipv6
1493 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1494 if test "${enable_ipv6+set}" = set; then
1495 enableval="$enable_ipv6"
1498 for ol_val in auto yes no ; do
1499 if test "$enableval" = "$ol_val" ; then
1503 if test "$ol_arg" = "invalid" ; then
1504 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1506 ol_enable_ipv6="$ol_arg"
1509 ol_enable_ipv6="auto"
1512 # OpenLDAP --enable-local
1513 # Check whether --enable-local or --disable-local was given.
1514 if test "${enable_local+set}" = set; then
1515 enableval="$enable_local"
1518 for ol_val in auto yes no ; do
1519 if test "$enableval" = "$ol_val" ; then
1523 if test "$ol_arg" = "invalid" ; then
1524 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1526 ol_enable_local="$ol_arg"
1529 ol_enable_local="auto"
1531 # end --enable-local
1534 # OpenLDAP --with-cyrus_sasl
1535 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1536 if test "${with_cyrus_sasl+set}" = set; then
1537 withval="$with_cyrus_sasl"
1540 for ol_val in auto yes no ; do
1541 if test "$withval" = "$ol_val" ; then
1545 if test "$ol_arg" = "invalid" ; then
1546 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1548 ol_with_cyrus_sasl="$ol_arg"
1551 ol_with_cyrus_sasl="auto"
1553 # end --with-cyrus_sasl
1555 # OpenLDAP --with-fetch
1556 # Check whether --with-fetch or --without-fetch was given.
1557 if test "${with_fetch+set}" = set; then
1558 withval="$with_fetch"
1561 for ol_val in auto yes no ; do
1562 if test "$withval" = "$ol_val" ; then
1566 if test "$ol_arg" = "invalid" ; then
1567 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1569 ol_with_fetch="$ol_arg"
1572 ol_with_fetch="auto"
1576 ol_with_kerberos=${ol_with_kerberos-auto}
1577 # OpenLDAP --with-threads
1578 # Check whether --with-threads or --without-threads was given.
1579 if test "${with_threads+set}" = set; then
1580 withval="$with_threads"
1583 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1584 if test "$withval" = "$ol_val" ; then
1588 if test "$ol_arg" = "invalid" ; then
1589 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1591 ol_with_threads="$ol_arg"
1594 ol_with_threads="auto"
1596 # end --with-threads
1598 # OpenLDAP --with-tls
1599 # Check whether --with-tls or --without-tls was given.
1600 if test "${with_tls+set}" = set; then
1604 for ol_val in auto ssleay openssl yes no ; do
1605 if test "$withval" = "$ol_val" ; then
1609 if test "$ol_arg" = "invalid" ; then
1610 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1612 ol_with_tls="$ol_arg"
1619 # OpenLDAP --with-yielding_select
1620 # Check whether --with-yielding_select or --without-yielding_select was given.
1621 if test "${with_yielding_select+set}" = set; then
1622 withval="$with_yielding_select"
1625 for ol_val in auto yes no manual ; do
1626 if test "$withval" = "$ol_val" ; then
1630 if test "$ol_arg" = "invalid" ; then
1631 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1633 ol_with_yielding_select="$ol_arg"
1636 ol_with_yielding_select="auto"
1638 # end --with-yielding_select
1640 # OpenLDAP --with-multiple_precision
1641 # Check whether --with-multiple_precision or --without-multiple_precision was given.
1642 if test "${with_multiple_precision+set}" = set; then
1643 withval="$with_multiple_precision"
1646 for ol_val in auto bignum gmp yes no ; do
1647 if test "$withval" = "$ol_val" ; then
1651 if test "$ol_arg" = "invalid" ; then
1652 { echo "configure: error: bad value $withval for --with-multiple_precision" 1>&2; exit 1; }
1654 ol_with_multiple_precision="$ol_arg"
1657 ol_with_multiple_precision="auto"
1659 # end --with-multiple_precision
1663 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1664 if test "${with_xxslapdoptions+set}" = set; then
1665 withval="$with_xxslapdoptions"
1669 # OpenLDAP --enable-slapd
1670 # Check whether --enable-slapd or --disable-slapd was given.
1671 if test "${enable_slapd+set}" = set; then
1672 enableval="$enable_slapd"
1675 for ol_val in auto yes no ; do
1676 if test "$enableval" = "$ol_val" ; then
1680 if test "$ol_arg" = "invalid" ; then
1681 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1683 ol_enable_slapd="$ol_arg"
1686 ol_enable_slapd="yes"
1688 # end --enable-slapd
1689 # OpenLDAP --enable-aci
1690 # Check whether --enable-aci or --disable-aci was given.
1691 if test "${enable_aci+set}" = set; then
1692 enableval="$enable_aci"
1695 for ol_val in auto yes no ; do
1696 if test "$enableval" = "$ol_val" ; then
1700 if test "$ol_arg" = "invalid" ; then
1701 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1703 ol_enable_aci="$ol_arg"
1709 # OpenLDAP --enable-cleartext
1710 # Check whether --enable-cleartext or --disable-cleartext was given.
1711 if test "${enable_cleartext+set}" = set; then
1712 enableval="$enable_cleartext"
1715 for ol_val in auto yes no ; do
1716 if test "$enableval" = "$ol_val" ; then
1720 if test "$ol_arg" = "invalid" ; then
1721 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1723 ol_enable_cleartext="$ol_arg"
1726 ol_enable_cleartext="yes"
1728 # end --enable-cleartext
1729 # OpenLDAP --enable-crypt
1730 # Check whether --enable-crypt or --disable-crypt was given.
1731 if test "${enable_crypt+set}" = set; then
1732 enableval="$enable_crypt"
1735 for ol_val in auto yes no ; do
1736 if test "$enableval" = "$ol_val" ; then
1740 if test "$ol_arg" = "invalid" ; then
1741 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1743 ol_enable_crypt="$ol_arg"
1746 ol_enable_crypt="no"
1748 # end --enable-crypt
1749 # OpenLDAP --enable-lmpasswd
1750 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1751 if test "${enable_lmpasswd+set}" = set; then
1752 enableval="$enable_lmpasswd"
1755 for ol_val in auto yes no ; do
1756 if test "$enableval" = "$ol_val" ; then
1760 if test "$ol_arg" = "invalid" ; then
1761 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1763 ol_enable_lmpasswd="$ol_arg"
1766 ol_enable_lmpasswd="no"
1768 # end --enable-lmpasswd
1769 # OpenLDAP --enable-spasswd
1770 # Check whether --enable-spasswd or --disable-spasswd was given.
1771 if test "${enable_spasswd+set}" = set; then
1772 enableval="$enable_spasswd"
1775 for ol_val in auto yes no ; do
1776 if test "$enableval" = "$ol_val" ; then
1780 if test "$ol_arg" = "invalid" ; then
1781 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1783 ol_enable_spasswd="$ol_arg"
1786 ol_enable_spasswd="no"
1788 # end --enable-spasswd
1789 # OpenLDAP --enable-modules
1790 # Check whether --enable-modules or --disable-modules was given.
1791 if test "${enable_modules+set}" = set; then
1792 enableval="$enable_modules"
1795 for ol_val in auto yes no ; do
1796 if test "$enableval" = "$ol_val" ; then
1800 if test "$ol_arg" = "invalid" ; then
1801 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1803 ol_enable_modules="$ol_arg"
1806 ol_enable_modules="no"
1808 # end --enable-modules
1809 ol_enable_multimaster=${ol_enable_multimaster-no}
1810 # OpenLDAP --enable-rewrite
1811 # Check whether --enable-rewrite or --disable-rewrite was given.
1812 if test "${enable_rewrite+set}" = set; then
1813 enableval="$enable_rewrite"
1816 for ol_val in auto yes no ; do
1817 if test "$enableval" = "$ol_val" ; then
1821 if test "$ol_arg" = "invalid" ; then
1822 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1824 ol_enable_rewrite="$ol_arg"
1827 ol_enable_rewrite="auto"
1829 # end --enable-rewrite
1830 # OpenLDAP --enable-rlookups
1831 # Check whether --enable-rlookups or --disable-rlookups was given.
1832 if test "${enable_rlookups+set}" = set; then
1833 enableval="$enable_rlookups"
1836 for ol_val in auto yes no ; do
1837 if test "$enableval" = "$ol_val" ; then
1841 if test "$ol_arg" = "invalid" ; then
1842 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1844 ol_enable_rlookups="$ol_arg"
1847 ol_enable_rlookups="no"
1849 # end --enable-rlookups
1850 # OpenLDAP --enable-slapi
1851 # Check whether --enable-slapi or --disable-slapi was given.
1852 if test "${enable_slapi+set}" = set; then
1853 enableval="$enable_slapi"
1856 for ol_val in auto yes no ; do
1857 if test "$enableval" = "$ol_val" ; then
1861 if test "$ol_arg" = "invalid" ; then
1862 { echo "configure: error: bad value $enableval for --enable-slapi" 1>&2; exit 1; }
1864 ol_enable_slapi="$ol_arg"
1867 ol_enable_slapi="no"
1869 # end --enable-slapi
1870 # OpenLDAP --enable-slp
1871 # Check whether --enable-slp or --disable-slp was given.
1872 if test "${enable_slp+set}" = set; then
1873 enableval="$enable_slp"
1876 for ol_val in auto yes no ; do
1877 if test "$enableval" = "$ol_val" ; then
1881 if test "$ol_arg" = "invalid" ; then
1882 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1884 ol_enable_slp="$ol_arg"
1890 # OpenLDAP --enable-wrappers
1891 # Check whether --enable-wrappers or --disable-wrappers was given.
1892 if test "${enable_wrappers+set}" = set; then
1893 enableval="$enable_wrappers"
1896 for ol_val in auto yes no ; do
1897 if test "$enableval" = "$ol_val" ; then
1901 if test "$ol_arg" = "invalid" ; then
1902 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1904 ol_enable_wrappers="$ol_arg"
1907 ol_enable_wrappers="no"
1909 # end --enable-wrappers
1911 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
1912 passwd perl relay shell sql"
1914 # Check whether --with-xxslapbackends or --without-xxslapbackends was given.
1915 if test "${with_xxslapbackends+set}" = set; then
1916 withval="$with_xxslapbackends"
1921 # OpenLDAP --enable-backends
1922 # Check whether --enable-backends or --disable-backends was given.
1923 if test "${enable_backends+set}" = set; then
1924 enableval="$enable_backends"
1927 for ol_val in no yes mod ; do
1928 if test "$enableval" = "$ol_val" ; then
1932 if test "$ol_arg" = "invalid" ; then
1933 { echo "configure: error: bad value $enableval for --enable-backends" 1>&2; exit 1; }
1935 ol_enable_backends="$ol_arg"
1938 ol_enable_backends="no"
1940 # end --enable-backends
1941 # OpenLDAP --enable-bdb
1942 # Check whether --enable-bdb or --disable-bdb was given.
1943 if test "${enable_bdb+set}" = set; then
1944 enableval="$enable_bdb"
1947 for ol_val in no yes mod ; do
1948 if test "$enableval" = "$ol_val" ; then
1952 if test "$ol_arg" = "invalid" ; then
1953 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1955 ol_enable_bdb="$ol_arg"
1961 # OpenLDAP --enable-dnssrv
1962 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1963 if test "${enable_dnssrv+set}" = set; then
1964 enableval="$enable_dnssrv"
1967 for ol_val in no yes mod ; do
1968 if test "$enableval" = "$ol_val" ; then
1972 if test "$ol_arg" = "invalid" ; then
1973 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1975 ol_enable_dnssrv="$ol_arg"
1978 ol_enable_dnssrv="no"
1980 # end --enable-dnssrv
1981 # OpenLDAP --enable-hdb
1982 # Check whether --enable-hdb or --disable-hdb was given.
1983 if test "${enable_hdb+set}" = set; then
1984 enableval="$enable_hdb"
1987 for ol_val in no yes mod ; do
1988 if test "$enableval" = "$ol_val" ; then
1992 if test "$ol_arg" = "invalid" ; then
1993 { echo "configure: error: bad value $enableval for --enable-hdb" 1>&2; exit 1; }
1995 ol_enable_hdb="$ol_arg"
2001 # OpenLDAP --enable-ldap
2002 # Check whether --enable-ldap or --disable-ldap was given.
2003 if test "${enable_ldap+set}" = set; then
2004 enableval="$enable_ldap"
2007 for ol_val in no yes mod ; do
2008 if test "$enableval" = "$ol_val" ; then
2012 if test "$ol_arg" = "invalid" ; then
2013 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2015 ol_enable_ldap="$ol_arg"
2021 # OpenLDAP --enable-ldbm
2022 # Check whether --enable-ldbm or --disable-ldbm was given.
2023 if test "${enable_ldbm+set}" = set; then
2024 enableval="$enable_ldbm"
2027 for ol_val in no yes mod ; do
2028 if test "$enableval" = "$ol_val" ; then
2032 if test "$ol_arg" = "invalid" ; then
2033 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2035 ol_enable_ldbm="$ol_arg"
2041 # OpenLDAP --with-ldbm_api
2042 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2043 if test "${with_ldbm_api+set}" = set; then
2044 withval="$with_ldbm_api"
2047 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2048 if test "$withval" = "$ol_val" ; then
2052 if test "$ol_arg" = "invalid" ; then
2053 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2055 ol_with_ldbm_api="$ol_arg"
2058 ol_with_ldbm_api="auto"
2060 # end --with-ldbm_api
2062 # OpenLDAP --with-ldbm_type
2063 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2064 if test "${with_ldbm_type+set}" = set; then
2065 withval="$with_ldbm_type"
2068 for ol_val in auto btree hash ; do
2069 if test "$withval" = "$ol_val" ; then
2073 if test "$ol_arg" = "invalid" ; then
2074 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2076 ol_with_ldbm_type="$ol_arg"
2079 ol_with_ldbm_type="auto"
2081 # end --with-ldbm_type
2083 # OpenLDAP --enable-meta
2084 # Check whether --enable-meta or --disable-meta was given.
2085 if test "${enable_meta+set}" = set; then
2086 enableval="$enable_meta"
2089 for ol_val in no yes mod ; do
2090 if test "$enableval" = "$ol_val" ; then
2094 if test "$ol_arg" = "invalid" ; then
2095 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2097 ol_enable_meta="$ol_arg"
2103 # OpenLDAP --enable-monitor
2104 # Check whether --enable-monitor or --disable-monitor was given.
2105 if test "${enable_monitor+set}" = set; then
2106 enableval="$enable_monitor"
2109 for ol_val in no yes mod ; do
2110 if test "$enableval" = "$ol_val" ; then
2114 if test "$ol_arg" = "invalid" ; then
2115 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2117 ol_enable_monitor="$ol_arg"
2120 ol_enable_monitor="yes"
2122 # end --enable-monitor
2123 # OpenLDAP --enable-null
2124 # Check whether --enable-null or --disable-null was given.
2125 if test "${enable_null+set}" = set; then
2126 enableval="$enable_null"
2129 for ol_val in no yes mod ; do
2130 if test "$enableval" = "$ol_val" ; then
2134 if test "$ol_arg" = "invalid" ; then
2135 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2137 ol_enable_null="$ol_arg"
2143 # OpenLDAP --enable-passwd
2144 # Check whether --enable-passwd or --disable-passwd was given.
2145 if test "${enable_passwd+set}" = set; then
2146 enableval="$enable_passwd"
2149 for ol_val in no yes mod ; do
2150 if test "$enableval" = "$ol_val" ; then
2154 if test "$ol_arg" = "invalid" ; then
2155 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2157 ol_enable_passwd="$ol_arg"
2160 ol_enable_passwd="no"
2162 # end --enable-passwd
2163 # OpenLDAP --enable-perl
2164 # Check whether --enable-perl or --disable-perl was given.
2165 if test "${enable_perl+set}" = set; then
2166 enableval="$enable_perl"
2169 for ol_val in no yes mod ; do
2170 if test "$enableval" = "$ol_val" ; then
2174 if test "$ol_arg" = "invalid" ; then
2175 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2177 ol_enable_perl="$ol_arg"
2183 # OpenLDAP --enable-relay
2184 # Check whether --enable-relay or --disable-relay was given.
2185 if test "${enable_relay+set}" = set; then
2186 enableval="$enable_relay"
2189 for ol_val in no yes mod ; do
2190 if test "$enableval" = "$ol_val" ; then
2194 if test "$ol_arg" = "invalid" ; then
2195 { echo "configure: error: bad value $enableval for --enable-relay" 1>&2; exit 1; }
2197 ol_enable_relay="$ol_arg"
2200 ol_enable_relay="yes"
2202 # end --enable-relay
2203 # OpenLDAP --enable-shell
2204 # Check whether --enable-shell or --disable-shell was given.
2205 if test "${enable_shell+set}" = set; then
2206 enableval="$enable_shell"
2209 for ol_val in no yes mod ; do
2210 if test "$enableval" = "$ol_val" ; then
2214 if test "$ol_arg" = "invalid" ; then
2215 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2217 ol_enable_shell="$ol_arg"
2220 ol_enable_shell="no"
2222 # end --enable-shell
2223 # OpenLDAP --enable-sql
2224 # Check whether --enable-sql or --disable-sql was given.
2225 if test "${enable_sql+set}" = set; then
2226 enableval="$enable_sql"
2229 for ol_val in no yes mod ; do
2230 if test "$enableval" = "$ol_val" ; then
2234 if test "$ol_arg" = "invalid" ; then
2235 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2237 ol_enable_sql="$ol_arg"
2244 Overlays="denyop dyngroup dynlist glue lastmod ppolicy proxycache \
2245 refint rwm syncprov translucent unique"
2247 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
2248 if test "${with_xxslapoverlays+set}" = set; then
2249 withval="$with_xxslapoverlays"
2254 # OpenLDAP --enable-overlays
2255 # Check whether --enable-overlays or --disable-overlays was given.
2256 if test "${enable_overlays+set}" = set; then
2257 enableval="$enable_overlays"
2260 for ol_val in no yes mod ; do
2261 if test "$enableval" = "$ol_val" ; then
2265 if test "$ol_arg" = "invalid" ; then
2266 { echo "configure: error: bad value $enableval for --enable-overlays" 1>&2; exit 1; }
2268 ol_enable_overlays="$ol_arg"
2271 ol_enable_overlays="no"
2273 # end --enable-overlays
2274 # OpenLDAP --enable-denyop
2275 # Check whether --enable-denyop or --disable-denyop was given.
2276 if test "${enable_denyop+set}" = set; then
2277 enableval="$enable_denyop"
2280 for ol_val in no yes mod ; do
2281 if test "$enableval" = "$ol_val" ; then
2285 if test "$ol_arg" = "invalid" ; then
2286 { echo "configure: error: bad value $enableval for --enable-denyop" 1>&2; exit 1; }
2288 ol_enable_denyop="$ol_arg"
2291 ol_enable_denyop="no"
2293 # end --enable-denyop
2295 # OpenLDAP --enable-dyngroup
2296 # Check whether --enable-dyngroup or --disable-dyngroup was given.
2297 if test "${enable_dyngroup+set}" = set; then
2298 enableval="$enable_dyngroup"
2301 for ol_val in no yes mod ; do
2302 if test "$enableval" = "$ol_val" ; then
2306 if test "$ol_arg" = "invalid" ; then
2307 { echo "configure: error: bad value $enableval for --enable-dyngroup" 1>&2; exit 1; }
2309 ol_enable_dyngroup="$ol_arg"
2312 ol_enable_dyngroup="no"
2314 # end --enable-dyngroup
2316 # OpenLDAP --enable-dynlist
2317 # Check whether --enable-dynlist or --disable-dynlist was given.
2318 if test "${enable_dynlist+set}" = set; then
2319 enableval="$enable_dynlist"
2322 for ol_val in no yes mod ; do
2323 if test "$enableval" = "$ol_val" ; then
2327 if test "$ol_arg" = "invalid" ; then
2328 { echo "configure: error: bad value $enableval for --enable-dynlist" 1>&2; exit 1; }
2330 ol_enable_dynlist="$ol_arg"
2333 ol_enable_dynlist="no"
2335 # end --enable-dynlist
2337 # OpenLDAP --enable-glue
2338 # Check whether --enable-glue or --disable-glue was given.
2339 if test "${enable_glue+set}" = set; then
2340 enableval="$enable_glue"
2343 for ol_val in no yes mod ; do
2344 if test "$enableval" = "$ol_val" ; then
2348 if test "$ol_arg" = "invalid" ; then
2349 { echo "configure: error: bad value $enableval for --enable-glue" 1>&2; exit 1; }
2351 ol_enable_glue="$ol_arg"
2354 ol_enable_glue="yes"
2358 # OpenLDAP --enable-lastmod
2359 # Check whether --enable-lastmod or --disable-lastmod was given.
2360 if test "${enable_lastmod+set}" = set; then
2361 enableval="$enable_lastmod"
2364 for ol_val in no yes mod ; do
2365 if test "$enableval" = "$ol_val" ; then
2369 if test "$ol_arg" = "invalid" ; then
2370 { echo "configure: error: bad value $enableval for --enable-lastmod" 1>&2; exit 1; }
2372 ol_enable_lastmod="$ol_arg"
2375 ol_enable_lastmod="no"
2377 # end --enable-lastmod
2379 # OpenLDAP --enable-ppolicy
2380 # Check whether --enable-ppolicy or --disable-ppolicy was given.
2381 if test "${enable_ppolicy+set}" = set; then
2382 enableval="$enable_ppolicy"
2385 for ol_val in no yes mod ; do
2386 if test "$enableval" = "$ol_val" ; then
2390 if test "$ol_arg" = "invalid" ; then
2391 { echo "configure: error: bad value $enableval for --enable-ppolicy" 1>&2; exit 1; }
2393 ol_enable_ppolicy="$ol_arg"
2396 ol_enable_ppolicy="no"
2398 # end --enable-ppolicy
2400 # OpenLDAP --enable-proxycache
2401 # Check whether --enable-proxycache or --disable-proxycache was given.
2402 if test "${enable_proxycache+set}" = set; then
2403 enableval="$enable_proxycache"
2406 for ol_val in no yes mod ; do
2407 if test "$enableval" = "$ol_val" ; then
2411 if test "$ol_arg" = "invalid" ; then
2412 { echo "configure: error: bad value $enableval for --enable-proxycache" 1>&2; exit 1; }
2414 ol_enable_proxycache="$ol_arg"
2417 ol_enable_proxycache="no"
2419 # end --enable-proxycache
2421 # OpenLDAP --enable-refint
2422 # Check whether --enable-refint or --disable-refint was given.
2423 if test "${enable_refint+set}" = set; then
2424 enableval="$enable_refint"
2427 for ol_val in no yes mod ; do
2428 if test "$enableval" = "$ol_val" ; then
2432 if test "$ol_arg" = "invalid" ; then
2433 { echo "configure: error: bad value $enableval for --enable-refint" 1>&2; exit 1; }
2435 ol_enable_refint="$ol_arg"
2438 ol_enable_refint="no"
2440 # end --enable-refint
2442 # OpenLDAP --enable-rwm
2443 # Check whether --enable-rwm or --disable-rwm was given.
2444 if test "${enable_rwm+set}" = set; then
2445 enableval="$enable_rwm"
2448 for ol_val in no yes mod ; do
2449 if test "$enableval" = "$ol_val" ; then
2453 if test "$ol_arg" = "invalid" ; then
2454 { echo "configure: error: bad value $enableval for --enable-rwm" 1>&2; exit 1; }
2456 ol_enable_rwm="$ol_arg"
2463 # OpenLDAP --enable-syncprov
2464 # Check whether --enable-syncprov or --disable-syncprov was given.
2465 if test "${enable_syncprov+set}" = set; then
2466 enableval="$enable_syncprov"
2469 for ol_val in no yes mod ; do
2470 if test "$enableval" = "$ol_val" ; then
2474 if test "$ol_arg" = "invalid" ; then
2475 { echo "configure: error: bad value $enableval for --enable-syncprov" 1>&2; exit 1; }
2477 ol_enable_syncprov="$ol_arg"
2480 ol_enable_syncprov="yes"
2482 # end --enable-syncprov
2484 # OpenLDAP --enable-translucent
2485 # Check whether --enable-translucent or --disable-translucent was given.
2486 if test "${enable_translucent+set}" = set; then
2487 enableval="$enable_translucent"
2490 for ol_val in no yes mod ; do
2491 if test "$enableval" = "$ol_val" ; then
2495 if test "$ol_arg" = "invalid" ; then
2496 { echo "configure: error: bad value $enableval for --enable-translucent" 1>&2; exit 1; }
2498 ol_enable_translucent="$ol_arg"
2501 ol_enable_translucent="no"
2503 # end --enable-translucent
2505 # OpenLDAP --enable-unique
2506 # Check whether --enable-unique or --disable-unique was given.
2507 if test "${enable_unique+set}" = set; then
2508 enableval="$enable_unique"
2511 for ol_val in no yes mod ; do
2512 if test "$enableval" = "$ol_val" ; then
2516 if test "$ol_arg" = "invalid" ; then
2517 { echo "configure: error: bad value $enableval for --enable-unique" 1>&2; exit 1; }
2519 ol_enable_unique="$ol_arg"
2522 ol_enable_unique="no"
2524 # end --enable-unique
2528 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2529 if test "${with_xxslurpdoptions+set}" = set; then
2530 withval="$with_xxslurpdoptions"
2534 # OpenLDAP --enable-slurpd
2535 # Check whether --enable-slurpd or --disable-slurpd was given.
2536 if test "${enable_slurpd+set}" = set; then
2537 enableval="$enable_slurpd"
2540 for ol_val in auto yes no ; do
2541 if test "$enableval" = "$ol_val" ; then
2545 if test "$ol_arg" = "invalid" ; then
2546 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2548 ol_enable_slurpd="$ol_arg"
2551 ol_enable_slurpd="auto"
2553 # end --enable-slurpd
2555 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2556 if test "${with_xxliboptions+set}" = set; then
2557 withval="$with_xxliboptions"
2561 # Check whether --enable-static or --disable-static was given.
2562 if test "${enable_static+set}" = set; then
2563 enableval="$enable_static"
2564 p=${PACKAGE-default}
2566 yes) enable_static=yes ;;
2567 no) enable_static=no ;;
2570 # Look at the argument we got. We use all the common list separators.
2571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2572 for pkg in $enableval; do
2573 if test "X$pkg" = "X$p"; then
2584 # Check whether --enable-shared or --disable-shared was given.
2585 if test "${enable_shared+set}" = set; then
2586 enableval="$enable_shared"
2587 p=${PACKAGE-default}
2589 yes) enable_shared=yes ;;
2590 no) enable_shared=no ;;
2593 # Look at the argument we got. We use all the common list separators.
2594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2595 for pkg in $enableval; do
2596 if test "X$pkg" = "X$p"; then
2609 # Activate any backends that were not explicitly enabled.
2610 # Note that back_bdb defaults to "yes" so this loop won't touch it.
2611 if test $ol_enable_backends != no ; then
2612 for i in $Backends; do
2613 eval "ol_tmp=\$ol_enable_$i"
2614 if test $ol_tmp = no ; then
2615 eval "ol_enable_$i=$ol_enable_backends"
2619 # Activate the overlays
2620 if test $ol_enable_overlays != no ; then
2621 for i in $Overlays; do
2622 eval "ol_tmp=\$ol_enable_$i"
2623 if test $ol_tmp = no ; then
2624 eval "ol_enable_$i=$ol_enable_overlays"
2630 if test $ol_enable_slapd = no ; then
2631 if test $ol_enable_slapi = yes ; then
2632 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2634 if test $ol_enable_backends != no ; then
2635 echo "configure: warning: slapd disabled, ignoring --enable-backends argument" 1>&2
2637 for i in $Backends; do
2638 eval "ol_tmp=\$ol_enable_$i"
2639 if test $ol_tmp != no ; then
2640 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2641 eval "ol_enable_$i=no"
2644 if test $ol_enable_modules = yes ; then
2645 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2647 if test $ol_enable_multimaster = yes ; then
2648 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2650 if test $ol_enable_wrappers = yes ; then
2651 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2653 if test $ol_enable_rlookups = yes ; then
2654 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2656 if test $ol_enable_aci = yes ; then
2657 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2659 if test $ol_with_ldbm_api != auto ; then
2660 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2662 if test $ol_with_ldbm_type != auto ; then
2663 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2665 if test $ol_enable_slurpd = yes ; then
2666 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2668 if test $ol_enable_rewrite = yes ; then
2669 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2671 if test $ol_enable_overlays != no ; then
2672 echo "configure: warning: slapd disabled, ignoring --enable-overlays argument" 1>&2
2674 for i in $Overlays; do
2675 eval "ol_tmp=\$ol_enable_$i"
2676 if test $ol_tmp != no ; then
2677 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2678 eval "ol_enable_$i=no"
2682 # force settings to no
2685 ol_enable_backends=no
2686 ol_enable_overlays=no
2687 ol_enable_modules=no
2688 ol_enable_multimaster=no
2689 ol_enable_rlookups=no
2691 ol_enable_wrappers=no
2694 ol_with_ldbm_type=no
2698 ol_enable_rewrite=no
2700 elif test $ol_enable_ldbm = no ; then
2702 if test $ol_with_ldbm_api != auto ; then
2703 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2706 if test $ol_with_ldbm_type != auto ; then
2707 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2710 if test $ol_enable_modules != yes -a \
2711 $ol_enable_bdb = no -a \
2712 $ol_enable_dnssrv = no -a \
2713 $ol_enable_hdb = no -a \
2714 $ol_enable_ldap = no -a \
2715 $ol_enable_meta = no -a \
2716 $ol_enable_monitor = no -a \
2717 $ol_enable_null = no -a \
2718 $ol_enable_passwd = no -a \
2719 $ol_enable_perl = no -a \
2720 $ol_enable_relay = no -a \
2721 $ol_enable_shell = no -a \
2722 $ol_enable_sql = no ; then
2724 if test $ol_enable_slapd = yes ; then
2725 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2727 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2733 ol_with_ldbm_type=no
2735 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
2736 ol_with_ldbm_api=berkeley
2740 if test $ol_with_ldbm_api = gdbm -a \
2741 $ol_with_ldbm_type = btree ; then
2742 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2744 if test $ol_with_ldbm_api = mdbm -a \
2745 $ol_with_ldbm_type = btree ; then
2746 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2748 if test $ol_with_ldbm_api = ndbm -a \
2749 $ol_with_ldbm_type = btree ; then
2750 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2753 if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
2754 if test $ol_with_ldbm_api = auto ; then
2755 ol_with_ldbm_api=berkeley
2756 elif test $ol_with_ldbm_api != berkeley ; then
2757 { echo "configure: error: LDBM API not compatible with BDB/HDB" 1>&2; exit 1; }
2762 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
2763 { echo "configure: error: --enable-meta requires --enable-ldap" 1>&2; exit 1; }
2766 if test $ol_enable_slurpd = yes ; then
2767 if test $ol_with_threads = no ; then
2768 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2772 if test $ol_enable_lmpasswd = yes ; then
2773 if test $ol_with_tls = no ; then
2774 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2778 if test $ol_enable_kbind = yes ; then
2779 if test $ol_with_kerberos = no ; then
2780 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2781 elif test $ol_with_kerberos = auto ; then
2782 ol_with_kerberos=yes
2785 elif test $ol_enable_kbind = no ; then
2786 if test $ol_with_kerberos = auto ; then
2788 elif test $ol_with_kerberos != no ; then
2789 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2794 if test $ol_enable_spasswd = yes ; then
2795 if test $ol_with_cyrus_sasl = no ; then
2796 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2798 ol_with_cyrus_sasl=yes
2801 echo "$ac_t""done" 1>&6
2844 BUILD_TRANSLUCENT=no
2847 SLAPD_STATIC_OVERLAYS=
2848 SLAPD_DYNAMIC_OVERLAYS=
2850 SLAPD_MODULES_LDFLAGS=
2851 SLAPD_MODULES_CPPFLAGS=
2853 SLAPD_STATIC_BACKENDS=back-ldif
2854 SLAPD_DYNAMIC_BACKENDS=
2878 cat >> confdefs.h <<\EOF
2879 #define HAVE_MKVERSION 1
2887 *-*-aix*) if test -z "$CC" ; then
2888 case "$ol_with_threads" in
2889 auto | yes | posix) ol_aix_threads=yes ;;
2895 if test $ol_aix_threads = yes ; then
2896 if test -z "${CC}" ; then
2897 for ac_prog in cc_r xlc_r cc
2899 # Extract the first word of "$ac_prog", so it can be a program name with args.
2900 set dummy $ac_prog; ac_word=$2
2901 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2902 echo "configure:2903: checking for $ac_word" >&5
2903 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2904 echo $ac_n "(cached) $ac_c" 1>&6
2906 if test -n "$CC"; then
2907 ac_cv_prog_CC="$CC" # Let the user override the test.
2909 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2911 for ac_dir in $ac_dummy; do
2912 test -z "$ac_dir" && ac_dir=.
2913 if test -f $ac_dir/$ac_word; then
2914 ac_cv_prog_CC="$ac_prog"
2922 if test -n "$CC"; then
2923 echo "$ac_t""$CC" 1>&6
2925 echo "$ac_t""no" 1>&6
2928 test -n "$CC" && break
2932 if test "$CC" = cc ; then
2933 if test $ol_with_threads != auto ; then
2934 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2936 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2942 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2943 ol_with_threads=posix
2944 ol_cv_pthread_create=yes
2948 if test -z "${CC}"; then
2949 for ac_prog in cc gcc
2951 # Extract the first word of "$ac_prog", so it can be a program name with args.
2952 set dummy $ac_prog; ac_word=$2
2953 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2954 echo "configure:2955: checking for $ac_word" >&5
2955 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2956 echo $ac_n "(cached) $ac_c" 1>&6
2958 if test -n "$CC"; then
2959 ac_cv_prog_CC="$CC" # Let the user override the test.
2961 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2963 for ac_dir in $ac_dummy; do
2964 test -z "$ac_dir" && ac_dir=.
2965 if test -f $ac_dir/$ac_word; then
2966 ac_cv_prog_CC="$ac_prog"
2974 if test -n "$CC"; then
2975 echo "$ac_t""$CC" 1>&6
2977 echo "$ac_t""no" 1>&6
2980 test -n "$CC" && break
2982 test -n "$CC" || CC="missing"
2985 if test "${CC}" = "missing" ; then
2986 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
2990 if test -z "${AR}"; then
2991 for ac_prog in ar gar
2993 # Extract the first word of "$ac_prog", so it can be a program name with args.
2994 set dummy $ac_prog; ac_word=$2
2995 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2996 echo "configure:2997: checking for $ac_word" >&5
2997 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
2998 echo $ac_n "(cached) $ac_c" 1>&6
3000 if test -n "$AR"; then
3001 ac_cv_prog_AR="$AR" # Let the user override the test.
3003 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3005 for ac_dir in $ac_dummy; do
3006 test -z "$ac_dir" && ac_dir=.
3007 if test -f $ac_dir/$ac_word; then
3008 ac_cv_prog_AR="$ac_prog"
3016 if test -n "$AR"; then
3017 echo "$ac_t""$AR" 1>&6
3019 echo "$ac_t""no" 1>&6
3022 test -n "$AR" && break
3024 test -n "$AR" || AR="missing"
3027 if test "${AR}" = "missing" ; then
3028 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
3034 # Find the correct PATH separator. Usually this is `:', but
3035 # DJGPP uses `;' like DOS.
3036 if test "X${PATH_SEPARATOR+set}" != Xset; then
3037 UNAME=${UNAME-`uname 2>/dev/null`}
3039 *-DOS) lt_cv_sys_path_separator=';' ;;
3040 *) lt_cv_sys_path_separator=':' ;;
3042 PATH_SEPARATOR=$lt_cv_sys_path_separator
3045 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
3046 echo "configure:3047: checking for Cygwin environment" >&5
3047 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
3048 echo $ac_n "(cached) $ac_c" 1>&6
3050 cat > conftest.$ac_ext <<EOF
3051 #line 3052 "configure"
3052 #include "confdefs.h"
3057 #define __CYGWIN__ __CYGWIN32__
3062 if { (eval echo configure:3063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3066 echo "configure: failed program was:" >&5
3067 cat conftest.$ac_ext >&5
3074 echo "$ac_t""$ac_cv_cygwin" 1>&6
3076 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3077 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3078 echo "configure:3079: checking for mingw32 environment" >&5
3079 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3080 echo $ac_n "(cached) $ac_c" 1>&6
3082 cat > conftest.$ac_ext <<EOF
3083 #line 3084 "configure"
3084 #include "confdefs.h"
3090 if { (eval echo configure:3091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3094 echo "configure: failed program was:" >&5
3095 cat conftest.$ac_ext >&5
3102 echo "$ac_t""$ac_cv_mingw32" 1>&6
3104 test "$ac_cv_mingw32" = yes && MINGW32=yes
3105 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3106 echo "configure:3107: checking for EMX OS/2 environment" >&5
3107 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3108 echo $ac_n "(cached) $ac_c" 1>&6
3110 cat > conftest.$ac_ext <<EOF
3111 #line 3112 "configure"
3112 #include "confdefs.h"
3118 if { (eval echo configure:3119: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3122 echo "configure: failed program was:" >&5
3123 cat conftest.$ac_ext >&5
3130 echo "$ac_t""$ac_cv_emxos2" 1>&6
3132 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3133 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3134 echo "configure:3135: checking how to run the C preprocessor" >&5
3135 # On Suns, sometimes $CPP names a directory.
3136 if test -n "$CPP" && test -d "$CPP"; then
3139 if test -z "$CPP"; then
3140 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3141 echo $ac_n "(cached) $ac_c" 1>&6
3143 # This must be in double quotes, not single quotes, because CPP may get
3144 # substituted into the Makefile and "${CC-cc}" will confuse make.
3146 # On the NeXT, cc -E runs the code through the compiler's parser,
3147 # not just through cpp.
3148 cat > conftest.$ac_ext <<EOF
3149 #line 3150 "configure"
3150 #include "confdefs.h"
3154 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3155 { (eval echo configure:3156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3156 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3157 if test -z "$ac_err"; then
3161 echo "configure: failed program was:" >&5
3162 cat conftest.$ac_ext >&5
3164 CPP="${CC-cc} -E -traditional-cpp"
3165 cat > conftest.$ac_ext <<EOF
3166 #line 3167 "configure"
3167 #include "confdefs.h"
3171 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3172 { (eval echo configure:3173: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3173 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3174 if test -z "$ac_err"; then
3178 echo "configure: failed program was:" >&5
3179 cat conftest.$ac_ext >&5
3181 CPP="${CC-cc} -nologo -E"
3182 cat > conftest.$ac_ext <<EOF
3183 #line 3184 "configure"
3184 #include "confdefs.h"
3188 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3189 { (eval echo configure:3190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3190 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3191 if test -z "$ac_err"; then
3195 echo "configure: failed program was:" >&5
3196 cat conftest.$ac_ext >&5
3205 ac_cv_prog_CPP="$CPP"
3207 CPP="$ac_cv_prog_CPP"
3209 ac_cv_prog_CPP="$CPP"
3211 echo "$ac_t""$CPP" 1>&6
3213 # Check whether --enable-fast-install or --disable-fast-install was given.
3214 if test "${enable_fast_install+set}" = set; then
3215 enableval="$enable_fast_install"
3216 p=${PACKAGE-default}
3218 yes) enable_fast_install=yes ;;
3219 no) enable_fast_install=no ;;
3221 enable_fast_install=no
3222 # Look at the argument we got. We use all the common list separators.
3223 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3224 for pkg in $enableval; do
3225 if test "X$pkg" = "X$p"; then
3226 enable_fast_install=yes
3233 enable_fast_install=yes
3236 # Extract the first word of "gcc", so it can be a program name with args.
3237 set dummy gcc; ac_word=$2
3238 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3239 echo "configure:3240: checking for $ac_word" >&5
3240 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3241 echo $ac_n "(cached) $ac_c" 1>&6
3243 if test -n "$CC"; then
3244 ac_cv_prog_CC="$CC" # Let the user override the test.
3246 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3248 for ac_dir in $ac_dummy; do
3249 test -z "$ac_dir" && ac_dir=.
3250 if test -f $ac_dir/$ac_word; then
3259 if test -n "$CC"; then
3260 echo "$ac_t""$CC" 1>&6
3262 echo "$ac_t""no" 1>&6
3265 if test -z "$CC"; then
3266 # Extract the first word of "cc", so it can be a program name with args.
3267 set dummy cc; ac_word=$2
3268 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3269 echo "configure:3270: checking for $ac_word" >&5
3270 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3271 echo $ac_n "(cached) $ac_c" 1>&6
3273 if test -n "$CC"; then
3274 ac_cv_prog_CC="$CC" # Let the user override the test.
3276 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3279 for ac_dir in $ac_dummy; do
3280 test -z "$ac_dir" && ac_dir=.
3281 if test -f $ac_dir/$ac_word; then
3282 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3283 ac_prog_rejected=yes
3291 if test $ac_prog_rejected = yes; then
3292 # We found a bogon in the path, so make sure we never use it.
3293 set dummy $ac_cv_prog_CC
3295 if test $# -gt 0; then
3296 # We chose a different compiler from the bogus one.
3297 # However, it has the same basename, so the bogon will be chosen
3298 # first if we set CC to just the basename; use the full file name.
3300 set dummy "$ac_dir/$ac_word" "$@"
3308 if test -n "$CC"; then
3309 echo "$ac_t""$CC" 1>&6
3311 echo "$ac_t""no" 1>&6
3314 if test -z "$CC"; then
3315 case "`uname -s`" in
3316 *win32* | *WIN32* | *CYGWIN*)
3317 # Extract the first word of "cl", so it can be a program name with args.
3318 set dummy cl; ac_word=$2
3319 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3320 echo "configure:3321: checking for $ac_word" >&5
3321 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3322 echo $ac_n "(cached) $ac_c" 1>&6
3324 if test -n "$CC"; then
3325 ac_cv_prog_CC="$CC" # Let the user override the test.
3327 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3329 for ac_dir in $ac_dummy; do
3330 test -z "$ac_dir" && ac_dir=.
3331 if test -f $ac_dir/$ac_word; then
3340 if test -n "$CC"; then
3341 echo "$ac_t""$CC" 1>&6
3343 echo "$ac_t""no" 1>&6
3348 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3351 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3352 echo "configure:3353: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3355 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3356 ac_cpp='$CPP $CPPFLAGS'
3357 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3358 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3359 cross_compiling=$ac_cv_prog_cc_cross
3361 cat > conftest.$ac_ext << EOF
3363 #line 3364 "configure"
3364 #include "confdefs.h"
3368 if { (eval echo configure:3369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3369 ac_cv_prog_cc_works=yes
3370 # If we can't run a trivial program, we are probably using a cross compiler.
3371 if (./conftest; exit) 2>/dev/null; then
3372 ac_cv_prog_cc_cross=no
3374 ac_cv_prog_cc_cross=yes
3377 echo "configure: failed program was:" >&5
3378 cat conftest.$ac_ext >&5
3379 ac_cv_prog_cc_works=no
3383 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3384 ac_cpp='$CPP $CPPFLAGS'
3385 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3386 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3387 cross_compiling=$ac_cv_prog_cc_cross
3389 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3390 if test $ac_cv_prog_cc_works = no; then
3391 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3393 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3394 echo "configure:3395: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3395 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3396 cross_compiling=$ac_cv_prog_cc_cross
3398 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3399 echo "configure:3400: checking whether we are using GNU C" >&5
3400 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3401 echo $ac_n "(cached) $ac_c" 1>&6
3403 cat > conftest.c <<EOF
3408 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3415 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3417 if test $ac_cv_prog_gcc = yes; then
3423 ac_test_CFLAGS="${CFLAGS+set}"
3424 ac_save_CFLAGS="$CFLAGS"
3426 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3427 echo "configure:3428: checking whether ${CC-cc} accepts -g" >&5
3428 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3429 echo $ac_n "(cached) $ac_c" 1>&6
3431 echo 'void f(){}' > conftest.c
3432 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3441 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3442 if test "$ac_test_CFLAGS" = set; then
3443 CFLAGS="$ac_save_CFLAGS"
3444 elif test $ac_cv_prog_cc_g = yes; then
3445 if test "$GCC" = yes; then
3451 if test "$GCC" = yes; then
3458 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3459 if test "${with_gnu_ld+set}" = set; then
3460 withval="$with_gnu_ld"
3461 test "$withval" = no || with_gnu_ld=yes
3467 if test "$GCC" = yes; then
3468 # Check if gcc -print-prog-name=ld gives a path.
3469 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3470 echo "configure:3471: checking for ld used by GCC" >&5
3473 # gcc leaves a trailing carriage return which upsets mingw
3474 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3476 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3479 # Accept absolute paths.
3480 [\\/]* | [A-Za-z]:[\\/]*)
3481 re_direlt='/[^/][^/]*/\.\./'
3482 # Canonicalize the path of ld
3483 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3484 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3485 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3487 test -z "$LD" && LD="$ac_prog"
3490 # If it fails, then pretend we aren't using GCC.
3494 # If it is relative, then search for the first ld in PATH.
3498 elif test "$with_gnu_ld" = yes; then
3499 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3500 echo "configure:3501: checking for GNU ld" >&5
3502 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3503 echo "configure:3504: checking for non-GNU ld" >&5
3505 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3506 echo $ac_n "(cached) $ac_c" 1>&6
3508 if test -z "$LD"; then
3509 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3510 for ac_dir in $PATH; do
3511 test -z "$ac_dir" && ac_dir=.
3512 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3513 lt_cv_path_LD="$ac_dir/$ac_prog"
3514 # Check to see if the program is GNU ld. I'd rather use --version,
3515 # but apparently some GNU ld's only accept -v.
3516 # Break only if it was the GNU/non-GNU ld that we prefer.
3517 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3518 test "$with_gnu_ld" != no && break
3520 test "$with_gnu_ld" != yes && break
3526 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3531 if test -n "$LD"; then
3532 echo "$ac_t""$LD" 1>&6
3534 echo "$ac_t""no" 1>&6
3536 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3537 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3538 echo "configure:3539: checking if the linker ($LD) is GNU ld" >&5
3539 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3540 echo $ac_n "(cached) $ac_c" 1>&6
3542 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3543 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3544 lt_cv_prog_gnu_ld=yes
3546 lt_cv_prog_gnu_ld=no
3550 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3551 with_gnu_ld=$lt_cv_prog_gnu_ld
3554 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3555 echo "configure:3556: checking for $LD option to reload object files" >&5
3556 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3557 echo $ac_n "(cached) $ac_c" 1>&6
3559 lt_cv_ld_reload_flag='-r'
3562 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3563 reload_flag=$lt_cv_ld_reload_flag
3564 test -n "$reload_flag" && reload_flag=" $reload_flag"
3566 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3567 echo "configure:3568: checking for BSD-compatible nm" >&5
3568 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3569 echo $ac_n "(cached) $ac_c" 1>&6
3571 if test -n "$NM"; then
3572 # Let the user override the test.
3575 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3576 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3577 test -z "$ac_dir" && ac_dir=.
3578 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3579 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3580 # Check to see if the nm accepts a BSD-compat flag.
3581 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3582 # nm: unknown option "B" ignored
3583 # Tru64's nm complains that /dev/null is an invalid object file
3584 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3585 lt_cv_path_NM="$tmp_nm -B"
3587 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3588 lt_cv_path_NM="$tmp_nm -p"
3591 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3592 continue # so that we can try to find one that supports BSD flags
3597 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3602 echo "$ac_t""$NM" 1>&6
3604 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3605 echo "configure:3606: checking for a sed that does not truncate output" >&5
3606 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3607 echo $ac_n "(cached) $ac_c" 1>&6
3609 # Loop through the user's path and test for sed and gsed.
3610 # Then use that list of sed's as ones to test for truncation.
3611 as_executable_p="test -f"
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 test -z "$as_dir" && as_dir=.
3617 for ac_prog in sed gsed; do
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3620 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3626 # Create a temporary directory, and hook for its removal unless debugging.
3629 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3630 trap '{ (exit 1); exit 1; }' 1 2 13 15
3633 # Create a (secure) tmp directory for tmp files.
3636 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3637 test -n "$tmp" && test -d "$tmp"
3640 tmp=$TMPDIR/sed$$-$RANDOM
3641 (umask 077 && mkdir $tmp)
3644 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3645 { (exit 1); exit 1; }
3649 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3650 # along with /bin/sed that truncates output.
3651 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3652 test ! -f ${_sed} && break
3653 cat /dev/null > "$tmp/sed.in"
3655 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3656 # Check for GNU sed and select it if it is found.
3657 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3658 lt_cv_path_SED=${_sed}
3662 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3663 mv "$tmp/sed.tmp" "$tmp/sed.in"
3664 cp "$tmp/sed.in" "$tmp/sed.nl"
3665 echo >>"$tmp/sed.nl"
3666 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3667 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3668 # 40000 chars as input seems more than enough
3669 test $_count -gt 10 && break
3670 _count=`expr $_count + 1`
3671 if test $_count -gt $_max; then
3673 lt_cv_path_SED=$_sed
3681 if test "X$SED" != "X"; then
3686 echo "$ac_t""$SED" 1>&6
3688 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3689 echo "configure:3690: checking whether ln -s works" >&5
3690 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3694 if ln -s X conftestdata 2>/dev/null
3697 ac_cv_prog_LN_S="ln -s"
3702 LN_S="$ac_cv_prog_LN_S"
3703 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3704 echo "$ac_t""yes" 1>&6
3706 echo "$ac_t""no" 1>&6
3709 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3710 echo "configure:3711: checking how to recognise dependent libraries" >&5
3711 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3712 echo $ac_n "(cached) $ac_c" 1>&6
3714 lt_cv_file_magic_cmd='$MAGIC_CMD'
3715 lt_cv_file_magic_test_file=
3716 lt_cv_deplibs_check_method='unknown'
3717 # Need to set the preceding variable on all platforms that support
3718 # interlibrary dependencies.
3719 # 'none' -- dependencies not supported.
3720 # `unknown' -- same as none, but documents that we really don't know.
3721 # 'pass_all' -- all dependencies passed with no checks.
3722 # 'test_compile' -- check by making test program.
3723 # 'file_magic [[regex]]' -- check by looking for files in library path
3724 # which responds to the $file_magic_cmd with a given egrep regex.
3725 # If you have `file' or equivalent on your system and you're not sure
3726 # whether `pass_all' will *always* work, you probably want this one.
3730 lt_cv_deplibs_check_method=pass_all
3734 lt_cv_deplibs_check_method=pass_all
3738 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3739 lt_cv_file_magic_cmd='/usr/bin/file -L'
3740 lt_cv_file_magic_test_file=/shlib/libc.so
3743 cygwin* | mingw* | pw32*)
3744 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3745 lt_cv_file_magic_cmd='$OBJDUMP -f'
3748 darwin* | rhapsody*)
3749 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3750 lt_cv_file_magic_cmd='/usr/bin/file -L'
3752 rhapsody* | darwin1.[012])
3753 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3756 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3762 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3765 # Not sure whether the presence of OpenBSD here was a mistake.
3766 # Let's accept both of them until this is cleared up.
3767 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3768 lt_cv_file_magic_cmd=/usr/bin/file
3769 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3773 lt_cv_deplibs_check_method=pass_all
3778 lt_cv_deplibs_check_method=pass_all
3782 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3783 lt_cv_file_magic_cmd=/usr/bin/file
3784 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3787 irix5* | irix6* | nonstopux*)
3789 irix5* | nonstopux*)
3790 # this will be overridden with pass_all, but let us keep it just in case
3791 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3795 *-32|*"-32 ") libmagic=32-bit;;
3796 *-n32|*"-n32 ") libmagic=N32;;
3797 *-64|*"-64 ") libmagic=64-bit;;
3798 *) libmagic=never-match;;
3800 # this will be overridden with pass_all, but let us keep it just in case
3801 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3804 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3805 lt_cv_deplibs_check_method=pass_all
3808 # This must be Linux ELF.
3811 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3812 lt_cv_deplibs_check_method=pass_all ;;
3814 # glibc up to 2.1.1 does not perform some relocations on ARM
3815 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3817 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3821 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3822 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3824 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3829 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3830 lt_cv_file_magic_cmd=/usr/bin/file
3831 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3835 lt_cv_file_magic_cmd=/usr/bin/file
3836 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3837 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3838 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3840 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3845 lt_cv_deplibs_check_method=pass_all
3848 osf3* | osf4* | osf5*)
3849 # this will be overridden with pass_all, but let us keep it just in case
3850 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3851 lt_cv_file_magic_test_file=/shlib/libc.so
3852 lt_cv_deplibs_check_method=pass_all
3856 lt_cv_deplibs_check_method=pass_all
3860 lt_cv_deplibs_check_method=pass_all
3861 lt_cv_file_magic_test_file=/lib/libc.so
3864 sysv5uw[78]* | sysv4*uw2*)
3865 lt_cv_deplibs_check_method=pass_all
3868 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3869 case $host_vendor in
3871 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]'
3872 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3875 lt_cv_deplibs_check_method=pass_all
3878 lt_cv_file_magic_cmd='/bin/file'
3879 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3882 lt_cv_file_magic_cmd='/bin/file'
3883 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3884 lt_cv_file_magic_test_file=/lib/libc.so
3887 lt_cv_deplibs_check_method=pass_all
3895 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3896 file_magic_cmd=$lt_cv_file_magic_cmd
3897 deplibs_check_method=$lt_cv_deplibs_check_method
3899 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3900 echo "configure:3901: checking for object suffix" >&5
3901 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3902 echo $ac_n "(cached) $ac_c" 1>&6
3905 echo 'int i = 1;' > conftest.$ac_ext
3906 if { (eval echo configure:3907: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3907 for ac_file in conftest.*; do
3910 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3914 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3919 echo "$ac_t""$ac_cv_objext" 1>&6
3920 OBJEXT=$ac_cv_objext
3921 ac_objext=$ac_cv_objext
3926 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3927 echo "configure:3928: checking for executable suffix" >&5
3928 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3929 echo $ac_n "(cached) $ac_c" 1>&6
3931 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3935 echo 'int main () { return 0; }' > conftest.$ac_ext
3937 if { (eval echo configure:3938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3938 for file in conftest.*; do
3940 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3941 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3945 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3948 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3953 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3954 echo "$ac_t""${ac_cv_exeext}" 1>&6
3957 if test $host != $build; then
3958 ac_tool_prefix=${host_alias}-
3966 # Check for command to grab the raw symbol name followed by C symbol from nm.
3967 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3968 echo "configure:3969: checking command to parse $NM output" >&5
3969 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
3970 echo $ac_n "(cached) $ac_c" 1>&6
3973 # These are sane defaults that work on at least a few old systems.
3974 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3976 # Character class describing NM global symbol codes.
3977 symcode='[BCDEGRST]'
3979 # Regexp to match symbols that can be accessed directly from C.
3980 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3982 # Transform the above into a raw symbol and a C symbol.
3983 symxfrm='\1 \2\3 \3'
3985 # Transform an extracted symbol line into a proper C declaration
3986 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3988 # Transform an extracted symbol line into symbol name and symbol address
3989 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'"
3991 # Define system-specific variables.
3996 cygwin* | mingw* | pw32*)
3997 symcode='[ABCDGISTW]'
3999 hpux*) # Its linker distinguishes data from code symbols
4000 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4001 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'"
4004 symcode='[BCDEGRST]'
4007 symcode='[BCDEGQRST]'
4017 # Handle CRLF in mingw tool chain
4021 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4025 # If we're using GNU nm, then use its standard symbol codes.
4026 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4027 symcode='[ABCDGISTW]'
4030 # Try without a prefix undercore, then with it.
4031 for ac_symprfx in "" "_"; do
4033 # Write the raw and C identifiers.
4034 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4036 # Check to see that the pipe works correctly.
4039 cat > conftest.$ac_ext <<EOF
4044 void nm_test_func(){}
4048 int main(){nm_test_var='a';nm_test_func();return(0);}
4051 if { (eval echo configure:4052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4052 # Now try to grab the symbols.
4054 if { (eval echo configure:4055: \"$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
4055 # Try sorting and uniquifying the output.
4056 if sort "$nlist" | uniq > "$nlist"T; then
4057 mv -f "$nlist"T "$nlist"
4062 # Make sure that we snagged all the symbols we need.
4063 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4064 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4065 cat <<EOF > conftest.$ac_ext
4071 # Now generate the symbol file.
4072 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4074 cat <<EOF >> conftest.$ac_ext
4075 #if defined (__STDC__) && __STDC__
4076 # define lt_ptr void *
4078 # define lt_ptr char *
4082 /* The mapping between symbol names and symbols. */
4087 lt_preloaded_symbols[] =
4090 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4091 cat <<\EOF >> conftest.$ac_ext
4099 # Now try linking the two files.
4100 mv conftest.$ac_objext conftstm.$ac_objext
4102 save_CFLAGS="$CFLAGS"
4103 LIBS="conftstm.$ac_objext"
4104 CFLAGS="$CFLAGS$no_builtin_flag"
4105 if { (eval echo configure:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4109 CFLAGS="$save_CFLAGS"
4111 echo "cannot find nm_test_func in $nlist" >&5
4114 echo "cannot find nm_test_var in $nlist" >&5
4117 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4120 echo "$progname: failed program was:" >&5
4121 cat conftest.$ac_ext >&5
4123 rm -f conftest* conftst*
4125 # Do not use the global_symbol_pipe unless it works.
4126 if test "$pipe_works" = yes; then
4129 lt_cv_sys_global_symbol_pipe=
4135 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4136 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4137 global_symbol_to_cdecl=
4138 global_symbol_to_c_name_address=
4140 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4141 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4143 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4145 echo "$ac_t""failed" 1>&6
4147 echo "$ac_t""ok" 1>&6
4150 for ac_hdr in dlfcn.h
4152 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4153 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4154 echo "configure:4155: checking for $ac_hdr" >&5
4155 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4156 echo $ac_n "(cached) $ac_c" 1>&6
4158 cat > conftest.$ac_ext <<EOF
4159 #line 4160 "configure"
4160 #include "confdefs.h"
4163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4164 { (eval echo configure:4165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4165 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4166 if test -z "$ac_err"; then
4168 eval "ac_cv_header_$ac_safe=yes"
4171 echo "configure: failed program was:" >&5
4172 cat conftest.$ac_ext >&5
4174 eval "ac_cv_header_$ac_safe=no"
4178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4179 echo "$ac_t""yes" 1>&6
4180 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4181 cat >> confdefs.h <<EOF
4182 #define $ac_tr_hdr 1
4186 echo "$ac_t""no" 1>&6
4195 # Only perform the check for file, if the check method requires it
4196 case $deplibs_check_method in
4198 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4199 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4200 echo "configure:4201: checking for ${ac_tool_prefix}file" >&5
4201 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4202 echo $ac_n "(cached) $ac_c" 1>&6
4206 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4209 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4212 ac_save_MAGIC_CMD="$MAGIC_CMD"
4213 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4214 ac_dummy="/usr/bin:$PATH"
4215 for ac_dir in $ac_dummy; do
4216 test -z "$ac_dir" && ac_dir=.
4217 if test -f $ac_dir/${ac_tool_prefix}file; then
4218 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4219 if test -n "$file_magic_test_file"; then
4220 case $deplibs_check_method in
4222 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4223 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4224 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4225 egrep "$file_magic_regex" > /dev/null; then
4230 *** Warning: the command libtool uses to detect shared libraries,
4231 *** $file_magic_cmd, produces output that libtool cannot recognize.
4232 *** The result is that libtool may fail to recognize shared libraries
4233 *** as such. This will affect the creation of libtool libraries that
4234 *** depend on shared libraries, but programs linked with such libtool
4235 *** libraries will work regardless of this problem. Nevertheless, you
4236 *** may want to report the problem to your system manager and/or to
4237 *** bug-libtool@gnu.org
4247 MAGIC_CMD="$ac_save_MAGIC_CMD"
4252 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4253 if test -n "$MAGIC_CMD"; then
4254 echo "$ac_t""$MAGIC_CMD" 1>&6
4256 echo "$ac_t""no" 1>&6
4259 if test -z "$lt_cv_path_MAGIC_CMD"; then
4260 if test -n "$ac_tool_prefix"; then
4261 echo $ac_n "checking for file""... $ac_c" 1>&6
4262 echo "configure:4263: checking for file" >&5
4263 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4264 echo $ac_n "(cached) $ac_c" 1>&6
4268 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4271 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4274 ac_save_MAGIC_CMD="$MAGIC_CMD"
4275 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4276 ac_dummy="/usr/bin:$PATH"
4277 for ac_dir in $ac_dummy; do
4278 test -z "$ac_dir" && ac_dir=.
4279 if test -f $ac_dir/file; then
4280 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4281 if test -n "$file_magic_test_file"; then
4282 case $deplibs_check_method in
4284 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4285 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4286 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4287 egrep "$file_magic_regex" > /dev/null; then
4292 *** Warning: the command libtool uses to detect shared libraries,
4293 *** $file_magic_cmd, produces output that libtool cannot recognize.
4294 *** The result is that libtool may fail to recognize shared libraries
4295 *** as such. This will affect the creation of libtool libraries that
4296 *** depend on shared libraries, but programs linked with such libtool
4297 *** libraries will work regardless of this problem. Nevertheless, you
4298 *** may want to report the problem to your system manager and/or to
4299 *** bug-libtool@gnu.org
4309 MAGIC_CMD="$ac_save_MAGIC_CMD"
4314 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4315 if test -n "$MAGIC_CMD"; then
4316 echo "$ac_t""$MAGIC_CMD" 1>&6
4318 echo "$ac_t""no" 1>&6
4330 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4331 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4332 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4333 echo "configure:4334: checking for $ac_word" >&5
4334 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4335 echo $ac_n "(cached) $ac_c" 1>&6
4337 if test -n "$RANLIB"; then
4338 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4340 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4342 for ac_dir in $ac_dummy; do
4343 test -z "$ac_dir" && ac_dir=.
4344 if test -f $ac_dir/$ac_word; then
4345 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4352 RANLIB="$ac_cv_prog_RANLIB"
4353 if test -n "$RANLIB"; then
4354 echo "$ac_t""$RANLIB" 1>&6
4356 echo "$ac_t""no" 1>&6
4360 if test -z "$ac_cv_prog_RANLIB"; then
4361 if test -n "$ac_tool_prefix"; then
4362 # Extract the first word of "ranlib", so it can be a program name with args.
4363 set dummy ranlib; ac_word=$2
4364 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4365 echo "configure:4366: checking for $ac_word" >&5
4366 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4367 echo $ac_n "(cached) $ac_c" 1>&6
4369 if test -n "$RANLIB"; then
4370 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4372 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4374 for ac_dir in $ac_dummy; do
4375 test -z "$ac_dir" && ac_dir=.
4376 if test -f $ac_dir/$ac_word; then
4377 ac_cv_prog_RANLIB="ranlib"
4382 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4385 RANLIB="$ac_cv_prog_RANLIB"
4386 if test -n "$RANLIB"; then
4387 echo "$ac_t""$RANLIB" 1>&6
4389 echo "$ac_t""no" 1>&6
4397 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4398 set dummy ${ac_tool_prefix}strip; ac_word=$2
4399 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4400 echo "configure:4401: checking for $ac_word" >&5
4401 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4402 echo $ac_n "(cached) $ac_c" 1>&6
4404 if test -n "$STRIP"; then
4405 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4407 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4409 for ac_dir in $ac_dummy; do
4410 test -z "$ac_dir" && ac_dir=.
4411 if test -f $ac_dir/$ac_word; then
4412 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4419 STRIP="$ac_cv_prog_STRIP"
4420 if test -n "$STRIP"; then
4421 echo "$ac_t""$STRIP" 1>&6
4423 echo "$ac_t""no" 1>&6
4427 if test -z "$ac_cv_prog_STRIP"; then
4428 if test -n "$ac_tool_prefix"; then
4429 # Extract the first word of "strip", so it can be a program name with args.
4430 set dummy strip; ac_word=$2
4431 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4432 echo "configure:4433: checking for $ac_word" >&5
4433 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4434 echo $ac_n "(cached) $ac_c" 1>&6
4436 if test -n "$STRIP"; then
4437 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4439 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4441 for ac_dir in $ac_dummy; do
4442 test -z "$ac_dir" && ac_dir=.
4443 if test -f $ac_dir/$ac_word; then
4444 ac_cv_prog_STRIP="strip"
4449 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4452 STRIP="$ac_cv_prog_STRIP"
4453 if test -n "$STRIP"; then
4454 echo "$ac_t""$STRIP" 1>&6
4456 echo "$ac_t""no" 1>&6
4466 enable_win32_dll=yes
4468 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4469 if test "${enable_libtool_lock+set}" = set; then
4470 enableval="$enable_libtool_lock"
4474 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4476 # Some flags need to be propagated to the compiler or linker for good
4480 # Find out which ABI we are using.
4481 echo '#line 4482 "configure"' > conftest.$ac_ext
4482 if { (eval echo configure:4483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4483 case `/usr/bin/file conftest.$ac_objext` in
4499 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4500 SAVE_CFLAGS="$CFLAGS"
4501 CFLAGS="$CFLAGS -belf"
4502 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4503 echo "configure:4504: checking whether the C compiler needs -belf" >&5
4504 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4505 echo $ac_n "(cached) $ac_c" 1>&6
4509 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4510 ac_cpp='$CPP $CPPFLAGS'
4511 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4512 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4513 cross_compiling=$ac_cv_prog_cc_cross
4515 cat > conftest.$ac_ext <<EOF
4516 #line 4517 "configure"
4517 #include "confdefs.h"
4523 if { (eval echo configure:4524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4525 lt_cv_cc_needs_belf=yes
4527 echo "configure: failed program was:" >&5
4528 cat conftest.$ac_ext >&5
4530 lt_cv_cc_needs_belf=no
4534 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4535 ac_cpp='$CPP $CPPFLAGS'
4536 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4537 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4538 cross_compiling=$ac_cv_prog_cc_cross
4542 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4543 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4544 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4545 CFLAGS="$SAVE_CFLAGS"
4549 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4550 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4551 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4552 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4553 echo "configure:4554: checking for $ac_word" >&5
4554 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4555 echo $ac_n "(cached) $ac_c" 1>&6
4557 if test -n "$DLLTOOL"; then
4558 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4560 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4562 for ac_dir in $ac_dummy; do
4563 test -z "$ac_dir" && ac_dir=.
4564 if test -f $ac_dir/$ac_word; then
4565 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4572 DLLTOOL="$ac_cv_prog_DLLTOOL"
4573 if test -n "$DLLTOOL"; then
4574 echo "$ac_t""$DLLTOOL" 1>&6
4576 echo "$ac_t""no" 1>&6
4580 if test -z "$ac_cv_prog_DLLTOOL"; then
4581 if test -n "$ac_tool_prefix"; then
4582 # Extract the first word of "dlltool", so it can be a program name with args.
4583 set dummy dlltool; ac_word=$2
4584 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4585 echo "configure:4586: checking for $ac_word" >&5
4586 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4587 echo $ac_n "(cached) $ac_c" 1>&6
4589 if test -n "$DLLTOOL"; then
4590 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4592 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4594 for ac_dir in $ac_dummy; do
4595 test -z "$ac_dir" && ac_dir=.
4596 if test -f $ac_dir/$ac_word; then
4597 ac_cv_prog_DLLTOOL="dlltool"
4602 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4605 DLLTOOL="$ac_cv_prog_DLLTOOL"
4606 if test -n "$DLLTOOL"; then
4607 echo "$ac_t""$DLLTOOL" 1>&6
4609 echo "$ac_t""no" 1>&6
4617 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4618 set dummy ${ac_tool_prefix}as; ac_word=$2
4619 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4620 echo "configure:4621: checking for $ac_word" >&5
4621 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4622 echo $ac_n "(cached) $ac_c" 1>&6
4624 if test -n "$AS"; then
4625 ac_cv_prog_AS="$AS" # Let the user override the test.
4627 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4629 for ac_dir in $ac_dummy; do
4630 test -z "$ac_dir" && ac_dir=.
4631 if test -f $ac_dir/$ac_word; then
4632 ac_cv_prog_AS="${ac_tool_prefix}as"
4640 if test -n "$AS"; then
4641 echo "$ac_t""$AS" 1>&6
4643 echo "$ac_t""no" 1>&6
4647 if test -z "$ac_cv_prog_AS"; then
4648 if test -n "$ac_tool_prefix"; then
4649 # Extract the first word of "as", so it can be a program name with args.
4650 set dummy as; ac_word=$2
4651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4652 echo "configure:4653: checking for $ac_word" >&5
4653 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4654 echo $ac_n "(cached) $ac_c" 1>&6
4656 if test -n "$AS"; then
4657 ac_cv_prog_AS="$AS" # Let the user override the test.
4659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4661 for ac_dir in $ac_dummy; do
4662 test -z "$ac_dir" && ac_dir=.
4663 if test -f $ac_dir/$ac_word; then
4669 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4673 if test -n "$AS"; then
4674 echo "$ac_t""$AS" 1>&6
4676 echo "$ac_t""no" 1>&6
4684 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4685 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4686 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4687 echo "configure:4688: checking for $ac_word" >&5
4688 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4689 echo $ac_n "(cached) $ac_c" 1>&6
4691 if test -n "$OBJDUMP"; then
4692 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4696 for ac_dir in $ac_dummy; do
4697 test -z "$ac_dir" && ac_dir=.
4698 if test -f $ac_dir/$ac_word; then
4699 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4706 OBJDUMP="$ac_cv_prog_OBJDUMP"
4707 if test -n "$OBJDUMP"; then
4708 echo "$ac_t""$OBJDUMP" 1>&6
4710 echo "$ac_t""no" 1>&6
4714 if test -z "$ac_cv_prog_OBJDUMP"; then
4715 if test -n "$ac_tool_prefix"; then
4716 # Extract the first word of "objdump", so it can be a program name with args.
4717 set dummy objdump; ac_word=$2
4718 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4719 echo "configure:4720: checking for $ac_word" >&5
4720 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4721 echo $ac_n "(cached) $ac_c" 1>&6
4723 if test -n "$OBJDUMP"; then
4724 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4726 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4728 for ac_dir in $ac_dummy; do
4729 test -z "$ac_dir" && ac_dir=.
4730 if test -f $ac_dir/$ac_word; then
4731 ac_cv_prog_OBJDUMP="objdump"
4736 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4739 OBJDUMP="$ac_cv_prog_OBJDUMP"
4740 if test -n "$OBJDUMP"; then
4741 echo "$ac_t""$OBJDUMP" 1>&6
4743 echo "$ac_t""no" 1>&6
4752 # recent cygwin and mingw systems supply a stub DllMain which the user
4753 # can override, but on older systems we have to supply one
4754 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4755 echo "configure:4756: checking if libtool should supply DllMain function" >&5
4756 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4757 echo $ac_n "(cached) $ac_c" 1>&6
4759 cat > conftest.$ac_ext <<EOF
4760 #line 4761 "configure"
4761 #include "confdefs.h"
4764 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4768 if { (eval echo configure:4769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4770 lt_cv_need_dllmain=no
4772 echo "configure: failed program was:" >&5
4773 cat conftest.$ac_ext >&5
4775 lt_cv_need_dllmain=yes
4780 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4783 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4784 # old mingw systems require "-dll" to link a DLL, while more recent ones
4786 SAVE_CFLAGS="$CFLAGS"
4787 CFLAGS="$CFLAGS -mdll"
4788 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4789 echo "configure:4790: checking how to link DLLs" >&5
4790 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4791 echo $ac_n "(cached) $ac_c" 1>&6
4793 cat > conftest.$ac_ext <<EOF
4794 #line 4795 "configure"
4795 #include "confdefs.h"
4801 if { (eval echo configure:4802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4803 lt_cv_cc_dll_switch=-mdll
4805 echo "configure: failed program was:" >&5
4806 cat conftest.$ac_ext >&5
4808 lt_cv_cc_dll_switch=-dll
4813 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4814 CFLAGS="$SAVE_CFLAGS" ;;
4815 *-*-cygwin* | *-*-pw32*)
4816 # cygwin systems need to pass --dll to the linker, and not link
4817 # crt.o which will require a WinMain@16 definition.
4818 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4824 # Sed substitution that helps us do robust quoting. It backslashifies
4825 # metacharacters that are still active within double-quoted strings.
4826 Xsed='sed -e s/^X//'
4827 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4829 # Same as above, but do not quote variable references.
4830 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4832 # Sed substitution to delay expansion of an escaped shell variable in a
4833 # double_quote_subst'ed string.
4834 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4840 default_ofile=libtool
4841 can_build_shared=yes
4843 # All known linkers require a `.a' archive for static linking (except M$VC,
4844 # which needs '.lib').
4846 ltmain="$ac_aux_dir/ltmain.sh"
4847 ofile="$default_ofile"
4848 with_gnu_ld="$lt_cv_prog_gnu_ld"
4849 need_locks="$enable_libtool_lock"
4852 old_CFLAGS="$CFLAGS"
4854 # Set sane defaults for various variables
4855 test -z "$AR" && AR=ar
4856 test -z "$AR_FLAGS" && AR_FLAGS=cru
4857 test -z "$AS" && AS=as
4858 test -z "$CC" && CC=cc
4859 test -z "$DLLTOOL" && DLLTOOL=dlltool
4860 test -z "$LD" && LD=ld
4861 test -z "$LN_S" && LN_S="ln -s"
4862 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4863 test -z "$NM" && NM=nm
4864 test -z "$OBJDUMP" && OBJDUMP=objdump
4865 test -z "$RANLIB" && RANLIB=:
4866 test -z "$STRIP" && STRIP=:
4867 test -z "$ac_objext" && ac_objext=o
4869 if test x"$host" != x"$build"; then
4870 ac_tool_prefix=${host_alias}-
4875 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4878 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4883 # AIX sometimes has problems with the GCC collect2 program. For some
4884 # reason, if we set the COLLECT_NAMES environment variable, the problems
4885 # vanish in a puff of smoke.
4886 if test "X${COLLECT_NAMES+set}" != Xset; then
4888 export COLLECT_NAMES
4893 # Determine commands to create old-style static archives.
4894 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4895 old_postinstall_cmds='chmod 644 $oldlib'
4896 old_postuninstall_cmds=
4898 if test -n "$RANLIB"; then
4901 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4904 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4907 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4910 # Allow CC to be a program name with arguments.
4914 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4915 echo "configure:4916: checking for objdir" >&5
4916 rm -f .libs 2>/dev/null
4917 mkdir .libs 2>/dev/null
4918 if test -d .libs; then
4921 # MS-DOS does not allow filenames that begin with a dot.
4924 rmdir .libs 2>/dev/null
4925 echo "$ac_t""$objdir" 1>&6
4928 # Check whether --with-pic or --without-pic was given.
4929 if test "${with_pic+set}" = set; then
4936 test -z "$pic_mode" && pic_mode=default
4938 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4939 # in isolation, and that seeing it set (from the cache) indicates that
4940 # the associated values are set (in the cache) correctly too.
4941 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4942 echo "configure:4943: checking for $compiler option to produce PIC" >&5
4943 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4944 echo $ac_n "(cached) $ac_c" 1>&6
4947 lt_cv_prog_cc_shlib=
4949 lt_cv_prog_cc_static=
4950 lt_cv_prog_cc_no_builtin=
4951 lt_cv_prog_cc_can_build_shared=$can_build_shared
4953 if test "$GCC" = yes; then
4954 lt_cv_prog_cc_wl='-Wl,'
4955 lt_cv_prog_cc_static='-static'
4959 # Below there is a dirty hack to force normal static linking with -ldl
4960 # The problem is because libdl dynamically linked with both libc and
4961 # libC (AIX C++ library), which obviously doesn't included in libraries
4962 # list by gcc. This cause undefined symbols with -static flags.
4963 # This hack allows C programs to be linked with "-static -ldl", but
4964 # not sure about C++ programs.
4965 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4968 # FIXME: we need at least 68020 code to build shared libraries, but
4969 # adding the `-m68020' flag to GCC prevents building anything better,
4971 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4973 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4974 # PIC is the default for these OSes.
4976 darwin* | rhapsody*)
4977 # PIC is the default on this platform
4978 # Common symbols not allowed in MH_DYLIB files
4979 lt_cv_prog_cc_pic='-fno-common'
4981 cygwin* | mingw* | pw32* | os2*)
4982 # This hack is so that the source file can tell whether it is being
4983 # built for inclusion in a dll (and should export symbols for example).
4984 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4987 if test -d /usr/nec; then
4988 lt_cv_prog_cc_pic=-Kconform_pic
4992 lt_cv_prog_cc_pic='-fPIC'
4996 # PORTME Check for PIC flags for the system compiler.
4998 aix3* | aix4* | aix5*)
4999 lt_cv_prog_cc_wl='-Wl,'
5000 # All AIX code is PIC.
5001 if test "$host_cpu" = ia64; then
5002 # AIX 5 now supports IA64 processor
5003 lt_cv_prog_cc_static='-Bstatic'
5005 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5009 hpux9* | hpux10* | hpux11*)
5010 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5011 lt_cv_prog_cc_wl='-Wl,'
5012 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5013 lt_cv_prog_cc_pic='+Z'
5016 irix5* | irix6* | nonstopux*)
5017 lt_cv_prog_cc_wl='-Wl,'
5018 lt_cv_prog_cc_static='-non_shared'
5019 # PIC (with -KPIC) is the default.
5022 cygwin* | mingw* | pw32* | os2*)
5023 # This hack is so that the source file can tell whether it is being
5024 # built for inclusion in a dll (and should export symbols for example).
5025 lt_cv_prog_cc_pic='-DDLL_EXPORT'
5029 lt_cv_prog_cc_pic='-KPIC'
5030 lt_cv_prog_cc_static='-Bstatic'
5034 # XPLINK code is PIC by default
5037 osf3* | osf4* | osf5*)
5038 # All OSF/1 code is PIC.
5039 lt_cv_prog_cc_wl='-Wl,'
5040 lt_cv_prog_cc_static='-non_shared'
5044 lt_cv_prog_cc_pic='-Kpic'
5045 lt_cv_prog_cc_static='-dn'
5046 lt_cv_prog_cc_shlib='-belf'
5050 lt_cv_prog_cc_pic='-KPIC'
5051 lt_cv_prog_cc_static='-Bstatic'
5052 lt_cv_prog_cc_wl='-Wl,'
5056 lt_cv_prog_cc_pic='-PIC'
5057 lt_cv_prog_cc_static='-Bstatic'
5058 lt_cv_prog_cc_wl='-Qoption ld '
5061 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5062 lt_cv_prog_cc_pic='-KPIC'
5063 lt_cv_prog_cc_static='-Bstatic'
5064 lt_cv_prog_cc_wl='-Wl,'
5068 lt_cv_prog_cc_pic='-pic'
5069 lt_cv_prog_cc_static='-Bstatic'
5073 if test -d /usr/nec ;then
5074 lt_cv_prog_cc_pic='-Kconform_pic'
5075 lt_cv_prog_cc_static='-Bstatic'
5080 lt_cv_prog_cc_can_build_shared=no
5087 if test -z "$lt_cv_prog_cc_pic"; then
5088 echo "$ac_t""none" 1>&6
5090 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5092 # Check to make sure the pic_flag actually works.
5093 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5094 echo "configure:5095: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5095 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5096 echo $ac_n "(cached) $ac_c" 1>&6
5098 save_CFLAGS="$CFLAGS"
5099 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5100 cat > conftest.$ac_ext <<EOF
5101 #line 5102 "configure"
5102 #include "confdefs.h"
5108 if { (eval echo configure:5109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5111 hpux9* | hpux10* | hpux11*)
5112 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5113 # they create non-PIC objects. So, if there were any warnings, we
5114 # assume that PIC is not supported.
5115 if test -s conftest.err; then
5116 lt_cv_prog_cc_pic_works=no
5118 lt_cv_prog_cc_pic_works=yes
5122 lt_cv_prog_cc_pic_works=yes
5127 echo "configure: failed program was:" >&5
5128 cat conftest.$ac_ext >&5
5130 lt_cv_prog_cc_pic_works=no
5134 CFLAGS="$save_CFLAGS"
5139 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5141 lt_cv_prog_cc_can_build_shared=no
5143 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5146 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5149 # Check for any special shared library compilation flags.
5150 if test -n "$lt_cv_prog_cc_shlib"; then
5151 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5152 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5154 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5155 lt_cv_prog_cc_can_build_shared=no
5159 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5160 echo "configure:5161: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5161 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5162 echo $ac_n "(cached) $ac_c" 1>&6
5164 lt_cv_prog_cc_static_works=no
5165 save_LDFLAGS="$LDFLAGS"
5166 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5167 cat > conftest.$ac_ext <<EOF
5168 #line 5169 "configure"
5169 #include "confdefs.h"
5175 if { (eval echo configure:5176: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5177 lt_cv_prog_cc_static_works=yes
5179 echo "configure: failed program was:" >&5
5180 cat conftest.$ac_ext >&5
5183 LDFLAGS="$save_LDFLAGS"
5188 # Belt *and* braces to stop my trousers falling down:
5189 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5190 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5192 pic_flag="$lt_cv_prog_cc_pic"
5193 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5194 wl="$lt_cv_prog_cc_wl"
5195 link_static_flag="$lt_cv_prog_cc_static"
5196 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5197 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5200 # Check to see if options -o and -c are simultaneously supported by compiler
5201 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5202 echo "configure:5203: checking if $compiler supports -c -o file.$ac_objext" >&5
5203 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5204 echo $ac_n "(cached) $ac_c" 1>&6
5207 $rm -r conftest 2>/dev/null
5210 echo "int some_variable = 0;" > conftest.$ac_ext
5212 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5213 # that will create temporary files in the current directory regardless of
5214 # the output directory. Thus, making CWD read-only will cause this test
5215 # to fail, enabling locking or at least warning the user not to do parallel
5218 save_CFLAGS="$CFLAGS"
5219 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5221 if { (eval echo configure:5222: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5222 # The compiler can only warn and ignore the option if not recognized
5223 # So say no if there are warnings
5224 if test -s out/conftest.err; then
5225 lt_cv_compiler_c_o=no
5227 lt_cv_compiler_c_o=yes
5230 # Append any errors to the config.log.
5231 cat out/conftest.err 1>&5
5232 lt_cv_compiler_c_o=no
5234 CFLAGS="$save_CFLAGS"
5240 $rm -r conftest 2>/dev/null
5244 compiler_c_o=$lt_cv_compiler_c_o
5245 echo "$ac_t""$compiler_c_o" 1>&6
5247 if test x"$compiler_c_o" = x"yes"; then
5248 # Check to see if we can write to a .lo
5249 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5250 echo "configure:5251: checking if $compiler supports -c -o file.lo" >&5
5251 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5252 echo $ac_n "(cached) $ac_c" 1>&6
5255 lt_cv_compiler_o_lo=no
5256 save_CFLAGS="$CFLAGS"
5257 CFLAGS="$CFLAGS -c -o conftest.lo"
5258 save_objext="$ac_objext"
5260 cat > conftest.$ac_ext <<EOF
5261 #line 5262 "configure"
5262 #include "confdefs.h"
5265 int some_variable = 0;
5268 if { (eval echo configure:5269: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5270 # The compiler can only warn and ignore the option if not recognized
5271 # So say no if there are warnings
5272 if test -s conftest.err; then
5273 lt_cv_compiler_o_lo=no
5275 lt_cv_compiler_o_lo=yes
5279 echo "configure: failed program was:" >&5
5280 cat conftest.$ac_ext >&5
5283 ac_objext="$save_objext"
5284 CFLAGS="$save_CFLAGS"
5288 compiler_o_lo=$lt_cv_compiler_o_lo
5289 echo "$ac_t""$compiler_o_lo" 1>&6
5294 # Check to see if we can do hard links to lock some files if needed
5295 hard_links="nottested"
5296 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5297 # do not overwrite the value of need_locks provided by the user
5298 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5299 echo "configure:5300: checking if we can lock with hard links" >&5
5302 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5304 ln conftest.a conftest.b 2>&5 || hard_links=no
5305 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5306 echo "$ac_t""$hard_links" 1>&6
5307 if test "$hard_links" = no; then
5308 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5315 if test "$GCC" = yes; then
5316 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5317 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5318 echo "configure:5319: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5319 echo "int some_variable = 0;" > conftest.$ac_ext
5320 save_CFLAGS="$CFLAGS"
5321 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5322 compiler_rtti_exceptions=no
5323 cat > conftest.$ac_ext <<EOF
5324 #line 5325 "configure"
5325 #include "confdefs.h"
5328 int some_variable = 0;
5331 if { (eval echo configure:5332: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5333 # The compiler can only warn and ignore the option if not recognized
5334 # So say no if there are warnings
5335 if test -s conftest.err; then
5336 compiler_rtti_exceptions=no
5338 compiler_rtti_exceptions=yes
5342 echo "configure: failed program was:" >&5
5343 cat conftest.$ac_ext >&5
5346 CFLAGS="$save_CFLAGS"
5347 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5349 if test "$compiler_rtti_exceptions" = "yes"; then
5350 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5352 no_builtin_flag=' -fno-builtin'
5356 # See if the linker supports building shared libraries.
5357 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5358 echo "configure:5359: checking whether the linker ($LD) supports shared libraries" >&5
5360 allow_undefined_flag=
5362 need_lib_prefix=unknown
5363 need_version=unknown
5364 # when you set need_version to no, make sure it does not cause -set_version
5365 # flags to be left without arguments
5367 archive_expsym_cmds=
5368 old_archive_from_new_cmds=
5369 old_archive_from_expsyms_cmds=
5370 export_dynamic_flag_spec=
5371 whole_archive_flag_spec=
5372 thread_safe_flag_spec=
5373 hardcode_into_libs=no
5374 hardcode_libdir_flag_spec=
5375 hardcode_libdir_separator=
5378 hardcode_shlibpath_var=unsupported
5380 link_all_deplibs=unknown
5381 always_export_symbols=no
5382 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5383 # include_expsyms should be a list of space-separated symbols to be *always*
5384 # included in the symbol list
5386 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5387 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5388 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5389 # as well as any symbol that contains `d'.
5390 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5391 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5392 # platforms (ab)use it in PIC code, but their linkers get confused if
5393 # the symbol is explicitly referenced. Since portable code cannot
5394 # rely on this symbol name, it's probably fine to never include it in
5395 # preloaded symbol tables.
5396 extract_expsyms_cmds=
5399 cygwin* | mingw* | pw32*)
5400 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5401 # When not using gcc, we currently assume that we are using
5402 # Microsoft Visual C++.
5403 if test "$GCC" != yes; then
5413 if test "$with_gnu_ld" = yes; then
5414 # If archive_cmds runs LD, not CC, wlarc should be empty
5417 # See if GNU ld supports shared libraries.
5419 aix3* | aix4* | aix5*)
5420 # On AIX, the GNU linker is very broken
5421 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5425 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5426 *** to be unable to reliably create shared libraries on AIX.
5427 *** Therefore, libtool is disabling shared libraries support. If you
5428 *** really care for shared libraries, you may want to modify your PATH
5429 *** so that a non-GNU linker is found, and then restart.
5435 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)'
5436 hardcode_libdir_flag_spec='-L$libdir'
5437 hardcode_minus_L=yes
5439 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5440 # that the semantics of dynamic libraries on AmigaOS, at least up
5441 # to version 4, is to share data among multiple programs linked
5442 # with the same dynamic library. Since this doesn't match the
5443 # behavior of shared libraries on other platforms, we can use
5449 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5450 allow_undefined_flag=unsupported
5451 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5452 # support --undefined. This deserves some investigation. FIXME
5453 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5459 cygwin* | mingw* | pw32*)
5460 # hardcode_libdir_flag_spec is actually meaningless, as there is
5461 # no search path for DLLs.
5462 hardcode_libdir_flag_spec='-L$libdir'
5463 allow_undefined_flag=unsupported
5464 always_export_symbols=yes
5466 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5467 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5468 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5469 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5470 else $CC -o impgen impgen.c ; fi)~
5471 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5473 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5475 # cygwin and mingw dlls have different entry points and sets of symbols
5477 # FIXME: what about values for MSVC?
5478 dll_entry=__cygwin_dll_entry@12
5479 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5483 dll_entry=_DllMainCRTStartup@12
5484 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5488 # mingw and cygwin differ, and it's simplest to just exclude the union
5489 # of the two symbol sets.
5490 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5492 # recent cygwin and mingw systems supply a stub DllMain which the user
5493 # can override, but on older systems we have to supply one (in ltdll.c)
5494 if test "x$lt_cv_need_dllmain" = "xyes"; then
5495 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5496 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~
5497 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5503 # Extract the symbol export list from an `--export-all' def file,
5504 # then regenerate the def file from the symbol export list, so that
5505 # the compiled dll only exports the symbol export list.
5506 # Be careful not to strip the DATA tag left be newer dlltools.
5507 export_symbols_cmds="$ltdll_cmds"'
5508 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5509 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5511 # If the export-symbols file already is a .def file (1st line
5512 # is EXPORTS), use it as is.
5513 # If DATA tags from a recent dlltool are present, honour them!
5514 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5515 cp $export_symbols $output_objdir/$soname-def;
5517 echo EXPORTS > $output_objdir/$soname-def;
5519 cat $export_symbols | while read symbol; do
5522 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5523 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5524 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5526 _lt_hint=`expr 1 + \$_lt_hint`;
5530 $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~
5531 $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~
5532 $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~
5533 $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~
5534 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5538 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5539 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5542 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5543 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5548 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5552 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5553 *** create shared libraries on Solaris systems. Therefore, libtool
5554 *** is disabling shared libraries support. We urge you to upgrade GNU
5555 *** binutils to release 2.9.1 or newer. Another option is to modify
5556 *** your PATH or compiler configuration so that the native linker is
5557 *** used, and then restart.
5560 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5561 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5562 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5569 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5572 hardcode_shlibpath_var=no
5576 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5577 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5578 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5585 if test "$ld_shlibs" = yes; then
5586 runpath_var=LD_RUN_PATH
5587 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5588 export_dynamic_flag_spec='${wl}--export-dynamic'
5590 cygwin* | mingw* | pw32*)
5591 # dlltool doesn't understand --whole-archive et. al.
5592 whole_archive_flag_spec=
5595 # ancient GNU ld didn't support --whole-archive et. al.
5596 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5597 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5599 whole_archive_flag_spec=
5605 # PORTME fill in a description of your system's linker (not GNU ld)
5608 allow_undefined_flag=unsupported
5609 always_export_symbols=yes
5610 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'
5611 # Note: this linker hardcodes the directories in LIBPATH if there
5612 # are no directories specified by -L.
5613 hardcode_minus_L=yes
5614 if test "$GCC" = yes && test -z "$link_static_flag"; then
5615 # Neither direct hardcoding nor static linking is supported with a
5617 hardcode_direct=unsupported
5622 if test "$host_cpu" = ia64; then
5623 # On IA64, the linker does run time linking by default, so we don't
5624 # have to do anything special.
5625 aix_use_runtimelinking=no
5626 exp_sym_flag='-Bexport'
5629 aix_use_runtimelinking=no
5631 # Test if we are trying to use run time linking or normal
5632 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5633 # need to do runtime linking.
5634 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5635 for ld_flag in $LDFLAGS; do
5638 aix_use_runtimelinking=yes
5645 exp_sym_flag='-bexport'
5646 no_entry_flag='-bnoentry'
5649 # When large executables or shared objects are built, AIX ld can
5650 # have problems creating the table of contents. If linking a library
5651 # or program results in "error TOC overflow" add -mminimal-toc to
5652 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5653 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5657 hardcode_libdir_separator=':'
5658 if test "$GCC" = yes; then
5659 case $host_os in aix4.[012]|aix4.[012].*)
5660 collect2name=`${CC} -print-prog-name=collect2`
5661 if test -f "$collect2name" && \
5662 strings "$collect2name" | grep resolve_lib_name >/dev/null
5664 # We have reworked collect2
5667 # We have old collect2
5668 hardcode_direct=unsupported
5669 # It fails to find uninstalled libraries when the uninstalled
5670 # path is not listed in the libpath. Setting hardcode_minus_L
5671 # to unsupported forces relinking
5672 hardcode_minus_L=yes
5673 hardcode_libdir_flag_spec='-L$libdir'
5674 hardcode_libdir_separator=
5678 shared_flag='-shared'
5681 if test "$host_cpu" = ia64; then
5682 shared_flag='${wl}-G'
5684 if test "$aix_use_runtimelinking" = yes; then
5685 shared_flag='${wl}-G'
5687 shared_flag='${wl}-bM:SRE'
5692 # It seems that -bexpall can do strange things, so it is better to
5693 # generate a list of symbols to export.
5694 always_export_symbols=yes
5695 if test "$aix_use_runtimelinking" = yes; then
5696 # Warning - without using the other runtime loading flags (-brtl),
5697 # -berok will link without error, but may produce a broken library.
5698 allow_undefined_flag='-berok'
5699 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5700 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"
5702 if test "$host_cpu" = ia64; then
5703 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5704 allow_undefined_flag="-z nodefs"
5705 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"
5707 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5708 # Warning - without using the other run time loading flags,
5709 # -berok will link without error, but may produce a broken library.
5710 allow_undefined_flag='${wl}-berok'
5711 # This is a bit strange, but is similar to how AIX traditionally builds
5712 # it's shared libraries.
5713 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'
5719 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)'
5720 hardcode_libdir_flag_spec='-L$libdir'
5721 hardcode_minus_L=yes
5722 # see comment about different semantics on the GNU ld section
5726 cygwin* | mingw* | pw32*)
5727 # When not using gcc, we currently assume that we are using
5728 # Microsoft Visual C++.
5729 # hardcode_libdir_flag_spec is actually meaningless, as there is
5730 # no search path for DLLs.
5731 hardcode_libdir_flag_spec=' '
5732 allow_undefined_flag=unsupported
5733 # Tell ltmain to make .lib files, not .a files.
5735 # FIXME: Setting linknames here is a bad hack.
5736 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5737 # The linker will automatically build a .lib file if we build a DLL.
5738 old_archive_from_new_cmds='true'
5739 # FIXME: Should let the user specify the lib program.
5740 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5741 fix_srcfile_path='`cygpath -w "$srcfile"`'
5744 darwin* | rhapsody*)
5746 rhapsody* | darwin1.[012])
5747 allow_undefined_flag='-undefined suppress'
5750 allow_undefined_flag='-flat_namespace -undefined suppress'
5753 # FIXME: Relying on posixy $() will cause problems for
5754 # cross-compilation, but unfortunately the echo tests do not
5755 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5756 # `"' quotes if we put them in here... so don't!
5757 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)'
5758 # We need to add '_' to the symbols in $export_symbols first
5759 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5761 hardcode_shlibpath_var=no
5762 whole_archive_flag_spec='-all_load $convenience'
5769 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5770 # support. Future versions do this automatically, but an explicit c++rt0.o
5771 # does not break anything, and helps significantly (at the cost of a little
5774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5775 hardcode_libdir_flag_spec='-R$libdir'
5777 hardcode_shlibpath_var=no
5780 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5782 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5784 hardcode_minus_L=yes
5785 hardcode_shlibpath_var=no
5788 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5790 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5791 hardcode_libdir_flag_spec='-R$libdir'
5793 hardcode_shlibpath_var=no
5796 hpux9* | hpux10* | hpux11*)
5798 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' ;;
5799 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5801 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5802 hardcode_libdir_separator=:
5804 hardcode_minus_L=yes # Not in the search PATH, but as the default
5805 # location of the library.
5806 export_dynamic_flag_spec='${wl}-E'
5809 irix5* | irix6* | nonstopux*)
5810 if test "$GCC" = yes; then
5811 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'
5812 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5814 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'
5815 hardcode_libdir_flag_spec='-rpath $libdir'
5817 hardcode_libdir_separator=:
5818 link_all_deplibs=yes
5822 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5823 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5825 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5827 hardcode_libdir_flag_spec='-R$libdir'
5829 hardcode_shlibpath_var=no
5833 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5835 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5836 hardcode_libdir_separator=:
5837 hardcode_shlibpath_var=no
5842 hardcode_shlibpath_var=no
5843 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5844 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5845 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5846 export_dynamic_flag_spec='${wl}-E'
5849 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5850 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5851 hardcode_libdir_flag_spec='-R$libdir'
5854 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5855 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5862 archive_cmds="\$CC -Wl,DLL \$libobjs \$deplibs \$compiler_flags -o \$lib &&
5863 cp \$linknames \$output_objdir && linknames=''"
5864 export_dynamic_flag_spec="-Wl,DLL"
5868 hardcode_libdir_flag_spec='-L$libdir'
5869 hardcode_minus_L=yes
5870 allow_undefined_flag=unsupported
5871 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'
5872 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5876 if test "$GCC" = yes; then
5877 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5878 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'
5880 allow_undefined_flag=' -expect_unresolved \*'
5881 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'
5883 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5884 hardcode_libdir_separator=:
5887 osf4* | osf5*) # as osf3* with the addition of -msym flag
5888 if test "$GCC" = yes; then
5889 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5890 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'
5891 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5893 allow_undefined_flag=' -expect_unresolved \*'
5894 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'
5895 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5896 $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'
5898 #Both c and cxx compiler support -rpath directly
5899 hardcode_libdir_flag_spec='-rpath $libdir'
5901 hardcode_libdir_separator=:
5905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5906 hardcode_shlibpath_var=no
5907 runpath_var=LD_RUN_PATH
5908 hardcode_runpath_var=yes
5909 export_dynamic_flag_spec='${wl}-Bexport'
5913 # gcc --version < 3.0 without binutils cannot create self contained
5914 # shared libraries reliably, requiring libgcc.a to resolve some of
5915 # the object symbols generated in some cases. Libraries that use
5916 # assert need libgcc.a to resolve __eprintf, for example. Linking
5917 # a copy of libgcc.a into every shared library to guarantee resolving
5918 # such symbols causes other problems: According to Tim Van Holder
5919 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5920 # (to the application) exception stack for one thing.
5921 no_undefined_flag=' -z defs'
5922 if test "$GCC" = yes; then
5923 case `$CC --version 2>/dev/null` in
5927 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5928 *** create self contained shared libraries on Solaris systems, without
5929 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5930 *** -no-undefined support, which will at least allow you to build shared
5931 *** libraries. However, you may find that when you link such libraries
5932 *** into an application without using GCC, you have to manually add
5933 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5934 *** upgrade to a newer version of GCC. Another option is to rebuild your
5935 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5942 # $CC -shared without GNU ld will not create a library from C++
5943 # object files and a static libstdc++, better avoid it by now
5944 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5945 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5946 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5947 hardcode_libdir_flag_spec='-R$libdir'
5948 hardcode_shlibpath_var=no
5950 solaris2.[0-5] | solaris2.[0-5].*) ;;
5951 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5952 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5954 link_all_deplibs=yes
5958 if test "x$host_vendor" = xsequent; then
5959 # Use $CC to link under sequent, because it throws in some extra .o
5960 # files that make .init and .fini sections work.
5961 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5963 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5965 hardcode_libdir_flag_spec='-L$libdir'
5967 hardcode_minus_L=yes
5968 hardcode_shlibpath_var=no
5972 case $host_vendor in
5974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5975 hardcode_direct=yes # is this really true???
5978 ## LD is ld it makes a PLAMLIB
5979 ## CC just makes a GrossModule.
5980 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5981 reload_cmds='$CC -r -o $output$reload_objs'
5985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5986 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5989 runpath_var='LD_RUN_PATH'
5990 hardcode_shlibpath_var=no
5994 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5995 hardcode_shlibpath_var=no
5996 export_dynamic_flag_spec='-Bexport'
6000 no_undefined_flag=' -z text'
6001 # $CC -shared without GNU ld will not create a library from C++
6002 # object files and a static libstdc++, better avoid it by now
6003 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6004 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6005 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6006 hardcode_libdir_flag_spec=
6007 hardcode_shlibpath_var=no
6008 runpath_var='LD_RUN_PATH'
6012 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6013 hardcode_libdir_flag_spec='-L$libdir'
6014 hardcode_shlibpath_var=no
6018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6019 hardcode_libdir_flag_spec='-L$libdir'
6020 hardcode_shlibpath_var=no
6024 if test -d /usr/nec; then
6025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6026 hardcode_shlibpath_var=no
6027 runpath_var=LD_RUN_PATH
6028 hardcode_runpath_var=yes
6034 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6037 hardcode_shlibpath_var=no
6038 hardcode_runpath_var=yes
6039 runpath_var=LD_RUN_PATH
6042 sysv5uw7* | unixware7*)
6043 no_undefined_flag='${wl}-z ${wl}text'
6044 if test "$GCC" = yes; then
6045 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6047 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6049 runpath_var='LD_RUN_PATH'
6050 hardcode_shlibpath_var=no
6058 echo "$ac_t""$ld_shlibs" 1>&6
6059 test "$ld_shlibs" = no && can_build_shared=no
6061 # Check hardcoding attributes.
6062 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6063 echo "configure:6064: checking how to hardcode library paths into programs" >&5
6065 if test -n "$hardcode_libdir_flag_spec" || \
6066 test -n "$runpath_var"; then
6068 # We can hardcode non-existant directories.
6069 if test "$hardcode_direct" != no &&
6070 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6071 # have to relink, otherwise we might link with an installed library
6072 # when we should be linking with a yet-to-be-installed one
6073 ## test "$hardcode_shlibpath_var" != no &&
6074 test "$hardcode_minus_L" != no; then
6075 # Linking always hardcodes the temporary library directory.
6076 hardcode_action=relink
6078 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6079 hardcode_action=immediate
6082 # We cannot hardcode anything, or else we can only hardcode existing
6084 hardcode_action=unsupported
6086 echo "$ac_t""$hardcode_action" 1>&6
6090 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6091 echo "configure:6092: checking whether stripping libraries is possible" >&5
6092 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6093 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6094 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6095 echo "$ac_t""yes" 1>&6
6097 echo "$ac_t""no" 1>&6
6100 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6101 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6103 # PORTME Fill in your ld.so characteristics
6104 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6105 echo "configure:6106: checking dynamic linker characteristics" >&5
6107 libname_spec='lib$name'
6114 shlibpath_overrides_runpath=unknown
6116 dynamic_linker="$host_os ld.so"
6117 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6118 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6123 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6124 shlibpath_var=LIBPATH
6126 # AIX has no versioning support, so we append a major version to the name.
6127 soname_spec='${libname}${release}.so$major'
6134 hardcode_into_libs=yes
6135 if test "$host_cpu" = ia64; then
6136 # AIX 5 supports IA64
6137 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6138 shlibpath_var=LD_LIBRARY_PATH
6140 # With GCC up to 2.95.x, collect2 would create an import file
6141 # for dependence libraries. The import file would start with
6142 # the line `#! .'. This would cause the generated library to
6143 # depend on `.', always an invalid library. This was fixed in
6144 # development snapshots of GCC prior to 3.0.
6146 aix4 | aix4.[01] | aix4.[01].*)
6147 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6149 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6156 # AIX (on Power*) has no versioning support, so currently we can
6157 # not hardcode correct soname into executable. Probably we can
6158 # add versioning support to collect2, so additional links can
6159 # be useful in future.
6160 if test "$aix_use_runtimelinking" = yes; then
6161 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6162 # instead of lib<name>.a to let people know that these are not
6163 # typical AIX shared libraries.
6164 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6166 # We preserve .a as extension for shared libraries through AIX4.2
6167 # and later when we are not doing run time linking.
6168 library_names_spec='${libname}${release}.a $libname.a'
6169 soname_spec='${libname}${release}.so$major'
6171 shlibpath_var=LIBPATH
6173 hardcode_into_libs=yes
6177 library_names_spec='$libname.ixlibrary $libname.a'
6178 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6179 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'
6183 library_names_spec='${libname}.so'
6184 dynamic_linker="$host_os ld.so"
6185 shlibpath_var=LIBRARY_PATH
6191 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6192 soname_spec='${libname}${release}.so$major'
6193 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6194 shlibpath_var=LD_LIBRARY_PATH
6195 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6196 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6197 export_dynamic_flag_spec=-rdynamic
6198 # the default ld.so.conf also contains /usr/contrib/lib and
6199 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6200 # libtool to hard-code these into programs
6203 cygwin* | mingw* | pw32*)
6204 version_type=windows
6207 case $GCC,$host_os in
6209 library_names_spec='$libname.dll.a'
6210 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6211 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6212 dldir=$destdir/`dirname \$dlpath`~
6213 test -d \$dldir || mkdir -p \$dldir~
6214 $install_prog .libs/$dlname \$dldir/$dlname'
6215 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6216 dlpath=$dir/\$dldll~
6220 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6221 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6224 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6227 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6230 dynamic_linker='Win32 ld.exe'
6231 # FIXME: first we should search . and the directory the executable is in
6235 darwin* | rhapsody*)
6236 dynamic_linker="$host_os dyld"
6240 # FIXME: Relying on posixy $() will cause problems for
6241 # cross-compilation, but unfortunately the echo tests do not
6242 # yet detect zsh echo's removal of \ escapes.
6243 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)'
6244 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6245 shlibpath_overrides_runpath=yes
6246 shlibpath_var=DYLD_LIBRARY_PATH
6254 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6255 version_type=freebsd-$objformat
6256 case $version_type in
6258 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6263 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6267 shlibpath_var=LD_LIBRARY_PATH
6270 shlibpath_overrides_runpath=yes
6273 shlibpath_overrides_runpath=no
6274 hardcode_into_libs=yes
6283 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6284 soname_spec='${libname}${release}.so$major'
6285 shlibpath_var=LD_LIBRARY_PATH
6286 hardcode_into_libs=yes
6289 hpux9* | hpux10* | hpux11*)
6290 # Give a soname corresponding to the major version so that dld.sl refuses to
6291 # link against other versions.
6292 dynamic_linker="$host_os dld.sl"
6296 shlibpath_var=SHLIB_PATH
6297 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6298 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6299 soname_spec='${libname}${release}.sl$major'
6300 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6301 postinstall_cmds='chmod 555 $lib'
6304 irix5* | irix6* | nonstopux*)
6306 nonstopux*) version_type=nonstopux ;;
6307 *) version_type=irix ;;
6311 soname_spec='${libname}${release}.so$major'
6312 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6314 irix5* | nonstopux*)
6318 case $LD in # libtool.m4 will add one of these switches to LD
6319 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6320 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6321 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6322 *) libsuff= shlibsuff= libmagic=never-match;;
6326 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6327 shlibpath_overrides_runpath=no
6328 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6329 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6332 # No shared lib support for Linux oldld, aout, or coff.
6333 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6337 # This must be Linux ELF.
6342 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6343 soname_spec='${libname}${release}.so$major'
6344 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6345 shlibpath_var=LD_LIBRARY_PATH
6346 shlibpath_overrides_runpath=no
6347 # This implies no fast_install, which is unacceptable.
6348 # Some rework will be needed to allow for fast_install
6349 # before this can be enabled.
6350 hardcode_into_libs=yes
6352 # We used to test for /lib/ld.so.1 and disable shared libraries on
6353 # powerpc, because MkLinux only supported shared libraries with the
6354 # GNU dynamic linker. Since this was broken with cross compilers,
6355 # most powerpc-linux boxes support dynamic linking these days and
6356 # people can always --disable-shared, the test was removed, and we
6357 # assume the GNU/Linux dynamic linker is in use.
6358 dynamic_linker='GNU/Linux ld.so'
6365 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6366 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6368 dynamic_linker='NetBSD (a.out) ld.so'
6370 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6371 soname_spec='${libname}${release}.so$major'
6372 dynamic_linker='NetBSD ld.elf_so'
6374 shlibpath_var=LD_LIBRARY_PATH
6375 shlibpath_overrides_runpath=yes
6376 hardcode_into_libs=yes
6381 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6382 shlibpath_var=LD_LIBRARY_PATH
6383 shlibpath_overrides_runpath=yes
6390 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6392 openbsd2.[89] | openbsd2.[89].*)
6393 shlibpath_overrides_runpath=no
6396 shlibpath_overrides_runpath=yes
6400 shlibpath_overrides_runpath=yes
6402 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6404 shlibpath_var=LD_LIBRARY_PATH
6410 shlibpath_overrides_runpath=yes
6411 shlibpath_var=LIBPATH
6412 postinstall_cmds="rm \$destdir/\$linkname; cp \$linkname \$destdir; chmod a+x \$lib"
6413 # the library's exports are in libname.x; this is the file that must
6414 # actually be linked with to use a DLL.
6415 library_names_spec="\${libname}\${release}.so\$versuffix \${libname}.x"
6419 libname_spec='$name'
6421 library_names_spec='$libname.dll $libname.a'
6422 dynamic_linker='OS/2 ld.exe'
6423 shlibpath_var=LIBPATH
6426 osf3* | osf4* | osf5*)
6429 soname_spec='${libname}${release}.so$major'
6430 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6431 shlibpath_var=LD_LIBRARY_PATH
6432 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6433 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6434 hardcode_into_libs=yes
6439 soname_spec='${libname}${release}.so$major'
6440 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6441 shlibpath_var=LD_LIBRARY_PATH
6448 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6449 soname_spec='${libname}${release}.so$major'
6450 shlibpath_var=LD_LIBRARY_PATH
6451 shlibpath_overrides_runpath=yes
6452 hardcode_into_libs=yes
6453 # ldd complains unless libraries are executable
6454 postinstall_cmds='chmod +x $lib'
6459 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6460 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6461 shlibpath_var=LD_LIBRARY_PATH
6462 shlibpath_overrides_runpath=yes
6463 if test "$with_gnu_ld" = yes; then
6469 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6471 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6472 soname_spec='${libname}${release}.so$major'
6473 shlibpath_var=LD_LIBRARY_PATH
6474 case $host_vendor in
6476 shlibpath_overrides_runpath=no
6478 export_dynamic_flag_spec='${wl}-Blargedynsym'
6479 runpath_var=LD_RUN_PATH
6487 shlibpath_overrides_runpath=no
6488 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6495 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6496 soname_spec='${libname}${release}.so$major'
6497 shlibpath_var=LD_LIBRARY_PATH
6504 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6505 soname_spec='${libname}${release}.so$major'
6506 shlibpath_var=LD_LIBRARY_PATH
6510 if test -d /usr/nec ;then
6512 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6513 soname_spec='$libname.so.$major'
6514 shlibpath_var=LD_LIBRARY_PATH
6522 echo "$ac_t""$dynamic_linker" 1>&6
6523 test "$dynamic_linker" = no && can_build_shared=no
6525 # Report the final consequences.
6526 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6527 echo "configure:6528: checking if libtool supports shared libraries" >&5
6528 echo "$ac_t""$can_build_shared" 1>&6
6530 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6531 echo "configure:6532: checking whether to build shared libraries" >&5
6532 test "$can_build_shared" = "no" && enable_shared=no
6534 # On AIX, shared libraries and static libraries use the same namespace, and
6535 # are all built from PIC.
6538 test "$enable_shared" = yes && enable_static=no
6539 if test -n "$RANLIB"; then
6540 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6541 postinstall_cmds='$RANLIB $lib'
6546 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6547 test "$enable_shared" = yes && enable_static=no
6551 echo "$ac_t""$enable_shared" 1>&6
6553 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6554 echo "configure:6555: checking whether to build static libraries" >&5
6555 # Make sure either enable_shared or enable_static is yes.
6556 test "$enable_shared" = yes || enable_static=yes
6557 echo "$ac_t""$enable_static" 1>&6
6559 if test "$hardcode_action" = relink; then
6560 # Fast installation is not supported
6561 enable_fast_install=no
6562 elif test "$shlibpath_overrides_runpath" = yes ||
6563 test "$enable_shared" = no; then
6564 # Fast installation is not necessary
6565 enable_fast_install=needless
6568 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6569 if test "$GCC" = yes; then
6570 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6573 if test "x$enable_dlopen" != xyes; then
6574 enable_dlopen=unknown
6575 enable_dlopen_self=unknown
6576 enable_dlopen_self_static=unknown
6583 lt_cv_dlopen="load_add_on"
6585 lt_cv_dlopen_self=yes
6588 cygwin* | mingw* | pw32*)
6589 lt_cv_dlopen="LoadLibrary"
6594 echo $ac_n "checking for dllload""... $ac_c" 1>&6
6595 echo "configure:6596: checking for dllload" >&5
6596 if eval "test \"\${ac_cv_func_dllload+set}\" = set"; then
6597 echo $ac_n "(cached) $ac_c" 1>&6
6599 cat > conftest.$ac_ext <<EOF
6600 #line 6601 "configure"
6601 #include "confdefs.h"
6602 /* System header to define __stub macros and hopefully few prototypes,
6603 which can conflict with char dllload(); below. */
6605 /* Override any gcc2 internal prototype to avoid an error. */
6606 /* We use char because int might match the return type of a gcc2
6607 builtin and then its argument prototype would still apply. */
6613 /* The GNU C library defines this for functions which it implements
6614 to always fail with ENOSYS. Some functions are actually named
6615 something starting with __ and the normal name is an alias. */
6616 #if defined (__stub_dllload) || defined (__stub___dllload)
6624 if { (eval echo configure:6625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6626 eval "ac_cv_func_dllload=yes"
6628 echo "configure: failed program was:" >&5
6629 cat conftest.$ac_ext >&5
6631 eval "ac_cv_func_dllload=no"
6636 if eval "test \"`echo '$ac_cv_func_'dllload`\" = yes"; then
6637 echo "$ac_t""yes" 1>&6
6638 lt_cv_dlopen="dllload"
6640 echo "$ac_t""no" 1>&6
6641 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6642 echo "configure:6643: checking for shl_load" >&5
6643 if eval "test \"\${ac_cv_func_shl_load+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 shl_load(); 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_shl_load) || defined (__stub___shl_load)
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_shl_load=yes"
6675 echo "configure: failed program was:" >&5
6676 cat conftest.$ac_ext >&5
6678 eval "ac_cv_func_shl_load=no"
6683 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6684 echo "$ac_t""yes" 1>&6
6685 lt_cv_dlopen="shl_load"
6687 echo "$ac_t""no" 1>&6
6688 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6689 echo "configure:6690: checking for shl_load in -ldld" >&5
6690 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6691 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6692 echo $ac_n "(cached) $ac_c" 1>&6
6694 ac_save_LIBS="$LIBS"
6696 cat > conftest.$ac_ext <<EOF
6697 #line 6698 "configure"
6698 #include "confdefs.h"
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. */
6708 if { (eval echo configure:6709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6710 eval "ac_cv_lib_$ac_lib_var=yes"
6712 echo "configure: failed program was:" >&5
6713 cat conftest.$ac_ext >&5
6715 eval "ac_cv_lib_$ac_lib_var=no"
6718 LIBS="$ac_save_LIBS"
6721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6722 echo "$ac_t""yes" 1>&6
6723 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6725 echo "$ac_t""no" 1>&6
6726 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6727 echo "configure:6728: checking for dlopen" >&5
6728 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6729 echo $ac_n "(cached) $ac_c" 1>&6
6731 cat > conftest.$ac_ext <<EOF
6732 #line 6733 "configure"
6733 #include "confdefs.h"
6734 /* System header to define __stub macros and hopefully few prototypes,
6735 which can conflict with char dlopen(); below. */
6737 /* Override any gcc2 internal prototype to avoid an error. */
6738 /* We use char because int might match the return type of a gcc2
6739 builtin and then its argument prototype would still apply. */
6745 /* The GNU C library defines this for functions which it implements
6746 to always fail with ENOSYS. Some functions are actually named
6747 something starting with __ and the normal name is an alias. */
6748 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6756 if { (eval echo configure:6757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6758 eval "ac_cv_func_dlopen=yes"
6760 echo "configure: failed program was:" >&5
6761 cat conftest.$ac_ext >&5
6763 eval "ac_cv_func_dlopen=no"
6768 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6769 echo "$ac_t""yes" 1>&6
6770 lt_cv_dlopen="dlopen"
6772 echo "$ac_t""no" 1>&6
6773 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6774 echo "configure:6775: checking for dlopen in -ldl" >&5
6775 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6776 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6777 echo $ac_n "(cached) $ac_c" 1>&6
6779 ac_save_LIBS="$LIBS"
6781 cat > conftest.$ac_ext <<EOF
6782 #line 6783 "configure"
6783 #include "confdefs.h"
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. */
6793 if { (eval echo configure:6794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6795 eval "ac_cv_lib_$ac_lib_var=yes"
6797 echo "configure: failed program was:" >&5
6798 cat conftest.$ac_ext >&5
6800 eval "ac_cv_lib_$ac_lib_var=no"
6803 LIBS="$ac_save_LIBS"
6806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6807 echo "$ac_t""yes" 1>&6
6808 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6810 echo "$ac_t""no" 1>&6
6811 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6812 echo "configure:6813: checking for dlopen in -lsvld" >&5
6813 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6814 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6815 echo $ac_n "(cached) $ac_c" 1>&6
6817 ac_save_LIBS="$LIBS"
6819 cat > conftest.$ac_ext <<EOF
6820 #line 6821 "configure"
6821 #include "confdefs.h"
6822 /* Override any gcc2 internal prototype to avoid an error. */
6823 /* We use char because int might match the return type of a gcc2
6824 builtin and then its argument prototype would still apply. */
6831 if { (eval echo configure:6832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6833 eval "ac_cv_lib_$ac_lib_var=yes"
6835 echo "configure: failed program was:" >&5
6836 cat conftest.$ac_ext >&5
6838 eval "ac_cv_lib_$ac_lib_var=no"
6841 LIBS="$ac_save_LIBS"
6844 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6845 echo "$ac_t""yes" 1>&6
6846 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6848 echo "$ac_t""no" 1>&6
6849 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6850 echo "configure:6851: checking for dld_link in -ldld" >&5
6851 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6852 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6853 echo $ac_n "(cached) $ac_c" 1>&6
6855 ac_save_LIBS="$LIBS"
6857 cat > conftest.$ac_ext <<EOF
6858 #line 6859 "configure"
6859 #include "confdefs.h"
6860 /* Override any gcc2 internal prototype to avoid an error. */
6861 /* We use char because int might match the return type of a gcc2
6862 builtin and then its argument prototype would still apply. */
6869 if { (eval echo configure:6870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6871 eval "ac_cv_lib_$ac_lib_var=yes"
6873 echo "configure: failed program was:" >&5
6874 cat conftest.$ac_ext >&5
6876 eval "ac_cv_lib_$ac_lib_var=no"
6879 LIBS="$ac_save_LIBS"
6882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6883 echo "$ac_t""yes" 1>&6
6884 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6886 echo "$ac_t""no" 1>&6
6910 if test "x$lt_cv_dlopen" != xno; then
6916 case $lt_cv_dlopen in
6918 save_CPPFLAGS="$CPPFLAGS"
6919 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6921 save_LDFLAGS="$LDFLAGS"
6922 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6925 LIBS="$lt_cv_dlopen_libs $LIBS"
6927 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6928 echo "configure:6929: checking whether a program can dlopen itself" >&5
6929 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6930 echo $ac_n "(cached) $ac_c" 1>&6
6932 if test "$cross_compiling" = yes; then :
6933 lt_cv_dlopen_self=cross
6935 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6936 lt_status=$lt_dlunknown
6937 cat > conftest.$ac_ext <<EOF
6938 #line 6939 "configure"
6939 #include "confdefs.h"
6948 # define LT_DLGLOBAL RTLD_GLOBAL
6951 # define LT_DLGLOBAL DL_GLOBAL
6953 # define LT_DLGLOBAL 0
6957 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6958 find out it does not work in some platform. */
6959 #ifndef LT_DLLAZY_OR_NOW
6961 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6964 # define LT_DLLAZY_OR_NOW DL_LAZY
6967 # define LT_DLLAZY_OR_NOW RTLD_NOW
6970 # define LT_DLLAZY_OR_NOW DL_NOW
6972 # define LT_DLLAZY_OR_NOW 0
6980 extern "C" void exit (int);
6983 void fnord() { int i=42;}
6986 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6987 int status = $lt_dlunknown;
6991 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6992 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6993 /* dlclose (self); */
6999 if { (eval echo configure:7000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7000 (./conftest; exit; ) 2>/dev/null
7003 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7004 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7005 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7008 # compilation failed
7009 lt_cv_dlopen_self=no
7017 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
7019 if test "x$lt_cv_dlopen_self" = xyes; then
7020 LDFLAGS="$LDFLAGS $link_static_flag"
7021 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
7022 echo "configure:7023: checking whether a statically linked program can dlopen itself" >&5
7023 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
7024 echo $ac_n "(cached) $ac_c" 1>&6
7026 if test "$cross_compiling" = yes; then :
7027 lt_cv_dlopen_self_static=cross
7029 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7030 lt_status=$lt_dlunknown
7031 cat > conftest.$ac_ext <<EOF
7032 #line 7033 "configure"
7033 #include "confdefs.h"
7042 # define LT_DLGLOBAL RTLD_GLOBAL
7045 # define LT_DLGLOBAL DL_GLOBAL
7047 # define LT_DLGLOBAL 0
7051 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7052 find out it does not work in some platform. */
7053 #ifndef LT_DLLAZY_OR_NOW
7055 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7058 # define LT_DLLAZY_OR_NOW DL_LAZY
7061 # define LT_DLLAZY_OR_NOW RTLD_NOW
7064 # define LT_DLLAZY_OR_NOW DL_NOW
7066 # define LT_DLLAZY_OR_NOW 0
7074 extern "C" void exit (int);
7077 void fnord() { int i=42;}
7080 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7081 int status = $lt_dlunknown;
7085 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7086 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7087 /* dlclose (self); */
7093 if { (eval echo configure:7094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7094 (./conftest; exit; ) 2>/dev/null
7097 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7098 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7099 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7102 # compilation failed
7103 lt_cv_dlopen_self_static=no
7111 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7114 CPPFLAGS="$save_CPPFLAGS"
7115 LDFLAGS="$save_LDFLAGS"
7120 case $lt_cv_dlopen_self in
7121 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7122 *) enable_dlopen_self=unknown ;;
7125 case $lt_cv_dlopen_self_static in
7126 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7127 *) enable_dlopen_self_static=unknown ;;
7132 if test "$enable_shared" = yes && test "$GCC" = yes; then
7133 case $archive_cmds in
7135 # FIXME: we may have to deal with multi-command sequences.
7138 # Test whether the compiler implicitly links with -lc since on some
7139 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7140 # to ld, don't add -lc before -lgcc.
7141 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7142 echo "configure:7143: checking whether -lc should be explicitly linked in" >&5
7143 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7144 echo $ac_n "(cached) $ac_c" 1>&6
7147 echo 'static int dummy;' > conftest.$ac_ext
7149 if { (eval echo configure:7150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7152 libobjs=conftest.$ac_objext
7154 wl=$lt_cv_prog_cc_wl
7160 save_allow_undefined_flag=$allow_undefined_flag
7161 allow_undefined_flag=
7162 if { (eval echo configure:7163: \"$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; }
7164 lt_cv_archive_cmds_need_lc=no
7166 lt_cv_archive_cmds_need_lc=yes
7168 allow_undefined_flag=$save_allow_undefined_flag
7170 cat conftest.err 1>&5
7174 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7178 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7180 # The second clause should only fire when bootstrapping the
7181 # libtool distribution, otherwise you forgot to ship ltmain.sh
7182 # with your package, and you will get complaints that there are
7183 # no rules to generate ltmain.sh.
7184 if test -f "$ltmain"; then
7187 # If there is no Makefile yet, we rely on a make rule to execute
7188 # `config.status --recheck' to rerun these tests and create the
7189 # libtool script then.
7190 test -f Makefile && make "$ltmain"
7193 if test -f "$ltmain"; then
7194 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7197 echo creating $ofile
7199 # Now quote all the things that may contain metacharacters while being
7200 # careful not to overquote the AC_SUBSTed values. We take copies of the
7201 # variables and quote the copies for generation of the libtool script.
7202 for var in echo old_CC old_CFLAGS SED \
7203 AR AR_FLAGS CC LD LN_S NM SHELL \
7204 reload_flag reload_cmds wl \
7205 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7206 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7207 library_names_spec soname_spec \
7208 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7209 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7210 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7211 old_striplib striplib file_magic_cmd export_symbols_cmds \
7212 deplibs_check_method allow_undefined_flag no_undefined_flag \
7213 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7214 global_symbol_to_c_name_address \
7215 hardcode_libdir_flag_spec hardcode_libdir_separator \
7216 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7217 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7220 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7221 old_postinstall_cmds | old_postuninstall_cmds | \
7222 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7223 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7224 postinstall_cmds | postuninstall_cmds | \
7225 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7226 # Double-quote double-evaled strings.
7227 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7230 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7235 cat <<__EOF__ > "${ofile}T"
7238 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7239 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7240 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7242 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7243 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7245 # This program is free software; you can redistribute it and/or modify
7246 # it under the terms of the GNU General Public License as published by
7247 # the Free Software Foundation; either version 2 of the License, or
7248 # (at your option) any later version.
7250 # This program is distributed in the hope that it will be useful, but
7251 # WITHOUT ANY WARRANTY; without even the implied warranty of
7252 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7253 # General Public License for more details.
7255 # You should have received a copy of the GNU General Public License
7256 # along with this program; if not, write to the Free Software
7257 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7259 # As a special exception to the GNU General Public License, if you
7260 # distribute this file as part of a program that contains a
7261 # configuration script generated by Autoconf, you may include it under
7262 # the same distribution terms that you use for the rest of that program.
7264 # A sed that does not truncate output.
7267 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7268 Xsed="${SED} -e s/^X//"
7270 # The HP-UX ksh and POSIX shell print the target directory to stdout
7272 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7274 # ### BEGIN LIBTOOL CONFIG
7276 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7278 # Shell to use when invoking shell scripts.
7281 # Whether or not to build shared libraries.
7282 build_libtool_libs=$enable_shared
7284 # Whether or not to build static libraries.
7285 build_old_libs=$enable_static
7287 # Whether or not to add -lc for building shared libraries.
7288 build_libtool_need_lc=$need_lc
7290 # Whether or not to optimize for fast installation.
7291 fast_install=$enable_fast_install
7294 host_alias=$host_alias
7297 # An echo program that does not interpret backslashes.
7302 AR_FLAGS=$lt_AR_FLAGS
7304 # The default C compiler.
7307 # Is the compiler the GNU C compiler?
7310 # The linker used to build libraries.
7313 # Whether we need hard or soft links.
7316 # A BSD-compatible nm program.
7319 # A symbol stripping program
7322 # Used to examine libraries when file_magic_cmd begins "file"
7323 MAGIC_CMD=$MAGIC_CMD
7325 # Used on cygwin: DLL creation program.
7328 # Used on cygwin: object dumper.
7331 # Used on cygwin: assembler.
7334 # The name of the directory that contains temporary libtool files.
7337 # How to create reloadable object files.
7338 reload_flag=$lt_reload_flag
7339 reload_cmds=$lt_reload_cmds
7341 # How to pass a linker flag through the compiler.
7344 # Object file suffix (normally "o").
7347 # Old archive suffix (normally "a").
7350 # Executable file suffix (normally "").
7353 # Additional compiler flags for building library objects.
7354 pic_flag=$lt_pic_flag
7357 # Does compiler simultaneously support -c and -o options?
7358 compiler_c_o=$lt_compiler_c_o
7360 # Can we write directly to a .lo ?
7361 compiler_o_lo=$lt_compiler_o_lo
7363 # Must we lock files when doing compilation ?
7364 need_locks=$lt_need_locks
7366 # Do we need the lib prefix for modules?
7367 need_lib_prefix=$need_lib_prefix
7369 # Do we need a version for libraries?
7370 need_version=$need_version
7372 # Whether dlopen is supported.
7373 dlopen_support=$enable_dlopen
7375 # Whether dlopen of programs is supported.
7376 dlopen_self=$enable_dlopen_self
7378 # Whether dlopen of statically linked programs is supported.
7379 dlopen_self_static=$enable_dlopen_self_static
7381 # Compiler flag to prevent dynamic linking.
7382 link_static_flag=$lt_link_static_flag
7384 # Compiler flag to turn off builtin functions.
7385 no_builtin_flag=$lt_no_builtin_flag
7387 # Compiler flag to allow reflexive dlopens.
7388 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7390 # Compiler flag to generate shared objects directly from archives.
7391 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7393 # Compiler flag to generate thread-safe objects.
7394 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7396 # Library versioning type.
7397 version_type=$version_type
7399 # Format of library name prefix.
7400 libname_spec=$lt_libname_spec
7402 # List of archive names. First name is the real one, the rest are links.
7403 # The last name is the one that the linker finds with -lNAME.
7404 library_names_spec=$lt_library_names_spec
7406 # The coded name of the library, if different from the real name.
7407 soname_spec=$lt_soname_spec
7409 # Commands used to build and install an old-style archive.
7411 old_archive_cmds=$lt_old_archive_cmds
7412 old_postinstall_cmds=$lt_old_postinstall_cmds
7413 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7415 # Create an old-style archive from a shared archive.
7416 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7418 # Create a temporary old-style archive to link instead of a shared archive.
7419 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7421 # Commands used to build and install a shared archive.
7422 archive_cmds=$lt_archive_cmds
7423 archive_expsym_cmds=$lt_archive_expsym_cmds
7424 postinstall_cmds=$lt_postinstall_cmds
7425 postuninstall_cmds=$lt_postuninstall_cmds
7427 # Commands to strip libraries.
7428 old_striplib=$lt_old_striplib
7429 striplib=$lt_striplib
7431 # Method to check whether dependent libraries are shared objects.
7432 deplibs_check_method=$lt_deplibs_check_method
7434 # Command to use when deplibs_check_method == file_magic.
7435 file_magic_cmd=$lt_file_magic_cmd
7437 # Flag that allows shared libraries with undefined symbols to be built.
7438 allow_undefined_flag=$lt_allow_undefined_flag
7440 # Flag that forces no undefined symbols.
7441 no_undefined_flag=$lt_no_undefined_flag
7443 # Commands used to finish a libtool library installation in a directory.
7444 finish_cmds=$lt_finish_cmds
7446 # Same as above, but a single script fragment to be evaled but not shown.
7447 finish_eval=$lt_finish_eval
7449 # Take the output of nm and produce a listing of raw symbols and C names.
7450 global_symbol_pipe=$lt_global_symbol_pipe
7452 # Transform the output of nm in a proper C declaration
7453 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7455 # Transform the output of nm in a C name address pair
7456 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7458 # This is the shared library runtime path variable.
7459 runpath_var=$runpath_var
7461 # This is the shared library path variable.
7462 shlibpath_var=$shlibpath_var
7464 # Is shlibpath searched before the hard-coded library search path?
7465 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7467 # How to hardcode a shared library path into an executable.
7468 hardcode_action=$hardcode_action
7470 # Whether we should hardcode library paths into libraries.
7471 hardcode_into_libs=$hardcode_into_libs
7473 # Flag to hardcode \$libdir into a binary during linking.
7474 # This must work even if \$libdir does not exist.
7475 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7477 # Whether we need a single -rpath flag with a separated argument.
7478 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7480 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7482 hardcode_direct=$hardcode_direct
7484 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7486 hardcode_minus_L=$hardcode_minus_L
7488 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7489 # the resulting binary.
7490 hardcode_shlibpath_var=$hardcode_shlibpath_var
7492 # Variables whose values should be saved in libtool wrapper scripts and
7493 # restored at relink time.
7494 variables_saved_for_relink="$variables_saved_for_relink"
7496 # Whether libtool must link a program against all its dependency libraries.
7497 link_all_deplibs=$link_all_deplibs
7499 # Compile-time system search path for libraries
7500 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7502 # Run-time system search path for libraries
7503 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7505 # Fix the shell variable \$srcfile for the compiler.
7506 fix_srcfile_path="$fix_srcfile_path"
7508 # Set to yes if exported symbols are required.
7509 always_export_symbols=$always_export_symbols
7511 # The commands to list exported symbols.
7512 export_symbols_cmds=$lt_export_symbols_cmds
7514 # The commands to extract the exported symbol list from a shared archive.
7515 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7517 # Symbols that should not be listed in the preloaded symbols.
7518 exclude_expsyms=$lt_exclude_expsyms
7520 # Symbols that must always be exported.
7521 include_expsyms=$lt_include_expsyms
7523 # ### END LIBTOOL CONFIG
7529 cat <<\EOF >> "${ofile}T"
7531 # AIX sometimes has problems with the GCC collect2 program. For some
7532 # reason, if we set the COLLECT_NAMES environment variable, the problems
7533 # vanish in a puff of smoke.
7534 if test "X${COLLECT_NAMES+set}" != Xset; then
7536 export COLLECT_NAMES
7543 cygwin* | mingw* | pw32* | os2*)
7544 cat <<'EOF' >> "${ofile}T"
7545 # This is a source program that is used to create dlls on Windows
7546 # Don't remove nor modify the starting and closing comments
7547 # /* ltdll.c starts here */
7548 # #define WIN32_LEAN_AND_MEAN
7549 # #include <windows.h>
7550 # #undef WIN32_LEAN_AND_MEAN
7551 # #include <stdio.h>
7553 # #ifndef __CYGWIN__
7554 # # ifdef __CYGWIN32__
7555 # # define __CYGWIN__ __CYGWIN32__
7559 # #ifdef __cplusplus
7562 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7563 # #ifdef __cplusplus
7568 # #include <cygwin/cygwin_dll.h>
7569 # DECLARE_CYGWIN_DLL( DllMain );
7571 # HINSTANCE __hDllInstance_base;
7574 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7576 # __hDllInstance_base = hInst;
7579 # /* ltdll.c ends here */
7580 # This is a source program that is used to create import libraries
7581 # on Windows for dlls which lack them. Don't remove nor modify the
7582 # starting and closing comments
7583 # /* impgen.c starts here */
7584 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7586 # This file is part of GNU libtool.
7588 # This program is free software; you can redistribute it and/or modify
7589 # it under the terms of the GNU General Public License as published by
7590 # the Free Software Foundation; either version 2 of the License, or
7591 # (at your option) any later version.
7593 # This program is distributed in the hope that it will be useful,
7594 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7595 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7596 # GNU General Public License for more details.
7598 # You should have received a copy of the GNU General Public License
7599 # along with this program; if not, write to the Free Software
7600 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7603 # #include <stdio.h> /* for printf() */
7604 # #include <unistd.h> /* for open(), lseek(), read() */
7605 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7606 # #include <string.h> /* for strdup() */
7608 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7610 # #define O_BINARY 0
7613 # static unsigned int
7614 # pe_get16 (fd, offset)
7618 # unsigned char b[2];
7619 # lseek (fd, offset, SEEK_SET);
7621 # return b[0] + (b[1]<<8);
7624 # static unsigned int
7625 # pe_get32 (fd, offset)
7629 # unsigned char b[4];
7630 # lseek (fd, offset, SEEK_SET);
7632 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7635 # static unsigned int
7639 # unsigned char *b = ptr;
7640 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7649 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7650 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7651 # unsigned long name_rvas, nexp;
7652 # unsigned char *expdata, *erva;
7653 # char *filename, *dll_name;
7655 # filename = argv[1];
7657 # dll = open(filename, O_RDONLY|O_BINARY);
7661 # dll_name = filename;
7663 # for (i=0; filename[i]; i++)
7664 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7665 # dll_name = filename + i +1;
7667 # pe_header_offset = pe_get32 (dll, 0x3c);
7668 # opthdr_ofs = pe_header_offset + 4 + 20;
7669 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7671 # if (num_entries < 1) /* no exports */
7674 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7675 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7676 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7677 # secptr = (pe_header_offset + 4 + 20 +
7678 # pe_get16 (dll, pe_header_offset + 4 + 16));
7681 # for (i = 0; i < nsections; i++)
7684 # unsigned long secptr1 = secptr + 40 * i;
7685 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7686 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7687 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7688 # lseek(dll, secptr1, SEEK_SET);
7689 # read(dll, sname, 8);
7690 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7692 # expptr = fptr + (export_rva - vaddr);
7693 # if (export_rva + export_size > vaddr + vsize)
7694 # export_size = vsize - (export_rva - vaddr);
7699 # expdata = (unsigned char*)malloc(export_size);
7700 # lseek (dll, expptr, SEEK_SET);
7701 # read (dll, expdata, export_size);
7702 # erva = expdata - export_rva;
7704 # nexp = pe_as32 (expdata+24);
7705 # name_rvas = pe_as32 (expdata+32);
7707 # printf ("EXPORTS\n");
7708 # for (i = 0; i<nexp; i++)
7710 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7711 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7716 # /* impgen.c ends here */
7722 # We use sed instead of cat because bash on DJGPP gets confused if
7723 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7724 # text mode, it properly converts lines to CR/LF. This bash problem
7725 # is reportedly fixed, but why not run on old versions too?
7726 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7728 mv -f "${ofile}T" "$ofile" || \
7729 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7737 # This can be used to rebuild libtool when needed
7738 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7740 # Always use our own libtool.
7741 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7743 # Prevent multiple expansion
7748 if test $ol_enable_perl != no ; then
7749 # Extract the first word of "perl", so it can be a program name with args.
7750 set dummy perl; ac_word=$2
7751 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7752 echo "configure:7753: checking for $ac_word" >&5
7753 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7754 echo $ac_n "(cached) $ac_c" 1>&6
7758 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7761 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7766 for ac_dir in $ac_dummy; do
7767 test -z "$ac_dir" && ac_dir=.
7768 if test -f $ac_dir/$ac_word; then
7769 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7774 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7778 PERLBIN="$ac_cv_path_PERLBIN"
7779 if test -n "$PERLBIN"; then
7780 echo "$ac_t""$PERLBIN" 1>&6
7782 echo "$ac_t""no" 1>&6
7786 if test "no$PERLBIN" = "no" ; then
7787 if test $ol_enable_perl = yes ; then
7788 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7792 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7793 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
7795 if test x"$ol_enable_perl" = "xyes" ; then
7796 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
7798 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
7804 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7805 echo "configure:7806: checking how to run the C preprocessor" >&5
7806 # On Suns, sometimes $CPP names a directory.
7807 if test -n "$CPP" && test -d "$CPP"; then
7810 if test -z "$CPP"; then
7811 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7812 echo $ac_n "(cached) $ac_c" 1>&6
7814 # This must be in double quotes, not single quotes, because CPP may get
7815 # substituted into the Makefile and "${CC-cc}" will confuse make.
7817 # On the NeXT, cc -E runs the code through the compiler's parser,
7818 # not just through cpp.
7819 cat > conftest.$ac_ext <<EOF
7820 #line 7821 "configure"
7821 #include "confdefs.h"
7825 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7826 { (eval echo configure:7827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7827 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7828 if test -z "$ac_err"; then
7832 echo "configure: failed program was:" >&5
7833 cat conftest.$ac_ext >&5
7835 CPP="${CC-cc} -E -traditional-cpp"
7836 cat > conftest.$ac_ext <<EOF
7837 #line 7838 "configure"
7838 #include "confdefs.h"
7842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7843 { (eval echo configure:7844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7845 if test -z "$ac_err"; then
7849 echo "configure: failed program was:" >&5
7850 cat conftest.$ac_ext >&5
7852 CPP="${CC-cc} -nologo -E"
7853 cat > conftest.$ac_ext <<EOF
7854 #line 7855 "configure"
7855 #include "confdefs.h"
7859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7860 { (eval echo configure:7861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7861 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7862 if test -z "$ac_err"; then
7866 echo "configure: failed program was:" >&5
7867 cat conftest.$ac_ext >&5
7876 ac_cv_prog_CPP="$CPP"
7878 CPP="$ac_cv_prog_CPP"
7880 ac_cv_prog_CPP="$CPP"
7882 echo "$ac_t""$CPP" 1>&6
7886 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7887 echo "configure:7888: checking for Cygwin environment" >&5
7888 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7889 echo $ac_n "(cached) $ac_c" 1>&6
7891 cat > conftest.$ac_ext <<EOF
7892 #line 7893 "configure"
7893 #include "confdefs.h"
7898 #define __CYGWIN__ __CYGWIN32__
7903 if { (eval echo configure:7904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7907 echo "configure: failed program was:" >&5
7908 cat conftest.$ac_ext >&5
7915 echo "$ac_t""$ac_cv_cygwin" 1>&6
7917 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7918 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7919 echo "configure:7920: checking for mingw32 environment" >&5
7920 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7921 echo $ac_n "(cached) $ac_c" 1>&6
7923 cat > conftest.$ac_ext <<EOF
7924 #line 7925 "configure"
7925 #include "confdefs.h"
7931 if { (eval echo configure:7932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7935 echo "configure: failed program was:" >&5
7936 cat conftest.$ac_ext >&5
7943 echo "$ac_t""$ac_cv_mingw32" 1>&6
7945 test "$ac_cv_mingw32" = yes && MINGW32=yes
7949 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7950 echo "configure:7951: checking for executable suffix" >&5
7951 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
7952 echo $ac_n "(cached) $ac_c" 1>&6
7954 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
7958 echo 'int main () { return 0; }' > conftest.$ac_ext
7960 if { (eval echo configure:7961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7961 for file in conftest.*; do
7963 *.c | *.C | *.o | *.obj | *.xcoff) ;;
7964 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
7968 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7971 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
7976 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
7977 echo "$ac_t""${ac_cv_exeext}" 1>&6
7980 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
7981 echo "configure:7982: checking for object suffix" >&5
7982 if eval "test \"\${ac_cv_objext+set}\" = set"; then
7983 echo $ac_n "(cached) $ac_c" 1>&6
7986 echo 'int i = 1;' > conftest.$ac_ext
7987 if { (eval echo configure:7988: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7988 for ac_file in conftest.*; do
7991 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
7995 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
8000 echo "$ac_t""$ac_cv_objext" 1>&6
8001 OBJEXT=$ac_cv_objext
8002 ac_objext=$ac_cv_objext
8005 cat >> confdefs.h <<EOF
8006 #define EXEEXT "${EXEEXT}"
8010 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
8011 echo "configure:8012: checking for be_app in -lbe" >&5
8012 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
8013 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8014 echo $ac_n "(cached) $ac_c" 1>&6
8016 ac_save_LIBS="$LIBS"
8017 LIBS="-lbe -lroot -lnet $LIBS"
8018 cat > conftest.$ac_ext <<EOF
8019 #line 8020 "configure"
8020 #include "confdefs.h"
8021 /* Override any gcc2 internal prototype to avoid an error. */
8022 /* We use char because int might match the return type of a gcc2
8023 builtin and then its argument prototype would still apply. */
8030 if { (eval echo configure:8031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8032 eval "ac_cv_lib_$ac_lib_var=yes"
8034 echo "configure: failed program was:" >&5
8035 cat conftest.$ac_ext >&5
8037 eval "ac_cv_lib_$ac_lib_var=no"
8040 LIBS="$ac_save_LIBS"
8043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8044 echo "$ac_t""yes" 1>&6
8045 LIBS="$LIBS -lbe -lroot -lnet"
8047 echo "$ac_t""no" 1>&6
8055 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8056 echo "configure:8057: checking for ${CC-cc} option to accept ANSI C" >&5
8057 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8058 echo $ac_n "(cached) $ac_c" 1>&6
8060 am_cv_prog_cc_stdc=no
8062 # Don't try gcc -ansi; that turns off useful extensions and
8063 # breaks some systems' header files.
8064 # AIX -qlanglvl=ansi
8065 # Ultrix and OSF/1 -std1
8066 # HP-UX 10.20 and later -Ae
8067 # HP-UX older versions -Aa -D_HPUX_SOURCE
8068 # SVR4 -Xc -D__EXTENSIONS__
8069 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8071 CC="$ac_save_CC $ac_arg"
8072 cat > conftest.$ac_ext <<EOF
8073 #line 8074 "configure"
8074 #include "confdefs.h"
8077 #include <sys/types.h>
8078 #include <sys/stat.h>
8079 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8080 struct buf { int x; };
8081 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8082 static char *e (p, i)
8088 static char *f (char * (*g) (char **, int), char **p, ...)
8093 s = g (p, va_arg (v,int));
8097 int test (int i, double x);
8098 struct s1 {int (*f) (int a);};
8099 struct s2 {int (*f) (double a);};
8100 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8106 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8110 if { (eval echo configure:8111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8112 am_cv_prog_cc_stdc="$ac_arg"; break
8114 echo "configure: failed program was:" >&5
8115 cat conftest.$ac_ext >&5
8123 if test -z "$am_cv_prog_cc_stdc"; then
8124 echo "$ac_t""none needed" 1>&6
8126 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8128 case "x$am_cv_prog_cc_stdc" in
8130 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8133 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8134 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8137 # test for make depend flag
8140 if test -z "${MKDEP}"; then
8142 if test -z "${MKDEP_FLAGS}"; then
8143 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8144 echo "configure:8145: checking for ${OL_MKDEP} depend flag" >&5
8145 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8146 echo $ac_n "(cached) $ac_c" 1>&6
8150 for flag in "-M" "-xM"; do
8151 cat > conftest.c <<EOF
8154 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8155 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8157 if test ! -f conftest."${ac_object}" ; then
8159 OL_MKDEP_FLAGS="$flag"
8168 echo "$ac_t""$ol_cv_mkdep" 1>&6
8171 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8176 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8181 if test "${ol_cv_mkdep}" = no ; then
8182 # this will soon become an error
8183 echo "configure: warning: do not know how to generate dependencies" 1>&2
8186 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8187 echo "configure:8188: checking for afopen in -ls" >&5
8188 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8189 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8190 echo $ac_n "(cached) $ac_c" 1>&6
8192 ac_save_LIBS="$LIBS"
8194 cat > conftest.$ac_ext <<EOF
8195 #line 8196 "configure"
8196 #include "confdefs.h"
8197 /* Override any gcc2 internal prototype to avoid an error. */
8198 /* We use char because int might match the return type of a gcc2
8199 builtin and then its argument prototype would still apply. */
8206 if { (eval echo configure:8207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8208 eval "ac_cv_lib_$ac_lib_var=yes"
8210 echo "configure: failed program was:" >&5
8211 cat conftest.$ac_ext >&5
8213 eval "ac_cv_lib_$ac_lib_var=no"
8216 LIBS="$ac_save_LIBS"
8219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8220 echo "$ac_t""yes" 1>&6
8223 cat >> confdefs.h <<\EOF
8224 #define HAVE_AIX_SECURITY 1
8229 echo "$ac_t""no" 1>&6
8235 ac_cv_func_getopt=no
8236 cat >> confdefs.h <<\EOF
8237 #define BOTH_STRINGS_H 1
8244 WITH_MODULES_ENABLED=no
8245 if test $ol_enable_modules != no ; then
8246 for ac_hdr in ltdl.h
8248 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8249 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8250 echo "configure:8251: checking for $ac_hdr" >&5
8251 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8252 echo $ac_n "(cached) $ac_c" 1>&6
8254 cat > conftest.$ac_ext <<EOF
8255 #line 8256 "configure"
8256 #include "confdefs.h"
8259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8260 { (eval echo configure:8261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8262 if test -z "$ac_err"; then
8264 eval "ac_cv_header_$ac_safe=yes"
8267 echo "configure: failed program was:" >&5
8268 cat conftest.$ac_ext >&5
8270 eval "ac_cv_header_$ac_safe=no"
8274 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8275 echo "$ac_t""yes" 1>&6
8276 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8277 cat >> confdefs.h <<EOF
8278 #define $ac_tr_hdr 1
8282 echo "$ac_t""no" 1>&6
8287 if test $ac_cv_header_ltdl_h = no ; then
8288 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8291 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8292 echo "configure:8293: checking for lt_dlinit in -lltdl" >&5
8293 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8294 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8295 echo $ac_n "(cached) $ac_c" 1>&6
8297 ac_save_LIBS="$LIBS"
8299 cat > conftest.$ac_ext <<EOF
8300 #line 8301 "configure"
8301 #include "confdefs.h"
8302 /* Override any gcc2 internal prototype to avoid an error. */
8303 /* We use char because int might match the return type of a gcc2
8304 builtin and then its argument prototype would still apply. */
8311 if { (eval echo configure:8312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8313 eval "ac_cv_lib_$ac_lib_var=yes"
8315 echo "configure: failed program was:" >&5
8316 cat conftest.$ac_ext >&5
8318 eval "ac_cv_lib_$ac_lib_var=no"
8321 LIBS="$ac_save_LIBS"
8324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8325 echo "$ac_t""yes" 1>&6
8328 cat >> confdefs.h <<\EOF
8329 #define HAVE_LIBLTDL 1
8334 echo "$ac_t""no" 1>&6
8338 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8339 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8342 WITH_MODULES_ENABLED=yes
8345 for i in $Backends; do
8346 eval "ol_tmp=\$ol_enable_$i"
8347 if test $ol_tmp = mod ; then
8348 echo "configure: warning: building static $i backend" 1>&2
8349 eval "ol_enable_$i=yes"
8352 for i in $Overlays; do
8353 eval "ol_tmp=\$ol_enable_$i"
8354 if test $ol_tmp = mod ; then
8355 echo "configure: warning: building static $i overlay" 1>&2
8356 eval "ol_enable_$i=yes"
8362 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8363 echo "configure:8364: checking for EBCDIC" >&5
8364 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8365 echo $ac_n "(cached) $ac_c" 1>&6
8368 cat > conftest.$ac_ext <<EOF
8369 #line 8370 "configure"
8370 #include "confdefs.h"
8373 #include <__ASCII__/generate_error.h>
8377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8378 { (eval echo configure:8379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8380 if test -z "$ac_err"; then
8382 ol_cv_cpp_ebcdic=yes
8385 echo "configure: failed program was:" >&5
8386 cat conftest.$ac_ext >&5
8393 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8394 if test $ol_cv_cpp_ebcdic = yes ; then
8395 cat >> confdefs.h <<\EOF
8396 #define HAVE_EBCDIC 1
8401 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8402 echo "configure:8403: checking for ANSI C header files" >&5
8403 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8404 echo $ac_n "(cached) $ac_c" 1>&6
8406 cat > conftest.$ac_ext <<EOF
8407 #line 8408 "configure"
8408 #include "confdefs.h"
8414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8415 { (eval echo configure:8416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8416 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8417 if test -z "$ac_err"; then
8419 ol_cv_header_stdc=yes
8422 echo "configure: failed program was:" >&5
8423 cat conftest.$ac_ext >&5
8425 ol_cv_header_stdc=no
8429 if test $ol_cv_header_stdc = yes; then
8430 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8431 cat > conftest.$ac_ext <<EOF
8432 #line 8433 "configure"
8433 #include "confdefs.h"
8436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8437 egrep "memchr" >/dev/null 2>&1; then
8441 ol_cv_header_stdc=no
8447 if test $ol_cv_header_stdc = yes; then
8448 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8449 cat > conftest.$ac_ext <<EOF
8450 #line 8451 "configure"
8451 #include "confdefs.h"
8454 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8455 egrep "free" >/dev/null 2>&1; then
8459 ol_cv_header_stdc=no
8465 if test $ol_cv_header_stdc = yes; then
8466 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8467 if test "$cross_compiling" = yes; then
8470 cat > conftest.$ac_ext <<EOF
8471 #line 8472 "configure"
8472 #include "confdefs.h"
8475 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8476 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8478 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8479 || ('j' <= (c) && (c) <= 'r') \
8480 || ('s' <= (c) && (c) <= 'z'))
8481 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8483 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8484 int main () { int i; for (i = 0; i < 256; i++)
8485 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8489 if { (eval echo configure:8490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
8493 echo "configure: failed program was:" >&5
8494 cat conftest.$ac_ext >&5
8496 ol_cv_header_stdc=no
8504 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8505 if test $ol_cv_header_stdc = yes; then
8506 cat >> confdefs.h <<\EOF
8507 #define STDC_HEADERS 1
8511 ac_cv_header_stdc=disable
8514 if test $ol_cv_header_stdc != yes; then
8515 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8519 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8521 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8522 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8523 echo "configure:8524: checking for $ac_hdr that defines DIR" >&5
8524 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8525 echo $ac_n "(cached) $ac_c" 1>&6
8527 cat > conftest.$ac_ext <<EOF
8528 #line 8529 "configure"
8529 #include "confdefs.h"
8530 #include <sys/types.h>
8536 if { (eval echo configure:8537: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8538 eval "ac_cv_header_dirent_$ac_safe=yes"
8540 echo "configure: failed program was:" >&5
8541 cat conftest.$ac_ext >&5
8543 eval "ac_cv_header_dirent_$ac_safe=no"
8547 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8548 echo "$ac_t""yes" 1>&6
8549 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8550 cat >> confdefs.h <<EOF
8551 #define $ac_tr_hdr 1
8553 ac_header_dirent=$ac_hdr; break
8555 echo "$ac_t""no" 1>&6
8558 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8559 if test $ac_header_dirent = dirent.h; then
8560 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8561 echo "configure:8562: checking for opendir in -ldir" >&5
8562 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8563 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8564 echo $ac_n "(cached) $ac_c" 1>&6
8566 ac_save_LIBS="$LIBS"
8568 cat > conftest.$ac_ext <<EOF
8569 #line 8570 "configure"
8570 #include "confdefs.h"
8571 /* Override any gcc2 internal prototype to avoid an error. */
8572 /* We use char because int might match the return type of a gcc2
8573 builtin and then its argument prototype would still apply. */
8580 if { (eval echo configure:8581: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8582 eval "ac_cv_lib_$ac_lib_var=yes"
8584 echo "configure: failed program was:" >&5
8585 cat conftest.$ac_ext >&5
8587 eval "ac_cv_lib_$ac_lib_var=no"
8590 LIBS="$ac_save_LIBS"
8593 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8594 echo "$ac_t""yes" 1>&6
8597 echo "$ac_t""no" 1>&6
8601 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8602 echo "configure:8603: checking for opendir in -lx" >&5
8603 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8604 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8605 echo $ac_n "(cached) $ac_c" 1>&6
8607 ac_save_LIBS="$LIBS"
8609 cat > conftest.$ac_ext <<EOF
8610 #line 8611 "configure"
8611 #include "confdefs.h"
8612 /* Override any gcc2 internal prototype to avoid an error. */
8613 /* We use char because int might match the return type of a gcc2
8614 builtin and then its argument prototype would still apply. */
8621 if { (eval echo configure:8622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8623 eval "ac_cv_lib_$ac_lib_var=yes"
8625 echo "configure: failed program was:" >&5
8626 cat conftest.$ac_ext >&5
8628 eval "ac_cv_lib_$ac_lib_var=no"
8631 LIBS="$ac_save_LIBS"
8634 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8635 echo "$ac_t""yes" 1>&6
8638 echo "$ac_t""no" 1>&6
8643 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8644 echo "configure:8645: checking for sys/wait.h that is POSIX.1 compatible" >&5
8645 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8646 echo $ac_n "(cached) $ac_c" 1>&6
8648 cat > conftest.$ac_ext <<EOF
8649 #line 8650 "configure"
8650 #include "confdefs.h"
8651 #include <sys/types.h>
8652 #include <sys/wait.h>
8654 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8657 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8662 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8665 if { (eval echo configure:8666: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8667 ac_cv_header_sys_wait_h=yes
8669 echo "configure: failed program was:" >&5
8670 cat conftest.$ac_ext >&5
8672 ac_cv_header_sys_wait_h=no
8677 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8678 if test $ac_cv_header_sys_wait_h = yes; then
8679 cat >> confdefs.h <<\EOF
8680 #define HAVE_SYS_WAIT_H 1
8685 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8686 echo "configure:8687: checking POSIX termios" >&5
8687 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8688 echo $ac_n "(cached) $ac_c" 1>&6
8690 cat > conftest.$ac_ext <<EOF
8691 #line 8692 "configure"
8692 #include "confdefs.h"
8693 #include <sys/types.h>
8695 #include <termios.h>
8697 /* SunOS 4.0.3 has termios.h but not the library calls. */
8701 if { (eval echo configure:8702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8703 am_cv_sys_posix_termios=yes
8705 echo "configure: failed program was:" >&5
8706 cat conftest.$ac_ext >&5
8708 am_cv_sys_posix_termios=no
8713 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8716 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8717 echo "configure:8718: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8718 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8719 echo $ac_n "(cached) $ac_c" 1>&6
8721 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8723 gwinsz_in_termios_h=no
8724 if test $am_cv_sys_posix_termios = yes; then
8725 cat > conftest.$ac_ext <<EOF
8726 #line 8727 "configure"
8727 #include "confdefs.h"
8728 #include <sys/types.h>
8729 # include <termios.h>
8735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8736 egrep "yes" >/dev/null 2>&1; then
8738 gwinsz_in_termios_h=yes
8744 if test $gwinsz_in_termios_h = no; then
8745 cat > conftest.$ac_ext <<EOF
8746 #line 8747 "configure"
8747 #include "confdefs.h"
8748 #include <sys/types.h>
8749 # include <sys/ioctl.h>
8755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8756 egrep "yes" >/dev/null 2>&1; then
8758 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8766 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8767 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8768 cat >> confdefs.h <<\EOF
8769 #define GWINSZ_IN_SYS_IOCTL 1
8774 if test $am_cv_sys_posix_termios = yes ; then
8775 cat >> confdefs.h <<\EOF
8776 #define HAVE_POSIX_TERMIOS 1
8832 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8833 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8834 echo "configure:8835: checking for $ac_hdr" >&5
8835 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8836 echo $ac_n "(cached) $ac_c" 1>&6
8838 cat > conftest.$ac_ext <<EOF
8839 #line 8840 "configure"
8840 #include "confdefs.h"
8843 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8844 { (eval echo configure:8845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8845 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8846 if test -z "$ac_err"; then
8848 eval "ac_cv_header_$ac_safe=yes"
8851 echo "configure: failed program was:" >&5
8852 cat conftest.$ac_ext >&5
8854 eval "ac_cv_header_$ac_safe=no"
8858 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8859 echo "$ac_t""yes" 1>&6
8860 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8861 cat >> confdefs.h <<EOF
8862 #define $ac_tr_hdr 1
8866 echo "$ac_t""no" 1>&6
8872 for ac_func in sigaction sigset
8874 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8875 echo "configure:8876: checking for $ac_func" >&5
8876 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8877 echo $ac_n "(cached) $ac_c" 1>&6
8879 cat > conftest.$ac_ext <<EOF
8880 #line 8881 "configure"
8881 #include "confdefs.h"
8882 /* System header to define __stub macros and hopefully few prototypes,
8883 which can conflict with char $ac_func(); below. */
8885 /* Override any gcc2 internal prototype to avoid an error. */
8886 /* We use char because int might match the return type of a gcc2
8887 builtin and then its argument prototype would still apply. */
8893 /* The GNU C library defines this for functions which it implements
8894 to always fail with ENOSYS. Some functions are actually named
8895 something starting with __ and the normal name is an alias. */
8896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8904 if { (eval echo configure:8905: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8906 eval "ac_cv_func_$ac_func=yes"
8908 echo "configure: failed program was:" >&5
8909 cat conftest.$ac_ext >&5
8911 eval "ac_cv_func_$ac_func=no"
8916 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8917 echo "$ac_t""yes" 1>&6
8918 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8919 cat >> confdefs.h <<EOF
8920 #define $ac_tr_func 1
8924 echo "$ac_t""no" 1>&6
8929 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
8930 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
8931 echo "configure:8932: checking for sigset in -lV3" >&5
8932 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
8933 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8934 echo $ac_n "(cached) $ac_c" 1>&6
8936 ac_save_LIBS="$LIBS"
8938 cat > conftest.$ac_ext <<EOF
8939 #line 8940 "configure"
8940 #include "confdefs.h"
8941 /* Override any gcc2 internal prototype to avoid an error. */
8942 /* We use char because int might match the return type of a gcc2
8943 builtin and then its argument prototype would still apply. */
8950 if { (eval echo configure:8951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8952 eval "ac_cv_lib_$ac_lib_var=yes"
8954 echo "configure: failed program was:" >&5
8955 cat conftest.$ac_ext >&5
8957 eval "ac_cv_lib_$ac_lib_var=no"
8960 LIBS="$ac_save_LIBS"
8963 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8964 echo "$ac_t""yes" 1>&6
8965 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8966 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8967 cat >> confdefs.h <<EOF
8968 #define $ac_tr_lib 1
8974 echo "$ac_t""no" 1>&6
8979 if test "$ac_cv_cygwin" != yes && test "$ac_cv_header_winsock_h" = yes; then
8980 echo $ac_n "checking for winsock""... $ac_c" 1>&6
8981 echo "configure:8982: checking for winsock" >&5
8982 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
8983 echo $ac_n "(cached) $ac_c" 1>&6
8986 for curlib in ws2_32 wsock32; do
8987 LIBS="$LIBS -l$curlib"
8988 cat > conftest.$ac_ext <<EOF
8989 #line 8990 "configure"
8990 #include "confdefs.h"
8991 #include <winsock.h>
8996 select(0,NULL,NULL,NULL,NULL);
8998 gethostname(NULL,0);
9002 if { (eval echo configure:9003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9006 echo "configure: failed program was:" >&5
9007 cat conftest.$ac_ext >&5
9013 if test $ol_cv_winsock = yes; then
9014 cat >> confdefs.h <<\EOF
9015 #define HAVE_WINSOCK 1
9018 ac_cv_func_socket=yes
9019 ac_cv_func_select=yes
9020 ac_cv_func_closesocket=yes
9021 ac_cv_func_gethostname=yes
9022 if test $curlib = ws2_32; then
9023 ol_cv_winsock=winsock2
9024 cat >> confdefs.h <<\EOF
9025 #define HAVE_WINSOCK2 1
9035 echo "$ac_t""$ol_cv_winsock" 1>&6
9039 echo $ac_n "checking for socket""... $ac_c" 1>&6
9040 echo "configure:9041: checking for socket" >&5
9041 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
9042 echo $ac_n "(cached) $ac_c" 1>&6
9044 cat > conftest.$ac_ext <<EOF
9045 #line 9046 "configure"
9046 #include "confdefs.h"
9047 /* System header to define __stub macros and hopefully few prototypes,
9048 which can conflict with char socket(); below. */
9050 /* Override any gcc2 internal prototype to avoid an error. */
9051 /* We use char because int might match the return type of a gcc2
9052 builtin and then its argument prototype would still apply. */
9058 /* The GNU C library defines this for functions which it implements
9059 to always fail with ENOSYS. Some functions are actually named
9060 something starting with __ and the normal name is an alias. */
9061 #if defined (__stub_socket) || defined (__stub___socket)
9069 if { (eval echo configure:9070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9071 eval "ac_cv_func_socket=yes"
9073 echo "configure: failed program was:" >&5
9074 cat conftest.$ac_ext >&5
9076 eval "ac_cv_func_socket=no"
9081 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9082 echo "$ac_t""yes" 1>&6
9085 echo "$ac_t""no" 1>&6
9087 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9088 echo "configure:9089: checking for main in -lsocket" >&5
9089 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9090 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9091 echo $ac_n "(cached) $ac_c" 1>&6
9093 ac_save_LIBS="$LIBS"
9094 LIBS="-lsocket $LIBS"
9095 cat > conftest.$ac_ext <<EOF
9096 #line 9097 "configure"
9097 #include "confdefs.h"
9103 if { (eval echo configure:9104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9105 eval "ac_cv_lib_$ac_lib_var=yes"
9107 echo "configure: failed program was:" >&5
9108 cat conftest.$ac_ext >&5
9110 eval "ac_cv_lib_$ac_lib_var=no"
9113 LIBS="$ac_save_LIBS"
9116 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9117 echo "$ac_t""yes" 1>&6
9118 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9119 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9120 cat >> confdefs.h <<EOF
9121 #define $ac_tr_lib 1
9124 LIBS="-lsocket $LIBS"
9127 echo "$ac_t""no" 1>&6
9130 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9131 echo "configure:9132: checking for main in -lnet" >&5
9132 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9133 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9134 echo $ac_n "(cached) $ac_c" 1>&6
9136 ac_save_LIBS="$LIBS"
9138 cat > conftest.$ac_ext <<EOF
9139 #line 9140 "configure"
9140 #include "confdefs.h"
9146 if { (eval echo configure:9147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9148 eval "ac_cv_lib_$ac_lib_var=yes"
9150 echo "configure: failed program was:" >&5
9151 cat conftest.$ac_ext >&5
9153 eval "ac_cv_lib_$ac_lib_var=no"
9156 LIBS="$ac_save_LIBS"
9159 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9160 echo "$ac_t""yes" 1>&6
9161 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9162 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9163 cat >> confdefs.h <<EOF
9164 #define $ac_tr_lib 1
9170 echo "$ac_t""no" 1>&6
9173 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9174 echo "configure:9175: checking for main in -lnsl_s" >&5
9175 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9176 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9177 echo $ac_n "(cached) $ac_c" 1>&6
9179 ac_save_LIBS="$LIBS"
9180 LIBS="-lnsl_s $LIBS"
9181 cat > conftest.$ac_ext <<EOF
9182 #line 9183 "configure"
9183 #include "confdefs.h"
9189 if { (eval echo configure:9190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9191 eval "ac_cv_lib_$ac_lib_var=yes"
9193 echo "configure: failed program was:" >&5
9194 cat conftest.$ac_ext >&5
9196 eval "ac_cv_lib_$ac_lib_var=no"
9199 LIBS="$ac_save_LIBS"
9202 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9203 echo "$ac_t""yes" 1>&6
9204 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9205 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9206 cat >> confdefs.h <<EOF
9207 #define $ac_tr_lib 1
9210 LIBS="-lnsl_s $LIBS"
9213 echo "$ac_t""no" 1>&6
9216 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9217 echo "configure:9218: checking for main in -lnsl" >&5
9218 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9219 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9220 echo $ac_n "(cached) $ac_c" 1>&6
9222 ac_save_LIBS="$LIBS"
9224 cat > conftest.$ac_ext <<EOF
9225 #line 9226 "configure"
9226 #include "confdefs.h"
9232 if { (eval echo configure:9233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9234 eval "ac_cv_lib_$ac_lib_var=yes"
9236 echo "configure: failed program was:" >&5
9237 cat conftest.$ac_ext >&5
9239 eval "ac_cv_lib_$ac_lib_var=no"
9242 LIBS="$ac_save_LIBS"
9245 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9246 echo "$ac_t""yes" 1>&6
9247 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9248 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9249 cat >> confdefs.h <<EOF
9250 #define $ac_tr_lib 1
9256 echo "$ac_t""no" 1>&6
9259 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9260 echo "configure:9261: checking for socket in -linet" >&5
9261 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9262 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9263 echo $ac_n "(cached) $ac_c" 1>&6
9265 ac_save_LIBS="$LIBS"
9267 cat > conftest.$ac_ext <<EOF
9268 #line 9269 "configure"
9269 #include "confdefs.h"
9270 /* Override any gcc2 internal prototype to avoid an error. */
9271 /* We use char because int might match the return type of a gcc2
9272 builtin and then its argument prototype would still apply. */
9279 if { (eval echo configure:9280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9281 eval "ac_cv_lib_$ac_lib_var=yes"
9283 echo "configure: failed program was:" >&5
9284 cat conftest.$ac_ext >&5
9286 eval "ac_cv_lib_$ac_lib_var=no"
9289 LIBS="$ac_save_LIBS"
9292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9293 echo "$ac_t""yes" 1>&6
9294 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9295 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9296 cat >> confdefs.h <<EOF
9297 #define $ac_tr_lib 1
9303 echo "$ac_t""no" 1>&6
9306 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9307 echo "configure:9308: checking for main in -lgen" >&5
9308 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9309 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9310 echo $ac_n "(cached) $ac_c" 1>&6
9312 ac_save_LIBS="$LIBS"
9314 cat > conftest.$ac_ext <<EOF
9315 #line 9316 "configure"
9316 #include "confdefs.h"
9322 if { (eval echo configure:9323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9324 eval "ac_cv_lib_$ac_lib_var=yes"
9326 echo "configure: failed program was:" >&5
9327 cat conftest.$ac_ext >&5
9329 eval "ac_cv_lib_$ac_lib_var=no"
9332 LIBS="$ac_save_LIBS"
9335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9336 echo "$ac_t""yes" 1>&6
9337 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9338 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9339 cat >> confdefs.h <<EOF
9340 #define $ac_tr_lib 1
9346 echo "$ac_t""no" 1>&6
9353 echo $ac_n "checking for select""... $ac_c" 1>&6
9354 echo "configure:9355: checking for select" >&5
9355 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9356 echo $ac_n "(cached) $ac_c" 1>&6
9358 cat > conftest.$ac_ext <<EOF
9359 #line 9360 "configure"
9360 #include "confdefs.h"
9361 /* System header to define __stub macros and hopefully few prototypes,
9362 which can conflict with char select(); below. */
9364 /* Override any gcc2 internal prototype to avoid an error. */
9365 /* We use char because int might match the return type of a gcc2
9366 builtin and then its argument prototype would still apply. */
9372 /* The GNU C library defines this for functions which it implements
9373 to always fail with ENOSYS. Some functions are actually named
9374 something starting with __ and the normal name is an alias. */
9375 #if defined (__stub_select) || defined (__stub___select)
9383 if { (eval echo configure:9384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9385 eval "ac_cv_func_select=yes"
9387 echo "configure: failed program was:" >&5
9388 cat conftest.$ac_ext >&5
9390 eval "ac_cv_func_select=no"
9395 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9396 echo "$ac_t""yes" 1>&6
9399 echo "$ac_t""no" 1>&6
9400 { echo "configure: error: select() required." 1>&2; exit 1; }
9404 if test "${ac_cv_header_winsock_h}" != yes; then
9405 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9406 echo "configure:9407: checking types of arguments for select()" >&5
9407 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9408 echo $ac_n "(cached) $ac_c" 1>&6
9410 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9411 echo $ac_n "(cached) $ac_c" 1>&6
9413 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9414 echo $ac_n "(cached) $ac_c" 1>&6
9416 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9417 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9418 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9419 cat > conftest.$ac_ext <<EOF
9420 #line 9421 "configure"
9421 #include "confdefs.h"
9422 #ifdef HAVE_SYS_TYPES_H
9423 #include <sys/types.h>
9425 #ifdef HAVE_SYS_TIME_H
9426 #include <sys/time.h>
9428 #ifdef HAVE_SYS_SELECT_H
9429 #include <sys/select.h>
9431 #ifdef HAVE_SYS_SOCKET_H
9432 #include <sys/socket.h>
9434 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);
9439 if { (eval echo configure:9440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9441 ac_not_found=no ; break 3
9443 echo "configure: failed program was:" >&5
9444 cat conftest.$ac_ext >&5
9458 if test "$ac_not_found" = yes; then
9459 ac_cv_func_select_arg1=int
9460 ac_cv_func_select_arg234='int *'
9461 ac_cv_func_select_arg5='struct timeval *'
9463 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9464 cat >> confdefs.h <<EOF
9465 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9468 cat >> confdefs.h <<EOF
9469 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9472 cat >> confdefs.h <<EOF
9473 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9482 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9483 echo "configure:9484: checking for $ac_func" >&5
9484 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9485 echo $ac_n "(cached) $ac_c" 1>&6
9487 cat > conftest.$ac_ext <<EOF
9488 #line 9489 "configure"
9489 #include "confdefs.h"
9490 /* System header to define __stub macros and hopefully few prototypes,
9491 which can conflict with char $ac_func(); below. */
9493 /* Override any gcc2 internal prototype to avoid an error. */
9494 /* We use char because int might match the return type of a gcc2
9495 builtin and then its argument prototype would still apply. */
9501 /* The GNU C library defines this for functions which it implements
9502 to always fail with ENOSYS. Some functions are actually named
9503 something starting with __ and the normal name is an alias. */
9504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9512 if { (eval echo configure:9513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9514 eval "ac_cv_func_$ac_func=yes"
9516 echo "configure: failed program was:" >&5
9517 cat conftest.$ac_ext >&5
9519 eval "ac_cv_func_$ac_func=no"
9524 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9525 echo "$ac_t""yes" 1>&6
9526 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9527 cat >> confdefs.h <<EOF
9528 #define $ac_tr_func 1
9532 echo "$ac_t""no" 1>&6
9536 for ac_hdr in poll.h
9538 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9539 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9540 echo "configure:9541: checking for $ac_hdr" >&5
9541 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9542 echo $ac_n "(cached) $ac_c" 1>&6
9544 cat > conftest.$ac_ext <<EOF
9545 #line 9546 "configure"
9546 #include "confdefs.h"
9549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9550 { (eval echo configure:9551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9552 if test -z "$ac_err"; then
9554 eval "ac_cv_header_$ac_safe=yes"
9557 echo "configure: failed program was:" >&5
9558 cat conftest.$ac_ext >&5
9560 eval "ac_cv_header_$ac_safe=no"
9564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9565 echo "$ac_t""yes" 1>&6
9566 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9567 cat >> confdefs.h <<EOF
9568 #define $ac_tr_hdr 1
9572 echo "$ac_t""no" 1>&6
9577 for ac_hdr in sys/epoll.h
9579 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9581 echo "configure:9582: checking for $ac_hdr" >&5
9582 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9583 echo $ac_n "(cached) $ac_c" 1>&6
9585 cat > conftest.$ac_ext <<EOF
9586 #line 9587 "configure"
9587 #include "confdefs.h"
9590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9591 { (eval echo configure:9592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9593 if test -z "$ac_err"; then
9595 eval "ac_cv_header_$ac_safe=yes"
9598 echo "configure: failed program was:" >&5
9599 cat conftest.$ac_ext >&5
9601 eval "ac_cv_header_$ac_safe=no"
9605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9606 echo "$ac_t""yes" 1>&6
9607 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9608 cat >> confdefs.h <<EOF
9609 #define $ac_tr_hdr 1
9613 echo "$ac_t""no" 1>&6
9617 if test "${ac_cv_header_sys_epoll_h}" = yes; then
9618 echo $ac_n "checking for epoll system call""... $ac_c" 1>&6
9619 echo "configure:9620: checking for epoll system call" >&5
9620 if test "$cross_compiling" = yes; then
9621 echo "$ac_t""no" 1>&6
9623 cat > conftest.$ac_ext <<EOF
9624 #line 9625 "configure"
9625 #include "confdefs.h"
9626 int main(int argc, char *argv)
9628 int epfd = epoll_create(256);
9629 exit (epfd == -1 ? 1 : 0);
9632 if { (eval echo configure:9633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
9634 echo "$ac_t""yes" 1>&6
9635 cat >> confdefs.h <<\EOF
9636 #define HAVE_EPOLL 1
9640 echo "configure: failed program was:" >&5
9641 cat conftest.$ac_ext >&5
9643 echo "$ac_t""no" 1>&6
9651 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
9652 echo "configure:9653: checking declaration of sys_errlist" >&5
9653 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
9654 echo $ac_n "(cached) $ac_c" 1>&6
9657 cat > conftest.$ac_ext <<EOF
9658 #line 9659 "configure"
9659 #include "confdefs.h"
9662 #include <sys/types.h>
9668 char *c = (char *) *sys_errlist
9671 if { (eval echo configure:9672: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9673 ol_cv_dcl_sys_errlist=yes
9674 ol_cv_have_sys_errlist=yes
9676 echo "configure: failed program was:" >&5
9677 cat conftest.$ac_ext >&5
9679 ol_cv_dcl_sys_errlist=no
9684 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
9686 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
9687 if test $ol_cv_dcl_sys_errlist = no ; then
9688 cat >> confdefs.h <<\EOF
9689 #define DECL_SYS_ERRLIST 1
9693 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
9694 echo "configure:9695: checking existence of sys_errlist" >&5
9695 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
9696 echo $ac_n "(cached) $ac_c" 1>&6
9699 cat > conftest.$ac_ext <<EOF
9700 #line 9701 "configure"
9701 #include "confdefs.h"
9704 char *c = (char *) *sys_errlist
9707 if { (eval echo configure:9708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9709 ol_cv_have_sys_errlist=yes
9711 echo "configure: failed program was:" >&5
9712 cat conftest.$ac_ext >&5
9714 ol_cv_have_sys_errlist=no
9719 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
9721 if test $ol_cv_have_sys_errlist = yes ; then
9722 cat >> confdefs.h <<\EOF
9723 #define HAVE_SYS_ERRLIST 1
9727 for ac_func in strerror strerror_r
9729 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9730 echo "configure:9731: checking for $ac_func" >&5
9731 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9732 echo $ac_n "(cached) $ac_c" 1>&6
9734 cat > conftest.$ac_ext <<EOF
9735 #line 9736 "configure"
9736 #include "confdefs.h"
9737 /* System header to define __stub macros and hopefully few prototypes,
9738 which can conflict with char $ac_func(); below. */
9740 /* Override any gcc2 internal prototype to avoid an error. */
9741 /* We use char because int might match the return type of a gcc2
9742 builtin and then its argument prototype would still apply. */
9748 /* The GNU C library defines this for functions which it implements
9749 to always fail with ENOSYS. Some functions are actually named
9750 something starting with __ and the normal name is an alias. */
9751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9759 if { (eval echo configure:9760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9761 eval "ac_cv_func_$ac_func=yes"
9763 echo "configure: failed program was:" >&5
9764 cat conftest.$ac_ext >&5
9766 eval "ac_cv_func_$ac_func=no"
9771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9772 echo "$ac_t""yes" 1>&6
9773 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9774 cat >> confdefs.h <<EOF
9775 #define $ac_tr_func 1
9779 echo "$ac_t""no" 1>&6
9783 ol_cv_func_strerror_r=no
9784 if test "${ac_cv_func_strerror_r}" = yes ; then
9785 echo $ac_n "checking non-posix strerror_r""... $ac_c" 1>&6
9786 echo "configure:9787: checking non-posix strerror_r" >&5
9787 if eval "test \"\${ol_cv_nonposix_strerror_r+set}\" = set"; then
9788 echo $ac_n "(cached) $ac_c" 1>&6
9791 cat > conftest.$ac_ext <<EOF
9792 #line 9793 "configure"
9793 #include "confdefs.h"
9796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9797 egrep "strerror_r" >/dev/null 2>&1; then
9799 ol_decl_strerror_r=yes
9802 ol_decl_strerror_r=no
9806 if test $ol_decl_strerror_r = yes ; then
9807 cat > conftest.$ac_ext <<EOF
9808 #line 9809 "configure"
9809 #include "confdefs.h"
9812 /* from autoconf 2.59 */
9814 char x = *strerror_r (0, buf, sizeof buf);
9815 char *p = strerror_r (0, buf, sizeof buf);
9819 if { (eval echo configure:9820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9821 ol_cv_nonposix_strerror_r=yes
9823 echo "configure: failed program was:" >&5
9824 cat conftest.$ac_ext >&5
9826 ol_cv_nonposix_strerror_r=no
9830 if test "$cross_compiling" = yes; then
9831 ol_cv_nonposix_strerror=no
9833 cat > conftest.$ac_ext <<EOF
9834 #line 9835 "configure"
9835 #include "confdefs.h"
9840 strerror_r( 1, buf, sizeof buf );
9841 exit( buf[0] == 0 );
9845 if { (eval echo configure:9846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
9847 ol_cv_nonposix_strerror_r=yes
9849 echo "configure: failed program was:" >&5
9850 cat conftest.$ac_ext >&5
9852 ol_cv_nonposix_strerror=no
9861 echo "$ac_t""$ol_cv_nonposix_strerror_r" 1>&6
9862 if test $ol_cv_nonposix_strerror_r = yes ; then
9863 cat >> confdefs.h <<\EOF
9864 #define HAVE_NONPOSIX_STRERROR_R 1
9869 elif test "${ac_cv_func_strerror}" = no ; then
9870 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
9871 echo "configure:9872: checking declaration of sys_errlist" >&5
9872 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
9873 echo $ac_n "(cached) $ac_c" 1>&6
9876 cat > conftest.$ac_ext <<EOF
9877 #line 9878 "configure"
9878 #include "confdefs.h"
9881 #include <sys/types.h>
9887 char *c = (char *) *sys_errlist
9890 if { (eval echo configure:9891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9892 ol_cv_dcl_sys_errlist=yes
9893 ol_cv_have_sys_errlist=yes
9895 echo "configure: failed program was:" >&5
9896 cat conftest.$ac_ext >&5
9898 ol_cv_dcl_sys_errlist=no
9903 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
9905 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
9906 if test $ol_cv_dcl_sys_errlist = no ; then
9907 cat >> confdefs.h <<\EOF
9908 #define DECL_SYS_ERRLIST 1
9912 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
9913 echo "configure:9914: checking existence of sys_errlist" >&5
9914 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
9915 echo $ac_n "(cached) $ac_c" 1>&6
9918 cat > conftest.$ac_ext <<EOF
9919 #line 9920 "configure"
9920 #include "confdefs.h"
9923 char *c = (char *) *sys_errlist
9926 if { (eval echo configure:9927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9928 ol_cv_have_sys_errlist=yes
9930 echo "configure: failed program was:" >&5
9931 cat conftest.$ac_ext >&5
9933 ol_cv_have_sys_errlist=no
9938 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
9940 if test $ol_cv_have_sys_errlist = yes ; then
9941 cat >> confdefs.h <<\EOF
9942 #define HAVE_SYS_ERRLIST 1
9950 for ac_hdr in regex.h
9952 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9953 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9954 echo "configure:9955: checking for $ac_hdr" >&5
9955 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9956 echo $ac_n "(cached) $ac_c" 1>&6
9958 cat > conftest.$ac_ext <<EOF
9959 #line 9960 "configure"
9960 #include "confdefs.h"
9963 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9964 { (eval echo configure:9965: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9965 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9966 if test -z "$ac_err"; then
9968 eval "ac_cv_header_$ac_safe=yes"
9971 echo "configure: failed program was:" >&5
9972 cat conftest.$ac_ext >&5
9974 eval "ac_cv_header_$ac_safe=no"
9978 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9979 echo "$ac_t""yes" 1>&6
9980 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9981 cat >> confdefs.h <<EOF
9982 #define $ac_tr_hdr 1
9986 echo "$ac_t""no" 1>&6
9990 if test "$ac_cv_header_regex_h" != yes ; then
9991 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9994 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9995 echo "configure:9996: checking for library containing regfree" >&5
9996 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9997 echo $ac_n "(cached) $ac_c" 1>&6
9999 ac_func_search_save_LIBS="$LIBS"
10000 ac_cv_search_regfree="no"
10001 cat > conftest.$ac_ext <<EOF
10002 #line 10003 "configure"
10003 #include "confdefs.h"
10004 /* Override any gcc2 internal prototype to avoid an error. */
10005 /* We use char because int might match the return type of a gcc2
10006 builtin and then its argument prototype would still apply. */
10013 if { (eval echo configure:10014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10015 ac_cv_search_regfree="none required"
10017 echo "configure: failed program was:" >&5
10018 cat conftest.$ac_ext >&5
10021 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
10022 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10023 cat > conftest.$ac_ext <<EOF
10024 #line 10025 "configure"
10025 #include "confdefs.h"
10026 /* Override any gcc2 internal prototype to avoid an error. */
10027 /* We use char because int might match the return type of a gcc2
10028 builtin and then its argument prototype would still apply. */
10035 if { (eval echo configure:10036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10037 ac_cv_search_regfree="-l$ac_lib"
10040 echo "configure: failed program was:" >&5
10041 cat conftest.$ac_ext >&5
10045 LIBS="$ac_func_search_save_LIBS"
10048 echo "$ac_t""$ac_cv_search_regfree" 1>&6
10049 if test "$ac_cv_search_regfree" != "no"; then
10050 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
10053 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
10057 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
10058 echo "configure:10059: checking for compatible POSIX regex" >&5
10059 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
10060 echo $ac_n "(cached) $ac_c" 1>&6
10063 if test "$cross_compiling" = yes; then
10064 ol_cv_c_posix_regex=cross
10066 cat > conftest.$ac_ext <<EOF
10067 #line 10068 "configure"
10068 #include "confdefs.h"
10070 #include <sys/types.h>
10072 static char *pattern, *string;
10080 if(regcomp(&re, pattern, 0)) {
10084 string = "ALL MATCH";
10086 rc = regexec(&re, string, 0, (void*)0, 0);
10093 if { (eval echo configure:10094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
10095 ol_cv_c_posix_regex=yes
10097 echo "configure: failed program was:" >&5
10098 cat conftest.$ac_ext >&5
10100 ol_cv_c_posix_regex=no
10107 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
10109 if test "$ol_cv_c_posix_regex" = no ; then
10110 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
10115 for ac_hdr in sys/uuid.h
10117 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10118 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10119 echo "configure:10120: checking for $ac_hdr" >&5
10120 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10121 echo $ac_n "(cached) $ac_c" 1>&6
10123 cat > conftest.$ac_ext <<EOF
10124 #line 10125 "configure"
10125 #include "confdefs.h"
10128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10129 { (eval echo configure:10130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10131 if test -z "$ac_err"; then
10133 eval "ac_cv_header_$ac_safe=yes"
10136 echo "configure: failed program was:" >&5
10137 cat conftest.$ac_ext >&5
10139 eval "ac_cv_header_$ac_safe=no"
10143 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10144 echo "$ac_t""yes" 1>&6
10145 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10146 cat >> confdefs.h <<EOF
10147 #define $ac_tr_hdr 1
10151 echo "$ac_t""no" 1>&6
10155 if test $ac_cv_header_sys_uuid_h = yes ; then
10158 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
10159 echo "configure:10160: checking for library containing uuid_to_str" >&5
10160 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
10161 echo $ac_n "(cached) $ac_c" 1>&6
10163 ac_func_search_save_LIBS="$LIBS"
10164 ac_cv_search_uuid_to_str="no"
10165 cat > conftest.$ac_ext <<EOF
10166 #line 10167 "configure"
10167 #include "confdefs.h"
10168 /* Override any gcc2 internal prototype to avoid an error. */
10169 /* We use char because int might match the return type of a gcc2
10170 builtin and then its argument prototype would still apply. */
10171 char uuid_to_str();
10177 if { (eval echo configure:10178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10179 ac_cv_search_uuid_to_str="none required"
10181 echo "configure: failed program was:" >&5
10182 cat conftest.$ac_ext >&5
10185 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
10186 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10187 cat > conftest.$ac_ext <<EOF
10188 #line 10189 "configure"
10189 #include "confdefs.h"
10190 /* Override any gcc2 internal prototype to avoid an error. */
10191 /* We use char because int might match the return type of a gcc2
10192 builtin and then its argument prototype would still apply. */
10193 char uuid_to_str();
10199 if { (eval echo configure:10200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10201 ac_cv_search_uuid_to_str="-l$ac_lib"
10204 echo "configure: failed program was:" >&5
10205 cat conftest.$ac_ext >&5
10209 LIBS="$ac_func_search_save_LIBS"
10212 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
10213 if test "$ac_cv_search_uuid_to_str" != "no"; then
10214 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
10221 if test have_uuid = yes ; then
10222 cat >> confdefs.h <<\EOF
10223 #define HAVE_UUID_TO_STR 1
10227 test "$ac_cv_search_uuid_to_str" = "none required" || \
10228 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
10232 if test $have_uuid = no ; then
10233 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
10234 echo "configure:10235: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
10236 LIBS="$LIBS -lrpcrt4"
10237 cat > conftest.$ac_ext <<EOF
10238 #line 10239 "configure"
10239 #include "confdefs.h"
10241 int __stdcall UuidCreate(void *);
10242 int __stdcall UuidToStringA(void *,void **);
10247 UuidToStringA(0,0);
10251 if { (eval echo configure:10252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10255 echo "configure: failed program was:" >&5
10256 cat conftest.$ac_ext >&5
10261 if test $need_rpcrt = yes; then
10262 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
10265 echo "$ac_t""$need_rpcrt" 1>&6
10268 ol_cv_lib_resolver=no
10269 if test $ol_cv_lib_resolver = no ; then
10270 echo $ac_n "checking for resolver link (default)""... $ac_c" 1>&6
10271 echo "configure:10272: checking for resolver link (default)" >&5
10272 if eval "test \"\${ol_cv_resolver_none+set}\" = set"; then
10273 echo $ac_n "(cached) $ac_c" 1>&6
10278 LIBS="$ol_RESOLVER_LIB $LIBS"
10280 cat > conftest.$ac_ext <<EOF
10281 #line 10282 "configure"
10282 #include "confdefs.h"
10284 #ifdef HAVE_SYS_TYPES_H
10285 # include <sys/types.h>
10287 #include <netinet/in.h>
10288 #ifdef HAVE_ARPA_NAMESER_H
10289 # include <arpa/nameser.h>
10291 #ifdef HAVE_RESOLV_H
10292 # include <resolv.h>
10298 char *request = NULL;
10299 unsigned char reply[64*1024];
10300 unsigned char host[64*1024];
10304 /* Bind 8/9 interface */
10305 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
10307 /* Bind 4 interface */
10311 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
10315 /* Bind 8/9 interface */
10317 #elif defined(HFIXEDSZ)
10318 /* Bind 4 interface w/ HFIXEDSZ */
10321 /* Bind 4 interface w/o HFIXEDSZ */
10322 p += sizeof(HEADER);
10324 status = dn_expand( reply, reply+len, p, host, sizeof(host));
10328 if { (eval echo configure:10329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10330 ol_cv_resolver_none=yes
10332 echo "configure: failed program was:" >&5
10333 cat conftest.$ac_ext >&5
10335 ol_cv_resolver_none=no
10343 echo "$ac_t""$ol_cv_resolver_none" 1>&6
10345 if test $ol_cv_resolver_none = yes ; then
10346 ol_cv_lib_resolver=yes
10350 if test $ol_cv_lib_resolver = no ; then
10351 echo $ac_n "checking for resolver link (-lresolv)""... $ac_c" 1>&6
10352 echo "configure:10353: checking for resolver link (-lresolv)" >&5
10353 if eval "test \"\${ol_cv_resolver_resolv+set}\" = set"; then
10354 echo $ac_n "(cached) $ac_c" 1>&6
10357 ol_RESOLVER_LIB=-lresolv
10359 LIBS="$ol_RESOLVER_LIB $LIBS"
10361 cat > conftest.$ac_ext <<EOF
10362 #line 10363 "configure"
10363 #include "confdefs.h"
10365 #ifdef HAVE_SYS_TYPES_H
10366 # include <sys/types.h>
10368 #include <netinet/in.h>
10369 #ifdef HAVE_ARPA_NAMESER_H
10370 # include <arpa/nameser.h>
10372 #ifdef HAVE_RESOLV_H
10373 # include <resolv.h>
10379 char *request = NULL;
10380 unsigned char reply[64*1024];
10381 unsigned char host[64*1024];
10385 /* Bind 8/9 interface */
10386 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
10388 /* Bind 4 interface */
10392 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
10396 /* Bind 8/9 interface */
10398 #elif defined(HFIXEDSZ)
10399 /* Bind 4 interface w/ HFIXEDSZ */
10402 /* Bind 4 interface w/o HFIXEDSZ */
10403 p += sizeof(HEADER);
10405 status = dn_expand( reply, reply+len, p, host, sizeof(host));
10409 if { (eval echo configure:10410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10411 ol_cv_resolver_resolv=yes
10413 echo "configure: failed program was:" >&5
10414 cat conftest.$ac_ext >&5
10416 ol_cv_resolver_resolv=no
10424 echo "$ac_t""$ol_cv_resolver_resolv" 1>&6
10426 if test $ol_cv_resolver_resolv = yes ; then
10427 ol_cv_lib_resolver=-lresolv
10431 if test $ol_cv_lib_resolver = no ; then
10432 echo $ac_n "checking for resolver link (-lbind)""... $ac_c" 1>&6
10433 echo "configure:10434: checking for resolver link (-lbind)" >&5
10434 if eval "test \"\${ol_cv_resolver_bind+set}\" = set"; then
10435 echo $ac_n "(cached) $ac_c" 1>&6
10438 ol_RESOLVER_LIB=-lbind
10440 LIBS="$ol_RESOLVER_LIB $LIBS"
10442 cat > conftest.$ac_ext <<EOF
10443 #line 10444 "configure"
10444 #include "confdefs.h"
10446 #ifdef HAVE_SYS_TYPES_H
10447 # include <sys/types.h>
10449 #include <netinet/in.h>
10450 #ifdef HAVE_ARPA_NAMESER_H
10451 # include <arpa/nameser.h>
10453 #ifdef HAVE_RESOLV_H
10454 # include <resolv.h>
10460 char *request = NULL;
10461 unsigned char reply[64*1024];
10462 unsigned char host[64*1024];
10466 /* Bind 8/9 interface */
10467 len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
10469 /* Bind 4 interface */
10473 len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
10477 /* Bind 8/9 interface */
10479 #elif defined(HFIXEDSZ)
10480 /* Bind 4 interface w/ HFIXEDSZ */
10483 /* Bind 4 interface w/o HFIXEDSZ */
10484 p += sizeof(HEADER);
10486 status = dn_expand( reply, reply+len, p, host, sizeof(host));
10490 if { (eval echo configure:10491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10492 ol_cv_resolver_bind=yes
10494 echo "configure: failed program was:" >&5
10495 cat conftest.$ac_ext >&5
10497 ol_cv_resolver_bind=no
10505 echo "$ac_t""$ol_cv_resolver_bind" 1>&6
10507 if test $ol_cv_resolver_bind = yes ; then
10508 ol_cv_lib_resolver=-lbind
10515 if test "$ol_cv_lib_resolver" != no ; then
10516 cat >> confdefs.h <<\EOF
10517 #define HAVE_RES_QUERY 1
10521 if test "$ol_enable_dnssrv" != no ; then
10525 if test "$ol_cv_lib_resolver" != yes ; then
10526 LIBS="$ol_cv_lib_resolver $LIBS"
10530 if test "$ol_enable_dnssrv" = yes -o "$ol_enable_dnssrv" = mod ; then
10531 if test "$ol_link_dnssrv" = no ; then
10532 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10535 ol_enable_dnssrv=no
10538 for ac_func in hstrerror
10540 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10541 echo "configure:10542: checking for $ac_func" >&5
10542 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10543 echo $ac_n "(cached) $ac_c" 1>&6
10545 cat > conftest.$ac_ext <<EOF
10546 #line 10547 "configure"
10547 #include "confdefs.h"
10548 /* System header to define __stub macros and hopefully few prototypes,
10549 which can conflict with char $ac_func(); below. */
10550 #include <assert.h>
10551 /* Override any gcc2 internal prototype to avoid an error. */
10552 /* We use char because int might match the return type of a gcc2
10553 builtin and then its argument prototype would still apply. */
10559 /* The GNU C library defines this for functions which it implements
10560 to always fail with ENOSYS. Some functions are actually named
10561 something starting with __ and the normal name is an alias. */
10562 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10570 if { (eval echo configure:10571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10572 eval "ac_cv_func_$ac_func=yes"
10574 echo "configure: failed program was:" >&5
10575 cat conftest.$ac_ext >&5
10577 eval "ac_cv_func_$ac_func=no"
10582 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10583 echo "$ac_t""yes" 1>&6
10584 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10585 cat >> confdefs.h <<EOF
10586 #define $ac_tr_func 1
10590 echo "$ac_t""no" 1>&6
10595 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
10597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10598 echo "configure:10599: checking for $ac_func" >&5
10599 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10600 echo $ac_n "(cached) $ac_c" 1>&6
10602 cat > conftest.$ac_ext <<EOF
10603 #line 10604 "configure"
10604 #include "confdefs.h"
10605 /* System header to define __stub macros and hopefully few prototypes,
10606 which can conflict with char $ac_func(); below. */
10607 #include <assert.h>
10608 /* Override any gcc2 internal prototype to avoid an error. */
10609 /* We use char because int might match the return type of a gcc2
10610 builtin and then its argument prototype would still apply. */
10616 /* The GNU C library defines this for functions which it implements
10617 to always fail with ENOSYS. Some functions are actually named
10618 something starting with __ and the normal name is an alias. */
10619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10627 if { (eval echo configure:10628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10629 eval "ac_cv_func_$ac_func=yes"
10631 echo "configure: failed program was:" >&5
10632 cat conftest.$ac_ext >&5
10634 eval "ac_cv_func_$ac_func=no"
10639 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10640 echo "$ac_t""yes" 1>&6
10641 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10642 cat >> confdefs.h <<EOF
10643 #define $ac_tr_func 1
10647 echo "$ac_t""no" 1>&6
10653 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10654 if test $ol_enable_ipv6 = yes ; then
10655 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10657 elif test $ol_enable_ipv6 != no ; then
10658 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10659 echo "configure:10660: checking INET6_ADDRSTRLEN" >&5
10660 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10661 echo $ac_n "(cached) $ac_c" 1>&6
10664 cat > conftest.$ac_ext <<EOF
10665 #line 10666 "configure"
10666 #include "confdefs.h"
10668 # include <netinet/in.h>
10669 # ifdef INET6_ADDRSTRLEN
10670 __has_inet6_addrstrlen__;
10674 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10675 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10677 ol_cv_inet6_addrstrlen=yes
10680 ol_cv_inet6_addrstrlen=no
10686 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10689 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10690 echo "configure:10691: checking struct sockaddr_storage" >&5
10691 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10692 echo $ac_n "(cached) $ac_c" 1>&6
10695 cat > conftest.$ac_ext <<EOF
10696 #line 10697 "configure"
10697 #include "confdefs.h"
10699 #include <sys/types.h>
10700 #include <sys/socket.h>
10704 struct sockaddr_storage ss;
10708 if { (eval echo configure:10709: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10710 ol_cv_struct_sockaddr_storage=yes
10712 echo "configure: failed program was:" >&5
10713 cat conftest.$ac_ext >&5
10715 ol_cv_struct_sockaddr_storage=no
10720 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10722 if test $ol_cv_inet6_addrstrlen = yes \
10723 -a $ol_cv_struct_sockaddr_storage = yes ; then
10725 elif test $ol_enable_ipv6 = yes \
10726 -a $ol_cv_inet6_addrstrlen = no ; then
10727 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10728 elif test $ol_enable_ipv6 = yes \
10729 -a $ol_cv_struct_sockaddr_storage = no ; then
10730 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10734 if test $ol_enable_local != no ; then
10735 for ac_hdr in sys/un.h
10737 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10738 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10739 echo "configure:10740: checking for $ac_hdr" >&5
10740 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10741 echo $ac_n "(cached) $ac_c" 1>&6
10743 cat > conftest.$ac_ext <<EOF
10744 #line 10745 "configure"
10745 #include "confdefs.h"
10748 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10749 { (eval echo configure:10750: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10750 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10751 if test -z "$ac_err"; then
10753 eval "ac_cv_header_$ac_safe=yes"
10756 echo "configure: failed program was:" >&5
10757 cat conftest.$ac_ext >&5
10759 eval "ac_cv_header_$ac_safe=no"
10763 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10764 echo "$ac_t""yes" 1>&6
10765 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10766 cat >> confdefs.h <<EOF
10767 #define $ac_tr_hdr 1
10771 echo "$ac_t""no" 1>&6
10776 if test $ol_enable_local = auto ; then
10777 ol_enable_local=$ac_cv_header_sys_un_h
10778 elif test $ac_cv_header_sys_un_h = no ; then
10779 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10787 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10788 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10789 -o $ol_with_kerberos = k425 ; then
10791 for ac_hdr in krb5.h
10793 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10794 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10795 echo "configure:10796: checking for $ac_hdr" >&5
10796 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10797 echo $ac_n "(cached) $ac_c" 1>&6
10799 cat > conftest.$ac_ext <<EOF
10800 #line 10801 "configure"
10801 #include "confdefs.h"
10804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10805 { (eval echo configure:10806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10807 if test -z "$ac_err"; then
10809 eval "ac_cv_header_$ac_safe=yes"
10812 echo "configure: failed program was:" >&5
10813 cat conftest.$ac_ext >&5
10815 eval "ac_cv_header_$ac_safe=no"
10819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10820 echo "$ac_t""yes" 1>&6
10821 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10822 cat >> confdefs.h <<EOF
10823 #define $ac_tr_hdr 1
10827 echo "$ac_t""no" 1>&6
10832 if test $ac_cv_header_krb5_h = yes ; then
10833 for ac_hdr in heim_err.h
10835 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10836 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10837 echo "configure:10838: checking for $ac_hdr" >&5
10838 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10839 echo $ac_n "(cached) $ac_c" 1>&6
10841 cat > conftest.$ac_ext <<EOF
10842 #line 10843 "configure"
10843 #include "confdefs.h"
10846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10847 { (eval echo configure:10848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10849 if test -z "$ac_err"; then
10851 eval "ac_cv_header_$ac_safe=yes"
10854 echo "configure: failed program was:" >&5
10855 cat conftest.$ac_ext >&5
10857 eval "ac_cv_header_$ac_safe=no"
10861 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10862 echo "$ac_t""yes" 1>&6
10863 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10864 cat >> confdefs.h <<EOF
10865 #define $ac_tr_hdr 1
10869 echo "$ac_t""no" 1>&6
10873 if test $ac_cv_header_heim_err_h = yes ; then
10879 if test $krb5_impl = mit; then
10880 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10881 echo "configure:10882: checking for main in -lk5crypto" >&5
10882 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10883 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10884 echo $ac_n "(cached) $ac_c" 1>&6
10886 ac_save_LIBS="$LIBS"
10887 LIBS="-lk5crypto $LIBS"
10888 cat > conftest.$ac_ext <<EOF
10889 #line 10890 "configure"
10890 #include "confdefs.h"
10896 if { (eval echo configure:10897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10898 eval "ac_cv_lib_$ac_lib_var=yes"
10900 echo "configure: failed program was:" >&5
10901 cat conftest.$ac_ext >&5
10903 eval "ac_cv_lib_$ac_lib_var=no"
10906 LIBS="$ac_save_LIBS"
10909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10910 echo "$ac_t""yes" 1>&6
10911 krb5crypto=k5crypto
10913 echo "$ac_t""no" 1>&6
10918 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10919 echo "configure:10920: checking for main in -lkrb5" >&5
10920 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10921 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10922 echo $ac_n "(cached) $ac_c" 1>&6
10924 ac_save_LIBS="$LIBS"
10925 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10926 cat > conftest.$ac_ext <<EOF
10927 #line 10928 "configure"
10928 #include "confdefs.h"
10934 if { (eval echo configure:10935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10936 eval "ac_cv_lib_$ac_lib_var=yes"
10938 echo "configure: failed program was:" >&5
10939 cat conftest.$ac_ext >&5
10941 eval "ac_cv_lib_$ac_lib_var=no"
10944 LIBS="$ac_save_LIBS"
10947 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10948 echo "$ac_t""yes" 1>&6
10950 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
10952 echo "$ac_t""no" 1>&6
10957 elif test $krb5_impl = heimdal; then
10958 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
10959 echo "configure:10960: checking for main in -ldes" >&5
10960 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
10961 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10962 echo $ac_n "(cached) $ac_c" 1>&6
10964 ac_save_LIBS="$LIBS"
10966 cat > conftest.$ac_ext <<EOF
10967 #line 10968 "configure"
10968 #include "confdefs.h"
10974 if { (eval echo configure:10975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10976 eval "ac_cv_lib_$ac_lib_var=yes"
10978 echo "configure: failed program was:" >&5
10979 cat conftest.$ac_ext >&5
10981 eval "ac_cv_lib_$ac_lib_var=no"
10984 LIBS="$ac_save_LIBS"
10987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10988 echo "$ac_t""yes" 1>&6
10991 echo "$ac_t""no" 1>&6
10996 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10997 echo "configure:10998: checking for main in -lkrb5" >&5
10998 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10999 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11000 echo $ac_n "(cached) $ac_c" 1>&6
11002 ac_save_LIBS="$LIBS"
11003 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
11004 cat > conftest.$ac_ext <<EOF
11005 #line 11006 "configure"
11006 #include "confdefs.h"
11012 if { (eval echo configure:11013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11014 eval "ac_cv_lib_$ac_lib_var=yes"
11016 echo "configure: failed program was:" >&5
11017 cat conftest.$ac_ext >&5
11019 eval "ac_cv_lib_$ac_lib_var=no"
11022 LIBS="$ac_save_LIBS"
11025 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11026 echo "$ac_t""yes" 1>&6
11028 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
11030 echo "$ac_t""no" 1>&6
11035 cat >> confdefs.h <<\EOF
11036 #define HAVE_HEIMDAL_KERBEROS 1
11042 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
11045 if test $have_krb5 = yes ; then
11048 cat >> confdefs.h <<\EOF
11049 #define HAVE_KRB5 1
11053 if test $ol_with_kerberos = k5only ; then
11054 ol_with_kerberos=found
11057 elif test $ol_with_kerberos != auto ; then
11058 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
11064 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
11065 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
11067 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
11069 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11070 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11071 echo "configure:11072: checking for $ac_hdr" >&5
11072 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11073 echo $ac_n "(cached) $ac_c" 1>&6
11075 cat > conftest.$ac_ext <<EOF
11076 #line 11077 "configure"
11077 #include "confdefs.h"
11080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11081 { (eval echo configure:11082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11082 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11083 if test -z "$ac_err"; then
11085 eval "ac_cv_header_$ac_safe=yes"
11088 echo "configure: failed program was:" >&5
11089 cat conftest.$ac_ext >&5
11091 eval "ac_cv_header_$ac_safe=no"
11095 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11096 echo "$ac_t""yes" 1>&6
11097 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11098 cat >> confdefs.h <<EOF
11099 #define $ac_tr_hdr 1
11103 echo "$ac_t""no" 1>&6
11108 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
11109 if test $krb5_impl = mit; then
11110 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
11111 echo "configure:11112: checking for main in -lkrb4" >&5
11112 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
11113 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11114 echo $ac_n "(cached) $ac_c" 1>&6
11116 ac_save_LIBS="$LIBS"
11117 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
11118 cat > conftest.$ac_ext <<EOF
11119 #line 11120 "configure"
11120 #include "confdefs.h"
11126 if { (eval echo configure:11127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11128 eval "ac_cv_lib_$ac_lib_var=yes"
11130 echo "configure: failed program was:" >&5
11131 cat conftest.$ac_ext >&5
11133 eval "ac_cv_lib_$ac_lib_var=no"
11136 LIBS="$ac_save_LIBS"
11139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11140 echo "$ac_t""yes" 1>&6
11142 KRB4_LIBS="-lkrb4 -ldes425"
11144 echo "$ac_t""no" 1>&6
11149 elif test $krb5_impl = heimdal; then
11150 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
11151 echo "configure:11152: checking for main in -lkrb4" >&5
11152 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
11153 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11154 echo $ac_n "(cached) $ac_c" 1>&6
11156 ac_save_LIBS="$LIBS"
11157 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
11158 cat > conftest.$ac_ext <<EOF
11159 #line 11160 "configure"
11160 #include "confdefs.h"
11166 if { (eval echo configure:11167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11168 eval "ac_cv_lib_$ac_lib_var=yes"
11170 echo "configure: failed program was:" >&5
11171 cat conftest.$ac_ext >&5
11173 eval "ac_cv_lib_$ac_lib_var=no"
11176 LIBS="$ac_save_LIBS"
11179 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11180 echo "$ac_t""yes" 1>&6
11184 echo "$ac_t""no" 1>&6
11191 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
11194 if test $have_k425 = yes ; then
11195 ol_with_kerberos=found
11198 cat >> confdefs.h <<\EOF
11199 #define HAVE_KRB425 1
11202 cat >> confdefs.h <<\EOF
11203 #define HAVE_KRB4 1
11207 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
11208 echo "configure:11209: checking for des_debug in Kerberos libraries" >&5
11209 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
11210 echo $ac_n "(cached) $ac_c" 1>&6
11214 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
11215 cat > conftest.$ac_ext <<EOF
11216 #line 11217 "configure"
11217 #include "confdefs.h"
11219 #include <kerberosIV/krb.h>
11220 #include <kerberosIV/des.h>
11221 extern int des_debug;
11229 if { (eval echo configure:11230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11231 ol_cv_var_des_debug=yes
11233 echo "configure: failed program was:" >&5
11234 cat conftest.$ac_ext >&5
11236 ol_cv_var_des_debug=no
11243 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
11245 if test $ol_cv_var_des_debug = yes ; then
11246 cat >> confdefs.h <<\EOF
11247 #define HAVE_DES_DEBUG 1
11257 if test $ol_link_krb5 = yes ; then
11258 ol_with_kerberos=found
11261 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
11262 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
11264 for ac_hdr in krb.h des.h krb-archaeology.h
11266 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11267 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11268 echo "configure:11269: checking for $ac_hdr" >&5
11269 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11270 echo $ac_n "(cached) $ac_c" 1>&6
11272 cat > conftest.$ac_ext <<EOF
11273 #line 11274 "configure"
11274 #include "confdefs.h"
11277 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11278 { (eval echo configure:11279: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11279 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11280 if test -z "$ac_err"; then
11282 eval "ac_cv_header_$ac_safe=yes"
11285 echo "configure: failed program was:" >&5
11286 cat conftest.$ac_ext >&5
11288 eval "ac_cv_header_$ac_safe=no"
11292 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11293 echo "$ac_t""yes" 1>&6
11294 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11295 cat >> confdefs.h <<EOF
11296 #define $ac_tr_hdr 1
11300 echo "$ac_t""no" 1>&6
11305 if test $ac_cv_header_krb_h = yes ; then
11306 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
11307 echo "configure:11308: checking for main in -lkrb" >&5
11308 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
11309 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11310 echo $ac_n "(cached) $ac_c" 1>&6
11312 ac_save_LIBS="$LIBS"
11313 LIBS="-lkrb -ldes $LIBS"
11314 cat > conftest.$ac_ext <<EOF
11315 #line 11316 "configure"
11316 #include "confdefs.h"
11322 if { (eval echo configure:11323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11324 eval "ac_cv_lib_$ac_lib_var=yes"
11326 echo "configure: failed program was:" >&5
11327 cat conftest.$ac_ext >&5
11329 eval "ac_cv_lib_$ac_lib_var=no"
11332 LIBS="$ac_save_LIBS"
11335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11336 echo "$ac_t""yes" 1>&6
11339 echo "$ac_t""no" 1>&6
11344 if test $have_k4 = yes ; then
11345 ol_with_kerberos=found
11348 cat >> confdefs.h <<\EOF
11349 #define HAVE_KRB4 1
11353 KRB4_LIBS="-lkrb -ldes"
11355 if test $ac_cv_header_krb_archaeology_h = yes ; then
11356 cat >> confdefs.h <<\EOF
11357 #define HAVE_KTH_KERBEROS 1
11365 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
11368 elif test $ol_enable_kbind = yes ; then
11369 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
11372 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
11373 cat >> confdefs.h <<\EOF
11374 #define HAVE_KERBEROS 1
11378 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
11379 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
11384 if test $ol_with_tls != no ; then
11385 for ac_hdr in openssl/ssl.h ssl.h
11387 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11388 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11389 echo "configure:11390: checking for $ac_hdr" >&5
11390 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11391 echo $ac_n "(cached) $ac_c" 1>&6
11393 cat > conftest.$ac_ext <<EOF
11394 #line 11395 "configure"
11395 #include "confdefs.h"
11398 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11399 { (eval echo configure:11400: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11400 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11401 if test -z "$ac_err"; then
11403 eval "ac_cv_header_$ac_safe=yes"
11406 echo "configure: failed program was:" >&5
11407 cat conftest.$ac_ext >&5
11409 eval "ac_cv_header_$ac_safe=no"
11413 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11414 echo "$ac_t""yes" 1>&6
11415 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11416 cat >> confdefs.h <<EOF
11417 #define $ac_tr_hdr 1
11421 echo "$ac_t""no" 1>&6
11426 if test $ac_cv_header_openssl_ssl_h = yes \
11427 -o $ac_cv_header_ssl_h = yes ; then
11428 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11429 echo "configure:11430: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11430 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11431 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11432 echo $ac_n "(cached) $ac_c" 1>&6
11434 ac_save_LIBS="$LIBS"
11435 LIBS="-lssl -lcrypto $LIBS"
11436 cat > conftest.$ac_ext <<EOF
11437 #line 11438 "configure"
11438 #include "confdefs.h"
11439 /* Override any gcc2 internal prototype to avoid an error. */
11440 /* We use char because int might match the return type of a gcc2
11441 builtin and then its argument prototype would still apply. */
11442 char SSLeay_add_ssl_algorithms();
11445 SSLeay_add_ssl_algorithms()
11448 if { (eval echo configure:11449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11450 eval "ac_cv_lib_$ac_lib_var=yes"
11452 echo "configure: failed program was:" >&5
11453 cat conftest.$ac_ext >&5
11455 eval "ac_cv_lib_$ac_lib_var=no"
11458 LIBS="$ac_save_LIBS"
11461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11462 echo "$ac_t""yes" 1>&6
11466 echo "$ac_t""no" 1>&6
11471 if test $have_ssleay = no ; then
11472 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11473 echo "configure:11474: checking for SSL_library_init in -lssl" >&5
11474 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11475 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11476 echo $ac_n "(cached) $ac_c" 1>&6
11478 ac_save_LIBS="$LIBS"
11479 LIBS="-lssl -lcrypto $LIBS"
11480 cat > conftest.$ac_ext <<EOF
11481 #line 11482 "configure"
11482 #include "confdefs.h"
11483 /* Override any gcc2 internal prototype to avoid an error. */
11484 /* We use char because int might match the return type of a gcc2
11485 builtin and then its argument prototype would still apply. */
11486 char SSL_library_init();
11492 if { (eval echo configure:11493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11494 eval "ac_cv_lib_$ac_lib_var=yes"
11496 echo "configure: failed program was:" >&5
11497 cat conftest.$ac_ext >&5
11499 eval "ac_cv_lib_$ac_lib_var=no"
11502 LIBS="$ac_save_LIBS"
11505 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11506 echo "$ac_t""yes" 1>&6
11510 echo "$ac_t""no" 1>&6
11516 if test $have_ssleay = no ; then
11517 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11518 echo "configure:11519: checking for ssl3_accept in -lssl" >&5
11519 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11520 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11521 echo $ac_n "(cached) $ac_c" 1>&6
11523 ac_save_LIBS="$LIBS"
11524 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11525 cat > conftest.$ac_ext <<EOF
11526 #line 11527 "configure"
11527 #include "confdefs.h"
11528 /* Override any gcc2 internal prototype to avoid an error. */
11529 /* We use char because int might match the return type of a gcc2
11530 builtin and then its argument prototype would still apply. */
11531 char ssl3_accept();
11537 if { (eval echo configure:11538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11539 eval "ac_cv_lib_$ac_lib_var=yes"
11541 echo "configure: failed program was:" >&5
11542 cat conftest.$ac_ext >&5
11544 eval "ac_cv_lib_$ac_lib_var=no"
11547 LIBS="$ac_save_LIBS"
11550 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11551 echo "$ac_t""yes" 1>&6
11555 echo "$ac_t""no" 1>&6
11561 if test $have_ssleay = yes ; then
11565 cat >> confdefs.h <<\EOF
11566 #define HAVE_SSLEAY 1
11570 if test $need_rsaref = yes; then
11571 cat >> confdefs.h <<\EOF
11572 #define HAVE_RSAREF 1
11576 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11578 TLS_LIBS="-lssl -lcrypto"
11581 echo $ac_n "checking OpenSSL library version (CRL checking capability)""... $ac_c" 1>&6
11582 echo "configure:11583: checking OpenSSL library version (CRL checking capability)" >&5
11583 if eval "test \"\${ol_cv_ssl_crl_compat+set}\" = set"; then
11584 echo $ac_n "(cached) $ac_c" 1>&6
11587 cat > conftest.$ac_ext <<EOF
11588 #line 11589 "configure"
11589 #include "confdefs.h"
11591 #ifdef HAVE_OPENSSL_SSL_H
11592 #include <openssl/ssl.h>
11597 /* Require 0.9.7d+ */
11598 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
11599 char *__ssl_compat = "0.9.7d";
11603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11604 egrep "__ssl_compat" >/dev/null 2>&1; then
11606 ol_cv_ssl_crl_compat=yes
11609 ol_cv_ssl_crl_compat=no
11615 echo "$ac_t""$ol_cv_ssl_crl_compat" 1>&6
11617 if test $ol_cv_ssl_crl_compat = no ; then
11620 cat >> confdefs.h <<\EOF
11621 #define HAVE_OPENSSL_CRL 1
11628 echo "configure: warning: TLS data protection not supported!" 1>&2
11632 if test $ol_link_tls = yes ; then
11633 cat >> confdefs.h <<\EOF
11639 elif test $ol_with_tls = auto ; then
11640 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11641 echo "configure: warning: TLS data protection not supported!" 1>&2
11643 elif test $ol_with_tls != no ; then
11644 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11647 if test $ol_enable_lmpasswd != no; then
11648 if test $ol_link_tls != yes ; then
11649 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11652 cat >> confdefs.h <<\EOF
11653 #define SLAPD_LMHASH 1
11660 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11661 -o $ol_with_threads = nt ; then
11664 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11665 echo "configure:11666: checking for _beginthread" >&5
11666 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11667 echo $ac_n "(cached) $ac_c" 1>&6
11669 cat > conftest.$ac_ext <<EOF
11670 #line 11671 "configure"
11671 #include "confdefs.h"
11672 /* System header to define __stub macros and hopefully few prototypes,
11673 which can conflict with char _beginthread(); below. */
11674 #include <assert.h>
11675 /* Override any gcc2 internal prototype to avoid an error. */
11676 /* We use char because int might match the return type of a gcc2
11677 builtin and then its argument prototype would still apply. */
11678 char _beginthread();
11683 /* The GNU C library defines this for functions which it implements
11684 to always fail with ENOSYS. Some functions are actually named
11685 something starting with __ and the normal name is an alias. */
11686 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11694 if { (eval echo configure:11695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11696 eval "ac_cv_func__beginthread=yes"
11698 echo "configure: failed program was:" >&5
11699 cat conftest.$ac_ext >&5
11701 eval "ac_cv_func__beginthread=no"
11706 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11707 echo "$ac_t""yes" 1>&6
11710 echo "$ac_t""no" 1>&6
11714 if test $ac_cv_func__beginthread = yes ; then
11715 cat >> confdefs.h <<\EOF
11716 #define HAVE_NT_THREADS 1
11719 ol_cv_nt_threads=yes
11723 if test "$ol_cv_nt_threads" = yes ; then
11725 ol_with_threads=found
11726 ol_with_yielding_select=yes
11728 cat >> confdefs.h <<\EOF
11729 #define HAVE_NT_SERVICE_MANAGER 1
11732 cat >> confdefs.h <<\EOF
11733 #define HAVE_NT_EVENT_LOG 1
11738 if test $ol_with_threads = nt ; then
11739 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11743 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11744 -o $ol_with_threads = posix ; then
11746 for ac_hdr in pthread.h
11748 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11749 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11750 echo "configure:11751: checking for $ac_hdr" >&5
11751 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11752 echo $ac_n "(cached) $ac_c" 1>&6
11754 cat > conftest.$ac_ext <<EOF
11755 #line 11756 "configure"
11756 #include "confdefs.h"
11759 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11760 { (eval echo configure:11761: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11761 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11762 if test -z "$ac_err"; then
11764 eval "ac_cv_header_$ac_safe=yes"
11767 echo "configure: failed program was:" >&5
11768 cat conftest.$ac_ext >&5
11770 eval "ac_cv_header_$ac_safe=no"
11774 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11775 echo "$ac_t""yes" 1>&6
11776 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11777 cat >> confdefs.h <<EOF
11778 #define $ac_tr_hdr 1
11782 echo "$ac_t""no" 1>&6
11787 if test $ac_cv_header_pthread_h = yes ; then
11788 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11789 echo "configure:11790: checking POSIX thread version" >&5
11790 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11791 echo $ac_n "(cached) $ac_c" 1>&6
11794 cat > conftest.$ac_ext <<EOF
11795 #line 11796 "configure"
11796 #include "confdefs.h"
11798 # include <pthread.h>
11802 int i = PTHREAD_CREATE_JOINABLE;
11806 if { (eval echo configure:11807: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11809 cat > conftest.$ac_ext <<EOF
11810 #line 11811 "configure"
11811 #include "confdefs.h"
11812 #include <pthread.h>
11814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11815 egrep "pthread_detach" >/dev/null 2>&1; then
11817 ol_cv_pthread_version=10
11820 ol_cv_pthread_version=8
11825 echo "configure: failed program was:" >&5
11826 cat conftest.$ac_ext >&5
11829 cat > conftest.$ac_ext <<EOF
11830 #line 11831 "configure"
11831 #include "confdefs.h"
11833 # include <pthread.h>
11834 # ifdef PTHREAD_CREATE_UNDETACHED
11839 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11840 egrep "draft7" >/dev/null 2>&1; then
11842 ol_cv_pthread_version=7
11846 cat > conftest.$ac_ext <<EOF
11847 #line 11848 "configure"
11848 #include "confdefs.h"
11849 #include <pthread.h>
11851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11852 egrep "pthread_attr_init" >/dev/null 2>&1; then
11854 ol_cv_pthread_version=6
11858 cat > conftest.$ac_ext <<EOF
11859 #line 11860 "configure"
11860 #include "confdefs.h"
11862 # include <pthread.h>
11863 #ifdef PTHREAD_MUTEX_INITIALIZER
11868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11869 egrep "draft5" >/dev/null 2>&1; then
11871 ol_cv_pthread_version=5
11874 ol_cv_pthread_version=4
11889 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11892 if test $ol_cv_pthread_version != 0 ; then
11893 cat >> confdefs.h <<EOF
11894 #define HAVE_PTHREADS $ol_cv_pthread_version
11898 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11901 # consider threads found
11902 ol_with_threads=found
11905 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11906 echo "configure:11907: checking for LinuxThreads pthread.h" >&5
11907 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11908 echo $ac_n "(cached) $ac_c" 1>&6
11910 cat > conftest.$ac_ext <<EOF
11911 #line 11912 "configure"
11912 #include "confdefs.h"
11913 #include <pthread.h>
11915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11916 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11918 ol_cv_header_linux_threads=yes
11921 ol_cv_header_linux_threads=no
11928 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11929 if test $ol_cv_header_linux_threads = yes; then
11930 cat >> confdefs.h <<\EOF
11931 #define HAVE_LINUX_THREADS 1
11937 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11938 echo "configure:11939: checking for GNU Pth pthread.h" >&5
11939 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11940 echo $ac_n "(cached) $ac_c" 1>&6
11942 cat > conftest.$ac_ext <<EOF
11943 #line 11944 "configure"
11944 #include "confdefs.h"
11945 #include <pthread.h>
11946 #ifdef _POSIX_THREAD_IS_GNU_PTH
11951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11952 egrep "__gnu_pth__" >/dev/null 2>&1; then
11954 ol_cv_header_gnu_pth_pthread_h=yes
11957 ol_cv_header_gnu_pth_pthread_h=no
11964 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
11967 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
11968 for ac_hdr in sched.h
11970 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11971 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11972 echo "configure:11973: checking for $ac_hdr" >&5
11973 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11974 echo $ac_n "(cached) $ac_c" 1>&6
11976 cat > conftest.$ac_ext <<EOF
11977 #line 11978 "configure"
11978 #include "confdefs.h"
11981 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11982 { (eval echo configure:11983: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11983 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11984 if test -z "$ac_err"; then
11986 eval "ac_cv_header_$ac_safe=yes"
11989 echo "configure: failed program was:" >&5
11990 cat conftest.$ac_ext >&5
11992 eval "ac_cv_header_$ac_safe=no"
11996 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11997 echo "$ac_t""yes" 1>&6
11998 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11999 cat >> confdefs.h <<EOF
12000 #define $ac_tr_hdr 1
12004 echo "$ac_t""no" 1>&6
12011 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
12012 echo "configure:12013: checking for pthread_create in default libraries" >&5
12013 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
12014 echo $ac_n "(cached) $ac_c" 1>&6
12017 if test "$cross_compiling" = yes; then
12018 cat > conftest.$ac_ext <<EOF
12019 #line 12020 "configure"
12020 #include "confdefs.h"
12021 /* pthread test headers */
12022 #include <pthread.h>
12023 #if HAVE_PTHREADS < 7
12027 #define NULL (void*)0
12030 static void *task(p)
12033 return (void *) (p == NULL);
12038 /* pthread test function */
12039 #ifndef PTHREAD_CREATE_DETACHED
12040 #define PTHREAD_CREATE_DETACHED 1
12044 int detach = PTHREAD_CREATE_DETACHED;
12046 #if HAVE_PTHREADS > 4
12047 /* Final pthreads */
12048 pthread_attr_t attr;
12050 status = pthread_attr_init(&attr);
12051 if( status ) return status;
12053 #if HAVE_PTHREADS < 7
12054 status = pthread_attr_setdetachstate(&attr, &detach);
12055 if( status < 0 ) status = errno;
12057 status = pthread_attr_setdetachstate(&attr, detach);
12059 if( status ) return status;
12060 status = pthread_create( &t, &attr, task, NULL );
12061 #if HAVE_PTHREADS < 7
12062 if( status < 0 ) status = errno;
12064 if( status ) return status;
12066 /* Draft 4 pthreads */
12067 status = pthread_create( &t, pthread_attr_default, task, NULL );
12068 if( status ) return errno;
12070 /* give thread a chance to complete */
12071 /* it should remain joinable and hence detachable */
12074 status = pthread_detach( &t );
12075 if( status ) return errno;
12078 #ifdef HAVE_LINUX_THREADS
12079 pthread_kill_other_threads_np();
12086 if { (eval echo configure:12087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12088 ol_cv_pthread_create=yes
12090 echo "configure: failed program was:" >&5
12091 cat conftest.$ac_ext >&5
12093 ol_cv_pthread_create=no
12097 cat > conftest.$ac_ext <<EOF
12098 #line 12099 "configure"
12099 #include "confdefs.h"
12100 /* pthread test headers */
12101 #include <pthread.h>
12102 #if HAVE_PTHREADS < 7
12106 #define NULL (void*)0
12109 static void *task(p)
12112 return (void *) (p == NULL);
12116 int main(argc, argv)
12121 /* pthread test function */
12122 #ifndef PTHREAD_CREATE_DETACHED
12123 #define PTHREAD_CREATE_DETACHED 1
12127 int detach = PTHREAD_CREATE_DETACHED;
12129 #if HAVE_PTHREADS > 4
12130 /* Final pthreads */
12131 pthread_attr_t attr;
12133 status = pthread_attr_init(&attr);
12134 if( status ) return status;
12136 #if HAVE_PTHREADS < 7
12137 status = pthread_attr_setdetachstate(&attr, &detach);
12138 if( status < 0 ) status = errno;
12140 status = pthread_attr_setdetachstate(&attr, detach);
12142 if( status ) return status;
12143 status = pthread_create( &t, &attr, task, NULL );
12144 #if HAVE_PTHREADS < 7
12145 if( status < 0 ) status = errno;
12147 if( status ) return status;
12149 /* Draft 4 pthreads */
12150 status = pthread_create( &t, pthread_attr_default, task, NULL );
12151 if( status ) return errno;
12153 /* give thread a chance to complete */
12154 /* it should remain joinable and hence detachable */
12157 status = pthread_detach( &t );
12158 if( status ) return errno;
12161 #ifdef HAVE_LINUX_THREADS
12162 pthread_kill_other_threads_np();
12170 if { (eval echo configure:12171: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12172 ol_cv_pthread_create=yes
12174 echo "configure: failed program was:" >&5
12175 cat conftest.$ac_ext >&5
12177 ol_cv_pthread_create=no
12184 echo "$ac_t""$ol_cv_pthread_create" 1>&6
12186 if test $ol_cv_pthread_create != no ; then
12187 ol_link_threads=posix
12188 ol_link_pthreads=""
12191 # Pthread try link: -kthread (ol_cv_pthread_kthread)
12192 if test "$ol_link_threads" = no ; then
12194 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
12195 echo "configure:12196: checking for pthread link with -kthread" >&5
12196 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
12197 echo $ac_n "(cached) $ac_c" 1>&6
12202 LIBS="-kthread $LIBS"
12204 if test "$cross_compiling" = yes; then
12205 cat > conftest.$ac_ext <<EOF
12206 #line 12207 "configure"
12207 #include "confdefs.h"
12208 /* pthread test headers */
12209 #include <pthread.h>
12210 #if HAVE_PTHREADS < 7
12214 #define NULL (void*)0
12217 static void *task(p)
12220 return (void *) (p == NULL);
12225 /* pthread test function */
12226 #ifndef PTHREAD_CREATE_DETACHED
12227 #define PTHREAD_CREATE_DETACHED 1
12231 int detach = PTHREAD_CREATE_DETACHED;
12233 #if HAVE_PTHREADS > 4
12234 /* Final pthreads */
12235 pthread_attr_t attr;
12237 status = pthread_attr_init(&attr);
12238 if( status ) return status;
12240 #if HAVE_PTHREADS < 7
12241 status = pthread_attr_setdetachstate(&attr, &detach);
12242 if( status < 0 ) status = errno;
12244 status = pthread_attr_setdetachstate(&attr, detach);
12246 if( status ) return status;
12247 status = pthread_create( &t, &attr, task, NULL );
12248 #if HAVE_PTHREADS < 7
12249 if( status < 0 ) status = errno;
12251 if( status ) return status;
12253 /* Draft 4 pthreads */
12254 status = pthread_create( &t, pthread_attr_default, task, NULL );
12255 if( status ) return errno;
12257 /* give thread a chance to complete */
12258 /* it should remain joinable and hence detachable */
12261 status = pthread_detach( &t );
12262 if( status ) return errno;
12265 #ifdef HAVE_LINUX_THREADS
12266 pthread_kill_other_threads_np();
12273 if { (eval echo configure:12274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12275 ol_cv_pthread_kthread=yes
12277 echo "configure: failed program was:" >&5
12278 cat conftest.$ac_ext >&5
12280 ol_cv_pthread_kthread=no
12284 cat > conftest.$ac_ext <<EOF
12285 #line 12286 "configure"
12286 #include "confdefs.h"
12287 /* pthread test headers */
12288 #include <pthread.h>
12289 #if HAVE_PTHREADS < 7
12293 #define NULL (void*)0
12296 static void *task(p)
12299 return (void *) (p == NULL);
12303 int main(argc, argv)
12308 /* pthread test function */
12309 #ifndef PTHREAD_CREATE_DETACHED
12310 #define PTHREAD_CREATE_DETACHED 1
12314 int detach = PTHREAD_CREATE_DETACHED;
12316 #if HAVE_PTHREADS > 4
12317 /* Final pthreads */
12318 pthread_attr_t attr;
12320 status = pthread_attr_init(&attr);
12321 if( status ) return status;
12323 #if HAVE_PTHREADS < 7
12324 status = pthread_attr_setdetachstate(&attr, &detach);
12325 if( status < 0 ) status = errno;
12327 status = pthread_attr_setdetachstate(&attr, detach);
12329 if( status ) return status;
12330 status = pthread_create( &t, &attr, task, NULL );
12331 #if HAVE_PTHREADS < 7
12332 if( status < 0 ) status = errno;
12334 if( status ) return status;
12336 /* Draft 4 pthreads */
12337 status = pthread_create( &t, pthread_attr_default, task, NULL );
12338 if( status ) return errno;
12340 /* give thread a chance to complete */
12341 /* it should remain joinable and hence detachable */
12344 status = pthread_detach( &t );
12345 if( status ) return errno;
12348 #ifdef HAVE_LINUX_THREADS
12349 pthread_kill_other_threads_np();
12357 if { (eval echo configure:12358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12359 ol_cv_pthread_kthread=yes
12361 echo "configure: failed program was:" >&5
12362 cat conftest.$ac_ext >&5
12364 ol_cv_pthread_kthread=no
12375 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12377 if test $ol_cv_pthread_kthread = yes ; then
12378 ol_link_pthreads="-kthread"
12379 ol_link_threads=posix
12383 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12384 if test "$ol_link_threads" = no ; then
12386 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12387 echo "configure:12388: checking for pthread link with -pthread" >&5
12388 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12389 echo $ac_n "(cached) $ac_c" 1>&6
12394 LIBS="-pthread $LIBS"
12396 if test "$cross_compiling" = yes; then
12397 cat > conftest.$ac_ext <<EOF
12398 #line 12399 "configure"
12399 #include "confdefs.h"
12400 /* pthread test headers */
12401 #include <pthread.h>
12402 #if HAVE_PTHREADS < 7
12406 #define NULL (void*)0
12409 static void *task(p)
12412 return (void *) (p == NULL);
12417 /* pthread test function */
12418 #ifndef PTHREAD_CREATE_DETACHED
12419 #define PTHREAD_CREATE_DETACHED 1
12423 int detach = PTHREAD_CREATE_DETACHED;
12425 #if HAVE_PTHREADS > 4
12426 /* Final pthreads */
12427 pthread_attr_t attr;
12429 status = pthread_attr_init(&attr);
12430 if( status ) return status;
12432 #if HAVE_PTHREADS < 7
12433 status = pthread_attr_setdetachstate(&attr, &detach);
12434 if( status < 0 ) status = errno;
12436 status = pthread_attr_setdetachstate(&attr, detach);
12438 if( status ) return status;
12439 status = pthread_create( &t, &attr, task, NULL );
12440 #if HAVE_PTHREADS < 7
12441 if( status < 0 ) status = errno;
12443 if( status ) return status;
12445 /* Draft 4 pthreads */
12446 status = pthread_create( &t, pthread_attr_default, task, NULL );
12447 if( status ) return errno;
12449 /* give thread a chance to complete */
12450 /* it should remain joinable and hence detachable */
12453 status = pthread_detach( &t );
12454 if( status ) return errno;
12457 #ifdef HAVE_LINUX_THREADS
12458 pthread_kill_other_threads_np();
12465 if { (eval echo configure:12466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12467 ol_cv_pthread_pthread=yes
12469 echo "configure: failed program was:" >&5
12470 cat conftest.$ac_ext >&5
12472 ol_cv_pthread_pthread=no
12476 cat > conftest.$ac_ext <<EOF
12477 #line 12478 "configure"
12478 #include "confdefs.h"
12479 /* pthread test headers */
12480 #include <pthread.h>
12481 #if HAVE_PTHREADS < 7
12485 #define NULL (void*)0
12488 static void *task(p)
12491 return (void *) (p == NULL);
12495 int main(argc, argv)
12500 /* pthread test function */
12501 #ifndef PTHREAD_CREATE_DETACHED
12502 #define PTHREAD_CREATE_DETACHED 1
12506 int detach = PTHREAD_CREATE_DETACHED;
12508 #if HAVE_PTHREADS > 4
12509 /* Final pthreads */
12510 pthread_attr_t attr;
12512 status = pthread_attr_init(&attr);
12513 if( status ) return status;
12515 #if HAVE_PTHREADS < 7
12516 status = pthread_attr_setdetachstate(&attr, &detach);
12517 if( status < 0 ) status = errno;
12519 status = pthread_attr_setdetachstate(&attr, detach);
12521 if( status ) return status;
12522 status = pthread_create( &t, &attr, task, NULL );
12523 #if HAVE_PTHREADS < 7
12524 if( status < 0 ) status = errno;
12526 if( status ) return status;
12528 /* Draft 4 pthreads */
12529 status = pthread_create( &t, pthread_attr_default, task, NULL );
12530 if( status ) return errno;
12532 /* give thread a chance to complete */
12533 /* it should remain joinable and hence detachable */
12536 status = pthread_detach( &t );
12537 if( status ) return errno;
12540 #ifdef HAVE_LINUX_THREADS
12541 pthread_kill_other_threads_np();
12549 if { (eval echo configure:12550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12551 ol_cv_pthread_pthread=yes
12553 echo "configure: failed program was:" >&5
12554 cat conftest.$ac_ext >&5
12556 ol_cv_pthread_pthread=no
12567 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12569 if test $ol_cv_pthread_pthread = yes ; then
12570 ol_link_pthreads="-pthread"
12571 ol_link_threads=posix
12575 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12576 if test "$ol_link_threads" = no ; then
12578 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12579 echo "configure:12580: checking for pthread link with -pthreads" >&5
12580 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12581 echo $ac_n "(cached) $ac_c" 1>&6
12586 LIBS="-pthreads $LIBS"
12588 if test "$cross_compiling" = yes; then
12589 cat > conftest.$ac_ext <<EOF
12590 #line 12591 "configure"
12591 #include "confdefs.h"
12592 /* pthread test headers */
12593 #include <pthread.h>
12594 #if HAVE_PTHREADS < 7
12598 #define NULL (void*)0
12601 static void *task(p)
12604 return (void *) (p == NULL);
12609 /* pthread test function */
12610 #ifndef PTHREAD_CREATE_DETACHED
12611 #define PTHREAD_CREATE_DETACHED 1
12615 int detach = PTHREAD_CREATE_DETACHED;
12617 #if HAVE_PTHREADS > 4
12618 /* Final pthreads */
12619 pthread_attr_t attr;
12621 status = pthread_attr_init(&attr);
12622 if( status ) return status;
12624 #if HAVE_PTHREADS < 7
12625 status = pthread_attr_setdetachstate(&attr, &detach);
12626 if( status < 0 ) status = errno;
12628 status = pthread_attr_setdetachstate(&attr, detach);
12630 if( status ) return status;
12631 status = pthread_create( &t, &attr, task, NULL );
12632 #if HAVE_PTHREADS < 7
12633 if( status < 0 ) status = errno;
12635 if( status ) return status;
12637 /* Draft 4 pthreads */
12638 status = pthread_create( &t, pthread_attr_default, task, NULL );
12639 if( status ) return errno;
12641 /* give thread a chance to complete */
12642 /* it should remain joinable and hence detachable */
12645 status = pthread_detach( &t );
12646 if( status ) return errno;
12649 #ifdef HAVE_LINUX_THREADS
12650 pthread_kill_other_threads_np();
12657 if { (eval echo configure:12658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12659 ol_cv_pthread_pthreads=yes
12661 echo "configure: failed program was:" >&5
12662 cat conftest.$ac_ext >&5
12664 ol_cv_pthread_pthreads=no
12668 cat > conftest.$ac_ext <<EOF
12669 #line 12670 "configure"
12670 #include "confdefs.h"
12671 /* pthread test headers */
12672 #include <pthread.h>
12673 #if HAVE_PTHREADS < 7
12677 #define NULL (void*)0
12680 static void *task(p)
12683 return (void *) (p == NULL);
12687 int main(argc, argv)
12692 /* pthread test function */
12693 #ifndef PTHREAD_CREATE_DETACHED
12694 #define PTHREAD_CREATE_DETACHED 1
12698 int detach = PTHREAD_CREATE_DETACHED;
12700 #if HAVE_PTHREADS > 4
12701 /* Final pthreads */
12702 pthread_attr_t attr;
12704 status = pthread_attr_init(&attr);
12705 if( status ) return status;
12707 #if HAVE_PTHREADS < 7
12708 status = pthread_attr_setdetachstate(&attr, &detach);
12709 if( status < 0 ) status = errno;
12711 status = pthread_attr_setdetachstate(&attr, detach);
12713 if( status ) return status;
12714 status = pthread_create( &t, &attr, task, NULL );
12715 #if HAVE_PTHREADS < 7
12716 if( status < 0 ) status = errno;
12718 if( status ) return status;
12720 /* Draft 4 pthreads */
12721 status = pthread_create( &t, pthread_attr_default, task, NULL );
12722 if( status ) return errno;
12724 /* give thread a chance to complete */
12725 /* it should remain joinable and hence detachable */
12728 status = pthread_detach( &t );
12729 if( status ) return errno;
12732 #ifdef HAVE_LINUX_THREADS
12733 pthread_kill_other_threads_np();
12741 if { (eval echo configure:12742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12743 ol_cv_pthread_pthreads=yes
12745 echo "configure: failed program was:" >&5
12746 cat conftest.$ac_ext >&5
12748 ol_cv_pthread_pthreads=no
12759 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12761 if test $ol_cv_pthread_pthreads = yes ; then
12762 ol_link_pthreads="-pthreads"
12763 ol_link_threads=posix
12767 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12768 if test "$ol_link_threads" = no ; then
12770 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12771 echo "configure:12772: checking for pthread link with -mthreads" >&5
12772 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12773 echo $ac_n "(cached) $ac_c" 1>&6
12778 LIBS="-mthreads $LIBS"
12780 if test "$cross_compiling" = yes; then
12781 cat > conftest.$ac_ext <<EOF
12782 #line 12783 "configure"
12783 #include "confdefs.h"
12784 /* pthread test headers */
12785 #include <pthread.h>
12786 #if HAVE_PTHREADS < 7
12790 #define NULL (void*)0
12793 static void *task(p)
12796 return (void *) (p == NULL);
12801 /* pthread test function */
12802 #ifndef PTHREAD_CREATE_DETACHED
12803 #define PTHREAD_CREATE_DETACHED 1
12807 int detach = PTHREAD_CREATE_DETACHED;
12809 #if HAVE_PTHREADS > 4
12810 /* Final pthreads */
12811 pthread_attr_t attr;
12813 status = pthread_attr_init(&attr);
12814 if( status ) return status;
12816 #if HAVE_PTHREADS < 7
12817 status = pthread_attr_setdetachstate(&attr, &detach);
12818 if( status < 0 ) status = errno;
12820 status = pthread_attr_setdetachstate(&attr, detach);
12822 if( status ) return status;
12823 status = pthread_create( &t, &attr, task, NULL );
12824 #if HAVE_PTHREADS < 7
12825 if( status < 0 ) status = errno;
12827 if( status ) return status;
12829 /* Draft 4 pthreads */
12830 status = pthread_create( &t, pthread_attr_default, task, NULL );
12831 if( status ) return errno;
12833 /* give thread a chance to complete */
12834 /* it should remain joinable and hence detachable */
12837 status = pthread_detach( &t );
12838 if( status ) return errno;
12841 #ifdef HAVE_LINUX_THREADS
12842 pthread_kill_other_threads_np();
12849 if { (eval echo configure:12850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12851 ol_cv_pthread_mthreads=yes
12853 echo "configure: failed program was:" >&5
12854 cat conftest.$ac_ext >&5
12856 ol_cv_pthread_mthreads=no
12860 cat > conftest.$ac_ext <<EOF
12861 #line 12862 "configure"
12862 #include "confdefs.h"
12863 /* pthread test headers */
12864 #include <pthread.h>
12865 #if HAVE_PTHREADS < 7
12869 #define NULL (void*)0
12872 static void *task(p)
12875 return (void *) (p == NULL);
12879 int main(argc, argv)
12884 /* pthread test function */
12885 #ifndef PTHREAD_CREATE_DETACHED
12886 #define PTHREAD_CREATE_DETACHED 1
12890 int detach = PTHREAD_CREATE_DETACHED;
12892 #if HAVE_PTHREADS > 4
12893 /* Final pthreads */
12894 pthread_attr_t attr;
12896 status = pthread_attr_init(&attr);
12897 if( status ) return status;
12899 #if HAVE_PTHREADS < 7
12900 status = pthread_attr_setdetachstate(&attr, &detach);
12901 if( status < 0 ) status = errno;
12903 status = pthread_attr_setdetachstate(&attr, detach);
12905 if( status ) return status;
12906 status = pthread_create( &t, &attr, task, NULL );
12907 #if HAVE_PTHREADS < 7
12908 if( status < 0 ) status = errno;
12910 if( status ) return status;
12912 /* Draft 4 pthreads */
12913 status = pthread_create( &t, pthread_attr_default, task, NULL );
12914 if( status ) return errno;
12916 /* give thread a chance to complete */
12917 /* it should remain joinable and hence detachable */
12920 status = pthread_detach( &t );
12921 if( status ) return errno;
12924 #ifdef HAVE_LINUX_THREADS
12925 pthread_kill_other_threads_np();
12933 if { (eval echo configure:12934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12935 ol_cv_pthread_mthreads=yes
12937 echo "configure: failed program was:" >&5
12938 cat conftest.$ac_ext >&5
12940 ol_cv_pthread_mthreads=no
12951 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
12953 if test $ol_cv_pthread_mthreads = yes ; then
12954 ol_link_pthreads="-mthreads"
12955 ol_link_threads=posix
12959 # Pthread try link: -thread (ol_cv_pthread_thread)
12960 if test "$ol_link_threads" = no ; then
12962 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
12963 echo "configure:12964: checking for pthread link with -thread" >&5
12964 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
12965 echo $ac_n "(cached) $ac_c" 1>&6
12970 LIBS="-thread $LIBS"
12972 if test "$cross_compiling" = yes; then
12973 cat > conftest.$ac_ext <<EOF
12974 #line 12975 "configure"
12975 #include "confdefs.h"
12976 /* pthread test headers */
12977 #include <pthread.h>
12978 #if HAVE_PTHREADS < 7
12982 #define NULL (void*)0
12985 static void *task(p)
12988 return (void *) (p == NULL);
12993 /* pthread test function */
12994 #ifndef PTHREAD_CREATE_DETACHED
12995 #define PTHREAD_CREATE_DETACHED 1
12999 int detach = PTHREAD_CREATE_DETACHED;
13001 #if HAVE_PTHREADS > 4
13002 /* Final pthreads */
13003 pthread_attr_t attr;
13005 status = pthread_attr_init(&attr);
13006 if( status ) return status;
13008 #if HAVE_PTHREADS < 7
13009 status = pthread_attr_setdetachstate(&attr, &detach);
13010 if( status < 0 ) status = errno;
13012 status = pthread_attr_setdetachstate(&attr, detach);
13014 if( status ) return status;
13015 status = pthread_create( &t, &attr, task, NULL );
13016 #if HAVE_PTHREADS < 7
13017 if( status < 0 ) status = errno;
13019 if( status ) return status;
13021 /* Draft 4 pthreads */
13022 status = pthread_create( &t, pthread_attr_default, task, NULL );
13023 if( status ) return errno;
13025 /* give thread a chance to complete */
13026 /* it should remain joinable and hence detachable */
13029 status = pthread_detach( &t );
13030 if( status ) return errno;
13033 #ifdef HAVE_LINUX_THREADS
13034 pthread_kill_other_threads_np();
13041 if { (eval echo configure:13042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13043 ol_cv_pthread_thread=yes
13045 echo "configure: failed program was:" >&5
13046 cat conftest.$ac_ext >&5
13048 ol_cv_pthread_thread=no
13052 cat > conftest.$ac_ext <<EOF
13053 #line 13054 "configure"
13054 #include "confdefs.h"
13055 /* pthread test headers */
13056 #include <pthread.h>
13057 #if HAVE_PTHREADS < 7
13061 #define NULL (void*)0
13064 static void *task(p)
13067 return (void *) (p == NULL);
13071 int main(argc, argv)
13076 /* pthread test function */
13077 #ifndef PTHREAD_CREATE_DETACHED
13078 #define PTHREAD_CREATE_DETACHED 1
13082 int detach = PTHREAD_CREATE_DETACHED;
13084 #if HAVE_PTHREADS > 4
13085 /* Final pthreads */
13086 pthread_attr_t attr;
13088 status = pthread_attr_init(&attr);
13089 if( status ) return status;
13091 #if HAVE_PTHREADS < 7
13092 status = pthread_attr_setdetachstate(&attr, &detach);
13093 if( status < 0 ) status = errno;
13095 status = pthread_attr_setdetachstate(&attr, detach);
13097 if( status ) return status;
13098 status = pthread_create( &t, &attr, task, NULL );
13099 #if HAVE_PTHREADS < 7
13100 if( status < 0 ) status = errno;
13102 if( status ) return status;
13104 /* Draft 4 pthreads */
13105 status = pthread_create( &t, pthread_attr_default, task, NULL );
13106 if( status ) return errno;
13108 /* give thread a chance to complete */
13109 /* it should remain joinable and hence detachable */
13112 status = pthread_detach( &t );
13113 if( status ) return errno;
13116 #ifdef HAVE_LINUX_THREADS
13117 pthread_kill_other_threads_np();
13125 if { (eval echo configure:13126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13127 ol_cv_pthread_thread=yes
13129 echo "configure: failed program was:" >&5
13130 cat conftest.$ac_ext >&5
13132 ol_cv_pthread_thread=no
13143 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
13145 if test $ol_cv_pthread_thread = yes ; then
13146 ol_link_pthreads="-thread"
13147 ol_link_threads=posix
13152 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
13153 if test "$ol_link_threads" = no ; then
13154 # try -lpthread -lmach -lexc -lc_r
13155 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
13156 echo "configure:13157: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
13157 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
13158 echo $ac_n "(cached) $ac_c" 1>&6
13163 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
13165 if test "$cross_compiling" = yes; then
13166 cat > conftest.$ac_ext <<EOF
13167 #line 13168 "configure"
13168 #include "confdefs.h"
13169 /* pthread test headers */
13170 #include <pthread.h>
13171 #if HAVE_PTHREADS < 7
13175 #define NULL (void*)0
13178 static void *task(p)
13181 return (void *) (p == NULL);
13186 /* pthread test function */
13187 #ifndef PTHREAD_CREATE_DETACHED
13188 #define PTHREAD_CREATE_DETACHED 1
13192 int detach = PTHREAD_CREATE_DETACHED;
13194 #if HAVE_PTHREADS > 4
13195 /* Final pthreads */
13196 pthread_attr_t attr;
13198 status = pthread_attr_init(&attr);
13199 if( status ) return status;
13201 #if HAVE_PTHREADS < 7
13202 status = pthread_attr_setdetachstate(&attr, &detach);
13203 if( status < 0 ) status = errno;
13205 status = pthread_attr_setdetachstate(&attr, detach);
13207 if( status ) return status;
13208 status = pthread_create( &t, &attr, task, NULL );
13209 #if HAVE_PTHREADS < 7
13210 if( status < 0 ) status = errno;
13212 if( status ) return status;
13214 /* Draft 4 pthreads */
13215 status = pthread_create( &t, pthread_attr_default, task, NULL );
13216 if( status ) return errno;
13218 /* give thread a chance to complete */
13219 /* it should remain joinable and hence detachable */
13222 status = pthread_detach( &t );
13223 if( status ) return errno;
13226 #ifdef HAVE_LINUX_THREADS
13227 pthread_kill_other_threads_np();
13234 if { (eval echo configure:13235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13236 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13238 echo "configure: failed program was:" >&5
13239 cat conftest.$ac_ext >&5
13241 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13245 cat > conftest.$ac_ext <<EOF
13246 #line 13247 "configure"
13247 #include "confdefs.h"
13248 /* pthread test headers */
13249 #include <pthread.h>
13250 #if HAVE_PTHREADS < 7
13254 #define NULL (void*)0
13257 static void *task(p)
13260 return (void *) (p == NULL);
13264 int main(argc, argv)
13269 /* pthread test function */
13270 #ifndef PTHREAD_CREATE_DETACHED
13271 #define PTHREAD_CREATE_DETACHED 1
13275 int detach = PTHREAD_CREATE_DETACHED;
13277 #if HAVE_PTHREADS > 4
13278 /* Final pthreads */
13279 pthread_attr_t attr;
13281 status = pthread_attr_init(&attr);
13282 if( status ) return status;
13284 #if HAVE_PTHREADS < 7
13285 status = pthread_attr_setdetachstate(&attr, &detach);
13286 if( status < 0 ) status = errno;
13288 status = pthread_attr_setdetachstate(&attr, detach);
13290 if( status ) return status;
13291 status = pthread_create( &t, &attr, task, NULL );
13292 #if HAVE_PTHREADS < 7
13293 if( status < 0 ) status = errno;
13295 if( status ) return status;
13297 /* Draft 4 pthreads */
13298 status = pthread_create( &t, pthread_attr_default, task, NULL );
13299 if( status ) return errno;
13301 /* give thread a chance to complete */
13302 /* it should remain joinable and hence detachable */
13305 status = pthread_detach( &t );
13306 if( status ) return errno;
13309 #ifdef HAVE_LINUX_THREADS
13310 pthread_kill_other_threads_np();
13318 if { (eval echo configure:13319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13320 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13322 echo "configure: failed program was:" >&5
13323 cat conftest.$ac_ext >&5
13325 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13336 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13338 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13339 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13340 ol_link_threads=posix
13344 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13345 if test "$ol_link_threads" = no ; then
13346 # try -lpthread -lmach -lexc
13347 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13348 echo "configure:13349: checking for pthread link with -lpthread -lmach -lexc" >&5
13349 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13350 echo $ac_n "(cached) $ac_c" 1>&6
13355 LIBS="-lpthread -lmach -lexc $LIBS"
13357 if test "$cross_compiling" = yes; then
13358 cat > conftest.$ac_ext <<EOF
13359 #line 13360 "configure"
13360 #include "confdefs.h"
13361 /* pthread test headers */
13362 #include <pthread.h>
13363 #if HAVE_PTHREADS < 7
13367 #define NULL (void*)0
13370 static void *task(p)
13373 return (void *) (p == NULL);
13378 /* pthread test function */
13379 #ifndef PTHREAD_CREATE_DETACHED
13380 #define PTHREAD_CREATE_DETACHED 1
13384 int detach = PTHREAD_CREATE_DETACHED;
13386 #if HAVE_PTHREADS > 4
13387 /* Final pthreads */
13388 pthread_attr_t attr;
13390 status = pthread_attr_init(&attr);
13391 if( status ) return status;
13393 #if HAVE_PTHREADS < 7
13394 status = pthread_attr_setdetachstate(&attr, &detach);
13395 if( status < 0 ) status = errno;
13397 status = pthread_attr_setdetachstate(&attr, detach);
13399 if( status ) return status;
13400 status = pthread_create( &t, &attr, task, NULL );
13401 #if HAVE_PTHREADS < 7
13402 if( status < 0 ) status = errno;
13404 if( status ) return status;
13406 /* Draft 4 pthreads */
13407 status = pthread_create( &t, pthread_attr_default, task, NULL );
13408 if( status ) return errno;
13410 /* give thread a chance to complete */
13411 /* it should remain joinable and hence detachable */
13414 status = pthread_detach( &t );
13415 if( status ) return errno;
13418 #ifdef HAVE_LINUX_THREADS
13419 pthread_kill_other_threads_np();
13426 if { (eval echo configure:13427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13428 ol_cv_pthread_lpthread_lmach_lexc=yes
13430 echo "configure: failed program was:" >&5
13431 cat conftest.$ac_ext >&5
13433 ol_cv_pthread_lpthread_lmach_lexc=no
13437 cat > conftest.$ac_ext <<EOF
13438 #line 13439 "configure"
13439 #include "confdefs.h"
13440 /* pthread test headers */
13441 #include <pthread.h>
13442 #if HAVE_PTHREADS < 7
13446 #define NULL (void*)0
13449 static void *task(p)
13452 return (void *) (p == NULL);
13456 int main(argc, argv)
13461 /* pthread test function */
13462 #ifndef PTHREAD_CREATE_DETACHED
13463 #define PTHREAD_CREATE_DETACHED 1
13467 int detach = PTHREAD_CREATE_DETACHED;
13469 #if HAVE_PTHREADS > 4
13470 /* Final pthreads */
13471 pthread_attr_t attr;
13473 status = pthread_attr_init(&attr);
13474 if( status ) return status;
13476 #if HAVE_PTHREADS < 7
13477 status = pthread_attr_setdetachstate(&attr, &detach);
13478 if( status < 0 ) status = errno;
13480 status = pthread_attr_setdetachstate(&attr, detach);
13482 if( status ) return status;
13483 status = pthread_create( &t, &attr, task, NULL );
13484 #if HAVE_PTHREADS < 7
13485 if( status < 0 ) status = errno;
13487 if( status ) return status;
13489 /* Draft 4 pthreads */
13490 status = pthread_create( &t, pthread_attr_default, task, NULL );
13491 if( status ) return errno;
13493 /* give thread a chance to complete */
13494 /* it should remain joinable and hence detachable */
13497 status = pthread_detach( &t );
13498 if( status ) return errno;
13501 #ifdef HAVE_LINUX_THREADS
13502 pthread_kill_other_threads_np();
13510 if { (eval echo configure:13511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13512 ol_cv_pthread_lpthread_lmach_lexc=yes
13514 echo "configure: failed program was:" >&5
13515 cat conftest.$ac_ext >&5
13517 ol_cv_pthread_lpthread_lmach_lexc=no
13528 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13530 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13531 ol_link_pthreads="-lpthread -lmach -lexc"
13532 ol_link_threads=posix
13537 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13538 if test "$ol_link_threads" = no ; then
13539 # try -lpthread -Wl,-woff,85
13540 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13541 echo "configure:13542: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13542 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13543 echo $ac_n "(cached) $ac_c" 1>&6
13548 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13550 if test "$cross_compiling" = yes; then
13551 cat > conftest.$ac_ext <<EOF
13552 #line 13553 "configure"
13553 #include "confdefs.h"
13554 /* pthread test headers */
13555 #include <pthread.h>
13556 #if HAVE_PTHREADS < 7
13560 #define NULL (void*)0
13563 static void *task(p)
13566 return (void *) (p == NULL);
13571 /* pthread test function */
13572 #ifndef PTHREAD_CREATE_DETACHED
13573 #define PTHREAD_CREATE_DETACHED 1
13577 int detach = PTHREAD_CREATE_DETACHED;
13579 #if HAVE_PTHREADS > 4
13580 /* Final pthreads */
13581 pthread_attr_t attr;
13583 status = pthread_attr_init(&attr);
13584 if( status ) return status;
13586 #if HAVE_PTHREADS < 7
13587 status = pthread_attr_setdetachstate(&attr, &detach);
13588 if( status < 0 ) status = errno;
13590 status = pthread_attr_setdetachstate(&attr, detach);
13592 if( status ) return status;
13593 status = pthread_create( &t, &attr, task, NULL );
13594 #if HAVE_PTHREADS < 7
13595 if( status < 0 ) status = errno;
13597 if( status ) return status;
13599 /* Draft 4 pthreads */
13600 status = pthread_create( &t, pthread_attr_default, task, NULL );
13601 if( status ) return errno;
13603 /* give thread a chance to complete */
13604 /* it should remain joinable and hence detachable */
13607 status = pthread_detach( &t );
13608 if( status ) return errno;
13611 #ifdef HAVE_LINUX_THREADS
13612 pthread_kill_other_threads_np();
13619 if { (eval echo configure:13620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13621 ol_cv_pthread_lib_lpthread_woff=yes
13623 echo "configure: failed program was:" >&5
13624 cat conftest.$ac_ext >&5
13626 ol_cv_pthread_lib_lpthread_woff=no
13630 cat > conftest.$ac_ext <<EOF
13631 #line 13632 "configure"
13632 #include "confdefs.h"
13633 /* pthread test headers */
13634 #include <pthread.h>
13635 #if HAVE_PTHREADS < 7
13639 #define NULL (void*)0
13642 static void *task(p)
13645 return (void *) (p == NULL);
13649 int main(argc, argv)
13654 /* pthread test function */
13655 #ifndef PTHREAD_CREATE_DETACHED
13656 #define PTHREAD_CREATE_DETACHED 1
13660 int detach = PTHREAD_CREATE_DETACHED;
13662 #if HAVE_PTHREADS > 4
13663 /* Final pthreads */
13664 pthread_attr_t attr;
13666 status = pthread_attr_init(&attr);
13667 if( status ) return status;
13669 #if HAVE_PTHREADS < 7
13670 status = pthread_attr_setdetachstate(&attr, &detach);
13671 if( status < 0 ) status = errno;
13673 status = pthread_attr_setdetachstate(&attr, detach);
13675 if( status ) return status;
13676 status = pthread_create( &t, &attr, task, NULL );
13677 #if HAVE_PTHREADS < 7
13678 if( status < 0 ) status = errno;
13680 if( status ) return status;
13682 /* Draft 4 pthreads */
13683 status = pthread_create( &t, pthread_attr_default, task, NULL );
13684 if( status ) return errno;
13686 /* give thread a chance to complete */
13687 /* it should remain joinable and hence detachable */
13690 status = pthread_detach( &t );
13691 if( status ) return errno;
13694 #ifdef HAVE_LINUX_THREADS
13695 pthread_kill_other_threads_np();
13703 if { (eval echo configure:13704: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13705 ol_cv_pthread_lib_lpthread_woff=yes
13707 echo "configure: failed program was:" >&5
13708 cat conftest.$ac_ext >&5
13710 ol_cv_pthread_lib_lpthread_woff=no
13721 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13723 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13724 ol_link_pthreads="-lpthread -Wl,-woff,85"
13725 ol_link_threads=posix
13730 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13731 if test "$ol_link_threads" = no ; then
13733 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13734 echo "configure:13735: checking for pthread link with -lpthread" >&5
13735 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13736 echo $ac_n "(cached) $ac_c" 1>&6
13741 LIBS="-lpthread $LIBS"
13743 if test "$cross_compiling" = yes; then
13744 cat > conftest.$ac_ext <<EOF
13745 #line 13746 "configure"
13746 #include "confdefs.h"
13747 /* pthread test headers */
13748 #include <pthread.h>
13749 #if HAVE_PTHREADS < 7
13753 #define NULL (void*)0
13756 static void *task(p)
13759 return (void *) (p == NULL);
13764 /* pthread test function */
13765 #ifndef PTHREAD_CREATE_DETACHED
13766 #define PTHREAD_CREATE_DETACHED 1
13770 int detach = PTHREAD_CREATE_DETACHED;
13772 #if HAVE_PTHREADS > 4
13773 /* Final pthreads */
13774 pthread_attr_t attr;
13776 status = pthread_attr_init(&attr);
13777 if( status ) return status;
13779 #if HAVE_PTHREADS < 7
13780 status = pthread_attr_setdetachstate(&attr, &detach);
13781 if( status < 0 ) status = errno;
13783 status = pthread_attr_setdetachstate(&attr, detach);
13785 if( status ) return status;
13786 status = pthread_create( &t, &attr, task, NULL );
13787 #if HAVE_PTHREADS < 7
13788 if( status < 0 ) status = errno;
13790 if( status ) return status;
13792 /* Draft 4 pthreads */
13793 status = pthread_create( &t, pthread_attr_default, task, NULL );
13794 if( status ) return errno;
13796 /* give thread a chance to complete */
13797 /* it should remain joinable and hence detachable */
13800 status = pthread_detach( &t );
13801 if( status ) return errno;
13804 #ifdef HAVE_LINUX_THREADS
13805 pthread_kill_other_threads_np();
13812 if { (eval echo configure:13813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13814 ol_cv_pthread_lpthread=yes
13816 echo "configure: failed program was:" >&5
13817 cat conftest.$ac_ext >&5
13819 ol_cv_pthread_lpthread=no
13823 cat > conftest.$ac_ext <<EOF
13824 #line 13825 "configure"
13825 #include "confdefs.h"
13826 /* pthread test headers */
13827 #include <pthread.h>
13828 #if HAVE_PTHREADS < 7
13832 #define NULL (void*)0
13835 static void *task(p)
13838 return (void *) (p == NULL);
13842 int main(argc, argv)
13847 /* pthread test function */
13848 #ifndef PTHREAD_CREATE_DETACHED
13849 #define PTHREAD_CREATE_DETACHED 1
13853 int detach = PTHREAD_CREATE_DETACHED;
13855 #if HAVE_PTHREADS > 4
13856 /* Final pthreads */
13857 pthread_attr_t attr;
13859 status = pthread_attr_init(&attr);
13860 if( status ) return status;
13862 #if HAVE_PTHREADS < 7
13863 status = pthread_attr_setdetachstate(&attr, &detach);
13864 if( status < 0 ) status = errno;
13866 status = pthread_attr_setdetachstate(&attr, detach);
13868 if( status ) return status;
13869 status = pthread_create( &t, &attr, task, NULL );
13870 #if HAVE_PTHREADS < 7
13871 if( status < 0 ) status = errno;
13873 if( status ) return status;
13875 /* Draft 4 pthreads */
13876 status = pthread_create( &t, pthread_attr_default, task, NULL );
13877 if( status ) return errno;
13879 /* give thread a chance to complete */
13880 /* it should remain joinable and hence detachable */
13883 status = pthread_detach( &t );
13884 if( status ) return errno;
13887 #ifdef HAVE_LINUX_THREADS
13888 pthread_kill_other_threads_np();
13896 if { (eval echo configure:13897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13898 ol_cv_pthread_lpthread=yes
13900 echo "configure: failed program was:" >&5
13901 cat conftest.$ac_ext >&5
13903 ol_cv_pthread_lpthread=no
13914 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13916 if test $ol_cv_pthread_lpthread = yes ; then
13917 ol_link_pthreads="-lpthread"
13918 ol_link_threads=posix
13922 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13923 if test "$ol_link_threads" = no ; then
13925 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13926 echo "configure:13927: checking for pthread link with -lc_r" >&5
13927 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13928 echo $ac_n "(cached) $ac_c" 1>&6
13935 if test "$cross_compiling" = yes; then
13936 cat > conftest.$ac_ext <<EOF
13937 #line 13938 "configure"
13938 #include "confdefs.h"
13939 /* pthread test headers */
13940 #include <pthread.h>
13941 #if HAVE_PTHREADS < 7
13945 #define NULL (void*)0
13948 static void *task(p)
13951 return (void *) (p == NULL);
13956 /* pthread test function */
13957 #ifndef PTHREAD_CREATE_DETACHED
13958 #define PTHREAD_CREATE_DETACHED 1
13962 int detach = PTHREAD_CREATE_DETACHED;
13964 #if HAVE_PTHREADS > 4
13965 /* Final pthreads */
13966 pthread_attr_t attr;
13968 status = pthread_attr_init(&attr);
13969 if( status ) return status;
13971 #if HAVE_PTHREADS < 7
13972 status = pthread_attr_setdetachstate(&attr, &detach);
13973 if( status < 0 ) status = errno;
13975 status = pthread_attr_setdetachstate(&attr, detach);
13977 if( status ) return status;
13978 status = pthread_create( &t, &attr, task, NULL );
13979 #if HAVE_PTHREADS < 7
13980 if( status < 0 ) status = errno;
13982 if( status ) return status;
13984 /* Draft 4 pthreads */
13985 status = pthread_create( &t, pthread_attr_default, task, NULL );
13986 if( status ) return errno;
13988 /* give thread a chance to complete */
13989 /* it should remain joinable and hence detachable */
13992 status = pthread_detach( &t );
13993 if( status ) return errno;
13996 #ifdef HAVE_LINUX_THREADS
13997 pthread_kill_other_threads_np();
14004 if { (eval echo configure:14005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14006 ol_cv_pthread_lc_r=yes
14008 echo "configure: failed program was:" >&5
14009 cat conftest.$ac_ext >&5
14011 ol_cv_pthread_lc_r=no
14015 cat > conftest.$ac_ext <<EOF
14016 #line 14017 "configure"
14017 #include "confdefs.h"
14018 /* pthread test headers */
14019 #include <pthread.h>
14020 #if HAVE_PTHREADS < 7
14024 #define NULL (void*)0
14027 static void *task(p)
14030 return (void *) (p == NULL);
14034 int main(argc, argv)
14039 /* pthread test function */
14040 #ifndef PTHREAD_CREATE_DETACHED
14041 #define PTHREAD_CREATE_DETACHED 1
14045 int detach = PTHREAD_CREATE_DETACHED;
14047 #if HAVE_PTHREADS > 4
14048 /* Final pthreads */
14049 pthread_attr_t attr;
14051 status = pthread_attr_init(&attr);
14052 if( status ) return status;
14054 #if HAVE_PTHREADS < 7
14055 status = pthread_attr_setdetachstate(&attr, &detach);
14056 if( status < 0 ) status = errno;
14058 status = pthread_attr_setdetachstate(&attr, detach);
14060 if( status ) return status;
14061 status = pthread_create( &t, &attr, task, NULL );
14062 #if HAVE_PTHREADS < 7
14063 if( status < 0 ) status = errno;
14065 if( status ) return status;
14067 /* Draft 4 pthreads */
14068 status = pthread_create( &t, pthread_attr_default, task, NULL );
14069 if( status ) return errno;
14071 /* give thread a chance to complete */
14072 /* it should remain joinable and hence detachable */
14075 status = pthread_detach( &t );
14076 if( status ) return errno;
14079 #ifdef HAVE_LINUX_THREADS
14080 pthread_kill_other_threads_np();
14088 if { (eval echo configure:14089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
14090 ol_cv_pthread_lc_r=yes
14092 echo "configure: failed program was:" >&5
14093 cat conftest.$ac_ext >&5
14095 ol_cv_pthread_lc_r=no
14106 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
14108 if test $ol_cv_pthread_lc_r = yes ; then
14109 ol_link_pthreads="-lc_r"
14110 ol_link_threads=posix
14115 # Pthread try link: -threads (ol_cv_pthread_threads)
14116 if test "$ol_link_threads" = no ; then
14118 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
14119 echo "configure:14120: checking for pthread link with -threads" >&5
14120 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
14121 echo $ac_n "(cached) $ac_c" 1>&6
14126 LIBS="-threads $LIBS"
14128 if test "$cross_compiling" = yes; then
14129 cat > conftest.$ac_ext <<EOF
14130 #line 14131 "configure"
14131 #include "confdefs.h"
14132 /* pthread test headers */
14133 #include <pthread.h>
14134 #if HAVE_PTHREADS < 7
14138 #define NULL (void*)0
14141 static void *task(p)
14144 return (void *) (p == NULL);
14149 /* pthread test function */
14150 #ifndef PTHREAD_CREATE_DETACHED
14151 #define PTHREAD_CREATE_DETACHED 1
14155 int detach = PTHREAD_CREATE_DETACHED;
14157 #if HAVE_PTHREADS > 4
14158 /* Final pthreads */
14159 pthread_attr_t attr;
14161 status = pthread_attr_init(&attr);
14162 if( status ) return status;
14164 #if HAVE_PTHREADS < 7
14165 status = pthread_attr_setdetachstate(&attr, &detach);
14166 if( status < 0 ) status = errno;
14168 status = pthread_attr_setdetachstate(&attr, detach);
14170 if( status ) return status;
14171 status = pthread_create( &t, &attr, task, NULL );
14172 #if HAVE_PTHREADS < 7
14173 if( status < 0 ) status = errno;
14175 if( status ) return status;
14177 /* Draft 4 pthreads */
14178 status = pthread_create( &t, pthread_attr_default, task, NULL );
14179 if( status ) return errno;
14181 /* give thread a chance to complete */
14182 /* it should remain joinable and hence detachable */
14185 status = pthread_detach( &t );
14186 if( status ) return errno;
14189 #ifdef HAVE_LINUX_THREADS
14190 pthread_kill_other_threads_np();
14197 if { (eval echo configure:14198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14199 ol_cv_pthread_threads=yes
14201 echo "configure: failed program was:" >&5
14202 cat conftest.$ac_ext >&5
14204 ol_cv_pthread_threads=no
14208 cat > conftest.$ac_ext <<EOF
14209 #line 14210 "configure"
14210 #include "confdefs.h"
14211 /* pthread test headers */
14212 #include <pthread.h>
14213 #if HAVE_PTHREADS < 7
14217 #define NULL (void*)0
14220 static void *task(p)
14223 return (void *) (p == NULL);
14227 int main(argc, argv)
14232 /* pthread test function */
14233 #ifndef PTHREAD_CREATE_DETACHED
14234 #define PTHREAD_CREATE_DETACHED 1
14238 int detach = PTHREAD_CREATE_DETACHED;
14240 #if HAVE_PTHREADS > 4
14241 /* Final pthreads */
14242 pthread_attr_t attr;
14244 status = pthread_attr_init(&attr);
14245 if( status ) return status;
14247 #if HAVE_PTHREADS < 7
14248 status = pthread_attr_setdetachstate(&attr, &detach);
14249 if( status < 0 ) status = errno;
14251 status = pthread_attr_setdetachstate(&attr, detach);
14253 if( status ) return status;
14254 status = pthread_create( &t, &attr, task, NULL );
14255 #if HAVE_PTHREADS < 7
14256 if( status < 0 ) status = errno;
14258 if( status ) return status;
14260 /* Draft 4 pthreads */
14261 status = pthread_create( &t, pthread_attr_default, task, NULL );
14262 if( status ) return errno;
14264 /* give thread a chance to complete */
14265 /* it should remain joinable and hence detachable */
14268 status = pthread_detach( &t );
14269 if( status ) return errno;
14272 #ifdef HAVE_LINUX_THREADS
14273 pthread_kill_other_threads_np();
14281 if { (eval echo configure:14282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
14283 ol_cv_pthread_threads=yes
14285 echo "configure: failed program was:" >&5
14286 cat conftest.$ac_ext >&5
14288 ol_cv_pthread_threads=no
14299 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
14301 if test $ol_cv_pthread_threads = yes ; then
14302 ol_link_pthreads="-threads"
14303 ol_link_threads=posix
14308 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
14309 if test "$ol_link_threads" = no ; then
14310 # try -lpthreads -lmach -lexc -lc_r
14311 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
14312 echo "configure:14313: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
14313 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
14314 echo $ac_n "(cached) $ac_c" 1>&6
14319 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
14321 if test "$cross_compiling" = yes; then
14322 cat > conftest.$ac_ext <<EOF
14323 #line 14324 "configure"
14324 #include "confdefs.h"
14325 /* pthread test headers */
14326 #include <pthread.h>
14327 #if HAVE_PTHREADS < 7
14331 #define NULL (void*)0
14334 static void *task(p)
14337 return (void *) (p == NULL);
14342 /* pthread test function */
14343 #ifndef PTHREAD_CREATE_DETACHED
14344 #define PTHREAD_CREATE_DETACHED 1
14348 int detach = PTHREAD_CREATE_DETACHED;
14350 #if HAVE_PTHREADS > 4
14351 /* Final pthreads */
14352 pthread_attr_t attr;
14354 status = pthread_attr_init(&attr);
14355 if( status ) return status;
14357 #if HAVE_PTHREADS < 7
14358 status = pthread_attr_setdetachstate(&attr, &detach);
14359 if( status < 0 ) status = errno;
14361 status = pthread_attr_setdetachstate(&attr, detach);
14363 if( status ) return status;
14364 status = pthread_create( &t, &attr, task, NULL );
14365 #if HAVE_PTHREADS < 7
14366 if( status < 0 ) status = errno;
14368 if( status ) return status;
14370 /* Draft 4 pthreads */
14371 status = pthread_create( &t, pthread_attr_default, task, NULL );
14372 if( status ) return errno;
14374 /* give thread a chance to complete */
14375 /* it should remain joinable and hence detachable */
14378 status = pthread_detach( &t );
14379 if( status ) return errno;
14382 #ifdef HAVE_LINUX_THREADS
14383 pthread_kill_other_threads_np();
14390 if { (eval echo configure:14391: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14392 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14394 echo "configure: failed program was:" >&5
14395 cat conftest.$ac_ext >&5
14397 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14401 cat > conftest.$ac_ext <<EOF
14402 #line 14403 "configure"
14403 #include "confdefs.h"
14404 /* pthread test headers */
14405 #include <pthread.h>
14406 #if HAVE_PTHREADS < 7
14410 #define NULL (void*)0
14413 static void *task(p)
14416 return (void *) (p == NULL);
14420 int main(argc, argv)
14425 /* pthread test function */
14426 #ifndef PTHREAD_CREATE_DETACHED
14427 #define PTHREAD_CREATE_DETACHED 1
14431 int detach = PTHREAD_CREATE_DETACHED;
14433 #if HAVE_PTHREADS > 4
14434 /* Final pthreads */
14435 pthread_attr_t attr;
14437 status = pthread_attr_init(&attr);
14438 if( status ) return status;
14440 #if HAVE_PTHREADS < 7
14441 status = pthread_attr_setdetachstate(&attr, &detach);
14442 if( status < 0 ) status = errno;
14444 status = pthread_attr_setdetachstate(&attr, detach);
14446 if( status ) return status;
14447 status = pthread_create( &t, &attr, task, NULL );
14448 #if HAVE_PTHREADS < 7
14449 if( status < 0 ) status = errno;
14451 if( status ) return status;
14453 /* Draft 4 pthreads */
14454 status = pthread_create( &t, pthread_attr_default, task, NULL );
14455 if( status ) return errno;
14457 /* give thread a chance to complete */
14458 /* it should remain joinable and hence detachable */
14461 status = pthread_detach( &t );
14462 if( status ) return errno;
14465 #ifdef HAVE_LINUX_THREADS
14466 pthread_kill_other_threads_np();
14474 if { (eval echo configure:14475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
14476 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14478 echo "configure: failed program was:" >&5
14479 cat conftest.$ac_ext >&5
14481 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14492 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14494 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14495 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14496 ol_link_threads=posix
14500 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14501 if test "$ol_link_threads" = no ; then
14502 # try -lpthreads -lmach -lexc
14503 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14504 echo "configure:14505: checking for pthread link with -lpthreads -lmach -lexc" >&5
14505 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14506 echo $ac_n "(cached) $ac_c" 1>&6
14511 LIBS="-lpthreads -lmach -lexc $LIBS"
14513 if test "$cross_compiling" = yes; then
14514 cat > conftest.$ac_ext <<EOF
14515 #line 14516 "configure"
14516 #include "confdefs.h"
14517 /* pthread test headers */
14518 #include <pthread.h>
14519 #if HAVE_PTHREADS < 7
14523 #define NULL (void*)0
14526 static void *task(p)
14529 return (void *) (p == NULL);
14534 /* pthread test function */
14535 #ifndef PTHREAD_CREATE_DETACHED
14536 #define PTHREAD_CREATE_DETACHED 1
14540 int detach = PTHREAD_CREATE_DETACHED;
14542 #if HAVE_PTHREADS > 4
14543 /* Final pthreads */
14544 pthread_attr_t attr;
14546 status = pthread_attr_init(&attr);
14547 if( status ) return status;
14549 #if HAVE_PTHREADS < 7
14550 status = pthread_attr_setdetachstate(&attr, &detach);
14551 if( status < 0 ) status = errno;
14553 status = pthread_attr_setdetachstate(&attr, detach);
14555 if( status ) return status;
14556 status = pthread_create( &t, &attr, task, NULL );
14557 #if HAVE_PTHREADS < 7
14558 if( status < 0 ) status = errno;
14560 if( status ) return status;
14562 /* Draft 4 pthreads */
14563 status = pthread_create( &t, pthread_attr_default, task, NULL );
14564 if( status ) return errno;
14566 /* give thread a chance to complete */
14567 /* it should remain joinable and hence detachable */
14570 status = pthread_detach( &t );
14571 if( status ) return errno;
14574 #ifdef HAVE_LINUX_THREADS
14575 pthread_kill_other_threads_np();
14582 if { (eval echo configure:14583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14584 ol_cv_pthread_lpthreads_lmach_lexc=yes
14586 echo "configure: failed program was:" >&5
14587 cat conftest.$ac_ext >&5
14589 ol_cv_pthread_lpthreads_lmach_lexc=no
14593 cat > conftest.$ac_ext <<EOF
14594 #line 14595 "configure"
14595 #include "confdefs.h"
14596 /* pthread test headers */
14597 #include <pthread.h>
14598 #if HAVE_PTHREADS < 7
14602 #define NULL (void*)0
14605 static void *task(p)
14608 return (void *) (p == NULL);
14612 int main(argc, argv)
14617 /* pthread test function */
14618 #ifndef PTHREAD_CREATE_DETACHED
14619 #define PTHREAD_CREATE_DETACHED 1
14623 int detach = PTHREAD_CREATE_DETACHED;
14625 #if HAVE_PTHREADS > 4
14626 /* Final pthreads */
14627 pthread_attr_t attr;
14629 status = pthread_attr_init(&attr);
14630 if( status ) return status;
14632 #if HAVE_PTHREADS < 7
14633 status = pthread_attr_setdetachstate(&attr, &detach);
14634 if( status < 0 ) status = errno;
14636 status = pthread_attr_setdetachstate(&attr, detach);
14638 if( status ) return status;
14639 status = pthread_create( &t, &attr, task, NULL );
14640 #if HAVE_PTHREADS < 7
14641 if( status < 0 ) status = errno;
14643 if( status ) return status;
14645 /* Draft 4 pthreads */
14646 status = pthread_create( &t, pthread_attr_default, task, NULL );
14647 if( status ) return errno;
14649 /* give thread a chance to complete */
14650 /* it should remain joinable and hence detachable */
14653 status = pthread_detach( &t );
14654 if( status ) return errno;
14657 #ifdef HAVE_LINUX_THREADS
14658 pthread_kill_other_threads_np();
14666 if { (eval echo configure:14667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
14668 ol_cv_pthread_lpthreads_lmach_lexc=yes
14670 echo "configure: failed program was:" >&5
14671 cat conftest.$ac_ext >&5
14673 ol_cv_pthread_lpthreads_lmach_lexc=no
14684 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14686 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14687 ol_link_pthreads="-lpthreads -lmach -lexc"
14688 ol_link_threads=posix
14692 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14693 if test "$ol_link_threads" = no ; then
14694 # try -lpthreads -lexc
14695 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14696 echo "configure:14697: checking for pthread link with -lpthreads -lexc" >&5
14697 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14698 echo $ac_n "(cached) $ac_c" 1>&6
14703 LIBS="-lpthreads -lexc $LIBS"
14705 if test "$cross_compiling" = yes; then
14706 cat > conftest.$ac_ext <<EOF
14707 #line 14708 "configure"
14708 #include "confdefs.h"
14709 /* pthread test headers */
14710 #include <pthread.h>
14711 #if HAVE_PTHREADS < 7
14715 #define NULL (void*)0
14718 static void *task(p)
14721 return (void *) (p == NULL);
14726 /* pthread test function */
14727 #ifndef PTHREAD_CREATE_DETACHED
14728 #define PTHREAD_CREATE_DETACHED 1
14732 int detach = PTHREAD_CREATE_DETACHED;
14734 #if HAVE_PTHREADS > 4
14735 /* Final pthreads */
14736 pthread_attr_t attr;
14738 status = pthread_attr_init(&attr);
14739 if( status ) return status;
14741 #if HAVE_PTHREADS < 7
14742 status = pthread_attr_setdetachstate(&attr, &detach);
14743 if( status < 0 ) status = errno;
14745 status = pthread_attr_setdetachstate(&attr, detach);
14747 if( status ) return status;
14748 status = pthread_create( &t, &attr, task, NULL );
14749 #if HAVE_PTHREADS < 7
14750 if( status < 0 ) status = errno;
14752 if( status ) return status;
14754 /* Draft 4 pthreads */
14755 status = pthread_create( &t, pthread_attr_default, task, NULL );
14756 if( status ) return errno;
14758 /* give thread a chance to complete */
14759 /* it should remain joinable and hence detachable */
14762 status = pthread_detach( &t );
14763 if( status ) return errno;
14766 #ifdef HAVE_LINUX_THREADS
14767 pthread_kill_other_threads_np();
14774 if { (eval echo configure:14775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14776 ol_cv_pthread_lpthreads_lexc=yes
14778 echo "configure: failed program was:" >&5
14779 cat conftest.$ac_ext >&5
14781 ol_cv_pthread_lpthreads_lexc=no
14785 cat > conftest.$ac_ext <<EOF
14786 #line 14787 "configure"
14787 #include "confdefs.h"
14788 /* pthread test headers */
14789 #include <pthread.h>
14790 #if HAVE_PTHREADS < 7
14794 #define NULL (void*)0
14797 static void *task(p)
14800 return (void *) (p == NULL);
14804 int main(argc, argv)
14809 /* pthread test function */
14810 #ifndef PTHREAD_CREATE_DETACHED
14811 #define PTHREAD_CREATE_DETACHED 1
14815 int detach = PTHREAD_CREATE_DETACHED;
14817 #if HAVE_PTHREADS > 4
14818 /* Final pthreads */
14819 pthread_attr_t attr;
14821 status = pthread_attr_init(&attr);
14822 if( status ) return status;
14824 #if HAVE_PTHREADS < 7
14825 status = pthread_attr_setdetachstate(&attr, &detach);
14826 if( status < 0 ) status = errno;
14828 status = pthread_attr_setdetachstate(&attr, detach);
14830 if( status ) return status;
14831 status = pthread_create( &t, &attr, task, NULL );
14832 #if HAVE_PTHREADS < 7
14833 if( status < 0 ) status = errno;
14835 if( status ) return status;
14837 /* Draft 4 pthreads */
14838 status = pthread_create( &t, pthread_attr_default, task, NULL );
14839 if( status ) return errno;
14841 /* give thread a chance to complete */
14842 /* it should remain joinable and hence detachable */
14845 status = pthread_detach( &t );
14846 if( status ) return errno;
14849 #ifdef HAVE_LINUX_THREADS
14850 pthread_kill_other_threads_np();
14858 if { (eval echo configure:14859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
14860 ol_cv_pthread_lpthreads_lexc=yes
14862 echo "configure: failed program was:" >&5
14863 cat conftest.$ac_ext >&5
14865 ol_cv_pthread_lpthreads_lexc=no
14876 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14878 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14879 ol_link_pthreads="-lpthreads -lexc"
14880 ol_link_threads=posix
14885 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14886 if test "$ol_link_threads" = no ; then
14888 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14889 echo "configure:14890: checking for pthread link with -lpthreads" >&5
14890 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14891 echo $ac_n "(cached) $ac_c" 1>&6
14896 LIBS="-lpthreads $LIBS"
14898 if test "$cross_compiling" = yes; then
14899 cat > conftest.$ac_ext <<EOF
14900 #line 14901 "configure"
14901 #include "confdefs.h"
14902 /* pthread test headers */
14903 #include <pthread.h>
14904 #if HAVE_PTHREADS < 7
14908 #define NULL (void*)0
14911 static void *task(p)
14914 return (void *) (p == NULL);
14919 /* pthread test function */
14920 #ifndef PTHREAD_CREATE_DETACHED
14921 #define PTHREAD_CREATE_DETACHED 1
14925 int detach = PTHREAD_CREATE_DETACHED;
14927 #if HAVE_PTHREADS > 4
14928 /* Final pthreads */
14929 pthread_attr_t attr;
14931 status = pthread_attr_init(&attr);
14932 if( status ) return status;
14934 #if HAVE_PTHREADS < 7
14935 status = pthread_attr_setdetachstate(&attr, &detach);
14936 if( status < 0 ) status = errno;
14938 status = pthread_attr_setdetachstate(&attr, detach);
14940 if( status ) return status;
14941 status = pthread_create( &t, &attr, task, NULL );
14942 #if HAVE_PTHREADS < 7
14943 if( status < 0 ) status = errno;
14945 if( status ) return status;
14947 /* Draft 4 pthreads */
14948 status = pthread_create( &t, pthread_attr_default, task, NULL );
14949 if( status ) return errno;
14951 /* give thread a chance to complete */
14952 /* it should remain joinable and hence detachable */
14955 status = pthread_detach( &t );
14956 if( status ) return errno;
14959 #ifdef HAVE_LINUX_THREADS
14960 pthread_kill_other_threads_np();
14967 if { (eval echo configure:14968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14969 ol_cv_pthread_lib_lpthreads=yes
14971 echo "configure: failed program was:" >&5
14972 cat conftest.$ac_ext >&5
14974 ol_cv_pthread_lib_lpthreads=no
14978 cat > conftest.$ac_ext <<EOF
14979 #line 14980 "configure"
14980 #include "confdefs.h"
14981 /* pthread test headers */
14982 #include <pthread.h>
14983 #if HAVE_PTHREADS < 7
14987 #define NULL (void*)0
14990 static void *task(p)
14993 return (void *) (p == NULL);
14997 int main(argc, argv)
15002 /* pthread test function */
15003 #ifndef PTHREAD_CREATE_DETACHED
15004 #define PTHREAD_CREATE_DETACHED 1
15008 int detach = PTHREAD_CREATE_DETACHED;
15010 #if HAVE_PTHREADS > 4
15011 /* Final pthreads */
15012 pthread_attr_t attr;
15014 status = pthread_attr_init(&attr);
15015 if( status ) return status;
15017 #if HAVE_PTHREADS < 7
15018 status = pthread_attr_setdetachstate(&attr, &detach);
15019 if( status < 0 ) status = errno;
15021 status = pthread_attr_setdetachstate(&attr, detach);
15023 if( status ) return status;
15024 status = pthread_create( &t, &attr, task, NULL );
15025 #if HAVE_PTHREADS < 7
15026 if( status < 0 ) status = errno;
15028 if( status ) return status;
15030 /* Draft 4 pthreads */
15031 status = pthread_create( &t, pthread_attr_default, task, NULL );
15032 if( status ) return errno;
15034 /* give thread a chance to complete */
15035 /* it should remain joinable and hence detachable */
15038 status = pthread_detach( &t );
15039 if( status ) return errno;
15042 #ifdef HAVE_LINUX_THREADS
15043 pthread_kill_other_threads_np();
15051 if { (eval echo configure:15052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
15053 ol_cv_pthread_lib_lpthreads=yes
15055 echo "configure: failed program was:" >&5
15056 cat conftest.$ac_ext >&5
15058 ol_cv_pthread_lib_lpthreads=no
15069 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
15071 if test $ol_cv_pthread_lib_lpthreads = yes ; then
15072 ol_link_pthreads="-lpthreads"
15073 ol_link_threads=posix
15078 if test $ol_link_threads != no ; then
15079 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
15081 save_CPPFLAGS="$CPPFLAGS"
15083 LIBS="$LTHREAD_LIBS $LIBS"
15085 for ac_func in sched_yield pthread_yield thr_yield
15087 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15088 echo "configure:15089: checking for $ac_func" >&5
15089 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15090 echo $ac_n "(cached) $ac_c" 1>&6
15092 cat > conftest.$ac_ext <<EOF
15093 #line 15094 "configure"
15094 #include "confdefs.h"
15095 /* System header to define __stub macros and hopefully few prototypes,
15096 which can conflict with char $ac_func(); below. */
15097 #include <assert.h>
15098 /* Override any gcc2 internal prototype to avoid an error. */
15099 /* We use char because int might match the return type of a gcc2
15100 builtin and then its argument prototype would still apply. */
15106 /* The GNU C library defines this for functions which it implements
15107 to always fail with ENOSYS. Some functions are actually named
15108 something starting with __ and the normal name is an alias. */
15109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15117 if { (eval echo configure:15118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15119 eval "ac_cv_func_$ac_func=yes"
15121 echo "configure: failed program was:" >&5
15122 cat conftest.$ac_ext >&5
15124 eval "ac_cv_func_$ac_func=no"
15129 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15130 echo "$ac_t""yes" 1>&6
15131 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15132 cat >> confdefs.h <<EOF
15133 #define $ac_tr_func 1
15137 echo "$ac_t""no" 1>&6
15142 if test $ac_cv_func_sched_yield = no -a \
15143 $ac_cv_func_pthread_yield = no -a \
15144 $ac_cv_func_thr_yield = no ; then
15145 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
15146 echo "configure:15147: checking for sched_yield in -lrt" >&5
15147 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
15148 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15149 echo $ac_n "(cached) $ac_c" 1>&6
15151 ac_save_LIBS="$LIBS"
15153 cat > conftest.$ac_ext <<EOF
15154 #line 15155 "configure"
15155 #include "confdefs.h"
15156 /* Override any gcc2 internal prototype to avoid an error. */
15157 /* We use char because int might match the return type of a gcc2
15158 builtin and then its argument prototype would still apply. */
15159 char sched_yield();
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_lib_$ac_lib_var=yes"
15169 echo "configure: failed program was:" >&5
15170 cat conftest.$ac_ext >&5
15172 eval "ac_cv_lib_$ac_lib_var=no"
15175 LIBS="$ac_save_LIBS"
15178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15179 echo "$ac_t""yes" 1>&6
15180 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
15181 cat >> confdefs.h <<\EOF
15182 #define HAVE_SCHED_YIELD 1
15185 ac_cv_func_sched_yield=yes
15187 echo "$ac_t""no" 1>&6
15188 ac_cv_func_sched_yield=no
15192 if test $ac_cv_func_sched_yield = no -a \
15193 $ac_cv_func_pthread_yield = no -a \
15194 "$ac_cv_func_thr_yield" = no ; then
15195 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
15198 for ac_func in pthread_kill pthread_rwlock_destroy
15200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15201 echo "configure:15202: checking for $ac_func" >&5
15202 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15203 echo $ac_n "(cached) $ac_c" 1>&6
15205 cat > conftest.$ac_ext <<EOF
15206 #line 15207 "configure"
15207 #include "confdefs.h"
15208 /* System header to define __stub macros and hopefully few prototypes,
15209 which can conflict with char $ac_func(); below. */
15210 #include <assert.h>
15211 /* Override any gcc2 internal prototype to avoid an error. */
15212 /* We use char because int might match the return type of a gcc2
15213 builtin and then its argument prototype would still apply. */
15219 /* The GNU C library defines this for functions which it implements
15220 to always fail with ENOSYS. Some functions are actually named
15221 something starting with __ and the normal name is an alias. */
15222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15230 if { (eval echo configure:15231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15232 eval "ac_cv_func_$ac_func=yes"
15234 echo "configure: failed program was:" >&5
15235 cat conftest.$ac_ext >&5
15237 eval "ac_cv_func_$ac_func=no"
15242 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15243 echo "$ac_t""yes" 1>&6
15244 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15245 cat >> confdefs.h <<EOF
15246 #define $ac_tr_func 1
15250 echo "$ac_t""no" 1>&6
15255 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
15256 echo "configure:15257: checking for pthread_detach with <pthread.h>" >&5
15257 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
15258 echo $ac_n "(cached) $ac_c" 1>&6
15261 cat > conftest.$ac_ext <<EOF
15262 #line 15263 "configure"
15263 #include "confdefs.h"
15265 #include <pthread.h>
15267 #define NULL (void*)0
15271 pthread_detach(NULL);
15274 if { (eval echo configure:15275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15276 ol_cv_func_pthread_detach=yes
15278 echo "configure: failed program was:" >&5
15279 cat conftest.$ac_ext >&5
15281 ol_cv_func_pthread_detach=no
15287 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
15289 if test $ol_cv_func_pthread_detach = no ; then
15290 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
15293 cat >> confdefs.h <<\EOF
15294 #define HAVE_PTHREAD_DETACH 1
15299 pthread_setconcurrency \
15300 pthread_getconcurrency \
15301 thr_setconcurrency \
15302 thr_getconcurrency \
15305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15306 echo "configure:15307: checking for $ac_func" >&5
15307 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15308 echo $ac_n "(cached) $ac_c" 1>&6
15310 cat > conftest.$ac_ext <<EOF
15311 #line 15312 "configure"
15312 #include "confdefs.h"
15313 /* System header to define __stub macros and hopefully few prototypes,
15314 which can conflict with char $ac_func(); below. */
15315 #include <assert.h>
15316 /* Override any gcc2 internal prototype to avoid an error. */
15317 /* We use char because int might match the return type of a gcc2
15318 builtin and then its argument prototype would still apply. */
15324 /* The GNU C library defines this for functions which it implements
15325 to always fail with ENOSYS. Some functions are actually named
15326 something starting with __ and the normal name is an alias. */
15327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15335 if { (eval echo configure:15336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15337 eval "ac_cv_func_$ac_func=yes"
15339 echo "configure: failed program was:" >&5
15340 cat conftest.$ac_ext >&5
15342 eval "ac_cv_func_$ac_func=no"
15347 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15348 echo "$ac_t""yes" 1>&6
15349 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15350 cat >> confdefs.h <<EOF
15351 #define $ac_tr_func 1
15355 echo "$ac_t""no" 1>&6
15361 for ac_func in pthread_kill_other_threads_np
15363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15364 echo "configure:15365: checking for $ac_func" >&5
15365 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15366 echo $ac_n "(cached) $ac_c" 1>&6
15368 cat > conftest.$ac_ext <<EOF
15369 #line 15370 "configure"
15370 #include "confdefs.h"
15371 /* System header to define __stub macros and hopefully few prototypes,
15372 which can conflict with char $ac_func(); below. */
15373 #include <assert.h>
15374 /* Override any gcc2 internal prototype to avoid an error. */
15375 /* We use char because int might match the return type of a gcc2
15376 builtin and then its argument prototype would still apply. */
15382 /* The GNU C library defines this for functions which it implements
15383 to always fail with ENOSYS. Some functions are actually named
15384 something starting with __ and the normal name is an alias. */
15385 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15393 if { (eval echo configure:15394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15395 eval "ac_cv_func_$ac_func=yes"
15397 echo "configure: failed program was:" >&5
15398 cat conftest.$ac_ext >&5
15400 eval "ac_cv_func_$ac_func=no"
15405 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15406 echo "$ac_t""yes" 1>&6
15407 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15408 cat >> confdefs.h <<EOF
15409 #define $ac_tr_func 1
15413 echo "$ac_t""no" 1>&6
15417 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15418 echo "configure:15419: checking for LinuxThreads implementation" >&5
15419 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15420 echo $ac_n "(cached) $ac_c" 1>&6
15422 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15425 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15430 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15431 echo "configure:15432: checking for LinuxThreads consistency" >&5
15432 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15433 echo $ac_n "(cached) $ac_c" 1>&6
15436 if test $ol_cv_header_linux_threads = yes -a \
15437 $ol_cv_sys_linux_threads = yes; then
15438 ol_cv_linux_threads=yes
15439 elif test $ol_cv_header_linux_threads = no -a \
15440 $ol_cv_sys_linux_threads = no; then
15441 ol_cv_linux_threads=no
15443 ol_cv_linux_threads=error
15448 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15451 if test $ol_cv_linux_threads = error; then
15452 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15455 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15456 echo "configure:15457: checking if pthread_create() works" >&5
15457 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15458 echo $ac_n "(cached) $ac_c" 1>&6
15461 if test "$cross_compiling" = yes; then
15462 ol_cv_pthread_create_works=yes
15464 cat > conftest.$ac_ext <<EOF
15465 #line 15466 "configure"
15466 #include "confdefs.h"
15467 /* pthread test headers */
15468 #include <pthread.h>
15469 #if HAVE_PTHREADS < 7
15473 #define NULL (void*)0
15476 static void *task(p)
15479 return (void *) (p == NULL);
15483 int main(argc, argv)
15488 /* pthread test function */
15489 #ifndef PTHREAD_CREATE_DETACHED
15490 #define PTHREAD_CREATE_DETACHED 1
15494 int detach = PTHREAD_CREATE_DETACHED;
15496 #if HAVE_PTHREADS > 4
15497 /* Final pthreads */
15498 pthread_attr_t attr;
15500 status = pthread_attr_init(&attr);
15501 if( status ) return status;
15503 #if HAVE_PTHREADS < 7
15504 status = pthread_attr_setdetachstate(&attr, &detach);
15505 if( status < 0 ) status = errno;
15507 status = pthread_attr_setdetachstate(&attr, detach);
15509 if( status ) return status;
15510 status = pthread_create( &t, &attr, task, NULL );
15511 #if HAVE_PTHREADS < 7
15512 if( status < 0 ) status = errno;
15514 if( status ) return status;
15516 /* Draft 4 pthreads */
15517 status = pthread_create( &t, pthread_attr_default, task, NULL );
15518 if( status ) return errno;
15520 /* give thread a chance to complete */
15521 /* it should remain joinable and hence detachable */
15524 status = pthread_detach( &t );
15525 if( status ) return errno;
15528 #ifdef HAVE_LINUX_THREADS
15529 pthread_kill_other_threads_np();
15537 if { (eval echo configure:15538: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
15539 ol_cv_pthread_create_works=yes
15541 echo "configure: failed program was:" >&5
15542 cat conftest.$ac_ext >&5
15544 ol_cv_pthread_create_works=no
15551 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15553 if test $ol_cv_pthread_create_works = no ; then
15554 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15557 if test $ol_with_yielding_select = auto ; then
15558 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15559 echo "configure:15560: checking if select yields when using pthreads" >&5
15560 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15561 echo $ac_n "(cached) $ac_c" 1>&6
15564 if test "$cross_compiling" = yes; then
15565 ol_cv_pthread_select_yields=cross
15567 cat > conftest.$ac_ext <<EOF
15568 #line 15569 "configure"
15569 #include "confdefs.h"
15571 #include <sys/types.h>
15572 #include <sys/time.h>
15573 #include <unistd.h>
15574 #include <pthread.h>
15576 #define NULL (void*) 0
15579 static int fildes[2];
15581 static void *task(p)
15593 FD_SET(fildes[0], &rfds);
15595 /* we're not interested in any fds */
15596 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15603 exit(0); /* if we exit here, the select blocked the whole process */
15606 int main(argc, argv)
15612 /* create a pipe to select */
15613 if(pipe(&fildes[0])) {
15618 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15619 (void) pthread_setconcurrency(2);
15621 #ifdef HAVE_THR_SETCONCURRENCY
15622 /* Set Solaris LWP concurrency to 2 */
15623 thr_setconcurrency(2);
15627 #if HAVE_PTHREADS < 6
15628 pthread_create(&t, pthread_attr_default, task, NULL);
15630 pthread_create(&t, NULL, task, NULL);
15633 /* make sure task runs first */
15636 #elif defined( HAVE_SCHED_YIELD )
15638 #elif defined( HAVE_PTHREAD_YIELD )
15645 if { (eval echo configure:15646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
15647 ol_cv_pthread_select_yields=no
15649 echo "configure: failed program was:" >&5
15650 cat conftest.$ac_ext >&5
15652 ol_cv_pthread_select_yields=yes
15659 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15661 if test $ol_cv_pthread_select_yields = cross ; then
15662 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15665 if test $ol_cv_pthread_select_yields = yes ; then
15666 ol_with_yielding_select=yes
15670 CPPFLAGS="$save_CPPFLAGS"
15673 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15677 if test $ol_with_threads = posix ; then
15678 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15682 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15683 -o $ol_with_threads = mach ; then
15685 for ac_hdr in mach/cthreads.h cthreads.h
15687 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15688 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15689 echo "configure:15690: checking for $ac_hdr" >&5
15690 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15691 echo $ac_n "(cached) $ac_c" 1>&6
15693 cat > conftest.$ac_ext <<EOF
15694 #line 15695 "configure"
15695 #include "confdefs.h"
15698 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15699 { (eval echo configure:15700: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15700 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15701 if test -z "$ac_err"; then
15703 eval "ac_cv_header_$ac_safe=yes"
15706 echo "configure: failed program was:" >&5
15707 cat conftest.$ac_ext >&5
15709 eval "ac_cv_header_$ac_safe=no"
15713 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15714 echo "$ac_t""yes" 1>&6
15715 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15716 cat >> confdefs.h <<EOF
15717 #define $ac_tr_hdr 1
15721 echo "$ac_t""no" 1>&6
15725 if test $ac_cv_header_mach_cthreads_h = yes ; then
15726 ol_with_threads=found
15728 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15729 echo "configure:15730: checking for cthread_fork" >&5
15730 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15731 echo $ac_n "(cached) $ac_c" 1>&6
15733 cat > conftest.$ac_ext <<EOF
15734 #line 15735 "configure"
15735 #include "confdefs.h"
15736 /* System header to define __stub macros and hopefully few prototypes,
15737 which can conflict with char cthread_fork(); below. */
15738 #include <assert.h>
15739 /* Override any gcc2 internal prototype to avoid an error. */
15740 /* We use char because int might match the return type of a gcc2
15741 builtin and then its argument prototype would still apply. */
15742 char cthread_fork();
15747 /* The GNU C library defines this for functions which it implements
15748 to always fail with ENOSYS. Some functions are actually named
15749 something starting with __ and the normal name is an alias. */
15750 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15758 if { (eval echo configure:15759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15760 eval "ac_cv_func_cthread_fork=yes"
15762 echo "configure: failed program was:" >&5
15763 cat conftest.$ac_ext >&5
15765 eval "ac_cv_func_cthread_fork=no"
15770 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15771 echo "$ac_t""yes" 1>&6
15772 ol_link_threads=yes
15774 echo "$ac_t""no" 1>&6
15778 if test $ol_link_threads = no ; then
15779 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15780 echo "configure:15781: checking for cthread_fork with -all_load" >&5
15781 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15782 echo $ac_n "(cached) $ac_c" 1>&6
15786 LIBS="-all_load $LIBS"
15787 cat > conftest.$ac_ext <<EOF
15788 #line 15789 "configure"
15789 #include "confdefs.h"
15790 #include <mach/cthreads.h>
15793 cthread_fork((void *)0, (void *)0);
15797 if { (eval echo configure:15798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15799 ol_cv_cthread_all_load=yes
15801 echo "configure: failed program was:" >&5
15802 cat conftest.$ac_ext >&5
15804 ol_cv_cthread_all_load=no
15811 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15813 if test $ol_cv_cthread_all_load = yes ; then
15814 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15815 ol_link_threads=mach
15816 ol_with_threads=found
15820 elif test $ac_cv_header_cthreads_h = yes ; then
15822 ol_with_threads=found
15825 LIBS="$LIBS -lthreads"
15826 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15827 echo "configure:15828: checking for cthread_fork" >&5
15828 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15829 echo $ac_n "(cached) $ac_c" 1>&6
15831 cat > conftest.$ac_ext <<EOF
15832 #line 15833 "configure"
15833 #include "confdefs.h"
15834 /* System header to define __stub macros and hopefully few prototypes,
15835 which can conflict with char cthread_fork(); below. */
15836 #include <assert.h>
15837 /* Override any gcc2 internal prototype to avoid an error. */
15838 /* We use char because int might match the return type of a gcc2
15839 builtin and then its argument prototype would still apply. */
15840 char cthread_fork();
15845 /* The GNU C library defines this for functions which it implements
15846 to always fail with ENOSYS. Some functions are actually named
15847 something starting with __ and the normal name is an alias. */
15848 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15856 if { (eval echo configure:15857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15858 eval "ac_cv_func_cthread_fork=yes"
15860 echo "configure: failed program was:" >&5
15861 cat conftest.$ac_ext >&5
15863 eval "ac_cv_func_cthread_fork=no"
15868 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15869 echo "$ac_t""yes" 1>&6
15870 ol_link_threads=yes
15872 echo "$ac_t""no" 1>&6
15877 if test $ol_link_threads = yes ; then
15878 LTHREAD_LIBS="-lthreads"
15879 ol_link_threads=mach
15880 ol_with_threads=found
15882 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15885 elif test $ol_with_threads = mach ; then
15886 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15889 if test $ol_link_threads = mach ; then
15890 cat >> confdefs.h <<\EOF
15891 #define HAVE_MACH_CTHREADS 1
15894 elif test $ol_with_threads = found ; then
15895 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15899 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15900 -o $ol_with_threads = pth ; then
15902 for ac_hdr in pth.h
15904 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15905 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15906 echo "configure:15907: checking for $ac_hdr" >&5
15907 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15908 echo $ac_n "(cached) $ac_c" 1>&6
15910 cat > conftest.$ac_ext <<EOF
15911 #line 15912 "configure"
15912 #include "confdefs.h"
15915 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15916 { (eval echo configure:15917: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15917 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15918 if test -z "$ac_err"; then
15920 eval "ac_cv_header_$ac_safe=yes"
15923 echo "configure: failed program was:" >&5
15924 cat conftest.$ac_ext >&5
15926 eval "ac_cv_header_$ac_safe=no"
15930 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15931 echo "$ac_t""yes" 1>&6
15932 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15933 cat >> confdefs.h <<EOF
15934 #define $ac_tr_hdr 1
15938 echo "$ac_t""no" 1>&6
15943 if test $ac_cv_header_pth_h = yes ; then
15944 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15945 echo "configure:15946: checking for pth_version in -lpth" >&5
15946 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
15947 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15948 echo $ac_n "(cached) $ac_c" 1>&6
15950 ac_save_LIBS="$LIBS"
15952 cat > conftest.$ac_ext <<EOF
15953 #line 15954 "configure"
15954 #include "confdefs.h"
15955 /* Override any gcc2 internal prototype to avoid an error. */
15956 /* We use char because int might match the return type of a gcc2
15957 builtin and then its argument prototype would still apply. */
15958 char pth_version();
15964 if { (eval echo configure:15965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15966 eval "ac_cv_lib_$ac_lib_var=yes"
15968 echo "configure: failed program was:" >&5
15969 cat conftest.$ac_ext >&5
15971 eval "ac_cv_lib_$ac_lib_var=no"
15974 LIBS="$ac_save_LIBS"
15977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15978 echo "$ac_t""yes" 1>&6
15981 echo "$ac_t""no" 1>&6
15986 if test $have_pth = yes ; then
15987 cat >> confdefs.h <<\EOF
15988 #define HAVE_GNU_PTH 1
15991 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
15992 ol_link_threads=pth
15993 ol_with_threads=found
15995 if test $ol_with_yielding_select = auto ; then
15996 ol_with_yielding_select=yes
16002 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16003 -o $ol_with_threads = lwp ; then
16005 for ac_hdr in thread.h synch.h
16007 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16008 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16009 echo "configure:16010: checking for $ac_hdr" >&5
16010 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16011 echo $ac_n "(cached) $ac_c" 1>&6
16013 cat > conftest.$ac_ext <<EOF
16014 #line 16015 "configure"
16015 #include "confdefs.h"
16018 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16019 { (eval echo configure:16020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16020 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16021 if test -z "$ac_err"; then
16023 eval "ac_cv_header_$ac_safe=yes"
16026 echo "configure: failed program was:" >&5
16027 cat conftest.$ac_ext >&5
16029 eval "ac_cv_header_$ac_safe=no"
16033 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16034 echo "$ac_t""yes" 1>&6
16035 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16036 cat >> confdefs.h <<EOF
16037 #define $ac_tr_hdr 1
16041 echo "$ac_t""no" 1>&6
16045 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
16046 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
16047 echo "configure:16048: checking for thr_create in -lthread" >&5
16048 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
16049 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16050 echo $ac_n "(cached) $ac_c" 1>&6
16052 ac_save_LIBS="$LIBS"
16053 LIBS="-lthread $LIBS"
16054 cat > conftest.$ac_ext <<EOF
16055 #line 16056 "configure"
16056 #include "confdefs.h"
16057 /* Override any gcc2 internal prototype to avoid an error. */
16058 /* We use char because int might match the return type of a gcc2
16059 builtin and then its argument prototype would still apply. */
16066 if { (eval echo configure:16067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16068 eval "ac_cv_lib_$ac_lib_var=yes"
16070 echo "configure: failed program was:" >&5
16071 cat conftest.$ac_ext >&5
16073 eval "ac_cv_lib_$ac_lib_var=no"
16076 LIBS="$ac_save_LIBS"
16079 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16080 echo "$ac_t""yes" 1>&6
16083 echo "$ac_t""no" 1>&6
16088 if test $have_thr = yes ; then
16089 cat >> confdefs.h <<\EOF
16093 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
16094 ol_link_threads=thr
16096 if test $ol_with_yielding_select = auto ; then
16097 ol_with_yielding_select=yes
16101 thr_setconcurrency \
16102 thr_getconcurrency \
16105 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16106 echo "configure:16107: checking for $ac_func" >&5
16107 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16108 echo $ac_n "(cached) $ac_c" 1>&6
16110 cat > conftest.$ac_ext <<EOF
16111 #line 16112 "configure"
16112 #include "confdefs.h"
16113 /* System header to define __stub macros and hopefully few prototypes,
16114 which can conflict with char $ac_func(); below. */
16115 #include <assert.h>
16116 /* Override any gcc2 internal prototype to avoid an error. */
16117 /* We use char because int might match the return type of a gcc2
16118 builtin and then its argument prototype would still apply. */
16124 /* The GNU C library defines this for functions which it implements
16125 to always fail with ENOSYS. Some functions are actually named
16126 something starting with __ and the normal name is an alias. */
16127 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16135 if { (eval echo configure:16136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16137 eval "ac_cv_func_$ac_func=yes"
16139 echo "configure: failed program was:" >&5
16140 cat conftest.$ac_ext >&5
16142 eval "ac_cv_func_$ac_func=no"
16147 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16148 echo "$ac_t""yes" 1>&6
16149 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16150 cat >> confdefs.h <<EOF
16151 #define $ac_tr_func 1
16155 echo "$ac_t""no" 1>&6
16162 for ac_hdr in lwp/lwp.h
16164 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16165 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16166 echo "configure:16167: checking for $ac_hdr" >&5
16167 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16168 echo $ac_n "(cached) $ac_c" 1>&6
16170 cat > conftest.$ac_ext <<EOF
16171 #line 16172 "configure"
16172 #include "confdefs.h"
16175 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16176 { (eval echo configure:16177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16177 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16178 if test -z "$ac_err"; then
16180 eval "ac_cv_header_$ac_safe=yes"
16183 echo "configure: failed program was:" >&5
16184 cat conftest.$ac_ext >&5
16186 eval "ac_cv_header_$ac_safe=no"
16190 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16191 echo "$ac_t""yes" 1>&6
16192 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16193 cat >> confdefs.h <<EOF
16194 #define $ac_tr_hdr 1
16198 echo "$ac_t""no" 1>&6
16202 if test $ac_cv_header_lwp_lwp_h = yes ; then
16203 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
16204 echo "configure:16205: checking for lwp_create in -llwp" >&5
16205 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
16206 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16207 echo $ac_n "(cached) $ac_c" 1>&6
16209 ac_save_LIBS="$LIBS"
16211 cat > conftest.$ac_ext <<EOF
16212 #line 16213 "configure"
16213 #include "confdefs.h"
16214 /* Override any gcc2 internal prototype to avoid an error. */
16215 /* We use char because int might match the return type of a gcc2
16216 builtin and then its argument prototype would still apply. */
16223 if { (eval echo configure:16224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16225 eval "ac_cv_lib_$ac_lib_var=yes"
16227 echo "configure: failed program was:" >&5
16228 cat conftest.$ac_ext >&5
16230 eval "ac_cv_lib_$ac_lib_var=no"
16233 LIBS="$ac_save_LIBS"
16236 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16237 echo "$ac_t""yes" 1>&6
16240 echo "$ac_t""no" 1>&6
16245 if test $have_lwp = yes ; then
16246 cat >> confdefs.h <<\EOF
16250 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
16251 ol_link_threads=lwp
16253 if test $ol_with_yielding_select = auto ; then
16254 ol_with_yielding_select=no
16260 if test $ol_with_yielding_select = yes ; then
16261 cat >> confdefs.h <<\EOF
16262 #define HAVE_YIELDING_SELECT 1
16267 if test $ol_with_threads = manual ; then
16268 ol_link_threads=yes
16270 echo "configure: warning: thread defines and link options must be set manually" 1>&2
16272 for ac_hdr in pthread.h sched.h
16274 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16275 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16276 echo "configure:16277: checking for $ac_hdr" >&5
16277 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16278 echo $ac_n "(cached) $ac_c" 1>&6
16280 cat > conftest.$ac_ext <<EOF
16281 #line 16282 "configure"
16282 #include "confdefs.h"
16285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16286 { (eval echo configure:16287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16288 if test -z "$ac_err"; then
16290 eval "ac_cv_header_$ac_safe=yes"
16293 echo "configure: failed program was:" >&5
16294 cat conftest.$ac_ext >&5
16296 eval "ac_cv_header_$ac_safe=no"
16300 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16301 echo "$ac_t""yes" 1>&6
16302 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16303 cat >> confdefs.h <<EOF
16304 #define $ac_tr_hdr 1
16308 echo "$ac_t""no" 1>&6
16312 for ac_func in sched_yield pthread_yield
16314 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16315 echo "configure:16316: checking for $ac_func" >&5
16316 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16317 echo $ac_n "(cached) $ac_c" 1>&6
16319 cat > conftest.$ac_ext <<EOF
16320 #line 16321 "configure"
16321 #include "confdefs.h"
16322 /* System header to define __stub macros and hopefully few prototypes,
16323 which can conflict with char $ac_func(); below. */
16324 #include <assert.h>
16325 /* Override any gcc2 internal prototype to avoid an error. */
16326 /* We use char because int might match the return type of a gcc2
16327 builtin and then its argument prototype would still apply. */
16333 /* The GNU C library defines this for functions which it implements
16334 to always fail with ENOSYS. Some functions are actually named
16335 something starting with __ and the normal name is an alias. */
16336 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16344 if { (eval echo configure:16345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16346 eval "ac_cv_func_$ac_func=yes"
16348 echo "configure: failed program was:" >&5
16349 cat conftest.$ac_ext >&5
16351 eval "ac_cv_func_$ac_func=no"
16356 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16357 echo "$ac_t""yes" 1>&6
16358 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16359 cat >> confdefs.h <<EOF
16360 #define $ac_tr_func 1
16364 echo "$ac_t""no" 1>&6
16369 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16370 echo "configure:16371: checking for LinuxThreads pthread.h" >&5
16371 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16372 echo $ac_n "(cached) $ac_c" 1>&6
16374 cat > conftest.$ac_ext <<EOF
16375 #line 16376 "configure"
16376 #include "confdefs.h"
16377 #include <pthread.h>
16379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16380 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16382 ol_cv_header_linux_threads=yes
16385 ol_cv_header_linux_threads=no
16392 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16393 if test $ol_cv_header_linux_threads = yes; then
16394 cat >> confdefs.h <<\EOF
16395 #define HAVE_LINUX_THREADS 1
16401 for ac_hdr in mach/cthreads.h
16403 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16404 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16405 echo "configure:16406: checking for $ac_hdr" >&5
16406 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16407 echo $ac_n "(cached) $ac_c" 1>&6
16409 cat > conftest.$ac_ext <<EOF
16410 #line 16411 "configure"
16411 #include "confdefs.h"
16414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16415 { (eval echo configure:16416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16416 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16417 if test -z "$ac_err"; then
16419 eval "ac_cv_header_$ac_safe=yes"
16422 echo "configure: failed program was:" >&5
16423 cat conftest.$ac_ext >&5
16425 eval "ac_cv_header_$ac_safe=no"
16429 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16430 echo "$ac_t""yes" 1>&6
16431 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16432 cat >> confdefs.h <<EOF
16433 #define $ac_tr_hdr 1
16437 echo "$ac_t""no" 1>&6
16441 for ac_hdr in lwp/lwp.h
16443 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16444 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16445 echo "configure:16446: checking for $ac_hdr" >&5
16446 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16447 echo $ac_n "(cached) $ac_c" 1>&6
16449 cat > conftest.$ac_ext <<EOF
16450 #line 16451 "configure"
16451 #include "confdefs.h"
16454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16455 { (eval echo configure:16456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16457 if test -z "$ac_err"; then
16459 eval "ac_cv_header_$ac_safe=yes"
16462 echo "configure: failed program was:" >&5
16463 cat conftest.$ac_ext >&5
16465 eval "ac_cv_header_$ac_safe=no"
16469 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16470 echo "$ac_t""yes" 1>&6
16471 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16472 cat >> confdefs.h <<EOF
16473 #define $ac_tr_hdr 1
16477 echo "$ac_t""no" 1>&6
16481 for ac_hdr in thread.h synch.h
16483 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16484 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16485 echo "configure:16486: checking for $ac_hdr" >&5
16486 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16487 echo $ac_n "(cached) $ac_c" 1>&6
16489 cat > conftest.$ac_ext <<EOF
16490 #line 16491 "configure"
16491 #include "confdefs.h"
16494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16495 { (eval echo configure:16496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16497 if test -z "$ac_err"; then
16499 eval "ac_cv_header_$ac_safe=yes"
16502 echo "configure: failed program was:" >&5
16503 cat conftest.$ac_ext >&5
16505 eval "ac_cv_header_$ac_safe=no"
16509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16510 echo "$ac_t""yes" 1>&6
16511 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16512 cat >> confdefs.h <<EOF
16513 #define $ac_tr_hdr 1
16517 echo "$ac_t""no" 1>&6
16523 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16524 cat >> confdefs.h <<\EOF
16525 #define REENTRANT 1
16528 cat >> confdefs.h <<\EOF
16529 #define _REENTRANT 1
16532 cat >> confdefs.h <<\EOF
16533 #define THREAD_SAFE 1
16536 cat >> confdefs.h <<\EOF
16537 #define _THREAD_SAFE 1
16540 cat >> confdefs.h <<\EOF
16541 #define THREADSAFE 1
16544 cat >> confdefs.h <<\EOF
16545 #define _THREADSAFE 1
16548 cat >> confdefs.h <<\EOF
16549 #define _SGI_MP_SOURCE 1
16553 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16554 echo "configure:16555: checking for thread specific errno" >&5
16555 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16556 echo $ac_n "(cached) $ac_c" 1>&6
16559 cat > conftest.$ac_ext <<EOF
16560 #line 16561 "configure"
16561 #include "confdefs.h"
16567 if { (eval echo configure:16568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16569 ol_cv_errno_thread_specific=yes
16571 echo "configure: failed program was:" >&5
16572 cat conftest.$ac_ext >&5
16574 ol_cv_errno_thread_specific=no
16580 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16582 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16583 echo "configure:16584: checking for thread specific h_errno" >&5
16584 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16585 echo $ac_n "(cached) $ac_c" 1>&6
16588 cat > conftest.$ac_ext <<EOF
16589 #line 16590 "configure"
16590 #include "confdefs.h"
16596 if { (eval echo configure:16597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16598 ol_cv_h_errno_thread_specific=yes
16600 echo "configure: failed program was:" >&5
16601 cat conftest.$ac_ext >&5
16603 ol_cv_h_errno_thread_specific=no
16609 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16611 if test $ol_cv_errno_thread_specific != yes \
16612 -o $ol_cv_h_errno_thread_specific != yes ; then
16613 LIBS="$LTHREAD_LIBS $LIBS"
16619 if test $ol_link_threads = no ; then
16620 if test $ol_with_threads = yes ; then
16621 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16624 if test $ol_with_threads = auto ; then
16625 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16629 cat >> confdefs.h <<\EOF
16630 #define NO_THREADS 1
16636 if test $ol_link_threads != no ; then
16637 cat >> confdefs.h <<\EOF
16638 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16645 gethostbyname_r gethostbyaddr_r \
16648 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16649 echo "configure:16650: checking for $ac_func" >&5
16650 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16651 echo $ac_n "(cached) $ac_c" 1>&6
16653 cat > conftest.$ac_ext <<EOF
16654 #line 16655 "configure"
16655 #include "confdefs.h"
16656 /* System header to define __stub macros and hopefully few prototypes,
16657 which can conflict with char $ac_func(); below. */
16658 #include <assert.h>
16659 /* Override any gcc2 internal prototype to avoid an error. */
16660 /* We use char because int might match the return type of a gcc2
16661 builtin and then its argument prototype would still apply. */
16667 /* The GNU C library defines this for functions which it implements
16668 to always fail with ENOSYS. Some functions are actually named
16669 something starting with __ and the normal name is an alias. */
16670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16678 if { (eval echo configure:16679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16680 eval "ac_cv_func_$ac_func=yes"
16682 echo "configure: failed program was:" >&5
16683 cat conftest.$ac_ext >&5
16685 eval "ac_cv_func_$ac_func=no"
16690 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16691 echo "$ac_t""yes" 1>&6
16692 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16693 cat >> confdefs.h <<EOF
16694 #define $ac_tr_func 1
16698 echo "$ac_t""no" 1>&6
16703 if test "$ac_cv_func_ctime_r" = no ; then
16704 ol_cv_func_ctime_r_nargs=0
16706 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16707 echo "configure:16708: checking number of arguments of ctime_r" >&5
16708 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16709 echo $ac_n "(cached) $ac_c" 1>&6
16711 cat > conftest.$ac_ext <<EOF
16712 #line 16713 "configure"
16713 #include "confdefs.h"
16716 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16719 if { (eval echo configure:16720: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16721 ol_cv_func_ctime_r_nargs3=yes
16723 echo "configure: failed program was:" >&5
16724 cat conftest.$ac_ext >&5
16726 ol_cv_func_ctime_r_nargs3=no
16730 cat > conftest.$ac_ext <<EOF
16731 #line 16732 "configure"
16732 #include "confdefs.h"
16735 time_t ti; char *buffer; ctime_r(&ti,buffer);
16738 if { (eval echo configure:16739: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16740 ol_cv_func_ctime_r_nargs2=yes
16742 echo "configure: failed program was:" >&5
16743 cat conftest.$ac_ext >&5
16745 ol_cv_func_ctime_r_nargs2=no
16749 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16750 $ol_cv_func_ctime_r_nargs2 = no ; then
16752 ol_cv_func_ctime_r_nargs=3
16754 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16755 $ol_cv_func_ctime_r_nargs2 = yes ; then
16757 ol_cv_func_ctime_r_nargs=2
16760 ol_cv_func_ctime_r_nargs=0
16765 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16767 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16768 cat >> confdefs.h <<EOF
16769 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16776 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16777 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16778 echo "configure:16779: checking number of arguments of gethostbyname_r" >&5
16779 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16780 echo $ac_n "(cached) $ac_c" 1>&6
16782 cat > conftest.$ac_ext <<EOF
16783 #line 16784 "configure"
16784 #include "confdefs.h"
16785 #include <sys/types.h>
16786 #include <sys/socket.h>
16787 #include <netinet/in.h>
16789 #define BUFSIZE (sizeof(struct hostent)+10)
16791 struct hostent hent; char buffer[BUFSIZE];
16792 int bufsize=BUFSIZE;int h_errno;
16793 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16794 buffer, bufsize, &h_errno);
16797 if { (eval echo configure:16798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16799 ol_cv_func_gethostbyname_r_nargs5=yes
16801 echo "configure: failed program was:" >&5
16802 cat conftest.$ac_ext >&5
16804 ol_cv_func_gethostbyname_r_nargs5=no
16808 cat > conftest.$ac_ext <<EOF
16809 #line 16810 "configure"
16810 #include "confdefs.h"
16811 #include <sys/types.h>
16812 #include <sys/socket.h>
16813 #include <netinet/in.h>
16815 #define BUFSIZE (sizeof(struct hostent)+10)
16817 struct hostent hent;struct hostent *rhent;
16818 char buffer[BUFSIZE];
16819 int bufsize=BUFSIZE;int h_errno;
16820 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16824 if { (eval echo configure:16825: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16826 ol_cv_func_gethostbyname_r_nargs6=yes
16828 echo "configure: failed program was:" >&5
16829 cat conftest.$ac_ext >&5
16831 ol_cv_func_gethostbyname_r_nargs6=no
16835 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16836 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16838 ol_cv_func_gethostbyname_r_nargs=5
16840 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16841 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16843 ol_cv_func_gethostbyname_r_nargs=6
16846 ol_cv_func_gethostbyname_r_nargs=0
16851 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16852 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16853 cat >> confdefs.h <<EOF
16854 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16860 ol_cv_func_gethostbyname_r_nargs=0
16863 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16864 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16865 echo "configure:16866: checking number of arguments of gethostbyaddr_r" >&5
16866 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16867 echo $ac_n "(cached) $ac_c" 1>&6
16869 cat > conftest.$ac_ext <<EOF
16870 #line 16871 "configure"
16871 #include "confdefs.h"
16872 #include <sys/types.h>
16873 #include <sys/socket.h>
16874 #include <netinet/in.h>
16876 #define BUFSIZE (sizeof(struct hostent)+10)
16878 struct hostent hent; char buffer[BUFSIZE];
16879 struct in_addr add;
16880 size_t alen=sizeof(struct in_addr);
16881 int bufsize=BUFSIZE;int h_errno;
16882 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16883 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16886 if { (eval echo configure:16887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16888 ol_cv_func_gethostbyaddr_r_nargs7=yes
16890 echo "configure: failed program was:" >&5
16891 cat conftest.$ac_ext >&5
16893 ol_cv_func_gethostbyaddr_r_nargs7=no
16897 cat > conftest.$ac_ext <<EOF
16898 #line 16899 "configure"
16899 #include "confdefs.h"
16900 #include <sys/types.h>
16901 #include <sys/socket.h>
16902 #include <netinet/in.h>
16904 #define BUFSIZE (sizeof(struct hostent)+10)
16906 struct hostent hent;
16907 struct hostent *rhent; char buffer[BUFSIZE];
16908 struct in_addr add;
16909 size_t alen=sizeof(struct in_addr);
16910 int bufsize=BUFSIZE;int h_errno;
16911 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16912 alen, AF_INET, &hent, buffer, bufsize,
16916 if { (eval echo configure:16917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16918 ol_cv_func_gethostbyaddr_r_nargs8=yes
16920 echo "configure: failed program was:" >&5
16921 cat conftest.$ac_ext >&5
16923 ol_cv_func_gethostbyaddr_r_nargs8=no
16927 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16928 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16930 ol_cv_func_gethostbyaddr_r_nargs=7
16932 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16933 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16935 ol_cv_func_gethostbyaddr_r_nargs=8
16938 ol_cv_func_gethostbyaddr_r_nargs=0
16943 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16944 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16945 cat >> confdefs.h <<EOF
16946 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
16952 ol_cv_func_gethostbyaddr_r_nargs=0
16957 if test $ol_with_ldbm_api = auto \
16958 -o $ol_with_ldbm_api = berkeley \
16959 -o $ol_with_ldbm_api = bcompat ; then
16961 if test $ol_with_ldbm_api = bcompat; then \
16962 for ac_hdr in db_185.h db.h
16964 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16965 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16966 echo "configure:16967: checking for $ac_hdr" >&5
16967 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16968 echo $ac_n "(cached) $ac_c" 1>&6
16970 cat > conftest.$ac_ext <<EOF
16971 #line 16972 "configure"
16972 #include "confdefs.h"
16975 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16976 { (eval echo configure:16977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16977 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16978 if test -z "$ac_err"; then
16980 eval "ac_cv_header_$ac_safe=yes"
16983 echo "configure: failed program was:" >&5
16984 cat conftest.$ac_ext >&5
16986 eval "ac_cv_header_$ac_safe=no"
16990 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16991 echo "$ac_t""yes" 1>&6
16992 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16993 cat >> confdefs.h <<EOF
16994 #define $ac_tr_hdr 1
16998 echo "$ac_t""no" 1>&6
17002 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
17003 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
17004 echo "configure:17005: checking if Berkeley DB header compatibility" >&5
17005 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
17006 echo $ac_n "(cached) $ac_c" 1>&6
17009 cat > conftest.$ac_ext <<EOF
17010 #line 17011 "configure"
17011 #include "confdefs.h"
17014 # include <db_185.h>
17019 /* this check could be improved */
17020 #ifndef DB_VERSION_MAJOR
17021 # define DB_VERSION_MAJOR 1
17024 #if DB_VERSION_MAJOR == 1
17029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17030 egrep "__db_version_1" >/dev/null 2>&1; then
17032 ol_cv_header_db1=yes
17035 ol_cv_header_db1=no
17041 echo "$ac_t""$ol_cv_header_db1" 1>&6
17043 if test $ol_cv_header_db1 = yes ; then
17045 if test $ol_cv_lib_db = no ; then
17046 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17047 echo "configure:17048: checking for Berkeley DB link (default)" >&5
17048 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17049 echo $ac_n "(cached) $ac_c" 1>&6
17054 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17056 cat > conftest.$ac_ext <<EOF
17057 #line 17058 "configure"
17058 #include "confdefs.h"
17060 #ifdef HAVE_DB_185_H
17061 # include <db_185.h>
17066 #ifndef DB_VERSION_MAJOR
17067 # define DB_VERSION_MAJOR 1
17071 #define NULL ((void*)0)
17076 #if DB_VERSION_MAJOR > 1
17079 int major, minor, patch;
17081 version = db_version( &major, &minor, &patch );
17083 if( major != DB_VERSION_MAJOR ||
17084 minor < DB_VERSION_MINOR )
17086 printf("Berkeley DB version mismatch\n"
17087 "\theader: %s\n\tlibrary: %s\n",
17088 DB_VERSION_STRING, version);
17094 #if DB_VERSION_MAJOR > 2
17095 db_env_create( NULL, 0 );
17096 #elif DB_VERSION_MAJOR > 1
17097 db_appexit( NULL );
17099 (void) dbopen( NULL, 0, 0, 0, NULL);
17104 if { (eval echo configure:17105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17108 echo "configure: failed program was:" >&5
17109 cat conftest.$ac_ext >&5
17119 echo "$ac_t""$ol_cv_db_none" 1>&6
17121 if test $ol_cv_db_none = yes ; then
17126 if test $ol_cv_lib_db = no ; then
17127 echo $ac_n "checking for Berkeley DB link (-ldb43)""... $ac_c" 1>&6
17128 echo "configure:17129: checking for Berkeley DB link (-ldb43)" >&5
17129 if eval "test \"\${ol_cv_db_db43+set}\" = set"; then
17130 echo $ac_n "(cached) $ac_c" 1>&6
17135 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17137 cat > conftest.$ac_ext <<EOF
17138 #line 17139 "configure"
17139 #include "confdefs.h"
17141 #ifdef HAVE_DB_185_H
17142 # include <db_185.h>
17147 #ifndef DB_VERSION_MAJOR
17148 # define DB_VERSION_MAJOR 1
17152 #define NULL ((void*)0)
17157 #if DB_VERSION_MAJOR > 1
17160 int major, minor, patch;
17162 version = db_version( &major, &minor, &patch );
17164 if( major != DB_VERSION_MAJOR ||
17165 minor < DB_VERSION_MINOR )
17167 printf("Berkeley DB version mismatch\n"
17168 "\theader: %s\n\tlibrary: %s\n",
17169 DB_VERSION_STRING, version);
17175 #if DB_VERSION_MAJOR > 2
17176 db_env_create( NULL, 0 );
17177 #elif DB_VERSION_MAJOR > 1
17178 db_appexit( NULL );
17180 (void) dbopen( NULL, 0, 0, 0, NULL);
17185 if { (eval echo configure:17186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17189 echo "configure: failed program was:" >&5
17190 cat conftest.$ac_ext >&5
17200 echo "$ac_t""$ol_cv_db_db43" 1>&6
17202 if test $ol_cv_db_db43 = yes ; then
17203 ol_cv_lib_db=-ldb43
17207 if test $ol_cv_lib_db = no ; then
17208 echo $ac_n "checking for Berkeley DB link (-ldb-43)""... $ac_c" 1>&6
17209 echo "configure:17210: checking for Berkeley DB link (-ldb-43)" >&5
17210 if eval "test \"\${ol_cv_db_db_43+set}\" = set"; then
17211 echo $ac_n "(cached) $ac_c" 1>&6
17216 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17218 cat > conftest.$ac_ext <<EOF
17219 #line 17220 "configure"
17220 #include "confdefs.h"
17222 #ifdef HAVE_DB_185_H
17223 # include <db_185.h>
17228 #ifndef DB_VERSION_MAJOR
17229 # define DB_VERSION_MAJOR 1
17233 #define NULL ((void*)0)
17238 #if DB_VERSION_MAJOR > 1
17241 int major, minor, patch;
17243 version = db_version( &major, &minor, &patch );
17245 if( major != DB_VERSION_MAJOR ||
17246 minor < DB_VERSION_MINOR )
17248 printf("Berkeley DB version mismatch\n"
17249 "\theader: %s\n\tlibrary: %s\n",
17250 DB_VERSION_STRING, version);
17256 #if DB_VERSION_MAJOR > 2
17257 db_env_create( NULL, 0 );
17258 #elif DB_VERSION_MAJOR > 1
17259 db_appexit( NULL );
17261 (void) dbopen( NULL, 0, 0, 0, NULL);
17266 if { (eval echo configure:17267: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17270 echo "configure: failed program was:" >&5
17271 cat conftest.$ac_ext >&5
17281 echo "$ac_t""$ol_cv_db_db_43" 1>&6
17283 if test $ol_cv_db_db_43 = yes ; then
17284 ol_cv_lib_db=-ldb-43
17288 if test $ol_cv_lib_db = no ; then
17289 echo $ac_n "checking for Berkeley DB link (-ldb-4.3)""... $ac_c" 1>&6
17290 echo "configure:17291: checking for Berkeley DB link (-ldb-4.3)" >&5
17291 if eval "test \"\${ol_cv_db_db_4_dot_3+set}\" = set"; then
17292 echo $ac_n "(cached) $ac_c" 1>&6
17297 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17299 cat > conftest.$ac_ext <<EOF
17300 #line 17301 "configure"
17301 #include "confdefs.h"
17303 #ifdef HAVE_DB_185_H
17304 # include <db_185.h>
17309 #ifndef DB_VERSION_MAJOR
17310 # define DB_VERSION_MAJOR 1
17314 #define NULL ((void*)0)
17319 #if DB_VERSION_MAJOR > 1
17322 int major, minor, patch;
17324 version = db_version( &major, &minor, &patch );
17326 if( major != DB_VERSION_MAJOR ||
17327 minor < DB_VERSION_MINOR )
17329 printf("Berkeley DB version mismatch\n"
17330 "\theader: %s\n\tlibrary: %s\n",
17331 DB_VERSION_STRING, version);
17337 #if DB_VERSION_MAJOR > 2
17338 db_env_create( NULL, 0 );
17339 #elif DB_VERSION_MAJOR > 1
17340 db_appexit( NULL );
17342 (void) dbopen( NULL, 0, 0, 0, NULL);
17347 if { (eval echo configure:17348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17349 ol_cv_db_db_4_dot_3=yes
17351 echo "configure: failed program was:" >&5
17352 cat conftest.$ac_ext >&5
17354 ol_cv_db_db_4_dot_3=no
17362 echo "$ac_t""$ol_cv_db_db_4_dot_3" 1>&6
17364 if test $ol_cv_db_db_4_dot_3 = yes ; then
17365 ol_cv_lib_db=-ldb-4.3
17369 if test $ol_cv_lib_db = no ; then
17370 echo $ac_n "checking for Berkeley DB link (-ldb-4-3)""... $ac_c" 1>&6
17371 echo "configure:17372: checking for Berkeley DB link (-ldb-4-3)" >&5
17372 if eval "test \"\${ol_cv_db_db_4_3+set}\" = set"; then
17373 echo $ac_n "(cached) $ac_c" 1>&6
17378 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17380 cat > conftest.$ac_ext <<EOF
17381 #line 17382 "configure"
17382 #include "confdefs.h"
17384 #ifdef HAVE_DB_185_H
17385 # include <db_185.h>
17390 #ifndef DB_VERSION_MAJOR
17391 # define DB_VERSION_MAJOR 1
17395 #define NULL ((void*)0)
17400 #if DB_VERSION_MAJOR > 1
17403 int major, minor, patch;
17405 version = db_version( &major, &minor, &patch );
17407 if( major != DB_VERSION_MAJOR ||
17408 minor < DB_VERSION_MINOR )
17410 printf("Berkeley DB version mismatch\n"
17411 "\theader: %s\n\tlibrary: %s\n",
17412 DB_VERSION_STRING, version);
17418 #if DB_VERSION_MAJOR > 2
17419 db_env_create( NULL, 0 );
17420 #elif DB_VERSION_MAJOR > 1
17421 db_appexit( NULL );
17423 (void) dbopen( NULL, 0, 0, 0, NULL);
17428 if { (eval echo configure:17429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17430 ol_cv_db_db_4_3=yes
17432 echo "configure: failed program was:" >&5
17433 cat conftest.$ac_ext >&5
17443 echo "$ac_t""$ol_cv_db_db_4_3" 1>&6
17445 if test $ol_cv_db_db_4_3 = yes ; then
17446 ol_cv_lib_db=-ldb-4-3
17450 if test $ol_cv_lib_db = no ; then
17451 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
17452 echo "configure:17453: checking for Berkeley DB link (-ldb42)" >&5
17453 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
17454 echo $ac_n "(cached) $ac_c" 1>&6
17459 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17461 cat > conftest.$ac_ext <<EOF
17462 #line 17463 "configure"
17463 #include "confdefs.h"
17465 #ifdef HAVE_DB_185_H
17466 # include <db_185.h>
17471 #ifndef DB_VERSION_MAJOR
17472 # define DB_VERSION_MAJOR 1
17476 #define NULL ((void*)0)
17481 #if DB_VERSION_MAJOR > 1
17484 int major, minor, patch;
17486 version = db_version( &major, &minor, &patch );
17488 if( major != DB_VERSION_MAJOR ||
17489 minor < DB_VERSION_MINOR )
17491 printf("Berkeley DB version mismatch\n"
17492 "\theader: %s\n\tlibrary: %s\n",
17493 DB_VERSION_STRING, version);
17499 #if DB_VERSION_MAJOR > 2
17500 db_env_create( NULL, 0 );
17501 #elif DB_VERSION_MAJOR > 1
17502 db_appexit( NULL );
17504 (void) dbopen( NULL, 0, 0, 0, NULL);
17509 if { (eval echo configure:17510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17513 echo "configure: failed program was:" >&5
17514 cat conftest.$ac_ext >&5
17524 echo "$ac_t""$ol_cv_db_db42" 1>&6
17526 if test $ol_cv_db_db42 = yes ; then
17527 ol_cv_lib_db=-ldb42
17531 if test $ol_cv_lib_db = no ; then
17532 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
17533 echo "configure:17534: checking for Berkeley DB link (-ldb-42)" >&5
17534 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
17535 echo $ac_n "(cached) $ac_c" 1>&6
17540 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17542 cat > conftest.$ac_ext <<EOF
17543 #line 17544 "configure"
17544 #include "confdefs.h"
17546 #ifdef HAVE_DB_185_H
17547 # include <db_185.h>
17552 #ifndef DB_VERSION_MAJOR
17553 # define DB_VERSION_MAJOR 1
17557 #define NULL ((void*)0)
17562 #if DB_VERSION_MAJOR > 1
17565 int major, minor, patch;
17567 version = db_version( &major, &minor, &patch );
17569 if( major != DB_VERSION_MAJOR ||
17570 minor < DB_VERSION_MINOR )
17572 printf("Berkeley DB version mismatch\n"
17573 "\theader: %s\n\tlibrary: %s\n",
17574 DB_VERSION_STRING, version);
17580 #if DB_VERSION_MAJOR > 2
17581 db_env_create( NULL, 0 );
17582 #elif DB_VERSION_MAJOR > 1
17583 db_appexit( NULL );
17585 (void) dbopen( NULL, 0, 0, 0, NULL);
17590 if { (eval echo configure:17591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17594 echo "configure: failed program was:" >&5
17595 cat conftest.$ac_ext >&5
17605 echo "$ac_t""$ol_cv_db_db_42" 1>&6
17607 if test $ol_cv_db_db_42 = yes ; then
17608 ol_cv_lib_db=-ldb-42
17612 if test $ol_cv_lib_db = no ; then
17613 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
17614 echo "configure:17615: checking for Berkeley DB link (-ldb-4.2)" >&5
17615 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
17616 echo $ac_n "(cached) $ac_c" 1>&6
17621 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17623 cat > conftest.$ac_ext <<EOF
17624 #line 17625 "configure"
17625 #include "confdefs.h"
17627 #ifdef HAVE_DB_185_H
17628 # include <db_185.h>
17633 #ifndef DB_VERSION_MAJOR
17634 # define DB_VERSION_MAJOR 1
17638 #define NULL ((void*)0)
17643 #if DB_VERSION_MAJOR > 1
17646 int major, minor, patch;
17648 version = db_version( &major, &minor, &patch );
17650 if( major != DB_VERSION_MAJOR ||
17651 minor < DB_VERSION_MINOR )
17653 printf("Berkeley DB version mismatch\n"
17654 "\theader: %s\n\tlibrary: %s\n",
17655 DB_VERSION_STRING, version);
17661 #if DB_VERSION_MAJOR > 2
17662 db_env_create( NULL, 0 );
17663 #elif DB_VERSION_MAJOR > 1
17664 db_appexit( NULL );
17666 (void) dbopen( NULL, 0, 0, 0, NULL);
17671 if { (eval echo configure:17672: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17673 ol_cv_db_db_4_dot_2=yes
17675 echo "configure: failed program was:" >&5
17676 cat conftest.$ac_ext >&5
17678 ol_cv_db_db_4_dot_2=no
17686 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
17688 if test $ol_cv_db_db_4_dot_2 = yes ; then
17689 ol_cv_lib_db=-ldb-4.2
17693 if test $ol_cv_lib_db = no ; then
17694 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
17695 echo "configure:17696: checking for Berkeley DB link (-ldb-4-2)" >&5
17696 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
17697 echo $ac_n "(cached) $ac_c" 1>&6
17702 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17704 cat > conftest.$ac_ext <<EOF
17705 #line 17706 "configure"
17706 #include "confdefs.h"
17708 #ifdef HAVE_DB_185_H
17709 # include <db_185.h>
17714 #ifndef DB_VERSION_MAJOR
17715 # define DB_VERSION_MAJOR 1
17719 #define NULL ((void*)0)
17724 #if DB_VERSION_MAJOR > 1
17727 int major, minor, patch;
17729 version = db_version( &major, &minor, &patch );
17731 if( major != DB_VERSION_MAJOR ||
17732 minor < DB_VERSION_MINOR )
17734 printf("Berkeley DB version mismatch\n"
17735 "\theader: %s\n\tlibrary: %s\n",
17736 DB_VERSION_STRING, version);
17742 #if DB_VERSION_MAJOR > 2
17743 db_env_create( NULL, 0 );
17744 #elif DB_VERSION_MAJOR > 1
17745 db_appexit( NULL );
17747 (void) dbopen( NULL, 0, 0, 0, NULL);
17752 if { (eval echo configure:17753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17754 ol_cv_db_db_4_2=yes
17756 echo "configure: failed program was:" >&5
17757 cat conftest.$ac_ext >&5
17767 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
17769 if test $ol_cv_db_db_4_2 = yes ; then
17770 ol_cv_lib_db=-ldb-4-2
17774 if test $ol_cv_lib_db = no ; then
17775 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17776 echo "configure:17777: checking for Berkeley DB link (-ldb-4)" >&5
17777 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17778 echo $ac_n "(cached) $ac_c" 1>&6
17783 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17785 cat > conftest.$ac_ext <<EOF
17786 #line 17787 "configure"
17787 #include "confdefs.h"
17789 #ifdef HAVE_DB_185_H
17790 # include <db_185.h>
17795 #ifndef DB_VERSION_MAJOR
17796 # define DB_VERSION_MAJOR 1
17800 #define NULL ((void*)0)
17805 #if DB_VERSION_MAJOR > 1
17808 int major, minor, patch;
17810 version = db_version( &major, &minor, &patch );
17812 if( major != DB_VERSION_MAJOR ||
17813 minor < DB_VERSION_MINOR )
17815 printf("Berkeley DB version mismatch\n"
17816 "\theader: %s\n\tlibrary: %s\n",
17817 DB_VERSION_STRING, version);
17823 #if DB_VERSION_MAJOR > 2
17824 db_env_create( NULL, 0 );
17825 #elif DB_VERSION_MAJOR > 1
17826 db_appexit( NULL );
17828 (void) dbopen( NULL, 0, 0, 0, NULL);
17833 if { (eval echo configure:17834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17837 echo "configure: failed program was:" >&5
17838 cat conftest.$ac_ext >&5
17848 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17850 if test $ol_cv_db_db_4 = yes ; then
17851 ol_cv_lib_db=-ldb-4
17855 if test $ol_cv_lib_db = no ; then
17856 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17857 echo "configure:17858: checking for Berkeley DB link (-ldb4)" >&5
17858 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17859 echo $ac_n "(cached) $ac_c" 1>&6
17864 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17866 cat > conftest.$ac_ext <<EOF
17867 #line 17868 "configure"
17868 #include "confdefs.h"
17870 #ifdef HAVE_DB_185_H
17871 # include <db_185.h>
17876 #ifndef DB_VERSION_MAJOR
17877 # define DB_VERSION_MAJOR 1
17881 #define NULL ((void*)0)
17886 #if DB_VERSION_MAJOR > 1
17889 int major, minor, patch;
17891 version = db_version( &major, &minor, &patch );
17893 if( major != DB_VERSION_MAJOR ||
17894 minor < DB_VERSION_MINOR )
17896 printf("Berkeley DB version mismatch\n"
17897 "\theader: %s\n\tlibrary: %s\n",
17898 DB_VERSION_STRING, version);
17904 #if DB_VERSION_MAJOR > 2
17905 db_env_create( NULL, 0 );
17906 #elif DB_VERSION_MAJOR > 1
17907 db_appexit( NULL );
17909 (void) dbopen( NULL, 0, 0, 0, NULL);
17914 if { (eval echo configure:17915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17918 echo "configure: failed program was:" >&5
17919 cat conftest.$ac_ext >&5
17929 echo "$ac_t""$ol_cv_db_db4" 1>&6
17931 if test $ol_cv_db_db4 = yes ; then
17936 if test $ol_cv_lib_db = no ; then
17937 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17938 echo "configure:17939: checking for Berkeley DB link (-ldb)" >&5
17939 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17940 echo $ac_n "(cached) $ac_c" 1>&6
17945 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17947 cat > conftest.$ac_ext <<EOF
17948 #line 17949 "configure"
17949 #include "confdefs.h"
17951 #ifdef HAVE_DB_185_H
17952 # include <db_185.h>
17957 #ifndef DB_VERSION_MAJOR
17958 # define DB_VERSION_MAJOR 1
17962 #define NULL ((void*)0)
17967 #if DB_VERSION_MAJOR > 1
17970 int major, minor, patch;
17972 version = db_version( &major, &minor, &patch );
17974 if( major != DB_VERSION_MAJOR ||
17975 minor < DB_VERSION_MINOR )
17977 printf("Berkeley DB version mismatch\n"
17978 "\theader: %s\n\tlibrary: %s\n",
17979 DB_VERSION_STRING, version);
17985 #if DB_VERSION_MAJOR > 2
17986 db_env_create( NULL, 0 );
17987 #elif DB_VERSION_MAJOR > 1
17988 db_appexit( NULL );
17990 (void) dbopen( NULL, 0, 0, 0, NULL);
17995 if { (eval echo configure:17996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17999 echo "configure: failed program was:" >&5
18000 cat conftest.$ac_ext >&5
18010 echo "$ac_t""$ol_cv_db_db" 1>&6
18012 if test $ol_cv_db_db = yes ; then
18017 if test $ol_cv_lib_db = no ; then
18018 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
18019 echo "configure:18020: checking for Berkeley DB link (-ldb41)" >&5
18020 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
18021 echo $ac_n "(cached) $ac_c" 1>&6
18026 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18028 cat > conftest.$ac_ext <<EOF
18029 #line 18030 "configure"
18030 #include "confdefs.h"
18032 #ifdef HAVE_DB_185_H
18033 # include <db_185.h>
18038 #ifndef DB_VERSION_MAJOR
18039 # define DB_VERSION_MAJOR 1
18043 #define NULL ((void*)0)
18048 #if DB_VERSION_MAJOR > 1
18051 int major, minor, patch;
18053 version = db_version( &major, &minor, &patch );
18055 if( major != DB_VERSION_MAJOR ||
18056 minor < DB_VERSION_MINOR )
18058 printf("Berkeley DB version mismatch\n"
18059 "\theader: %s\n\tlibrary: %s\n",
18060 DB_VERSION_STRING, version);
18066 #if DB_VERSION_MAJOR > 2
18067 db_env_create( NULL, 0 );
18068 #elif DB_VERSION_MAJOR > 1
18069 db_appexit( NULL );
18071 (void) dbopen( NULL, 0, 0, 0, NULL);
18076 if { (eval echo configure:18077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18080 echo "configure: failed program was:" >&5
18081 cat conftest.$ac_ext >&5
18091 echo "$ac_t""$ol_cv_db_db41" 1>&6
18093 if test $ol_cv_db_db41 = yes ; then
18094 ol_cv_lib_db=-ldb41
18098 if test $ol_cv_lib_db = no ; then
18099 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
18100 echo "configure:18101: checking for Berkeley DB link (-ldb-41)" >&5
18101 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
18102 echo $ac_n "(cached) $ac_c" 1>&6
18107 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18109 cat > conftest.$ac_ext <<EOF
18110 #line 18111 "configure"
18111 #include "confdefs.h"
18113 #ifdef HAVE_DB_185_H
18114 # include <db_185.h>
18119 #ifndef DB_VERSION_MAJOR
18120 # define DB_VERSION_MAJOR 1
18124 #define NULL ((void*)0)
18129 #if DB_VERSION_MAJOR > 1
18132 int major, minor, patch;
18134 version = db_version( &major, &minor, &patch );
18136 if( major != DB_VERSION_MAJOR ||
18137 minor < DB_VERSION_MINOR )
18139 printf("Berkeley DB version mismatch\n"
18140 "\theader: %s\n\tlibrary: %s\n",
18141 DB_VERSION_STRING, version);
18147 #if DB_VERSION_MAJOR > 2
18148 db_env_create( NULL, 0 );
18149 #elif DB_VERSION_MAJOR > 1
18150 db_appexit( NULL );
18152 (void) dbopen( NULL, 0, 0, 0, NULL);
18157 if { (eval echo configure:18158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18161 echo "configure: failed program was:" >&5
18162 cat conftest.$ac_ext >&5
18172 echo "$ac_t""$ol_cv_db_db_41" 1>&6
18174 if test $ol_cv_db_db_41 = yes ; then
18175 ol_cv_lib_db=-ldb-41
18179 if test $ol_cv_lib_db = no ; then
18180 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
18181 echo "configure:18182: checking for Berkeley DB link (-ldb-4.1)" >&5
18182 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
18183 echo $ac_n "(cached) $ac_c" 1>&6
18188 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18190 cat > conftest.$ac_ext <<EOF
18191 #line 18192 "configure"
18192 #include "confdefs.h"
18194 #ifdef HAVE_DB_185_H
18195 # include <db_185.h>
18200 #ifndef DB_VERSION_MAJOR
18201 # define DB_VERSION_MAJOR 1
18205 #define NULL ((void*)0)
18210 #if DB_VERSION_MAJOR > 1
18213 int major, minor, patch;
18215 version = db_version( &major, &minor, &patch );
18217 if( major != DB_VERSION_MAJOR ||
18218 minor < DB_VERSION_MINOR )
18220 printf("Berkeley DB version mismatch\n"
18221 "\theader: %s\n\tlibrary: %s\n",
18222 DB_VERSION_STRING, version);
18228 #if DB_VERSION_MAJOR > 2
18229 db_env_create( NULL, 0 );
18230 #elif DB_VERSION_MAJOR > 1
18231 db_appexit( NULL );
18233 (void) dbopen( NULL, 0, 0, 0, NULL);
18238 if { (eval echo configure:18239: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18240 ol_cv_db_db_4_dot_1=yes
18242 echo "configure: failed program was:" >&5
18243 cat conftest.$ac_ext >&5
18245 ol_cv_db_db_4_dot_1=no
18253 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
18255 if test $ol_cv_db_db_4_dot_1 = yes ; then
18256 ol_cv_lib_db=-ldb-4.1
18260 if test $ol_cv_lib_db = no ; then
18261 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
18262 echo "configure:18263: checking for Berkeley DB link (-ldb-4-1)" >&5
18263 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
18264 echo $ac_n "(cached) $ac_c" 1>&6
18269 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18271 cat > conftest.$ac_ext <<EOF
18272 #line 18273 "configure"
18273 #include "confdefs.h"
18275 #ifdef HAVE_DB_185_H
18276 # include <db_185.h>
18281 #ifndef DB_VERSION_MAJOR
18282 # define DB_VERSION_MAJOR 1
18286 #define NULL ((void*)0)
18291 #if DB_VERSION_MAJOR > 1
18294 int major, minor, patch;
18296 version = db_version( &major, &minor, &patch );
18298 if( major != DB_VERSION_MAJOR ||
18299 minor < DB_VERSION_MINOR )
18301 printf("Berkeley DB version mismatch\n"
18302 "\theader: %s\n\tlibrary: %s\n",
18303 DB_VERSION_STRING, version);
18309 #if DB_VERSION_MAJOR > 2
18310 db_env_create( NULL, 0 );
18311 #elif DB_VERSION_MAJOR > 1
18312 db_appexit( NULL );
18314 (void) dbopen( NULL, 0, 0, 0, NULL);
18319 if { (eval echo configure:18320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18321 ol_cv_db_db_4_1=yes
18323 echo "configure: failed program was:" >&5
18324 cat conftest.$ac_ext >&5
18334 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
18336 if test $ol_cv_db_db_4_1 = yes ; then
18337 ol_cv_lib_db=-ldb-4-1
18341 if test $ol_cv_lib_db = no ; then
18342 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
18343 echo "configure:18344: checking for Berkeley DB link (-ldb3)" >&5
18344 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
18345 echo $ac_n "(cached) $ac_c" 1>&6
18350 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18352 cat > conftest.$ac_ext <<EOF
18353 #line 18354 "configure"
18354 #include "confdefs.h"
18356 #ifdef HAVE_DB_185_H
18357 # include <db_185.h>
18362 #ifndef DB_VERSION_MAJOR
18363 # define DB_VERSION_MAJOR 1
18367 #define NULL ((void*)0)
18372 #if DB_VERSION_MAJOR > 1
18375 int major, minor, patch;
18377 version = db_version( &major, &minor, &patch );
18379 if( major != DB_VERSION_MAJOR ||
18380 minor < DB_VERSION_MINOR )
18382 printf("Berkeley DB version mismatch\n"
18383 "\theader: %s\n\tlibrary: %s\n",
18384 DB_VERSION_STRING, version);
18390 #if DB_VERSION_MAJOR > 2
18391 db_env_create( NULL, 0 );
18392 #elif DB_VERSION_MAJOR > 1
18393 db_appexit( NULL );
18395 (void) dbopen( NULL, 0, 0, 0, NULL);
18400 if { (eval echo configure:18401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18404 echo "configure: failed program was:" >&5
18405 cat conftest.$ac_ext >&5
18415 echo "$ac_t""$ol_cv_db_db3" 1>&6
18417 if test $ol_cv_db_db3 = yes ; then
18422 if test $ol_cv_lib_db = no ; then
18423 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
18424 echo "configure:18425: checking for Berkeley DB link (-ldb-3)" >&5
18425 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
18426 echo $ac_n "(cached) $ac_c" 1>&6
18431 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18433 cat > conftest.$ac_ext <<EOF
18434 #line 18435 "configure"
18435 #include "confdefs.h"
18437 #ifdef HAVE_DB_185_H
18438 # include <db_185.h>
18443 #ifndef DB_VERSION_MAJOR
18444 # define DB_VERSION_MAJOR 1
18448 #define NULL ((void*)0)
18453 #if DB_VERSION_MAJOR > 1
18456 int major, minor, patch;
18458 version = db_version( &major, &minor, &patch );
18460 if( major != DB_VERSION_MAJOR ||
18461 minor < DB_VERSION_MINOR )
18463 printf("Berkeley DB version mismatch\n"
18464 "\theader: %s\n\tlibrary: %s\n",
18465 DB_VERSION_STRING, version);
18471 #if DB_VERSION_MAJOR > 2
18472 db_env_create( NULL, 0 );
18473 #elif DB_VERSION_MAJOR > 1
18474 db_appexit( NULL );
18476 (void) dbopen( NULL, 0, 0, 0, NULL);
18481 if { (eval echo configure:18482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18485 echo "configure: failed program was:" >&5
18486 cat conftest.$ac_ext >&5
18496 echo "$ac_t""$ol_cv_db_db_3" 1>&6
18498 if test $ol_cv_db_db_3 = yes ; then
18499 ol_cv_lib_db=-ldb-3
18503 if test $ol_cv_lib_db = no ; then
18504 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
18505 echo "configure:18506: checking for Berkeley DB link (-ldb2)" >&5
18506 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
18507 echo $ac_n "(cached) $ac_c" 1>&6
18512 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18514 cat > conftest.$ac_ext <<EOF
18515 #line 18516 "configure"
18516 #include "confdefs.h"
18518 #ifdef HAVE_DB_185_H
18519 # include <db_185.h>
18524 #ifndef DB_VERSION_MAJOR
18525 # define DB_VERSION_MAJOR 1
18529 #define NULL ((void*)0)
18534 #if DB_VERSION_MAJOR > 1
18537 int major, minor, patch;
18539 version = db_version( &major, &minor, &patch );
18541 if( major != DB_VERSION_MAJOR ||
18542 minor < DB_VERSION_MINOR )
18544 printf("Berkeley DB version mismatch\n"
18545 "\theader: %s\n\tlibrary: %s\n",
18546 DB_VERSION_STRING, version);
18552 #if DB_VERSION_MAJOR > 2
18553 db_env_create( NULL, 0 );
18554 #elif DB_VERSION_MAJOR > 1
18555 db_appexit( NULL );
18557 (void) dbopen( NULL, 0, 0, 0, NULL);
18562 if { (eval echo configure:18563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18566 echo "configure: failed program was:" >&5
18567 cat conftest.$ac_ext >&5
18577 echo "$ac_t""$ol_cv_db_db2" 1>&6
18579 if test $ol_cv_db_db2 = yes ; then
18584 if test $ol_cv_lib_db = no ; then
18585 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
18586 echo "configure:18587: checking for Berkeley DB link (-ldb-2)" >&5
18587 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
18588 echo $ac_n "(cached) $ac_c" 1>&6
18593 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18595 cat > conftest.$ac_ext <<EOF
18596 #line 18597 "configure"
18597 #include "confdefs.h"
18599 #ifdef HAVE_DB_185_H
18600 # include <db_185.h>
18605 #ifndef DB_VERSION_MAJOR
18606 # define DB_VERSION_MAJOR 1
18610 #define NULL ((void*)0)
18615 #if DB_VERSION_MAJOR > 1
18618 int major, minor, patch;
18620 version = db_version( &major, &minor, &patch );
18622 if( major != DB_VERSION_MAJOR ||
18623 minor < DB_VERSION_MINOR )
18625 printf("Berkeley DB version mismatch\n"
18626 "\theader: %s\n\tlibrary: %s\n",
18627 DB_VERSION_STRING, version);
18633 #if DB_VERSION_MAJOR > 2
18634 db_env_create( NULL, 0 );
18635 #elif DB_VERSION_MAJOR > 1
18636 db_appexit( NULL );
18638 (void) dbopen( NULL, 0, 0, 0, NULL);
18643 if { (eval echo configure:18644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18647 echo "configure: failed program was:" >&5
18648 cat conftest.$ac_ext >&5
18658 echo "$ac_t""$ol_cv_db_db_2" 1>&6
18660 if test $ol_cv_db_db_2 = yes ; then
18661 ol_cv_lib_db=-ldb-2
18665 if test $ol_cv_lib_db = no ; then
18666 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18667 echo "configure:18668: checking for Berkeley DB link (-ldb1)" >&5
18668 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18669 echo $ac_n "(cached) $ac_c" 1>&6
18674 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18676 cat > conftest.$ac_ext <<EOF
18677 #line 18678 "configure"
18678 #include "confdefs.h"
18680 #ifdef HAVE_DB_185_H
18681 # include <db_185.h>
18686 #ifndef DB_VERSION_MAJOR
18687 # define DB_VERSION_MAJOR 1
18691 #define NULL ((void*)0)
18696 #if DB_VERSION_MAJOR > 1
18699 int major, minor, patch;
18701 version = db_version( &major, &minor, &patch );
18703 if( major != DB_VERSION_MAJOR ||
18704 minor < DB_VERSION_MINOR )
18706 printf("Berkeley DB version mismatch\n"
18707 "\theader: %s\n\tlibrary: %s\n",
18708 DB_VERSION_STRING, version);
18714 #if DB_VERSION_MAJOR > 2
18715 db_env_create( NULL, 0 );
18716 #elif DB_VERSION_MAJOR > 1
18717 db_appexit( NULL );
18719 (void) dbopen( NULL, 0, 0, 0, NULL);
18724 if { (eval echo configure:18725: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18728 echo "configure: failed program was:" >&5
18729 cat conftest.$ac_ext >&5
18739 echo "$ac_t""$ol_cv_db_db1" 1>&6
18741 if test $ol_cv_db_db1 = yes ; then
18746 if test $ol_cv_lib_db = no ; then
18747 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18748 echo "configure:18749: checking for Berkeley DB link (-ldb-1)" >&5
18749 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18750 echo $ac_n "(cached) $ac_c" 1>&6
18755 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18757 cat > conftest.$ac_ext <<EOF
18758 #line 18759 "configure"
18759 #include "confdefs.h"
18761 #ifdef HAVE_DB_185_H
18762 # include <db_185.h>
18767 #ifndef DB_VERSION_MAJOR
18768 # define DB_VERSION_MAJOR 1
18772 #define NULL ((void*)0)
18777 #if DB_VERSION_MAJOR > 1
18780 int major, minor, patch;
18782 version = db_version( &major, &minor, &patch );
18784 if( major != DB_VERSION_MAJOR ||
18785 minor < DB_VERSION_MINOR )
18787 printf("Berkeley DB version mismatch\n"
18788 "\theader: %s\n\tlibrary: %s\n",
18789 DB_VERSION_STRING, version);
18795 #if DB_VERSION_MAJOR > 2
18796 db_env_create( NULL, 0 );
18797 #elif DB_VERSION_MAJOR > 1
18798 db_appexit( NULL );
18800 (void) dbopen( NULL, 0, 0, 0, NULL);
18805 if { (eval echo configure:18806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18809 echo "configure: failed program was:" >&5
18810 cat conftest.$ac_ext >&5
18820 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18822 if test $ol_cv_db_db_1 = yes ; then
18823 ol_cv_lib_db=-ldb-1
18828 if test "$ol_cv_lib_db" != no ; then
18829 ol_cv_berkeley_db=yes
18835 ol_cv_berkeley_db=no
18838 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18839 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18840 echo "configure:18841: checking for $ac_hdr" >&5
18841 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18842 echo $ac_n "(cached) $ac_c" 1>&6
18844 cat > conftest.$ac_ext <<EOF
18845 #line 18846 "configure"
18846 #include "confdefs.h"
18849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18850 { (eval echo configure:18851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18852 if test -z "$ac_err"; then
18854 eval "ac_cv_header_$ac_safe=yes"
18857 echo "configure: failed program was:" >&5
18858 cat conftest.$ac_ext >&5
18860 eval "ac_cv_header_$ac_safe=no"
18864 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18865 echo "$ac_t""yes" 1>&6
18866 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18867 cat >> confdefs.h <<EOF
18868 #define $ac_tr_hdr 1
18872 echo "$ac_t""no" 1>&6
18876 if test $ac_cv_header_db_h = yes; then
18878 if test $ol_cv_lib_db = no ; then
18879 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
18880 echo "configure:18881: checking for Berkeley DB link (default)" >&5
18881 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
18882 echo $ac_n "(cached) $ac_c" 1>&6
18887 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18889 cat > conftest.$ac_ext <<EOF
18890 #line 18891 "configure"
18891 #include "confdefs.h"
18893 #ifdef HAVE_DB_185_H
18894 # include <db_185.h>
18899 #ifndef DB_VERSION_MAJOR
18900 # define DB_VERSION_MAJOR 1
18904 #define NULL ((void*)0)
18909 #if DB_VERSION_MAJOR > 1
18912 int major, minor, patch;
18914 version = db_version( &major, &minor, &patch );
18916 if( major != DB_VERSION_MAJOR ||
18917 minor < DB_VERSION_MINOR )
18919 printf("Berkeley DB version mismatch\n"
18920 "\theader: %s\n\tlibrary: %s\n",
18921 DB_VERSION_STRING, version);
18927 #if DB_VERSION_MAJOR > 2
18928 db_env_create( NULL, 0 );
18929 #elif DB_VERSION_MAJOR > 1
18930 db_appexit( NULL );
18932 (void) dbopen( NULL, 0, 0, 0, NULL);
18937 if { (eval echo configure:18938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18941 echo "configure: failed program was:" >&5
18942 cat conftest.$ac_ext >&5
18952 echo "$ac_t""$ol_cv_db_none" 1>&6
18954 if test $ol_cv_db_none = yes ; then
18959 if test $ol_cv_lib_db = no ; then
18960 echo $ac_n "checking for Berkeley DB link (-ldb43)""... $ac_c" 1>&6
18961 echo "configure:18962: checking for Berkeley DB link (-ldb43)" >&5
18962 if eval "test \"\${ol_cv_db_db43+set}\" = set"; then
18963 echo $ac_n "(cached) $ac_c" 1>&6
18968 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18970 cat > conftest.$ac_ext <<EOF
18971 #line 18972 "configure"
18972 #include "confdefs.h"
18974 #ifdef HAVE_DB_185_H
18975 # include <db_185.h>
18980 #ifndef DB_VERSION_MAJOR
18981 # define DB_VERSION_MAJOR 1
18985 #define NULL ((void*)0)
18990 #if DB_VERSION_MAJOR > 1
18993 int major, minor, patch;
18995 version = db_version( &major, &minor, &patch );
18997 if( major != DB_VERSION_MAJOR ||
18998 minor < DB_VERSION_MINOR )
19000 printf("Berkeley DB version mismatch\n"
19001 "\theader: %s\n\tlibrary: %s\n",
19002 DB_VERSION_STRING, version);
19008 #if DB_VERSION_MAJOR > 2
19009 db_env_create( NULL, 0 );
19010 #elif DB_VERSION_MAJOR > 1
19011 db_appexit( NULL );
19013 (void) dbopen( NULL, 0, 0, 0, NULL);
19018 if { (eval echo configure:19019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19022 echo "configure: failed program was:" >&5
19023 cat conftest.$ac_ext >&5
19033 echo "$ac_t""$ol_cv_db_db43" 1>&6
19035 if test $ol_cv_db_db43 = yes ; then
19036 ol_cv_lib_db=-ldb43
19040 if test $ol_cv_lib_db = no ; then
19041 echo $ac_n "checking for Berkeley DB link (-ldb-43)""... $ac_c" 1>&6
19042 echo "configure:19043: checking for Berkeley DB link (-ldb-43)" >&5
19043 if eval "test \"\${ol_cv_db_db_43+set}\" = set"; then
19044 echo $ac_n "(cached) $ac_c" 1>&6
19049 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19051 cat > conftest.$ac_ext <<EOF
19052 #line 19053 "configure"
19053 #include "confdefs.h"
19055 #ifdef HAVE_DB_185_H
19056 # include <db_185.h>
19061 #ifndef DB_VERSION_MAJOR
19062 # define DB_VERSION_MAJOR 1
19066 #define NULL ((void*)0)
19071 #if DB_VERSION_MAJOR > 1
19074 int major, minor, patch;
19076 version = db_version( &major, &minor, &patch );
19078 if( major != DB_VERSION_MAJOR ||
19079 minor < DB_VERSION_MINOR )
19081 printf("Berkeley DB version mismatch\n"
19082 "\theader: %s\n\tlibrary: %s\n",
19083 DB_VERSION_STRING, version);
19089 #if DB_VERSION_MAJOR > 2
19090 db_env_create( NULL, 0 );
19091 #elif DB_VERSION_MAJOR > 1
19092 db_appexit( NULL );
19094 (void) dbopen( NULL, 0, 0, 0, NULL);
19099 if { (eval echo configure:19100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19103 echo "configure: failed program was:" >&5
19104 cat conftest.$ac_ext >&5
19114 echo "$ac_t""$ol_cv_db_db_43" 1>&6
19116 if test $ol_cv_db_db_43 = yes ; then
19117 ol_cv_lib_db=-ldb-43
19121 if test $ol_cv_lib_db = no ; then
19122 echo $ac_n "checking for Berkeley DB link (-ldb-4.3)""... $ac_c" 1>&6
19123 echo "configure:19124: checking for Berkeley DB link (-ldb-4.3)" >&5
19124 if eval "test \"\${ol_cv_db_db_4_dot_3+set}\" = set"; then
19125 echo $ac_n "(cached) $ac_c" 1>&6
19130 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19132 cat > conftest.$ac_ext <<EOF
19133 #line 19134 "configure"
19134 #include "confdefs.h"
19136 #ifdef HAVE_DB_185_H
19137 # include <db_185.h>
19142 #ifndef DB_VERSION_MAJOR
19143 # define DB_VERSION_MAJOR 1
19147 #define NULL ((void*)0)
19152 #if DB_VERSION_MAJOR > 1
19155 int major, minor, patch;
19157 version = db_version( &major, &minor, &patch );
19159 if( major != DB_VERSION_MAJOR ||
19160 minor < DB_VERSION_MINOR )
19162 printf("Berkeley DB version mismatch\n"
19163 "\theader: %s\n\tlibrary: %s\n",
19164 DB_VERSION_STRING, version);
19170 #if DB_VERSION_MAJOR > 2
19171 db_env_create( NULL, 0 );
19172 #elif DB_VERSION_MAJOR > 1
19173 db_appexit( NULL );
19175 (void) dbopen( NULL, 0, 0, 0, NULL);
19180 if { (eval echo configure:19181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19182 ol_cv_db_db_4_dot_3=yes
19184 echo "configure: failed program was:" >&5
19185 cat conftest.$ac_ext >&5
19187 ol_cv_db_db_4_dot_3=no
19195 echo "$ac_t""$ol_cv_db_db_4_dot_3" 1>&6
19197 if test $ol_cv_db_db_4_dot_3 = yes ; then
19198 ol_cv_lib_db=-ldb-4.3
19202 if test $ol_cv_lib_db = no ; then
19203 echo $ac_n "checking for Berkeley DB link (-ldb-4-3)""... $ac_c" 1>&6
19204 echo "configure:19205: checking for Berkeley DB link (-ldb-4-3)" >&5
19205 if eval "test \"\${ol_cv_db_db_4_3+set}\" = set"; then
19206 echo $ac_n "(cached) $ac_c" 1>&6
19211 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19213 cat > conftest.$ac_ext <<EOF
19214 #line 19215 "configure"
19215 #include "confdefs.h"
19217 #ifdef HAVE_DB_185_H
19218 # include <db_185.h>
19223 #ifndef DB_VERSION_MAJOR
19224 # define DB_VERSION_MAJOR 1
19228 #define NULL ((void*)0)
19233 #if DB_VERSION_MAJOR > 1
19236 int major, minor, patch;
19238 version = db_version( &major, &minor, &patch );
19240 if( major != DB_VERSION_MAJOR ||
19241 minor < DB_VERSION_MINOR )
19243 printf("Berkeley DB version mismatch\n"
19244 "\theader: %s\n\tlibrary: %s\n",
19245 DB_VERSION_STRING, version);
19251 #if DB_VERSION_MAJOR > 2
19252 db_env_create( NULL, 0 );
19253 #elif DB_VERSION_MAJOR > 1
19254 db_appexit( NULL );
19256 (void) dbopen( NULL, 0, 0, 0, NULL);
19261 if { (eval echo configure:19262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19263 ol_cv_db_db_4_3=yes
19265 echo "configure: failed program was:" >&5
19266 cat conftest.$ac_ext >&5
19276 echo "$ac_t""$ol_cv_db_db_4_3" 1>&6
19278 if test $ol_cv_db_db_4_3 = yes ; then
19279 ol_cv_lib_db=-ldb-4-3
19283 if test $ol_cv_lib_db = no ; then
19284 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
19285 echo "configure:19286: checking for Berkeley DB link (-ldb42)" >&5
19286 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
19287 echo $ac_n "(cached) $ac_c" 1>&6
19292 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19294 cat > conftest.$ac_ext <<EOF
19295 #line 19296 "configure"
19296 #include "confdefs.h"
19298 #ifdef HAVE_DB_185_H
19299 # include <db_185.h>
19304 #ifndef DB_VERSION_MAJOR
19305 # define DB_VERSION_MAJOR 1
19309 #define NULL ((void*)0)
19314 #if DB_VERSION_MAJOR > 1
19317 int major, minor, patch;
19319 version = db_version( &major, &minor, &patch );
19321 if( major != DB_VERSION_MAJOR ||
19322 minor < DB_VERSION_MINOR )
19324 printf("Berkeley DB version mismatch\n"
19325 "\theader: %s\n\tlibrary: %s\n",
19326 DB_VERSION_STRING, version);
19332 #if DB_VERSION_MAJOR > 2
19333 db_env_create( NULL, 0 );
19334 #elif DB_VERSION_MAJOR > 1
19335 db_appexit( NULL );
19337 (void) dbopen( NULL, 0, 0, 0, NULL);
19342 if { (eval echo configure:19343: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19346 echo "configure: failed program was:" >&5
19347 cat conftest.$ac_ext >&5
19357 echo "$ac_t""$ol_cv_db_db42" 1>&6
19359 if test $ol_cv_db_db42 = yes ; then
19360 ol_cv_lib_db=-ldb42
19364 if test $ol_cv_lib_db = no ; then
19365 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
19366 echo "configure:19367: checking for Berkeley DB link (-ldb-42)" >&5
19367 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
19368 echo $ac_n "(cached) $ac_c" 1>&6
19373 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19375 cat > conftest.$ac_ext <<EOF
19376 #line 19377 "configure"
19377 #include "confdefs.h"
19379 #ifdef HAVE_DB_185_H
19380 # include <db_185.h>
19385 #ifndef DB_VERSION_MAJOR
19386 # define DB_VERSION_MAJOR 1
19390 #define NULL ((void*)0)
19395 #if DB_VERSION_MAJOR > 1
19398 int major, minor, patch;
19400 version = db_version( &major, &minor, &patch );
19402 if( major != DB_VERSION_MAJOR ||
19403 minor < DB_VERSION_MINOR )
19405 printf("Berkeley DB version mismatch\n"
19406 "\theader: %s\n\tlibrary: %s\n",
19407 DB_VERSION_STRING, version);
19413 #if DB_VERSION_MAJOR > 2
19414 db_env_create( NULL, 0 );
19415 #elif DB_VERSION_MAJOR > 1
19416 db_appexit( NULL );
19418 (void) dbopen( NULL, 0, 0, 0, NULL);
19423 if { (eval echo configure:19424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19427 echo "configure: failed program was:" >&5
19428 cat conftest.$ac_ext >&5
19438 echo "$ac_t""$ol_cv_db_db_42" 1>&6
19440 if test $ol_cv_db_db_42 = yes ; then
19441 ol_cv_lib_db=-ldb-42
19445 if test $ol_cv_lib_db = no ; then
19446 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
19447 echo "configure:19448: checking for Berkeley DB link (-ldb-4.2)" >&5
19448 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
19449 echo $ac_n "(cached) $ac_c" 1>&6
19454 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19456 cat > conftest.$ac_ext <<EOF
19457 #line 19458 "configure"
19458 #include "confdefs.h"
19460 #ifdef HAVE_DB_185_H
19461 # include <db_185.h>
19466 #ifndef DB_VERSION_MAJOR
19467 # define DB_VERSION_MAJOR 1
19471 #define NULL ((void*)0)
19476 #if DB_VERSION_MAJOR > 1
19479 int major, minor, patch;
19481 version = db_version( &major, &minor, &patch );
19483 if( major != DB_VERSION_MAJOR ||
19484 minor < DB_VERSION_MINOR )
19486 printf("Berkeley DB version mismatch\n"
19487 "\theader: %s\n\tlibrary: %s\n",
19488 DB_VERSION_STRING, version);
19494 #if DB_VERSION_MAJOR > 2
19495 db_env_create( NULL, 0 );
19496 #elif DB_VERSION_MAJOR > 1
19497 db_appexit( NULL );
19499 (void) dbopen( NULL, 0, 0, 0, NULL);
19504 if { (eval echo configure:19505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19506 ol_cv_db_db_4_dot_2=yes
19508 echo "configure: failed program was:" >&5
19509 cat conftest.$ac_ext >&5
19511 ol_cv_db_db_4_dot_2=no
19519 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
19521 if test $ol_cv_db_db_4_dot_2 = yes ; then
19522 ol_cv_lib_db=-ldb-4.2
19526 if test $ol_cv_lib_db = no ; then
19527 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
19528 echo "configure:19529: checking for Berkeley DB link (-ldb-4-2)" >&5
19529 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
19530 echo $ac_n "(cached) $ac_c" 1>&6
19535 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19537 cat > conftest.$ac_ext <<EOF
19538 #line 19539 "configure"
19539 #include "confdefs.h"
19541 #ifdef HAVE_DB_185_H
19542 # include <db_185.h>
19547 #ifndef DB_VERSION_MAJOR
19548 # define DB_VERSION_MAJOR 1
19552 #define NULL ((void*)0)
19557 #if DB_VERSION_MAJOR > 1
19560 int major, minor, patch;
19562 version = db_version( &major, &minor, &patch );
19564 if( major != DB_VERSION_MAJOR ||
19565 minor < DB_VERSION_MINOR )
19567 printf("Berkeley DB version mismatch\n"
19568 "\theader: %s\n\tlibrary: %s\n",
19569 DB_VERSION_STRING, version);
19575 #if DB_VERSION_MAJOR > 2
19576 db_env_create( NULL, 0 );
19577 #elif DB_VERSION_MAJOR > 1
19578 db_appexit( NULL );
19580 (void) dbopen( NULL, 0, 0, 0, NULL);
19585 if { (eval echo configure:19586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19587 ol_cv_db_db_4_2=yes
19589 echo "configure: failed program was:" >&5
19590 cat conftest.$ac_ext >&5
19600 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
19602 if test $ol_cv_db_db_4_2 = yes ; then
19603 ol_cv_lib_db=-ldb-4-2
19607 if test $ol_cv_lib_db = no ; then
19608 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
19609 echo "configure:19610: checking for Berkeley DB link (-ldb-4)" >&5
19610 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
19611 echo $ac_n "(cached) $ac_c" 1>&6
19616 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19618 cat > conftest.$ac_ext <<EOF
19619 #line 19620 "configure"
19620 #include "confdefs.h"
19622 #ifdef HAVE_DB_185_H
19623 # include <db_185.h>
19628 #ifndef DB_VERSION_MAJOR
19629 # define DB_VERSION_MAJOR 1
19633 #define NULL ((void*)0)
19638 #if DB_VERSION_MAJOR > 1
19641 int major, minor, patch;
19643 version = db_version( &major, &minor, &patch );
19645 if( major != DB_VERSION_MAJOR ||
19646 minor < DB_VERSION_MINOR )
19648 printf("Berkeley DB version mismatch\n"
19649 "\theader: %s\n\tlibrary: %s\n",
19650 DB_VERSION_STRING, version);
19656 #if DB_VERSION_MAJOR > 2
19657 db_env_create( NULL, 0 );
19658 #elif DB_VERSION_MAJOR > 1
19659 db_appexit( NULL );
19661 (void) dbopen( NULL, 0, 0, 0, NULL);
19666 if { (eval echo configure:19667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19670 echo "configure: failed program was:" >&5
19671 cat conftest.$ac_ext >&5
19681 echo "$ac_t""$ol_cv_db_db_4" 1>&6
19683 if test $ol_cv_db_db_4 = yes ; then
19684 ol_cv_lib_db=-ldb-4
19688 if test $ol_cv_lib_db = no ; then
19689 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
19690 echo "configure:19691: checking for Berkeley DB link (-ldb4)" >&5
19691 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
19692 echo $ac_n "(cached) $ac_c" 1>&6
19697 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19699 cat > conftest.$ac_ext <<EOF
19700 #line 19701 "configure"
19701 #include "confdefs.h"
19703 #ifdef HAVE_DB_185_H
19704 # include <db_185.h>
19709 #ifndef DB_VERSION_MAJOR
19710 # define DB_VERSION_MAJOR 1
19714 #define NULL ((void*)0)
19719 #if DB_VERSION_MAJOR > 1
19722 int major, minor, patch;
19724 version = db_version( &major, &minor, &patch );
19726 if( major != DB_VERSION_MAJOR ||
19727 minor < DB_VERSION_MINOR )
19729 printf("Berkeley DB version mismatch\n"
19730 "\theader: %s\n\tlibrary: %s\n",
19731 DB_VERSION_STRING, version);
19737 #if DB_VERSION_MAJOR > 2
19738 db_env_create( NULL, 0 );
19739 #elif DB_VERSION_MAJOR > 1
19740 db_appexit( NULL );
19742 (void) dbopen( NULL, 0, 0, 0, NULL);
19747 if { (eval echo configure:19748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19751 echo "configure: failed program was:" >&5
19752 cat conftest.$ac_ext >&5
19762 echo "$ac_t""$ol_cv_db_db4" 1>&6
19764 if test $ol_cv_db_db4 = yes ; then
19769 if test $ol_cv_lib_db = no ; then
19770 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
19771 echo "configure:19772: checking for Berkeley DB link (-ldb)" >&5
19772 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
19773 echo $ac_n "(cached) $ac_c" 1>&6
19778 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19780 cat > conftest.$ac_ext <<EOF
19781 #line 19782 "configure"
19782 #include "confdefs.h"
19784 #ifdef HAVE_DB_185_H
19785 # include <db_185.h>
19790 #ifndef DB_VERSION_MAJOR
19791 # define DB_VERSION_MAJOR 1
19795 #define NULL ((void*)0)
19800 #if DB_VERSION_MAJOR > 1
19803 int major, minor, patch;
19805 version = db_version( &major, &minor, &patch );
19807 if( major != DB_VERSION_MAJOR ||
19808 minor < DB_VERSION_MINOR )
19810 printf("Berkeley DB version mismatch\n"
19811 "\theader: %s\n\tlibrary: %s\n",
19812 DB_VERSION_STRING, version);
19818 #if DB_VERSION_MAJOR > 2
19819 db_env_create( NULL, 0 );
19820 #elif DB_VERSION_MAJOR > 1
19821 db_appexit( NULL );
19823 (void) dbopen( NULL, 0, 0, 0, NULL);
19828 if { (eval echo configure:19829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19832 echo "configure: failed program was:" >&5
19833 cat conftest.$ac_ext >&5
19843 echo "$ac_t""$ol_cv_db_db" 1>&6
19845 if test $ol_cv_db_db = yes ; then
19850 if test $ol_cv_lib_db = no ; then
19851 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
19852 echo "configure:19853: checking for Berkeley DB link (-ldb41)" >&5
19853 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
19854 echo $ac_n "(cached) $ac_c" 1>&6
19859 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19861 cat > conftest.$ac_ext <<EOF
19862 #line 19863 "configure"
19863 #include "confdefs.h"
19865 #ifdef HAVE_DB_185_H
19866 # include <db_185.h>
19871 #ifndef DB_VERSION_MAJOR
19872 # define DB_VERSION_MAJOR 1
19876 #define NULL ((void*)0)
19881 #if DB_VERSION_MAJOR > 1
19884 int major, minor, patch;
19886 version = db_version( &major, &minor, &patch );
19888 if( major != DB_VERSION_MAJOR ||
19889 minor < DB_VERSION_MINOR )
19891 printf("Berkeley DB version mismatch\n"
19892 "\theader: %s\n\tlibrary: %s\n",
19893 DB_VERSION_STRING, version);
19899 #if DB_VERSION_MAJOR > 2
19900 db_env_create( NULL, 0 );
19901 #elif DB_VERSION_MAJOR > 1
19902 db_appexit( NULL );
19904 (void) dbopen( NULL, 0, 0, 0, NULL);
19909 if { (eval echo configure:19910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19913 echo "configure: failed program was:" >&5
19914 cat conftest.$ac_ext >&5
19924 echo "$ac_t""$ol_cv_db_db41" 1>&6
19926 if test $ol_cv_db_db41 = yes ; then
19927 ol_cv_lib_db=-ldb41
19931 if test $ol_cv_lib_db = no ; then
19932 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
19933 echo "configure:19934: checking for Berkeley DB link (-ldb-41)" >&5
19934 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
19935 echo $ac_n "(cached) $ac_c" 1>&6
19940 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19942 cat > conftest.$ac_ext <<EOF
19943 #line 19944 "configure"
19944 #include "confdefs.h"
19946 #ifdef HAVE_DB_185_H
19947 # include <db_185.h>
19952 #ifndef DB_VERSION_MAJOR
19953 # define DB_VERSION_MAJOR 1
19957 #define NULL ((void*)0)
19962 #if DB_VERSION_MAJOR > 1
19965 int major, minor, patch;
19967 version = db_version( &major, &minor, &patch );
19969 if( major != DB_VERSION_MAJOR ||
19970 minor < DB_VERSION_MINOR )
19972 printf("Berkeley DB version mismatch\n"
19973 "\theader: %s\n\tlibrary: %s\n",
19974 DB_VERSION_STRING, version);
19980 #if DB_VERSION_MAJOR > 2
19981 db_env_create( NULL, 0 );
19982 #elif DB_VERSION_MAJOR > 1
19983 db_appexit( NULL );
19985 (void) dbopen( NULL, 0, 0, 0, NULL);
19990 if { (eval echo configure:19991: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19994 echo "configure: failed program was:" >&5
19995 cat conftest.$ac_ext >&5
20005 echo "$ac_t""$ol_cv_db_db_41" 1>&6
20007 if test $ol_cv_db_db_41 = yes ; then
20008 ol_cv_lib_db=-ldb-41
20012 if test $ol_cv_lib_db = no ; then
20013 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
20014 echo "configure:20015: checking for Berkeley DB link (-ldb-4.1)" >&5
20015 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
20016 echo $ac_n "(cached) $ac_c" 1>&6
20021 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20023 cat > conftest.$ac_ext <<EOF
20024 #line 20025 "configure"
20025 #include "confdefs.h"
20027 #ifdef HAVE_DB_185_H
20028 # include <db_185.h>
20033 #ifndef DB_VERSION_MAJOR
20034 # define DB_VERSION_MAJOR 1
20038 #define NULL ((void*)0)
20043 #if DB_VERSION_MAJOR > 1
20046 int major, minor, patch;
20048 version = db_version( &major, &minor, &patch );
20050 if( major != DB_VERSION_MAJOR ||
20051 minor < DB_VERSION_MINOR )
20053 printf("Berkeley DB version mismatch\n"
20054 "\theader: %s\n\tlibrary: %s\n",
20055 DB_VERSION_STRING, version);
20061 #if DB_VERSION_MAJOR > 2
20062 db_env_create( NULL, 0 );
20063 #elif DB_VERSION_MAJOR > 1
20064 db_appexit( NULL );
20066 (void) dbopen( NULL, 0, 0, 0, NULL);
20071 if { (eval echo configure:20072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20073 ol_cv_db_db_4_dot_1=yes
20075 echo "configure: failed program was:" >&5
20076 cat conftest.$ac_ext >&5
20078 ol_cv_db_db_4_dot_1=no
20086 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
20088 if test $ol_cv_db_db_4_dot_1 = yes ; then
20089 ol_cv_lib_db=-ldb-4.1
20093 if test $ol_cv_lib_db = no ; then
20094 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
20095 echo "configure:20096: checking for Berkeley DB link (-ldb-4-1)" >&5
20096 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
20097 echo $ac_n "(cached) $ac_c" 1>&6
20102 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20104 cat > conftest.$ac_ext <<EOF
20105 #line 20106 "configure"
20106 #include "confdefs.h"
20108 #ifdef HAVE_DB_185_H
20109 # include <db_185.h>
20114 #ifndef DB_VERSION_MAJOR
20115 # define DB_VERSION_MAJOR 1
20119 #define NULL ((void*)0)
20124 #if DB_VERSION_MAJOR > 1
20127 int major, minor, patch;
20129 version = db_version( &major, &minor, &patch );
20131 if( major != DB_VERSION_MAJOR ||
20132 minor < DB_VERSION_MINOR )
20134 printf("Berkeley DB version mismatch\n"
20135 "\theader: %s\n\tlibrary: %s\n",
20136 DB_VERSION_STRING, version);
20142 #if DB_VERSION_MAJOR > 2
20143 db_env_create( NULL, 0 );
20144 #elif DB_VERSION_MAJOR > 1
20145 db_appexit( NULL );
20147 (void) dbopen( NULL, 0, 0, 0, NULL);
20152 if { (eval echo configure:20153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20154 ol_cv_db_db_4_1=yes
20156 echo "configure: failed program was:" >&5
20157 cat conftest.$ac_ext >&5
20167 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
20169 if test $ol_cv_db_db_4_1 = yes ; then
20170 ol_cv_lib_db=-ldb-4-1
20174 if test $ol_cv_lib_db = no ; then
20175 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
20176 echo "configure:20177: checking for Berkeley DB link (-ldb3)" >&5
20177 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
20178 echo $ac_n "(cached) $ac_c" 1>&6
20183 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20185 cat > conftest.$ac_ext <<EOF
20186 #line 20187 "configure"
20187 #include "confdefs.h"
20189 #ifdef HAVE_DB_185_H
20190 # include <db_185.h>
20195 #ifndef DB_VERSION_MAJOR
20196 # define DB_VERSION_MAJOR 1
20200 #define NULL ((void*)0)
20205 #if DB_VERSION_MAJOR > 1
20208 int major, minor, patch;
20210 version = db_version( &major, &minor, &patch );
20212 if( major != DB_VERSION_MAJOR ||
20213 minor < DB_VERSION_MINOR )
20215 printf("Berkeley DB version mismatch\n"
20216 "\theader: %s\n\tlibrary: %s\n",
20217 DB_VERSION_STRING, version);
20223 #if DB_VERSION_MAJOR > 2
20224 db_env_create( NULL, 0 );
20225 #elif DB_VERSION_MAJOR > 1
20226 db_appexit( NULL );
20228 (void) dbopen( NULL, 0, 0, 0, NULL);
20233 if { (eval echo configure:20234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20237 echo "configure: failed program was:" >&5
20238 cat conftest.$ac_ext >&5
20248 echo "$ac_t""$ol_cv_db_db3" 1>&6
20250 if test $ol_cv_db_db3 = yes ; then
20255 if test $ol_cv_lib_db = no ; then
20256 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
20257 echo "configure:20258: checking for Berkeley DB link (-ldb-3)" >&5
20258 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
20259 echo $ac_n "(cached) $ac_c" 1>&6
20264 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20266 cat > conftest.$ac_ext <<EOF
20267 #line 20268 "configure"
20268 #include "confdefs.h"
20270 #ifdef HAVE_DB_185_H
20271 # include <db_185.h>
20276 #ifndef DB_VERSION_MAJOR
20277 # define DB_VERSION_MAJOR 1
20281 #define NULL ((void*)0)
20286 #if DB_VERSION_MAJOR > 1
20289 int major, minor, patch;
20291 version = db_version( &major, &minor, &patch );
20293 if( major != DB_VERSION_MAJOR ||
20294 minor < DB_VERSION_MINOR )
20296 printf("Berkeley DB version mismatch\n"
20297 "\theader: %s\n\tlibrary: %s\n",
20298 DB_VERSION_STRING, version);
20304 #if DB_VERSION_MAJOR > 2
20305 db_env_create( NULL, 0 );
20306 #elif DB_VERSION_MAJOR > 1
20307 db_appexit( NULL );
20309 (void) dbopen( NULL, 0, 0, 0, NULL);
20314 if { (eval echo configure:20315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20318 echo "configure: failed program was:" >&5
20319 cat conftest.$ac_ext >&5
20329 echo "$ac_t""$ol_cv_db_db_3" 1>&6
20331 if test $ol_cv_db_db_3 = yes ; then
20332 ol_cv_lib_db=-ldb-3
20336 if test $ol_cv_lib_db = no ; then
20337 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
20338 echo "configure:20339: checking for Berkeley DB link (-ldb2)" >&5
20339 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
20340 echo $ac_n "(cached) $ac_c" 1>&6
20345 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20347 cat > conftest.$ac_ext <<EOF
20348 #line 20349 "configure"
20349 #include "confdefs.h"
20351 #ifdef HAVE_DB_185_H
20352 # include <db_185.h>
20357 #ifndef DB_VERSION_MAJOR
20358 # define DB_VERSION_MAJOR 1
20362 #define NULL ((void*)0)
20367 #if DB_VERSION_MAJOR > 1
20370 int major, minor, patch;
20372 version = db_version( &major, &minor, &patch );
20374 if( major != DB_VERSION_MAJOR ||
20375 minor < DB_VERSION_MINOR )
20377 printf("Berkeley DB version mismatch\n"
20378 "\theader: %s\n\tlibrary: %s\n",
20379 DB_VERSION_STRING, version);
20385 #if DB_VERSION_MAJOR > 2
20386 db_env_create( NULL, 0 );
20387 #elif DB_VERSION_MAJOR > 1
20388 db_appexit( NULL );
20390 (void) dbopen( NULL, 0, 0, 0, NULL);
20395 if { (eval echo configure:20396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20399 echo "configure: failed program was:" >&5
20400 cat conftest.$ac_ext >&5
20410 echo "$ac_t""$ol_cv_db_db2" 1>&6
20412 if test $ol_cv_db_db2 = yes ; then
20417 if test $ol_cv_lib_db = no ; then
20418 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
20419 echo "configure:20420: checking for Berkeley DB link (-ldb-2)" >&5
20420 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
20421 echo $ac_n "(cached) $ac_c" 1>&6
20426 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20428 cat > conftest.$ac_ext <<EOF
20429 #line 20430 "configure"
20430 #include "confdefs.h"
20432 #ifdef HAVE_DB_185_H
20433 # include <db_185.h>
20438 #ifndef DB_VERSION_MAJOR
20439 # define DB_VERSION_MAJOR 1
20443 #define NULL ((void*)0)
20448 #if DB_VERSION_MAJOR > 1
20451 int major, minor, patch;
20453 version = db_version( &major, &minor, &patch );
20455 if( major != DB_VERSION_MAJOR ||
20456 minor < DB_VERSION_MINOR )
20458 printf("Berkeley DB version mismatch\n"
20459 "\theader: %s\n\tlibrary: %s\n",
20460 DB_VERSION_STRING, version);
20466 #if DB_VERSION_MAJOR > 2
20467 db_env_create( NULL, 0 );
20468 #elif DB_VERSION_MAJOR > 1
20469 db_appexit( NULL );
20471 (void) dbopen( NULL, 0, 0, 0, NULL);
20476 if { (eval echo configure:20477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20480 echo "configure: failed program was:" >&5
20481 cat conftest.$ac_ext >&5
20491 echo "$ac_t""$ol_cv_db_db_2" 1>&6
20493 if test $ol_cv_db_db_2 = yes ; then
20494 ol_cv_lib_db=-ldb-2
20498 if test $ol_cv_lib_db = no ; then
20499 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
20500 echo "configure:20501: checking for Berkeley DB link (-ldb1)" >&5
20501 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
20502 echo $ac_n "(cached) $ac_c" 1>&6
20507 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20509 cat > conftest.$ac_ext <<EOF
20510 #line 20511 "configure"
20511 #include "confdefs.h"
20513 #ifdef HAVE_DB_185_H
20514 # include <db_185.h>
20519 #ifndef DB_VERSION_MAJOR
20520 # define DB_VERSION_MAJOR 1
20524 #define NULL ((void*)0)
20529 #if DB_VERSION_MAJOR > 1
20532 int major, minor, patch;
20534 version = db_version( &major, &minor, &patch );
20536 if( major != DB_VERSION_MAJOR ||
20537 minor < DB_VERSION_MINOR )
20539 printf("Berkeley DB version mismatch\n"
20540 "\theader: %s\n\tlibrary: %s\n",
20541 DB_VERSION_STRING, version);
20547 #if DB_VERSION_MAJOR > 2
20548 db_env_create( NULL, 0 );
20549 #elif DB_VERSION_MAJOR > 1
20550 db_appexit( NULL );
20552 (void) dbopen( NULL, 0, 0, 0, NULL);
20557 if { (eval echo configure:20558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20561 echo "configure: failed program was:" >&5
20562 cat conftest.$ac_ext >&5
20572 echo "$ac_t""$ol_cv_db_db1" 1>&6
20574 if test $ol_cv_db_db1 = yes ; then
20579 if test $ol_cv_lib_db = no ; then
20580 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
20581 echo "configure:20582: checking for Berkeley DB link (-ldb-1)" >&5
20582 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
20583 echo $ac_n "(cached) $ac_c" 1>&6
20588 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20590 cat > conftest.$ac_ext <<EOF
20591 #line 20592 "configure"
20592 #include "confdefs.h"
20594 #ifdef HAVE_DB_185_H
20595 # include <db_185.h>
20600 #ifndef DB_VERSION_MAJOR
20601 # define DB_VERSION_MAJOR 1
20605 #define NULL ((void*)0)
20610 #if DB_VERSION_MAJOR > 1
20613 int major, minor, patch;
20615 version = db_version( &major, &minor, &patch );
20617 if( major != DB_VERSION_MAJOR ||
20618 minor < DB_VERSION_MINOR )
20620 printf("Berkeley DB version mismatch\n"
20621 "\theader: %s\n\tlibrary: %s\n",
20622 DB_VERSION_STRING, version);
20628 #if DB_VERSION_MAJOR > 2
20629 db_env_create( NULL, 0 );
20630 #elif DB_VERSION_MAJOR > 1
20631 db_appexit( NULL );
20633 (void) dbopen( NULL, 0, 0, 0, NULL);
20638 if { (eval echo configure:20639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20642 echo "configure: failed program was:" >&5
20643 cat conftest.$ac_ext >&5
20653 echo "$ac_t""$ol_cv_db_db_1" 1>&6
20655 if test $ol_cv_db_db_1 = yes ; then
20656 ol_cv_lib_db=-ldb-1
20661 if test "$ol_cv_lib_db" != no ; then
20662 ol_cv_berkeley_db=yes
20663 echo $ac_n "checking for Berkeley DB version match""... $ac_c" 1>&6
20664 echo "configure:20665: checking for Berkeley DB version match" >&5
20665 if eval "test \"\${ol_cv_berkeley_db_version+set}\" = set"; then
20666 echo $ac_n "(cached) $ac_c" 1>&6
20670 LIBS="$LTHREAD_LIBS $LIBS"
20671 if test $ol_cv_lib_db != yes ; then
20672 LIBS="$ol_cv_lib_db $LIBS"
20675 if test "$cross_compiling" = yes; then
20676 ol_cv_berkeley_db_version=cross
20678 cat > conftest.$ac_ext <<EOF
20679 #line 20680 "configure"
20680 #include "confdefs.h"
20682 #ifdef HAVE_DB_185_H
20687 #ifndef DB_VERSION_MAJOR
20688 # define DB_VERSION_MAJOR 1
20691 #define NULL ((void *)0)
20695 #if DB_VERSION_MAJOR > 1
20697 int major, minor, patch;
20699 version = db_version( &major, &minor, &patch );
20701 if( major != DB_VERSION_MAJOR ||
20702 minor != DB_VERSION_MINOR ||
20703 patch != DB_VERSION_PATCH )
20705 printf("Berkeley DB version mismatch\n"
20706 "\theader: %s\n\tlibrary: %s\n",
20707 DB_VERSION_STRING, version);
20715 if { (eval echo configure:20716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
20717 ol_cv_berkeley_db_version=yes
20719 echo "configure: failed program was:" >&5
20720 cat conftest.$ac_ext >&5
20722 ol_cv_berkeley_db_version=no
20732 echo "$ac_t""$ol_cv_berkeley_db_version" 1>&6
20734 if test $ol_cv_berkeley_db_version = no ; then
20735 { echo "configure: error: Berkeley DB version mismatch" 1>&2; exit 1; }
20738 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
20739 echo "configure:20740: checking for Berkeley DB thread support" >&5
20740 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
20741 echo $ac_n "(cached) $ac_c" 1>&6
20745 LIBS="$LTHREAD_LIBS $LIBS"
20746 if test $ol_cv_lib_db != yes ; then
20747 LIBS="$ol_cv_lib_db $LIBS"
20750 if test "$cross_compiling" = yes; then
20751 ol_cv_berkeley_db_thread=cross
20753 cat > conftest.$ac_ext <<EOF
20754 #line 20755 "configure"
20755 #include "confdefs.h"
20757 #ifdef HAVE_DB_185_H
20763 #define NULL ((void *)0)
20768 u_int32_t flags = DB_CREATE |
20774 #if DB_VERSION_MAJOR > 2
20775 DB_ENV *env = NULL;
20777 rc = db_env_create( &env, 0 );
20779 flags |= DB_INIT_MPOOL;
20780 #ifdef DB_MPOOL_PRIVATE
20781 flags |= DB_MPOOL_PRIVATE;
20785 printf("BerkeleyDB: %s\n", db_strerror(rc) );
20789 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
20790 rc = env->open( env, NULL, flags, 0 );
20792 rc = env->open( env, NULL, NULL, flags, 0 );
20796 rc = env->close( env, 0 );
20800 printf("BerkeleyDB: %s\n", db_strerror(rc) );
20806 memset( &env, '\0', sizeof(env) );
20808 rc = db_appinit( NULL, NULL, &env, flags );
20811 db_appexit( &env );
20814 unlink("__db_mpool.share");
20815 unlink("__db_lock.share");
20821 if { (eval echo configure:20822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
20823 ol_cv_berkeley_db_thread=yes
20825 echo "configure: failed program was:" >&5
20826 cat conftest.$ac_ext >&5
20828 ol_cv_berkeley_db_thread=no
20838 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
20840 if test $ol_cv_berkeley_db_thread != no ; then
20841 cat >> confdefs.h <<\EOF
20842 #define HAVE_BERKELEY_DB_THREAD 1
20852 if test $ol_cv_berkeley_db != no ; then
20853 cat >> confdefs.h <<\EOF
20854 #define HAVE_BERKELEY_DB 1
20858 ol_link_ldbm=berkeley
20859 ol_with_ldbm_api=berkeley
20861 if test $ol_with_ldbm_type = hash ; then
20862 cat >> confdefs.h <<\EOF
20863 #define LDBM_USE_DBHASH 1
20867 cat >> confdefs.h <<\EOF
20868 #define LDBM_USE_DBBTREE 1
20873 if test $ol_cv_lib_db != yes ; then
20874 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
20879 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
20880 if test $ol_link_ldbm != berkeley ; then
20881 { echo "configure: error: BDB/HDB: BerkeleyDB not available" 1>&2; exit 1; }
20883 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
20884 echo "configure:20885: checking Berkeley DB version for BDB backend" >&5
20885 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
20886 echo $ac_n "(cached) $ac_c" 1>&6
20889 cat > conftest.$ac_ext <<EOF
20890 #line 20891 "configure"
20891 #include "confdefs.h"
20895 /* this check could be improved */
20896 #ifndef DB_VERSION_MAJOR
20897 # define DB_VERSION_MAJOR 1
20899 #ifndef DB_VERSION_MINOR
20900 # define DB_VERSION_MINOR 0
20903 /* require 4.2 or later */
20904 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
20905 __db_version_compat
20909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20910 egrep "__db_version_compat" >/dev/null 2>&1; then
20912 ol_cv_bdb_compat=yes
20915 ol_cv_bdb_compat=no
20921 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
20924 if test $ol_cv_bdb_compat != yes ; then
20925 { echo "configure: error: BDB/HDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
20930 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
20931 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
20932 ol_with_ldbm_api=none
20935 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
20936 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
20937 echo "configure:20938: checking for MDBM library" >&5
20938 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
20939 echo $ac_n "(cached) $ac_c" 1>&6
20942 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
20943 echo "configure:20944: checking for mdbm_set_chain" >&5
20944 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
20945 echo $ac_n "(cached) $ac_c" 1>&6
20947 cat > conftest.$ac_ext <<EOF
20948 #line 20949 "configure"
20949 #include "confdefs.h"
20950 /* System header to define __stub macros and hopefully few prototypes,
20951 which can conflict with char mdbm_set_chain(); below. */
20952 #include <assert.h>
20953 /* Override any gcc2 internal prototype to avoid an error. */
20954 /* We use char because int might match the return type of a gcc2
20955 builtin and then its argument prototype would still apply. */
20956 char mdbm_set_chain();
20961 /* The GNU C library defines this for functions which it implements
20962 to always fail with ENOSYS. Some functions are actually named
20963 something starting with __ and the normal name is an alias. */
20964 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
20967 f = mdbm_set_chain;
20972 if { (eval echo configure:20973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20974 eval "ac_cv_func_mdbm_set_chain=yes"
20976 echo "configure: failed program was:" >&5
20977 cat conftest.$ac_ext >&5
20979 eval "ac_cv_func_mdbm_set_chain=no"
20984 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
20985 echo "$ac_t""yes" 1>&6
20988 echo "$ac_t""no" 1>&6
20990 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
20991 echo "configure:20992: checking for mdbm_set_chain in -lmdbm" >&5
20992 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
20993 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
20994 echo $ac_n "(cached) $ac_c" 1>&6
20996 ac_save_LIBS="$LIBS"
20997 LIBS="-lmdbm $LIBS"
20998 cat > conftest.$ac_ext <<EOF
20999 #line 21000 "configure"
21000 #include "confdefs.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();
21010 if { (eval echo configure:21011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21012 eval "ac_cv_lib_$ac_lib_var=yes"
21014 echo "configure: failed program was:" >&5
21015 cat conftest.$ac_ext >&5
21017 eval "ac_cv_lib_$ac_lib_var=no"
21020 LIBS="$ac_save_LIBS"
21023 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21024 echo "$ac_t""yes" 1>&6
21025 ol_cv_lib_mdbm=-lmdbm
21027 echo "$ac_t""no" 1>&6
21038 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
21041 for ac_hdr in mdbm.h
21043 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21044 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21045 echo "configure:21046: checking for $ac_hdr" >&5
21046 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21047 echo $ac_n "(cached) $ac_c" 1>&6
21049 cat > conftest.$ac_ext <<EOF
21050 #line 21051 "configure"
21051 #include "confdefs.h"
21054 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21055 { (eval echo configure:21056: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21056 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21057 if test -z "$ac_err"; then
21059 eval "ac_cv_header_$ac_safe=yes"
21062 echo "configure: failed program was:" >&5
21063 cat conftest.$ac_ext >&5
21065 eval "ac_cv_header_$ac_safe=no"
21069 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21070 echo "$ac_t""yes" 1>&6
21071 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21072 cat >> confdefs.h <<EOF
21073 #define $ac_tr_hdr 1
21077 echo "$ac_t""no" 1>&6
21081 echo $ac_n "checking for db""... $ac_c" 1>&6
21082 echo "configure:21083: checking for db" >&5
21083 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
21084 echo $ac_n "(cached) $ac_c" 1>&6
21087 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
21095 echo "$ac_t""$ol_cv_mdbm" 1>&6
21096 if test $ol_cv_mdbm = yes ; then
21097 cat >> confdefs.h <<\EOF
21098 #define HAVE_MDBM 1
21104 if test $ol_cv_mdbm = yes ; then
21106 ol_with_ldbm_api=mdbm
21107 if test $ol_cv_lib_mdbm != yes ; then
21108 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
21113 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
21114 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
21115 echo "configure:21116: checking for GDBM library" >&5
21116 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
21117 echo $ac_n "(cached) $ac_c" 1>&6
21120 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
21121 echo "configure:21122: checking for gdbm_open" >&5
21122 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
21123 echo $ac_n "(cached) $ac_c" 1>&6
21125 cat > conftest.$ac_ext <<EOF
21126 #line 21127 "configure"
21127 #include "confdefs.h"
21128 /* System header to define __stub macros and hopefully few prototypes,
21129 which can conflict with char gdbm_open(); below. */
21130 #include <assert.h>
21131 /* Override any gcc2 internal prototype to avoid an error. */
21132 /* We use char because int might match the return type of a gcc2
21133 builtin and then its argument prototype would still apply. */
21139 /* The GNU C library defines this for functions which it implements
21140 to always fail with ENOSYS. Some functions are actually named
21141 something starting with __ and the normal name is an alias. */
21142 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
21150 if { (eval echo configure:21151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21152 eval "ac_cv_func_gdbm_open=yes"
21154 echo "configure: failed program was:" >&5
21155 cat conftest.$ac_ext >&5
21157 eval "ac_cv_func_gdbm_open=no"
21162 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
21163 echo "$ac_t""yes" 1>&6
21166 echo "$ac_t""no" 1>&6
21168 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
21169 echo "configure:21170: checking for gdbm_open in -lgdbm" >&5
21170 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
21171 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21172 echo $ac_n "(cached) $ac_c" 1>&6
21174 ac_save_LIBS="$LIBS"
21175 LIBS="-lgdbm $LIBS"
21176 cat > conftest.$ac_ext <<EOF
21177 #line 21178 "configure"
21178 #include "confdefs.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. */
21188 if { (eval echo configure:21189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21190 eval "ac_cv_lib_$ac_lib_var=yes"
21192 echo "configure: failed program was:" >&5
21193 cat conftest.$ac_ext >&5
21195 eval "ac_cv_lib_$ac_lib_var=no"
21198 LIBS="$ac_save_LIBS"
21201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21202 echo "$ac_t""yes" 1>&6
21203 ol_cv_lib_gdbm=-lgdbm
21205 echo "$ac_t""no" 1>&6
21216 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
21219 for ac_hdr in gdbm.h
21221 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21222 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21223 echo "configure:21224: checking for $ac_hdr" >&5
21224 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21225 echo $ac_n "(cached) $ac_c" 1>&6
21227 cat > conftest.$ac_ext <<EOF
21228 #line 21229 "configure"
21229 #include "confdefs.h"
21232 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21233 { (eval echo configure:21234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21234 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21235 if test -z "$ac_err"; then
21237 eval "ac_cv_header_$ac_safe=yes"
21240 echo "configure: failed program was:" >&5
21241 cat conftest.$ac_ext >&5
21243 eval "ac_cv_header_$ac_safe=no"
21247 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21248 echo "$ac_t""yes" 1>&6
21249 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21250 cat >> confdefs.h <<EOF
21251 #define $ac_tr_hdr 1
21255 echo "$ac_t""no" 1>&6
21259 echo $ac_n "checking for db""... $ac_c" 1>&6
21260 echo "configure:21261: checking for db" >&5
21261 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
21262 echo $ac_n "(cached) $ac_c" 1>&6
21265 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
21273 echo "$ac_t""$ol_cv_gdbm" 1>&6
21274 if test $ol_cv_gdbm = yes ; then
21275 cat >> confdefs.h <<\EOF
21276 #define HAVE_GDBM 1
21282 if test $ol_cv_gdbm = yes ; then
21284 ol_with_ldbm_api=gdbm
21286 if test $ol_cv_lib_gdbm != yes ; then
21287 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
21292 if test $ol_with_ldbm_api = ndbm ; then
21293 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
21294 echo "configure:21295: checking for NDBM library" >&5
21295 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
21296 echo $ac_n "(cached) $ac_c" 1>&6
21299 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
21300 echo "configure:21301: checking for dbm_open" >&5
21301 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
21302 echo $ac_n "(cached) $ac_c" 1>&6
21304 cat > conftest.$ac_ext <<EOF
21305 #line 21306 "configure"
21306 #include "confdefs.h"
21307 /* System header to define __stub macros and hopefully few prototypes,
21308 which can conflict with char dbm_open(); below. */
21309 #include <assert.h>
21310 /* Override any gcc2 internal prototype to avoid an error. */
21311 /* We use char because int might match the return type of a gcc2
21312 builtin and then its argument prototype would still apply. */
21318 /* The GNU C library defines this for functions which it implements
21319 to always fail with ENOSYS. Some functions are actually named
21320 something starting with __ and the normal name is an alias. */
21321 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
21329 if { (eval echo configure:21330: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21331 eval "ac_cv_func_dbm_open=yes"
21333 echo "configure: failed program was:" >&5
21334 cat conftest.$ac_ext >&5
21336 eval "ac_cv_func_dbm_open=no"
21341 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
21342 echo "$ac_t""yes" 1>&6
21345 echo "$ac_t""no" 1>&6
21347 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
21348 echo "configure:21349: checking for dbm_open in -lndbm" >&5
21349 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
21350 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21351 echo $ac_n "(cached) $ac_c" 1>&6
21353 ac_save_LIBS="$LIBS"
21354 LIBS="-lndbm $LIBS"
21355 cat > conftest.$ac_ext <<EOF
21356 #line 21357 "configure"
21357 #include "confdefs.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. */
21367 if { (eval echo configure:21368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21369 eval "ac_cv_lib_$ac_lib_var=yes"
21371 echo "configure: failed program was:" >&5
21372 cat conftest.$ac_ext >&5
21374 eval "ac_cv_lib_$ac_lib_var=no"
21377 LIBS="$ac_save_LIBS"
21380 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21381 echo "$ac_t""yes" 1>&6
21382 ol_cv_lib_ndbm=-lndbm
21384 echo "$ac_t""no" 1>&6
21386 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
21387 echo "configure:21388: checking for dbm_open in -ldbm" >&5
21388 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
21389 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21390 echo $ac_n "(cached) $ac_c" 1>&6
21392 ac_save_LIBS="$LIBS"
21394 cat > conftest.$ac_ext <<EOF
21395 #line 21396 "configure"
21396 #include "confdefs.h"
21397 /* Override any gcc2 internal prototype to avoid an error. */
21398 /* We use char because int might match the return type of a gcc2
21399 builtin and then its argument prototype would still apply. */
21406 if { (eval echo configure:21407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21408 eval "ac_cv_lib_$ac_lib_var=yes"
21410 echo "configure: failed program was:" >&5
21411 cat conftest.$ac_ext >&5
21413 eval "ac_cv_lib_$ac_lib_var=no"
21416 LIBS="$ac_save_LIBS"
21419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21420 echo "$ac_t""yes" 1>&6
21421 ol_cv_lib_ndbm=-ldbm
21423 echo "$ac_t""no" 1>&6
21436 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
21439 for ac_hdr in ndbm.h
21441 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21442 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21443 echo "configure:21444: checking for $ac_hdr" >&5
21444 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21445 echo $ac_n "(cached) $ac_c" 1>&6
21447 cat > conftest.$ac_ext <<EOF
21448 #line 21449 "configure"
21449 #include "confdefs.h"
21452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21453 { (eval echo configure:21454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21454 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21455 if test -z "$ac_err"; then
21457 eval "ac_cv_header_$ac_safe=yes"
21460 echo "configure: failed program was:" >&5
21461 cat conftest.$ac_ext >&5
21463 eval "ac_cv_header_$ac_safe=no"
21467 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21468 echo "$ac_t""yes" 1>&6
21469 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21470 cat >> confdefs.h <<EOF
21471 #define $ac_tr_hdr 1
21475 echo "$ac_t""no" 1>&6
21479 echo $ac_n "checking for db""... $ac_c" 1>&6
21480 echo "configure:21481: checking for db" >&5
21481 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
21482 echo $ac_n "(cached) $ac_c" 1>&6
21485 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
21493 echo "$ac_t""$ol_cv_ndbm" 1>&6
21494 if test $ol_cv_ndbm = yes ; then
21495 cat >> confdefs.h <<\EOF
21496 #define HAVE_NDBM 1
21502 if test $ol_cv_ndbm = yes ; then
21504 ol_with_ldbm_api=ndbm
21506 if test $ol_cv_lib_ndbm != yes ; then
21507 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
21512 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
21513 { echo "configure: error: could not find suitable LDBM backend" 1>&2; exit 1; }
21516 if test $ol_enable_bdb = yes -o \
21517 $ol_enable_hdb = yes -o \
21518 $ol_enable_ldbm = yes ; then
21519 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
21523 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
21524 BUILD_LIBS_DYNAMIC=shared
21525 cat >> confdefs.h <<\EOF
21526 #define LDAP_LIBS_DYNAMIC 1
21531 BUILD_LIBS_DYNAMIC=static
21535 if test $ol_enable_wrappers != no ; then
21536 for ac_hdr in tcpd.h
21538 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21539 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21540 echo "configure:21541: checking for $ac_hdr" >&5
21541 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21542 echo $ac_n "(cached) $ac_c" 1>&6
21544 cat > conftest.$ac_ext <<EOF
21545 #line 21546 "configure"
21546 #include "confdefs.h"
21549 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21550 { (eval echo configure:21551: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21551 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21552 if test -z "$ac_err"; then
21554 eval "ac_cv_header_$ac_safe=yes"
21557 echo "configure: failed program was:" >&5
21558 cat conftest.$ac_ext >&5
21560 eval "ac_cv_header_$ac_safe=no"
21564 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21565 echo "$ac_t""yes" 1>&6
21566 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21567 cat >> confdefs.h <<EOF
21568 #define $ac_tr_hdr 1
21571 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
21572 echo "configure:21573: checking for TCP wrappers library" >&5
21574 LIBS="$LIBS -lwrap"
21575 cat > conftest.$ac_ext <<EOF
21576 #line 21577 "configure"
21577 #include "confdefs.h"
21580 int allow_severity = 0;
21581 int deny_severity = 0;
21583 struct request_info *req;
21591 if { (eval echo configure:21592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21593 echo "$ac_t""-lwrap" 1>&6
21597 echo "configure: failed program was:" >&5
21598 cat conftest.$ac_ext >&5
21602 cat > conftest.$ac_ext <<EOF
21603 #line 21604 "configure"
21604 #include "confdefs.h"
21607 int allow_severity = 0;
21608 int deny_severity = 0;
21610 struct request_info *req;
21618 if { (eval echo configure:21619: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21620 echo "$ac_t""-lwrap -lnsl" 1>&6
21622 LIBS="$save_LIBS -lnsl"
21624 echo "configure: failed program was:" >&5
21625 cat conftest.$ac_ext >&5
21628 echo "$ac_t""no" 1>&6
21636 echo "$ac_t""no" 1>&6
21642 if test $have_wrappers = yes ; then
21643 cat >> confdefs.h <<\EOF
21644 #define HAVE_TCPD 1
21648 elif test $ol_enable_wrappers = yes ; then
21649 { echo "configure: error: could not find TCP wrappers, select apppropriate options or disable" 1>&2; exit 1; }
21651 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
21656 if test $ol_enable_syslog != no ; then
21657 echo $ac_n "checking for openlog""... $ac_c" 1>&6
21658 echo "configure:21659: checking for openlog" >&5
21659 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
21660 echo $ac_n "(cached) $ac_c" 1>&6
21662 cat > conftest.$ac_ext <<EOF
21663 #line 21664 "configure"
21664 #include "confdefs.h"
21665 /* System header to define __stub macros and hopefully few prototypes,
21666 which can conflict with char openlog(); below. */
21667 #include <assert.h>
21668 /* Override any gcc2 internal prototype to avoid an error. */
21669 /* We use char because int might match the return type of a gcc2
21670 builtin and then its argument prototype would still apply. */
21676 /* The GNU C library defines this for functions which it implements
21677 to always fail with ENOSYS. Some functions are actually named
21678 something starting with __ and the normal name is an alias. */
21679 #if defined (__stub_openlog) || defined (__stub___openlog)
21687 if { (eval echo configure:21688: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21689 eval "ac_cv_func_openlog=yes"
21691 echo "configure: failed program was:" >&5
21692 cat conftest.$ac_ext >&5
21694 eval "ac_cv_func_openlog=no"
21699 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
21700 echo "$ac_t""yes" 1>&6
21703 echo "$ac_t""no" 1>&6
21706 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
21707 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
21709 ol_enable_syslog=$ac_cv_func_openlog
21714 if test $ol_enable_sql != no ; then
21715 for ac_hdr in sql.h sqlext.h
21717 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21718 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21719 echo "configure:21720: checking for $ac_hdr" >&5
21720 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21721 echo $ac_n "(cached) $ac_c" 1>&6
21723 cat > conftest.$ac_ext <<EOF
21724 #line 21725 "configure"
21725 #include "confdefs.h"
21728 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21729 { (eval echo configure:21730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21730 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21731 if test -z "$ac_err"; then
21733 eval "ac_cv_header_$ac_safe=yes"
21736 echo "configure: failed program was:" >&5
21737 cat conftest.$ac_ext >&5
21739 eval "ac_cv_header_$ac_safe=no"
21743 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21744 echo "$ac_t""yes" 1>&6
21745 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21746 cat >> confdefs.h <<EOF
21747 #define $ac_tr_hdr 1
21751 echo "$ac_t""no" 1>&6
21752 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
21759 LIBS="$LTHREAD_LIBS"
21761 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
21762 echo "configure:21763: checking for SQLDriverConnect in -liodbc" >&5
21763 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
21764 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21765 echo $ac_n "(cached) $ac_c" 1>&6
21767 ac_save_LIBS="$LIBS"
21768 LIBS="-liodbc $LIBS"
21769 cat > conftest.$ac_ext <<EOF
21770 #line 21771 "configure"
21771 #include "confdefs.h"
21772 /* Override any gcc2 internal prototype to avoid an error. */
21773 /* We use char because int might match the return type of a gcc2
21774 builtin and then its argument prototype would still apply. */
21775 char SQLDriverConnect();
21781 if { (eval echo configure:21782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21783 eval "ac_cv_lib_$ac_lib_var=yes"
21785 echo "configure: failed program was:" >&5
21786 cat conftest.$ac_ext >&5
21788 eval "ac_cv_lib_$ac_lib_var=no"
21791 LIBS="$ac_save_LIBS"
21794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21795 echo "$ac_t""yes" 1>&6
21798 echo "$ac_t""no" 1>&6
21802 if test $have_iodbc = yes ; then
21803 ol_link_sql="-liodbc"
21805 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
21806 echo "configure:21807: checking for SQLDriverConnect in -lodbc" >&5
21807 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
21808 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21809 echo $ac_n "(cached) $ac_c" 1>&6
21811 ac_save_LIBS="$LIBS"
21812 LIBS="-lodbc $LIBS"
21813 cat > conftest.$ac_ext <<EOF
21814 #line 21815 "configure"
21815 #include "confdefs.h"
21816 /* Override any gcc2 internal prototype to avoid an error. */
21817 /* We use char because int might match the return type of a gcc2
21818 builtin and then its argument prototype would still apply. */
21819 char SQLDriverConnect();
21825 if { (eval echo configure:21826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21827 eval "ac_cv_lib_$ac_lib_var=yes"
21829 echo "configure: failed program was:" >&5
21830 cat conftest.$ac_ext >&5
21832 eval "ac_cv_lib_$ac_lib_var=no"
21835 LIBS="$ac_save_LIBS"
21838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21839 echo "$ac_t""yes" 1>&6
21842 echo "$ac_t""no" 1>&6
21846 if test $have_odbc = yes ; then
21847 ol_link_sql="-lodbc"
21853 if test $ol_link_sql != no ; then
21854 SLAPD_SQL_LIBS="$ol_link_sql"
21856 elif test $ol_enable_sql != auto ; then
21857 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
21864 if test $ol_with_cyrus_sasl != no ; then
21865 for ac_hdr in sasl/sasl.h sasl.h
21867 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21868 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21869 echo "configure:21870: checking for $ac_hdr" >&5
21870 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21871 echo $ac_n "(cached) $ac_c" 1>&6
21873 cat > conftest.$ac_ext <<EOF
21874 #line 21875 "configure"
21875 #include "confdefs.h"
21878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21879 { (eval echo configure:21880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21881 if test -z "$ac_err"; then
21883 eval "ac_cv_header_$ac_safe=yes"
21886 echo "configure: failed program was:" >&5
21887 cat conftest.$ac_ext >&5
21889 eval "ac_cv_header_$ac_safe=no"
21893 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21894 echo "$ac_t""yes" 1>&6
21895 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21896 cat >> confdefs.h <<EOF
21897 #define $ac_tr_hdr 1
21901 echo "$ac_t""no" 1>&6
21906 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
21907 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
21908 echo "configure:21909: checking for sasl_client_init in -lsasl2" >&5
21909 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
21910 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21911 echo $ac_n "(cached) $ac_c" 1>&6
21913 ac_save_LIBS="$LIBS"
21914 LIBS="-lsasl2 $LIBS"
21915 cat > conftest.$ac_ext <<EOF
21916 #line 21917 "configure"
21917 #include "confdefs.h"
21918 /* Override any gcc2 internal prototype to avoid an error. */
21919 /* We use char because int might match the return type of a gcc2
21920 builtin and then its argument prototype would still apply. */
21921 char sasl_client_init();
21927 if { (eval echo configure:21928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21929 eval "ac_cv_lib_$ac_lib_var=yes"
21931 echo "configure: failed program was:" >&5
21932 cat conftest.$ac_ext >&5
21934 eval "ac_cv_lib_$ac_lib_var=no"
21937 LIBS="$ac_save_LIBS"
21940 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21941 echo "$ac_t""yes" 1>&6
21942 ol_link_sasl="-lsasl2"
21944 echo "$ac_t""no" 1>&6
21945 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
21946 echo "configure:21947: checking for sasl_client_init in -lsasl" >&5
21947 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
21948 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21949 echo $ac_n "(cached) $ac_c" 1>&6
21951 ac_save_LIBS="$LIBS"
21952 LIBS="-lsasl $LIBS"
21953 cat > conftest.$ac_ext <<EOF
21954 #line 21955 "configure"
21955 #include "confdefs.h"
21956 /* Override any gcc2 internal prototype to avoid an error. */
21957 /* We use char because int might match the return type of a gcc2
21958 builtin and then its argument prototype would still apply. */
21959 char sasl_client_init();
21965 if { (eval echo configure:21966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21967 eval "ac_cv_lib_$ac_lib_var=yes"
21969 echo "configure: failed program was:" >&5
21970 cat conftest.$ac_ext >&5
21972 eval "ac_cv_lib_$ac_lib_var=no"
21975 LIBS="$ac_save_LIBS"
21978 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21979 echo "$ac_t""yes" 1>&6
21980 ol_link_sasl="-lsasl"
21982 echo "$ac_t""no" 1>&6
21989 if test $ol_link_sasl = no ; then
21990 if test $ol_with_cyrus_sasl != auto ; then
21991 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
21993 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
21994 echo "configure: warning: SASL authentication not supported!" 1>&2
21995 if test $ol_link_tls = no ; then
21996 echo "configure: warning: Strong authentication not supported!" 1>&2
22000 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
22001 echo "configure:22002: checking Cyrus SASL library version" >&5
22002 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
22003 echo $ac_n "(cached) $ac_c" 1>&6
22006 cat > conftest.$ac_ext <<EOF
22007 #line 22008 "configure"
22008 #include "confdefs.h"
22010 #ifdef HAVE_SASL_SASL_H
22011 #include <sasl/sasl.h>
22016 /* Require 2.1.15+ */
22017 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
22018 char *__sasl_compat = "2.2+ or better okay (we guess)";
22019 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
22020 && SASL_VERSION_STEP >=15
22021 char *__sasl_compat = "2.1.15+ or better okay";
22025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22026 egrep "__sasl_compat" >/dev/null 2>&1; then
22028 ol_cv_sasl_compat=yes
22031 ol_cv_sasl_compat=no
22037 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
22039 if test $ol_cv_sasl_compat = no ; then
22041 { echo "configure: error: Cyrus SASL library located but is incompatible" 1>&2; exit 1; }
22044 cat >> confdefs.h <<\EOF
22045 #define HAVE_CYRUS_SASL 1
22048 SASL_LIBS="$ol_link_sasl"
22049 if test $ol_enable_spasswd != no ; then
22050 ol_link_spasswd=yes
22053 ac_save_LIBS="$LIBS"
22054 LIBS="$LIBS $ol_link_sasl"
22055 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
22056 echo "configure:22057: checking for sasl_version" >&5
22057 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
22058 echo $ac_n "(cached) $ac_c" 1>&6
22060 cat > conftest.$ac_ext <<EOF
22061 #line 22062 "configure"
22062 #include "confdefs.h"
22063 /* System header to define __stub macros and hopefully few prototypes,
22064 which can conflict with char sasl_version(); below. */
22065 #include <assert.h>
22066 /* Override any gcc2 internal prototype to avoid an error. */
22067 /* We use char because int might match the return type of a gcc2
22068 builtin and then its argument prototype would still apply. */
22069 char sasl_version();
22074 /* The GNU C library defines this for functions which it implements
22075 to always fail with ENOSYS. Some functions are actually named
22076 something starting with __ and the normal name is an alias. */
22077 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
22085 if { (eval echo configure:22086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22087 eval "ac_cv_func_sasl_version=yes"
22089 echo "configure: failed program was:" >&5
22090 cat conftest.$ac_ext >&5
22092 eval "ac_cv_func_sasl_version=no"
22097 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
22098 echo "$ac_t""yes" 1>&6
22099 cat >> confdefs.h <<\EOF
22100 #define HAVE_SASL_VERSION 1
22104 echo "$ac_t""no" 1>&6
22107 LIBS="$ac_save_LIBS"
22113 echo "configure: warning: SASL authentication not supported!" 1>&2
22114 if test $ol_link_tls = no ; then
22115 echo "configure: warning: Strong authentication not supported!" 1>&2
22119 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
22121 if test -r /dev/urandom ; then
22122 dev="/dev/urandom";
22123 elif test -r /idev/urandom ; then
22124 dev="/idev/urandom";
22125 elif test -r /dev/srandom ; then
22126 dev="/dev/srandom";
22127 elif test -r /dev/random ; then
22129 elif test -r /idev/random ; then
22130 dev="/idev/random";
22133 if test $dev != no ; then
22134 cat >> confdefs.h <<EOF
22135 #define URANDOM_DEVICE "$dev"
22142 if test $ol_with_fetch != no ; then
22144 LIBS="-lfetch -lcom_err $LIBS"
22145 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
22146 echo "configure:22147: checking fetch(3) library" >&5
22147 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
22148 echo $ac_n "(cached) $ac_c" 1>&6
22151 cat > conftest.$ac_ext <<EOF
22152 #line 22153 "configure"
22153 #include "confdefs.h"
22155 #include <sys/param.h>
22159 struct url *u = fetchParseURL("file:///");
22162 if { (eval echo configure:22163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22164 ol_cv_lib_fetch=yes
22166 echo "configure: failed program was:" >&5
22167 cat conftest.$ac_ext >&5
22174 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
22176 if test $ol_cv_lib_fetch != no ; then
22177 ol_link_fetch="-lfetch -lcom_err"
22178 cat >> confdefs.h <<\EOF
22179 #define HAVE_FETCH 1
22185 if test $ol_cv_lib_fetch != no ; then
22186 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
22187 ol_link_fetch=freebsd
22189 elif test $ol_with_fetch != auto ; then
22190 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
22194 if test $ol_enable_crypt != no ; then
22196 LIBS="$TLS_LIBS $LIBS"
22198 echo $ac_n "checking for crypt""... $ac_c" 1>&6
22199 echo "configure:22200: checking for crypt" >&5
22200 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
22201 echo $ac_n "(cached) $ac_c" 1>&6
22203 cat > conftest.$ac_ext <<EOF
22204 #line 22205 "configure"
22205 #include "confdefs.h"
22206 /* System header to define __stub macros and hopefully few prototypes,
22207 which can conflict with char crypt(); below. */
22208 #include <assert.h>
22209 /* Override any gcc2 internal prototype to avoid an error. */
22210 /* We use char because int might match the return type of a gcc2
22211 builtin and then its argument prototype would still apply. */
22217 /* The GNU C library defines this for functions which it implements
22218 to always fail with ENOSYS. Some functions are actually named
22219 something starting with __ and the normal name is an alias. */
22220 #if defined (__stub_crypt) || defined (__stub___crypt)
22228 if { (eval echo configure:22229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22230 eval "ac_cv_func_crypt=yes"
22232 echo "configure: failed program was:" >&5
22233 cat conftest.$ac_ext >&5
22235 eval "ac_cv_func_crypt=no"
22240 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
22241 echo "$ac_t""yes" 1>&6
22244 echo "$ac_t""no" 1>&6
22247 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
22248 echo "configure:22249: checking for crypt in -lcrypt" >&5
22249 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
22250 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22251 echo $ac_n "(cached) $ac_c" 1>&6
22253 ac_save_LIBS="$LIBS"
22254 LIBS="-lcrypt $LIBS"
22255 cat > conftest.$ac_ext <<EOF
22256 #line 22257 "configure"
22257 #include "confdefs.h"
22258 /* Override any gcc2 internal prototype to avoid an error. */
22259 /* We use char because int might match the return type of a gcc2
22260 builtin and then its argument prototype would still apply. */
22267 if { (eval echo configure:22268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22269 eval "ac_cv_lib_$ac_lib_var=yes"
22271 echo "configure: failed program was:" >&5
22272 cat conftest.$ac_ext >&5
22274 eval "ac_cv_lib_$ac_lib_var=no"
22277 LIBS="$ac_save_LIBS"
22280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22281 echo "$ac_t""yes" 1>&6
22282 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
22285 echo "$ac_t""no" 1>&6
22294 if test $have_crypt = yes ; then
22295 cat >> confdefs.h <<\EOF
22296 #define HAVE_CRYPT 1
22300 echo "configure: warning: could not find crypt" 1>&2
22301 if test $ol_enable_crypt = yes ; then
22302 { echo "configure: error: could not find crypt, select appropriate options or disable" 1>&2; exit 1; }
22305 echo "configure: warning: disabling crypt support" 1>&2
22310 if test $ol_enable_proctitle != no ; then
22311 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
22312 echo "configure:22313: checking for setproctitle" >&5
22313 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
22314 echo $ac_n "(cached) $ac_c" 1>&6
22316 cat > conftest.$ac_ext <<EOF
22317 #line 22318 "configure"
22318 #include "confdefs.h"
22319 /* System header to define __stub macros and hopefully few prototypes,
22320 which can conflict with char setproctitle(); below. */
22321 #include <assert.h>
22322 /* Override any gcc2 internal prototype to avoid an error. */
22323 /* We use char because int might match the return type of a gcc2
22324 builtin and then its argument prototype would still apply. */
22325 char setproctitle();
22330 /* The GNU C library defines this for functions which it implements
22331 to always fail with ENOSYS. Some functions are actually named
22332 something starting with __ and the normal name is an alias. */
22333 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
22341 if { (eval echo configure:22342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22343 eval "ac_cv_func_setproctitle=yes"
22345 echo "configure: failed program was:" >&5
22346 cat conftest.$ac_ext >&5
22348 eval "ac_cv_func_setproctitle=no"
22353 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
22354 echo "$ac_t""yes" 1>&6
22355 have_setproctitle=yes
22357 echo "$ac_t""no" 1>&6
22359 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
22360 echo "configure:22361: checking for setproctitle in -lutil" >&5
22361 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
22362 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22363 echo $ac_n "(cached) $ac_c" 1>&6
22365 ac_save_LIBS="$LIBS"
22366 LIBS="-lutil $LIBS"
22367 cat > conftest.$ac_ext <<EOF
22368 #line 22369 "configure"
22369 #include "confdefs.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();
22379 if { (eval echo configure:22380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22381 eval "ac_cv_lib_$ac_lib_var=yes"
22383 echo "configure: failed program was:" >&5
22384 cat conftest.$ac_ext >&5
22386 eval "ac_cv_lib_$ac_lib_var=no"
22389 LIBS="$ac_save_LIBS"
22392 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22393 echo "$ac_t""yes" 1>&6
22394 have_setproctitle=yes
22395 LUTIL_LIBS="$LUTIL_LIBS -lutil"
22397 echo "$ac_t""no" 1>&6
22398 have_setproctitle=no
22399 LIBOBJS="$LIBOBJS setproctitle.o"
22400 LIBSRCS="$LIBSRCS setproctitle.c"
22406 if test $have_setproctitle = yes ; then
22407 cat >> confdefs.h <<\EOF
22408 #define HAVE_SETPROCTITLE 1
22414 if test $ol_enable_slp != no ; then
22415 for ac_hdr in slp.h
22417 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22418 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22419 echo "configure:22420: checking for $ac_hdr" >&5
22420 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22421 echo $ac_n "(cached) $ac_c" 1>&6
22423 cat > conftest.$ac_ext <<EOF
22424 #line 22425 "configure"
22425 #include "confdefs.h"
22428 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22429 { (eval echo configure:22430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22430 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22431 if test -z "$ac_err"; then
22433 eval "ac_cv_header_$ac_safe=yes"
22436 echo "configure: failed program was:" >&5
22437 cat conftest.$ac_ext >&5
22439 eval "ac_cv_header_$ac_safe=no"
22443 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22444 echo "$ac_t""yes" 1>&6
22445 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22446 cat >> confdefs.h <<EOF
22447 #define $ac_tr_hdr 1
22451 echo "$ac_t""no" 1>&6
22456 if test $ac_cv_header_slp_h = yes ; then
22457 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
22458 echo "configure:22459: checking for SLPOpen in -lslp" >&5
22459 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
22460 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22461 echo $ac_n "(cached) $ac_c" 1>&6
22463 ac_save_LIBS="$LIBS"
22465 cat > conftest.$ac_ext <<EOF
22466 #line 22467 "configure"
22467 #include "confdefs.h"
22468 /* Override any gcc2 internal prototype to avoid an error. */
22469 /* We use char because int might match the return type of a gcc2
22470 builtin and then its argument prototype would still apply. */
22477 if { (eval echo configure:22478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22479 eval "ac_cv_lib_$ac_lib_var=yes"
22481 echo "configure: failed program was:" >&5
22482 cat conftest.$ac_ext >&5
22484 eval "ac_cv_lib_$ac_lib_var=no"
22487 LIBS="$ac_save_LIBS"
22490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22491 echo "$ac_t""yes" 1>&6
22494 echo "$ac_t""no" 1>&6
22498 if test $have_slp = yes ; then
22499 cat >> confdefs.h <<\EOF
22503 SLAPD_SLP_LIBS=-lslp
22506 elif test $ol_enable_slp = yes ; then
22507 { echo "configure: error: SLP not found" 1>&2; exit 1; }
22511 if test "$ol_with_multiple_precision" != "no" ; then
22515 for ac_hdr in openssl/bn.h bn.h
22517 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22518 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22519 echo "configure:22520: checking for $ac_hdr" >&5
22520 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22521 echo $ac_n "(cached) $ac_c" 1>&6
22523 cat > conftest.$ac_ext <<EOF
22524 #line 22525 "configure"
22525 #include "confdefs.h"
22528 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22529 { (eval echo configure:22530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22530 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22531 if test -z "$ac_err"; then
22533 eval "ac_cv_header_$ac_safe=yes"
22536 echo "configure: failed program was:" >&5
22537 cat conftest.$ac_ext >&5
22539 eval "ac_cv_header_$ac_safe=no"
22543 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22544 echo "$ac_t""yes" 1>&6
22545 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22546 cat >> confdefs.h <<EOF
22547 #define $ac_tr_hdr 1
22551 echo "$ac_t""no" 1>&6
22555 for ac_hdr in openssl/crypto.h crypto.h
22557 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22558 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22559 echo "configure:22560: checking for $ac_hdr" >&5
22560 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22561 echo $ac_n "(cached) $ac_c" 1>&6
22563 cat > conftest.$ac_ext <<EOF
22564 #line 22565 "configure"
22565 #include "confdefs.h"
22568 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22569 { (eval echo configure:22570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22570 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22571 if test -z "$ac_err"; then
22573 eval "ac_cv_header_$ac_safe=yes"
22576 echo "configure: failed program was:" >&5
22577 cat conftest.$ac_ext >&5
22579 eval "ac_cv_header_$ac_safe=no"
22583 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22584 echo "$ac_t""yes" 1>&6
22585 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22586 cat >> confdefs.h <<EOF
22587 #define $ac_tr_hdr 1
22591 echo "$ac_t""no" 1>&6
22595 for ac_hdr in gmp.h
22597 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22598 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22599 echo "configure:22600: checking for $ac_hdr" >&5
22600 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22601 echo $ac_n "(cached) $ac_c" 1>&6
22603 cat > conftest.$ac_ext <<EOF
22604 #line 22605 "configure"
22605 #include "confdefs.h"
22608 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22609 { (eval echo configure:22610: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22610 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22611 if test -z "$ac_err"; then
22613 eval "ac_cv_header_$ac_safe=yes"
22616 echo "configure: failed program was:" >&5
22617 cat conftest.$ac_ext >&5
22619 eval "ac_cv_header_$ac_safe=no"
22623 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22624 echo "$ac_t""yes" 1>&6
22625 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22626 cat >> confdefs.h <<EOF
22627 #define $ac_tr_hdr 1
22631 echo "$ac_t""no" 1>&6
22636 if test "$ol_with_tls" = "found" ; then
22638 ol_have_crypto_h=no
22640 if test "$ac_cv_header_openssl_bn_h" = "yes" \
22641 -o "$ac_cv_header_bn_h" = "yes" ; then
22645 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
22646 -o "$ac_cv_header_crypto_h" = "yes" ; then
22647 ol_have_crypto_h=yes
22650 if test "$ol_have_bn_h" = "yes" \
22651 -a "$ol_have_crypto_h" = "yes" ; then
22656 if test $ac_cv_header_gmp_h = yes ; then
22657 echo $ac_n "checking for __gmpz_add_ui in -lgmp""... $ac_c" 1>&6
22658 echo "configure:22659: checking for __gmpz_add_ui in -lgmp" >&5
22659 ac_lib_var=`echo gmp'_'__gmpz_add_ui | sed 'y%./+-:%__p__%'`
22660 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22661 echo $ac_n "(cached) $ac_c" 1>&6
22663 ac_save_LIBS="$LIBS"
22665 cat > conftest.$ac_ext <<EOF
22666 #line 22667 "configure"
22667 #include "confdefs.h"
22668 /* Override any gcc2 internal prototype to avoid an error. */
22669 /* We use char because int might match the return type of a gcc2
22670 builtin and then its argument prototype would still apply. */
22671 char __gmpz_add_ui();
22677 if { (eval echo configure:22678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22679 eval "ac_cv_lib_$ac_lib_var=yes"
22681 echo "configure: failed program was:" >&5
22682 cat conftest.$ac_ext >&5
22684 eval "ac_cv_lib_$ac_lib_var=no"
22687 LIBS="$ac_save_LIBS"
22690 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22691 echo "$ac_t""yes" 1>&6
22694 echo "$ac_t""no" 1>&6
22698 if test $have_gmp = yes ; then
22703 echo $ac_n "checking for multiple precision support""... $ac_c" 1>&6
22704 echo "configure:22705: checking for multiple precision support" >&5
22706 ol_mp_support="none"
22707 case "$ol_with_multiple_precision" in
22709 if test "$ol_have_bignum" = "yes" ; then
22710 ol_mp_support="bignum"
22712 if test "$ol_have_gmp" = "yes" ; then
22713 ol_mp_support="gmp"
22718 if test "$ol_have_bignum" != "yes" ; then
22719 { echo "configure: error: OpenSSL's BIGNUM not available" 1>&2; exit 1; }
22721 ol_mp_support="bignum"
22724 if test "$ol_have_gmp" != "yes" ; then
22725 { echo "configure: error: GMP not available" 1>&2; exit 1; }
22727 ol_mp_support="gmp"
22730 if test "$ol_have_bignum" = "yes" ; then
22731 ol_mp_support="bignum"
22732 elif test "$ol_have_gmp" = "yes" ; then
22733 ol_mp_support="gmp"
22735 { echo "configure: error: not available" 1>&2; exit 1; }
22740 case "$ol_mp_support" in
22742 cat >> confdefs.h <<\EOF
22743 #define HAVE_BIGNUM 1
22748 cat >> confdefs.h <<\EOF
22752 SLAPD_GMP_LIBS=-lgmp
22758 echo "$ac_t""$ol_mp_support" 1>&6
22762 echo $ac_n "checking long long""... $ac_c" 1>&6
22763 echo "configure:22764: checking long long" >&5
22764 if eval "test \"\${ol_cv_type_long_long+set}\" = set"; then
22765 echo $ac_n "(cached) $ac_c" 1>&6
22768 cat > conftest.$ac_ext <<EOF
22769 #line 22770 "configure"
22770 #include "confdefs.h"
22776 if { (eval echo configure:22777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22778 ol_cv_type_long_long=yes
22780 echo "configure: failed program was:" >&5
22781 cat conftest.$ac_ext >&5
22783 ol_cv_type_long_long=no
22788 echo "$ac_t""$ol_cv_type_long_long" 1>&6
22789 if test $ol_cv_type_long_long = yes; then
22790 cat >> confdefs.h <<\EOF
22791 #define HAVE_LONG_LONG 1
22796 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
22797 echo "configure:22798: checking for ANSI C header files" >&5
22798 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
22799 echo $ac_n "(cached) $ac_c" 1>&6
22801 cat > conftest.$ac_ext <<EOF
22802 #line 22803 "configure"
22803 #include "confdefs.h"
22804 #include <stdlib.h>
22805 #include <stdarg.h>
22806 #include <string.h>
22809 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22810 { (eval echo configure:22811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22811 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22812 if test -z "$ac_err"; then
22814 ac_cv_header_stdc=yes
22817 echo "configure: failed program was:" >&5
22818 cat conftest.$ac_ext >&5
22820 ac_cv_header_stdc=no
22824 if test $ac_cv_header_stdc = yes; then
22825 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22826 cat > conftest.$ac_ext <<EOF
22827 #line 22828 "configure"
22828 #include "confdefs.h"
22829 #include <string.h>
22831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22832 egrep "memchr" >/dev/null 2>&1; then
22836 ac_cv_header_stdc=no
22842 if test $ac_cv_header_stdc = yes; then
22843 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22844 cat > conftest.$ac_ext <<EOF
22845 #line 22846 "configure"
22846 #include "confdefs.h"
22847 #include <stdlib.h>
22849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22850 egrep "free" >/dev/null 2>&1; then
22854 ac_cv_header_stdc=no
22860 if test $ac_cv_header_stdc = yes; then
22861 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22862 if test "$cross_compiling" = yes; then
22865 cat > conftest.$ac_ext <<EOF
22866 #line 22867 "configure"
22867 #include "confdefs.h"
22869 #if ((' ' & 0x0FF) == 0x020)
22870 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22871 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22873 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
22874 || ('j' <= (c) && (c) <= 'r') \
22875 || ('s' <= (c) && (c) <= 'z'))
22876 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22878 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22879 int main () { int i; for (i = 0; i < 256; i++)
22880 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
22884 if { (eval echo configure:22885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
22888 echo "configure: failed program was:" >&5
22889 cat conftest.$ac_ext >&5
22891 ac_cv_header_stdc=no
22899 echo "$ac_t""$ac_cv_header_stdc" 1>&6
22900 if test $ac_cv_header_stdc = yes; then
22901 cat >> confdefs.h <<\EOF
22902 #define STDC_HEADERS 1
22907 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
22908 echo "configure:22909: checking for mode_t" >&5
22909 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
22910 echo $ac_n "(cached) $ac_c" 1>&6
22912 cat > conftest.$ac_ext <<EOF
22913 #line 22914 "configure"
22914 #include "confdefs.h"
22915 #include <sys/types.h>
22917 #include <stdlib.h>
22918 #include <stddef.h>
22922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22923 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22925 eval "ac_cv_type_mode_t=yes"
22928 eval "ac_cv_type_mode_t=no"
22933 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
22934 echo "$ac_t""yes" 1>&6
22936 echo "$ac_t""no" 1>&6
22937 cat >> confdefs.h <<EOF
22943 echo $ac_n "checking for off_t""... $ac_c" 1>&6
22944 echo "configure:22945: checking for off_t" >&5
22945 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
22946 echo $ac_n "(cached) $ac_c" 1>&6
22948 cat > conftest.$ac_ext <<EOF
22949 #line 22950 "configure"
22950 #include "confdefs.h"
22951 #include <sys/types.h>
22953 #include <stdlib.h>
22954 #include <stddef.h>
22958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22959 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22961 eval "ac_cv_type_off_t=yes"
22964 eval "ac_cv_type_off_t=no"
22969 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
22970 echo "$ac_t""yes" 1>&6
22972 echo "$ac_t""no" 1>&6
22973 cat >> confdefs.h <<EOF
22979 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
22980 echo "configure:22981: checking for pid_t" >&5
22981 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
22982 echo $ac_n "(cached) $ac_c" 1>&6
22984 cat > conftest.$ac_ext <<EOF
22985 #line 22986 "configure"
22986 #include "confdefs.h"
22987 #include <sys/types.h>
22989 #include <stdlib.h>
22990 #include <stddef.h>
22994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22995 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22997 eval "ac_cv_type_pid_t=yes"
23000 eval "ac_cv_type_pid_t=no"
23005 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
23006 echo "$ac_t""yes" 1>&6
23008 echo "$ac_t""no" 1>&6
23009 cat >> confdefs.h <<EOF
23015 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
23016 echo "configure:23017: checking for ptrdiff_t" >&5
23017 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
23018 echo $ac_n "(cached) $ac_c" 1>&6
23020 cat > conftest.$ac_ext <<EOF
23021 #line 23022 "configure"
23022 #include "confdefs.h"
23023 #include <stddef.h>
23028 if { (eval echo configure:23029: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23030 am_cv_type_ptrdiff_t=yes
23032 echo "configure: failed program was:" >&5
23033 cat conftest.$ac_ext >&5
23035 am_cv_type_ptrdiff_t=no
23040 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
23041 if test $am_cv_type_ptrdiff_t = yes; then
23042 cat >> confdefs.h <<\EOF
23043 #define HAVE_PTRDIFF_T 1
23048 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
23049 echo "configure:23050: checking return type of signal handlers" >&5
23050 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
23051 echo $ac_n "(cached) $ac_c" 1>&6
23053 cat > conftest.$ac_ext <<EOF
23054 #line 23055 "configure"
23055 #include "confdefs.h"
23056 #include <sys/types.h>
23057 #include <signal.h>
23062 extern "C" void (*signal (int, void (*)(int)))(int);
23064 void (*signal ()) ();
23071 if { (eval echo configure:23072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23073 ac_cv_type_signal=void
23075 echo "configure: failed program was:" >&5
23076 cat conftest.$ac_ext >&5
23078 ac_cv_type_signal=int
23083 echo "$ac_t""$ac_cv_type_signal" 1>&6
23084 cat >> confdefs.h <<EOF
23085 #define RETSIGTYPE $ac_cv_type_signal
23089 echo $ac_n "checking for size_t""... $ac_c" 1>&6
23090 echo "configure:23091: checking for size_t" >&5
23091 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
23092 echo $ac_n "(cached) $ac_c" 1>&6
23094 cat > conftest.$ac_ext <<EOF
23095 #line 23096 "configure"
23096 #include "confdefs.h"
23097 #include <sys/types.h>
23099 #include <stdlib.h>
23100 #include <stddef.h>
23104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23105 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
23107 eval "ac_cv_type_size_t=yes"
23110 eval "ac_cv_type_size_t=no"
23115 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
23116 echo "$ac_t""yes" 1>&6
23118 echo "$ac_t""no" 1>&6
23119 cat >> confdefs.h <<EOF
23120 #define size_t unsigned
23126 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
23127 echo "configure:23128: checking for ssize_t" >&5
23128 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
23129 echo $ac_n "(cached) $ac_c" 1>&6
23131 cat > conftest.$ac_ext <<EOF
23132 #line 23133 "configure"
23133 #include "confdefs.h"
23134 #include <sys/types.h>
23136 #include <stdlib.h>
23137 #include <stddef.h>
23141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23142 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
23144 eval "ac_cv_type_ssize_t=yes"
23147 eval "ac_cv_type_ssize_t=no"
23152 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
23153 echo "$ac_t""yes" 1>&6
23155 echo "$ac_t""no" 1>&6
23156 cat >> confdefs.h <<EOF
23157 #define ssize_t signed int
23162 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
23163 echo "configure:23164: checking for caddr_t" >&5
23164 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
23165 echo $ac_n "(cached) $ac_c" 1>&6
23167 cat > conftest.$ac_ext <<EOF
23168 #line 23169 "configure"
23169 #include "confdefs.h"
23170 #include <sys/types.h>
23172 #include <stdlib.h>
23173 #include <stddef.h>
23177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23178 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
23180 eval "ac_cv_type_caddr_t=yes"
23183 eval "ac_cv_type_caddr_t=no"
23188 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
23189 echo "$ac_t""yes" 1>&6
23191 echo "$ac_t""no" 1>&6
23192 cat >> confdefs.h <<EOF
23193 #define caddr_t char *
23199 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
23200 echo "configure:23201: checking for socklen_t" >&5
23201 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
23202 echo $ac_n "(cached) $ac_c" 1>&6
23204 cat > conftest.$ac_ext <<EOF
23205 #line 23206 "configure"
23206 #include "confdefs.h"
23208 #ifdef HAVE_SYS_TYPES_H
23209 #include <sys/types.h>
23211 #ifdef HAVE_SYS_SOCKET_H
23212 #include <sys/socket.h>
23219 if { (eval echo configure:23220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23221 ol_cv_type_socklen_t=yes
23223 echo "configure: failed program was:" >&5
23224 cat conftest.$ac_ext >&5
23226 ol_cv_type_socklen_t=no
23231 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
23232 if test $ol_cv_type_socklen_t = no; then
23233 cat >> confdefs.h <<\EOF
23234 #define socklen_t int
23239 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
23240 echo "configure:23241: checking for member st_blksize in aggregate type struct stat" >&5
23241 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
23242 echo $ac_n "(cached) $ac_c" 1>&6
23244 cat > conftest.$ac_ext <<EOF
23245 #line 23246 "configure"
23246 #include "confdefs.h"
23247 #include <sys/types.h>
23248 #include <sys/stat.h>
23250 struct stat foo; foo.st_blksize;
23253 if { (eval echo configure:23254: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23255 ac_cv_c_struct_member_st_blksize=yes
23257 echo "configure: failed program was:" >&5
23258 cat conftest.$ac_ext >&5
23260 ac_cv_c_struct_member_st_blksize=no
23265 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
23266 st_blksize="$ac_cv_c_struct_member_st_blksize"
23267 if test $ac_cv_c_struct_member_st_blksize = yes; then
23268 cat >> confdefs.h <<\EOF
23269 #define HAVE_ST_BLKSIZE 1
23274 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
23275 echo "configure:23276: checking whether time.h and sys/time.h may both be included" >&5
23276 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
23277 echo $ac_n "(cached) $ac_c" 1>&6
23279 cat > conftest.$ac_ext <<EOF
23280 #line 23281 "configure"
23281 #include "confdefs.h"
23282 #include <sys/types.h>
23283 #include <sys/time.h>
23289 if { (eval echo configure:23290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23291 ac_cv_header_time=yes
23293 echo "configure: failed program was:" >&5
23294 cat conftest.$ac_ext >&5
23296 ac_cv_header_time=no
23301 echo "$ac_t""$ac_cv_header_time" 1>&6
23302 if test $ac_cv_header_time = yes; then
23303 cat >> confdefs.h <<\EOF
23304 #define TIME_WITH_SYS_TIME 1
23309 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
23310 echo "configure:23311: checking whether struct tm is in sys/time.h or time.h" >&5
23311 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
23312 echo $ac_n "(cached) $ac_c" 1>&6
23314 cat > conftest.$ac_ext <<EOF
23315 #line 23316 "configure"
23316 #include "confdefs.h"
23317 #include <sys/types.h>
23320 struct tm *tp; tp->tm_sec;
23323 if { (eval echo configure:23324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23325 ac_cv_struct_tm=time.h
23327 echo "configure: failed program was:" >&5
23328 cat conftest.$ac_ext >&5
23330 ac_cv_struct_tm=sys/time.h
23335 echo "$ac_t""$ac_cv_struct_tm" 1>&6
23336 if test $ac_cv_struct_tm = sys/time.h; then
23337 cat >> confdefs.h <<\EOF
23338 #define TM_IN_SYS_TIME 1
23343 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
23344 echo "configure:23345: checking for uid_t in sys/types.h" >&5
23345 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
23346 echo $ac_n "(cached) $ac_c" 1>&6
23348 cat > conftest.$ac_ext <<EOF
23349 #line 23350 "configure"
23350 #include "confdefs.h"
23351 #include <sys/types.h>
23353 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23354 egrep "uid_t" >/dev/null 2>&1; then
23356 ac_cv_type_uid_t=yes
23359 ac_cv_type_uid_t=no
23365 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
23366 if test $ac_cv_type_uid_t = no; then
23367 cat >> confdefs.h <<\EOF
23371 cat >> confdefs.h <<\EOF
23377 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
23378 echo "configure:23379: checking for sig_atomic_t" >&5
23379 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
23380 echo $ac_n "(cached) $ac_c" 1>&6
23382 cat > conftest.$ac_ext <<EOF
23383 #line 23384 "configure"
23384 #include "confdefs.h"
23385 #include <signal.h>
23387 sig_atomic_t atomic;
23390 if { (eval echo configure:23391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23392 ol_cv_type_sig_atomic_t=yes
23394 echo "configure: failed program was:" >&5
23395 cat conftest.$ac_ext >&5
23397 ol_cv_type_sig_atomic_t=no
23402 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
23403 if test $ol_cv_type_sig_atomic_t = no; then
23404 cat >> confdefs.h <<\EOF
23405 #define sig_atomic_t int
23412 # test for pw_gecos in struct passwd
23413 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
23414 echo "configure:23415: checking struct passwd for pw_gecos" >&5
23415 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
23416 echo $ac_n "(cached) $ac_c" 1>&6
23419 cat > conftest.$ac_ext <<EOF
23420 #line 23421 "configure"
23421 #include "confdefs.h"
23426 pwd.pw_gecos = pwd.pw_name;
23430 if { (eval echo configure:23431: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23432 ol_cv_struct_passwd_pw_gecos=yes
23434 echo "configure: failed program was:" >&5
23435 cat conftest.$ac_ext >&5
23437 ol_cv_struct_passwd_pw_gecos=no
23442 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
23443 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
23444 cat >> confdefs.h <<\EOF
23445 #define HAVE_PW_GECOS 1
23450 # test for pw_passwd in struct passwd
23451 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
23452 echo "configure:23453: checking struct passwd for pw_passwd" >&5
23453 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
23454 echo $ac_n "(cached) $ac_c" 1>&6
23457 cat > conftest.$ac_ext <<EOF
23458 #line 23459 "configure"
23459 #include "confdefs.h"
23464 pwd.pw_passwd = pwd.pw_name;
23468 if { (eval echo configure:23469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23470 ol_cv_struct_passwd_pw_passwd=yes
23472 echo "configure: failed program was:" >&5
23473 cat conftest.$ac_ext >&5
23475 ol_cv_struct_passwd_pw_passwd=no
23480 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
23481 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
23482 cat >> confdefs.h <<\EOF
23483 #define HAVE_PW_PASSWD 1
23489 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
23490 echo "configure:23491: checking if toupper() requires islower()" >&5
23491 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
23492 echo $ac_n "(cached) $ac_c" 1>&6
23495 if test "$cross_compiling" = yes; then
23496 ol_cv_c_upper_lower=safe
23498 cat > conftest.$ac_ext <<EOF
23499 #line 23500 "configure"
23500 #include "confdefs.h"
23505 if ('C' == toupper('C'))
23511 if { (eval echo configure:23512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
23513 ol_cv_c_upper_lower=no
23515 echo "configure: failed program was:" >&5
23516 cat conftest.$ac_ext >&5
23518 ol_cv_c_upper_lower=yes
23525 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
23526 if test $ol_cv_c_upper_lower != no ; then
23527 cat >> confdefs.h <<\EOF
23528 #define C_UPPER_LOWER 1
23533 echo $ac_n "checking for working const""... $ac_c" 1>&6
23534 echo "configure:23535: checking for working const" >&5
23535 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
23536 echo $ac_n "(cached) $ac_c" 1>&6
23538 cat > conftest.$ac_ext <<EOF
23539 #line 23540 "configure"
23540 #include "confdefs.h"
23544 /* Ultrix mips cc rejects this. */
23545 typedef int charset[2]; const charset x;
23546 /* SunOS 4.1.1 cc rejects this. */
23547 char const *const *ccp;
23549 /* NEC SVR4.0.2 mips cc rejects this. */
23550 struct point {int x, y;};
23551 static struct point const zero = {0,0};
23552 /* AIX XL C 1.02.0.0 rejects this.
23553 It does not let you subtract one const X* pointer from another in an arm
23554 of an if-expression whose if-part is not a constant expression */
23555 const char *g = "string";
23556 ccp = &g + (g ? g-g : 0);
23557 /* HPUX 7.0 cc rejects these. */
23560 ccp = (char const *const *) p;
23561 { /* SCO 3.2v4 cc rejects this. */
23563 char const *s = 0 ? (char *) 0 : (char const *) 0;
23567 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23568 int x[] = {25, 17};
23569 const int *foo = &x[0];
23572 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23573 typedef const int *iptr;
23577 { /* AIX XL C 1.02.0.0 rejects this saying
23578 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23579 struct s { int j; const int *ap[3]; };
23580 struct s *b; b->j = 5;
23582 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23583 const int foo = 10;
23588 if { (eval echo configure:23589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23592 echo "configure: failed program was:" >&5
23593 cat conftest.$ac_ext >&5
23600 echo "$ac_t""$ac_cv_c_const" 1>&6
23601 if test $ac_cv_c_const = no; then
23602 cat >> confdefs.h <<\EOF
23608 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
23609 echo "configure:23610: checking if compiler understands volatile" >&5
23610 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
23611 echo $ac_n "(cached) $ac_c" 1>&6
23613 cat > conftest.$ac_ext <<EOF
23614 #line 23615 "configure"
23615 #include "confdefs.h"
23618 volatile int a; int * volatile b = x ? &y : &z;
23619 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
23623 if { (eval echo configure:23624: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23625 ol_cv_c_volatile=yes
23627 echo "configure: failed program was:" >&5
23628 cat conftest.$ac_ext >&5
23630 ol_cv_c_volatile=no
23635 echo "$ac_t""$ol_cv_c_volatile" 1>&6
23636 if test $ol_cv_c_volatile = yes; then
23639 cat >> confdefs.h <<\EOF
23646 if test $cross_compiling = yes ; then
23647 echo "configure: warning: Crossing compiling... all bets are off!" 1>&2
23648 cat >> confdefs.h <<\EOF
23649 #define CROSS_COMPILING 1
23653 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
23654 echo "configure:23655: checking whether byte ordering is bigendian" >&5
23655 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
23656 echo $ac_n "(cached) $ac_c" 1>&6
23658 ac_cv_c_bigendian=unknown
23659 # See if sys/param.h defines the BYTE_ORDER macro.
23660 cat > conftest.$ac_ext <<EOF
23661 #line 23662 "configure"
23662 #include "confdefs.h"
23663 #include <sys/types.h>
23664 #include <sys/param.h>
23667 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
23668 bogus endian macros
23672 if { (eval echo configure:23673: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23674 # It does; now see whether it defined to BIG_ENDIAN or not.
23675 cat > conftest.$ac_ext <<EOF
23676 #line 23677 "configure"
23677 #include "confdefs.h"
23678 #include <sys/types.h>
23679 #include <sys/param.h>
23682 #if BYTE_ORDER != BIG_ENDIAN
23687 if { (eval echo configure:23688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23689 ac_cv_c_bigendian=yes
23691 echo "configure: failed program was:" >&5
23692 cat conftest.$ac_ext >&5
23694 ac_cv_c_bigendian=no
23698 echo "configure: failed program was:" >&5
23699 cat conftest.$ac_ext >&5
23702 if test $ac_cv_c_bigendian = unknown; then
23703 if test "$cross_compiling" = yes; then
23704 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
23706 cat > conftest.$ac_ext <<EOF
23707 #line 23708 "configure"
23708 #include "confdefs.h"
23710 /* Are we little or big endian? From Harbison&Steele. */
23714 char c[sizeof (long)];
23717 exit (u.c[sizeof (long) - 1] == 1);
23720 if { (eval echo configure:23721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
23722 ac_cv_c_bigendian=no
23724 echo "configure: failed program was:" >&5
23725 cat conftest.$ac_ext >&5
23727 ac_cv_c_bigendian=yes
23735 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
23736 if test $ac_cv_c_bigendian = yes; then
23737 cat >> confdefs.h <<\EOF
23738 #define WORDS_BIGENDIAN 1
23745 echo $ac_n "checking size of short""... $ac_c" 1>&6
23746 echo "configure:23747: checking size of short" >&5
23747 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
23748 echo $ac_n "(cached) $ac_c" 1>&6
23750 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23751 cat > conftest.$ac_ext <<EOF
23752 #line 23753 "configure"
23753 #include "confdefs.h"
23754 #include "confdefs.h"
23755 #include <stdlib.h>
23756 #include <sys/types.h>
23760 switch (0) case 0: case (sizeof (short) == $ac_size):;
23763 if { (eval echo configure:23764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23765 ac_cv_sizeof_short=$ac_size
23767 echo "configure: failed program was:" >&5
23768 cat conftest.$ac_ext >&5
23771 if test x$ac_cv_sizeof_short != x ; then break; fi
23776 if test x$ac_cv_sizeof_short = x ; then
23777 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
23779 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
23780 cat >> confdefs.h <<EOF
23781 #define SIZEOF_SHORT $ac_cv_sizeof_short
23785 echo $ac_n "checking size of int""... $ac_c" 1>&6
23786 echo "configure:23787: checking size of int" >&5
23787 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
23788 echo $ac_n "(cached) $ac_c" 1>&6
23790 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23791 cat > conftest.$ac_ext <<EOF
23792 #line 23793 "configure"
23793 #include "confdefs.h"
23794 #include "confdefs.h"
23795 #include <stdlib.h>
23796 #include <sys/types.h>
23800 switch (0) case 0: case (sizeof (int) == $ac_size):;
23803 if { (eval echo configure:23804: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23805 ac_cv_sizeof_int=$ac_size
23807 echo "configure: failed program was:" >&5
23808 cat conftest.$ac_ext >&5
23811 if test x$ac_cv_sizeof_int != x ; then break; fi
23816 if test x$ac_cv_sizeof_int = x ; then
23817 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
23819 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
23820 cat >> confdefs.h <<EOF
23821 #define SIZEOF_INT $ac_cv_sizeof_int
23825 echo $ac_n "checking size of long""... $ac_c" 1>&6
23826 echo "configure:23827: checking size of long" >&5
23827 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
23828 echo $ac_n "(cached) $ac_c" 1>&6
23830 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23831 cat > conftest.$ac_ext <<EOF
23832 #line 23833 "configure"
23833 #include "confdefs.h"
23834 #include "confdefs.h"
23835 #include <stdlib.h>
23836 #include <sys/types.h>
23840 switch (0) case 0: case (sizeof (long) == $ac_size):;
23843 if { (eval echo configure:23844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23845 ac_cv_sizeof_long=$ac_size
23847 echo "configure: failed program was:" >&5
23848 cat conftest.$ac_ext >&5
23851 if test x$ac_cv_sizeof_long != x ; then break; fi
23856 if test x$ac_cv_sizeof_long = x ; then
23857 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
23859 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
23860 cat >> confdefs.h <<EOF
23861 #define SIZEOF_LONG $ac_cv_sizeof_long
23865 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
23866 echo "configure:23867: checking size of wchar_t" >&5
23867 if eval "test \"\${ac_cv_sizeof_wchar_t+set}\" = set"; then
23868 echo $ac_n "(cached) $ac_c" 1>&6
23870 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23871 cat > conftest.$ac_ext <<EOF
23872 #line 23873 "configure"
23873 #include "confdefs.h"
23874 #include "confdefs.h"
23875 #include <stdlib.h>
23876 #include <sys/types.h>
23880 switch (0) case 0: case (sizeof (wchar_t) == $ac_size):;
23883 if { (eval echo configure:23884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23885 ac_cv_sizeof_wchar_t=$ac_size
23887 echo "configure: failed program was:" >&5
23888 cat conftest.$ac_ext >&5
23891 if test x$ac_cv_sizeof_wchar_t != x ; then break; fi
23896 if test x$ac_cv_sizeof_wchar_t = x ; then
23897 { echo "configure: error: cannot determine a size for wchar_t" 1>&2; exit 1; }
23899 echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
23900 cat >> confdefs.h <<EOF
23901 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23906 if test "$ac_cv_sizeof_int" -lt 4 ; then
23907 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
23909 cat >> confdefs.h <<\EOF
23910 #define LBER_INT_T long
23914 cat >> confdefs.h <<\EOF
23915 #define LBER_INT_T int
23920 cat >> confdefs.h <<\EOF
23921 #define LBER_LEN_T long
23924 cat >> confdefs.h <<\EOF
23925 #define LBER_SOCKET_T int
23928 cat >> confdefs.h <<\EOF
23929 #define LBER_TAG_T long
23933 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
23934 echo "configure:23935: checking for 8-bit clean memcmp" >&5
23935 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
23936 echo $ac_n "(cached) $ac_c" 1>&6
23938 if test "$cross_compiling" = yes; then
23939 ac_cv_func_memcmp_clean=no
23941 cat > conftest.$ac_ext <<EOF
23942 #line 23943 "configure"
23943 #include "confdefs.h"
23947 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
23948 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
23952 if { (eval echo configure:23953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
23954 ac_cv_func_memcmp_clean=yes
23956 echo "configure: failed program was:" >&5
23957 cat conftest.$ac_ext >&5
23959 ac_cv_func_memcmp_clean=no
23966 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
23967 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
23970 if test $ac_cv_func_memcmp_clean = no ; then
23971 cat >> confdefs.h <<\EOF
23972 #define NEED_MEMCMP_REPLACEMENT 1
23977 echo $ac_n "checking for strftime""... $ac_c" 1>&6
23978 echo "configure:23979: checking for strftime" >&5
23979 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
23980 echo $ac_n "(cached) $ac_c" 1>&6
23982 cat > conftest.$ac_ext <<EOF
23983 #line 23984 "configure"
23984 #include "confdefs.h"
23985 /* System header to define __stub macros and hopefully few prototypes,
23986 which can conflict with char strftime(); below. */
23987 #include <assert.h>
23988 /* Override any gcc2 internal prototype to avoid an error. */
23989 /* We use char because int might match the return type of a gcc2
23990 builtin and then its argument prototype would still apply. */
23996 /* The GNU C library defines this for functions which it implements
23997 to always fail with ENOSYS. Some functions are actually named
23998 something starting with __ and the normal name is an alias. */
23999 #if defined (__stub_strftime) || defined (__stub___strftime)
24007 if { (eval echo configure:24008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24009 eval "ac_cv_func_strftime=yes"
24011 echo "configure: failed program was:" >&5
24012 cat conftest.$ac_ext >&5
24014 eval "ac_cv_func_strftime=no"
24019 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
24020 echo "$ac_t""yes" 1>&6
24021 cat >> confdefs.h <<\EOF
24022 #define HAVE_STRFTIME 1
24026 echo "$ac_t""no" 1>&6
24027 # strftime is in -lintl on SCO UNIX.
24028 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
24029 echo "configure:24030: checking for strftime in -lintl" >&5
24030 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
24031 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
24032 echo $ac_n "(cached) $ac_c" 1>&6
24034 ac_save_LIBS="$LIBS"
24035 LIBS="-lintl $LIBS"
24036 cat > conftest.$ac_ext <<EOF
24037 #line 24038 "configure"
24038 #include "confdefs.h"
24039 /* Override any gcc2 internal prototype to avoid an error. */
24040 /* We use char because int might match the return type of a gcc2
24041 builtin and then its argument prototype would still apply. */
24048 if { (eval echo configure:24049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24050 eval "ac_cv_lib_$ac_lib_var=yes"
24052 echo "configure: failed program was:" >&5
24053 cat conftest.$ac_ext >&5
24055 eval "ac_cv_lib_$ac_lib_var=no"
24058 LIBS="$ac_save_LIBS"
24061 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
24062 echo "$ac_t""yes" 1>&6
24063 cat >> confdefs.h <<\EOF
24064 #define HAVE_STRFTIME 1
24067 LIBS="-lintl $LIBS"
24069 echo "$ac_t""no" 1>&6
24075 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
24076 echo "configure:24077: checking for inet_aton()" >&5
24077 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
24078 echo $ac_n "(cached) $ac_c" 1>&6
24080 cat > conftest.$ac_ext <<EOF
24081 #line 24082 "configure"
24082 #include "confdefs.h"
24084 #ifdef HAVE_SYS_TYPES_H
24085 # include <sys/types.h>
24087 #ifdef HAVE_SYS_SOCKET_H
24088 # include <sys/socket.h>
24089 # ifdef HAVE_SYS_SELECT_H
24090 # include <sys/select.h>
24092 # include <netinet/in.h>
24093 # ifdef HAVE_ARPA_INET_H
24094 # include <arpa/inet.h>
24100 int rc = inet_aton( "255.255.255.255", &in );
24103 if { (eval echo configure:24104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24105 ol_cv_func_inet_aton=yes
24107 echo "configure: failed program was:" >&5
24108 cat conftest.$ac_ext >&5
24110 ol_cv_func_inet_aton=no
24115 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
24116 if test $ol_cv_func_inet_aton != no; then
24117 cat >> confdefs.h <<\EOF
24118 #define HAVE_INET_ATON 1
24124 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
24125 echo "configure:24126: checking for _spawnlp" >&5
24126 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
24127 echo $ac_n "(cached) $ac_c" 1>&6
24129 cat > conftest.$ac_ext <<EOF
24130 #line 24131 "configure"
24131 #include "confdefs.h"
24132 /* System header to define __stub macros and hopefully few prototypes,
24133 which can conflict with char _spawnlp(); below. */
24134 #include <assert.h>
24135 /* Override any gcc2 internal prototype to avoid an error. */
24136 /* We use char because int might match the return type of a gcc2
24137 builtin and then its argument prototype would still apply. */
24143 /* The GNU C library defines this for functions which it implements
24144 to always fail with ENOSYS. Some functions are actually named
24145 something starting with __ and the normal name is an alias. */
24146 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
24154 if { (eval echo configure:24155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24156 eval "ac_cv_func__spawnlp=yes"
24158 echo "configure: failed program was:" >&5
24159 cat conftest.$ac_ext >&5
24161 eval "ac_cv_func__spawnlp=no"
24166 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
24167 echo "$ac_t""yes" 1>&6
24168 cat >> confdefs.h <<\EOF
24169 #define HAVE_SPAWNLP 1
24173 echo "$ac_t""no" 1>&6
24177 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
24178 echo "configure:24179: checking for _snprintf" >&5
24179 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
24180 echo $ac_n "(cached) $ac_c" 1>&6
24182 cat > conftest.$ac_ext <<EOF
24183 #line 24184 "configure"
24184 #include "confdefs.h"
24185 /* System header to define __stub macros and hopefully few prototypes,
24186 which can conflict with char _snprintf(); below. */
24187 #include <assert.h>
24188 /* Override any gcc2 internal prototype to avoid an error. */
24189 /* We use char because int might match the return type of a gcc2
24190 builtin and then its argument prototype would still apply. */
24196 /* The GNU C library defines this for functions which it implements
24197 to always fail with ENOSYS. Some functions are actually named
24198 something starting with __ and the normal name is an alias. */
24199 #if defined (__stub__snprintf) || defined (__stub____snprintf)
24207 if { (eval echo configure:24208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24209 eval "ac_cv_func__snprintf=yes"
24211 echo "configure: failed program was:" >&5
24212 cat conftest.$ac_ext >&5
24214 eval "ac_cv_func__snprintf=no"
24219 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
24220 echo "$ac_t""yes" 1>&6
24221 ac_cv_func_snprintf=yes
24222 cat >> confdefs.h <<\EOF
24223 #define snprintf _snprintf
24228 echo "$ac_t""no" 1>&6
24232 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
24233 echo "configure:24234: checking for _vsnprintf" >&5
24234 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
24235 echo $ac_n "(cached) $ac_c" 1>&6
24237 cat > conftest.$ac_ext <<EOF
24238 #line 24239 "configure"
24239 #include "confdefs.h"
24240 /* System header to define __stub macros and hopefully few prototypes,
24241 which can conflict with char _vsnprintf(); below. */
24242 #include <assert.h>
24243 /* Override any gcc2 internal prototype to avoid an error. */
24244 /* We use char because int might match the return type of a gcc2
24245 builtin and then its argument prototype would still apply. */
24251 /* The GNU C library defines this for functions which it implements
24252 to always fail with ENOSYS. Some functions are actually named
24253 something starting with __ and the normal name is an alias. */
24254 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
24262 if { (eval echo configure:24263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24264 eval "ac_cv_func__vsnprintf=yes"
24266 echo "configure: failed program was:" >&5
24267 cat conftest.$ac_ext >&5
24269 eval "ac_cv_func__vsnprintf=no"
24274 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
24275 echo "$ac_t""yes" 1>&6
24276 ac_cv_func_vsnprintf=yes
24277 cat >> confdefs.h <<\EOF
24278 #define vsnprintf _vsnprintf
24283 echo "$ac_t""no" 1>&6
24287 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
24288 echo "configure:24289: checking for vprintf" >&5
24289 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
24290 echo $ac_n "(cached) $ac_c" 1>&6
24292 cat > conftest.$ac_ext <<EOF
24293 #line 24294 "configure"
24294 #include "confdefs.h"
24295 /* System header to define __stub macros and hopefully few prototypes,
24296 which can conflict with char vprintf(); below. */
24297 #include <assert.h>
24298 /* Override any gcc2 internal prototype to avoid an error. */
24299 /* We use char because int might match the return type of a gcc2
24300 builtin and then its argument prototype would still apply. */
24306 /* The GNU C library defines this for functions which it implements
24307 to always fail with ENOSYS. Some functions are actually named
24308 something starting with __ and the normal name is an alias. */
24309 #if defined (__stub_vprintf) || defined (__stub___vprintf)
24317 if { (eval echo configure:24318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24319 eval "ac_cv_func_vprintf=yes"
24321 echo "configure: failed program was:" >&5
24322 cat conftest.$ac_ext >&5
24324 eval "ac_cv_func_vprintf=no"
24329 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
24330 echo "$ac_t""yes" 1>&6
24331 cat >> confdefs.h <<\EOF
24332 #define HAVE_VPRINTF 1
24336 echo "$ac_t""no" 1>&6
24339 if test "$ac_cv_func_vprintf" != yes; then
24340 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
24341 echo "configure:24342: checking for _doprnt" >&5
24342 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
24343 echo $ac_n "(cached) $ac_c" 1>&6
24345 cat > conftest.$ac_ext <<EOF
24346 #line 24347 "configure"
24347 #include "confdefs.h"
24348 /* System header to define __stub macros and hopefully few prototypes,
24349 which can conflict with char _doprnt(); below. */
24350 #include <assert.h>
24351 /* Override any gcc2 internal prototype to avoid an error. */
24352 /* We use char because int might match the return type of a gcc2
24353 builtin and then its argument prototype would still apply. */
24359 /* The GNU C library defines this for functions which it implements
24360 to always fail with ENOSYS. Some functions are actually named
24361 something starting with __ and the normal name is an alias. */
24362 #if defined (__stub__doprnt) || defined (__stub____doprnt)
24370 if { (eval echo configure:24371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24372 eval "ac_cv_func__doprnt=yes"
24374 echo "configure: failed program was:" >&5
24375 cat conftest.$ac_ext >&5
24377 eval "ac_cv_func__doprnt=no"
24382 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
24383 echo "$ac_t""yes" 1>&6
24384 cat >> confdefs.h <<\EOF
24385 #define HAVE_DOPRNT 1
24389 echo "$ac_t""no" 1>&6
24395 if test $ac_cv_func_vprintf = yes ; then
24396 for ac_func in snprintf vsnprintf
24398 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24399 echo "configure:24400: checking for $ac_func" >&5
24400 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
24401 echo $ac_n "(cached) $ac_c" 1>&6
24403 cat > conftest.$ac_ext <<EOF
24404 #line 24405 "configure"
24405 #include "confdefs.h"
24406 /* System header to define __stub macros and hopefully few prototypes,
24407 which can conflict with char $ac_func(); below. */
24408 #include <assert.h>
24409 /* Override any gcc2 internal prototype to avoid an error. */
24410 /* We use char because int might match the return type of a gcc2
24411 builtin and then its argument prototype would still apply. */
24417 /* The GNU C library defines this for functions which it implements
24418 to always fail with ENOSYS. Some functions are actually named
24419 something starting with __ and the normal name is an alias. */
24420 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24428 if { (eval echo configure:24429: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24430 eval "ac_cv_func_$ac_func=yes"
24432 echo "configure: failed program was:" >&5
24433 cat conftest.$ac_ext >&5
24435 eval "ac_cv_func_$ac_func=no"
24440 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
24441 echo "$ac_t""yes" 1>&6
24442 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24443 cat >> confdefs.h <<EOF
24444 #define $ac_tr_func 1
24448 echo "$ac_t""no" 1>&6
24510 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24511 echo "configure:24512: checking for $ac_func" >&5
24512 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
24513 echo $ac_n "(cached) $ac_c" 1>&6
24515 cat > conftest.$ac_ext <<EOF
24516 #line 24517 "configure"
24517 #include "confdefs.h"
24518 /* System header to define __stub macros and hopefully few prototypes,
24519 which can conflict with char $ac_func(); below. */
24520 #include <assert.h>
24521 /* Override any gcc2 internal prototype to avoid an error. */
24522 /* We use char because int might match the return type of a gcc2
24523 builtin and then its argument prototype would still apply. */
24529 /* The GNU C library defines this for functions which it implements
24530 to always fail with ENOSYS. Some functions are actually named
24531 something starting with __ and the normal name is an alias. */
24532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24540 if { (eval echo configure:24541: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24542 eval "ac_cv_func_$ac_func=yes"
24544 echo "configure: failed program was:" >&5
24545 cat conftest.$ac_ext >&5
24547 eval "ac_cv_func_$ac_func=no"
24552 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
24553 echo "$ac_t""yes" 1>&6
24554 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24555 cat >> confdefs.h <<EOF
24556 #define $ac_tr_func 1
24560 echo "$ac_t""no" 1>&6
24565 for ac_func in getopt getpeereid
24567 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24568 echo "configure:24569: checking for $ac_func" >&5
24569 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
24570 echo $ac_n "(cached) $ac_c" 1>&6
24572 cat > conftest.$ac_ext <<EOF
24573 #line 24574 "configure"
24574 #include "confdefs.h"
24575 /* System header to define __stub macros and hopefully few prototypes,
24576 which can conflict with char $ac_func(); below. */
24577 #include <assert.h>
24578 /* Override any gcc2 internal prototype to avoid an error. */
24579 /* We use char because int might match the return type of a gcc2
24580 builtin and then its argument prototype would still apply. */
24586 /* The GNU C library defines this for functions which it implements
24587 to always fail with ENOSYS. Some functions are actually named
24588 something starting with __ and the normal name is an alias. */
24589 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24597 if { (eval echo configure:24598: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24599 eval "ac_cv_func_$ac_func=yes"
24601 echo "configure: failed program was:" >&5
24602 cat conftest.$ac_ext >&5
24604 eval "ac_cv_func_$ac_func=no"
24609 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
24610 echo "$ac_t""yes" 1>&6
24611 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24612 cat >> confdefs.h <<EOF
24613 #define $ac_tr_func 1
24617 echo "$ac_t""no" 1>&6
24618 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
24624 if test "$ac_cv_func_getopt" != yes; then
24625 LIBSRCS="$LIBSRCS getopt.c"
24627 if test "$ac_cv_func_getpeereid" != yes; then
24628 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
24629 echo "configure:24630: checking for msg_accrights in msghdr" >&5
24630 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
24631 echo $ac_n "(cached) $ac_c" 1>&6
24633 cat > conftest.$ac_ext <<EOF
24634 #line 24635 "configure"
24635 #include "confdefs.h"
24636 #include <sys/socket.h>
24638 struct msghdr m; m.msg_accrightslen=0
24641 if { (eval echo configure:24642: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
24643 ol_cv_msghdr_msg_accrights=yes
24645 echo "configure: failed program was:" >&5
24646 cat conftest.$ac_ext >&5
24648 ol_cv_msghdr_msg_accrights=no
24654 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
24655 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
24656 cat >> confdefs.h <<\EOF
24657 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
24662 if test "$ac_cv_func_getpeereid" != yes; then
24663 echo $ac_n "checking for msg_control in msghdr""... $ac_c" 1>&6
24664 echo "configure:24665: checking for msg_control in msghdr" >&5
24665 if eval "test \"\${ol_cv_msghdr_msg_control+set}\" = set"; then
24666 echo $ac_n "(cached) $ac_c" 1>&6
24668 cat > conftest.$ac_ext <<EOF
24669 #line 24670 "configure"
24670 #include "confdefs.h"
24671 #include <sys/socket.h>
24673 struct msghdr m; m.msg_control=(struct cmsghdr *)0
24676 if { (eval echo configure:24677: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
24678 ol_cv_msghdr_msg_control=yes
24680 echo "configure: failed program was:" >&5
24681 cat conftest.$ac_ext >&5
24683 ol_cv_msghdr_msg_control=no
24689 echo "$ac_t""$ol_cv_msghdr_msg_control" 1>&6
24690 if test $ol_cv_msghdr_msg_control = "yes" ; then
24691 cat >> confdefs.h <<\EOF
24692 #define HAVE_MSGHDR_MSG_CONTROL 1
24698 LIBSRCS="$LIBSRCS getpeereid.c"
24700 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
24701 if test "$ac_cv_func_snprintf" != yes; then
24702 cat >> confdefs.h <<\EOF
24703 #define snprintf ber_pvt_snprintf
24707 if test "$ac_cv_func_vsnprintf" != yes; then
24708 cat >> confdefs.h <<\EOF
24709 #define vsnprintf ber_pvt_vsnprintf
24716 if test "$ol_enable_slapi" != no ; then
24717 for ac_hdr in ltdl.h
24719 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
24720 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
24721 echo "configure:24722: checking for $ac_hdr" >&5
24722 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
24723 echo $ac_n "(cached) $ac_c" 1>&6
24725 cat > conftest.$ac_ext <<EOF
24726 #line 24727 "configure"
24727 #include "confdefs.h"
24730 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24731 { (eval echo configure:24732: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
24732 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
24733 if test -z "$ac_err"; then
24735 eval "ac_cv_header_$ac_safe=yes"
24738 echo "configure: failed program was:" >&5
24739 cat conftest.$ac_ext >&5
24741 eval "ac_cv_header_$ac_safe=no"
24745 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
24746 echo "$ac_t""yes" 1>&6
24747 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
24748 cat >> confdefs.h <<EOF
24749 #define $ac_tr_hdr 1
24753 echo "$ac_t""no" 1>&6
24758 if test $ac_cv_header_ltdl_h != yes ; then
24759 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
24761 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
24762 echo "configure:24763: checking for lt_dlinit in -lltdl" >&5
24763 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
24764 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
24765 echo $ac_n "(cached) $ac_c" 1>&6
24767 ac_save_LIBS="$LIBS"
24768 LIBS="-lltdl $LIBS"
24769 cat > conftest.$ac_ext <<EOF
24770 #line 24771 "configure"
24771 #include "confdefs.h"
24772 /* Override any gcc2 internal prototype to avoid an error. */
24773 /* We use char because int might match the return type of a gcc2
24774 builtin and then its argument prototype would still apply. */
24781 if { (eval echo configure:24782: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24783 eval "ac_cv_lib_$ac_lib_var=yes"
24785 echo "configure: failed program was:" >&5
24786 cat conftest.$ac_ext >&5
24788 eval "ac_cv_lib_$ac_lib_var=no"
24791 LIBS="$ac_save_LIBS"
24794 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
24795 echo "$ac_t""yes" 1>&6
24798 LIBSLAPI=libslapi.a
24799 LIBSLAPITOOLS=../libslapi.a
24800 cat >> confdefs.h <<\EOF
24801 #define HAVE_LIBLTDL 1
24806 echo "$ac_t""no" 1>&6
24807 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
24811 cat >> confdefs.h <<\EOF
24812 #define LDAP_SLAPI 1
24817 if test "$ol_enable_debug" != no ; then
24818 cat >> confdefs.h <<\EOF
24819 #define LDAP_DEBUG 1
24823 if test "$ol_enable_syslog" = yes ; then
24824 cat >> confdefs.h <<\EOF
24825 #define LDAP_SYSLOG 1
24829 if test "$ol_link_kbind" != no ; then
24830 cat >> confdefs.h <<\EOF
24831 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
24835 if test "$ol_enable_proctitle" != no ; then
24836 cat >> confdefs.h <<\EOF
24837 #define LDAP_PROCTITLE 1
24841 if test "$ol_enable_referrals" != no ; then
24842 cat >> confdefs.h <<\EOF
24843 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
24847 if test "$ol_enable_local" != no; then
24848 cat >> confdefs.h <<\EOF
24849 #define LDAP_PF_LOCAL 1
24853 if test "$ol_link_ipv6" != no; then
24854 cat >> confdefs.h <<\EOF
24855 #define LDAP_PF_INET6 1
24859 if test "$ol_enable_cleartext" != no ; then
24860 cat >> confdefs.h <<\EOF
24861 #define SLAPD_CLEARTEXT 1
24865 if test "$ol_enable_crypt" != no ; then
24866 cat >> confdefs.h <<\EOF
24867 #define SLAPD_CRYPT 1
24871 if test "$ol_link_spasswd" != no ; then
24872 cat >> confdefs.h <<\EOF
24873 #define SLAPD_SPASSWD 1
24877 if test "$ol_enable_multimaster" != no ; then
24878 cat >> confdefs.h <<\EOF
24879 #define SLAPD_MULTIMASTER 1
24883 if test "$ol_enable_rlookups" != no ; then
24884 cat >> confdefs.h <<\EOF
24885 #define SLAPD_RLOOKUPS 1
24889 if test "$ol_enable_aci" != no ; then
24890 cat >> confdefs.h <<\EOF
24891 #define SLAPD_ACI_ENABLED 1
24896 if test "$ol_link_modules" != no ; then
24897 cat >> confdefs.h <<\EOF
24898 #define SLAPD_MODULES 1
24902 SLAPD_MODULES_LDFLAGS="-dlopen self"
24905 cat >> confdefs.h <<\EOF
24906 #define SLAPD_MOD_STATIC 1
24909 cat >> confdefs.h <<\EOF
24910 #define SLAPD_MOD_DYNAMIC 2
24914 if test "$ol_enable_bdb" != no ; then
24916 BUILD_BDB=$ol_enable_bdb
24917 if test "$ol_enable_bdb" = mod ; then
24918 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
24919 MFLAG=SLAPD_MOD_DYNAMIC
24921 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
24922 MFLAG=SLAPD_MOD_STATIC
24924 cat >> confdefs.h <<EOF
24925 #define SLAPD_BDB $MFLAG
24930 if test "$ol_enable_dnssrv" != no ; then
24932 BUILD_DNSSRV=$ol_enable_dnssrv
24933 if test "$ol_enable_dnssrv" = mod ; then
24934 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
24935 MFLAG=SLAPD_MOD_DYNAMIC
24937 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
24938 MFLAG=SLAPD_MOD_STATIC
24940 cat >> confdefs.h <<EOF
24941 #define SLAPD_DNSSRV $MFLAG
24946 if test "$ol_enable_hdb" != no ; then
24948 BUILD_HDB=$ol_enable_hdb
24949 if test "$ol_enable_hdb" = mod ; then
24950 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
24951 MFLAG=SLAPD_MOD_DYNAMIC
24953 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
24954 MFLAG=SLAPD_MOD_STATIC
24956 cat >> confdefs.h <<EOF
24957 #define SLAPD_HDB $MFLAG
24962 if test "$ol_enable_ldap" != no ; then
24964 BUILD_LDAP=$ol_enable_ldap
24965 if test "$ol_enable_ldap" = mod ; then
24966 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
24967 MFLAG=SLAPD_MOD_DYNAMIC
24969 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
24970 MFLAG=SLAPD_MOD_STATIC
24972 cat >> confdefs.h <<EOF
24973 #define SLAPD_LDAP $MFLAG
24978 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
24980 BUILD_LDBM=$ol_enable_ldbm
24981 if test "$ol_enable_ldbm" = mod ; then
24982 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
24983 MFLAG=SLAPD_MOD_DYNAMIC
24985 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
24986 MFLAG=SLAPD_MOD_STATIC
24988 cat >> confdefs.h <<EOF
24989 #define SLAPD_LDBM $MFLAG
24994 if test "$ol_enable_meta" != no ; then
24996 BUILD_META=$ol_enable_meta
24998 if test "$ol_enable_meta" = mod ; then
24999 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
25000 MFLAG=SLAPD_MOD_DYNAMIC
25002 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
25003 MFLAG=SLAPD_MOD_STATIC
25005 cat >> confdefs.h <<EOF
25006 #define SLAPD_META $MFLAG
25011 if test "$ol_enable_monitor" != no ; then
25013 BUILD_MONITOR=$ol_enable_monitor
25014 if test "$ol_enable_monitor" = mod ; then
25015 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
25016 MFLAG=SLAPD_MOD_DYNAMIC
25018 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
25019 MFLAG=SLAPD_MOD_STATIC
25021 cat >> confdefs.h <<EOF
25022 #define SLAPD_MONITOR $MFLAG
25027 if test "$ol_enable_null" != no ; then
25029 BUILD_NULL=$ol_enable_null
25030 if test "$ol_enable_null" = mod ; then
25031 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
25032 MFLAG=SLAPD_MOD_DYNAMIC
25034 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
25035 MFLAG=SLAPD_MOD_STATIC
25037 cat >> confdefs.h <<EOF
25038 #define SLAPD_NULL $MFLAG
25043 if test "$ol_enable_passwd" != no ; then
25045 BUILD_PASSWD=$ol_enable_passwd
25046 if test "$ol_enable_passwd" = mod ; then
25047 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
25048 MFLAG=SLAPD_MOD_DYNAMIC
25050 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
25051 MFLAG=SLAPD_MOD_STATIC
25053 cat >> confdefs.h <<EOF
25054 #define SLAPD_PASSWD $MFLAG
25059 if test "$ol_link_perl" != no ; then
25061 BUILD_PERL=$ol_enable_perl
25062 if test "$ol_enable_perl" = mod ; then
25063 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
25064 MFLAG=SLAPD_MOD_DYNAMIC
25066 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
25067 MFLAG=SLAPD_MOD_STATIC
25069 cat >> confdefs.h <<EOF
25070 #define SLAPD_PERL $MFLAG
25075 if test "$ol_enable_relay" != no ; then
25077 BUILD_RELAY=$ol_enable_relay
25078 if test "$ol_enable_relay" = mod ; then
25079 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
25080 MFLAG=SLAPD_MOD_DYNAMIC
25082 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
25083 MFLAG=SLAPD_MOD_STATIC
25085 cat >> confdefs.h <<EOF
25086 #define SLAPD_RELAY $MFLAG
25091 if test "$ol_enable_shell" != no ; then
25092 if test "$ol_link_thread" != no ; then
25093 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
25096 BUILD_SHELL=$ol_enable_shell
25097 if test "$ol_enable_shell" = mod ; then
25098 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
25099 MFLAG=SLAPD_MOD_DYNAMIC
25101 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
25102 MFLAG=SLAPD_MOD_STATIC
25104 cat >> confdefs.h <<EOF
25105 #define SLAPD_SHELL $MFLAG
25110 if test "$ol_link_sql" != no ; then
25112 BUILD_SQL=$ol_enable_sql
25113 if test "$ol_enable_sql" = mod; then
25114 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
25115 MFLAG=SLAPD_MOD_DYNAMIC
25117 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
25118 MFLAG=SLAPD_MOD_STATIC
25120 cat >> confdefs.h <<EOF
25121 #define SLAPD_SQL $MFLAG
25126 if test "$ol_enable_denyop" != no ; then
25127 BUILD_DENYOP=$ol_enable_denyop
25128 if test "$ol_enable_denyop" = mod ; then
25129 MFLAG=SLAPD_MOD_DYNAMIC
25130 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
25132 MFLAG=SLAPD_MOD_STATIC
25133 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS denyop.o"
25135 cat >> confdefs.h <<EOF
25136 #define SLAPD_OVER_DENYOP $MFLAG
25141 if test "$ol_enable_dyngroup" != no ; then
25142 BUILD_DYNGROUP=$ol_enable_dyngroup
25143 if test "$ol_enable_dyngroup" = mod ; then
25144 MFLAG=SLAPD_MOD_DYNAMIC
25145 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
25147 MFLAG=SLAPD_MOD_STATIC
25148 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
25150 cat >> confdefs.h <<EOF
25151 #define SLAPD_OVER_DYNGROUP $MFLAG
25156 if test "$ol_enable_dynlist" != no ; then
25157 BUILD_DYNLIST=$ol_enable_dynlist
25158 if test "$ol_enable_dynlist" = mod ; then
25159 MFLAG=SLAPD_MOD_DYNAMIC
25160 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
25162 MFLAG=SLAPD_MOD_STATIC
25163 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
25165 cat >> confdefs.h <<EOF
25166 #define SLAPD_OVER_DYNLIST $MFLAG
25171 if test "$ol_enable_glue" != no ; then
25172 BUILD_GLUE=$ol_enable_glue
25173 if test "$ol_enable_glue" = mod ; then
25174 MFLAG=SLAPD_MOD_DYNAMIC
25175 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
25177 MFLAG=SLAPD_MOD_STATIC
25178 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS glue.o"
25180 cat >> confdefs.h <<EOF
25181 #define SLAPD_OVER_GLUE $MFLAG
25186 if test "$ol_enable_lastmod" != no ; then
25187 BUILD_LASTMOD=$ol_enable_lastmod
25188 if test "$ol_enable_lastmod" = mod ; then
25189 MFLAG=SLAPD_MOD_DYNAMIC
25190 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
25192 MFLAG=SLAPD_MOD_STATIC
25193 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS lastmod.o"
25195 cat >> confdefs.h <<EOF
25196 #define SLAPD_OVER_LASTMOD $MFLAG
25201 if test "$ol_enable_ppolicy" != no ; then
25202 BUILD_PPOLICY=$ol_enable_ppolicy
25203 if test "$ol_enable_ppolicy" = mod ; then
25204 MFLAG=SLAPD_MOD_DYNAMIC
25205 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
25207 MFLAG=SLAPD_MOD_STATIC
25208 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
25210 cat >> confdefs.h <<EOF
25211 #define SLAPD_OVER_PPOLICY $MFLAG
25216 if test "$ol_enable_proxycache" != no ; then
25217 BUILD_PROXYCACHE=$ol_enable_proxycache
25218 if test "$ol_enable_proxycache" = mod ; then
25219 MFLAG=SLAPD_MOD_DYNAMIC
25220 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
25222 MFLAG=SLAPD_MOD_STATIC
25223 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
25225 cat >> confdefs.h <<EOF
25226 #define SLAPD_OVER_PROXYCACHE $MFLAG
25231 if test "$ol_enable_refint" != no ; then
25232 BUILD_REFINT=$ol_enable_refint
25233 if test "$ol_enable_refint" = mod ; then
25234 MFLAG=SLAPD_MOD_DYNAMIC
25235 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
25237 MFLAG=SLAPD_MOD_STATIC
25238 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
25240 cat >> confdefs.h <<EOF
25241 #define SLAPD_OVER_REFINT $MFLAG
25246 if test "$ol_enable_rwm" != no ; then
25248 BUILD_RWM=$ol_enable_rwm
25249 if test "$ol_enable_rwm" = mod ; then
25250 MFLAG=SLAPD_MOD_DYNAMIC
25251 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
25253 MFLAG=SLAPD_MOD_STATIC
25254 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
25256 cat >> confdefs.h <<EOF
25257 #define SLAPD_OVER_RWM $MFLAG
25262 if test "$ol_enable_syncprov" != no ; then
25263 BUILD_SYNCPROV=$ol_enable_syncprov
25264 if test "$ol_enable_syncprov" = mod ; then
25265 MFLAG=SLAPD_MOD_DYNAMIC
25266 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
25268 MFLAG=SLAPD_MOD_STATIC
25269 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
25271 cat >> confdefs.h <<EOF
25272 #define SLAPD_OVER_SYNCPROV $MFLAG
25277 if test "$ol_enable_translucent" != no ; then
25278 BUILD_TRANSLUCENT=$ol_enable_translucent
25279 if test "$ol_enable_translucent" = mod ; then
25280 MFLAG=SLAPD_MOD_DYNAMIC
25281 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
25283 MFLAG=SLAPD_MOD_STATIC
25284 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
25286 cat >> confdefs.h <<EOF
25287 #define SLAPD_OVER_TRANSLUCENT $MFLAG
25292 if test "$ol_enable_unique" != no ; then
25293 BUILD_UNIQUE=$ol_enable_unique
25294 if test "$ol_enable_unique" = mod ; then
25295 MFLAG=SLAPD_MOD_DYNAMIC
25296 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
25298 MFLAG=SLAPD_MOD_STATIC
25299 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
25301 cat >> confdefs.h <<EOF
25302 #define SLAPD_OVER_UNIQUE $MFLAG
25307 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
25308 $BUILD_SLAPD = yes ; then
25312 if test "$ol_enable_rewrite" != no ; then
25313 cat >> confdefs.h <<\EOF
25314 #define ENABLE_REWRITE 1
25320 if test "$ol_enable_slapi" != no ; then
25321 cat >> confdefs.h <<\EOF
25322 #define ENABLE_SLAPI 1
25326 SLAPD_SLAPI_DEPEND=libslapi.a
25331 if test "$ac_cv_mingw32" = yes ; then
25333 SLAPD_MODULES_LDFLAGS=
25414 # Check whether --with-xxinstall or --without-xxinstall was given.
25415 if test "${with_xxinstall+set}" = set; then
25416 withval="$with_xxinstall"
25424 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
25426 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25427 # Let make expand exec_prefix.
25428 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25430 # Any assignment to VPATH causes Sun make to only execute
25431 # the first set of double-colon rules, so remove it if not needed.
25432 # If there is a colon in the path, we need to keep it.
25433 if test "x$srcdir" = x.; then
25434 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
25437 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
25439 DEFS=-DHAVE_CONFIG_H
25441 # Without the "./", some shells look in PATH for config.status.
25442 : ${CONFIG_STATUS=./config.status}
25444 echo creating $CONFIG_STATUS
25445 rm -f $CONFIG_STATUS
25446 cat > $CONFIG_STATUS <<EOF
25448 # Generated automatically by configure.
25449 # Run this file to recreate the current configuration.
25450 # This directory was configured as follows,
25451 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25453 # $0 $ac_configure_args
25455 # Compiler output produced by configure, useful for debugging
25456 # configure, is in ./config.log if it exists.
25458 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
25461 case "\$ac_option" in
25462 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25463 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
25464 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
25465 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
25466 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
25468 -help | --help | --hel | --he | --h)
25469 echo "\$ac_cs_usage"; exit 0 ;;
25470 *) echo "\$ac_cs_usage"; exit 1 ;;
25474 ac_given_srcdir=$srcdir
25475 ac_given_INSTALL="$INSTALL"
25477 trap 'rm -fr `echo "\
25478 Makefile:build/top.mk:Makefile.in:build/dir.mk \
25479 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
25480 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
25481 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
25482 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
25483 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
25484 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
25485 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
25486 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
25487 include/Makefile:build/top.mk:include/Makefile.in \
25488 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
25489 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
25490 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
25491 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
25492 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
25493 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
25494 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk \
25495 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
25496 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
25497 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
25498 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
25499 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
25500 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
25501 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
25502 servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk \
25503 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
25504 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
25505 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
25506 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
25507 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
25508 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
25509 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
25510 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
25511 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
25512 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
25513 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
25514 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
25515 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
25517 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
25518 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
25520 cat >> $CONFIG_STATUS <<EOF
25522 # Protect against being on the right side of a sed subst in config.status.
25523 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
25524 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
25528 s%@CFLAGS@%$CFLAGS%g
25529 s%@CPPFLAGS@%$CPPFLAGS%g
25530 s%@CXXFLAGS@%$CXXFLAGS%g
25531 s%@FFLAGS@%$FFLAGS%g
25533 s%@LDFLAGS@%$LDFLAGS%g
25535 s%@exec_prefix@%$exec_prefix%g
25536 s%@prefix@%$prefix%g
25537 s%@program_transform_name@%$program_transform_name%g
25538 s%@bindir@%$bindir%g
25539 s%@sbindir@%$sbindir%g
25540 s%@libexecdir@%$libexecdir%g
25541 s%@datadir@%$datadir%g
25542 s%@sysconfdir@%$sysconfdir%g
25543 s%@sharedstatedir@%$sharedstatedir%g
25544 s%@localstatedir@%$localstatedir%g
25545 s%@libdir@%$libdir%g
25546 s%@includedir@%$includedir%g
25547 s%@oldincludedir@%$oldincludedir%g
25548 s%@infodir@%$infodir%g
25549 s%@mandir@%$mandir%g
25551 s%@host_alias@%$host_alias%g
25552 s%@host_cpu@%$host_cpu%g
25553 s%@host_vendor@%$host_vendor%g
25554 s%@host_os@%$host_os%g
25555 s%@target@%$target%g
25556 s%@target_alias@%$target_alias%g
25557 s%@target_cpu@%$target_cpu%g
25558 s%@target_vendor@%$target_vendor%g
25559 s%@target_os@%$target_os%g
25561 s%@build_alias@%$build_alias%g
25562 s%@build_cpu@%$build_cpu%g
25563 s%@build_vendor@%$build_vendor%g
25564 s%@build_os@%$build_os%g
25565 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
25566 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
25567 s%@INSTALL_DATA@%$INSTALL_DATA%g
25568 s%@PACKAGE@%$PACKAGE%g
25569 s%@VERSION@%$VERSION%g
25570 s%@ACLOCAL@%$ACLOCAL%g
25571 s%@AUTOCONF@%$AUTOCONF%g
25572 s%@AUTOMAKE@%$AUTOMAKE%g
25573 s%@AUTOHEADER@%$AUTOHEADER%g
25574 s%@MAKEINFO@%$MAKEINFO%g
25575 s%@install_sh@%$install_sh%g
25578 s%@AMTARFLAGS@%$AMTARFLAGS%g
25579 s%@SET_MAKE@%$SET_MAKE%g
25580 s%@OPENLDAP_LIBRELEASE@%$OPENLDAP_LIBRELEASE%g
25581 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
25582 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
25583 s%@top_builddir@%$top_builddir%g
25584 s%@ldap_subdir@%$ldap_subdir%g
25588 s%@OBJEXT@%$OBJEXT%g
25589 s%@EXEEXT@%$EXEEXT%g
25591 s%@RANLIB@%$RANLIB%g
25593 s%@DLLTOOL@%$DLLTOOL%g
25595 s%@OBJDUMP@%$OBJDUMP%g
25597 s%@LIBTOOL@%$LIBTOOL%g
25598 s%@PERLBIN@%$PERLBIN%g
25599 s%@OL_MKDEP@%$OL_MKDEP%g
25600 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
25601 s%@LTSTATIC@%$LTSTATIC%g
25602 s%@LIBOBJS@%$LIBOBJS%g
25603 s%@LIBSRCS@%$LIBSRCS%g
25605 s%@WITH_SASL@%$WITH_SASL%g
25606 s%@WITH_TLS@%$WITH_TLS%g
25607 s%@WITH_MODULES_ENABLED@%$WITH_MODULES_ENABLED%g
25608 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
25609 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
25610 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
25611 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
25612 s%@BUILD_BDB@%$BUILD_BDB%g
25613 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
25614 s%@BUILD_HDB@%$BUILD_HDB%g
25615 s%@BUILD_LDAP@%$BUILD_LDAP%g
25616 s%@BUILD_LDBM@%$BUILD_LDBM%g
25617 s%@BUILD_META@%$BUILD_META%g
25618 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
25619 s%@BUILD_NULL@%$BUILD_NULL%g
25620 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
25621 s%@BUILD_RELAY@%$BUILD_RELAY%g
25622 s%@BUILD_PERL@%$BUILD_PERL%g
25623 s%@BUILD_SHELL@%$BUILD_SHELL%g
25624 s%@BUILD_SQL@%$BUILD_SQL%g
25625 s%@BUILD_CHAIN@%$BUILD_CHAIN%g
25626 s%@BUILD_DENYOP@%$BUILD_DENYOP%g
25627 s%@BUILD_DYNGROUP@%$BUILD_DYNGROUP%g
25628 s%@BUILD_DYNLIST@%$BUILD_DYNLIST%g
25629 s%@BUILD_GLUE@%$BUILD_GLUE%g
25630 s%@BUILD_LASTMOD@%$BUILD_LASTMOD%g
25631 s%@BUILD_PPOLICY@%$BUILD_PPOLICY%g
25632 s%@BUILD_PROXYCACHE@%$BUILD_PROXYCACHE%g
25633 s%@BUILD_REFINT@%$BUILD_REFINT%g
25634 s%@BUILD_RWM@%$BUILD_RWM%g
25635 s%@BUILD_SYNCPROV@%$BUILD_SYNCPROV%g
25636 s%@BUILD_TRANSLUCENT@%$BUILD_TRANSLUCENT%g
25637 s%@BUILD_UNIQUE@%$BUILD_UNIQUE%g
25638 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
25639 s%@LDAP_LIBS@%$LDAP_LIBS%g
25640 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
25641 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
25642 s%@LDBM_LIBS@%$LDBM_LIBS%g
25643 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
25644 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
25645 s%@WRAP_LIBS@%$WRAP_LIBS%g
25646 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
25647 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
25648 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
25649 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
25650 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
25651 s%@SLAPD_STATIC_OVERLAYS@%$SLAPD_STATIC_OVERLAYS%g
25652 s%@SLAPD_DYNAMIC_OVERLAYS@%$SLAPD_DYNAMIC_OVERLAYS%g
25653 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
25654 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
25655 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
25656 s%@KRB4_LIBS@%$KRB4_LIBS%g
25657 s%@KRB5_LIBS@%$KRB5_LIBS%g
25658 s%@SASL_LIBS@%$SASL_LIBS%g
25659 s%@TLS_LIBS@%$TLS_LIBS%g
25660 s%@MODULES_LIBS@%$MODULES_LIBS%g
25661 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
25662 s%@LIBSLAPI@%$LIBSLAPI%g
25663 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
25664 s%@AUTH_LIBS@%$AUTH_LIBS%g
25665 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
25666 s%@SLAPD_GMP_LIBS@%$SLAPD_GMP_LIBS%g
25667 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
25668 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
25669 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
25674 cat >> $CONFIG_STATUS <<\EOF
25676 # Split the substitutions into bite-sized pieces for seds with
25677 # small command number limits, like on Digital OSF/1 and HP-UX.
25678 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
25679 ac_file=1 # Number of current file.
25680 ac_beg=1 # First line for current file.
25681 ac_end=$ac_max_sed_cmds # Line after last line for current file.
25684 while $ac_more_lines; do
25685 if test $ac_beg -gt 1; then
25686 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
25688 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
25690 if test ! -s conftest.s$ac_file; then
25691 ac_more_lines=false
25692 rm -f conftest.s$ac_file
25694 if test -z "$ac_sed_cmds"; then
25695 ac_sed_cmds="sed -f conftest.s$ac_file"
25697 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
25699 ac_file=`expr $ac_file + 1`
25701 ac_end=`expr $ac_end + $ac_max_sed_cmds`
25704 if test -z "$ac_sed_cmds"; then
25709 cat >> $CONFIG_STATUS <<EOF
25711 CONFIG_FILES=\${CONFIG_FILES-"\
25712 Makefile:build/top.mk:Makefile.in:build/dir.mk \
25713 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
25714 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
25715 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
25716 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
25717 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
25718 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
25719 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
25720 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
25721 include/Makefile:build/top.mk:include/Makefile.in \
25722 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
25723 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
25724 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
25725 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
25726 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
25727 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
25728 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-shared.mk \
25729 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
25730 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
25731 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
25732 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
25733 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
25734 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
25735 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
25736 servers/slapd/back-ldif/Makefile:build/top.mk:servers/slapd/back-ldif/Makefile.in:build/mod.mk \
25737 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
25738 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
25739 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
25740 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
25741 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
25742 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
25743 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
25744 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
25745 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
25746 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
25747 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
25748 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
25749 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
25751 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
25754 cat >> $CONFIG_STATUS <<\EOF
25755 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
25756 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25758 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
25759 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25760 *) ac_file_in="${ac_file}.in" ;;
25763 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
25765 # Remove last slash and all that follows it. Not all systems have dirname.
25766 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
25767 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
25768 # The file is in a subdirectory.
25769 test ! -d "$ac_dir" && mkdir "$ac_dir"
25770 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
25771 # A "../" for each directory in $ac_dir_suffix.
25772 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
25774 ac_dir_suffix= ac_dots=
25777 case "$ac_given_srcdir" in
25779 if test -z "$ac_dots"; then top_srcdir=.
25780 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
25781 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
25782 *) # Relative path.
25783 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
25784 top_srcdir="$ac_dots$ac_given_srcdir" ;;
25787 case "$ac_given_INSTALL" in
25788 [/$]*) INSTALL="$ac_given_INSTALL" ;;
25789 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
25792 echo creating "$ac_file"
25794 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
25796 *[Mm]akefile*) ac_comsub="1i\\
25797 # $configure_input" ;;
25801 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
25803 s%@configure_input@%$configure_input%g
25804 s%@srcdir@%$srcdir%g
25805 s%@top_srcdir@%$top_srcdir%g
25806 s%@INSTALL@%$INSTALL%g
25807 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
25811 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25812 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25814 # ac_d sets the value in "#define NAME VALUE" lines.
25815 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25816 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
25819 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
25820 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25821 ac_uB='\([ ]\)%\1#\2define\3'
25824 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25825 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25826 ac_eB='$%\1#\2define\3'
25830 if test "${CONFIG_HEADERS+set}" != set; then
25832 cat >> $CONFIG_STATUS <<EOF
25833 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
25835 cat >> $CONFIG_STATUS <<\EOF
25837 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
25838 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25840 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
25841 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25842 *) ac_file_in="${ac_file}.in" ;;
25845 echo creating $ac_file
25847 rm -f conftest.frag conftest.in conftest.out
25848 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
25849 cat $ac_file_inputs > conftest.in
25853 # Transform confdefs.h into a sed script conftest.vals that substitutes
25854 # the proper values into config.h.in to produce config.h. And first:
25855 # Protect against being on the right side of a sed subst in config.status.
25856 # Protect against being in an unquoted here document in config.status.
25857 rm -f conftest.vals
25858 cat > conftest.hdr <<\EOF
25861 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
25865 sed -n -f conftest.hdr confdefs.h > conftest.vals
25868 # This sed command replaces #undef with comments. This is necessary, for
25869 # example, in the case of _POSIX_SOURCE, which is predefined and required
25870 # on some systems where configure will not decide to define it.
25871 cat >> conftest.vals <<\EOF
25872 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
25875 # Break up conftest.vals because some shells have a limit on
25876 # the size of here documents, and old seds have small limits too.
25878 rm -f conftest.tail
25881 ac_lines=`grep -c . conftest.vals`
25882 # grep -c gives empty output for an empty file on some AIX systems.
25883 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
25884 # Write a limited-size here document to conftest.frag.
25885 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
25886 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
25888 sed -f conftest.frag conftest.in > conftest.out
25890 mv conftest.out conftest.in
25891 ' >> $CONFIG_STATUS
25892 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
25893 rm -f conftest.vals
25894 mv conftest.tail conftest.vals
25896 rm -f conftest.vals
25898 cat >> $CONFIG_STATUS <<\EOF
25899 rm -f conftest.frag conftest.h
25900 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
25901 cat conftest.in >> conftest.h
25903 if cmp -s $ac_file conftest.h 2>/dev/null; then
25904 echo "$ac_file is unchanged"
25907 # Remove last slash and all that follows it. Not all systems have dirname.
25908 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
25909 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
25910 # The file is in a subdirectory.
25911 test ! -d "$ac_dir" && mkdir "$ac_dir"
25914 mv conftest.h $ac_file
25919 cat >> $CONFIG_STATUS <<EOF
25920 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
25922 cat >> $CONFIG_STATUS <<\EOF
25926 BACKENDSC="servers/slapd/backends.c"
25927 echo "Making $BACKENDSC"
25929 cat > $BACKENDSC << ENDX
25930 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
25932 * Copyright 1998-2005 The OpenLDAP Foundation.
25933 * All rights reserved.
25935 * Redistribution and use in source and binary forms, with or without
25936 * modification, are permitted only as authorized by the OpenLDAP
25939 * A copy of this license is available in the file LICENSE in the
25940 * top-level directory of the distribution or, alternatively, at
25941 * <http://www.OpenLDAP.org/license.html>.
25943 /* This file is automatically generated by configure; please do not edit. */
25945 #include "portable.h"
25949 if test "${STATIC_BACKENDS}"; then
25950 for b in config ${STATIC_BACKENDS}; do
25951 bb=`echo "${b}" | sed -e 's/back-//'`
25952 cat >> $BACKENDSC << ENDX
25953 extern BI_init ${bb}_back_initialize;
25957 cat >> $BACKENDSC << ENDX
25959 BackendInfo slap_binfo[] = {
25962 for b in config ${STATIC_BACKENDS}; do
25963 bb=`echo "${b}" | sed -e 's/back-//'`
25964 echo " Add ${bb} ..."
25965 cat >> $BACKENDSC << ENDX
25966 { "${bb}", ${bb}_back_initialize },
25970 cat >> $BACKENDSC << ENDX
25974 /* end of generated file */
25978 echo Please run \"make depend\" to build dependencies
25982 chmod +x $CONFIG_STATUS
25983 rm -fr confdefs* $ac_clean_files
25984 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1