3 # from OpenLDAP: pkg/ldap/configure.in,v 1.564 2005/02/27 15:46:50 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 [no]"
100 --enable-ldap enable ldap backend no|yes|mod [no]"
102 --enable-ldbm enable ldbm backend no|yes|mod [no]"
104 --with-ldbm-api with LDBM API auto|berkeley|bcompat|mdbm|gdbm [auto]"
106 --with-ldbm-type use LDBM type auto|btree|hash [auto]"
108 --enable-meta enable metadirectory backend no|yes|mod [no]"
110 --enable-monitor enable monitor backend no|yes|mod [yes]"
112 --enable-null enable null backend no|yes|mod [no]"
114 --enable-passwd enable passwd backend no|yes|mod [no]"
116 --enable-perl enable perl backend no|yes|mod [no]"
118 --enable-relay enable relay backend no|yes|mod [yes]"
120 --enable-shell enable shell backend no|yes|mod [no]"
122 --enable-sql enable sql backend no|yes|mod [no]"
125 SLAPD Overlay Options:"
127 --enable-overlays enable all available overlays no|yes|mod [no]"
129 --enable-denyop Deny Operation overlay no|yes|mod [no]"
131 --enable-dyngroup Dynamic Group overlay no|yes|mod [no]"
133 --enable-glue Backend Glue overlay no|yes|mod [yes]"
135 --enable-lastmod Last Modification overlay no|yes|mod [no]"
137 --enable-ppolicy Password Policy overlay no|yes|mod [no]"
139 --enable-proxycache Proxy Cache overlay no|yes|mod [no]"
141 --enable-refint Referential Integrity overlay no|yes|mod [no]"
143 --enable-rwm Rewrite/Remap overlay no|yes|mod [no]"
145 --enable-syncprov Syncrepl Provider overlay no|yes|mod [yes]"
147 --enable-unique Attribute Uniqueness overlay no|yes|mod [no]"
150 SLURPD (Replication Daemon) Options:"
152 --enable-slurpd enable building slurpd [auto]"
155 Library Generation & Linking Options"
157 --enable-static[=PKGS] build static libraries [default=yes]"
159 --enable-shared[=PKGS] build shared libraries [default=yes]"
161 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
163 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
165 # Find the correct PATH separator. Usually this is `:', but
166 # DJGPP uses `;' like DOS.
167 if test "X${PATH_SEPARATOR+set}" != Xset; then
168 UNAME=${UNAME-`uname 2>/dev/null`}
170 *-DOS) lt_cv_sys_path_separator=';' ;;
171 *) lt_cv_sys_path_separator=':' ;;
173 PATH_SEPARATOR=$lt_cv_sys_path_separator
177 # Check that we are running under the correct shell.
178 SHELL=${CONFIG_SHELL-/bin/sh}
182 # Remove one level of quotation (which was required for Make).
183 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
188 if test "X$1" = X--no-reexec; then
189 # Discard the --no-reexec flag, and continue.
191 elif test "X$1" = X--fallback-echo; then
192 # Avoid inline document here, it may be left over
194 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
195 # Yippee, $echo works!
198 # Restart under the correct shell.
199 exec $SHELL "$0" --no-reexec ${1+"$@"}
202 if test "X$1" = X--fallback-echo; then
203 # used as fallback echo
211 # The HP-UX ksh and POSIX shell print the target directory to stdout
213 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
215 if test -z "$ECHO"; then
216 if test "X${echo_test_string+set}" != Xset; then
217 # find a string as large as possible, as long as the shell can cope with it
218 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
219 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
220 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
221 echo_test_string="`eval $cmd`" &&
222 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
229 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
230 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
231 test "X$echo_testing_string" = "X$echo_test_string"; then
234 # The Solaris, AIX, and Digital Unix default echo programs unquote
235 # backslashes. This makes it impossible to quote backslashes using
236 # echo "$something" | sed 's/\\/\\\\/g'
238 # So, first we look for a working echo in the user's PATH.
240 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
241 for dir in $PATH /usr/ucb; do
242 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
243 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
244 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
245 test "X$echo_testing_string" = "X$echo_test_string"; then
252 if test "X$echo" = Xecho; then
253 # We didn't find a better echo, so look for alternatives.
254 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
255 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
256 test "X$echo_testing_string" = "X$echo_test_string"; then
257 # This shell has a builtin print -r that does the trick.
259 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
260 test "X$CONFIG_SHELL" != X/bin/ksh; then
261 # If we have ksh, try running configure again with it.
262 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
263 export ORIGINAL_CONFIG_SHELL
264 CONFIG_SHELL=/bin/ksh
266 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
271 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
272 test "X$echo_testing_string" = "X$echo_test_string"; then
275 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
276 test "X$echo_testing_string" = 'X\t' &&
277 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
278 test "X$echo_testing_string" = "X$echo_test_string"; then
279 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
281 SHELL="$CONFIG_SHELL"
283 echo="$CONFIG_SHELL $0 --fallback-echo"
284 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
285 test "X$echo_testing_string" = 'X\t' &&
286 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
287 test "X$echo_testing_string" = "X$echo_test_string"; then
288 echo="$CONFIG_SHELL $0 --fallback-echo"
290 # maybe with a smaller string...
293 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
294 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
301 if test "$prev" != 'sed 50q "$0"'; then
302 echo_test_string=`eval $prev`
303 export echo_test_string
304 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
306 # Oops. We lost completely, so just stick with echo.
315 # Copy echo and quote the copy suitably for passing to libtool from
316 # the Makefile, instead of quoting the original, which is used later.
318 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
319 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
324 --disable-libtool-lock avoid locking (might break parallel builds)"
326 --with-pic try to use only PIC/non-PIC objects [default=use both]"
329 See INSTALL file for further details."
331 # Initialize some variables set by options.
332 # The variables have the same names as the options, with
333 # dashes changed to underlines.
335 cache_file=./config.cache
344 program_transform_name=s,x,x,
352 bindir='${exec_prefix}/bin'
353 sbindir='${exec_prefix}/sbin'
354 libexecdir='${exec_prefix}/libexec'
355 datadir='${prefix}/share'
356 sysconfdir='${prefix}/etc'
357 sharedstatedir='${prefix}/com'
358 localstatedir='${prefix}/var'
359 libdir='${exec_prefix}/lib'
360 includedir='${prefix}/include'
361 oldincludedir='/usr/include'
362 infodir='${prefix}/info'
363 mandir='${prefix}/man'
365 # Initialize some other variables.
368 SHELL=${CONFIG_SHELL-/bin/sh}
369 # Maximum number of lines to put in a shell here document.
376 # If the previous option needs an argument, assign it.
377 if test -n "$ac_prev"; then
378 eval "$ac_prev=\$ac_option"
384 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
388 # Accept the important Cygnus configure options, so we can diagnose typos.
392 -bindir | --bindir | --bindi | --bind | --bin | --bi)
394 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
395 bindir="$ac_optarg" ;;
397 -build | --build | --buil | --bui | --bu)
399 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
400 build="$ac_optarg" ;;
402 -cache-file | --cache-file | --cache-fil | --cache-fi \
403 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
404 ac_prev=cache_file ;;
405 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
406 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
407 cache_file="$ac_optarg" ;;
409 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
411 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
413 datadir="$ac_optarg" ;;
415 -disable-* | --disable-*)
416 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
417 # Reject names that are not valid shell variable names.
418 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
419 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
421 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
422 eval "enable_${ac_feature}=no" ;;
424 -enable-* | --enable-*)
425 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
426 # Reject names that are not valid shell variable names.
427 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
428 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
430 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
435 eval "enable_${ac_feature}='$ac_optarg'" ;;
437 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
438 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
439 | --exec | --exe | --ex)
440 ac_prev=exec_prefix ;;
441 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
442 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
443 | --exec=* | --exe=* | --ex=*)
444 exec_prefix="$ac_optarg" ;;
446 -gas | --gas | --ga | --g)
447 # Obsolete; use --with-gas.
450 -help | --help | --hel | --he)
451 # Omit some internal or obsolete options to make the list less imposing.
452 # This message is too long to be a string in the A/UX 3.1 sh.
454 Usage: configure [options] [host]
455 Options: [defaults in brackets after descriptions]
457 --cache-file=FILE cache test results in FILE
458 --help print this message
459 --no-create do not create output files
460 --quiet, --silent do not print \`checking...' messages
461 --version print the version of autoconf that created configure
462 Directory and file names:
463 --prefix=PREFIX install architecture-independent files in PREFIX
465 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
467 --bindir=DIR user executables in DIR [EPREFIX/bin]
468 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
469 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
470 --datadir=DIR read-only architecture-independent data in DIR
472 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
473 --sharedstatedir=DIR modifiable architecture-independent data in DIR
475 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
476 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
477 --includedir=DIR C header files in DIR [PREFIX/include]
478 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
479 --infodir=DIR info documentation in DIR [PREFIX/info]
480 --mandir=DIR man documentation in DIR [PREFIX/man]
481 --srcdir=DIR find the sources in DIR [configure dir or ..]
482 --program-prefix=PREFIX prepend PREFIX to installed program names
483 --program-suffix=SUFFIX append SUFFIX to installed program names
484 --program-transform-name=PROGRAM
485 run sed PROGRAM on installed program names
489 --build=BUILD configure for building on BUILD [BUILD=HOST]
490 --host=HOST configure for HOST [guessed]
491 --target=TARGET configure for TARGET [TARGET=HOST]
492 Features and packages:
493 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
494 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
497 --x-includes=DIR X include files are in DIR
498 --x-libraries=DIR X library files are in DIR
500 if test -n "$ac_help"; then
501 echo "--enable and --with options recognized:$ac_help"
505 -host | --host | --hos | --ho)
507 -host=* | --host=* | --hos=* | --ho=*)
510 -includedir | --includedir | --includedi | --included | --include \
511 | --includ | --inclu | --incl | --inc)
512 ac_prev=includedir ;;
513 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
514 | --includ=* | --inclu=* | --incl=* | --inc=*)
515 includedir="$ac_optarg" ;;
517 -infodir | --infodir | --infodi | --infod | --info | --inf)
519 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
520 infodir="$ac_optarg" ;;
522 -libdir | --libdir | --libdi | --libd)
524 -libdir=* | --libdir=* | --libdi=* | --libd=*)
525 libdir="$ac_optarg" ;;
527 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
528 | --libexe | --libex | --libe)
529 ac_prev=libexecdir ;;
530 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
531 | --libexe=* | --libex=* | --libe=*)
532 libexecdir="$ac_optarg" ;;
534 -localstatedir | --localstatedir | --localstatedi | --localstated \
535 | --localstate | --localstat | --localsta | --localst \
536 | --locals | --local | --loca | --loc | --lo)
537 ac_prev=localstatedir ;;
538 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
539 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
540 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
541 localstatedir="$ac_optarg" ;;
543 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
545 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
546 mandir="$ac_optarg" ;;
549 # Obsolete; use --without-fp.
552 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
556 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
557 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
560 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
561 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
562 | --oldin | --oldi | --old | --ol | --o)
563 ac_prev=oldincludedir ;;
564 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
565 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
566 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
567 oldincludedir="$ac_optarg" ;;
569 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
571 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
572 prefix="$ac_optarg" ;;
574 -program-prefix | --program-prefix | --program-prefi | --program-pref \
575 | --program-pre | --program-pr | --program-p)
576 ac_prev=program_prefix ;;
577 -program-prefix=* | --program-prefix=* | --program-prefi=* \
578 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
579 program_prefix="$ac_optarg" ;;
581 -program-suffix | --program-suffix | --program-suffi | --program-suff \
582 | --program-suf | --program-su | --program-s)
583 ac_prev=program_suffix ;;
584 -program-suffix=* | --program-suffix=* | --program-suffi=* \
585 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
586 program_suffix="$ac_optarg" ;;
588 -program-transform-name | --program-transform-name \
589 | --program-transform-nam | --program-transform-na \
590 | --program-transform-n | --program-transform- \
591 | --program-transform | --program-transfor \
592 | --program-transfo | --program-transf \
593 | --program-trans | --program-tran \
594 | --progr-tra | --program-tr | --program-t)
595 ac_prev=program_transform_name ;;
596 -program-transform-name=* | --program-transform-name=* \
597 | --program-transform-nam=* | --program-transform-na=* \
598 | --program-transform-n=* | --program-transform-=* \
599 | --program-transform=* | --program-transfor=* \
600 | --program-transfo=* | --program-transf=* \
601 | --program-trans=* | --program-tran=* \
602 | --progr-tra=* | --program-tr=* | --program-t=*)
603 program_transform_name="$ac_optarg" ;;
605 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
606 | -silent | --silent | --silen | --sile | --sil)
609 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
611 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
613 sbindir="$ac_optarg" ;;
615 -sharedstatedir | --sharedstatedir | --sharedstatedi \
616 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
617 | --sharedst | --shareds | --shared | --share | --shar \
619 ac_prev=sharedstatedir ;;
620 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
621 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
622 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
624 sharedstatedir="$ac_optarg" ;;
626 -site | --site | --sit)
628 -site=* | --site=* | --sit=*)
631 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
633 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
634 srcdir="$ac_optarg" ;;
636 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
637 | --syscon | --sysco | --sysc | --sys | --sy)
638 ac_prev=sysconfdir ;;
639 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
640 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
641 sysconfdir="$ac_optarg" ;;
643 -target | --target | --targe | --targ | --tar | --ta | --t)
645 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
646 target="$ac_optarg" ;;
648 -v | -verbose | --verbose | --verbos | --verbo | --verb)
651 -version | --version | --versio | --versi | --vers)
652 echo "configure generated by autoconf version 2.13.1"
656 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
657 # Reject names that are not valid shell variable names.
658 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
659 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
661 ac_package=`echo $ac_package| sed 's/-/_/g'`
666 eval "with_${ac_package}='$ac_optarg'" ;;
668 -without-* | --without-*)
669 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
670 # Reject names that are not valid shell variable names.
671 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
672 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
674 ac_package=`echo $ac_package| sed 's/-/_/g'`
675 eval "with_${ac_package}=no" ;;
678 # Obsolete; use --with-x.
681 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
682 | --x-incl | --x-inc | --x-in | --x-i)
683 ac_prev=x_includes ;;
684 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
685 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
686 x_includes="$ac_optarg" ;;
688 -x-libraries | --x-libraries | --x-librarie | --x-librari \
689 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
690 ac_prev=x_libraries ;;
691 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
692 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
693 x_libraries="$ac_optarg" ;;
695 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
699 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
700 echo "configure: warning: $ac_option: invalid host type" 1>&2
702 if test "x$nonopt" != xNONE; then
703 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
711 if test -n "$ac_prev"; then
712 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
715 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
717 # File descriptor usage:
720 # 2 errors and warnings
721 # 3 some systems may open it to /dev/tty
722 # 4 used on the Kubota Titan
723 # 6 checking for... messages and results
724 # 5 compiler messages saved in config.log
725 if test "$silent" = yes; then
733 This file contains any messages produced by compilers while
734 running configure, to aid debugging if configure makes a mistake.
737 # Strip out --no-create and --no-recursion so they do not pile up.
738 # Also quote any args containing shell metacharacters.
743 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
744 | --no-cr | --no-c) ;;
745 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
746 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
747 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
748 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
749 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
754 # Only set these to C if already set. These must not be set unconditionally
755 # because not all systems understand e.g. LANG=C (notably SCO).
756 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
757 # Non-C LC_CTYPE values break the ctype check.
758 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
759 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
760 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
761 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
763 # confdefs.h avoids OS command line length limits that DEFS can exceed.
764 rm -rf conftest* confdefs.h
765 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
768 # A filename unique to this package, relative to the directory that
769 # configure is in, which we can look for to find out if srcdir is correct.
770 ac_unique_file=build/version.sh
772 # Find the source files, if location was not specified.
773 if test -z "$srcdir"; then
774 ac_srcdir_defaulted=yes
775 # Try the directory containing this script, then its parent.
777 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
778 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
780 if test ! -r $srcdir/$ac_unique_file; then
784 ac_srcdir_defaulted=no
786 if test ! -r $srcdir/$ac_unique_file; then
787 if test "$ac_srcdir_defaulted" = yes; then
788 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
790 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
793 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
795 # Prefer explicitly selected file to automatically selected ones.
796 if test -z "$CONFIG_SITE"; then
797 if test "x$prefix" != xNONE; then
798 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
800 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
803 for ac_site_file in $CONFIG_SITE; do
804 if test -r "$ac_site_file"; then
805 echo "loading site script $ac_site_file"
812 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
813 ac_cpp='$CPP $CPPFLAGS'
814 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
815 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
816 cross_compiling=$ac_cv_prog_cc_cross
820 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
821 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
822 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
829 ac_n= ac_c='\c' ac_t=
833 # set unset (borrowed from autoconf 2.49c)
834 if (OL_FOO=OL_FOO; unset OL_FOO) >/dev/null 2>&1; then
840 $ol_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
843 for ac_dir in build $srcdir/build; do
844 if test -f $ac_dir/install-sh; then
846 ac_install_sh="$ac_aux_dir/install-sh -c"
848 elif test -f $ac_dir/install.sh; then
850 ac_install_sh="$ac_aux_dir/install.sh -c"
852 elif test -f $ac_dir/shtool; then
854 ac_install_sh="$ac_aux_dir/shtool install -c"
858 if test -z "$ac_aux_dir"; then
859 { echo "configure: error: can not find install-sh or install.sh in build $srcdir/build" 1>&2; exit 1; }
861 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
862 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
863 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
865 eval `$ac_aux_dir/version.sh`
866 if test -z "$OL_STRING"; then
867 { echo "configure: error: could not determine version" 1>&2; exit 1; }
870 if test -f "$ac_aux_dir/shtool" -a ! -d $ac_aux_dir/shtool; then
871 ac_cv_shtool="$ac_aux_dir/shtool"
873 { echo "configure: error: no shtool found in $ac_aux_dir" 1>&2; exit 1; }
876 SHTOOL="$ac_cv_shtool"
878 TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
879 TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
882 if test -d $ac_aux_dir/CVS; then
883 OPENLDAP_CVS="(from CVS sources) "
886 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
889 echo $ac_n "checking host system type""... $ac_c" 1>&6
890 echo "configure:891: checking host system type" >&5
891 if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
893 # Make sure we can run config.sub.
894 if $ac_config_sub sun4 >/dev/null 2>&1; then :
895 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
898 ac_cv_host_alias=$host
899 case "$ac_cv_host_alias" in
903 if ac_cv_host_alias=`$ac_config_guess`; then :
904 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
906 *) ac_cv_host_alias=$nonopt ;;
910 ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
911 ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
912 ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
913 ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
915 echo $ac_n "(cached) $ac_c" 1>&6
918 echo "$ac_t""$ac_cv_host" 1>&6
921 host_alias=$ac_cv_host_alias
922 host_cpu=$ac_cv_host_cpu
923 host_vendor=$ac_cv_host_vendor
924 host_os=$ac_cv_host_os
930 echo $ac_n "checking target system type""... $ac_c" 1>&6
931 echo "configure:932: checking target system type" >&5
932 if test "x$ac_cv_target" = "x" || (test "x$target" != "xNONE" && test "x$target" != "x$ac_cv_target_alias"); then
934 # Make sure we can run config.sub.
935 if $ac_config_sub sun4 >/dev/null 2>&1; then :
936 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
939 ac_cv_target_alias=$target
940 case "$ac_cv_target_alias" in
944 ac_cv_target_alias=$host_alias ;;
946 *) ac_cv_target_alias=$nonopt ;;
950 ac_cv_target=`$ac_config_sub $ac_cv_target_alias`
951 ac_cv_target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
952 ac_cv_target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
953 ac_cv_target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
955 echo $ac_n "(cached) $ac_c" 1>&6
958 echo "$ac_t""$ac_cv_target" 1>&6
961 target_alias=$ac_cv_target_alias
962 target_cpu=$ac_cv_target_cpu
963 target_vendor=$ac_cv_target_vendor
964 target_os=$ac_cv_target_os
970 echo $ac_n "checking build system type""... $ac_c" 1>&6
971 echo "configure:972: checking build system type" >&5
972 if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
974 # Make sure we can run config.sub.
975 if $ac_config_sub sun4 >/dev/null 2>&1; then :
976 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
979 ac_cv_build_alias=$build
980 case "$ac_cv_build_alias" in
984 ac_cv_build_alias=$host_alias ;;
986 *) ac_cv_build_alias=$nonopt ;;
990 ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
991 ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
992 ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
993 ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
995 echo $ac_n "(cached) $ac_c" 1>&6
998 echo "$ac_t""$ac_cv_build" 1>&6
1001 build_alias=$ac_cv_build_alias
1002 build_cpu=$ac_cv_build_cpu
1003 build_vendor=$ac_cv_build_vendor
1004 build_os=$ac_cv_build_os
1010 # Do some error checking and defaulting for the host and target type.
1012 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
1015 # 1. You are not allowed to specify --host, --target, and nonopt at the
1017 # 2. Host defaults to nonopt.
1018 # 3. If nonopt is not specified, then host defaults to the current host,
1019 # as determined by config.guess.
1020 # 4. Target and build default to nonopt.
1021 # 5. If nonopt is not specified, then target and build default to host.
1023 # The aliases save the names the user supplied, while $host etc.
1024 # will get canonicalized.
1025 case $host---$target---$nonopt in
1026 NONE---*---* | *---NONE---* | *---*---NONE) ;;
1027 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
1030 test "$host_alias" != "$target_alias" &&
1031 test "$program_prefix$program_suffix$program_transform_name" = \
1033 program_prefix=${target_alias}-
1036 # Find a good install program. We prefer a C program (faster),
1037 # so one script is as good as another. But avoid the broken or
1038 # incompatible versions:
1039 # SysV /etc/install, /usr/sbin/install
1040 # SunOS /usr/etc/install
1041 # IRIX /sbin/install
1043 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1044 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1045 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1046 # ./install, which can be erroneously created by make from ./install.sh.
1047 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1048 echo "configure:1049: checking for a BSD compatible install" >&5
1049 if test -z "$INSTALL"; then
1050 if eval "test \"\${ac_cv_path_install+set}\" = set"; then
1051 echo $ac_n "(cached) $ac_c" 1>&6
1053 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1054 for ac_dir in $PATH; do
1055 # Account for people who put trailing slashes in PATH elements.
1057 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1059 # OSF1 and SCO ODT 3.0 have their own names for install.
1060 # Don't use installbsd from OSF since it installs stuff as root
1062 for ac_prog in ginstall scoinst install; do
1063 if test -f $ac_dir/$ac_prog; then
1064 if test $ac_prog = install &&
1065 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1066 # AIX install. It has an incompatible calling convention.
1068 elif test $ac_prog = install &&
1069 grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
1070 # program-specific install script used by HP pwplus--don't use.
1073 ac_cv_path_install="$ac_dir/$ac_prog -c"
1084 if test "${ac_cv_path_install+set}" = set; then
1085 INSTALL="$ac_cv_path_install"
1087 # As a last resort, use the slow shell script. We don't cache a
1088 # path for INSTALL within a source directory, because that will
1089 # break other packages using the cache if that directory is
1090 # removed, or if the path is relative.
1091 INSTALL="$ac_install_sh"
1094 echo "$ac_t""$INSTALL" 1>&6
1096 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1097 # It thinks the first close brace ends the variable substitution.
1098 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1100 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1102 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1104 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
1105 echo "configure:1106: checking whether build environment is sane" >&5
1108 echo timestamp > conftestfile
1109 # Do `set' in a subshell so we don't clobber the current shell's
1110 # arguments. Must try -L first in case configure is actually a
1111 # symlink; some systems play weird games with the mod time of symlinks
1112 # (eg FreeBSD returns the mod time of the symlink's containing
1115 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1116 if test "$*" = "X"; then
1118 set X `ls -t $srcdir/configure conftestfile`
1120 if test "$*" != "X $srcdir/configure conftestfile" \
1121 && test "$*" != "X conftestfile $srcdir/configure"; then
1123 # If neither matched, then we have a broken ls. This can happen
1124 # if, for instance, CONFIG_SHELL is bash and it inherits a
1125 # broken ls alias from the environment. This has actually
1126 # happened. Such a system could not be considered "sane".
1127 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
1128 alias in your environment" 1>&2; exit 1; }
1131 test "$2" = conftestfile
1137 { echo "configure: error: newly created file is older than distributed files!
1138 Check your system clock" 1>&2; exit 1; }
1141 echo "$ac_t""yes" 1>&6
1142 if test "$program_transform_name" = s,x,x,; then
1143 program_transform_name=
1145 # Double any \ or $. echo might interpret backslashes.
1146 cat <<\EOF_SED > conftestsed
1147 s,\\,\\\\,g; s,\$,$$,g
1149 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
1152 test "$program_prefix" != NONE &&
1153 program_transform_name="s,^,${program_prefix},;$program_transform_name"
1154 # Use a double $ so make ignores it.
1155 test "$program_suffix" != NONE &&
1156 program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
1158 # sed with no file args requires a program.
1159 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
1161 for ac_prog in mawk gawk nawk awk
1163 # Extract the first word of "$ac_prog", so it can be a program name with args.
1164 set dummy $ac_prog; ac_word=$2
1165 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1166 echo "configure:1167: checking for $ac_word" >&5
1167 if eval "test \"\${ac_cv_prog_AWK+set}\" = set"; then
1168 echo $ac_n "(cached) $ac_c" 1>&6
1170 if test -n "$AWK"; then
1171 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1173 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1175 for ac_dir in $ac_dummy; do
1176 test -z "$ac_dir" && ac_dir=.
1177 if test -f $ac_dir/$ac_word; then
1178 ac_cv_prog_AWK="$ac_prog"
1185 AWK="$ac_cv_prog_AWK"
1186 if test -n "$AWK"; then
1187 echo "$ac_t""$AWK" 1>&6
1189 echo "$ac_t""no" 1>&6
1192 test -n "$AWK" && break
1195 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1196 echo "configure:1197: checking whether ${MAKE-make} sets \${MAKE}" >&5
1197 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1198 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1201 cat > conftestmake <<\EOF
1203 @echo 'ac_maketemp="${MAKE}"'
1205 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1206 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1207 if test -n "$ac_maketemp"; then
1208 eval ac_cv_prog_make_${ac_make}_set=yes
1210 eval ac_cv_prog_make_${ac_make}_set=no
1214 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1215 echo "$ac_t""yes" 1>&6
1218 echo "$ac_t""no" 1>&6
1219 SET_MAKE="MAKE=${MAKE-make}"
1228 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1229 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
1234 missing_dir=`cd $ac_aux_dir && pwd`
1235 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
1236 echo "configure:1237: checking for working aclocal" >&5
1237 # Run test in a subshell; some versions of sh will print an error if
1238 # an executable is not found, even if stderr is redirected.
1239 # Redirect stdin to placate older versions of autoconf. Sigh.
1240 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1242 echo "$ac_t""found" 1>&6
1244 ACLOCAL="$missing_dir/missing aclocal"
1245 echo "$ac_t""missing" 1>&6
1248 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
1249 echo "configure:1250: checking for working autoconf" >&5
1250 # Run test in a subshell; some versions of sh will print an error if
1251 # an executable is not found, even if stderr is redirected.
1252 # Redirect stdin to placate older versions of autoconf. Sigh.
1253 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1255 echo "$ac_t""found" 1>&6
1257 AUTOCONF="$missing_dir/missing autoconf"
1258 echo "$ac_t""missing" 1>&6
1261 echo $ac_n "checking for working automake""... $ac_c" 1>&6
1262 echo "configure:1263: checking for working automake" >&5
1263 # Run test in a subshell; some versions of sh will print an error if
1264 # an executable is not found, even if stderr is redirected.
1265 # Redirect stdin to placate older versions of autoconf. Sigh.
1266 if (automake --version) < /dev/null > /dev/null 2>&1; then
1268 echo "$ac_t""found" 1>&6
1270 AUTOMAKE="$missing_dir/missing automake"
1271 echo "$ac_t""missing" 1>&6
1274 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
1275 echo "configure:1276: checking for working autoheader" >&5
1276 # Run test in a subshell; some versions of sh will print an error if
1277 # an executable is not found, even if stderr is redirected.
1278 # Redirect stdin to placate older versions of autoconf. Sigh.
1279 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1280 AUTOHEADER=autoheader
1281 echo "$ac_t""found" 1>&6
1283 AUTOHEADER="$missing_dir/missing autoheader"
1284 echo "$ac_t""missing" 1>&6
1287 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
1288 echo "configure:1289: checking for working makeinfo" >&5
1289 # Run test in a subshell; some versions of sh will print an error if
1290 # an executable is not found, even if stderr is redirected.
1291 # Redirect stdin to placate older versions of autoconf. Sigh.
1292 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1294 echo "$ac_t""found" 1>&6
1296 MAKEINFO="$missing_dir/missing makeinfo"
1297 echo "$ac_t""missing" 1>&6
1300 install_sh="$missing_dir/install-sh"
1301 test -f "$install_sh" || install_sh="$missing_dir/install.sh"
1303 for ac_prog in gnutar gtar tar
1305 # Extract the first word of "$ac_prog", so it can be a program name with args.
1306 set dummy $ac_prog; ac_word=$2
1307 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1308 echo "configure:1309: checking for $ac_word" >&5
1309 if eval "test \"\${ac_cv_prog_AMTAR+set}\" = set"; then
1310 echo $ac_n "(cached) $ac_c" 1>&6
1312 if test -n "$AMTAR"; then
1313 ac_cv_prog_AMTAR="$AMTAR" # Let the user override the test.
1315 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1317 for ac_dir in $ac_dummy; do
1318 test -z "$ac_dir" && ac_dir=.
1319 if test -f $ac_dir/$ac_word; then
1320 ac_cv_prog_AMTAR="$ac_prog"
1327 AMTAR="$ac_cv_prog_AMTAR"
1328 if test -n "$AMTAR"; then
1329 echo "$ac_t""$AMTAR" 1>&6
1331 echo "$ac_t""no" 1>&6
1334 test -n "$AMTAR" && break
1339 if test -n "$AMTAR"; then
1340 if $SHELL -c "$AMTAR --version" > /dev/null 2>&1; then
1345 cat >> confdefs.h <<EOF
1346 #define OPENLDAP_PACKAGE "$PACKAGE"
1349 cat >> confdefs.h <<EOF
1350 #define OPENLDAP_VERSION "$VERSION"
1354 cat >> confdefs.h <<EOF
1355 #define LDAP_VENDOR_VERSION $OL_API_INC
1358 cat >> confdefs.h <<EOF
1359 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
1362 cat >> confdefs.h <<EOF
1363 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
1366 cat >> confdefs.h <<EOF
1367 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
1371 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
1373 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
1375 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
1379 echo $ac_n "checking configure arguments""... $ac_c" 1>&6
1380 echo "configure:1381: checking configure arguments" >&5
1385 ldap_subdir="/openldap"
1387 # Check whether --with-subdir or --without-subdir was given.
1388 if test "${with_subdir+set}" = set; then
1389 withval="$with_subdir"
1396 ldap_subdir="$withval"
1399 ldap_subdir="/$withval"
1406 # OpenLDAP --enable-debug
1407 # Check whether --enable-debug or --disable-debug was given.
1408 if test "${enable_debug+set}" = set; then
1409 enableval="$enable_debug"
1412 for ol_val in auto yes no ; do
1413 if test "$enableval" = "$ol_val" ; then
1417 if test "$ol_arg" = "invalid" ; then
1418 { echo "configure: error: bad value $enableval for --enable-debug" 1>&2; exit 1; }
1420 ol_enable_debug="$ol_arg"
1423 ol_enable_debug="yes"
1425 # end --enable-debug
1426 # OpenLDAP --enable-dynamic
1427 # Check whether --enable-dynamic or --disable-dynamic was given.
1428 if test "${enable_dynamic+set}" = set; then
1429 enableval="$enable_dynamic"
1432 for ol_val in auto yes no ; do
1433 if test "$enableval" = "$ol_val" ; then
1437 if test "$ol_arg" = "invalid" ; then
1438 { echo "configure: error: bad value $enableval for --enable-dynamic" 1>&2; exit 1; }
1440 ol_enable_dynamic="$ol_arg"
1443 ol_enable_dynamic="no"
1445 # end --enable-dynamic
1446 # OpenLDAP --enable-syslog
1447 # Check whether --enable-syslog or --disable-syslog was given.
1448 if test "${enable_syslog+set}" = set; then
1449 enableval="$enable_syslog"
1452 for ol_val in auto yes no ; do
1453 if test "$enableval" = "$ol_val" ; then
1457 if test "$ol_arg" = "invalid" ; then
1458 { echo "configure: error: bad value $enableval for --enable-syslog" 1>&2; exit 1; }
1460 ol_enable_syslog="$ol_arg"
1463 ol_enable_syslog="auto"
1465 # end --enable-syslog
1466 # OpenLDAP --enable-proctitle
1467 # Check whether --enable-proctitle or --disable-proctitle was given.
1468 if test "${enable_proctitle+set}" = set; then
1469 enableval="$enable_proctitle"
1472 for ol_val in auto yes no ; do
1473 if test "$enableval" = "$ol_val" ; then
1477 if test "$ol_arg" = "invalid" ; then
1478 { echo "configure: error: bad value $enableval for --enable-proctitle" 1>&2; exit 1; }
1480 ol_enable_proctitle="$ol_arg"
1483 ol_enable_proctitle="yes"
1485 # end --enable-proctitle
1486 ol_enable_referrals=${ol_enable_referrals-no}
1487 ol_enable_kbind=${ol_enable_kbind-no}
1488 # OpenLDAP --enable-ipv6
1489 # Check whether --enable-ipv6 or --disable-ipv6 was given.
1490 if test "${enable_ipv6+set}" = set; then
1491 enableval="$enable_ipv6"
1494 for ol_val in auto yes no ; do
1495 if test "$enableval" = "$ol_val" ; then
1499 if test "$ol_arg" = "invalid" ; then
1500 { echo "configure: error: bad value $enableval for --enable-ipv6" 1>&2; exit 1; }
1502 ol_enable_ipv6="$ol_arg"
1505 ol_enable_ipv6="auto"
1508 # OpenLDAP --enable-local
1509 # Check whether --enable-local or --disable-local was given.
1510 if test "${enable_local+set}" = set; then
1511 enableval="$enable_local"
1514 for ol_val in auto yes no ; do
1515 if test "$enableval" = "$ol_val" ; then
1519 if test "$ol_arg" = "invalid" ; then
1520 { echo "configure: error: bad value $enableval for --enable-local" 1>&2; exit 1; }
1522 ol_enable_local="$ol_arg"
1525 ol_enable_local="auto"
1527 # end --enable-local
1530 # OpenLDAP --with-cyrus_sasl
1531 # Check whether --with-cyrus_sasl or --without-cyrus_sasl was given.
1532 if test "${with_cyrus_sasl+set}" = set; then
1533 withval="$with_cyrus_sasl"
1536 for ol_val in auto yes no ; do
1537 if test "$withval" = "$ol_val" ; then
1541 if test "$ol_arg" = "invalid" ; then
1542 { echo "configure: error: bad value $withval for --with-cyrus_sasl" 1>&2; exit 1; }
1544 ol_with_cyrus_sasl="$ol_arg"
1547 ol_with_cyrus_sasl="auto"
1549 # end --with-cyrus_sasl
1551 # OpenLDAP --with-fetch
1552 # Check whether --with-fetch or --without-fetch was given.
1553 if test "${with_fetch+set}" = set; then
1554 withval="$with_fetch"
1557 for ol_val in auto yes no ; do
1558 if test "$withval" = "$ol_val" ; then
1562 if test "$ol_arg" = "invalid" ; then
1563 { echo "configure: error: bad value $withval for --with-fetch" 1>&2; exit 1; }
1565 ol_with_fetch="$ol_arg"
1568 ol_with_fetch="auto"
1572 ol_with_kerberos=${ol_with_kerberos-auto}
1573 # OpenLDAP --with-threads
1574 # Check whether --with-threads or --without-threads was given.
1575 if test "${with_threads+set}" = set; then
1576 withval="$with_threads"
1579 for ol_val in auto nt posix mach pth lwp yes no manual ; do
1580 if test "$withval" = "$ol_val" ; then
1584 if test "$ol_arg" = "invalid" ; then
1585 { echo "configure: error: bad value $withval for --with-threads" 1>&2; exit 1; }
1587 ol_with_threads="$ol_arg"
1590 ol_with_threads="auto"
1592 # end --with-threads
1594 # OpenLDAP --with-tls
1595 # Check whether --with-tls or --without-tls was given.
1596 if test "${with_tls+set}" = set; then
1600 for ol_val in auto ssleay openssl yes no ; do
1601 if test "$withval" = "$ol_val" ; then
1605 if test "$ol_arg" = "invalid" ; then
1606 { echo "configure: error: bad value $withval for --with-tls" 1>&2; exit 1; }
1608 ol_with_tls="$ol_arg"
1615 # OpenLDAP --with-yielding_select
1616 # Check whether --with-yielding_select or --without-yielding_select was given.
1617 if test "${with_yielding_select+set}" = set; then
1618 withval="$with_yielding_select"
1621 for ol_val in auto yes no manual ; do
1622 if test "$withval" = "$ol_val" ; then
1626 if test "$ol_arg" = "invalid" ; then
1627 { echo "configure: error: bad value $withval for --with-yielding_select" 1>&2; exit 1; }
1629 ol_with_yielding_select="$ol_arg"
1632 ol_with_yielding_select="auto"
1634 # end --with-yielding_select
1636 # OpenLDAP --with-multiple_precision
1637 # Check whether --with-multiple_precision or --without-multiple_precision was given.
1638 if test "${with_multiple_precision+set}" = set; then
1639 withval="$with_multiple_precision"
1642 for ol_val in auto bignum gmp yes no ; do
1643 if test "$withval" = "$ol_val" ; then
1647 if test "$ol_arg" = "invalid" ; then
1648 { echo "configure: error: bad value $withval for --with-multiple_precision" 1>&2; exit 1; }
1650 ol_with_multiple_precision="$ol_arg"
1653 ol_with_multiple_precision="auto"
1655 # end --with-multiple_precision
1659 # Check whether --with-xxslapdoptions or --without-xxslapdoptions was given.
1660 if test "${with_xxslapdoptions+set}" = set; then
1661 withval="$with_xxslapdoptions"
1665 # OpenLDAP --enable-slapd
1666 # Check whether --enable-slapd or --disable-slapd was given.
1667 if test "${enable_slapd+set}" = set; then
1668 enableval="$enable_slapd"
1671 for ol_val in auto yes no ; do
1672 if test "$enableval" = "$ol_val" ; then
1676 if test "$ol_arg" = "invalid" ; then
1677 { echo "configure: error: bad value $enableval for --enable-slapd" 1>&2; exit 1; }
1679 ol_enable_slapd="$ol_arg"
1682 ol_enable_slapd="yes"
1684 # end --enable-slapd
1685 # OpenLDAP --enable-aci
1686 # Check whether --enable-aci or --disable-aci was given.
1687 if test "${enable_aci+set}" = set; then
1688 enableval="$enable_aci"
1691 for ol_val in auto yes no ; do
1692 if test "$enableval" = "$ol_val" ; then
1696 if test "$ol_arg" = "invalid" ; then
1697 { echo "configure: error: bad value $enableval for --enable-aci" 1>&2; exit 1; }
1699 ol_enable_aci="$ol_arg"
1705 # OpenLDAP --enable-cleartext
1706 # Check whether --enable-cleartext or --disable-cleartext was given.
1707 if test "${enable_cleartext+set}" = set; then
1708 enableval="$enable_cleartext"
1711 for ol_val in auto yes no ; do
1712 if test "$enableval" = "$ol_val" ; then
1716 if test "$ol_arg" = "invalid" ; then
1717 { echo "configure: error: bad value $enableval for --enable-cleartext" 1>&2; exit 1; }
1719 ol_enable_cleartext="$ol_arg"
1722 ol_enable_cleartext="yes"
1724 # end --enable-cleartext
1725 # OpenLDAP --enable-crypt
1726 # Check whether --enable-crypt or --disable-crypt was given.
1727 if test "${enable_crypt+set}" = set; then
1728 enableval="$enable_crypt"
1731 for ol_val in auto yes no ; do
1732 if test "$enableval" = "$ol_val" ; then
1736 if test "$ol_arg" = "invalid" ; then
1737 { echo "configure: error: bad value $enableval for --enable-crypt" 1>&2; exit 1; }
1739 ol_enable_crypt="$ol_arg"
1742 ol_enable_crypt="no"
1744 # end --enable-crypt
1745 # OpenLDAP --enable-lmpasswd
1746 # Check whether --enable-lmpasswd or --disable-lmpasswd was given.
1747 if test "${enable_lmpasswd+set}" = set; then
1748 enableval="$enable_lmpasswd"
1751 for ol_val in auto yes no ; do
1752 if test "$enableval" = "$ol_val" ; then
1756 if test "$ol_arg" = "invalid" ; then
1757 { echo "configure: error: bad value $enableval for --enable-lmpasswd" 1>&2; exit 1; }
1759 ol_enable_lmpasswd="$ol_arg"
1762 ol_enable_lmpasswd="no"
1764 # end --enable-lmpasswd
1765 # OpenLDAP --enable-spasswd
1766 # Check whether --enable-spasswd or --disable-spasswd was given.
1767 if test "${enable_spasswd+set}" = set; then
1768 enableval="$enable_spasswd"
1771 for ol_val in auto yes no ; do
1772 if test "$enableval" = "$ol_val" ; then
1776 if test "$ol_arg" = "invalid" ; then
1777 { echo "configure: error: bad value $enableval for --enable-spasswd" 1>&2; exit 1; }
1779 ol_enable_spasswd="$ol_arg"
1782 ol_enable_spasswd="no"
1784 # end --enable-spasswd
1785 # OpenLDAP --enable-modules
1786 # Check whether --enable-modules or --disable-modules was given.
1787 if test "${enable_modules+set}" = set; then
1788 enableval="$enable_modules"
1791 for ol_val in auto yes no ; do
1792 if test "$enableval" = "$ol_val" ; then
1796 if test "$ol_arg" = "invalid" ; then
1797 { echo "configure: error: bad value $enableval for --enable-modules" 1>&2; exit 1; }
1799 ol_enable_modules="$ol_arg"
1802 ol_enable_modules="no"
1804 # end --enable-modules
1805 ol_enable_multimaster=${ol_enable_multimaster-no}
1806 # OpenLDAP --enable-rewrite
1807 # Check whether --enable-rewrite or --disable-rewrite was given.
1808 if test "${enable_rewrite+set}" = set; then
1809 enableval="$enable_rewrite"
1812 for ol_val in auto yes no ; do
1813 if test "$enableval" = "$ol_val" ; then
1817 if test "$ol_arg" = "invalid" ; then
1818 { echo "configure: error: bad value $enableval for --enable-rewrite" 1>&2; exit 1; }
1820 ol_enable_rewrite="$ol_arg"
1823 ol_enable_rewrite="auto"
1825 # end --enable-rewrite
1826 # OpenLDAP --enable-rlookups
1827 # Check whether --enable-rlookups or --disable-rlookups was given.
1828 if test "${enable_rlookups+set}" = set; then
1829 enableval="$enable_rlookups"
1832 for ol_val in auto yes no ; do
1833 if test "$enableval" = "$ol_val" ; then
1837 if test "$ol_arg" = "invalid" ; then
1838 { echo "configure: error: bad value $enableval for --enable-rlookups" 1>&2; exit 1; }
1840 ol_enable_rlookups="$ol_arg"
1843 ol_enable_rlookups="no"
1845 # end --enable-rlookups
1846 # OpenLDAP --enable-slapi
1847 # Check whether --enable-slapi or --disable-slapi was given.
1848 if test "${enable_slapi+set}" = set; then
1849 enableval="$enable_slapi"
1852 for ol_val in auto yes no ; do
1853 if test "$enableval" = "$ol_val" ; then
1857 if test "$ol_arg" = "invalid" ; then
1858 { echo "configure: error: bad value $enableval for --enable-slapi" 1>&2; exit 1; }
1860 ol_enable_slapi="$ol_arg"
1863 ol_enable_slapi="no"
1865 # end --enable-slapi
1866 # OpenLDAP --enable-slp
1867 # Check whether --enable-slp or --disable-slp was given.
1868 if test "${enable_slp+set}" = set; then
1869 enableval="$enable_slp"
1872 for ol_val in auto yes no ; do
1873 if test "$enableval" = "$ol_val" ; then
1877 if test "$ol_arg" = "invalid" ; then
1878 { echo "configure: error: bad value $enableval for --enable-slp" 1>&2; exit 1; }
1880 ol_enable_slp="$ol_arg"
1886 # OpenLDAP --enable-wrappers
1887 # Check whether --enable-wrappers or --disable-wrappers was given.
1888 if test "${enable_wrappers+set}" = set; then
1889 enableval="$enable_wrappers"
1892 for ol_val in auto yes no ; do
1893 if test "$enableval" = "$ol_val" ; then
1897 if test "$ol_arg" = "invalid" ; then
1898 { echo "configure: error: bad value $enableval for --enable-wrappers" 1>&2; exit 1; }
1900 ol_enable_wrappers="$ol_arg"
1903 ol_enable_wrappers="no"
1905 # end --enable-wrappers
1907 Backends="bdb dnssrv hdb ldap ldbm meta monitor null \
1908 passwd perl relay shell sql"
1910 # Check whether --with-xxslapbackends or --without-xxslapbackends was given.
1911 if test "${with_xxslapbackends+set}" = set; then
1912 withval="$with_xxslapbackends"
1917 # OpenLDAP --enable-backends
1918 # Check whether --enable-backends or --disable-backends was given.
1919 if test "${enable_backends+set}" = set; then
1920 enableval="$enable_backends"
1923 for ol_val in no yes mod ; do
1924 if test "$enableval" = "$ol_val" ; then
1928 if test "$ol_arg" = "invalid" ; then
1929 { echo "configure: error: bad value $enableval for --enable-backends" 1>&2; exit 1; }
1931 ol_enable_backends="$ol_arg"
1934 ol_enable_backends="no"
1936 # end --enable-backends
1937 # OpenLDAP --enable-bdb
1938 # Check whether --enable-bdb or --disable-bdb was given.
1939 if test "${enable_bdb+set}" = set; then
1940 enableval="$enable_bdb"
1943 for ol_val in no yes mod ; do
1944 if test "$enableval" = "$ol_val" ; then
1948 if test "$ol_arg" = "invalid" ; then
1949 { echo "configure: error: bad value $enableval for --enable-bdb" 1>&2; exit 1; }
1951 ol_enable_bdb="$ol_arg"
1957 # OpenLDAP --enable-dnssrv
1958 # Check whether --enable-dnssrv or --disable-dnssrv was given.
1959 if test "${enable_dnssrv+set}" = set; then
1960 enableval="$enable_dnssrv"
1963 for ol_val in no yes mod ; do
1964 if test "$enableval" = "$ol_val" ; then
1968 if test "$ol_arg" = "invalid" ; then
1969 { echo "configure: error: bad value $enableval for --enable-dnssrv" 1>&2; exit 1; }
1971 ol_enable_dnssrv="$ol_arg"
1974 ol_enable_dnssrv="no"
1976 # end --enable-dnssrv
1977 # OpenLDAP --enable-hdb
1978 # Check whether --enable-hdb or --disable-hdb was given.
1979 if test "${enable_hdb+set}" = set; then
1980 enableval="$enable_hdb"
1983 for ol_val in no yes mod ; do
1984 if test "$enableval" = "$ol_val" ; then
1988 if test "$ol_arg" = "invalid" ; then
1989 { echo "configure: error: bad value $enableval for --enable-hdb" 1>&2; exit 1; }
1991 ol_enable_hdb="$ol_arg"
1997 # OpenLDAP --enable-ldap
1998 # Check whether --enable-ldap or --disable-ldap was given.
1999 if test "${enable_ldap+set}" = set; then
2000 enableval="$enable_ldap"
2003 for ol_val in no yes mod ; do
2004 if test "$enableval" = "$ol_val" ; then
2008 if test "$ol_arg" = "invalid" ; then
2009 { echo "configure: error: bad value $enableval for --enable-ldap" 1>&2; exit 1; }
2011 ol_enable_ldap="$ol_arg"
2017 # OpenLDAP --enable-ldbm
2018 # Check whether --enable-ldbm or --disable-ldbm was given.
2019 if test "${enable_ldbm+set}" = set; then
2020 enableval="$enable_ldbm"
2023 for ol_val in no yes mod ; do
2024 if test "$enableval" = "$ol_val" ; then
2028 if test "$ol_arg" = "invalid" ; then
2029 { echo "configure: error: bad value $enableval for --enable-ldbm" 1>&2; exit 1; }
2031 ol_enable_ldbm="$ol_arg"
2037 # OpenLDAP --with-ldbm_api
2038 # Check whether --with-ldbm_api or --without-ldbm_api was given.
2039 if test "${with_ldbm_api+set}" = set; then
2040 withval="$with_ldbm_api"
2043 for ol_val in auto berkeley bcompat mdbm gdbm ; do
2044 if test "$withval" = "$ol_val" ; then
2048 if test "$ol_arg" = "invalid" ; then
2049 { echo "configure: error: bad value $withval for --with-ldbm_api" 1>&2; exit 1; }
2051 ol_with_ldbm_api="$ol_arg"
2054 ol_with_ldbm_api="auto"
2056 # end --with-ldbm_api
2058 # OpenLDAP --with-ldbm_type
2059 # Check whether --with-ldbm_type or --without-ldbm_type was given.
2060 if test "${with_ldbm_type+set}" = set; then
2061 withval="$with_ldbm_type"
2064 for ol_val in auto btree hash ; do
2065 if test "$withval" = "$ol_val" ; then
2069 if test "$ol_arg" = "invalid" ; then
2070 { echo "configure: error: bad value $withval for --with-ldbm_type" 1>&2; exit 1; }
2072 ol_with_ldbm_type="$ol_arg"
2075 ol_with_ldbm_type="auto"
2077 # end --with-ldbm_type
2079 # OpenLDAP --enable-meta
2080 # Check whether --enable-meta or --disable-meta was given.
2081 if test "${enable_meta+set}" = set; then
2082 enableval="$enable_meta"
2085 for ol_val in no yes mod ; do
2086 if test "$enableval" = "$ol_val" ; then
2090 if test "$ol_arg" = "invalid" ; then
2091 { echo "configure: error: bad value $enableval for --enable-meta" 1>&2; exit 1; }
2093 ol_enable_meta="$ol_arg"
2099 # OpenLDAP --enable-monitor
2100 # Check whether --enable-monitor or --disable-monitor was given.
2101 if test "${enable_monitor+set}" = set; then
2102 enableval="$enable_monitor"
2105 for ol_val in no yes mod ; do
2106 if test "$enableval" = "$ol_val" ; then
2110 if test "$ol_arg" = "invalid" ; then
2111 { echo "configure: error: bad value $enableval for --enable-monitor" 1>&2; exit 1; }
2113 ol_enable_monitor="$ol_arg"
2116 ol_enable_monitor="yes"
2118 # end --enable-monitor
2119 # OpenLDAP --enable-null
2120 # Check whether --enable-null or --disable-null was given.
2121 if test "${enable_null+set}" = set; then
2122 enableval="$enable_null"
2125 for ol_val in no yes mod ; do
2126 if test "$enableval" = "$ol_val" ; then
2130 if test "$ol_arg" = "invalid" ; then
2131 { echo "configure: error: bad value $enableval for --enable-null" 1>&2; exit 1; }
2133 ol_enable_null="$ol_arg"
2139 # OpenLDAP --enable-passwd
2140 # Check whether --enable-passwd or --disable-passwd was given.
2141 if test "${enable_passwd+set}" = set; then
2142 enableval="$enable_passwd"
2145 for ol_val in no yes mod ; do
2146 if test "$enableval" = "$ol_val" ; then
2150 if test "$ol_arg" = "invalid" ; then
2151 { echo "configure: error: bad value $enableval for --enable-passwd" 1>&2; exit 1; }
2153 ol_enable_passwd="$ol_arg"
2156 ol_enable_passwd="no"
2158 # end --enable-passwd
2159 # OpenLDAP --enable-perl
2160 # Check whether --enable-perl or --disable-perl was given.
2161 if test "${enable_perl+set}" = set; then
2162 enableval="$enable_perl"
2165 for ol_val in no yes mod ; do
2166 if test "$enableval" = "$ol_val" ; then
2170 if test "$ol_arg" = "invalid" ; then
2171 { echo "configure: error: bad value $enableval for --enable-perl" 1>&2; exit 1; }
2173 ol_enable_perl="$ol_arg"
2179 # OpenLDAP --enable-relay
2180 # Check whether --enable-relay or --disable-relay was given.
2181 if test "${enable_relay+set}" = set; then
2182 enableval="$enable_relay"
2185 for ol_val in no yes mod ; do
2186 if test "$enableval" = "$ol_val" ; then
2190 if test "$ol_arg" = "invalid" ; then
2191 { echo "configure: error: bad value $enableval for --enable-relay" 1>&2; exit 1; }
2193 ol_enable_relay="$ol_arg"
2196 ol_enable_relay="yes"
2198 # end --enable-relay
2199 # OpenLDAP --enable-shell
2200 # Check whether --enable-shell or --disable-shell was given.
2201 if test "${enable_shell+set}" = set; then
2202 enableval="$enable_shell"
2205 for ol_val in no yes mod ; do
2206 if test "$enableval" = "$ol_val" ; then
2210 if test "$ol_arg" = "invalid" ; then
2211 { echo "configure: error: bad value $enableval for --enable-shell" 1>&2; exit 1; }
2213 ol_enable_shell="$ol_arg"
2216 ol_enable_shell="no"
2218 # end --enable-shell
2219 # OpenLDAP --enable-sql
2220 # Check whether --enable-sql or --disable-sql was given.
2221 if test "${enable_sql+set}" = set; then
2222 enableval="$enable_sql"
2225 for ol_val in no yes mod ; do
2226 if test "$enableval" = "$ol_val" ; then
2230 if test "$ol_arg" = "invalid" ; then
2231 { echo "configure: error: bad value $enableval for --enable-sql" 1>&2; exit 1; }
2233 ol_enable_sql="$ol_arg"
2240 Overlays="denyop dyngroup glue lastmod ppolicy proxycache rwm \
2241 refint syncprov unique"
2243 # Check whether --with-xxslapoverlays or --without-xxslapoverlays was given.
2244 if test "${with_xxslapoverlays+set}" = set; then
2245 withval="$with_xxslapoverlays"
2250 # OpenLDAP --enable-overlays
2251 # Check whether --enable-overlays or --disable-overlays was given.
2252 if test "${enable_overlays+set}" = set; then
2253 enableval="$enable_overlays"
2256 for ol_val in no yes mod ; do
2257 if test "$enableval" = "$ol_val" ; then
2261 if test "$ol_arg" = "invalid" ; then
2262 { echo "configure: error: bad value $enableval for --enable-overlays" 1>&2; exit 1; }
2264 ol_enable_overlays="$ol_arg"
2267 ol_enable_overlays="no"
2269 # end --enable-overlays
2270 # OpenLDAP --enable-denyop
2271 # Check whether --enable-denyop or --disable-denyop was given.
2272 if test "${enable_denyop+set}" = set; then
2273 enableval="$enable_denyop"
2276 for ol_val in no yes mod ; do
2277 if test "$enableval" = "$ol_val" ; then
2281 if test "$ol_arg" = "invalid" ; then
2282 { echo "configure: error: bad value $enableval for --enable-denyop" 1>&2; exit 1; }
2284 ol_enable_denyop="$ol_arg"
2287 ol_enable_denyop="no"
2289 # end --enable-denyop
2291 # OpenLDAP --enable-dyngroup
2292 # Check whether --enable-dyngroup or --disable-dyngroup was given.
2293 if test "${enable_dyngroup+set}" = set; then
2294 enableval="$enable_dyngroup"
2297 for ol_val in no yes mod ; do
2298 if test "$enableval" = "$ol_val" ; then
2302 if test "$ol_arg" = "invalid" ; then
2303 { echo "configure: error: bad value $enableval for --enable-dyngroup" 1>&2; exit 1; }
2305 ol_enable_dyngroup="$ol_arg"
2308 ol_enable_dyngroup="no"
2310 # end --enable-dyngroup
2312 # OpenLDAP --enable-glue
2313 # Check whether --enable-glue or --disable-glue was given.
2314 if test "${enable_glue+set}" = set; then
2315 enableval="$enable_glue"
2318 for ol_val in no yes mod ; do
2319 if test "$enableval" = "$ol_val" ; then
2323 if test "$ol_arg" = "invalid" ; then
2324 { echo "configure: error: bad value $enableval for --enable-glue" 1>&2; exit 1; }
2326 ol_enable_glue="$ol_arg"
2329 ol_enable_glue="yes"
2333 # OpenLDAP --enable-lastmod
2334 # Check whether --enable-lastmod or --disable-lastmod was given.
2335 if test "${enable_lastmod+set}" = set; then
2336 enableval="$enable_lastmod"
2339 for ol_val in no yes mod ; do
2340 if test "$enableval" = "$ol_val" ; then
2344 if test "$ol_arg" = "invalid" ; then
2345 { echo "configure: error: bad value $enableval for --enable-lastmod" 1>&2; exit 1; }
2347 ol_enable_lastmod="$ol_arg"
2350 ol_enable_lastmod="no"
2352 # end --enable-lastmod
2354 # OpenLDAP --enable-ppolicy
2355 # Check whether --enable-ppolicy or --disable-ppolicy was given.
2356 if test "${enable_ppolicy+set}" = set; then
2357 enableval="$enable_ppolicy"
2360 for ol_val in no yes mod ; do
2361 if test "$enableval" = "$ol_val" ; then
2365 if test "$ol_arg" = "invalid" ; then
2366 { echo "configure: error: bad value $enableval for --enable-ppolicy" 1>&2; exit 1; }
2368 ol_enable_ppolicy="$ol_arg"
2371 ol_enable_ppolicy="no"
2373 # end --enable-ppolicy
2375 # OpenLDAP --enable-proxycache
2376 # Check whether --enable-proxycache or --disable-proxycache was given.
2377 if test "${enable_proxycache+set}" = set; then
2378 enableval="$enable_proxycache"
2381 for ol_val in no yes mod ; do
2382 if test "$enableval" = "$ol_val" ; then
2386 if test "$ol_arg" = "invalid" ; then
2387 { echo "configure: error: bad value $enableval for --enable-proxycache" 1>&2; exit 1; }
2389 ol_enable_proxycache="$ol_arg"
2392 ol_enable_proxycache="no"
2394 # end --enable-proxycache
2396 # OpenLDAP --enable-refint
2397 # Check whether --enable-refint or --disable-refint was given.
2398 if test "${enable_refint+set}" = set; then
2399 enableval="$enable_refint"
2402 for ol_val in no yes mod ; do
2403 if test "$enableval" = "$ol_val" ; then
2407 if test "$ol_arg" = "invalid" ; then
2408 { echo "configure: error: bad value $enableval for --enable-refint" 1>&2; exit 1; }
2410 ol_enable_refint="$ol_arg"
2413 ol_enable_refint="no"
2415 # end --enable-refint
2417 # OpenLDAP --enable-rwm
2418 # Check whether --enable-rwm or --disable-rwm was given.
2419 if test "${enable_rwm+set}" = set; then
2420 enableval="$enable_rwm"
2423 for ol_val in no yes mod ; do
2424 if test "$enableval" = "$ol_val" ; then
2428 if test "$ol_arg" = "invalid" ; then
2429 { echo "configure: error: bad value $enableval for --enable-rwm" 1>&2; exit 1; }
2431 ol_enable_rwm="$ol_arg"
2438 # OpenLDAP --enable-syncprov
2439 # Check whether --enable-syncprov or --disable-syncprov was given.
2440 if test "${enable_syncprov+set}" = set; then
2441 enableval="$enable_syncprov"
2444 for ol_val in no yes mod ; do
2445 if test "$enableval" = "$ol_val" ; then
2449 if test "$ol_arg" = "invalid" ; then
2450 { echo "configure: error: bad value $enableval for --enable-syncprov" 1>&2; exit 1; }
2452 ol_enable_syncprov="$ol_arg"
2455 ol_enable_syncprov="yes"
2457 # end --enable-syncprov
2459 # OpenLDAP --enable-unique
2460 # Check whether --enable-unique or --disable-unique was given.
2461 if test "${enable_unique+set}" = set; then
2462 enableval="$enable_unique"
2465 for ol_val in no yes mod ; do
2466 if test "$enableval" = "$ol_val" ; then
2470 if test "$ol_arg" = "invalid" ; then
2471 { echo "configure: error: bad value $enableval for --enable-unique" 1>&2; exit 1; }
2473 ol_enable_unique="$ol_arg"
2476 ol_enable_unique="no"
2478 # end --enable-unique
2482 # Check whether --with-xxslurpdoptions or --without-xxslurpdoptions was given.
2483 if test "${with_xxslurpdoptions+set}" = set; then
2484 withval="$with_xxslurpdoptions"
2488 # OpenLDAP --enable-slurpd
2489 # Check whether --enable-slurpd or --disable-slurpd was given.
2490 if test "${enable_slurpd+set}" = set; then
2491 enableval="$enable_slurpd"
2494 for ol_val in auto yes no ; do
2495 if test "$enableval" = "$ol_val" ; then
2499 if test "$ol_arg" = "invalid" ; then
2500 { echo "configure: error: bad value $enableval for --enable-slurpd" 1>&2; exit 1; }
2502 ol_enable_slurpd="$ol_arg"
2505 ol_enable_slurpd="auto"
2507 # end --enable-slurpd
2509 # Check whether --with-xxliboptions or --without-xxliboptions was given.
2510 if test "${with_xxliboptions+set}" = set; then
2511 withval="$with_xxliboptions"
2515 # Check whether --enable-static or --disable-static was given.
2516 if test "${enable_static+set}" = set; then
2517 enableval="$enable_static"
2518 p=${PACKAGE-default}
2520 yes) enable_static=yes ;;
2521 no) enable_static=no ;;
2524 # Look at the argument we got. We use all the common list separators.
2525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2526 for pkg in $enableval; do
2527 if test "X$pkg" = "X$p"; then
2538 # Check whether --enable-shared or --disable-shared was given.
2539 if test "${enable_shared+set}" = set; then
2540 enableval="$enable_shared"
2541 p=${PACKAGE-default}
2543 yes) enable_shared=yes ;;
2544 no) enable_shared=no ;;
2547 # Look at the argument we got. We use all the common list separators.
2548 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2549 for pkg in $enableval; do
2550 if test "X$pkg" = "X$p"; then
2563 # Activate any backends that were not explicitly enabled.
2564 # Note that back_bdb defaults to "yes" so this loop won't touch it.
2565 if test $ol_enable_backends != no ; then
2566 for i in $Backends; do
2567 eval "ol_tmp=\$ol_enable_$i"
2568 if test $ol_tmp = no ; then
2569 eval "ol_enable_$i=$ol_enable_backends"
2573 # Activate the overlays
2574 if test $ol_enable_overlays != no ; then
2575 for i in $Overlays; do
2576 eval "ol_tmp=\$ol_enable_$i"
2577 if test $ol_tmp = no ; then
2578 eval "ol_enable_$i=$ol_enable_overlays"
2584 if test $ol_enable_slapd = no ; then
2585 if test $ol_enable_slapi = yes ; then
2586 echo "configure: warning: slapd disabled, ignoring --enable-slapi argument" 1>&2
2588 if test $ol_enable_backends != no ; then
2589 echo "configure: warning: slapd disabled, ignoring --enable-backends argument" 1>&2
2591 for i in $Backends; do
2592 eval "ol_tmp=\$ol_enable_$i"
2593 if test $ol_tmp != no ; then
2594 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2595 eval "ol_enable_$i=no"
2598 if test $ol_enable_modules = yes ; then
2599 echo "configure: warning: slapd disabled, ignoring --enable-modules argument" 1>&2
2601 if test $ol_enable_multimaster = yes ; then
2602 echo "configure: warning: slapd disabled, ignoring --enable-multimaster argument" 1>&2
2604 if test $ol_enable_wrappers = yes ; then
2605 echo "configure: warning: slapd disabled, ignoring --enable-wrappers argument" 1>&2
2607 if test $ol_enable_rlookups = yes ; then
2608 echo "configure: warning: slapd disabled, ignoring --enable-rlookups argument" 1>&2
2610 if test $ol_enable_aci = yes ; then
2611 echo "configure: warning: slapd disabled, ignoring --enable-aci argument" 1>&2
2613 if test $ol_with_ldbm_api != auto ; then
2614 echo "configure: warning: slapd disabled, ignoring --with-ldbm-api argument" 1>&2
2616 if test $ol_with_ldbm_type != auto ; then
2617 echo "configure: warning: slapd disabled, ignoring --with-ldbm-type argument" 1>&2
2619 if test $ol_enable_slurpd = yes ; then
2620 { echo "configure: error: slurpd requires slapd" 1>&2; exit 1; }
2622 if test $ol_enable_rewrite = yes ; then
2623 echo "configure: warning: slapd disabled, ignoring --enable-rewrite argument" 1>&2
2625 if test $ol_enable_overlays != no ; then
2626 echo "configure: warning: slapd disabled, ignoring --enable-overlays argument" 1>&2
2628 for i in $Overlays; do
2629 eval "ol_tmp=\$ol_enable_$i"
2630 if test $ol_tmp != no ; then
2631 echo "configure: warning: slapd disabled, ignoring --enable-$i argument" 1>&2
2632 eval "ol_enable_$i=no"
2636 # force settings to no
2639 ol_enable_backends=no
2640 ol_enable_overlays=no
2641 ol_enable_modules=no
2642 ol_enable_multimaster=no
2643 ol_enable_rlookups=no
2645 ol_enable_wrappers=no
2648 ol_with_ldbm_type=no
2652 ol_enable_rewrite=no
2654 elif test $ol_enable_ldbm = no ; then
2656 if test $ol_with_ldbm_api != auto ; then
2657 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-api argument" 1>&2
2660 if test $ol_with_ldbm_type != auto ; then
2661 echo "configure: warning: LDBM disabled, ignoring --with-ldbm-type argument" 1>&2
2664 if test $ol_enable_modules != yes -a \
2665 $ol_enable_bdb = no -a \
2666 $ol_enable_dnssrv = no -a \
2667 $ol_enable_hdb = no -a \
2668 $ol_enable_ldap = no -a \
2669 $ol_enable_meta = no -a \
2670 $ol_enable_monitor = no -a \
2671 $ol_enable_null = no -a \
2672 $ol_enable_passwd = no -a \
2673 $ol_enable_perl = no -a \
2674 $ol_enable_relay = no -a \
2675 $ol_enable_shell = no -a \
2676 $ol_enable_sql = no ; then
2678 if test $ol_enable_slapd = yes ; then
2679 { echo "configure: error: slapd requires a backend" 1>&2; exit 1; }
2681 echo "configure: warning: skipping slapd, no backend specified" 1>&2
2687 ol_with_ldbm_type=no
2689 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
2690 ol_with_ldbm_api=berkeley
2694 if test $ol_with_ldbm_api = gdbm -a \
2695 $ol_with_ldbm_type = btree ; then
2696 { echo "configure: error: GDBM only supports LDBM type hash" 1>&2; exit 1; }
2698 if test $ol_with_ldbm_api = mdbm -a \
2699 $ol_with_ldbm_type = btree ; then
2700 { echo "configure: error: MDBM only supports LDBM type hash" 1>&2; exit 1; }
2702 if test $ol_with_ldbm_api = ndbm -a \
2703 $ol_with_ldbm_type = btree ; then
2704 { echo "configure: error: NDBM only supports LDBM type hash" 1>&2; exit 1; }
2707 if test $ol_enable_bdb != no -o $ol_enable_hdb != no ; then
2708 if test $ol_with_ldbm_api = auto ; then
2709 ol_with_ldbm_api=berkeley
2710 elif test $ol_with_ldbm_api != berkeley ; then
2711 { echo "configure: error: LDBM API not compatible with BDB/HDB" 1>&2; exit 1; }
2716 if test $ol_enable_meta = yes -a $ol_enable_ldap = no ; then
2717 { echo "configure: error: --enable-meta requires --enable-ldap" 1>&2; exit 1; }
2720 if test $ol_enable_slurpd = yes ; then
2721 if test $ol_with_threads = no ; then
2722 { echo "configure: error: slurpd requires threads" 1>&2; exit 1; }
2726 if test $ol_enable_lmpasswd = yes ; then
2727 if test $ol_with_tls = no ; then
2728 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
2732 if test $ol_enable_kbind = yes ; then
2733 if test $ol_with_kerberos = no ; then
2734 { echo "configure: error: options require --with-kerberos" 1>&2; exit 1; }
2735 elif test $ol_with_kerberos = auto ; then
2736 ol_with_kerberos=yes
2739 elif test $ol_enable_kbind = no ; then
2740 if test $ol_with_kerberos = auto ; then
2742 elif test $ol_with_kerberos != no ; then
2743 echo "configure: warning: Kerberos detection enabled unnecessarily" 1>&2;
2748 if test $ol_enable_spasswd = yes ; then
2749 if test $ol_with_cyrus_sasl = no ; then
2750 { echo "configure: error: options require --with-cyrus-sasl" 1>&2; exit 1; }
2752 ol_with_cyrus_sasl=yes
2755 echo "$ac_t""done" 1>&6
2799 SLAPD_DYNAMIC_OVERLAYS=
2801 SLAPD_MODULES_LDFLAGS=
2802 SLAPD_MODULES_CPPFLAGS=
2804 SLAPD_STATIC_BACKENDS=
2805 SLAPD_DYNAMIC_BACKENDS=
2829 cat >> confdefs.h <<\EOF
2830 #define HAVE_MKVERSION 1
2838 *-*-aix*) if test -z "$CC" ; then
2839 case "$ol_with_threads" in
2840 auto | yes | posix) ol_aix_threads=yes ;;
2846 if test $ol_aix_threads = yes ; then
2847 if test -z "${CC}" ; then
2848 for ac_prog in cc_r xlc_r cc
2850 # Extract the first word of "$ac_prog", so it can be a program name with args.
2851 set dummy $ac_prog; ac_word=$2
2852 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2853 echo "configure:2854: checking for $ac_word" >&5
2854 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2855 echo $ac_n "(cached) $ac_c" 1>&6
2857 if test -n "$CC"; then
2858 ac_cv_prog_CC="$CC" # Let the user override the test.
2860 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2862 for ac_dir in $ac_dummy; do
2863 test -z "$ac_dir" && ac_dir=.
2864 if test -f $ac_dir/$ac_word; then
2865 ac_cv_prog_CC="$ac_prog"
2873 if test -n "$CC"; then
2874 echo "$ac_t""$CC" 1>&6
2876 echo "$ac_t""no" 1>&6
2879 test -n "$CC" && break
2883 if test "$CC" = cc ; then
2884 if test $ol_with_threads != auto ; then
2885 { echo "configure: error: --with-threads requires cc_r (or other suitable compiler) on AIX" 1>&2; exit 1; }
2887 echo "configure: warning: disabling threads, no cc_r on AIX" 1>&2
2893 if test "${CC}" = "cc_r" -o "${CC}" = "xlc_r" ; then
2894 ol_with_threads=posix
2895 ol_cv_pthread_create=yes
2899 if test -z "${CC}"; then
2900 for ac_prog in cc gcc
2902 # Extract the first word of "$ac_prog", so it can be a program name with args.
2903 set dummy $ac_prog; ac_word=$2
2904 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2905 echo "configure:2906: checking for $ac_word" >&5
2906 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
2907 echo $ac_n "(cached) $ac_c" 1>&6
2909 if test -n "$CC"; then
2910 ac_cv_prog_CC="$CC" # Let the user override the test.
2912 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2914 for ac_dir in $ac_dummy; do
2915 test -z "$ac_dir" && ac_dir=.
2916 if test -f $ac_dir/$ac_word; then
2917 ac_cv_prog_CC="$ac_prog"
2925 if test -n "$CC"; then
2926 echo "$ac_t""$CC" 1>&6
2928 echo "$ac_t""no" 1>&6
2931 test -n "$CC" && break
2933 test -n "$CC" || CC="missing"
2936 if test "${CC}" = "missing" ; then
2937 { echo "configure: error: Unable to locate cc(1) or suitable replacement. Check PATH or set CC." 1>&2; exit 1; }
2941 if test -z "${AR}"; then
2942 for ac_prog in ar gar
2944 # Extract the first word of "$ac_prog", so it can be a program name with args.
2945 set dummy $ac_prog; ac_word=$2
2946 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2947 echo "configure:2948: checking for $ac_word" >&5
2948 if eval "test \"\${ac_cv_prog_AR+set}\" = set"; then
2949 echo $ac_n "(cached) $ac_c" 1>&6
2951 if test -n "$AR"; then
2952 ac_cv_prog_AR="$AR" # Let the user override the test.
2954 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2956 for ac_dir in $ac_dummy; do
2957 test -z "$ac_dir" && ac_dir=.
2958 if test -f $ac_dir/$ac_word; then
2959 ac_cv_prog_AR="$ac_prog"
2967 if test -n "$AR"; then
2968 echo "$ac_t""$AR" 1>&6
2970 echo "$ac_t""no" 1>&6
2973 test -n "$AR" && break
2975 test -n "$AR" || AR="missing"
2978 if test "${AR}" = "missing" ; then
2979 { echo "configure: error: Unable to locate ar(1) or suitable replacement. Check PATH or set AR." 1>&2; exit 1; }
2985 # Find the correct PATH separator. Usually this is `:', but
2986 # DJGPP uses `;' like DOS.
2987 if test "X${PATH_SEPARATOR+set}" != Xset; then
2988 UNAME=${UNAME-`uname 2>/dev/null`}
2990 *-DOS) lt_cv_sys_path_separator=';' ;;
2991 *) lt_cv_sys_path_separator=':' ;;
2993 PATH_SEPARATOR=$lt_cv_sys_path_separator
2996 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
2997 echo "configure:2998: checking for Cygwin environment" >&5
2998 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
2999 echo $ac_n "(cached) $ac_c" 1>&6
3001 cat > conftest.$ac_ext <<EOF
3002 #line 3003 "configure"
3003 #include "confdefs.h"
3008 #define __CYGWIN__ __CYGWIN32__
3013 if { (eval echo configure:3014: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3017 echo "configure: failed program was:" >&5
3018 cat conftest.$ac_ext >&5
3025 echo "$ac_t""$ac_cv_cygwin" 1>&6
3027 test "$ac_cv_cygwin" = yes && CYGWIN=yes
3028 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
3029 echo "configure:3030: checking for mingw32 environment" >&5
3030 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
3031 echo $ac_n "(cached) $ac_c" 1>&6
3033 cat > conftest.$ac_ext <<EOF
3034 #line 3035 "configure"
3035 #include "confdefs.h"
3041 if { (eval echo configure:3042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3045 echo "configure: failed program was:" >&5
3046 cat conftest.$ac_ext >&5
3053 echo "$ac_t""$ac_cv_mingw32" 1>&6
3055 test "$ac_cv_mingw32" = yes && MINGW32=yes
3056 echo $ac_n "checking for EMX OS/2 environment""... $ac_c" 1>&6
3057 echo "configure:3058: checking for EMX OS/2 environment" >&5
3058 if eval "test \"\${ac_cv_emxos2+set}\" = set"; then
3059 echo $ac_n "(cached) $ac_c" 1>&6
3061 cat > conftest.$ac_ext <<EOF
3062 #line 3063 "configure"
3063 #include "confdefs.h"
3069 if { (eval echo configure:3070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3073 echo "configure: failed program was:" >&5
3074 cat conftest.$ac_ext >&5
3081 echo "$ac_t""$ac_cv_emxos2" 1>&6
3083 test "$ac_cv_emxos2" = yes && EMXOS2=yes
3084 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
3085 echo "configure:3086: checking how to run the C preprocessor" >&5
3086 # On Suns, sometimes $CPP names a directory.
3087 if test -n "$CPP" && test -d "$CPP"; then
3090 if test -z "$CPP"; then
3091 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
3092 echo $ac_n "(cached) $ac_c" 1>&6
3094 # This must be in double quotes, not single quotes, because CPP may get
3095 # substituted into the Makefile and "${CC-cc}" will confuse make.
3097 # On the NeXT, cc -E runs the code through the compiler's parser,
3098 # not just through cpp.
3099 cat > conftest.$ac_ext <<EOF
3100 #line 3101 "configure"
3101 #include "confdefs.h"
3105 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3106 { (eval echo configure:3107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3107 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3108 if test -z "$ac_err"; then
3112 echo "configure: failed program was:" >&5
3113 cat conftest.$ac_ext >&5
3115 CPP="${CC-cc} -E -traditional-cpp"
3116 cat > conftest.$ac_ext <<EOF
3117 #line 3118 "configure"
3118 #include "confdefs.h"
3122 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3123 { (eval echo configure:3124: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3124 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3125 if test -z "$ac_err"; then
3129 echo "configure: failed program was:" >&5
3130 cat conftest.$ac_ext >&5
3132 CPP="${CC-cc} -nologo -E"
3133 cat > conftest.$ac_ext <<EOF
3134 #line 3135 "configure"
3135 #include "confdefs.h"
3139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3140 { (eval echo configure:3141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3141 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3142 if test -z "$ac_err"; then
3146 echo "configure: failed program was:" >&5
3147 cat conftest.$ac_ext >&5
3156 ac_cv_prog_CPP="$CPP"
3158 CPP="$ac_cv_prog_CPP"
3160 ac_cv_prog_CPP="$CPP"
3162 echo "$ac_t""$CPP" 1>&6
3164 # Check whether --enable-fast-install or --disable-fast-install was given.
3165 if test "${enable_fast_install+set}" = set; then
3166 enableval="$enable_fast_install"
3167 p=${PACKAGE-default}
3169 yes) enable_fast_install=yes ;;
3170 no) enable_fast_install=no ;;
3172 enable_fast_install=no
3173 # Look at the argument we got. We use all the common list separators.
3174 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3175 for pkg in $enableval; do
3176 if test "X$pkg" = "X$p"; then
3177 enable_fast_install=yes
3184 enable_fast_install=yes
3187 # Extract the first word of "gcc", so it can be a program name with args.
3188 set dummy gcc; ac_word=$2
3189 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3190 echo "configure:3191: checking for $ac_word" >&5
3191 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3192 echo $ac_n "(cached) $ac_c" 1>&6
3194 if test -n "$CC"; then
3195 ac_cv_prog_CC="$CC" # Let the user override the test.
3197 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3199 for ac_dir in $ac_dummy; do
3200 test -z "$ac_dir" && ac_dir=.
3201 if test -f $ac_dir/$ac_word; then
3210 if test -n "$CC"; then
3211 echo "$ac_t""$CC" 1>&6
3213 echo "$ac_t""no" 1>&6
3216 if test -z "$CC"; then
3217 # Extract the first word of "cc", so it can be a program name with args.
3218 set dummy cc; ac_word=$2
3219 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3220 echo "configure:3221: checking for $ac_word" >&5
3221 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3222 echo $ac_n "(cached) $ac_c" 1>&6
3224 if test -n "$CC"; then
3225 ac_cv_prog_CC="$CC" # Let the user override the test.
3227 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3230 for ac_dir in $ac_dummy; do
3231 test -z "$ac_dir" && ac_dir=.
3232 if test -f $ac_dir/$ac_word; then
3233 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
3234 ac_prog_rejected=yes
3242 if test $ac_prog_rejected = yes; then
3243 # We found a bogon in the path, so make sure we never use it.
3244 set dummy $ac_cv_prog_CC
3246 if test $# -gt 0; then
3247 # We chose a different compiler from the bogus one.
3248 # However, it has the same basename, so the bogon will be chosen
3249 # first if we set CC to just the basename; use the full file name.
3251 set dummy "$ac_dir/$ac_word" "$@"
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 case "`uname -s`" in
3267 *win32* | *WIN32* | *CYGWIN*)
3268 # Extract the first word of "cl", so it can be a program name with args.
3269 set dummy cl; ac_word=$2
3270 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3271 echo "configure:3272: checking for $ac_word" >&5
3272 if eval "test \"\${ac_cv_prog_CC+set}\" = set"; then
3273 echo $ac_n "(cached) $ac_c" 1>&6
3275 if test -n "$CC"; then
3276 ac_cv_prog_CC="$CC" # Let the user override the test.
3278 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3280 for ac_dir in $ac_dummy; do
3281 test -z "$ac_dir" && ac_dir=.
3282 if test -f $ac_dir/$ac_word; then
3291 if test -n "$CC"; then
3292 echo "$ac_t""$CC" 1>&6
3294 echo "$ac_t""no" 1>&6
3299 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
3302 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works""... $ac_c" 1>&6
3303 echo "configure:3304: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" >&5
3306 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3307 ac_cpp='$CPP $CPPFLAGS'
3308 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3309 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3310 cross_compiling=$ac_cv_prog_cc_cross
3312 cat > conftest.$ac_ext << EOF
3314 #line 3315 "configure"
3315 #include "confdefs.h"
3319 if { (eval echo configure:3320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3320 ac_cv_prog_cc_works=yes
3321 # If we can't run a trivial program, we are probably using a cross compiler.
3322 if (./conftest; exit) 2>/dev/null; then
3323 ac_cv_prog_cc_cross=no
3325 ac_cv_prog_cc_cross=yes
3328 echo "configure: failed program was:" >&5
3329 cat conftest.$ac_ext >&5
3330 ac_cv_prog_cc_works=no
3334 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3335 ac_cpp='$CPP $CPPFLAGS'
3336 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3337 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3338 cross_compiling=$ac_cv_prog_cc_cross
3340 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
3341 if test $ac_cv_prog_cc_works = no; then
3342 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
3344 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
3345 echo "configure:3346: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" >&5
3346 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
3347 cross_compiling=$ac_cv_prog_cc_cross
3349 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
3350 echo "configure:3351: checking whether we are using GNU C" >&5
3351 if eval "test \"\${ac_cv_prog_gcc+set}\" = set"; then
3352 echo $ac_n "(cached) $ac_c" 1>&6
3354 cat > conftest.c <<EOF
3359 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:3360: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
3366 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
3368 if test $ac_cv_prog_gcc = yes; then
3374 ac_test_CFLAGS="${CFLAGS+set}"
3375 ac_save_CFLAGS="$CFLAGS"
3377 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
3378 echo "configure:3379: checking whether ${CC-cc} accepts -g" >&5
3379 if eval "test \"\${ac_cv_prog_cc_g+set}\" = set"; then
3380 echo $ac_n "(cached) $ac_c" 1>&6
3382 echo 'void f(){}' > conftest.c
3383 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
3392 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
3393 if test "$ac_test_CFLAGS" = set; then
3394 CFLAGS="$ac_save_CFLAGS"
3395 elif test $ac_cv_prog_cc_g = yes; then
3396 if test "$GCC" = yes; then
3402 if test "$GCC" = yes; then
3409 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3410 if test "${with_gnu_ld+set}" = set; then
3411 withval="$with_gnu_ld"
3412 test "$withval" = no || with_gnu_ld=yes
3418 if test "$GCC" = yes; then
3419 # Check if gcc -print-prog-name=ld gives a path.
3420 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
3421 echo "configure:3422: checking for ld used by GCC" >&5
3424 # gcc leaves a trailing carriage return which upsets mingw
3425 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3427 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3430 # Accept absolute paths.
3431 [\\/]* | [A-Za-z]:[\\/]*)
3432 re_direlt='/[^/][^/]*/\.\./'
3433 # Canonicalize the path of ld
3434 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3435 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3436 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3438 test -z "$LD" && LD="$ac_prog"
3441 # If it fails, then pretend we aren't using GCC.
3445 # If it is relative, then search for the first ld in PATH.
3449 elif test "$with_gnu_ld" = yes; then
3450 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
3451 echo "configure:3452: checking for GNU ld" >&5
3453 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
3454 echo "configure:3455: checking for non-GNU ld" >&5
3456 if eval "test \"\${lt_cv_path_LD+set}\" = set"; then
3457 echo $ac_n "(cached) $ac_c" 1>&6
3459 if test -z "$LD"; then
3460 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3461 for ac_dir in $PATH; do
3462 test -z "$ac_dir" && ac_dir=.
3463 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3464 lt_cv_path_LD="$ac_dir/$ac_prog"
3465 # Check to see if the program is GNU ld. I'd rather use --version,
3466 # but apparently some GNU ld's only accept -v.
3467 # Break only if it was the GNU/non-GNU ld that we prefer.
3468 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3469 test "$with_gnu_ld" != no && break
3471 test "$with_gnu_ld" != yes && break
3477 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3482 if test -n "$LD"; then
3483 echo "$ac_t""$LD" 1>&6
3485 echo "$ac_t""no" 1>&6
3487 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
3488 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
3489 echo "configure:3490: checking if the linker ($LD) is GNU ld" >&5
3490 if eval "test \"\${lt_cv_prog_gnu_ld+set}\" = set"; then
3491 echo $ac_n "(cached) $ac_c" 1>&6
3493 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3494 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3495 lt_cv_prog_gnu_ld=yes
3497 lt_cv_prog_gnu_ld=no
3501 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
3502 with_gnu_ld=$lt_cv_prog_gnu_ld
3505 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
3506 echo "configure:3507: checking for $LD option to reload object files" >&5
3507 if eval "test \"\${lt_cv_ld_reload_flag+set}\" = set"; then
3508 echo $ac_n "(cached) $ac_c" 1>&6
3510 lt_cv_ld_reload_flag='-r'
3513 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
3514 reload_flag=$lt_cv_ld_reload_flag
3515 test -n "$reload_flag" && reload_flag=" $reload_flag"
3517 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
3518 echo "configure:3519: checking for BSD-compatible nm" >&5
3519 if eval "test \"\${lt_cv_path_NM+set}\" = set"; then
3520 echo $ac_n "(cached) $ac_c" 1>&6
3522 if test -n "$NM"; then
3523 # Let the user override the test.
3526 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3527 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3528 test -z "$ac_dir" && ac_dir=.
3529 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3530 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3531 # Check to see if the nm accepts a BSD-compat flag.
3532 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3533 # nm: unknown option "B" ignored
3534 # Tru64's nm complains that /dev/null is an invalid object file
3535 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3536 lt_cv_path_NM="$tmp_nm -B"
3538 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3539 lt_cv_path_NM="$tmp_nm -p"
3542 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3543 continue # so that we can try to find one that supports BSD flags
3548 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3553 echo "$ac_t""$NM" 1>&6
3555 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
3556 echo "configure:3557: checking for a sed that does not truncate output" >&5
3557 if eval "test \"\${lt_cv_path_SED+set}\" = set"; then
3558 echo $ac_n "(cached) $ac_c" 1>&6
3560 # Loop through the user's path and test for sed and gsed.
3561 # Then use that list of sed's as ones to test for truncation.
3562 as_executable_p="test -f"
3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 test -z "$as_dir" && as_dir=.
3568 for ac_prog in sed gsed; do
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3571 _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3577 # Create a temporary directory, and hook for its removal unless debugging.
3580 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3581 trap '{ (exit 1); exit 1; }' 1 2 13 15
3584 # Create a (secure) tmp directory for tmp files.
3587 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3588 test -n "$tmp" && test -d "$tmp"
3591 tmp=$TMPDIR/sed$$-$RANDOM
3592 (umask 077 && mkdir $tmp)
3595 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3596 { (exit 1); exit 1; }
3600 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3601 # along with /bin/sed that truncates output.
3602 for _sed in $_sed_list /usr/xpg4/bin/sed; do
3603 test ! -f ${_sed} && break
3604 cat /dev/null > "$tmp/sed.in"
3606 echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3607 # Check for GNU sed and select it if it is found.
3608 if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3609 lt_cv_path_SED=${_sed}
3613 cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3614 mv "$tmp/sed.tmp" "$tmp/sed.in"
3615 cp "$tmp/sed.in" "$tmp/sed.nl"
3616 echo >>"$tmp/sed.nl"
3617 ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3618 cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3619 # 40000 chars as input seems more than enough
3620 test $_count -gt 10 && break
3621 _count=`expr $_count + 1`
3622 if test $_count -gt $_max; then
3624 lt_cv_path_SED=$_sed
3632 if test "X$SED" != "X"; then
3637 echo "$ac_t""$SED" 1>&6
3639 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
3640 echo "configure:3641: checking whether ln -s works" >&5
3641 if eval "test \"\${ac_cv_prog_LN_S+set}\" = set"; then
3642 echo $ac_n "(cached) $ac_c" 1>&6
3645 if ln -s X conftestdata 2>/dev/null
3648 ac_cv_prog_LN_S="ln -s"
3653 LN_S="$ac_cv_prog_LN_S"
3654 if test "$ac_cv_prog_LN_S" = "ln -s"; then
3655 echo "$ac_t""yes" 1>&6
3657 echo "$ac_t""no" 1>&6
3660 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
3661 echo "configure:3662: checking how to recognise dependent libraries" >&5
3662 if eval "test \"\${lt_cv_deplibs_check_method+set}\" = set"; then
3663 echo $ac_n "(cached) $ac_c" 1>&6
3665 lt_cv_file_magic_cmd='$MAGIC_CMD'
3666 lt_cv_file_magic_test_file=
3667 lt_cv_deplibs_check_method='unknown'
3668 # Need to set the preceding variable on all platforms that support
3669 # interlibrary dependencies.
3670 # 'none' -- dependencies not supported.
3671 # `unknown' -- same as none, but documents that we really don't know.
3672 # 'pass_all' -- all dependencies passed with no checks.
3673 # 'test_compile' -- check by making test program.
3674 # 'file_magic [[regex]]' -- check by looking for files in library path
3675 # which responds to the $file_magic_cmd with a given egrep regex.
3676 # If you have `file' or equivalent on your system and you're not sure
3677 # whether `pass_all' will *always* work, you probably want this one.
3681 lt_cv_deplibs_check_method=pass_all
3685 lt_cv_deplibs_check_method=pass_all
3689 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3690 lt_cv_file_magic_cmd='/usr/bin/file -L'
3691 lt_cv_file_magic_test_file=/shlib/libc.so
3694 cygwin* | mingw* | pw32*)
3695 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3696 lt_cv_file_magic_cmd='$OBJDUMP -f'
3699 darwin* | rhapsody*)
3700 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3701 lt_cv_file_magic_cmd='/usr/bin/file -L'
3703 rhapsody* | darwin1.[012])
3704 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3707 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3713 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3716 # Not sure whether the presence of OpenBSD here was a mistake.
3717 # Let's accept both of them until this is cleared up.
3718 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3719 lt_cv_file_magic_cmd=/usr/bin/file
3720 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3724 lt_cv_deplibs_check_method=pass_all
3729 lt_cv_deplibs_check_method=pass_all
3733 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3734 lt_cv_file_magic_cmd=/usr/bin/file
3735 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3738 irix5* | irix6* | nonstopux*)
3740 irix5* | nonstopux*)
3741 # this will be overridden with pass_all, but let us keep it just in case
3742 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3746 *-32|*"-32 ") libmagic=32-bit;;
3747 *-n32|*"-n32 ") libmagic=N32;;
3748 *-64|*"-64 ") libmagic=64-bit;;
3749 *) libmagic=never-match;;
3751 # this will be overridden with pass_all, but let us keep it just in case
3752 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3755 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3756 lt_cv_deplibs_check_method=pass_all
3759 # This must be Linux ELF.
3762 alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3763 lt_cv_deplibs_check_method=pass_all ;;
3765 # glibc up to 2.1.1 does not perform some relocations on ARM
3766 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3768 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3772 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3773 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3775 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3780 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3781 lt_cv_file_magic_cmd=/usr/bin/file
3782 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3786 lt_cv_file_magic_cmd=/usr/bin/file
3787 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3788 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3789 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3791 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3796 lt_cv_deplibs_check_method=pass_all
3799 osf3* | osf4* | osf5*)
3800 # this will be overridden with pass_all, but let us keep it just in case
3801 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3802 lt_cv_file_magic_test_file=/shlib/libc.so
3803 lt_cv_deplibs_check_method=pass_all
3807 lt_cv_deplibs_check_method=pass_all
3811 lt_cv_deplibs_check_method=pass_all
3812 lt_cv_file_magic_test_file=/lib/libc.so
3815 sysv5uw[78]* | sysv4*uw2*)
3816 lt_cv_deplibs_check_method=pass_all
3819 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3820 case $host_vendor in
3822 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]'
3823 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3826 lt_cv_deplibs_check_method=pass_all
3829 lt_cv_file_magic_cmd='/bin/file'
3830 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3833 lt_cv_file_magic_cmd='/bin/file'
3834 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3835 lt_cv_file_magic_test_file=/lib/libc.so
3838 lt_cv_deplibs_check_method=pass_all
3846 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
3847 file_magic_cmd=$lt_cv_file_magic_cmd
3848 deplibs_check_method=$lt_cv_deplibs_check_method
3850 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
3851 echo "configure:3852: checking for object suffix" >&5
3852 if eval "test \"\${ac_cv_objext+set}\" = set"; then
3853 echo $ac_n "(cached) $ac_c" 1>&6
3856 echo 'int i = 1;' > conftest.$ac_ext
3857 if { (eval echo configure:3858: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3858 for ac_file in conftest.*; do
3861 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
3865 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
3870 echo "$ac_t""$ac_cv_objext" 1>&6
3871 OBJEXT=$ac_cv_objext
3872 ac_objext=$ac_cv_objext
3877 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
3878 echo "configure:3879: checking for executable suffix" >&5
3879 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
3880 echo $ac_n "(cached) $ac_c" 1>&6
3882 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
3886 echo 'int main () { return 0; }' > conftest.$ac_ext
3888 if { (eval echo configure:3889: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
3889 for file in conftest.*; do
3891 *.c | *.C | *.o | *.obj | *.xcoff) ;;
3892 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
3896 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
3899 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
3904 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
3905 echo "$ac_t""${ac_cv_exeext}" 1>&6
3908 if test $host != $build; then
3909 ac_tool_prefix=${host_alias}-
3917 # Check for command to grab the raw symbol name followed by C symbol from nm.
3918 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
3919 echo "configure:3920: checking command to parse $NM output" >&5
3920 if eval "test \"\${lt_cv_sys_global_symbol_pipe+set}\" = set"; then
3921 echo $ac_n "(cached) $ac_c" 1>&6
3924 # These are sane defaults that work on at least a few old systems.
3925 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3927 # Character class describing NM global symbol codes.
3928 symcode='[BCDEGRST]'
3930 # Regexp to match symbols that can be accessed directly from C.
3931 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3933 # Transform the above into a raw symbol and a C symbol.
3934 symxfrm='\1 \2\3 \3'
3936 # Transform an extracted symbol line into a proper C declaration
3937 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3939 # Transform an extracted symbol line into symbol name and symbol address
3940 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'"
3942 # Define system-specific variables.
3947 cygwin* | mingw* | pw32*)
3948 symcode='[ABCDGISTW]'
3950 hpux*) # Its linker distinguishes data from code symbols
3951 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3952 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'"
3955 symcode='[BCDEGRST]'
3958 symcode='[BCDEGQRST]'
3968 # Handle CRLF in mingw tool chain
3972 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3976 # If we're using GNU nm, then use its standard symbol codes.
3977 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3978 symcode='[ABCDGISTW]'
3981 # Try without a prefix undercore, then with it.
3982 for ac_symprfx in "" "_"; do
3984 # Write the raw and C identifiers.
3985 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3987 # Check to see that the pipe works correctly.
3990 cat > conftest.$ac_ext <<EOF
3995 void nm_test_func(){}
3999 int main(){nm_test_var='a';nm_test_func();return(0);}
4002 if { (eval echo configure:4003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4003 # Now try to grab the symbols.
4005 if { (eval echo configure:4006: \"$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
4006 # Try sorting and uniquifying the output.
4007 if sort "$nlist" | uniq > "$nlist"T; then
4008 mv -f "$nlist"T "$nlist"
4013 # Make sure that we snagged all the symbols we need.
4014 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4015 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4016 cat <<EOF > conftest.$ac_ext
4022 # Now generate the symbol file.
4023 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4025 cat <<EOF >> conftest.$ac_ext
4026 #if defined (__STDC__) && __STDC__
4027 # define lt_ptr void *
4029 # define lt_ptr char *
4033 /* The mapping between symbol names and symbols. */
4038 lt_preloaded_symbols[] =
4041 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4042 cat <<\EOF >> conftest.$ac_ext
4050 # Now try linking the two files.
4051 mv conftest.$ac_objext conftstm.$ac_objext
4053 save_CFLAGS="$CFLAGS"
4054 LIBS="conftstm.$ac_objext"
4055 CFLAGS="$CFLAGS$no_builtin_flag"
4056 if { (eval echo configure:4057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
4060 CFLAGS="$save_CFLAGS"
4062 echo "cannot find nm_test_func in $nlist" >&5
4065 echo "cannot find nm_test_var in $nlist" >&5
4068 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4071 echo "$progname: failed program was:" >&5
4072 cat conftest.$ac_ext >&5
4074 rm -f conftest* conftst*
4076 # Do not use the global_symbol_pipe unless it works.
4077 if test "$pipe_works" = yes; then
4080 lt_cv_sys_global_symbol_pipe=
4086 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4087 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4088 global_symbol_to_cdecl=
4089 global_symbol_to_c_name_address=
4091 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4092 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4094 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4096 echo "$ac_t""failed" 1>&6
4098 echo "$ac_t""ok" 1>&6
4101 for ac_hdr in dlfcn.h
4103 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4104 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4105 echo "configure:4106: checking for $ac_hdr" >&5
4106 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
4107 echo $ac_n "(cached) $ac_c" 1>&6
4109 cat > conftest.$ac_ext <<EOF
4110 #line 4111 "configure"
4111 #include "confdefs.h"
4114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4115 { (eval echo configure:4116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4116 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4117 if test -z "$ac_err"; then
4119 eval "ac_cv_header_$ac_safe=yes"
4122 echo "configure: failed program was:" >&5
4123 cat conftest.$ac_ext >&5
4125 eval "ac_cv_header_$ac_safe=no"
4129 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4130 echo "$ac_t""yes" 1>&6
4131 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4132 cat >> confdefs.h <<EOF
4133 #define $ac_tr_hdr 1
4137 echo "$ac_t""no" 1>&6
4146 # Only perform the check for file, if the check method requires it
4147 case $deplibs_check_method in
4149 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4150 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
4151 echo "configure:4152: checking for ${ac_tool_prefix}file" >&5
4152 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4153 echo $ac_n "(cached) $ac_c" 1>&6
4157 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4160 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4163 ac_save_MAGIC_CMD="$MAGIC_CMD"
4164 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4165 ac_dummy="/usr/bin:$PATH"
4166 for ac_dir in $ac_dummy; do
4167 test -z "$ac_dir" && ac_dir=.
4168 if test -f $ac_dir/${ac_tool_prefix}file; then
4169 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4170 if test -n "$file_magic_test_file"; then
4171 case $deplibs_check_method in
4173 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4174 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4175 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4176 egrep "$file_magic_regex" > /dev/null; then
4181 *** Warning: the command libtool uses to detect shared libraries,
4182 *** $file_magic_cmd, produces output that libtool cannot recognize.
4183 *** The result is that libtool may fail to recognize shared libraries
4184 *** as such. This will affect the creation of libtool libraries that
4185 *** depend on shared libraries, but programs linked with such libtool
4186 *** libraries will work regardless of this problem. Nevertheless, you
4187 *** may want to report the problem to your system manager and/or to
4188 *** bug-libtool@gnu.org
4198 MAGIC_CMD="$ac_save_MAGIC_CMD"
4203 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4204 if test -n "$MAGIC_CMD"; then
4205 echo "$ac_t""$MAGIC_CMD" 1>&6
4207 echo "$ac_t""no" 1>&6
4210 if test -z "$lt_cv_path_MAGIC_CMD"; then
4211 if test -n "$ac_tool_prefix"; then
4212 echo $ac_n "checking for file""... $ac_c" 1>&6
4213 echo "configure:4214: checking for file" >&5
4214 if eval "test \"\${lt_cv_path_MAGIC_CMD+set}\" = set"; then
4215 echo $ac_n "(cached) $ac_c" 1>&6
4219 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4222 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4225 ac_save_MAGIC_CMD="$MAGIC_CMD"
4226 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4227 ac_dummy="/usr/bin:$PATH"
4228 for ac_dir in $ac_dummy; do
4229 test -z "$ac_dir" && ac_dir=.
4230 if test -f $ac_dir/file; then
4231 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4232 if test -n "$file_magic_test_file"; then
4233 case $deplibs_check_method in
4235 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4236 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4237 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4238 egrep "$file_magic_regex" > /dev/null; then
4243 *** Warning: the command libtool uses to detect shared libraries,
4244 *** $file_magic_cmd, produces output that libtool cannot recognize.
4245 *** The result is that libtool may fail to recognize shared libraries
4246 *** as such. This will affect the creation of libtool libraries that
4247 *** depend on shared libraries, but programs linked with such libtool
4248 *** libraries will work regardless of this problem. Nevertheless, you
4249 *** may want to report the problem to your system manager and/or to
4250 *** bug-libtool@gnu.org
4260 MAGIC_CMD="$ac_save_MAGIC_CMD"
4265 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4266 if test -n "$MAGIC_CMD"; then
4267 echo "$ac_t""$MAGIC_CMD" 1>&6
4269 echo "$ac_t""no" 1>&6
4281 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4282 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4283 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4284 echo "configure:4285: checking for $ac_word" >&5
4285 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4286 echo $ac_n "(cached) $ac_c" 1>&6
4288 if test -n "$RANLIB"; then
4289 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4291 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4293 for ac_dir in $ac_dummy; do
4294 test -z "$ac_dir" && ac_dir=.
4295 if test -f $ac_dir/$ac_word; then
4296 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4303 RANLIB="$ac_cv_prog_RANLIB"
4304 if test -n "$RANLIB"; then
4305 echo "$ac_t""$RANLIB" 1>&6
4307 echo "$ac_t""no" 1>&6
4311 if test -z "$ac_cv_prog_RANLIB"; then
4312 if test -n "$ac_tool_prefix"; then
4313 # Extract the first word of "ranlib", so it can be a program name with args.
4314 set dummy ranlib; ac_word=$2
4315 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4316 echo "configure:4317: checking for $ac_word" >&5
4317 if eval "test \"\${ac_cv_prog_RANLIB+set}\" = set"; then
4318 echo $ac_n "(cached) $ac_c" 1>&6
4320 if test -n "$RANLIB"; then
4321 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4323 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4325 for ac_dir in $ac_dummy; do
4326 test -z "$ac_dir" && ac_dir=.
4327 if test -f $ac_dir/$ac_word; then
4328 ac_cv_prog_RANLIB="ranlib"
4333 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
4336 RANLIB="$ac_cv_prog_RANLIB"
4337 if test -n "$RANLIB"; then
4338 echo "$ac_t""$RANLIB" 1>&6
4340 echo "$ac_t""no" 1>&6
4348 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4349 set dummy ${ac_tool_prefix}strip; ac_word=$2
4350 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4351 echo "configure:4352: checking for $ac_word" >&5
4352 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4353 echo $ac_n "(cached) $ac_c" 1>&6
4355 if test -n "$STRIP"; then
4356 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4358 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4360 for ac_dir in $ac_dummy; do
4361 test -z "$ac_dir" && ac_dir=.
4362 if test -f $ac_dir/$ac_word; then
4363 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4370 STRIP="$ac_cv_prog_STRIP"
4371 if test -n "$STRIP"; then
4372 echo "$ac_t""$STRIP" 1>&6
4374 echo "$ac_t""no" 1>&6
4378 if test -z "$ac_cv_prog_STRIP"; then
4379 if test -n "$ac_tool_prefix"; then
4380 # Extract the first word of "strip", so it can be a program name with args.
4381 set dummy strip; ac_word=$2
4382 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4383 echo "configure:4384: checking for $ac_word" >&5
4384 if eval "test \"\${ac_cv_prog_STRIP+set}\" = set"; then
4385 echo $ac_n "(cached) $ac_c" 1>&6
4387 if test -n "$STRIP"; then
4388 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4390 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4392 for ac_dir in $ac_dummy; do
4393 test -z "$ac_dir" && ac_dir=.
4394 if test -f $ac_dir/$ac_word; then
4395 ac_cv_prog_STRIP="strip"
4400 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
4403 STRIP="$ac_cv_prog_STRIP"
4404 if test -n "$STRIP"; then
4405 echo "$ac_t""$STRIP" 1>&6
4407 echo "$ac_t""no" 1>&6
4417 enable_win32_dll=yes
4419 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4420 if test "${enable_libtool_lock+set}" = set; then
4421 enableval="$enable_libtool_lock"
4425 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4427 # Some flags need to be propagated to the compiler or linker for good
4431 # Find out which ABI we are using.
4432 echo '#line 4433 "configure"' > conftest.$ac_ext
4433 if { (eval echo configure:4434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4434 case `/usr/bin/file conftest.$ac_objext` in
4450 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4451 SAVE_CFLAGS="$CFLAGS"
4452 CFLAGS="$CFLAGS -belf"
4453 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
4454 echo "configure:4455: checking whether the C compiler needs -belf" >&5
4455 if eval "test \"\${lt_cv_cc_needs_belf+set}\" = set"; then
4456 echo $ac_n "(cached) $ac_c" 1>&6
4460 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4461 ac_cpp='$CPP $CPPFLAGS'
4462 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4463 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4464 cross_compiling=$ac_cv_prog_cc_cross
4466 cat > conftest.$ac_ext <<EOF
4467 #line 4468 "configure"
4468 #include "confdefs.h"
4474 if { (eval echo configure:4475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4476 lt_cv_cc_needs_belf=yes
4478 echo "configure: failed program was:" >&5
4479 cat conftest.$ac_ext >&5
4481 lt_cv_cc_needs_belf=no
4485 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4486 ac_cpp='$CPP $CPPFLAGS'
4487 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4488 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4489 cross_compiling=$ac_cv_prog_cc_cross
4493 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
4494 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4495 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4496 CFLAGS="$SAVE_CFLAGS"
4500 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
4501 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4502 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4503 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4504 echo "configure:4505: checking for $ac_word" >&5
4505 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4506 echo $ac_n "(cached) $ac_c" 1>&6
4508 if test -n "$DLLTOOL"; then
4509 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4511 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4513 for ac_dir in $ac_dummy; do
4514 test -z "$ac_dir" && ac_dir=.
4515 if test -f $ac_dir/$ac_word; then
4516 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4523 DLLTOOL="$ac_cv_prog_DLLTOOL"
4524 if test -n "$DLLTOOL"; then
4525 echo "$ac_t""$DLLTOOL" 1>&6
4527 echo "$ac_t""no" 1>&6
4531 if test -z "$ac_cv_prog_DLLTOOL"; then
4532 if test -n "$ac_tool_prefix"; then
4533 # Extract the first word of "dlltool", so it can be a program name with args.
4534 set dummy dlltool; ac_word=$2
4535 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4536 echo "configure:4537: checking for $ac_word" >&5
4537 if eval "test \"\${ac_cv_prog_DLLTOOL+set}\" = set"; then
4538 echo $ac_n "(cached) $ac_c" 1>&6
4540 if test -n "$DLLTOOL"; then
4541 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4543 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4545 for ac_dir in $ac_dummy; do
4546 test -z "$ac_dir" && ac_dir=.
4547 if test -f $ac_dir/$ac_word; then
4548 ac_cv_prog_DLLTOOL="dlltool"
4553 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
4556 DLLTOOL="$ac_cv_prog_DLLTOOL"
4557 if test -n "$DLLTOOL"; then
4558 echo "$ac_t""$DLLTOOL" 1>&6
4560 echo "$ac_t""no" 1>&6
4568 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4569 set dummy ${ac_tool_prefix}as; ac_word=$2
4570 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4571 echo "configure:4572: checking for $ac_word" >&5
4572 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4573 echo $ac_n "(cached) $ac_c" 1>&6
4575 if test -n "$AS"; then
4576 ac_cv_prog_AS="$AS" # Let the user override the test.
4578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4580 for ac_dir in $ac_dummy; do
4581 test -z "$ac_dir" && ac_dir=.
4582 if test -f $ac_dir/$ac_word; then
4583 ac_cv_prog_AS="${ac_tool_prefix}as"
4591 if test -n "$AS"; then
4592 echo "$ac_t""$AS" 1>&6
4594 echo "$ac_t""no" 1>&6
4598 if test -z "$ac_cv_prog_AS"; then
4599 if test -n "$ac_tool_prefix"; then
4600 # Extract the first word of "as", so it can be a program name with args.
4601 set dummy as; ac_word=$2
4602 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4603 echo "configure:4604: checking for $ac_word" >&5
4604 if eval "test \"\${ac_cv_prog_AS+set}\" = set"; then
4605 echo $ac_n "(cached) $ac_c" 1>&6
4607 if test -n "$AS"; then
4608 ac_cv_prog_AS="$AS" # Let the user override the test.
4610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4612 for ac_dir in $ac_dummy; do
4613 test -z "$ac_dir" && ac_dir=.
4614 if test -f $ac_dir/$ac_word; then
4620 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
4624 if test -n "$AS"; then
4625 echo "$ac_t""$AS" 1>&6
4627 echo "$ac_t""no" 1>&6
4635 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4636 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4637 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4638 echo "configure:4639: checking for $ac_word" >&5
4639 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4640 echo $ac_n "(cached) $ac_c" 1>&6
4642 if test -n "$OBJDUMP"; then
4643 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4647 for ac_dir in $ac_dummy; do
4648 test -z "$ac_dir" && ac_dir=.
4649 if test -f $ac_dir/$ac_word; then
4650 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4657 OBJDUMP="$ac_cv_prog_OBJDUMP"
4658 if test -n "$OBJDUMP"; then
4659 echo "$ac_t""$OBJDUMP" 1>&6
4661 echo "$ac_t""no" 1>&6
4665 if test -z "$ac_cv_prog_OBJDUMP"; then
4666 if test -n "$ac_tool_prefix"; then
4667 # Extract the first word of "objdump", so it can be a program name with args.
4668 set dummy objdump; ac_word=$2
4669 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4670 echo "configure:4671: checking for $ac_word" >&5
4671 if eval "test \"\${ac_cv_prog_OBJDUMP+set}\" = set"; then
4672 echo $ac_n "(cached) $ac_c" 1>&6
4674 if test -n "$OBJDUMP"; then
4675 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4679 for ac_dir in $ac_dummy; do
4680 test -z "$ac_dir" && ac_dir=.
4681 if test -f $ac_dir/$ac_word; then
4682 ac_cv_prog_OBJDUMP="objdump"
4687 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
4690 OBJDUMP="$ac_cv_prog_OBJDUMP"
4691 if test -n "$OBJDUMP"; then
4692 echo "$ac_t""$OBJDUMP" 1>&6
4694 echo "$ac_t""no" 1>&6
4703 # recent cygwin and mingw systems supply a stub DllMain which the user
4704 # can override, but on older systems we have to supply one
4705 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
4706 echo "configure:4707: checking if libtool should supply DllMain function" >&5
4707 if eval "test \"\${lt_cv_need_dllmain+set}\" = set"; then
4708 echo $ac_n "(cached) $ac_c" 1>&6
4710 cat > conftest.$ac_ext <<EOF
4711 #line 4712 "configure"
4712 #include "confdefs.h"
4715 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
4719 if { (eval echo configure:4720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4721 lt_cv_need_dllmain=no
4723 echo "configure: failed program was:" >&5
4724 cat conftest.$ac_ext >&5
4726 lt_cv_need_dllmain=yes
4731 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
4734 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
4735 # old mingw systems require "-dll" to link a DLL, while more recent ones
4737 SAVE_CFLAGS="$CFLAGS"
4738 CFLAGS="$CFLAGS -mdll"
4739 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
4740 echo "configure:4741: checking how to link DLLs" >&5
4741 if eval "test \"\${lt_cv_cc_dll_switch+set}\" = set"; then
4742 echo $ac_n "(cached) $ac_c" 1>&6
4744 cat > conftest.$ac_ext <<EOF
4745 #line 4746 "configure"
4746 #include "confdefs.h"
4752 if { (eval echo configure:4753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4754 lt_cv_cc_dll_switch=-mdll
4756 echo "configure: failed program was:" >&5
4757 cat conftest.$ac_ext >&5
4759 lt_cv_cc_dll_switch=-dll
4764 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
4765 CFLAGS="$SAVE_CFLAGS" ;;
4766 *-*-cygwin* | *-*-pw32*)
4767 # cygwin systems need to pass --dll to the linker, and not link
4768 # crt.o which will require a WinMain@16 definition.
4769 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
4775 # Sed substitution that helps us do robust quoting. It backslashifies
4776 # metacharacters that are still active within double-quoted strings.
4777 Xsed='sed -e s/^X//'
4778 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4780 # Same as above, but do not quote variable references.
4781 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4783 # Sed substitution to delay expansion of an escaped shell variable in a
4784 # double_quote_subst'ed string.
4785 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4791 default_ofile=libtool
4792 can_build_shared=yes
4794 # All known linkers require a `.a' archive for static linking (except M$VC,
4795 # which needs '.lib').
4797 ltmain="$ac_aux_dir/ltmain.sh"
4798 ofile="$default_ofile"
4799 with_gnu_ld="$lt_cv_prog_gnu_ld"
4800 need_locks="$enable_libtool_lock"
4803 old_CFLAGS="$CFLAGS"
4805 # Set sane defaults for various variables
4806 test -z "$AR" && AR=ar
4807 test -z "$AR_FLAGS" && AR_FLAGS=cru
4808 test -z "$AS" && AS=as
4809 test -z "$CC" && CC=cc
4810 test -z "$DLLTOOL" && DLLTOOL=dlltool
4811 test -z "$LD" && LD=ld
4812 test -z "$LN_S" && LN_S="ln -s"
4813 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4814 test -z "$NM" && NM=nm
4815 test -z "$OBJDUMP" && OBJDUMP=objdump
4816 test -z "$RANLIB" && RANLIB=:
4817 test -z "$STRIP" && STRIP=:
4818 test -z "$ac_objext" && ac_objext=o
4820 if test x"$host" != x"$build"; then
4821 ac_tool_prefix=${host_alias}-
4826 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4829 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4834 # AIX sometimes has problems with the GCC collect2 program. For some
4835 # reason, if we set the COLLECT_NAMES environment variable, the problems
4836 # vanish in a puff of smoke.
4837 if test "X${COLLECT_NAMES+set}" != Xset; then
4839 export COLLECT_NAMES
4844 # Determine commands to create old-style static archives.
4845 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4846 old_postinstall_cmds='chmod 644 $oldlib'
4847 old_postuninstall_cmds=
4849 if test -n "$RANLIB"; then
4852 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4855 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4858 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4861 # Allow CC to be a program name with arguments.
4865 echo $ac_n "checking for objdir""... $ac_c" 1>&6
4866 echo "configure:4867: checking for objdir" >&5
4867 rm -f .libs 2>/dev/null
4868 mkdir .libs 2>/dev/null
4869 if test -d .libs; then
4872 # MS-DOS does not allow filenames that begin with a dot.
4875 rmdir .libs 2>/dev/null
4876 echo "$ac_t""$objdir" 1>&6
4879 # Check whether --with-pic or --without-pic was given.
4880 if test "${with_pic+set}" = set; then
4887 test -z "$pic_mode" && pic_mode=default
4889 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4890 # in isolation, and that seeing it set (from the cache) indicates that
4891 # the associated values are set (in the cache) correctly too.
4892 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
4893 echo "configure:4894: checking for $compiler option to produce PIC" >&5
4894 if eval "test \"\${lt_cv_prog_cc_pic+set}\" = set"; then
4895 echo $ac_n "(cached) $ac_c" 1>&6
4898 lt_cv_prog_cc_shlib=
4900 lt_cv_prog_cc_static=
4901 lt_cv_prog_cc_no_builtin=
4902 lt_cv_prog_cc_can_build_shared=$can_build_shared
4904 if test "$GCC" = yes; then
4905 lt_cv_prog_cc_wl='-Wl,'
4906 lt_cv_prog_cc_static='-static'
4910 # Below there is a dirty hack to force normal static linking with -ldl
4911 # The problem is because libdl dynamically linked with both libc and
4912 # libC (AIX C++ library), which obviously doesn't included in libraries
4913 # list by gcc. This cause undefined symbols with -static flags.
4914 # This hack allows C programs to be linked with "-static -ldl", but
4915 # not sure about C++ programs.
4916 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4919 # FIXME: we need at least 68020 code to build shared libraries, but
4920 # adding the `-m68020' flag to GCC prevents building anything better,
4922 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4924 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4925 # PIC is the default for these OSes.
4927 darwin* | rhapsody*)
4928 # PIC is the default on this platform
4929 # Common symbols not allowed in MH_DYLIB files
4930 lt_cv_prog_cc_pic='-fno-common'
4932 cygwin* | mingw* | pw32* | os2*)
4933 # This hack is so that the source file can tell whether it is being
4934 # built for inclusion in a dll (and should export symbols for example).
4935 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4938 if test -d /usr/nec; then
4939 lt_cv_prog_cc_pic=-Kconform_pic
4943 lt_cv_prog_cc_pic='-fPIC'
4947 # PORTME Check for PIC flags for the system compiler.
4949 aix3* | aix4* | aix5*)
4950 lt_cv_prog_cc_wl='-Wl,'
4951 # All AIX code is PIC.
4952 if test "$host_cpu" = ia64; then
4953 # AIX 5 now supports IA64 processor
4954 lt_cv_prog_cc_static='-Bstatic'
4956 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4960 hpux9* | hpux10* | hpux11*)
4961 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4962 lt_cv_prog_cc_wl='-Wl,'
4963 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4964 lt_cv_prog_cc_pic='+Z'
4967 irix5* | irix6* | nonstopux*)
4968 lt_cv_prog_cc_wl='-Wl,'
4969 lt_cv_prog_cc_static='-non_shared'
4970 # PIC (with -KPIC) is the default.
4973 cygwin* | mingw* | pw32* | os2*)
4974 # This hack is so that the source file can tell whether it is being
4975 # built for inclusion in a dll (and should export symbols for example).
4976 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4980 lt_cv_prog_cc_pic='-KPIC'
4981 lt_cv_prog_cc_static='-Bstatic'
4985 # XPLINK code is PIC by default
4988 osf3* | osf4* | osf5*)
4989 # All OSF/1 code is PIC.
4990 lt_cv_prog_cc_wl='-Wl,'
4991 lt_cv_prog_cc_static='-non_shared'
4995 lt_cv_prog_cc_pic='-Kpic'
4996 lt_cv_prog_cc_static='-dn'
4997 lt_cv_prog_cc_shlib='-belf'
5001 lt_cv_prog_cc_pic='-KPIC'
5002 lt_cv_prog_cc_static='-Bstatic'
5003 lt_cv_prog_cc_wl='-Wl,'
5007 lt_cv_prog_cc_pic='-PIC'
5008 lt_cv_prog_cc_static='-Bstatic'
5009 lt_cv_prog_cc_wl='-Qoption ld '
5012 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5013 lt_cv_prog_cc_pic='-KPIC'
5014 lt_cv_prog_cc_static='-Bstatic'
5015 lt_cv_prog_cc_wl='-Wl,'
5019 lt_cv_prog_cc_pic='-pic'
5020 lt_cv_prog_cc_static='-Bstatic'
5024 if test -d /usr/nec ;then
5025 lt_cv_prog_cc_pic='-Kconform_pic'
5026 lt_cv_prog_cc_static='-Bstatic'
5031 lt_cv_prog_cc_can_build_shared=no
5038 if test -z "$lt_cv_prog_cc_pic"; then
5039 echo "$ac_t""none" 1>&6
5041 echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
5043 # Check to make sure the pic_flag actually works.
5044 echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
5045 echo "configure:5046: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5046 if eval "test \"\${lt_cv_prog_cc_pic_works+set}\" = set"; then
5047 echo $ac_n "(cached) $ac_c" 1>&6
5049 save_CFLAGS="$CFLAGS"
5050 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5051 cat > conftest.$ac_ext <<EOF
5052 #line 5053 "configure"
5053 #include "confdefs.h"
5059 if { (eval echo configure:5060: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5062 hpux9* | hpux10* | hpux11*)
5063 # On HP-UX, both CC and GCC only warn that PIC is supported... then
5064 # they create non-PIC objects. So, if there were any warnings, we
5065 # assume that PIC is not supported.
5066 if test -s conftest.err; then
5067 lt_cv_prog_cc_pic_works=no
5069 lt_cv_prog_cc_pic_works=yes
5073 lt_cv_prog_cc_pic_works=yes
5078 echo "configure: failed program was:" >&5
5079 cat conftest.$ac_ext >&5
5081 lt_cv_prog_cc_pic_works=no
5085 CFLAGS="$save_CFLAGS"
5090 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5092 lt_cv_prog_cc_can_build_shared=no
5094 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5097 echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
5100 # Check for any special shared library compilation flags.
5101 if test -n "$lt_cv_prog_cc_shlib"; then
5102 echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
5103 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5105 echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
5106 lt_cv_prog_cc_can_build_shared=no
5110 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
5111 echo "configure:5112: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5112 if eval "test \"\${lt_cv_prog_cc_static_works+set}\" = set"; then
5113 echo $ac_n "(cached) $ac_c" 1>&6
5115 lt_cv_prog_cc_static_works=no
5116 save_LDFLAGS="$LDFLAGS"
5117 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5118 cat > conftest.$ac_ext <<EOF
5119 #line 5120 "configure"
5120 #include "confdefs.h"
5126 if { (eval echo configure:5127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5128 lt_cv_prog_cc_static_works=yes
5130 echo "configure: failed program was:" >&5
5131 cat conftest.$ac_ext >&5
5134 LDFLAGS="$save_LDFLAGS"
5139 # Belt *and* braces to stop my trousers falling down:
5140 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5141 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
5143 pic_flag="$lt_cv_prog_cc_pic"
5144 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5145 wl="$lt_cv_prog_cc_wl"
5146 link_static_flag="$lt_cv_prog_cc_static"
5147 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5148 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5151 # Check to see if options -o and -c are simultaneously supported by compiler
5152 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
5153 echo "configure:5154: checking if $compiler supports -c -o file.$ac_objext" >&5
5154 if eval "test \"\${lt_cv_compiler_c_o+set}\" = set"; then
5155 echo $ac_n "(cached) $ac_c" 1>&6
5158 $rm -r conftest 2>/dev/null
5161 echo "int some_variable = 0;" > conftest.$ac_ext
5163 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5164 # that will create temporary files in the current directory regardless of
5165 # the output directory. Thus, making CWD read-only will cause this test
5166 # to fail, enabling locking or at least warning the user not to do parallel
5169 save_CFLAGS="$CFLAGS"
5170 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5172 if { (eval echo configure:5173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5173 # The compiler can only warn and ignore the option if not recognized
5174 # So say no if there are warnings
5175 if test -s out/conftest.err; then
5176 lt_cv_compiler_c_o=no
5178 lt_cv_compiler_c_o=yes
5181 # Append any errors to the config.log.
5182 cat out/conftest.err 1>&5
5183 lt_cv_compiler_c_o=no
5185 CFLAGS="$save_CFLAGS"
5191 $rm -r conftest 2>/dev/null
5195 compiler_c_o=$lt_cv_compiler_c_o
5196 echo "$ac_t""$compiler_c_o" 1>&6
5198 if test x"$compiler_c_o" = x"yes"; then
5199 # Check to see if we can write to a .lo
5200 echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
5201 echo "configure:5202: checking if $compiler supports -c -o file.lo" >&5
5202 if eval "test \"\${lt_cv_compiler_o_lo+set}\" = set"; then
5203 echo $ac_n "(cached) $ac_c" 1>&6
5206 lt_cv_compiler_o_lo=no
5207 save_CFLAGS="$CFLAGS"
5208 CFLAGS="$CFLAGS -c -o conftest.lo"
5209 save_objext="$ac_objext"
5211 cat > conftest.$ac_ext <<EOF
5212 #line 5213 "configure"
5213 #include "confdefs.h"
5216 int some_variable = 0;
5219 if { (eval echo configure:5220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5221 # The compiler can only warn and ignore the option if not recognized
5222 # So say no if there are warnings
5223 if test -s conftest.err; then
5224 lt_cv_compiler_o_lo=no
5226 lt_cv_compiler_o_lo=yes
5230 echo "configure: failed program was:" >&5
5231 cat conftest.$ac_ext >&5
5234 ac_objext="$save_objext"
5235 CFLAGS="$save_CFLAGS"
5239 compiler_o_lo=$lt_cv_compiler_o_lo
5240 echo "$ac_t""$compiler_o_lo" 1>&6
5245 # Check to see if we can do hard links to lock some files if needed
5246 hard_links="nottested"
5247 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5248 # do not overwrite the value of need_locks provided by the user
5249 echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
5250 echo "configure:5251: checking if we can lock with hard links" >&5
5253 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5255 ln conftest.a conftest.b 2>&5 || hard_links=no
5256 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5257 echo "$ac_t""$hard_links" 1>&6
5258 if test "$hard_links" = no; then
5259 echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
5266 if test "$GCC" = yes; then
5267 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5268 echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
5269 echo "configure:5270: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5270 echo "int some_variable = 0;" > conftest.$ac_ext
5271 save_CFLAGS="$CFLAGS"
5272 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5273 compiler_rtti_exceptions=no
5274 cat > conftest.$ac_ext <<EOF
5275 #line 5276 "configure"
5276 #include "confdefs.h"
5279 int some_variable = 0;
5282 if { (eval echo configure:5283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
5284 # The compiler can only warn and ignore the option if not recognized
5285 # So say no if there are warnings
5286 if test -s conftest.err; then
5287 compiler_rtti_exceptions=no
5289 compiler_rtti_exceptions=yes
5293 echo "configure: failed program was:" >&5
5294 cat conftest.$ac_ext >&5
5297 CFLAGS="$save_CFLAGS"
5298 echo "$ac_t""$compiler_rtti_exceptions" 1>&6
5300 if test "$compiler_rtti_exceptions" = "yes"; then
5301 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5303 no_builtin_flag=' -fno-builtin'
5307 # See if the linker supports building shared libraries.
5308 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
5309 echo "configure:5310: checking whether the linker ($LD) supports shared libraries" >&5
5311 allow_undefined_flag=
5313 need_lib_prefix=unknown
5314 need_version=unknown
5315 # when you set need_version to no, make sure it does not cause -set_version
5316 # flags to be left without arguments
5318 archive_expsym_cmds=
5319 old_archive_from_new_cmds=
5320 old_archive_from_expsyms_cmds=
5321 export_dynamic_flag_spec=
5322 whole_archive_flag_spec=
5323 thread_safe_flag_spec=
5324 hardcode_into_libs=no
5325 hardcode_libdir_flag_spec=
5326 hardcode_libdir_separator=
5329 hardcode_shlibpath_var=unsupported
5331 link_all_deplibs=unknown
5332 always_export_symbols=no
5333 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5334 # include_expsyms should be a list of space-separated symbols to be *always*
5335 # included in the symbol list
5337 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5338 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5339 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5340 # as well as any symbol that contains `d'.
5341 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5342 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5343 # platforms (ab)use it in PIC code, but their linkers get confused if
5344 # the symbol is explicitly referenced. Since portable code cannot
5345 # rely on this symbol name, it's probably fine to never include it in
5346 # preloaded symbol tables.
5347 extract_expsyms_cmds=
5350 cygwin* | mingw* | pw32*)
5351 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5352 # When not using gcc, we currently assume that we are using
5353 # Microsoft Visual C++.
5354 if test "$GCC" != yes; then
5364 if test "$with_gnu_ld" = yes; then
5365 # If archive_cmds runs LD, not CC, wlarc should be empty
5368 # See if GNU ld supports shared libraries.
5370 aix3* | aix4* | aix5*)
5371 # On AIX, the GNU linker is very broken
5372 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5376 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5377 *** to be unable to reliably create shared libraries on AIX.
5378 *** Therefore, libtool is disabling shared libraries support. If you
5379 *** really care for shared libraries, you may want to modify your PATH
5380 *** so that a non-GNU linker is found, and then restart.
5386 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)'
5387 hardcode_libdir_flag_spec='-L$libdir'
5388 hardcode_minus_L=yes
5390 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5391 # that the semantics of dynamic libraries on AmigaOS, at least up
5392 # to version 4, is to share data among multiple programs linked
5393 # with the same dynamic library. Since this doesn't match the
5394 # behavior of shared libraries on other platforms, we can use
5400 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5401 allow_undefined_flag=unsupported
5402 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5403 # support --undefined. This deserves some investigation. FIXME
5404 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5410 cygwin* | mingw* | pw32*)
5411 # hardcode_libdir_flag_spec is actually meaningless, as there is
5412 # no search path for DLLs.
5413 hardcode_libdir_flag_spec='-L$libdir'
5414 allow_undefined_flag=unsupported
5415 always_export_symbols=yes
5417 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5418 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5419 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5420 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5421 else $CC -o impgen impgen.c ; fi)~
5422 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5424 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5426 # cygwin and mingw dlls have different entry points and sets of symbols
5428 # FIXME: what about values for MSVC?
5429 dll_entry=__cygwin_dll_entry@12
5430 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5434 dll_entry=_DllMainCRTStartup@12
5435 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5439 # mingw and cygwin differ, and it's simplest to just exclude the union
5440 # of the two symbol sets.
5441 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5443 # recent cygwin and mingw systems supply a stub DllMain which the user
5444 # can override, but on older systems we have to supply one (in ltdll.c)
5445 if test "x$lt_cv_need_dllmain" = "xyes"; then
5446 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5447 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~
5448 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5454 # Extract the symbol export list from an `--export-all' def file,
5455 # then regenerate the def file from the symbol export list, so that
5456 # the compiled dll only exports the symbol export list.
5457 # Be careful not to strip the DATA tag left be newer dlltools.
5458 export_symbols_cmds="$ltdll_cmds"'
5459 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5460 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5462 # If the export-symbols file already is a .def file (1st line
5463 # is EXPORTS), use it as is.
5464 # If DATA tags from a recent dlltool are present, honour them!
5465 archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5466 cp $export_symbols $output_objdir/$soname-def;
5468 echo EXPORTS > $output_objdir/$soname-def;
5470 cat $export_symbols | while read symbol; do
5473 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5474 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5475 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5477 _lt_hint=`expr 1 + \$_lt_hint`;
5481 $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~
5482 $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~
5483 $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~
5484 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5485 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5489 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5490 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5493 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5494 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5499 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5503 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5504 *** create shared libraries on Solaris systems. Therefore, libtool
5505 *** is disabling shared libraries support. We urge you to upgrade GNU
5506 *** binutils to release 2.9.1 or newer. Another option is to modify
5507 *** your PATH or compiler configuration so that the native linker is
5508 *** used, and then restart.
5511 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5512 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5513 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5520 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5523 hardcode_shlibpath_var=no
5527 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5528 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5529 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5536 if test "$ld_shlibs" = yes; then
5537 runpath_var=LD_RUN_PATH
5538 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5539 export_dynamic_flag_spec='${wl}--export-dynamic'
5541 cygwin* | mingw* | pw32*)
5542 # dlltool doesn't understand --whole-archive et. al.
5543 whole_archive_flag_spec=
5546 # ancient GNU ld didn't support --whole-archive et. al.
5547 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5548 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5550 whole_archive_flag_spec=
5556 # PORTME fill in a description of your system's linker (not GNU ld)
5559 allow_undefined_flag=unsupported
5560 always_export_symbols=yes
5561 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'
5562 # Note: this linker hardcodes the directories in LIBPATH if there
5563 # are no directories specified by -L.
5564 hardcode_minus_L=yes
5565 if test "$GCC" = yes && test -z "$link_static_flag"; then
5566 # Neither direct hardcoding nor static linking is supported with a
5568 hardcode_direct=unsupported
5573 if test "$host_cpu" = ia64; then
5574 # On IA64, the linker does run time linking by default, so we don't
5575 # have to do anything special.
5576 aix_use_runtimelinking=no
5577 exp_sym_flag='-Bexport'
5580 aix_use_runtimelinking=no
5582 # Test if we are trying to use run time linking or normal
5583 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5584 # need to do runtime linking.
5585 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5586 for ld_flag in $LDFLAGS; do
5589 aix_use_runtimelinking=yes
5596 exp_sym_flag='-bexport'
5597 no_entry_flag='-bnoentry'
5600 # When large executables or shared objects are built, AIX ld can
5601 # have problems creating the table of contents. If linking a library
5602 # or program results in "error TOC overflow" add -mminimal-toc to
5603 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5604 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5608 hardcode_libdir_separator=':'
5609 if test "$GCC" = yes; then
5610 case $host_os in aix4.[012]|aix4.[012].*)
5611 collect2name=`${CC} -print-prog-name=collect2`
5612 if test -f "$collect2name" && \
5613 strings "$collect2name" | grep resolve_lib_name >/dev/null
5615 # We have reworked collect2
5618 # We have old collect2
5619 hardcode_direct=unsupported
5620 # It fails to find uninstalled libraries when the uninstalled
5621 # path is not listed in the libpath. Setting hardcode_minus_L
5622 # to unsupported forces relinking
5623 hardcode_minus_L=yes
5624 hardcode_libdir_flag_spec='-L$libdir'
5625 hardcode_libdir_separator=
5629 shared_flag='-shared'
5632 if test "$host_cpu" = ia64; then
5633 shared_flag='${wl}-G'
5635 if test "$aix_use_runtimelinking" = yes; then
5636 shared_flag='${wl}-G'
5638 shared_flag='${wl}-bM:SRE'
5643 # It seems that -bexpall can do strange things, so it is better to
5644 # generate a list of symbols to export.
5645 always_export_symbols=yes
5646 if test "$aix_use_runtimelinking" = yes; then
5647 # Warning - without using the other runtime loading flags (-brtl),
5648 # -berok will link without error, but may produce a broken library.
5649 allow_undefined_flag='-berok'
5650 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5651 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"
5653 if test "$host_cpu" = ia64; then
5654 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5655 allow_undefined_flag="-z nodefs"
5656 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"
5658 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5659 # Warning - without using the other run time loading flags,
5660 # -berok will link without error, but may produce a broken library.
5661 allow_undefined_flag='${wl}-berok'
5662 # This is a bit strange, but is similar to how AIX traditionally builds
5663 # it's shared libraries.
5664 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'
5670 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)'
5671 hardcode_libdir_flag_spec='-L$libdir'
5672 hardcode_minus_L=yes
5673 # see comment about different semantics on the GNU ld section
5677 cygwin* | mingw* | pw32*)
5678 # When not using gcc, we currently assume that we are using
5679 # Microsoft Visual C++.
5680 # hardcode_libdir_flag_spec is actually meaningless, as there is
5681 # no search path for DLLs.
5682 hardcode_libdir_flag_spec=' '
5683 allow_undefined_flag=unsupported
5684 # Tell ltmain to make .lib files, not .a files.
5686 # FIXME: Setting linknames here is a bad hack.
5687 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5688 # The linker will automatically build a .lib file if we build a DLL.
5689 old_archive_from_new_cmds='true'
5690 # FIXME: Should let the user specify the lib program.
5691 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5692 fix_srcfile_path='`cygpath -w "$srcfile"`'
5695 darwin* | rhapsody*)
5697 rhapsody* | darwin1.[012])
5698 allow_undefined_flag='-undefined suppress'
5701 allow_undefined_flag='-flat_namespace -undefined suppress'
5704 # FIXME: Relying on posixy $() will cause problems for
5705 # cross-compilation, but unfortunately the echo tests do not
5706 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5707 # `"' quotes if we put them in here... so don't!
5708 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)'
5709 # We need to add '_' to the symbols in $export_symbols first
5710 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5712 hardcode_shlibpath_var=no
5713 whole_archive_flag_spec='-all_load $convenience'
5720 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5721 # support. Future versions do this automatically, but an explicit c++rt0.o
5722 # does not break anything, and helps significantly (at the cost of a little
5725 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5726 hardcode_libdir_flag_spec='-R$libdir'
5728 hardcode_shlibpath_var=no
5731 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5733 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5735 hardcode_minus_L=yes
5736 hardcode_shlibpath_var=no
5739 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5741 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5742 hardcode_libdir_flag_spec='-R$libdir'
5744 hardcode_shlibpath_var=no
5747 hpux9* | hpux10* | hpux11*)
5749 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' ;;
5750 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5752 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5753 hardcode_libdir_separator=:
5755 hardcode_minus_L=yes # Not in the search PATH, but as the default
5756 # location of the library.
5757 export_dynamic_flag_spec='${wl}-E'
5760 irix5* | irix6* | nonstopux*)
5761 if test "$GCC" = yes; then
5762 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'
5763 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5765 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'
5766 hardcode_libdir_flag_spec='-rpath $libdir'
5768 hardcode_libdir_separator=:
5769 link_all_deplibs=yes
5773 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5776 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5778 hardcode_libdir_flag_spec='-R$libdir'
5780 hardcode_shlibpath_var=no
5784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5786 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5787 hardcode_libdir_separator=:
5788 hardcode_shlibpath_var=no
5793 hardcode_shlibpath_var=no
5794 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5795 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5796 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5797 export_dynamic_flag_spec='${wl}-E'
5800 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5801 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5802 hardcode_libdir_flag_spec='-R$libdir'
5805 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5806 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5813 archive_cmds="\$CC -Wl,DLL \$libobjs \$deplibs \$compiler_flags -o \$lib &&
5814 cp \$linknames \$output_objdir && linknames=''"
5815 export_dynamic_flag_spec="-Wl,DLL"
5819 hardcode_libdir_flag_spec='-L$libdir'
5820 hardcode_minus_L=yes
5821 allow_undefined_flag=unsupported
5822 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'
5823 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5827 if test "$GCC" = yes; then
5828 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5829 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'
5831 allow_undefined_flag=' -expect_unresolved \*'
5832 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'
5834 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5835 hardcode_libdir_separator=:
5838 osf4* | osf5*) # as osf3* with the addition of -msym flag
5839 if test "$GCC" = yes; then
5840 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5841 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'
5842 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5844 allow_undefined_flag=' -expect_unresolved \*'
5845 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'
5846 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5847 $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'
5849 #Both c and cxx compiler support -rpath directly
5850 hardcode_libdir_flag_spec='-rpath $libdir'
5852 hardcode_libdir_separator=:
5856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5857 hardcode_shlibpath_var=no
5858 runpath_var=LD_RUN_PATH
5859 hardcode_runpath_var=yes
5860 export_dynamic_flag_spec='${wl}-Bexport'
5864 # gcc --version < 3.0 without binutils cannot create self contained
5865 # shared libraries reliably, requiring libgcc.a to resolve some of
5866 # the object symbols generated in some cases. Libraries that use
5867 # assert need libgcc.a to resolve __eprintf, for example. Linking
5868 # a copy of libgcc.a into every shared library to guarantee resolving
5869 # such symbols causes other problems: According to Tim Van Holder
5870 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5871 # (to the application) exception stack for one thing.
5872 no_undefined_flag=' -z defs'
5873 if test "$GCC" = yes; then
5874 case `$CC --version 2>/dev/null` in
5878 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5879 *** create self contained shared libraries on Solaris systems, without
5880 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5881 *** -no-undefined support, which will at least allow you to build shared
5882 *** libraries. However, you may find that when you link such libraries
5883 *** into an application without using GCC, you have to manually add
5884 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5885 *** upgrade to a newer version of GCC. Another option is to rebuild your
5886 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5893 # $CC -shared without GNU ld will not create a library from C++
5894 # object files and a static libstdc++, better avoid it by now
5895 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5896 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5897 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5898 hardcode_libdir_flag_spec='-R$libdir'
5899 hardcode_shlibpath_var=no
5901 solaris2.[0-5] | solaris2.[0-5].*) ;;
5902 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5903 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5905 link_all_deplibs=yes
5909 if test "x$host_vendor" = xsequent; then
5910 # Use $CC to link under sequent, because it throws in some extra .o
5911 # files that make .init and .fini sections work.
5912 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5914 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5916 hardcode_libdir_flag_spec='-L$libdir'
5918 hardcode_minus_L=yes
5919 hardcode_shlibpath_var=no
5923 case $host_vendor in
5925 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5926 hardcode_direct=yes # is this really true???
5929 ## LD is ld it makes a PLAMLIB
5930 ## CC just makes a GrossModule.
5931 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5932 reload_cmds='$CC -r -o $output$reload_objs'
5936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5937 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5940 runpath_var='LD_RUN_PATH'
5941 hardcode_shlibpath_var=no
5945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5946 hardcode_shlibpath_var=no
5947 export_dynamic_flag_spec='-Bexport'
5951 no_undefined_flag=' -z text'
5952 # $CC -shared without GNU ld will not create a library from C++
5953 # object files and a static libstdc++, better avoid it by now
5954 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5955 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5956 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5957 hardcode_libdir_flag_spec=
5958 hardcode_shlibpath_var=no
5959 runpath_var='LD_RUN_PATH'
5963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5964 hardcode_libdir_flag_spec='-L$libdir'
5965 hardcode_shlibpath_var=no
5969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5970 hardcode_libdir_flag_spec='-L$libdir'
5971 hardcode_shlibpath_var=no
5975 if test -d /usr/nec; then
5976 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5977 hardcode_shlibpath_var=no
5978 runpath_var=LD_RUN_PATH
5979 hardcode_runpath_var=yes
5985 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5988 hardcode_shlibpath_var=no
5989 hardcode_runpath_var=yes
5990 runpath_var=LD_RUN_PATH
5993 sysv5uw7* | unixware7*)
5994 no_undefined_flag='${wl}-z ${wl}text'
5995 if test "$GCC" = yes; then
5996 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5998 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6000 runpath_var='LD_RUN_PATH'
6001 hardcode_shlibpath_var=no
6009 echo "$ac_t""$ld_shlibs" 1>&6
6010 test "$ld_shlibs" = no && can_build_shared=no
6012 # Check hardcoding attributes.
6013 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
6014 echo "configure:6015: checking how to hardcode library paths into programs" >&5
6016 if test -n "$hardcode_libdir_flag_spec" || \
6017 test -n "$runpath_var"; then
6019 # We can hardcode non-existant directories.
6020 if test "$hardcode_direct" != no &&
6021 # If the only mechanism to avoid hardcoding is shlibpath_var, we
6022 # have to relink, otherwise we might link with an installed library
6023 # when we should be linking with a yet-to-be-installed one
6024 ## test "$hardcode_shlibpath_var" != no &&
6025 test "$hardcode_minus_L" != no; then
6026 # Linking always hardcodes the temporary library directory.
6027 hardcode_action=relink
6029 # We can link without hardcoding, and we can hardcode nonexisting dirs.
6030 hardcode_action=immediate
6033 # We cannot hardcode anything, or else we can only hardcode existing
6035 hardcode_action=unsupported
6037 echo "$ac_t""$hardcode_action" 1>&6
6041 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
6042 echo "configure:6043: checking whether stripping libraries is possible" >&5
6043 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6044 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6045 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6046 echo "$ac_t""yes" 1>&6
6048 echo "$ac_t""no" 1>&6
6051 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6052 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6054 # PORTME Fill in your ld.so characteristics
6055 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
6056 echo "configure:6057: checking dynamic linker characteristics" >&5
6058 libname_spec='lib$name'
6065 shlibpath_overrides_runpath=unknown
6067 dynamic_linker="$host_os ld.so"
6068 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6069 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6074 library_names_spec='${libname}${release}.so$versuffix $libname.a'
6075 shlibpath_var=LIBPATH
6077 # AIX has no versioning support, so we append a major version to the name.
6078 soname_spec='${libname}${release}.so$major'
6085 hardcode_into_libs=yes
6086 if test "$host_cpu" = ia64; then
6087 # AIX 5 supports IA64
6088 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6089 shlibpath_var=LD_LIBRARY_PATH
6091 # With GCC up to 2.95.x, collect2 would create an import file
6092 # for dependence libraries. The import file would start with
6093 # the line `#! .'. This would cause the generated library to
6094 # depend on `.', always an invalid library. This was fixed in
6095 # development snapshots of GCC prior to 3.0.
6097 aix4 | aix4.[01] | aix4.[01].*)
6098 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6100 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6107 # AIX (on Power*) has no versioning support, so currently we can
6108 # not hardcode correct soname into executable. Probably we can
6109 # add versioning support to collect2, so additional links can
6110 # be useful in future.
6111 if test "$aix_use_runtimelinking" = yes; then
6112 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6113 # instead of lib<name>.a to let people know that these are not
6114 # typical AIX shared libraries.
6115 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6117 # We preserve .a as extension for shared libraries through AIX4.2
6118 # and later when we are not doing run time linking.
6119 library_names_spec='${libname}${release}.a $libname.a'
6120 soname_spec='${libname}${release}.so$major'
6122 shlibpath_var=LIBPATH
6124 hardcode_into_libs=yes
6128 library_names_spec='$libname.ixlibrary $libname.a'
6129 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6130 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'
6134 library_names_spec='${libname}.so'
6135 dynamic_linker="$host_os ld.so"
6136 shlibpath_var=LIBRARY_PATH
6142 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6143 soname_spec='${libname}${release}.so$major'
6144 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6145 shlibpath_var=LD_LIBRARY_PATH
6146 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6147 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6148 export_dynamic_flag_spec=-rdynamic
6149 # the default ld.so.conf also contains /usr/contrib/lib and
6150 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6151 # libtool to hard-code these into programs
6154 cygwin* | mingw* | pw32*)
6155 version_type=windows
6158 case $GCC,$host_os in
6160 library_names_spec='$libname.dll.a'
6161 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6162 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6163 dldir=$destdir/`dirname \$dlpath`~
6164 test -d \$dldir || mkdir -p \$dldir~
6165 $install_prog .libs/$dlname \$dldir/$dlname'
6166 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6167 dlpath=$dir/\$dldll~
6171 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6172 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6175 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6178 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6181 dynamic_linker='Win32 ld.exe'
6182 # FIXME: first we should search . and the directory the executable is in
6186 darwin* | rhapsody*)
6187 dynamic_linker="$host_os dyld"
6191 # FIXME: Relying on posixy $() will cause problems for
6192 # cross-compilation, but unfortunately the echo tests do not
6193 # yet detect zsh echo's removal of \ escapes.
6194 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)'
6195 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6196 shlibpath_overrides_runpath=yes
6197 shlibpath_var=DYLD_LIBRARY_PATH
6205 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6206 version_type=freebsd-$objformat
6207 case $version_type in
6209 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6214 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6218 shlibpath_var=LD_LIBRARY_PATH
6221 shlibpath_overrides_runpath=yes
6224 shlibpath_overrides_runpath=no
6225 hardcode_into_libs=yes
6234 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6235 soname_spec='${libname}${release}.so$major'
6236 shlibpath_var=LD_LIBRARY_PATH
6237 hardcode_into_libs=yes
6240 hpux9* | hpux10* | hpux11*)
6241 # Give a soname corresponding to the major version so that dld.sl refuses to
6242 # link against other versions.
6243 dynamic_linker="$host_os dld.sl"
6247 shlibpath_var=SHLIB_PATH
6248 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6249 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6250 soname_spec='${libname}${release}.sl$major'
6251 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6252 postinstall_cmds='chmod 555 $lib'
6255 irix5* | irix6* | nonstopux*)
6257 nonstopux*) version_type=nonstopux ;;
6258 *) version_type=irix ;;
6262 soname_spec='${libname}${release}.so$major'
6263 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6265 irix5* | nonstopux*)
6269 case $LD in # libtool.m4 will add one of these switches to LD
6270 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6271 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6272 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6273 *) libsuff= shlibsuff= libmagic=never-match;;
6277 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6278 shlibpath_overrides_runpath=no
6279 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6280 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6283 # No shared lib support for Linux oldld, aout, or coff.
6284 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6288 # This must be Linux ELF.
6293 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6294 soname_spec='${libname}${release}.so$major'
6295 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6296 shlibpath_var=LD_LIBRARY_PATH
6297 shlibpath_overrides_runpath=no
6298 # This implies no fast_install, which is unacceptable.
6299 # Some rework will be needed to allow for fast_install
6300 # before this can be enabled.
6301 hardcode_into_libs=yes
6303 # We used to test for /lib/ld.so.1 and disable shared libraries on
6304 # powerpc, because MkLinux only supported shared libraries with the
6305 # GNU dynamic linker. Since this was broken with cross compilers,
6306 # most powerpc-linux boxes support dynamic linking these days and
6307 # people can always --disable-shared, the test was removed, and we
6308 # assume the GNU/Linux dynamic linker is in use.
6309 dynamic_linker='GNU/Linux ld.so'
6316 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6317 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6318 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6319 dynamic_linker='NetBSD (a.out) ld.so'
6321 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6322 soname_spec='${libname}${release}.so$major'
6323 dynamic_linker='NetBSD ld.elf_so'
6325 shlibpath_var=LD_LIBRARY_PATH
6326 shlibpath_overrides_runpath=yes
6327 hardcode_into_libs=yes
6332 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6333 shlibpath_var=LD_LIBRARY_PATH
6334 shlibpath_overrides_runpath=yes
6341 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6343 openbsd2.[89] | openbsd2.[89].*)
6344 shlibpath_overrides_runpath=no
6347 shlibpath_overrides_runpath=yes
6351 shlibpath_overrides_runpath=yes
6353 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6355 shlibpath_var=LD_LIBRARY_PATH
6361 shlibpath_overrides_runpath=yes
6362 shlibpath_var=LIBPATH
6363 postinstall_cmds="rm \$destdir/\$linkname; cp \$linkname \$destdir; chmod a+x \$lib"
6364 # the library's exports are in libname.x; this is the file that must
6365 # actually be linked with to use a DLL.
6366 library_names_spec="\${libname}\${release}.so\$versuffix \${libname}.x"
6370 libname_spec='$name'
6372 library_names_spec='$libname.dll $libname.a'
6373 dynamic_linker='OS/2 ld.exe'
6374 shlibpath_var=LIBPATH
6377 osf3* | osf4* | osf5*)
6380 soname_spec='${libname}${release}.so$major'
6381 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6382 shlibpath_var=LD_LIBRARY_PATH
6383 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6384 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6385 hardcode_into_libs=yes
6390 soname_spec='${libname}${release}.so$major'
6391 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6392 shlibpath_var=LD_LIBRARY_PATH
6399 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6400 soname_spec='${libname}${release}.so$major'
6401 shlibpath_var=LD_LIBRARY_PATH
6402 shlibpath_overrides_runpath=yes
6403 hardcode_into_libs=yes
6404 # ldd complains unless libraries are executable
6405 postinstall_cmds='chmod +x $lib'
6410 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6411 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6412 shlibpath_var=LD_LIBRARY_PATH
6413 shlibpath_overrides_runpath=yes
6414 if test "$with_gnu_ld" = yes; then
6420 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6422 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6423 soname_spec='${libname}${release}.so$major'
6424 shlibpath_var=LD_LIBRARY_PATH
6425 case $host_vendor in
6427 shlibpath_overrides_runpath=no
6429 export_dynamic_flag_spec='${wl}-Blargedynsym'
6430 runpath_var=LD_RUN_PATH
6438 shlibpath_overrides_runpath=no
6439 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6446 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6447 soname_spec='${libname}${release}.so$major'
6448 shlibpath_var=LD_LIBRARY_PATH
6455 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6456 soname_spec='${libname}${release}.so$major'
6457 shlibpath_var=LD_LIBRARY_PATH
6461 if test -d /usr/nec ;then
6463 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6464 soname_spec='$libname.so.$major'
6465 shlibpath_var=LD_LIBRARY_PATH
6473 echo "$ac_t""$dynamic_linker" 1>&6
6474 test "$dynamic_linker" = no && can_build_shared=no
6476 # Report the final consequences.
6477 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
6478 echo "configure:6479: checking if libtool supports shared libraries" >&5
6479 echo "$ac_t""$can_build_shared" 1>&6
6481 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
6482 echo "configure:6483: checking whether to build shared libraries" >&5
6483 test "$can_build_shared" = "no" && enable_shared=no
6485 # On AIX, shared libraries and static libraries use the same namespace, and
6486 # are all built from PIC.
6489 test "$enable_shared" = yes && enable_static=no
6490 if test -n "$RANLIB"; then
6491 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6492 postinstall_cmds='$RANLIB $lib'
6497 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6498 test "$enable_shared" = yes && enable_static=no
6502 echo "$ac_t""$enable_shared" 1>&6
6504 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
6505 echo "configure:6506: checking whether to build static libraries" >&5
6506 # Make sure either enable_shared or enable_static is yes.
6507 test "$enable_shared" = yes || enable_static=yes
6508 echo "$ac_t""$enable_static" 1>&6
6510 if test "$hardcode_action" = relink; then
6511 # Fast installation is not supported
6512 enable_fast_install=no
6513 elif test "$shlibpath_overrides_runpath" = yes ||
6514 test "$enable_shared" = no; then
6515 # Fast installation is not necessary
6516 enable_fast_install=needless
6519 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6520 if test "$GCC" = yes; then
6521 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6524 if test "x$enable_dlopen" != xyes; then
6525 enable_dlopen=unknown
6526 enable_dlopen_self=unknown
6527 enable_dlopen_self_static=unknown
6534 lt_cv_dlopen="load_add_on"
6536 lt_cv_dlopen_self=yes
6539 cygwin* | mingw* | pw32*)
6540 lt_cv_dlopen="LoadLibrary"
6545 echo $ac_n "checking for dllload""... $ac_c" 1>&6
6546 echo "configure:6547: checking for dllload" >&5
6547 if eval "test \"\${ac_cv_func_dllload+set}\" = set"; then
6548 echo $ac_n "(cached) $ac_c" 1>&6
6550 cat > conftest.$ac_ext <<EOF
6551 #line 6552 "configure"
6552 #include "confdefs.h"
6553 /* System header to define __stub macros and hopefully few prototypes,
6554 which can conflict with char dllload(); below. */
6556 /* Override any gcc2 internal prototype to avoid an error. */
6557 /* We use char because int might match the return type of a gcc2
6558 builtin and then its argument prototype would still apply. */
6564 /* The GNU C library defines this for functions which it implements
6565 to always fail with ENOSYS. Some functions are actually named
6566 something starting with __ and the normal name is an alias. */
6567 #if defined (__stub_dllload) || defined (__stub___dllload)
6575 if { (eval echo configure:6576: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6577 eval "ac_cv_func_dllload=yes"
6579 echo "configure: failed program was:" >&5
6580 cat conftest.$ac_ext >&5
6582 eval "ac_cv_func_dllload=no"
6587 if eval "test \"`echo '$ac_cv_func_'dllload`\" = yes"; then
6588 echo "$ac_t""yes" 1>&6
6589 lt_cv_dlopen="dllload"
6591 echo "$ac_t""no" 1>&6
6592 echo $ac_n "checking for shl_load""... $ac_c" 1>&6
6593 echo "configure:6594: checking for shl_load" >&5
6594 if eval "test \"\${ac_cv_func_shl_load+set}\" = set"; then
6595 echo $ac_n "(cached) $ac_c" 1>&6
6597 cat > conftest.$ac_ext <<EOF
6598 #line 6599 "configure"
6599 #include "confdefs.h"
6600 /* System header to define __stub macros and hopefully few prototypes,
6601 which can conflict with char shl_load(); below. */
6603 /* Override any gcc2 internal prototype to avoid an error. */
6604 /* We use char because int might match the return type of a gcc2
6605 builtin and then its argument prototype would still apply. */
6611 /* The GNU C library defines this for functions which it implements
6612 to always fail with ENOSYS. Some functions are actually named
6613 something starting with __ and the normal name is an alias. */
6614 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6622 if { (eval echo configure:6623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6624 eval "ac_cv_func_shl_load=yes"
6626 echo "configure: failed program was:" >&5
6627 cat conftest.$ac_ext >&5
6629 eval "ac_cv_func_shl_load=no"
6634 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
6635 echo "$ac_t""yes" 1>&6
6636 lt_cv_dlopen="shl_load"
6638 echo "$ac_t""no" 1>&6
6639 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
6640 echo "configure:6641: checking for shl_load in -ldld" >&5
6641 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-:%__p__%'`
6642 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6643 echo $ac_n "(cached) $ac_c" 1>&6
6645 ac_save_LIBS="$LIBS"
6647 cat > conftest.$ac_ext <<EOF
6648 #line 6649 "configure"
6649 #include "confdefs.h"
6650 /* Override any gcc2 internal prototype to avoid an error. */
6651 /* We use char because int might match the return type of a gcc2
6652 builtin and then its argument prototype would still apply. */
6659 if { (eval echo configure:6660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6661 eval "ac_cv_lib_$ac_lib_var=yes"
6663 echo "configure: failed program was:" >&5
6664 cat conftest.$ac_ext >&5
6666 eval "ac_cv_lib_$ac_lib_var=no"
6669 LIBS="$ac_save_LIBS"
6672 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6673 echo "$ac_t""yes" 1>&6
6674 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6676 echo "$ac_t""no" 1>&6
6677 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
6678 echo "configure:6679: checking for dlopen" >&5
6679 if eval "test \"\${ac_cv_func_dlopen+set}\" = set"; then
6680 echo $ac_n "(cached) $ac_c" 1>&6
6682 cat > conftest.$ac_ext <<EOF
6683 #line 6684 "configure"
6684 #include "confdefs.h"
6685 /* System header to define __stub macros and hopefully few prototypes,
6686 which can conflict with char dlopen(); below. */
6688 /* Override any gcc2 internal prototype to avoid an error. */
6689 /* We use char because int might match the return type of a gcc2
6690 builtin and then its argument prototype would still apply. */
6696 /* The GNU C library defines this for functions which it implements
6697 to always fail with ENOSYS. Some functions are actually named
6698 something starting with __ and the normal name is an alias. */
6699 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6707 if { (eval echo configure:6708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6709 eval "ac_cv_func_dlopen=yes"
6711 echo "configure: failed program was:" >&5
6712 cat conftest.$ac_ext >&5
6714 eval "ac_cv_func_dlopen=no"
6719 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
6720 echo "$ac_t""yes" 1>&6
6721 lt_cv_dlopen="dlopen"
6723 echo "$ac_t""no" 1>&6
6724 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
6725 echo "configure:6726: checking for dlopen in -ldl" >&5
6726 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-:%__p__%'`
6727 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6728 echo $ac_n "(cached) $ac_c" 1>&6
6730 ac_save_LIBS="$LIBS"
6732 cat > conftest.$ac_ext <<EOF
6733 #line 6734 "configure"
6734 #include "confdefs.h"
6735 /* Override any gcc2 internal prototype to avoid an error. */
6736 /* We use char because int might match the return type of a gcc2
6737 builtin and then its argument prototype would still apply. */
6744 if { (eval echo configure:6745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6746 eval "ac_cv_lib_$ac_lib_var=yes"
6748 echo "configure: failed program was:" >&5
6749 cat conftest.$ac_ext >&5
6751 eval "ac_cv_lib_$ac_lib_var=no"
6754 LIBS="$ac_save_LIBS"
6757 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6758 echo "$ac_t""yes" 1>&6
6759 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6761 echo "$ac_t""no" 1>&6
6762 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
6763 echo "configure:6764: checking for dlopen in -lsvld" >&5
6764 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-:%__p__%'`
6765 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6766 echo $ac_n "(cached) $ac_c" 1>&6
6768 ac_save_LIBS="$LIBS"
6770 cat > conftest.$ac_ext <<EOF
6771 #line 6772 "configure"
6772 #include "confdefs.h"
6773 /* Override any gcc2 internal prototype to avoid an error. */
6774 /* We use char because int might match the return type of a gcc2
6775 builtin and then its argument prototype would still apply. */
6782 if { (eval echo configure:6783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6784 eval "ac_cv_lib_$ac_lib_var=yes"
6786 echo "configure: failed program was:" >&5
6787 cat conftest.$ac_ext >&5
6789 eval "ac_cv_lib_$ac_lib_var=no"
6792 LIBS="$ac_save_LIBS"
6795 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6796 echo "$ac_t""yes" 1>&6
6797 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6799 echo "$ac_t""no" 1>&6
6800 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
6801 echo "configure:6802: checking for dld_link in -ldld" >&5
6802 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-:%__p__%'`
6803 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
6804 echo $ac_n "(cached) $ac_c" 1>&6
6806 ac_save_LIBS="$LIBS"
6808 cat > conftest.$ac_ext <<EOF
6809 #line 6810 "configure"
6810 #include "confdefs.h"
6811 /* Override any gcc2 internal prototype to avoid an error. */
6812 /* We use char because int might match the return type of a gcc2
6813 builtin and then its argument prototype would still apply. */
6820 if { (eval echo configure:6821: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6822 eval "ac_cv_lib_$ac_lib_var=yes"
6824 echo "configure: failed program was:" >&5
6825 cat conftest.$ac_ext >&5
6827 eval "ac_cv_lib_$ac_lib_var=no"
6830 LIBS="$ac_save_LIBS"
6833 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6834 echo "$ac_t""yes" 1>&6
6835 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6837 echo "$ac_t""no" 1>&6
6861 if test "x$lt_cv_dlopen" != xno; then
6867 case $lt_cv_dlopen in
6869 save_CPPFLAGS="$CPPFLAGS"
6870 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6872 save_LDFLAGS="$LDFLAGS"
6873 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6876 LIBS="$lt_cv_dlopen_libs $LIBS"
6878 echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
6879 echo "configure:6880: checking whether a program can dlopen itself" >&5
6880 if eval "test \"\${lt_cv_dlopen_self+set}\" = set"; then
6881 echo $ac_n "(cached) $ac_c" 1>&6
6883 if test "$cross_compiling" = yes; then :
6884 lt_cv_dlopen_self=cross
6886 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6887 lt_status=$lt_dlunknown
6888 cat > conftest.$ac_ext <<EOF
6889 #line 6890 "configure"
6890 #include "confdefs.h"
6899 # define LT_DLGLOBAL RTLD_GLOBAL
6902 # define LT_DLGLOBAL DL_GLOBAL
6904 # define LT_DLGLOBAL 0
6908 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6909 find out it does not work in some platform. */
6910 #ifndef LT_DLLAZY_OR_NOW
6912 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6915 # define LT_DLLAZY_OR_NOW DL_LAZY
6918 # define LT_DLLAZY_OR_NOW RTLD_NOW
6921 # define LT_DLLAZY_OR_NOW DL_NOW
6923 # define LT_DLLAZY_OR_NOW 0
6931 extern "C" void exit (int);
6934 void fnord() { int i=42;}
6937 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6938 int status = $lt_dlunknown;
6942 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6943 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6944 /* dlclose (self); */
6950 if { (eval echo configure:6951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
6951 (./conftest; exit; ) 2>/dev/null
6954 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6955 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6956 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6959 # compilation failed
6960 lt_cv_dlopen_self=no
6968 echo "$ac_t""$lt_cv_dlopen_self" 1>&6
6970 if test "x$lt_cv_dlopen_self" = xyes; then
6971 LDFLAGS="$LDFLAGS $link_static_flag"
6972 echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
6973 echo "configure:6974: checking whether a statically linked program can dlopen itself" >&5
6974 if eval "test \"\${lt_cv_dlopen_self_static+set}\" = set"; then
6975 echo $ac_n "(cached) $ac_c" 1>&6
6977 if test "$cross_compiling" = yes; then :
6978 lt_cv_dlopen_self_static=cross
6980 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6981 lt_status=$lt_dlunknown
6982 cat > conftest.$ac_ext <<EOF
6983 #line 6984 "configure"
6984 #include "confdefs.h"
6993 # define LT_DLGLOBAL RTLD_GLOBAL
6996 # define LT_DLGLOBAL DL_GLOBAL
6998 # define LT_DLGLOBAL 0
7002 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7003 find out it does not work in some platform. */
7004 #ifndef LT_DLLAZY_OR_NOW
7006 # define LT_DLLAZY_OR_NOW RTLD_LAZY
7009 # define LT_DLLAZY_OR_NOW DL_LAZY
7012 # define LT_DLLAZY_OR_NOW RTLD_NOW
7015 # define LT_DLLAZY_OR_NOW DL_NOW
7017 # define LT_DLLAZY_OR_NOW 0
7025 extern "C" void exit (int);
7028 void fnord() { int i=42;}
7031 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7032 int status = $lt_dlunknown;
7036 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7037 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7038 /* dlclose (self); */
7044 if { (eval echo configure:7045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
7045 (./conftest; exit; ) 2>/dev/null
7048 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7049 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7050 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7053 # compilation failed
7054 lt_cv_dlopen_self_static=no
7062 echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
7065 CPPFLAGS="$save_CPPFLAGS"
7066 LDFLAGS="$save_LDFLAGS"
7071 case $lt_cv_dlopen_self in
7072 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7073 *) enable_dlopen_self=unknown ;;
7076 case $lt_cv_dlopen_self_static in
7077 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7078 *) enable_dlopen_self_static=unknown ;;
7083 if test "$enable_shared" = yes && test "$GCC" = yes; then
7084 case $archive_cmds in
7086 # FIXME: we may have to deal with multi-command sequences.
7089 # Test whether the compiler implicitly links with -lc since on some
7090 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7091 # to ld, don't add -lc before -lgcc.
7092 echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
7093 echo "configure:7094: checking whether -lc should be explicitly linked in" >&5
7094 if eval "test \"\${lt_cv_archive_cmds_need_lc+set}\" = set"; then
7095 echo $ac_n "(cached) $ac_c" 1>&6
7098 echo 'static int dummy;' > conftest.$ac_ext
7100 if { (eval echo configure:7101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7103 libobjs=conftest.$ac_objext
7105 wl=$lt_cv_prog_cc_wl
7111 save_allow_undefined_flag=$allow_undefined_flag
7112 allow_undefined_flag=
7113 if { (eval echo configure:7114: \"$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; }
7115 lt_cv_archive_cmds_need_lc=no
7117 lt_cv_archive_cmds_need_lc=yes
7119 allow_undefined_flag=$save_allow_undefined_flag
7121 cat conftest.err 1>&5
7125 echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
7129 need_lc=${lt_cv_archive_cmds_need_lc-yes}
7131 # The second clause should only fire when bootstrapping the
7132 # libtool distribution, otherwise you forgot to ship ltmain.sh
7133 # with your package, and you will get complaints that there are
7134 # no rules to generate ltmain.sh.
7135 if test -f "$ltmain"; then
7138 # If there is no Makefile yet, we rely on a make rule to execute
7139 # `config.status --recheck' to rerun these tests and create the
7140 # libtool script then.
7141 test -f Makefile && make "$ltmain"
7144 if test -f "$ltmain"; then
7145 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7148 echo creating $ofile
7150 # Now quote all the things that may contain metacharacters while being
7151 # careful not to overquote the AC_SUBSTed values. We take copies of the
7152 # variables and quote the copies for generation of the libtool script.
7153 for var in echo old_CC old_CFLAGS SED \
7154 AR AR_FLAGS CC LD LN_S NM SHELL \
7155 reload_flag reload_cmds wl \
7156 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7157 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7158 library_names_spec soname_spec \
7159 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7160 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7161 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7162 old_striplib striplib file_magic_cmd export_symbols_cmds \
7163 deplibs_check_method allow_undefined_flag no_undefined_flag \
7164 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7165 global_symbol_to_c_name_address \
7166 hardcode_libdir_flag_spec hardcode_libdir_separator \
7167 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7168 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7171 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7172 old_postinstall_cmds | old_postuninstall_cmds | \
7173 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7174 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7175 postinstall_cmds | postuninstall_cmds | \
7176 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7177 # Double-quote double-evaled strings.
7178 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7181 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7186 cat <<__EOF__ > "${ofile}T"
7189 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7190 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7191 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7193 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7194 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7196 # This program is free software; you can redistribute it and/or modify
7197 # it under the terms of the GNU General Public License as published by
7198 # the Free Software Foundation; either version 2 of the License, or
7199 # (at your option) any later version.
7201 # This program is distributed in the hope that it will be useful, but
7202 # WITHOUT ANY WARRANTY; without even the implied warranty of
7203 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7204 # General Public License for more details.
7206 # You should have received a copy of the GNU General Public License
7207 # along with this program; if not, write to the Free Software
7208 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7210 # As a special exception to the GNU General Public License, if you
7211 # distribute this file as part of a program that contains a
7212 # configuration script generated by Autoconf, you may include it under
7213 # the same distribution terms that you use for the rest of that program.
7215 # A sed that does not truncate output.
7218 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7219 Xsed="${SED} -e s/^X//"
7221 # The HP-UX ksh and POSIX shell print the target directory to stdout
7223 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7225 # ### BEGIN LIBTOOL CONFIG
7227 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7229 # Shell to use when invoking shell scripts.
7232 # Whether or not to build shared libraries.
7233 build_libtool_libs=$enable_shared
7235 # Whether or not to build static libraries.
7236 build_old_libs=$enable_static
7238 # Whether or not to add -lc for building shared libraries.
7239 build_libtool_need_lc=$need_lc
7241 # Whether or not to optimize for fast installation.
7242 fast_install=$enable_fast_install
7245 host_alias=$host_alias
7248 # An echo program that does not interpret backslashes.
7253 AR_FLAGS=$lt_AR_FLAGS
7255 # The default C compiler.
7258 # Is the compiler the GNU C compiler?
7261 # The linker used to build libraries.
7264 # Whether we need hard or soft links.
7267 # A BSD-compatible nm program.
7270 # A symbol stripping program
7273 # Used to examine libraries when file_magic_cmd begins "file"
7274 MAGIC_CMD=$MAGIC_CMD
7276 # Used on cygwin: DLL creation program.
7279 # Used on cygwin: object dumper.
7282 # Used on cygwin: assembler.
7285 # The name of the directory that contains temporary libtool files.
7288 # How to create reloadable object files.
7289 reload_flag=$lt_reload_flag
7290 reload_cmds=$lt_reload_cmds
7292 # How to pass a linker flag through the compiler.
7295 # Object file suffix (normally "o").
7298 # Old archive suffix (normally "a").
7301 # Executable file suffix (normally "").
7304 # Additional compiler flags for building library objects.
7305 pic_flag=$lt_pic_flag
7308 # Does compiler simultaneously support -c and -o options?
7309 compiler_c_o=$lt_compiler_c_o
7311 # Can we write directly to a .lo ?
7312 compiler_o_lo=$lt_compiler_o_lo
7314 # Must we lock files when doing compilation ?
7315 need_locks=$lt_need_locks
7317 # Do we need the lib prefix for modules?
7318 need_lib_prefix=$need_lib_prefix
7320 # Do we need a version for libraries?
7321 need_version=$need_version
7323 # Whether dlopen is supported.
7324 dlopen_support=$enable_dlopen
7326 # Whether dlopen of programs is supported.
7327 dlopen_self=$enable_dlopen_self
7329 # Whether dlopen of statically linked programs is supported.
7330 dlopen_self_static=$enable_dlopen_self_static
7332 # Compiler flag to prevent dynamic linking.
7333 link_static_flag=$lt_link_static_flag
7335 # Compiler flag to turn off builtin functions.
7336 no_builtin_flag=$lt_no_builtin_flag
7338 # Compiler flag to allow reflexive dlopens.
7339 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7341 # Compiler flag to generate shared objects directly from archives.
7342 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7344 # Compiler flag to generate thread-safe objects.
7345 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7347 # Library versioning type.
7348 version_type=$version_type
7350 # Format of library name prefix.
7351 libname_spec=$lt_libname_spec
7353 # List of archive names. First name is the real one, the rest are links.
7354 # The last name is the one that the linker finds with -lNAME.
7355 library_names_spec=$lt_library_names_spec
7357 # The coded name of the library, if different from the real name.
7358 soname_spec=$lt_soname_spec
7360 # Commands used to build and install an old-style archive.
7362 old_archive_cmds=$lt_old_archive_cmds
7363 old_postinstall_cmds=$lt_old_postinstall_cmds
7364 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7366 # Create an old-style archive from a shared archive.
7367 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7369 # Create a temporary old-style archive to link instead of a shared archive.
7370 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7372 # Commands used to build and install a shared archive.
7373 archive_cmds=$lt_archive_cmds
7374 archive_expsym_cmds=$lt_archive_expsym_cmds
7375 postinstall_cmds=$lt_postinstall_cmds
7376 postuninstall_cmds=$lt_postuninstall_cmds
7378 # Commands to strip libraries.
7379 old_striplib=$lt_old_striplib
7380 striplib=$lt_striplib
7382 # Method to check whether dependent libraries are shared objects.
7383 deplibs_check_method=$lt_deplibs_check_method
7385 # Command to use when deplibs_check_method == file_magic.
7386 file_magic_cmd=$lt_file_magic_cmd
7388 # Flag that allows shared libraries with undefined symbols to be built.
7389 allow_undefined_flag=$lt_allow_undefined_flag
7391 # Flag that forces no undefined symbols.
7392 no_undefined_flag=$lt_no_undefined_flag
7394 # Commands used to finish a libtool library installation in a directory.
7395 finish_cmds=$lt_finish_cmds
7397 # Same as above, but a single script fragment to be evaled but not shown.
7398 finish_eval=$lt_finish_eval
7400 # Take the output of nm and produce a listing of raw symbols and C names.
7401 global_symbol_pipe=$lt_global_symbol_pipe
7403 # Transform the output of nm in a proper C declaration
7404 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7406 # Transform the output of nm in a C name address pair
7407 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7409 # This is the shared library runtime path variable.
7410 runpath_var=$runpath_var
7412 # This is the shared library path variable.
7413 shlibpath_var=$shlibpath_var
7415 # Is shlibpath searched before the hard-coded library search path?
7416 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7418 # How to hardcode a shared library path into an executable.
7419 hardcode_action=$hardcode_action
7421 # Whether we should hardcode library paths into libraries.
7422 hardcode_into_libs=$hardcode_into_libs
7424 # Flag to hardcode \$libdir into a binary during linking.
7425 # This must work even if \$libdir does not exist.
7426 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7428 # Whether we need a single -rpath flag with a separated argument.
7429 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7431 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7433 hardcode_direct=$hardcode_direct
7435 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7437 hardcode_minus_L=$hardcode_minus_L
7439 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7440 # the resulting binary.
7441 hardcode_shlibpath_var=$hardcode_shlibpath_var
7443 # Variables whose values should be saved in libtool wrapper scripts and
7444 # restored at relink time.
7445 variables_saved_for_relink="$variables_saved_for_relink"
7447 # Whether libtool must link a program against all its dependency libraries.
7448 link_all_deplibs=$link_all_deplibs
7450 # Compile-time system search path for libraries
7451 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7453 # Run-time system search path for libraries
7454 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7456 # Fix the shell variable \$srcfile for the compiler.
7457 fix_srcfile_path="$fix_srcfile_path"
7459 # Set to yes if exported symbols are required.
7460 always_export_symbols=$always_export_symbols
7462 # The commands to list exported symbols.
7463 export_symbols_cmds=$lt_export_symbols_cmds
7465 # The commands to extract the exported symbol list from a shared archive.
7466 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7468 # Symbols that should not be listed in the preloaded symbols.
7469 exclude_expsyms=$lt_exclude_expsyms
7471 # Symbols that must always be exported.
7472 include_expsyms=$lt_include_expsyms
7474 # ### END LIBTOOL CONFIG
7480 cat <<\EOF >> "${ofile}T"
7482 # AIX sometimes has problems with the GCC collect2 program. For some
7483 # reason, if we set the COLLECT_NAMES environment variable, the problems
7484 # vanish in a puff of smoke.
7485 if test "X${COLLECT_NAMES+set}" != Xset; then
7487 export COLLECT_NAMES
7494 cygwin* | mingw* | pw32* | os2*)
7495 cat <<'EOF' >> "${ofile}T"
7496 # This is a source program that is used to create dlls on Windows
7497 # Don't remove nor modify the starting and closing comments
7498 # /* ltdll.c starts here */
7499 # #define WIN32_LEAN_AND_MEAN
7500 # #include <windows.h>
7501 # #undef WIN32_LEAN_AND_MEAN
7502 # #include <stdio.h>
7504 # #ifndef __CYGWIN__
7505 # # ifdef __CYGWIN32__
7506 # # define __CYGWIN__ __CYGWIN32__
7510 # #ifdef __cplusplus
7513 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7514 # #ifdef __cplusplus
7519 # #include <cygwin/cygwin_dll.h>
7520 # DECLARE_CYGWIN_DLL( DllMain );
7522 # HINSTANCE __hDllInstance_base;
7525 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7527 # __hDllInstance_base = hInst;
7530 # /* ltdll.c ends here */
7531 # This is a source program that is used to create import libraries
7532 # on Windows for dlls which lack them. Don't remove nor modify the
7533 # starting and closing comments
7534 # /* impgen.c starts here */
7535 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7537 # This file is part of GNU libtool.
7539 # This program is free software; you can redistribute it and/or modify
7540 # it under the terms of the GNU General Public License as published by
7541 # the Free Software Foundation; either version 2 of the License, or
7542 # (at your option) any later version.
7544 # This program is distributed in the hope that it will be useful,
7545 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7546 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7547 # GNU General Public License for more details.
7549 # You should have received a copy of the GNU General Public License
7550 # along with this program; if not, write to the Free Software
7551 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7554 # #include <stdio.h> /* for printf() */
7555 # #include <unistd.h> /* for open(), lseek(), read() */
7556 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7557 # #include <string.h> /* for strdup() */
7559 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7561 # #define O_BINARY 0
7564 # static unsigned int
7565 # pe_get16 (fd, offset)
7569 # unsigned char b[2];
7570 # lseek (fd, offset, SEEK_SET);
7572 # return b[0] + (b[1]<<8);
7575 # static unsigned int
7576 # pe_get32 (fd, offset)
7580 # unsigned char b[4];
7581 # lseek (fd, offset, SEEK_SET);
7583 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7586 # static unsigned int
7590 # unsigned char *b = ptr;
7591 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7600 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7601 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7602 # unsigned long name_rvas, nexp;
7603 # unsigned char *expdata, *erva;
7604 # char *filename, *dll_name;
7606 # filename = argv[1];
7608 # dll = open(filename, O_RDONLY|O_BINARY);
7612 # dll_name = filename;
7614 # for (i=0; filename[i]; i++)
7615 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7616 # dll_name = filename + i +1;
7618 # pe_header_offset = pe_get32 (dll, 0x3c);
7619 # opthdr_ofs = pe_header_offset + 4 + 20;
7620 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7622 # if (num_entries < 1) /* no exports */
7625 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7626 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7627 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7628 # secptr = (pe_header_offset + 4 + 20 +
7629 # pe_get16 (dll, pe_header_offset + 4 + 16));
7632 # for (i = 0; i < nsections; i++)
7635 # unsigned long secptr1 = secptr + 40 * i;
7636 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7637 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7638 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7639 # lseek(dll, secptr1, SEEK_SET);
7640 # read(dll, sname, 8);
7641 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7643 # expptr = fptr + (export_rva - vaddr);
7644 # if (export_rva + export_size > vaddr + vsize)
7645 # export_size = vsize - (export_rva - vaddr);
7650 # expdata = (unsigned char*)malloc(export_size);
7651 # lseek (dll, expptr, SEEK_SET);
7652 # read (dll, expdata, export_size);
7653 # erva = expdata - export_rva;
7655 # nexp = pe_as32 (expdata+24);
7656 # name_rvas = pe_as32 (expdata+32);
7658 # printf ("EXPORTS\n");
7659 # for (i = 0; i<nexp; i++)
7661 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7662 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7667 # /* impgen.c ends here */
7673 # We use sed instead of cat because bash on DJGPP gets confused if
7674 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7675 # text mode, it properly converts lines to CR/LF. This bash problem
7676 # is reportedly fixed, but why not run on old versions too?
7677 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7679 mv -f "${ofile}T" "$ofile" || \
7680 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7688 # This can be used to rebuild libtool when needed
7689 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7691 # Always use our own libtool.
7692 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7694 # Prevent multiple expansion
7699 if test $ol_enable_perl != no ; then
7700 # Extract the first word of "perl", so it can be a program name with args.
7701 set dummy perl; ac_word=$2
7702 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7703 echo "configure:7704: checking for $ac_word" >&5
7704 if eval "test \"\${ac_cv_path_PERLBIN+set}\" = set"; then
7705 echo $ac_n "(cached) $ac_c" 1>&6
7709 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
7712 ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a dos path.
7715 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7717 for ac_dir in $ac_dummy; do
7718 test -z "$ac_dir" && ac_dir=.
7719 if test -f $ac_dir/$ac_word; then
7720 ac_cv_path_PERLBIN="$ac_dir/$ac_word"
7725 test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
7729 PERLBIN="$ac_cv_path_PERLBIN"
7730 if test -n "$PERLBIN"; then
7731 echo "$ac_t""$PERLBIN" 1>&6
7733 echo "$ac_t""no" 1>&6
7737 if test "no$PERLBIN" = "no" ; then
7738 if test $ol_enable_perl = yes ; then
7739 { echo "configure: error: could not locate perl" 1>&2; exit 1; }
7743 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
7744 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
7746 if test x"$ol_enable_perl" = "xyes" ; then
7747 SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
7749 MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
7755 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7756 echo "configure:7757: checking how to run the C preprocessor" >&5
7757 # On Suns, sometimes $CPP names a directory.
7758 if test -n "$CPP" && test -d "$CPP"; then
7761 if test -z "$CPP"; then
7762 if eval "test \"\${ac_cv_prog_CPP+set}\" = set"; then
7763 echo $ac_n "(cached) $ac_c" 1>&6
7765 # This must be in double quotes, not single quotes, because CPP may get
7766 # substituted into the Makefile and "${CC-cc}" will confuse make.
7768 # On the NeXT, cc -E runs the code through the compiler's parser,
7769 # not just through cpp.
7770 cat > conftest.$ac_ext <<EOF
7771 #line 7772 "configure"
7772 #include "confdefs.h"
7776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7777 { (eval echo configure:7778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7778 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7779 if test -z "$ac_err"; then
7783 echo "configure: failed program was:" >&5
7784 cat conftest.$ac_ext >&5
7786 CPP="${CC-cc} -E -traditional-cpp"
7787 cat > conftest.$ac_ext <<EOF
7788 #line 7789 "configure"
7789 #include "confdefs.h"
7793 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7794 { (eval echo configure:7795: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7795 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7796 if test -z "$ac_err"; then
7800 echo "configure: failed program was:" >&5
7801 cat conftest.$ac_ext >&5
7803 CPP="${CC-cc} -nologo -E"
7804 cat > conftest.$ac_ext <<EOF
7805 #line 7806 "configure"
7806 #include "confdefs.h"
7810 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7811 { (eval echo configure:7812: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7812 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7813 if test -z "$ac_err"; then
7817 echo "configure: failed program was:" >&5
7818 cat conftest.$ac_ext >&5
7827 ac_cv_prog_CPP="$CPP"
7829 CPP="$ac_cv_prog_CPP"
7831 ac_cv_prog_CPP="$CPP"
7833 echo "$ac_t""$CPP" 1>&6
7837 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
7838 echo "configure:7839: checking for Cygwin environment" >&5
7839 if eval "test \"\${ac_cv_cygwin+set}\" = set"; then
7840 echo $ac_n "(cached) $ac_c" 1>&6
7842 cat > conftest.$ac_ext <<EOF
7843 #line 7844 "configure"
7844 #include "confdefs.h"
7849 #define __CYGWIN__ __CYGWIN32__
7854 if { (eval echo configure:7855: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7858 echo "configure: failed program was:" >&5
7859 cat conftest.$ac_ext >&5
7866 echo "$ac_t""$ac_cv_cygwin" 1>&6
7868 test "$ac_cv_cygwin" = yes && CYGWIN=yes
7869 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
7870 echo "configure:7871: checking for mingw32 environment" >&5
7871 if eval "test \"\${ac_cv_mingw32+set}\" = set"; then
7872 echo $ac_n "(cached) $ac_c" 1>&6
7874 cat > conftest.$ac_ext <<EOF
7875 #line 7876 "configure"
7876 #include "confdefs.h"
7882 if { (eval echo configure:7883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7886 echo "configure: failed program was:" >&5
7887 cat conftest.$ac_ext >&5
7894 echo "$ac_t""$ac_cv_mingw32" 1>&6
7896 test "$ac_cv_mingw32" = yes && MINGW32=yes
7900 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
7901 echo "configure:7902: checking for executable suffix" >&5
7902 if eval "test \"\${ac_cv_exeext+set}\" = set"; then
7903 echo $ac_n "(cached) $ac_c" 1>&6
7905 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
7909 echo 'int main () { return 0; }' > conftest.$ac_ext
7911 if { (eval echo configure:7912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
7912 for file in conftest.*; do
7914 *.c | *.C | *.o | *.obj | *.xcoff) ;;
7915 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
7919 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
7922 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
7927 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
7928 echo "$ac_t""${ac_cv_exeext}" 1>&6
7931 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
7932 echo "configure:7933: checking for object suffix" >&5
7933 if eval "test \"\${ac_cv_objext+set}\" = set"; then
7934 echo $ac_n "(cached) $ac_c" 1>&6
7937 echo 'int i = 1;' > conftest.$ac_ext
7938 if { (eval echo configure:7939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7939 for ac_file in conftest.*; do
7942 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
7946 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
7951 echo "$ac_t""$ac_cv_objext" 1>&6
7952 OBJEXT=$ac_cv_objext
7953 ac_objext=$ac_cv_objext
7956 cat >> confdefs.h <<EOF
7957 #define EXEEXT "${EXEEXT}"
7961 echo $ac_n "checking for be_app in -lbe""... $ac_c" 1>&6
7962 echo "configure:7963: checking for be_app in -lbe" >&5
7963 ac_lib_var=`echo be'_'be_app | sed 'y%./+-:%__p__%'`
7964 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
7965 echo $ac_n "(cached) $ac_c" 1>&6
7967 ac_save_LIBS="$LIBS"
7968 LIBS="-lbe -lroot -lnet $LIBS"
7969 cat > conftest.$ac_ext <<EOF
7970 #line 7971 "configure"
7971 #include "confdefs.h"
7972 /* Override any gcc2 internal prototype to avoid an error. */
7973 /* We use char because int might match the return type of a gcc2
7974 builtin and then its argument prototype would still apply. */
7981 if { (eval echo configure:7982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7983 eval "ac_cv_lib_$ac_lib_var=yes"
7985 echo "configure: failed program was:" >&5
7986 cat conftest.$ac_ext >&5
7988 eval "ac_cv_lib_$ac_lib_var=no"
7991 LIBS="$ac_save_LIBS"
7994 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7995 echo "$ac_t""yes" 1>&6
7996 LIBS="$LIBS -lbe -lroot -lnet"
7998 echo "$ac_t""no" 1>&6
8006 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
8007 echo "configure:8008: checking for ${CC-cc} option to accept ANSI C" >&5
8008 if eval "test \"\${am_cv_prog_cc_stdc+set}\" = set"; then
8009 echo $ac_n "(cached) $ac_c" 1>&6
8011 am_cv_prog_cc_stdc=no
8013 # Don't try gcc -ansi; that turns off useful extensions and
8014 # breaks some systems' header files.
8015 # AIX -qlanglvl=ansi
8016 # Ultrix and OSF/1 -std1
8017 # HP-UX 10.20 and later -Ae
8018 # HP-UX older versions -Aa -D_HPUX_SOURCE
8019 # SVR4 -Xc -D__EXTENSIONS__
8020 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8022 CC="$ac_save_CC $ac_arg"
8023 cat > conftest.$ac_ext <<EOF
8024 #line 8025 "configure"
8025 #include "confdefs.h"
8028 #include <sys/types.h>
8029 #include <sys/stat.h>
8030 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8031 struct buf { int x; };
8032 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8033 static char *e (p, i)
8039 static char *f (char * (*g) (char **, int), char **p, ...)
8044 s = g (p, va_arg (v,int));
8048 int test (int i, double x);
8049 struct s1 {int (*f) (int a);};
8050 struct s2 {int (*f) (double a);};
8051 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8057 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8061 if { (eval echo configure:8062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8063 am_cv_prog_cc_stdc="$ac_arg"; break
8065 echo "configure: failed program was:" >&5
8066 cat conftest.$ac_ext >&5
8074 if test -z "$am_cv_prog_cc_stdc"; then
8075 echo "$ac_t""none needed" 1>&6
8077 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
8079 case "x$am_cv_prog_cc_stdc" in
8081 *) CC="$CC $am_cv_prog_cc_stdc" ;;
8084 if test "X${am_cv_prog_cc_stdc}" = "Xno" ; then
8085 { echo "configure: error: OpenLDAP requires compiler to support STDC constructs." 1>&2; exit 1; }
8088 # test for make depend flag
8091 if test -z "${MKDEP}"; then
8093 if test -z "${MKDEP_FLAGS}"; then
8094 echo $ac_n "checking for ${OL_MKDEP} depend flag""... $ac_c" 1>&6
8095 echo "configure:8096: checking for ${OL_MKDEP} depend flag" >&5
8096 if eval "test \"\${ol_cv_mkdep+set}\" = set"; then
8097 echo $ac_n "(cached) $ac_c" 1>&6
8101 for flag in "-M" "-xM"; do
8102 cat > conftest.c <<EOF
8105 if { ac_try='$OL_MKDEP $flag conftest.c'; { (eval echo configure:8106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } \
8106 | egrep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
8108 if test ! -f conftest."${ac_object}" ; then
8110 OL_MKDEP_FLAGS="$flag"
8119 echo "$ac_t""$ol_cv_mkdep" 1>&6
8122 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8127 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
8132 if test "${ol_cv_mkdep}" = no ; then
8133 # this will soon become an error
8134 echo "configure: warning: do not know how to generate dependencies" 1>&2
8137 echo $ac_n "checking for afopen in -ls""... $ac_c" 1>&6
8138 echo "configure:8139: checking for afopen in -ls" >&5
8139 ac_lib_var=`echo s'_'afopen | sed 'y%./+-:%__p__%'`
8140 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8141 echo $ac_n "(cached) $ac_c" 1>&6
8143 ac_save_LIBS="$LIBS"
8145 cat > conftest.$ac_ext <<EOF
8146 #line 8147 "configure"
8147 #include "confdefs.h"
8148 /* Override any gcc2 internal prototype to avoid an error. */
8149 /* We use char because int might match the return type of a gcc2
8150 builtin and then its argument prototype would still apply. */
8157 if { (eval echo configure:8158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8159 eval "ac_cv_lib_$ac_lib_var=yes"
8161 echo "configure: failed program was:" >&5
8162 cat conftest.$ac_ext >&5
8164 eval "ac_cv_lib_$ac_lib_var=no"
8167 LIBS="$ac_save_LIBS"
8170 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8171 echo "$ac_t""yes" 1>&6
8174 cat >> confdefs.h <<\EOF
8175 #define HAVE_AIX_SECURITY 1
8180 echo "$ac_t""no" 1>&6
8186 ac_cv_func_getopt=no
8187 cat >> confdefs.h <<\EOF
8188 #define BOTH_STRINGS_H 1
8195 WITH_MODULES_ENABLED=no
8196 if test $ol_enable_modules != no ; then
8197 for ac_hdr in ltdl.h
8199 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8200 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8201 echo "configure:8202: checking for $ac_hdr" >&5
8202 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8203 echo $ac_n "(cached) $ac_c" 1>&6
8205 cat > conftest.$ac_ext <<EOF
8206 #line 8207 "configure"
8207 #include "confdefs.h"
8210 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8211 { (eval echo configure:8212: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8212 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8213 if test -z "$ac_err"; then
8215 eval "ac_cv_header_$ac_safe=yes"
8218 echo "configure: failed program was:" >&5
8219 cat conftest.$ac_ext >&5
8221 eval "ac_cv_header_$ac_safe=no"
8225 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8226 echo "$ac_t""yes" 1>&6
8227 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8228 cat >> confdefs.h <<EOF
8229 #define $ac_tr_hdr 1
8233 echo "$ac_t""no" 1>&6
8238 if test $ac_cv_header_ltdl_h = no ; then
8239 { echo "configure: error: could not locate libtool ltdl.h" 1>&2; exit 1; }
8242 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
8243 echo "configure:8244: checking for lt_dlinit in -lltdl" >&5
8244 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
8245 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8246 echo $ac_n "(cached) $ac_c" 1>&6
8248 ac_save_LIBS="$LIBS"
8250 cat > conftest.$ac_ext <<EOF
8251 #line 8252 "configure"
8252 #include "confdefs.h"
8253 /* Override any gcc2 internal prototype to avoid an error. */
8254 /* We use char because int might match the return type of a gcc2
8255 builtin and then its argument prototype would still apply. */
8262 if { (eval echo configure:8263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8264 eval "ac_cv_lib_$ac_lib_var=yes"
8266 echo "configure: failed program was:" >&5
8267 cat conftest.$ac_ext >&5
8269 eval "ac_cv_lib_$ac_lib_var=no"
8272 LIBS="$ac_save_LIBS"
8275 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8276 echo "$ac_t""yes" 1>&6
8279 cat >> confdefs.h <<\EOF
8280 #define HAVE_LIBLTDL 1
8285 echo "$ac_t""no" 1>&6
8289 if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
8290 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
8293 WITH_MODULES_ENABLED=yes
8296 for i in $Backends; do
8297 eval "ol_tmp=\$ol_enable_$i"
8298 if test $ol_tmp = mod ; then
8299 echo "configure: warning: building static $i backend" 1>&2
8300 eval "ol_enable_$i=yes"
8303 for i in $Overlays; do
8304 eval "ol_tmp=\$ol_enable_$i"
8305 if test $ol_tmp = mod ; then
8306 echo "configure: warning: building static $i overlay" 1>&2
8307 eval "ol_enable_$i=yes"
8313 echo $ac_n "checking for EBCDIC""... $ac_c" 1>&6
8314 echo "configure:8315: checking for EBCDIC" >&5
8315 if eval "test \"\${ol_cv_cpp_ebcdic+set}\" = set"; then
8316 echo $ac_n "(cached) $ac_c" 1>&6
8319 cat > conftest.$ac_ext <<EOF
8320 #line 8321 "configure"
8321 #include "confdefs.h"
8324 #include <__ASCII__/generate_error.h>
8328 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8329 { (eval echo configure:8330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8330 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8331 if test -z "$ac_err"; then
8333 ol_cv_cpp_ebcdic=yes
8336 echo "configure: failed program was:" >&5
8337 cat conftest.$ac_ext >&5
8344 echo "$ac_t""$ol_cv_cpp_ebcdic" 1>&6
8345 if test $ol_cv_cpp_ebcdic = yes ; then
8346 cat >> confdefs.h <<\EOF
8347 #define HAVE_EBCDIC 1
8352 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
8353 echo "configure:8354: checking for ANSI C header files" >&5
8354 if eval "test \"\${ol_cv_header_stdc+set}\" = set"; then
8355 echo $ac_n "(cached) $ac_c" 1>&6
8357 cat > conftest.$ac_ext <<EOF
8358 #line 8359 "configure"
8359 #include "confdefs.h"
8365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8366 { (eval echo configure:8367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8368 if test -z "$ac_err"; then
8370 ol_cv_header_stdc=yes
8373 echo "configure: failed program was:" >&5
8374 cat conftest.$ac_ext >&5
8376 ol_cv_header_stdc=no
8380 if test $ol_cv_header_stdc = yes; then
8381 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8382 cat > conftest.$ac_ext <<EOF
8383 #line 8384 "configure"
8384 #include "confdefs.h"
8387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8388 egrep "memchr" >/dev/null 2>&1; then
8392 ol_cv_header_stdc=no
8398 if test $ol_cv_header_stdc = yes; then
8399 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8400 cat > conftest.$ac_ext <<EOF
8401 #line 8402 "configure"
8402 #include "confdefs.h"
8405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8406 egrep "free" >/dev/null 2>&1; then
8410 ol_cv_header_stdc=no
8416 if test $ol_cv_header_stdc = yes; then
8417 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8418 if test "$cross_compiling" = yes; then
8421 cat > conftest.$ac_ext <<EOF
8422 #line 8423 "configure"
8423 #include "confdefs.h"
8426 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8427 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8429 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
8430 || ('j' <= (c) && (c) <= 'r') \
8431 || ('s' <= (c) && (c) <= 'z'))
8432 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8434 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8435 int main () { int i; for (i = 0; i < 256; i++)
8436 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
8440 if { (eval echo configure:8441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
8444 echo "configure: failed program was:" >&5
8445 cat conftest.$ac_ext >&5
8447 ol_cv_header_stdc=no
8455 echo "$ac_t""$ol_cv_header_stdc" 1>&6
8456 if test $ol_cv_header_stdc = yes; then
8457 cat >> confdefs.h <<\EOF
8458 #define STDC_HEADERS 1
8462 ac_cv_header_stdc=disable
8465 if test $ol_cv_header_stdc != yes; then
8466 echo "configure: warning: could not locate Standard C compliant headers" 1>&2
8470 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h
8472 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8473 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
8474 echo "configure:8475: checking for $ac_hdr that defines DIR" >&5
8475 if eval "test \"\${ac_cv_header_dirent_$ac_safe+set}\" = set"; then
8476 echo $ac_n "(cached) $ac_c" 1>&6
8478 cat > conftest.$ac_ext <<EOF
8479 #line 8480 "configure"
8480 #include "confdefs.h"
8481 #include <sys/types.h>
8487 if { (eval echo configure:8488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8489 eval "ac_cv_header_dirent_$ac_safe=yes"
8491 echo "configure: failed program was:" >&5
8492 cat conftest.$ac_ext >&5
8494 eval "ac_cv_header_dirent_$ac_safe=no"
8498 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
8499 echo "$ac_t""yes" 1>&6
8500 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8501 cat >> confdefs.h <<EOF
8502 #define $ac_tr_hdr 1
8504 ac_header_dirent=$ac_hdr; break
8506 echo "$ac_t""no" 1>&6
8509 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8510 if test $ac_header_dirent = dirent.h; then
8511 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
8512 echo "configure:8513: checking for opendir in -ldir" >&5
8513 ac_lib_var=`echo dir'_'opendir | sed 'y%./+-:%__p__%'`
8514 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8515 echo $ac_n "(cached) $ac_c" 1>&6
8517 ac_save_LIBS="$LIBS"
8519 cat > conftest.$ac_ext <<EOF
8520 #line 8521 "configure"
8521 #include "confdefs.h"
8522 /* Override any gcc2 internal prototype to avoid an error. */
8523 /* We use char because int might match the return type of a gcc2
8524 builtin and then its argument prototype would still apply. */
8531 if { (eval echo configure:8532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8533 eval "ac_cv_lib_$ac_lib_var=yes"
8535 echo "configure: failed program was:" >&5
8536 cat conftest.$ac_ext >&5
8538 eval "ac_cv_lib_$ac_lib_var=no"
8541 LIBS="$ac_save_LIBS"
8544 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8545 echo "$ac_t""yes" 1>&6
8548 echo "$ac_t""no" 1>&6
8552 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
8553 echo "configure:8554: checking for opendir in -lx" >&5
8554 ac_lib_var=`echo x'_'opendir | sed 'y%./+-:%__p__%'`
8555 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8556 echo $ac_n "(cached) $ac_c" 1>&6
8558 ac_save_LIBS="$LIBS"
8560 cat > conftest.$ac_ext <<EOF
8561 #line 8562 "configure"
8562 #include "confdefs.h"
8563 /* Override any gcc2 internal prototype to avoid an error. */
8564 /* We use char because int might match the return type of a gcc2
8565 builtin and then its argument prototype would still apply. */
8572 if { (eval echo configure:8573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8574 eval "ac_cv_lib_$ac_lib_var=yes"
8576 echo "configure: failed program was:" >&5
8577 cat conftest.$ac_ext >&5
8579 eval "ac_cv_lib_$ac_lib_var=no"
8582 LIBS="$ac_save_LIBS"
8585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8586 echo "$ac_t""yes" 1>&6
8589 echo "$ac_t""no" 1>&6
8594 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
8595 echo "configure:8596: checking for sys/wait.h that is POSIX.1 compatible" >&5
8596 if eval "test \"\${ac_cv_header_sys_wait_h+set}\" = set"; then
8597 echo $ac_n "(cached) $ac_c" 1>&6
8599 cat > conftest.$ac_ext <<EOF
8600 #line 8601 "configure"
8601 #include "confdefs.h"
8602 #include <sys/types.h>
8603 #include <sys/wait.h>
8605 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
8608 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
8613 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
8616 if { (eval echo configure:8617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
8618 ac_cv_header_sys_wait_h=yes
8620 echo "configure: failed program was:" >&5
8621 cat conftest.$ac_ext >&5
8623 ac_cv_header_sys_wait_h=no
8628 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
8629 if test $ac_cv_header_sys_wait_h = yes; then
8630 cat >> confdefs.h <<\EOF
8631 #define HAVE_SYS_WAIT_H 1
8636 echo $ac_n "checking POSIX termios""... $ac_c" 1>&6
8637 echo "configure:8638: checking POSIX termios" >&5
8638 if eval "test \"\${am_cv_sys_posix_termios+set}\" = set"; then
8639 echo $ac_n "(cached) $ac_c" 1>&6
8641 cat > conftest.$ac_ext <<EOF
8642 #line 8643 "configure"
8643 #include "confdefs.h"
8644 #include <sys/types.h>
8646 #include <termios.h>
8648 /* SunOS 4.0.3 has termios.h but not the library calls. */
8652 if { (eval echo configure:8653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8654 am_cv_sys_posix_termios=yes
8656 echo "configure: failed program was:" >&5
8657 cat conftest.$ac_ext >&5
8659 am_cv_sys_posix_termios=no
8664 echo "$ac_t""$am_cv_sys_posix_termios" 1>&6
8667 echo $ac_n "checking whether use of TIOCGWINSZ requires sys/ioctl.h""... $ac_c" 1>&6
8668 echo "configure:8669: checking whether use of TIOCGWINSZ requires sys/ioctl.h" >&5
8669 if eval "test \"\${am_cv_sys_tiocgwinsz_needs_sys_ioctl_h+set}\" = set"; then
8670 echo $ac_n "(cached) $ac_c" 1>&6
8672 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=no
8674 gwinsz_in_termios_h=no
8675 if test $am_cv_sys_posix_termios = yes; then
8676 cat > conftest.$ac_ext <<EOF
8677 #line 8678 "configure"
8678 #include "confdefs.h"
8679 #include <sys/types.h>
8680 # include <termios.h>
8686 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8687 egrep "yes" >/dev/null 2>&1; then
8689 gwinsz_in_termios_h=yes
8695 if test $gwinsz_in_termios_h = no; then
8696 cat > conftest.$ac_ext <<EOF
8697 #line 8698 "configure"
8698 #include "confdefs.h"
8699 #include <sys/types.h>
8700 # include <sys/ioctl.h>
8706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8707 egrep "yes" >/dev/null 2>&1; then
8709 am_cv_sys_tiocgwinsz_needs_sys_ioctl_h=yes
8717 echo "$ac_t""$am_cv_sys_tiocgwinsz_needs_sys_ioctl_h" 1>&6
8718 if test $am_cv_sys_tiocgwinsz_needs_sys_ioctl_h = yes; then
8719 cat >> confdefs.h <<\EOF
8720 #define GWINSZ_IN_SYS_IOCTL 1
8725 if test $am_cv_sys_posix_termios = yes ; then
8726 cat >> confdefs.h <<\EOF
8727 #define HAVE_POSIX_TERMIOS 1
8783 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8784 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8785 echo "configure:8786: checking for $ac_hdr" >&5
8786 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
8787 echo $ac_n "(cached) $ac_c" 1>&6
8789 cat > conftest.$ac_ext <<EOF
8790 #line 8791 "configure"
8791 #include "confdefs.h"
8794 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8795 { (eval echo configure:8796: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8796 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8797 if test -z "$ac_err"; then
8799 eval "ac_cv_header_$ac_safe=yes"
8802 echo "configure: failed program was:" >&5
8803 cat conftest.$ac_ext >&5
8805 eval "ac_cv_header_$ac_safe=no"
8809 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8810 echo "$ac_t""yes" 1>&6
8811 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8812 cat >> confdefs.h <<EOF
8813 #define $ac_tr_hdr 1
8817 echo "$ac_t""no" 1>&6
8823 for ac_func in sigaction sigset
8825 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8826 echo "configure:8827: checking for $ac_func" >&5
8827 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
8828 echo $ac_n "(cached) $ac_c" 1>&6
8830 cat > conftest.$ac_ext <<EOF
8831 #line 8832 "configure"
8832 #include "confdefs.h"
8833 /* System header to define __stub macros and hopefully few prototypes,
8834 which can conflict with char $ac_func(); below. */
8836 /* Override any gcc2 internal prototype to avoid an error. */
8837 /* We use char because int might match the return type of a gcc2
8838 builtin and then its argument prototype would still apply. */
8844 /* The GNU C library defines this for functions which it implements
8845 to always fail with ENOSYS. Some functions are actually named
8846 something starting with __ and the normal name is an alias. */
8847 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8855 if { (eval echo configure:8856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8857 eval "ac_cv_func_$ac_func=yes"
8859 echo "configure: failed program was:" >&5
8860 cat conftest.$ac_ext >&5
8862 eval "ac_cv_func_$ac_func=no"
8867 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8868 echo "$ac_t""yes" 1>&6
8869 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8870 cat >> confdefs.h <<EOF
8871 #define $ac_tr_func 1
8875 echo "$ac_t""no" 1>&6
8880 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
8881 echo $ac_n "checking for sigset in -lV3""... $ac_c" 1>&6
8882 echo "configure:8883: checking for sigset in -lV3" >&5
8883 ac_lib_var=`echo V3'_'sigset | sed 'y%./+-:%__p__%'`
8884 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
8885 echo $ac_n "(cached) $ac_c" 1>&6
8887 ac_save_LIBS="$LIBS"
8889 cat > conftest.$ac_ext <<EOF
8890 #line 8891 "configure"
8891 #include "confdefs.h"
8892 /* Override any gcc2 internal prototype to avoid an error. */
8893 /* We use char because int might match the return type of a gcc2
8894 builtin and then its argument prototype would still apply. */
8901 if { (eval echo configure:8902: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8903 eval "ac_cv_lib_$ac_lib_var=yes"
8905 echo "configure: failed program was:" >&5
8906 cat conftest.$ac_ext >&5
8908 eval "ac_cv_lib_$ac_lib_var=no"
8911 LIBS="$ac_save_LIBS"
8914 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8915 echo "$ac_t""yes" 1>&6
8916 ac_tr_lib=HAVE_LIB`echo V3 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
8917 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
8918 cat >> confdefs.h <<EOF
8919 #define $ac_tr_lib 1
8925 echo "$ac_t""no" 1>&6
8930 if test "$ac_cv_header_winsock_h" = yes; then
8931 echo $ac_n "checking for winsock""... $ac_c" 1>&6
8932 echo "configure:8933: checking for winsock" >&5
8933 if eval "test \"\${ol_cv_winsock+set}\" = set"; then
8934 echo $ac_n "(cached) $ac_c" 1>&6
8937 for curlib in ws2_32 wsock32; do
8938 LIBS="$LIBS -l$curlib"
8939 cat > conftest.$ac_ext <<EOF
8940 #line 8941 "configure"
8941 #include "confdefs.h"
8942 #include <winsock.h>
8947 select(0,NULL,NULL,NULL,NULL);
8949 gethostname(NULL,0);
8953 if { (eval echo configure:8954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8957 echo "configure: failed program was:" >&5
8958 cat conftest.$ac_ext >&5
8964 if test $ol_cv_winsock = yes; then
8965 cat >> confdefs.h <<\EOF
8966 #define HAVE_WINSOCK 1
8969 ac_cv_func_socket=yes
8970 ac_cv_func_select=yes
8971 ac_cv_func_closesocket=yes
8972 ac_cv_func_gethostname=yes
8973 if test $curlib = ws2_32; then
8974 ol_cv_winsock=winsock2
8975 cat >> confdefs.h <<\EOF
8976 #define HAVE_WINSOCK2 1
8986 echo "$ac_t""$ol_cv_winsock" 1>&6
8990 echo $ac_n "checking for socket""... $ac_c" 1>&6
8991 echo "configure:8992: checking for socket" >&5
8992 if eval "test \"\${ac_cv_func_socket+set}\" = set"; then
8993 echo $ac_n "(cached) $ac_c" 1>&6
8995 cat > conftest.$ac_ext <<EOF
8996 #line 8997 "configure"
8997 #include "confdefs.h"
8998 /* System header to define __stub macros and hopefully few prototypes,
8999 which can conflict with char socket(); below. */
9001 /* Override any gcc2 internal prototype to avoid an error. */
9002 /* We use char because int might match the return type of a gcc2
9003 builtin and then its argument prototype would still apply. */
9009 /* The GNU C library defines this for functions which it implements
9010 to always fail with ENOSYS. Some functions are actually named
9011 something starting with __ and the normal name is an alias. */
9012 #if defined (__stub_socket) || defined (__stub___socket)
9020 if { (eval echo configure:9021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9022 eval "ac_cv_func_socket=yes"
9024 echo "configure: failed program was:" >&5
9025 cat conftest.$ac_ext >&5
9027 eval "ac_cv_func_socket=no"
9032 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
9033 echo "$ac_t""yes" 1>&6
9036 echo "$ac_t""no" 1>&6
9038 echo $ac_n "checking for main in -lsocket""... $ac_c" 1>&6
9039 echo "configure:9040: checking for main in -lsocket" >&5
9040 ac_lib_var=`echo socket'_'main | sed 'y%./+-:%__p__%'`
9041 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9042 echo $ac_n "(cached) $ac_c" 1>&6
9044 ac_save_LIBS="$LIBS"
9045 LIBS="-lsocket $LIBS"
9046 cat > conftest.$ac_ext <<EOF
9047 #line 9048 "configure"
9048 #include "confdefs.h"
9054 if { (eval echo configure:9055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9056 eval "ac_cv_lib_$ac_lib_var=yes"
9058 echo "configure: failed program was:" >&5
9059 cat conftest.$ac_ext >&5
9061 eval "ac_cv_lib_$ac_lib_var=no"
9064 LIBS="$ac_save_LIBS"
9067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9068 echo "$ac_t""yes" 1>&6
9069 ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9070 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9071 cat >> confdefs.h <<EOF
9072 #define $ac_tr_lib 1
9075 LIBS="-lsocket $LIBS"
9078 echo "$ac_t""no" 1>&6
9081 echo $ac_n "checking for main in -lnet""... $ac_c" 1>&6
9082 echo "configure:9083: checking for main in -lnet" >&5
9083 ac_lib_var=`echo net'_'main | sed 'y%./+-:%__p__%'`
9084 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9085 echo $ac_n "(cached) $ac_c" 1>&6
9087 ac_save_LIBS="$LIBS"
9089 cat > conftest.$ac_ext <<EOF
9090 #line 9091 "configure"
9091 #include "confdefs.h"
9097 if { (eval echo configure:9098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9099 eval "ac_cv_lib_$ac_lib_var=yes"
9101 echo "configure: failed program was:" >&5
9102 cat conftest.$ac_ext >&5
9104 eval "ac_cv_lib_$ac_lib_var=no"
9107 LIBS="$ac_save_LIBS"
9110 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9111 echo "$ac_t""yes" 1>&6
9112 ac_tr_lib=HAVE_LIB`echo net | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9113 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9114 cat >> confdefs.h <<EOF
9115 #define $ac_tr_lib 1
9121 echo "$ac_t""no" 1>&6
9124 echo $ac_n "checking for main in -lnsl_s""... $ac_c" 1>&6
9125 echo "configure:9126: checking for main in -lnsl_s" >&5
9126 ac_lib_var=`echo nsl_s'_'main | sed 'y%./+-:%__p__%'`
9127 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9128 echo $ac_n "(cached) $ac_c" 1>&6
9130 ac_save_LIBS="$LIBS"
9131 LIBS="-lnsl_s $LIBS"
9132 cat > conftest.$ac_ext <<EOF
9133 #line 9134 "configure"
9134 #include "confdefs.h"
9140 if { (eval echo configure:9141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9142 eval "ac_cv_lib_$ac_lib_var=yes"
9144 echo "configure: failed program was:" >&5
9145 cat conftest.$ac_ext >&5
9147 eval "ac_cv_lib_$ac_lib_var=no"
9150 LIBS="$ac_save_LIBS"
9153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9154 echo "$ac_t""yes" 1>&6
9155 ac_tr_lib=HAVE_LIB`echo nsl_s | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9156 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9157 cat >> confdefs.h <<EOF
9158 #define $ac_tr_lib 1
9161 LIBS="-lnsl_s $LIBS"
9164 echo "$ac_t""no" 1>&6
9167 echo $ac_n "checking for main in -lnsl""... $ac_c" 1>&6
9168 echo "configure:9169: checking for main in -lnsl" >&5
9169 ac_lib_var=`echo nsl'_'main | sed 'y%./+-:%__p__%'`
9170 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9171 echo $ac_n "(cached) $ac_c" 1>&6
9173 ac_save_LIBS="$LIBS"
9175 cat > conftest.$ac_ext <<EOF
9176 #line 9177 "configure"
9177 #include "confdefs.h"
9183 if { (eval echo configure:9184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9185 eval "ac_cv_lib_$ac_lib_var=yes"
9187 echo "configure: failed program was:" >&5
9188 cat conftest.$ac_ext >&5
9190 eval "ac_cv_lib_$ac_lib_var=no"
9193 LIBS="$ac_save_LIBS"
9196 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9197 echo "$ac_t""yes" 1>&6
9198 ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9199 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9200 cat >> confdefs.h <<EOF
9201 #define $ac_tr_lib 1
9207 echo "$ac_t""no" 1>&6
9210 echo $ac_n "checking for socket in -linet""... $ac_c" 1>&6
9211 echo "configure:9212: checking for socket in -linet" >&5
9212 ac_lib_var=`echo inet'_'socket | sed 'y%./+-:%__p__%'`
9213 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9214 echo $ac_n "(cached) $ac_c" 1>&6
9216 ac_save_LIBS="$LIBS"
9218 cat > conftest.$ac_ext <<EOF
9219 #line 9220 "configure"
9220 #include "confdefs.h"
9221 /* Override any gcc2 internal prototype to avoid an error. */
9222 /* We use char because int might match the return type of a gcc2
9223 builtin and then its argument prototype would still apply. */
9230 if { (eval echo configure:9231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9232 eval "ac_cv_lib_$ac_lib_var=yes"
9234 echo "configure: failed program was:" >&5
9235 cat conftest.$ac_ext >&5
9237 eval "ac_cv_lib_$ac_lib_var=no"
9240 LIBS="$ac_save_LIBS"
9243 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9244 echo "$ac_t""yes" 1>&6
9245 ac_tr_lib=HAVE_LIB`echo inet | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9246 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9247 cat >> confdefs.h <<EOF
9248 #define $ac_tr_lib 1
9254 echo "$ac_t""no" 1>&6
9257 echo $ac_n "checking for main in -lgen""... $ac_c" 1>&6
9258 echo "configure:9259: checking for main in -lgen" >&5
9259 ac_lib_var=`echo gen'_'main | sed 'y%./+-:%__p__%'`
9260 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
9261 echo $ac_n "(cached) $ac_c" 1>&6
9263 ac_save_LIBS="$LIBS"
9265 cat > conftest.$ac_ext <<EOF
9266 #line 9267 "configure"
9267 #include "confdefs.h"
9273 if { (eval echo configure:9274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9275 eval "ac_cv_lib_$ac_lib_var=yes"
9277 echo "configure: failed program was:" >&5
9278 cat conftest.$ac_ext >&5
9280 eval "ac_cv_lib_$ac_lib_var=no"
9283 LIBS="$ac_save_LIBS"
9286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9287 echo "$ac_t""yes" 1>&6
9288 ac_tr_lib=HAVE_LIB`echo gen | sed -e 's/[^a-zA-Z0-9_]/_/g' \
9289 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
9290 cat >> confdefs.h <<EOF
9291 #define $ac_tr_lib 1
9297 echo "$ac_t""no" 1>&6
9304 echo $ac_n "checking for select""... $ac_c" 1>&6
9305 echo "configure:9306: checking for select" >&5
9306 if eval "test \"\${ac_cv_func_select+set}\" = set"; then
9307 echo $ac_n "(cached) $ac_c" 1>&6
9309 cat > conftest.$ac_ext <<EOF
9310 #line 9311 "configure"
9311 #include "confdefs.h"
9312 /* System header to define __stub macros and hopefully few prototypes,
9313 which can conflict with char select(); below. */
9315 /* Override any gcc2 internal prototype to avoid an error. */
9316 /* We use char because int might match the return type of a gcc2
9317 builtin and then its argument prototype would still apply. */
9323 /* The GNU C library defines this for functions which it implements
9324 to always fail with ENOSYS. Some functions are actually named
9325 something starting with __ and the normal name is an alias. */
9326 #if defined (__stub_select) || defined (__stub___select)
9334 if { (eval echo configure:9335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9336 eval "ac_cv_func_select=yes"
9338 echo "configure: failed program was:" >&5
9339 cat conftest.$ac_ext >&5
9341 eval "ac_cv_func_select=no"
9346 if eval "test \"`echo '$ac_cv_func_'select`\" = yes"; then
9347 echo "$ac_t""yes" 1>&6
9350 echo "$ac_t""no" 1>&6
9351 { echo "configure: error: select() required." 1>&2; exit 1; }
9355 if test "${ac_cv_header_winsock_h}" != yes; then
9356 echo $ac_n "checking types of arguments for select()""... $ac_c" 1>&6
9357 echo "configure:9358: checking types of arguments for select()" >&5
9358 if eval "test \"\${ac_cv_func_select_arg234+set}\" = set"; then
9359 echo $ac_n "(cached) $ac_c" 1>&6
9361 if eval "test \"\${ac_cv_func_select_arg1+set}\" = set"; then
9362 echo $ac_n "(cached) $ac_c" 1>&6
9364 if eval "test \"\${ac_cv_func_select_arg5+set}\" = set"; then
9365 echo $ac_n "(cached) $ac_c" 1>&6
9367 for ac_cv_func_select_arg234 in 'fd_set *' 'int *' 'void *'; do
9368 for ac_cv_func_select_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
9369 for ac_cv_func_select_arg5 in 'struct timeval *' 'const struct timeval *'; do
9370 cat > conftest.$ac_ext <<EOF
9371 #line 9372 "configure"
9372 #include "confdefs.h"
9373 #ifdef HAVE_SYS_TYPES_H
9374 #include <sys/types.h>
9376 #ifdef HAVE_SYS_TIME_H
9377 #include <sys/time.h>
9379 #ifdef HAVE_SYS_SELECT_H
9380 #include <sys/select.h>
9382 #ifdef HAVE_SYS_SOCKET_H
9383 #include <sys/socket.h>
9385 extern select ($ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5);
9390 if { (eval echo configure:9391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9392 ac_not_found=no ; break 3
9394 echo "configure: failed program was:" >&5
9395 cat conftest.$ac_ext >&5
9409 if test "$ac_not_found" = yes; then
9410 ac_cv_func_select_arg1=int
9411 ac_cv_func_select_arg234='int *'
9412 ac_cv_func_select_arg5='struct timeval *'
9414 echo "$ac_t""$ac_cv_func_select_arg1,$ac_cv_func_select_arg234,$ac_cv_func_select_arg5" 1>&6
9415 cat >> confdefs.h <<EOF
9416 #define SELECT_TYPE_ARG1 $ac_cv_func_select_arg1
9419 cat >> confdefs.h <<EOF
9420 #define SELECT_TYPE_ARG234 ($ac_cv_func_select_arg234)
9423 cat >> confdefs.h <<EOF
9424 #define SELECT_TYPE_ARG5 ($ac_cv_func_select_arg5)
9433 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9434 echo "configure:9435: checking for $ac_func" >&5
9435 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9436 echo $ac_n "(cached) $ac_c" 1>&6
9438 cat > conftest.$ac_ext <<EOF
9439 #line 9440 "configure"
9440 #include "confdefs.h"
9441 /* System header to define __stub macros and hopefully few prototypes,
9442 which can conflict with char $ac_func(); below. */
9444 /* Override any gcc2 internal prototype to avoid an error. */
9445 /* We use char because int might match the return type of a gcc2
9446 builtin and then its argument prototype would still apply. */
9452 /* The GNU C library defines this for functions which it implements
9453 to always fail with ENOSYS. Some functions are actually named
9454 something starting with __ and the normal name is an alias. */
9455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9463 if { (eval echo configure:9464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9465 eval "ac_cv_func_$ac_func=yes"
9467 echo "configure: failed program was:" >&5
9468 cat conftest.$ac_ext >&5
9470 eval "ac_cv_func_$ac_func=no"
9475 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9476 echo "$ac_t""yes" 1>&6
9477 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9478 cat >> confdefs.h <<EOF
9479 #define $ac_tr_func 1
9483 echo "$ac_t""no" 1>&6
9487 for ac_hdr in poll.h
9489 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9490 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9491 echo "configure:9492: checking for $ac_hdr" >&5
9492 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9493 echo $ac_n "(cached) $ac_c" 1>&6
9495 cat > conftest.$ac_ext <<EOF
9496 #line 9497 "configure"
9497 #include "confdefs.h"
9500 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9501 { (eval echo configure:9502: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9502 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9503 if test -z "$ac_err"; then
9505 eval "ac_cv_header_$ac_safe=yes"
9508 echo "configure: failed program was:" >&5
9509 cat conftest.$ac_ext >&5
9511 eval "ac_cv_header_$ac_safe=no"
9515 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9516 echo "$ac_t""yes" 1>&6
9517 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9518 cat >> confdefs.h <<EOF
9519 #define $ac_tr_hdr 1
9523 echo "$ac_t""no" 1>&6
9528 for ac_hdr in sys/epoll.h
9530 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9531 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9532 echo "configure:9533: checking for $ac_hdr" >&5
9533 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9534 echo $ac_n "(cached) $ac_c" 1>&6
9536 cat > conftest.$ac_ext <<EOF
9537 #line 9538 "configure"
9538 #include "confdefs.h"
9541 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9542 { (eval echo configure:9543: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9543 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9544 if test -z "$ac_err"; then
9546 eval "ac_cv_header_$ac_safe=yes"
9549 echo "configure: failed program was:" >&5
9550 cat conftest.$ac_ext >&5
9552 eval "ac_cv_header_$ac_safe=no"
9556 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9557 echo "$ac_t""yes" 1>&6
9558 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9559 cat >> confdefs.h <<EOF
9560 #define $ac_tr_hdr 1
9564 echo "$ac_t""no" 1>&6
9568 if test "${ac_cv_header_sys_epoll_h}" = yes; then
9569 echo $ac_n "checking for epoll system call""... $ac_c" 1>&6
9570 echo "configure:9571: checking for epoll system call" >&5
9571 if test "$cross_compiling" = yes; then
9572 echo "$ac_t""no" 1>&6
9574 cat > conftest.$ac_ext <<EOF
9575 #line 9576 "configure"
9576 #include "confdefs.h"
9577 int main(int argc, char *argv)
9579 int epfd = epoll_create(256);
9580 exit (epfd == -1 ? 1 : 0);
9583 if { (eval echo configure:9584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
9585 echo "$ac_t""yes" 1>&6
9586 cat >> confdefs.h <<\EOF
9587 #define HAVE_EPOLL 1
9591 echo "configure: failed program was:" >&5
9592 cat conftest.$ac_ext >&5
9594 echo "$ac_t""no" 1>&6
9602 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
9603 echo "configure:9604: checking declaration of sys_errlist" >&5
9604 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
9605 echo $ac_n "(cached) $ac_c" 1>&6
9608 cat > conftest.$ac_ext <<EOF
9609 #line 9610 "configure"
9610 #include "confdefs.h"
9613 #include <sys/types.h>
9619 char *c = (char *) *sys_errlist
9622 if { (eval echo configure:9623: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9624 ol_cv_dcl_sys_errlist=yes
9625 ol_cv_have_sys_errlist=yes
9627 echo "configure: failed program was:" >&5
9628 cat conftest.$ac_ext >&5
9630 ol_cv_dcl_sys_errlist=no
9635 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
9637 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
9638 if test $ol_cv_dcl_sys_errlist = no ; then
9639 cat >> confdefs.h <<\EOF
9640 #define DECL_SYS_ERRLIST 1
9644 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
9645 echo "configure:9646: checking existence of sys_errlist" >&5
9646 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
9647 echo $ac_n "(cached) $ac_c" 1>&6
9650 cat > conftest.$ac_ext <<EOF
9651 #line 9652 "configure"
9652 #include "confdefs.h"
9655 char *c = (char *) *sys_errlist
9658 if { (eval echo configure:9659: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9660 ol_cv_have_sys_errlist=yes
9662 echo "configure: failed program was:" >&5
9663 cat conftest.$ac_ext >&5
9665 ol_cv_have_sys_errlist=no
9670 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
9672 if test $ol_cv_have_sys_errlist = yes ; then
9673 cat >> confdefs.h <<\EOF
9674 #define HAVE_SYS_ERRLIST 1
9678 for ac_func in strerror strerror_r
9680 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9681 echo "configure:9682: checking for $ac_func" >&5
9682 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
9683 echo $ac_n "(cached) $ac_c" 1>&6
9685 cat > conftest.$ac_ext <<EOF
9686 #line 9687 "configure"
9687 #include "confdefs.h"
9688 /* System header to define __stub macros and hopefully few prototypes,
9689 which can conflict with char $ac_func(); below. */
9691 /* Override any gcc2 internal prototype to avoid an error. */
9692 /* We use char because int might match the return type of a gcc2
9693 builtin and then its argument prototype would still apply. */
9699 /* The GNU C library defines this for functions which it implements
9700 to always fail with ENOSYS. Some functions are actually named
9701 something starting with __ and the normal name is an alias. */
9702 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9710 if { (eval echo configure:9711: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9712 eval "ac_cv_func_$ac_func=yes"
9714 echo "configure: failed program was:" >&5
9715 cat conftest.$ac_ext >&5
9717 eval "ac_cv_func_$ac_func=no"
9722 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9723 echo "$ac_t""yes" 1>&6
9724 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9725 cat >> confdefs.h <<EOF
9726 #define $ac_tr_func 1
9730 echo "$ac_t""no" 1>&6
9734 ol_cv_func_strerror_r=no
9735 if test "${ac_cv_func_strerror_r}" = yes ; then
9736 echo $ac_n "checking non-posix strerror_r""... $ac_c" 1>&6
9737 echo "configure:9738: checking non-posix strerror_r" >&5
9738 if eval "test \"\${ol_cv_nonposix_strerror_r+set}\" = set"; then
9739 echo $ac_n "(cached) $ac_c" 1>&6
9742 cat > conftest.$ac_ext <<EOF
9743 #line 9744 "configure"
9744 #include "confdefs.h"
9747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9748 egrep "strerror_r" >/dev/null 2>&1; then
9750 ol_decl_strerror_r=yes
9753 ol_decl_strerror_r=no
9757 if test $ol_decl_strerror_r = yes ; then
9758 cat > conftest.$ac_ext <<EOF
9759 #line 9760 "configure"
9760 #include "confdefs.h"
9763 /* from autoconf 2.59 */
9765 char x = *strerror_r (0, buf, sizeof buf);
9766 char *p = strerror_r (0, buf, sizeof buf);
9770 if { (eval echo configure:9771: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9772 ol_cv_nonposix_strerror_r=yes
9774 echo "configure: failed program was:" >&5
9775 cat conftest.$ac_ext >&5
9777 ol_cv_nonposix_strerror_r=no
9781 if test "$cross_compiling" = yes; then
9782 ol_cv_nonposix_strerror=no
9784 cat > conftest.$ac_ext <<EOF
9785 #line 9786 "configure"
9786 #include "confdefs.h"
9791 strerror_r( 1, buf, sizeof buf );
9792 exit( buf[0] == 0 );
9796 if { (eval echo configure:9797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
9798 ol_cv_nonposix_strerror_r=yes
9800 echo "configure: failed program was:" >&5
9801 cat conftest.$ac_ext >&5
9803 ol_cv_nonposix_strerror=no
9812 echo "$ac_t""$ol_cv_nonposix_strerror_r" 1>&6
9813 if test $ol_cv_nonposix_strerror_r = yes ; then
9814 cat >> confdefs.h <<\EOF
9815 #define HAVE_NONPOSIX_STRERROR_R 1
9820 elif test "${ac_cv_func_strerror}" = no ; then
9821 echo $ac_n "checking declaration of sys_errlist""... $ac_c" 1>&6
9822 echo "configure:9823: checking declaration of sys_errlist" >&5
9823 if eval "test \"\${ol_cv_dcl_sys_errlist+set}\" = set"; then
9824 echo $ac_n "(cached) $ac_c" 1>&6
9827 cat > conftest.$ac_ext <<EOF
9828 #line 9829 "configure"
9829 #include "confdefs.h"
9832 #include <sys/types.h>
9838 char *c = (char *) *sys_errlist
9841 if { (eval echo configure:9842: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9843 ol_cv_dcl_sys_errlist=yes
9844 ol_cv_have_sys_errlist=yes
9846 echo "configure: failed program was:" >&5
9847 cat conftest.$ac_ext >&5
9849 ol_cv_dcl_sys_errlist=no
9854 echo "$ac_t""$ol_cv_dcl_sys_errlist" 1>&6
9856 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
9857 if test $ol_cv_dcl_sys_errlist = no ; then
9858 cat >> confdefs.h <<\EOF
9859 #define DECL_SYS_ERRLIST 1
9863 echo $ac_n "checking existence of sys_errlist""... $ac_c" 1>&6
9864 echo "configure:9865: checking existence of sys_errlist" >&5
9865 if eval "test \"\${ol_cv_have_sys_errlist+set}\" = set"; then
9866 echo $ac_n "(cached) $ac_c" 1>&6
9869 cat > conftest.$ac_ext <<EOF
9870 #line 9871 "configure"
9871 #include "confdefs.h"
9874 char *c = (char *) *sys_errlist
9877 if { (eval echo configure:9878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9879 ol_cv_have_sys_errlist=yes
9881 echo "configure: failed program was:" >&5
9882 cat conftest.$ac_ext >&5
9884 ol_cv_have_sys_errlist=no
9889 echo "$ac_t""$ol_cv_have_sys_errlist" 1>&6
9891 if test $ol_cv_have_sys_errlist = yes ; then
9892 cat >> confdefs.h <<\EOF
9893 #define HAVE_SYS_ERRLIST 1
9901 for ac_hdr in regex.h
9903 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9904 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9905 echo "configure:9906: checking for $ac_hdr" >&5
9906 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
9907 echo $ac_n "(cached) $ac_c" 1>&6
9909 cat > conftest.$ac_ext <<EOF
9910 #line 9911 "configure"
9911 #include "confdefs.h"
9914 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9915 { (eval echo configure:9916: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9916 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9917 if test -z "$ac_err"; then
9919 eval "ac_cv_header_$ac_safe=yes"
9922 echo "configure: failed program was:" >&5
9923 cat conftest.$ac_ext >&5
9925 eval "ac_cv_header_$ac_safe=no"
9929 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9930 echo "$ac_t""yes" 1>&6
9931 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9932 cat >> confdefs.h <<EOF
9933 #define $ac_tr_hdr 1
9937 echo "$ac_t""no" 1>&6
9941 if test "$ac_cv_header_regex_h" != yes ; then
9942 { echo "configure: error: POSIX regex.h required." 1>&2; exit 1; }
9945 echo $ac_n "checking for library containing regfree""... $ac_c" 1>&6
9946 echo "configure:9947: checking for library containing regfree" >&5
9947 if eval "test \"\${ac_cv_search_regfree+set}\" = set"; then
9948 echo $ac_n "(cached) $ac_c" 1>&6
9950 ac_func_search_save_LIBS="$LIBS"
9951 ac_cv_search_regfree="no"
9952 cat > conftest.$ac_ext <<EOF
9953 #line 9954 "configure"
9954 #include "confdefs.h"
9955 /* Override any gcc2 internal prototype to avoid an error. */
9956 /* We use char because int might match the return type of a gcc2
9957 builtin and then its argument prototype would still apply. */
9964 if { (eval echo configure:9965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9966 ac_cv_search_regfree="none required"
9968 echo "configure: failed program was:" >&5
9969 cat conftest.$ac_ext >&5
9972 test "$ac_cv_search_regfree" = "no" && for ac_lib in regex gnuregex; do
9973 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9974 cat > conftest.$ac_ext <<EOF
9975 #line 9976 "configure"
9976 #include "confdefs.h"
9977 /* Override any gcc2 internal prototype to avoid an error. */
9978 /* We use char because int might match the return type of a gcc2
9979 builtin and then its argument prototype would still apply. */
9986 if { (eval echo configure:9987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9988 ac_cv_search_regfree="-l$ac_lib"
9991 echo "configure: failed program was:" >&5
9992 cat conftest.$ac_ext >&5
9996 LIBS="$ac_func_search_save_LIBS"
9999 echo "$ac_t""$ac_cv_search_regfree" 1>&6
10000 if test "$ac_cv_search_regfree" != "no"; then
10001 test "$ac_cv_search_regfree" = "none required" || LIBS="$ac_cv_search_regfree $LIBS"
10004 { echo "configure: error: POSIX regex required." 1>&2; exit 1; }
10008 echo $ac_n "checking for compatible POSIX regex""... $ac_c" 1>&6
10009 echo "configure:10010: checking for compatible POSIX regex" >&5
10010 if eval "test \"\${ol_cv_c_posix_regex+set}\" = set"; then
10011 echo $ac_n "(cached) $ac_c" 1>&6
10014 if test "$cross_compiling" = yes; then
10015 ol_cv_c_posix_regex=cross
10017 cat > conftest.$ac_ext <<EOF
10018 #line 10019 "configure"
10019 #include "confdefs.h"
10021 #include <sys/types.h>
10023 static char *pattern, *string;
10031 if(regcomp(&re, pattern, 0)) {
10035 string = "ALL MATCH";
10037 rc = regexec(&re, string, 0, (void*)0, 0);
10044 if { (eval echo configure:10045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
10046 ol_cv_c_posix_regex=yes
10048 echo "configure: failed program was:" >&5
10049 cat conftest.$ac_ext >&5
10051 ol_cv_c_posix_regex=no
10058 echo "$ac_t""$ol_cv_c_posix_regex" 1>&6
10060 if test "$ol_cv_c_posix_regex" = no ; then
10061 { echo "configure: error: broken POSIX regex!" 1>&2; exit 1; }
10066 for ac_hdr in sys/uuid.h
10068 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10069 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10070 echo "configure:10071: checking for $ac_hdr" >&5
10071 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10072 echo $ac_n "(cached) $ac_c" 1>&6
10074 cat > conftest.$ac_ext <<EOF
10075 #line 10076 "configure"
10076 #include "confdefs.h"
10079 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10080 { (eval echo configure:10081: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10081 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10082 if test -z "$ac_err"; then
10084 eval "ac_cv_header_$ac_safe=yes"
10087 echo "configure: failed program was:" >&5
10088 cat conftest.$ac_ext >&5
10090 eval "ac_cv_header_$ac_safe=no"
10094 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10095 echo "$ac_t""yes" 1>&6
10096 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10097 cat >> confdefs.h <<EOF
10098 #define $ac_tr_hdr 1
10102 echo "$ac_t""no" 1>&6
10106 if test $ac_cv_header_sys_uuid_h = yes ; then
10109 echo $ac_n "checking for library containing uuid_to_str""... $ac_c" 1>&6
10110 echo "configure:10111: checking for library containing uuid_to_str" >&5
10111 if eval "test \"\${ac_cv_search_uuid_to_str+set}\" = set"; then
10112 echo $ac_n "(cached) $ac_c" 1>&6
10114 ac_func_search_save_LIBS="$LIBS"
10115 ac_cv_search_uuid_to_str="no"
10116 cat > conftest.$ac_ext <<EOF
10117 #line 10118 "configure"
10118 #include "confdefs.h"
10119 /* Override any gcc2 internal prototype to avoid an error. */
10120 /* We use char because int might match the return type of a gcc2
10121 builtin and then its argument prototype would still apply. */
10122 char uuid_to_str();
10128 if { (eval echo configure:10129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10130 ac_cv_search_uuid_to_str="none required"
10132 echo "configure: failed program was:" >&5
10133 cat conftest.$ac_ext >&5
10136 test "$ac_cv_search_uuid_to_str" = "no" && for ac_lib in uuid; do
10137 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10138 cat > conftest.$ac_ext <<EOF
10139 #line 10140 "configure"
10140 #include "confdefs.h"
10141 /* Override any gcc2 internal prototype to avoid an error. */
10142 /* We use char because int might match the return type of a gcc2
10143 builtin and then its argument prototype would still apply. */
10144 char uuid_to_str();
10150 if { (eval echo configure:10151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10152 ac_cv_search_uuid_to_str="-l$ac_lib"
10155 echo "configure: failed program was:" >&5
10156 cat conftest.$ac_ext >&5
10160 LIBS="$ac_func_search_save_LIBS"
10163 echo "$ac_t""$ac_cv_search_uuid_to_str" 1>&6
10164 if test "$ac_cv_search_uuid_to_str" != "no"; then
10165 test "$ac_cv_search_uuid_to_str" = "none required" || LIBS="$ac_cv_search_uuid_to_str $LIBS"
10172 if test have_uuid = yes ; then
10173 cat >> confdefs.h <<\EOF
10174 #define HAVE_UUID_TO_STR 1
10178 test "$ac_cv_search_uuid_to_str" = "none required" || \
10179 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
10183 if test $have_uuid = no ; then
10184 echo $ac_n "checking to see if -lrpcrt4 is needed for win32 UUID support""... $ac_c" 1>&6
10185 echo "configure:10186: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
10187 LIBS="$LIBS -lrpcrt4"
10188 cat > conftest.$ac_ext <<EOF
10189 #line 10190 "configure"
10190 #include "confdefs.h"
10192 int __stdcall UuidCreate(void *);
10193 int __stdcall UuidToStringA(void *,void **);
10198 UuidToStringA(0,0);
10202 if { (eval echo configure:10203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10206 echo "configure: failed program was:" >&5
10207 cat conftest.$ac_ext >&5
10212 if test $need_rpcrt = yes; then
10213 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
10216 echo "$ac_t""$need_rpcrt" 1>&6
10220 echo $ac_n "checking for res_query""... $ac_c" 1>&6
10221 echo "configure:10222: checking for res_query" >&5
10222 if eval "test \"\${ac_cv_func_res_query+set}\" = set"; then
10223 echo $ac_n "(cached) $ac_c" 1>&6
10225 cat > conftest.$ac_ext <<EOF
10226 #line 10227 "configure"
10227 #include "confdefs.h"
10228 /* System header to define __stub macros and hopefully few prototypes,
10229 which can conflict with char res_query(); below. */
10230 #include <assert.h>
10231 /* Override any gcc2 internal prototype to avoid an error. */
10232 /* We use char because int might match the return type of a gcc2
10233 builtin and then its argument prototype would still apply. */
10239 /* The GNU C library defines this for functions which it implements
10240 to always fail with ENOSYS. Some functions are actually named
10241 something starting with __ and the normal name is an alias. */
10242 #if defined (__stub_res_query) || defined (__stub___res_query)
10250 if { (eval echo configure:10251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10252 eval "ac_cv_func_res_query=yes"
10254 echo "configure: failed program was:" >&5
10255 cat conftest.$ac_ext >&5
10257 eval "ac_cv_func_res_query=no"
10262 if eval "test \"`echo '$ac_cv_func_'res_query`\" = yes"; then
10263 echo "$ac_t""yes" 1>&6
10266 echo "$ac_t""no" 1>&6
10269 if test $ac_cv_func_res_query = no ; then
10270 echo $ac_n "checking for __res_query""... $ac_c" 1>&6
10271 echo "configure:10272: checking for __res_query" >&5
10272 if eval "test \"\${ac_cv_func___res_query+set}\" = set"; then
10273 echo $ac_n "(cached) $ac_c" 1>&6
10275 cat > conftest.$ac_ext <<EOF
10276 #line 10277 "configure"
10277 #include "confdefs.h"
10278 /* System header to define __stub macros and hopefully few prototypes,
10279 which can conflict with char __res_query(); below. */
10280 #include <assert.h>
10281 /* Override any gcc2 internal prototype to avoid an error. */
10282 /* We use char because int might match the return type of a gcc2
10283 builtin and then its argument prototype would still apply. */
10284 char __res_query();
10289 /* The GNU C library defines this for functions which it implements
10290 to always fail with ENOSYS. Some functions are actually named
10291 something starting with __ and the normal name is an alias. */
10292 #if defined (__stub___res_query) || defined (__stub_____res_query)
10300 if { (eval echo configure:10301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10302 eval "ac_cv_func___res_query=yes"
10304 echo "configure: failed program was:" >&5
10305 cat conftest.$ac_ext >&5
10307 eval "ac_cv_func___res_query=no"
10312 if eval "test \"`echo '$ac_cv_func_'__res_query`\" = yes"; then
10313 echo "$ac_t""yes" 1>&6
10316 echo "$ac_t""no" 1>&6
10319 ac_cv_func_res_query=$ac_cv_func___res_query
10322 if test $ac_cv_func_res_query = no ; then
10323 echo $ac_n "checking for res_query in -lbind""... $ac_c" 1>&6
10324 echo "configure:10325: checking for res_query in -lbind" >&5
10325 ac_lib_var=`echo bind'_'res_query | sed 'y%./+-:%__p__%'`
10326 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10327 echo $ac_n "(cached) $ac_c" 1>&6
10329 ac_save_LIBS="$LIBS"
10330 LIBS="-lbind $LIBS"
10331 cat > conftest.$ac_ext <<EOF
10332 #line 10333 "configure"
10333 #include "confdefs.h"
10334 /* Override any gcc2 internal prototype to avoid an error. */
10335 /* We use char because int might match the return type of a gcc2
10336 builtin and then its argument prototype would still apply. */
10343 if { (eval echo configure:10344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10345 eval "ac_cv_lib_$ac_lib_var=yes"
10347 echo "configure: failed program was:" >&5
10348 cat conftest.$ac_ext >&5
10350 eval "ac_cv_lib_$ac_lib_var=no"
10353 LIBS="$ac_save_LIBS"
10356 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10357 echo "$ac_t""yes" 1>&6
10358 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10359 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10360 cat >> confdefs.h <<EOF
10361 #define $ac_tr_lib 1
10364 LIBS="-lbind $LIBS"
10367 echo "$ac_t""no" 1>&6
10370 ac_cv_func_res_query=$ac_cv_lib_bind_res_query
10373 if test $ac_cv_func_res_query = no ; then
10374 echo $ac_n "checking for __res_query in -lbind""... $ac_c" 1>&6
10375 echo "configure:10376: checking for __res_query in -lbind" >&5
10376 ac_lib_var=`echo bind'_'__res_query | sed 'y%./+-:%__p__%'`
10377 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10378 echo $ac_n "(cached) $ac_c" 1>&6
10380 ac_save_LIBS="$LIBS"
10381 LIBS="-lbind $LIBS"
10382 cat > conftest.$ac_ext <<EOF
10383 #line 10384 "configure"
10384 #include "confdefs.h"
10385 /* Override any gcc2 internal prototype to avoid an error. */
10386 /* We use char because int might match the return type of a gcc2
10387 builtin and then its argument prototype would still apply. */
10388 char __res_query();
10394 if { (eval echo configure:10395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10396 eval "ac_cv_lib_$ac_lib_var=yes"
10398 echo "configure: failed program was:" >&5
10399 cat conftest.$ac_ext >&5
10401 eval "ac_cv_lib_$ac_lib_var=no"
10404 LIBS="$ac_save_LIBS"
10407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10408 echo "$ac_t""yes" 1>&6
10409 ac_tr_lib=HAVE_LIB`echo bind | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10410 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10411 cat >> confdefs.h <<EOF
10412 #define $ac_tr_lib 1
10415 LIBS="-lbind $LIBS"
10418 echo "$ac_t""no" 1>&6
10421 ac_cv_func_res_query=$ac_cv_lib_bind___res_query
10424 if test $ac_cv_func_res_query = no ; then
10425 echo $ac_n "checking for res_query in -lresolv""... $ac_c" 1>&6
10426 echo "configure:10427: checking for res_query in -lresolv" >&5
10427 ac_lib_var=`echo resolv'_'res_query | sed 'y%./+-:%__p__%'`
10428 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10429 echo $ac_n "(cached) $ac_c" 1>&6
10431 ac_save_LIBS="$LIBS"
10432 LIBS="-lresolv $LIBS"
10433 cat > conftest.$ac_ext <<EOF
10434 #line 10435 "configure"
10435 #include "confdefs.h"
10436 /* Override any gcc2 internal prototype to avoid an error. */
10437 /* We use char because int might match the return type of a gcc2
10438 builtin and then its argument prototype would still apply. */
10445 if { (eval echo configure:10446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10447 eval "ac_cv_lib_$ac_lib_var=yes"
10449 echo "configure: failed program was:" >&5
10450 cat conftest.$ac_ext >&5
10452 eval "ac_cv_lib_$ac_lib_var=no"
10455 LIBS="$ac_save_LIBS"
10458 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10459 echo "$ac_t""yes" 1>&6
10460 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10461 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10462 cat >> confdefs.h <<EOF
10463 #define $ac_tr_lib 1
10466 LIBS="-lresolv $LIBS"
10469 echo "$ac_t""no" 1>&6
10472 ac_cv_func_res_query=$ac_cv_lib_resolv_res_query
10475 if test $ac_cv_func_res_query = no ; then
10476 echo $ac_n "checking for __res_query in -lresolv""... $ac_c" 1>&6
10477 echo "configure:10478: checking for __res_query in -lresolv" >&5
10478 ac_lib_var=`echo resolv'_'__res_query | sed 'y%./+-:%__p__%'`
10479 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10480 echo $ac_n "(cached) $ac_c" 1>&6
10482 ac_save_LIBS="$LIBS"
10483 LIBS="-lresolv $LIBS"
10484 cat > conftest.$ac_ext <<EOF
10485 #line 10486 "configure"
10486 #include "confdefs.h"
10487 /* Override any gcc2 internal prototype to avoid an error. */
10488 /* We use char because int might match the return type of a gcc2
10489 builtin and then its argument prototype would still apply. */
10490 char __res_query();
10496 if { (eval echo configure:10497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10498 eval "ac_cv_lib_$ac_lib_var=yes"
10500 echo "configure: failed program was:" >&5
10501 cat conftest.$ac_ext >&5
10503 eval "ac_cv_lib_$ac_lib_var=no"
10506 LIBS="$ac_save_LIBS"
10509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10510 echo "$ac_t""yes" 1>&6
10511 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10512 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10513 cat >> confdefs.h <<EOF
10514 #define $ac_tr_lib 1
10517 LIBS="-lresolv $LIBS"
10520 echo "$ac_t""no" 1>&6
10523 ac_cv_func_res_query=$ac_cv_lib_resolv___res_query
10526 if test $ac_cv_func_res_query = no ; then
10527 echo $ac_n "checking for _res_9_query in -lresolv""... $ac_c" 1>&6
10528 echo "configure:10529: checking for _res_9_query in -lresolv" >&5
10529 ac_lib_var=`echo resolv'_'_res_9_query | sed 'y%./+-:%__p__%'`
10530 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10531 echo $ac_n "(cached) $ac_c" 1>&6
10533 ac_save_LIBS="$LIBS"
10534 LIBS="-lresolv $LIBS"
10535 cat > conftest.$ac_ext <<EOF
10536 #line 10537 "configure"
10537 #include "confdefs.h"
10538 /* Override any gcc2 internal prototype to avoid an error. */
10539 /* We use char because int might match the return type of a gcc2
10540 builtin and then its argument prototype would still apply. */
10541 char _res_9_query();
10547 if { (eval echo configure:10548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10549 eval "ac_cv_lib_$ac_lib_var=yes"
10551 echo "configure: failed program was:" >&5
10552 cat conftest.$ac_ext >&5
10554 eval "ac_cv_lib_$ac_lib_var=no"
10557 LIBS="$ac_save_LIBS"
10560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10561 echo "$ac_t""yes" 1>&6
10562 ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
10563 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
10564 cat >> confdefs.h <<EOF
10565 #define $ac_tr_lib 1
10568 LIBS="-lresolv $LIBS"
10571 echo "$ac_t""no" 1>&6
10574 ac_cv_func_res_query=$ac_cv_lib_resolv_res_9_query
10577 if test "$ac_cv_func_res_query" = yes ; then
10578 cat >> confdefs.h <<\EOF
10579 #define HAVE_RES_QUERY 1
10583 if test $ol_enable_dnssrv != no ; then
10588 if test "$ol_enable_dnssrv" != no -a "$ol_link_dnssrv" = no ; then
10589 { echo "configure: error: DNSSRV requires res_query()" 1>&2; exit 1; }
10592 for ac_func in hstrerror
10594 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10595 echo "configure:10596: checking for $ac_func" >&5
10596 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10597 echo $ac_n "(cached) $ac_c" 1>&6
10599 cat > conftest.$ac_ext <<EOF
10600 #line 10601 "configure"
10601 #include "confdefs.h"
10602 /* System header to define __stub macros and hopefully few prototypes,
10603 which can conflict with char $ac_func(); below. */
10604 #include <assert.h>
10605 /* Override any gcc2 internal prototype to avoid an error. */
10606 /* We use char because int might match the return type of a gcc2
10607 builtin and then its argument prototype would still apply. */
10613 /* The GNU C library defines this for functions which it implements
10614 to always fail with ENOSYS. Some functions are actually named
10615 something starting with __ and the normal name is an alias. */
10616 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10624 if { (eval echo configure:10625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10626 eval "ac_cv_func_$ac_func=yes"
10628 echo "configure: failed program was:" >&5
10629 cat conftest.$ac_ext >&5
10631 eval "ac_cv_func_$ac_func=no"
10636 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10637 echo "$ac_t""yes" 1>&6
10638 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10639 cat >> confdefs.h <<EOF
10640 #define $ac_tr_func 1
10644 echo "$ac_t""no" 1>&6
10649 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
10651 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
10652 echo "configure:10653: checking for $ac_func" >&5
10653 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
10654 echo $ac_n "(cached) $ac_c" 1>&6
10656 cat > conftest.$ac_ext <<EOF
10657 #line 10658 "configure"
10658 #include "confdefs.h"
10659 /* System header to define __stub macros and hopefully few prototypes,
10660 which can conflict with char $ac_func(); below. */
10661 #include <assert.h>
10662 /* Override any gcc2 internal prototype to avoid an error. */
10663 /* We use char because int might match the return type of a gcc2
10664 builtin and then its argument prototype would still apply. */
10670 /* The GNU C library defines this for functions which it implements
10671 to always fail with ENOSYS. Some functions are actually named
10672 something starting with __ and the normal name is an alias. */
10673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10681 if { (eval echo configure:10682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10683 eval "ac_cv_func_$ac_func=yes"
10685 echo "configure: failed program was:" >&5
10686 cat conftest.$ac_ext >&5
10688 eval "ac_cv_func_$ac_func=no"
10693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
10694 echo "$ac_t""yes" 1>&6
10695 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
10696 cat >> confdefs.h <<EOF
10697 #define $ac_tr_func 1
10701 echo "$ac_t""no" 1>&6
10707 if test $ac_cv_func_getaddrinfo = no -o $ac_cv_func_inet_ntop = no ; then
10708 if test $ol_enable_ipv6 = yes ; then
10709 { echo "configure: error: IPv6 support requires getaddrinfo() and inet_ntop()" 1>&2; exit 1; }
10711 elif test $ol_enable_ipv6 != no ; then
10712 echo $ac_n "checking INET6_ADDRSTRLEN""... $ac_c" 1>&6
10713 echo "configure:10714: checking INET6_ADDRSTRLEN" >&5
10714 if eval "test \"\${ol_cv_inet6_addrstrlen+set}\" = set"; then
10715 echo $ac_n "(cached) $ac_c" 1>&6
10718 cat > conftest.$ac_ext <<EOF
10719 #line 10720 "configure"
10720 #include "confdefs.h"
10722 # include <netinet/in.h>
10723 # ifdef INET6_ADDRSTRLEN
10724 __has_inet6_addrstrlen__;
10728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10729 egrep "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
10731 ol_cv_inet6_addrstrlen=yes
10734 ol_cv_inet6_addrstrlen=no
10740 echo "$ac_t""$ol_cv_inet6_addrstrlen" 1>&6
10743 echo $ac_n "checking struct sockaddr_storage""... $ac_c" 1>&6
10744 echo "configure:10745: checking struct sockaddr_storage" >&5
10745 if eval "test \"\${ol_cv_struct_sockaddr_storage+set}\" = set"; then
10746 echo $ac_n "(cached) $ac_c" 1>&6
10749 cat > conftest.$ac_ext <<EOF
10750 #line 10751 "configure"
10751 #include "confdefs.h"
10753 #include <sys/types.h>
10754 #include <sys/socket.h>
10758 struct sockaddr_storage ss;
10762 if { (eval echo configure:10763: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10764 ol_cv_struct_sockaddr_storage=yes
10766 echo "configure: failed program was:" >&5
10767 cat conftest.$ac_ext >&5
10769 ol_cv_struct_sockaddr_storage=no
10774 echo "$ac_t""$ol_cv_struct_sockaddr_storage" 1>&6
10776 if test $ol_cv_inet6_addrstrlen = yes \
10777 -a $ol_cv_struct_sockaddr_storage = yes ; then
10779 elif test $ol_enable_ipv6 = yes \
10780 -a $ol_cv_inet6_addrstrlen = no ; then
10781 { echo "configure: error: IPv6 support requires INET6_ADDRSTRLEN" 1>&2; exit 1; }
10782 elif test $ol_enable_ipv6 = yes \
10783 -a $ol_cv_struct_sockaddr_storage = no ; then
10784 { echo "configure: error: IPv6 support requires struct sockaddr_storage" 1>&2; exit 1; }
10788 if test $ol_enable_local != no ; then
10789 for ac_hdr in sys/un.h
10791 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10792 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10793 echo "configure:10794: checking for $ac_hdr" >&5
10794 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10795 echo $ac_n "(cached) $ac_c" 1>&6
10797 cat > conftest.$ac_ext <<EOF
10798 #line 10799 "configure"
10799 #include "confdefs.h"
10802 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10803 { (eval echo configure:10804: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10804 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10805 if test -z "$ac_err"; then
10807 eval "ac_cv_header_$ac_safe=yes"
10810 echo "configure: failed program was:" >&5
10811 cat conftest.$ac_ext >&5
10813 eval "ac_cv_header_$ac_safe=no"
10817 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10818 echo "$ac_t""yes" 1>&6
10819 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10820 cat >> confdefs.h <<EOF
10821 #define $ac_tr_hdr 1
10825 echo "$ac_t""no" 1>&6
10830 if test $ol_enable_local = auto ; then
10831 ol_enable_local=$ac_cv_header_sys_un_h
10832 elif test $ac_cv_header_sys_un_h = no ; then
10833 { echo "configure: error: AF_LOCAL domain support requires sys/un.h" 1>&2; exit 1; }
10841 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
10842 -o $ol_with_kerberos = k5 -o $ol_with_kerberos = k5only \
10843 -o $ol_with_kerberos = k425 ; then
10845 for ac_hdr in krb5.h
10847 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10848 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10849 echo "configure:10850: checking for $ac_hdr" >&5
10850 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10851 echo $ac_n "(cached) $ac_c" 1>&6
10853 cat > conftest.$ac_ext <<EOF
10854 #line 10855 "configure"
10855 #include "confdefs.h"
10858 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10859 { (eval echo configure:10860: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10860 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10861 if test -z "$ac_err"; then
10863 eval "ac_cv_header_$ac_safe=yes"
10866 echo "configure: failed program was:" >&5
10867 cat conftest.$ac_ext >&5
10869 eval "ac_cv_header_$ac_safe=no"
10873 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10874 echo "$ac_t""yes" 1>&6
10875 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10876 cat >> confdefs.h <<EOF
10877 #define $ac_tr_hdr 1
10881 echo "$ac_t""no" 1>&6
10886 if test $ac_cv_header_krb5_h = yes ; then
10887 for ac_hdr in heim_err.h
10889 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10890 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10891 echo "configure:10892: checking for $ac_hdr" >&5
10892 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
10893 echo $ac_n "(cached) $ac_c" 1>&6
10895 cat > conftest.$ac_ext <<EOF
10896 #line 10897 "configure"
10897 #include "confdefs.h"
10900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10901 { (eval echo configure:10902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10903 if test -z "$ac_err"; then
10905 eval "ac_cv_header_$ac_safe=yes"
10908 echo "configure: failed program was:" >&5
10909 cat conftest.$ac_ext >&5
10911 eval "ac_cv_header_$ac_safe=no"
10915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10916 echo "$ac_t""yes" 1>&6
10917 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10918 cat >> confdefs.h <<EOF
10919 #define $ac_tr_hdr 1
10923 echo "$ac_t""no" 1>&6
10927 if test $ac_cv_header_heim_err_h = yes ; then
10933 if test $krb5_impl = mit; then
10934 echo $ac_n "checking for main in -lk5crypto""... $ac_c" 1>&6
10935 echo "configure:10936: checking for main in -lk5crypto" >&5
10936 ac_lib_var=`echo k5crypto'_'main | sed 'y%./+-:%__p__%'`
10937 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10938 echo $ac_n "(cached) $ac_c" 1>&6
10940 ac_save_LIBS="$LIBS"
10941 LIBS="-lk5crypto $LIBS"
10942 cat > conftest.$ac_ext <<EOF
10943 #line 10944 "configure"
10944 #include "confdefs.h"
10950 if { (eval echo configure:10951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10952 eval "ac_cv_lib_$ac_lib_var=yes"
10954 echo "configure: failed program was:" >&5
10955 cat conftest.$ac_ext >&5
10957 eval "ac_cv_lib_$ac_lib_var=no"
10960 LIBS="$ac_save_LIBS"
10963 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10964 echo "$ac_t""yes" 1>&6
10965 krb5crypto=k5crypto
10967 echo "$ac_t""no" 1>&6
10972 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
10973 echo "configure:10974: checking for main in -lkrb5" >&5
10974 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
10975 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
10976 echo $ac_n "(cached) $ac_c" 1>&6
10978 ac_save_LIBS="$LIBS"
10979 LIBS="-lkrb5 -l$krb5crypto -lcom_err $LIBS"
10980 cat > conftest.$ac_ext <<EOF
10981 #line 10982 "configure"
10982 #include "confdefs.h"
10988 if { (eval echo configure:10989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10990 eval "ac_cv_lib_$ac_lib_var=yes"
10992 echo "configure: failed program was:" >&5
10993 cat conftest.$ac_ext >&5
10995 eval "ac_cv_lib_$ac_lib_var=no"
10998 LIBS="$ac_save_LIBS"
11001 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11002 echo "$ac_t""yes" 1>&6
11004 KRB5_LIBS="-lkrb5 -l$krb5crypto -lcom_err"
11006 echo "$ac_t""no" 1>&6
11011 elif test $krb5_impl = heimdal; then
11012 echo $ac_n "checking for main in -ldes""... $ac_c" 1>&6
11013 echo "configure:11014: checking for main in -ldes" >&5
11014 ac_lib_var=`echo des'_'main | sed 'y%./+-:%__p__%'`
11015 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11016 echo $ac_n "(cached) $ac_c" 1>&6
11018 ac_save_LIBS="$LIBS"
11020 cat > conftest.$ac_ext <<EOF
11021 #line 11022 "configure"
11022 #include "confdefs.h"
11028 if { (eval echo configure:11029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11030 eval "ac_cv_lib_$ac_lib_var=yes"
11032 echo "configure: failed program was:" >&5
11033 cat conftest.$ac_ext >&5
11035 eval "ac_cv_lib_$ac_lib_var=no"
11038 LIBS="$ac_save_LIBS"
11041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11042 echo "$ac_t""yes" 1>&6
11045 echo "$ac_t""no" 1>&6
11050 echo $ac_n "checking for main in -lkrb5""... $ac_c" 1>&6
11051 echo "configure:11052: checking for main in -lkrb5" >&5
11052 ac_lib_var=`echo krb5'_'main | sed 'y%./+-:%__p__%'`
11053 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11054 echo $ac_n "(cached) $ac_c" 1>&6
11056 ac_save_LIBS="$LIBS"
11057 LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
11058 cat > conftest.$ac_ext <<EOF
11059 #line 11060 "configure"
11060 #include "confdefs.h"
11066 if { (eval echo configure:11067: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11068 eval "ac_cv_lib_$ac_lib_var=yes"
11070 echo "configure: failed program was:" >&5
11071 cat conftest.$ac_ext >&5
11073 eval "ac_cv_lib_$ac_lib_var=no"
11076 LIBS="$ac_save_LIBS"
11079 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11080 echo "$ac_t""yes" 1>&6
11082 KRB5_LIBS="-lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err"
11084 echo "$ac_t""no" 1>&6
11089 cat >> confdefs.h <<\EOF
11090 #define HAVE_HEIMDAL_KERBEROS 1
11096 echo "configure: warning: Unrecognized Kerberos5 Implementation" 1>&2
11099 if test $have_krb5 = yes ; then
11102 cat >> confdefs.h <<\EOF
11103 #define HAVE_KRB5 1
11107 if test $ol_with_kerberos = k5only ; then
11108 ol_with_kerberos=found
11111 elif test $ol_with_kerberos != auto ; then
11112 { echo "configure: error: Required Kerberos 5 support not available" 1>&2; exit 1; }
11118 if test $ol_link_krb5 = yes -a \( $ol_with_kerberos = yes -o \
11119 $ol_with_kerberos = auto -o $ol_with_kerberos = k425 \) ; then
11121 for ac_hdr in kerberosIV/krb.h kerberosIV/des.h
11123 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11124 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11125 echo "configure:11126: checking for $ac_hdr" >&5
11126 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11127 echo $ac_n "(cached) $ac_c" 1>&6
11129 cat > conftest.$ac_ext <<EOF
11130 #line 11131 "configure"
11131 #include "confdefs.h"
11134 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11135 { (eval echo configure:11136: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11136 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11137 if test -z "$ac_err"; then
11139 eval "ac_cv_header_$ac_safe=yes"
11142 echo "configure: failed program was:" >&5
11143 cat conftest.$ac_ext >&5
11145 eval "ac_cv_header_$ac_safe=no"
11149 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11150 echo "$ac_t""yes" 1>&6
11151 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11152 cat >> confdefs.h <<EOF
11153 #define $ac_tr_hdr 1
11157 echo "$ac_t""no" 1>&6
11162 if test $ac_cv_header_kerberosIV_krb_h = yes ; then
11163 if test $krb5_impl = mit; then
11164 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
11165 echo "configure:11166: checking for main in -lkrb4" >&5
11166 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
11167 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11168 echo $ac_n "(cached) $ac_c" 1>&6
11170 ac_save_LIBS="$LIBS"
11171 LIBS="-lkrb4 -ldes425 -lkrb5 -l$krb5crypto -lcom_err $LIBS"
11172 cat > conftest.$ac_ext <<EOF
11173 #line 11174 "configure"
11174 #include "confdefs.h"
11180 if { (eval echo configure:11181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11182 eval "ac_cv_lib_$ac_lib_var=yes"
11184 echo "configure: failed program was:" >&5
11185 cat conftest.$ac_ext >&5
11187 eval "ac_cv_lib_$ac_lib_var=no"
11190 LIBS="$ac_save_LIBS"
11193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11194 echo "$ac_t""yes" 1>&6
11196 KRB4_LIBS="-lkrb4 -ldes425"
11198 echo "$ac_t""no" 1>&6
11203 elif test $krb5_impl = heimdal; then
11204 echo $ac_n "checking for main in -lkrb4""... $ac_c" 1>&6
11205 echo "configure:11206: checking for main in -lkrb4" >&5
11206 ac_lib_var=`echo krb4'_'main | sed 'y%./+-:%__p__%'`
11207 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11208 echo $ac_n "(cached) $ac_c" 1>&6
11210 ac_save_LIBS="$LIBS"
11211 LIBS="-lkrb4 -lkrb5 -l$krb5crypto -lasn1 -lroken -lcom_err $LIBS"
11212 cat > conftest.$ac_ext <<EOF
11213 #line 11214 "configure"
11214 #include "confdefs.h"
11220 if { (eval echo configure:11221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11222 eval "ac_cv_lib_$ac_lib_var=yes"
11224 echo "configure: failed program was:" >&5
11225 cat conftest.$ac_ext >&5
11227 eval "ac_cv_lib_$ac_lib_var=no"
11230 LIBS="$ac_save_LIBS"
11233 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11234 echo "$ac_t""yes" 1>&6
11238 echo "$ac_t""no" 1>&6
11245 echo "configure: warning: Unrecongized Kerberos V Implementation" 1>&2
11248 if test $have_k425 = yes ; then
11249 ol_with_kerberos=found
11252 cat >> confdefs.h <<\EOF
11253 #define HAVE_KRB425 1
11256 cat >> confdefs.h <<\EOF
11257 #define HAVE_KRB4 1
11261 echo $ac_n "checking for des_debug in Kerberos libraries""... $ac_c" 1>&6
11262 echo "configure:11263: checking for des_debug in Kerberos libraries" >&5
11263 if eval "test \"\${ol_cv_var_des_debug+set}\" = set"; then
11264 echo $ac_n "(cached) $ac_c" 1>&6
11268 LIBS="$KRB4_LIBS $KRB5_LIBS $LIBS"
11269 cat > conftest.$ac_ext <<EOF
11270 #line 11271 "configure"
11271 #include "confdefs.h"
11273 #include <kerberosIV/krb.h>
11274 #include <kerberosIV/des.h>
11275 extern int des_debug;
11283 if { (eval echo configure:11284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11285 ol_cv_var_des_debug=yes
11287 echo "configure: failed program was:" >&5
11288 cat conftest.$ac_ext >&5
11290 ol_cv_var_des_debug=no
11297 echo "$ac_t""$ol_cv_var_des_debug" 1>&6
11299 if test $ol_cv_var_des_debug = yes ; then
11300 cat >> confdefs.h <<\EOF
11301 #define HAVE_DES_DEBUG 1
11311 if test $ol_link_krb5 = yes ; then
11312 ol_with_kerberos=found
11315 if test $ol_with_kerberos = yes -o $ol_with_kerberos = auto \
11316 -o $ol_with_kerberos = k4 -o $ol_with_kerberos = kth ; then
11318 for ac_hdr in krb.h des.h krb-archaeology.h
11320 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11321 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11322 echo "configure:11323: checking for $ac_hdr" >&5
11323 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11324 echo $ac_n "(cached) $ac_c" 1>&6
11326 cat > conftest.$ac_ext <<EOF
11327 #line 11328 "configure"
11328 #include "confdefs.h"
11331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11332 { (eval echo configure:11333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11333 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11334 if test -z "$ac_err"; then
11336 eval "ac_cv_header_$ac_safe=yes"
11339 echo "configure: failed program was:" >&5
11340 cat conftest.$ac_ext >&5
11342 eval "ac_cv_header_$ac_safe=no"
11346 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11347 echo "$ac_t""yes" 1>&6
11348 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11349 cat >> confdefs.h <<EOF
11350 #define $ac_tr_hdr 1
11354 echo "$ac_t""no" 1>&6
11359 if test $ac_cv_header_krb_h = yes ; then
11360 echo $ac_n "checking for main in -lkrb""... $ac_c" 1>&6
11361 echo "configure:11362: checking for main in -lkrb" >&5
11362 ac_lib_var=`echo krb'_'main | sed 'y%./+-:%__p__%'`
11363 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11364 echo $ac_n "(cached) $ac_c" 1>&6
11366 ac_save_LIBS="$LIBS"
11367 LIBS="-lkrb -ldes $LIBS"
11368 cat > conftest.$ac_ext <<EOF
11369 #line 11370 "configure"
11370 #include "confdefs.h"
11376 if { (eval echo configure:11377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11378 eval "ac_cv_lib_$ac_lib_var=yes"
11380 echo "configure: failed program was:" >&5
11381 cat conftest.$ac_ext >&5
11383 eval "ac_cv_lib_$ac_lib_var=no"
11386 LIBS="$ac_save_LIBS"
11389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11390 echo "$ac_t""yes" 1>&6
11393 echo "$ac_t""no" 1>&6
11398 if test $have_k4 = yes ; then
11399 ol_with_kerberos=found
11402 cat >> confdefs.h <<\EOF
11403 #define HAVE_KRB4 1
11407 KRB4_LIBS="-lkrb -ldes"
11409 if test $ac_cv_header_krb_archaeology_h = yes ; then
11410 cat >> confdefs.h <<\EOF
11411 #define HAVE_KTH_KERBEROS 1
11419 if test $ol_link_krb4 = yes -a $ol_enable_kbind != no ; then
11422 elif test $ol_enable_kbind = yes ; then
11423 { echo "configure: error: Kerberos IV detection failed" 1>&2; exit 1; }
11426 if test $ol_link_krb4 = yes -o $ol_link_krb5 = yes ; then
11427 cat >> confdefs.h <<\EOF
11428 #define HAVE_KERBEROS 1
11432 elif test $ol_with_kerberos != auto -a $ol_with_kerberos != no ; then
11433 { echo "configure: error: Kerberos detection failed" 1>&2; exit 1; }
11438 if test $ol_with_tls != no ; then
11439 for ac_hdr in openssl/ssl.h ssl.h
11441 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11442 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11443 echo "configure:11444: checking for $ac_hdr" >&5
11444 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11445 echo $ac_n "(cached) $ac_c" 1>&6
11447 cat > conftest.$ac_ext <<EOF
11448 #line 11449 "configure"
11449 #include "confdefs.h"
11452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11453 { (eval echo configure:11454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11454 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11455 if test -z "$ac_err"; then
11457 eval "ac_cv_header_$ac_safe=yes"
11460 echo "configure: failed program was:" >&5
11461 cat conftest.$ac_ext >&5
11463 eval "ac_cv_header_$ac_safe=no"
11467 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11468 echo "$ac_t""yes" 1>&6
11469 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11470 cat >> confdefs.h <<EOF
11471 #define $ac_tr_hdr 1
11475 echo "$ac_t""no" 1>&6
11480 if test $ac_cv_header_openssl_ssl_h = yes \
11481 -o $ac_cv_header_ssl_h = yes ; then
11482 echo $ac_n "checking for SSLeay_add_ssl_algorithms in -lssl""... $ac_c" 1>&6
11483 echo "configure:11484: checking for SSLeay_add_ssl_algorithms in -lssl" >&5
11484 ac_lib_var=`echo ssl'_'SSLeay_add_ssl_algorithms | sed 'y%./+-:%__p__%'`
11485 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11486 echo $ac_n "(cached) $ac_c" 1>&6
11488 ac_save_LIBS="$LIBS"
11489 LIBS="-lssl -lcrypto $LIBS"
11490 cat > conftest.$ac_ext <<EOF
11491 #line 11492 "configure"
11492 #include "confdefs.h"
11493 /* Override any gcc2 internal prototype to avoid an error. */
11494 /* We use char because int might match the return type of a gcc2
11495 builtin and then its argument prototype would still apply. */
11496 char SSLeay_add_ssl_algorithms();
11499 SSLeay_add_ssl_algorithms()
11502 if { (eval echo configure:11503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11504 eval "ac_cv_lib_$ac_lib_var=yes"
11506 echo "configure: failed program was:" >&5
11507 cat conftest.$ac_ext >&5
11509 eval "ac_cv_lib_$ac_lib_var=no"
11512 LIBS="$ac_save_LIBS"
11515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11516 echo "$ac_t""yes" 1>&6
11520 echo "$ac_t""no" 1>&6
11525 if test $have_ssleay = no ; then
11526 echo $ac_n "checking for SSL_library_init in -lssl""... $ac_c" 1>&6
11527 echo "configure:11528: checking for SSL_library_init in -lssl" >&5
11528 ac_lib_var=`echo ssl'_'SSL_library_init | sed 'y%./+-:%__p__%'`
11529 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11530 echo $ac_n "(cached) $ac_c" 1>&6
11532 ac_save_LIBS="$LIBS"
11533 LIBS="-lssl -lcrypto $LIBS"
11534 cat > conftest.$ac_ext <<EOF
11535 #line 11536 "configure"
11536 #include "confdefs.h"
11537 /* Override any gcc2 internal prototype to avoid an error. */
11538 /* We use char because int might match the return type of a gcc2
11539 builtin and then its argument prototype would still apply. */
11540 char SSL_library_init();
11546 if { (eval echo configure:11547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11548 eval "ac_cv_lib_$ac_lib_var=yes"
11550 echo "configure: failed program was:" >&5
11551 cat conftest.$ac_ext >&5
11553 eval "ac_cv_lib_$ac_lib_var=no"
11556 LIBS="$ac_save_LIBS"
11559 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11560 echo "$ac_t""yes" 1>&6
11564 echo "$ac_t""no" 1>&6
11570 if test $have_ssleay = no ; then
11571 echo $ac_n "checking for ssl3_accept in -lssl""... $ac_c" 1>&6
11572 echo "configure:11573: checking for ssl3_accept in -lssl" >&5
11573 ac_lib_var=`echo ssl'_'ssl3_accept | sed 'y%./+-:%__p__%'`
11574 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
11575 echo $ac_n "(cached) $ac_c" 1>&6
11577 ac_save_LIBS="$LIBS"
11578 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
11579 cat > conftest.$ac_ext <<EOF
11580 #line 11581 "configure"
11581 #include "confdefs.h"
11582 /* Override any gcc2 internal prototype to avoid an error. */
11583 /* We use char because int might match the return type of a gcc2
11584 builtin and then its argument prototype would still apply. */
11585 char ssl3_accept();
11591 if { (eval echo configure:11592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11593 eval "ac_cv_lib_$ac_lib_var=yes"
11595 echo "configure: failed program was:" >&5
11596 cat conftest.$ac_ext >&5
11598 eval "ac_cv_lib_$ac_lib_var=no"
11601 LIBS="$ac_save_LIBS"
11604 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11605 echo "$ac_t""yes" 1>&6
11609 echo "$ac_t""no" 1>&6
11615 if test $have_ssleay = yes ; then
11619 cat >> confdefs.h <<\EOF
11620 #define HAVE_SSLEAY 1
11624 if test $need_rsaref = yes; then
11625 cat >> confdefs.h <<\EOF
11626 #define HAVE_RSAREF 1
11630 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
11632 TLS_LIBS="-lssl -lcrypto"
11635 echo $ac_n "checking OpenSSL library version (CRL checking capability)""... $ac_c" 1>&6
11636 echo "configure:11637: checking OpenSSL library version (CRL checking capability)" >&5
11637 if eval "test \"\${ol_cv_ssl_crl_compat+set}\" = set"; then
11638 echo $ac_n "(cached) $ac_c" 1>&6
11641 cat > conftest.$ac_ext <<EOF
11642 #line 11643 "configure"
11643 #include "confdefs.h"
11645 #ifdef HAVE_OPENSSL_SSL_H
11646 #include <openssl/ssl.h>
11651 /* Require 0.9.7d+ */
11652 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
11653 char *__ssl_compat = "0.9.7d";
11657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11658 egrep "__ssl_compat" >/dev/null 2>&1; then
11660 ol_cv_ssl_crl_compat=yes
11663 ol_cv_ssl_crl_compat=no
11669 echo "$ac_t""$ol_cv_ssl_crl_compat" 1>&6
11671 if test $ol_cv_ssl_crl_compat = no ; then
11674 cat >> confdefs.h <<\EOF
11675 #define HAVE_OPENSSL_CRL 1
11682 echo "configure: warning: TLS data protection not supported!" 1>&2
11686 if test $ol_link_tls = yes ; then
11687 cat >> confdefs.h <<\EOF
11693 elif test $ol_with_tls = auto ; then
11694 echo "configure: warning: Could not locate TLS/SSL package" 1>&2
11695 echo "configure: warning: TLS data protection not supported!" 1>&2
11697 elif test $ol_with_tls != no ; then
11698 { echo "configure: error: Could not locate TLS/SSL package" 1>&2; exit 1; }
11701 if test $ol_enable_lmpasswd != no; then
11702 if test $ol_link_tls != yes ; then
11703 { echo "configure: error: LAN Manager passwords require OpenSSL" 1>&2; exit 1; }
11706 cat >> confdefs.h <<\EOF
11707 #define SLAPD_LMHASH 1
11714 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11715 -o $ol_with_threads = nt ; then
11718 echo $ac_n "checking for _beginthread""... $ac_c" 1>&6
11719 echo "configure:11720: checking for _beginthread" >&5
11720 if eval "test \"\${ac_cv_func__beginthread+set}\" = set"; then
11721 echo $ac_n "(cached) $ac_c" 1>&6
11723 cat > conftest.$ac_ext <<EOF
11724 #line 11725 "configure"
11725 #include "confdefs.h"
11726 /* System header to define __stub macros and hopefully few prototypes,
11727 which can conflict with char _beginthread(); below. */
11728 #include <assert.h>
11729 /* Override any gcc2 internal prototype to avoid an error. */
11730 /* We use char because int might match the return type of a gcc2
11731 builtin and then its argument prototype would still apply. */
11732 char _beginthread();
11737 /* The GNU C library defines this for functions which it implements
11738 to always fail with ENOSYS. Some functions are actually named
11739 something starting with __ and the normal name is an alias. */
11740 #if defined (__stub__beginthread) || defined (__stub____beginthread)
11748 if { (eval echo configure:11749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11750 eval "ac_cv_func__beginthread=yes"
11752 echo "configure: failed program was:" >&5
11753 cat conftest.$ac_ext >&5
11755 eval "ac_cv_func__beginthread=no"
11760 if eval "test \"`echo '$ac_cv_func_'_beginthread`\" = yes"; then
11761 echo "$ac_t""yes" 1>&6
11764 echo "$ac_t""no" 1>&6
11768 if test $ac_cv_func__beginthread = yes ; then
11769 cat >> confdefs.h <<\EOF
11770 #define HAVE_NT_THREADS 1
11773 ol_cv_nt_threads=yes
11777 if test "$ol_cv_nt_threads" = yes ; then
11779 ol_with_threads=found
11780 ol_with_yielding_select=yes
11782 cat >> confdefs.h <<\EOF
11783 #define HAVE_NT_SERVICE_MANAGER 1
11786 cat >> confdefs.h <<\EOF
11787 #define HAVE_NT_EVENT_LOG 1
11792 if test $ol_with_threads = nt ; then
11793 { echo "configure: error: could not locate NT Threads" 1>&2; exit 1; }
11797 if test $ol_with_threads = auto -o $ol_with_threads = yes \
11798 -o $ol_with_threads = posix ; then
11800 for ac_hdr in pthread.h
11802 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11803 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11804 echo "configure:11805: checking for $ac_hdr" >&5
11805 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
11806 echo $ac_n "(cached) $ac_c" 1>&6
11808 cat > conftest.$ac_ext <<EOF
11809 #line 11810 "configure"
11810 #include "confdefs.h"
11813 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11814 { (eval echo configure:11815: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11815 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11816 if test -z "$ac_err"; then
11818 eval "ac_cv_header_$ac_safe=yes"
11821 echo "configure: failed program was:" >&5
11822 cat conftest.$ac_ext >&5
11824 eval "ac_cv_header_$ac_safe=no"
11828 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11829 echo "$ac_t""yes" 1>&6
11830 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11831 cat >> confdefs.h <<EOF
11832 #define $ac_tr_hdr 1
11836 echo "$ac_t""no" 1>&6
11841 if test $ac_cv_header_pthread_h = yes ; then
11842 echo $ac_n "checking POSIX thread version""... $ac_c" 1>&6
11843 echo "configure:11844: checking POSIX thread version" >&5
11844 if eval "test \"\${ol_cv_pthread_version+set}\" = set"; then
11845 echo $ac_n "(cached) $ac_c" 1>&6
11848 cat > conftest.$ac_ext <<EOF
11849 #line 11850 "configure"
11850 #include "confdefs.h"
11852 # include <pthread.h>
11856 int i = PTHREAD_CREATE_JOINABLE;
11860 if { (eval echo configure:11861: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11863 cat > conftest.$ac_ext <<EOF
11864 #line 11865 "configure"
11865 #include "confdefs.h"
11866 #include <pthread.h>
11868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11869 egrep "pthread_detach" >/dev/null 2>&1; then
11871 ol_cv_pthread_version=10
11874 ol_cv_pthread_version=8
11879 echo "configure: failed program was:" >&5
11880 cat conftest.$ac_ext >&5
11883 cat > conftest.$ac_ext <<EOF
11884 #line 11885 "configure"
11885 #include "confdefs.h"
11887 # include <pthread.h>
11888 # ifdef PTHREAD_CREATE_UNDETACHED
11893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11894 egrep "draft7" >/dev/null 2>&1; then
11896 ol_cv_pthread_version=7
11900 cat > conftest.$ac_ext <<EOF
11901 #line 11902 "configure"
11902 #include "confdefs.h"
11903 #include <pthread.h>
11905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11906 egrep "pthread_attr_init" >/dev/null 2>&1; then
11908 ol_cv_pthread_version=6
11912 cat > conftest.$ac_ext <<EOF
11913 #line 11914 "configure"
11914 #include "confdefs.h"
11916 # include <pthread.h>
11917 #ifdef PTHREAD_MUTEX_INITIALIZER
11922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11923 egrep "draft5" >/dev/null 2>&1; then
11925 ol_cv_pthread_version=5
11928 ol_cv_pthread_version=4
11943 echo "$ac_t""$ol_cv_pthread_version" 1>&6
11946 if test $ol_cv_pthread_version != 0 ; then
11947 cat >> confdefs.h <<EOF
11948 #define HAVE_PTHREADS $ol_cv_pthread_version
11952 { echo "configure: error: unknown pthread version" 1>&2; exit 1; }
11955 # consider threads found
11956 ol_with_threads=found
11959 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
11960 echo "configure:11961: checking for LinuxThreads pthread.h" >&5
11961 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
11962 echo $ac_n "(cached) $ac_c" 1>&6
11964 cat > conftest.$ac_ext <<EOF
11965 #line 11966 "configure"
11966 #include "confdefs.h"
11967 #include <pthread.h>
11969 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11970 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
11972 ol_cv_header_linux_threads=yes
11975 ol_cv_header_linux_threads=no
11982 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
11983 if test $ol_cv_header_linux_threads = yes; then
11984 cat >> confdefs.h <<\EOF
11985 #define HAVE_LINUX_THREADS 1
11991 echo $ac_n "checking for GNU Pth pthread.h""... $ac_c" 1>&6
11992 echo "configure:11993: checking for GNU Pth pthread.h" >&5
11993 if eval "test \"\${ol_cv_header_gnu_pth_pthread_h+set}\" = set"; then
11994 echo $ac_n "(cached) $ac_c" 1>&6
11996 cat > conftest.$ac_ext <<EOF
11997 #line 11998 "configure"
11998 #include "confdefs.h"
11999 #include <pthread.h>
12000 #ifdef _POSIX_THREAD_IS_GNU_PTH
12005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12006 egrep "__gnu_pth__" >/dev/null 2>&1; then
12008 ol_cv_header_gnu_pth_pthread_h=yes
12011 ol_cv_header_gnu_pth_pthread_h=no
12018 echo "$ac_t""$ol_cv_header_gnu_pth_pthread_h" 1>&6
12021 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
12022 for ac_hdr in sched.h
12024 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12025 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12026 echo "configure:12027: checking for $ac_hdr" >&5
12027 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
12028 echo $ac_n "(cached) $ac_c" 1>&6
12030 cat > conftest.$ac_ext <<EOF
12031 #line 12032 "configure"
12032 #include "confdefs.h"
12035 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12036 { (eval echo configure:12037: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12037 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12038 if test -z "$ac_err"; then
12040 eval "ac_cv_header_$ac_safe=yes"
12043 echo "configure: failed program was:" >&5
12044 cat conftest.$ac_ext >&5
12046 eval "ac_cv_header_$ac_safe=no"
12050 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12051 echo "$ac_t""yes" 1>&6
12052 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12053 cat >> confdefs.h <<EOF
12054 #define $ac_tr_hdr 1
12058 echo "$ac_t""no" 1>&6
12065 echo $ac_n "checking for pthread_create in default libraries""... $ac_c" 1>&6
12066 echo "configure:12067: checking for pthread_create in default libraries" >&5
12067 if eval "test \"\${ol_cv_pthread_create+set}\" = set"; then
12068 echo $ac_n "(cached) $ac_c" 1>&6
12071 if test "$cross_compiling" = yes; then
12072 cat > conftest.$ac_ext <<EOF
12073 #line 12074 "configure"
12074 #include "confdefs.h"
12075 /* pthread test headers */
12076 #include <pthread.h>
12077 #if HAVE_PTHREADS < 7
12081 #define NULL (void*)0
12084 static void *task(p)
12087 return (void *) (p == NULL);
12092 /* pthread test function */
12093 #ifndef PTHREAD_CREATE_DETACHED
12094 #define PTHREAD_CREATE_DETACHED 1
12098 int detach = PTHREAD_CREATE_DETACHED;
12100 #if HAVE_PTHREADS > 4
12101 /* Final pthreads */
12102 pthread_attr_t attr;
12104 status = pthread_attr_init(&attr);
12105 if( status ) return status;
12107 #if HAVE_PTHREADS < 7
12108 status = pthread_attr_setdetachstate(&attr, &detach);
12109 if( status < 0 ) status = errno;
12111 status = pthread_attr_setdetachstate(&attr, detach);
12113 if( status ) return status;
12114 status = pthread_create( &t, &attr, task, NULL );
12115 #if HAVE_PTHREADS < 7
12116 if( status < 0 ) status = errno;
12118 if( status ) return status;
12120 /* Draft 4 pthreads */
12121 status = pthread_create( &t, pthread_attr_default, task, NULL );
12122 if( status ) return errno;
12124 /* give thread a chance to complete */
12125 /* it should remain joinable and hence detachable */
12128 status = pthread_detach( &t );
12129 if( status ) return errno;
12132 #ifdef HAVE_LINUX_THREADS
12133 pthread_kill_other_threads_np();
12140 if { (eval echo configure:12141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12142 ol_cv_pthread_create=yes
12144 echo "configure: failed program was:" >&5
12145 cat conftest.$ac_ext >&5
12147 ol_cv_pthread_create=no
12151 cat > conftest.$ac_ext <<EOF
12152 #line 12153 "configure"
12153 #include "confdefs.h"
12154 /* pthread test headers */
12155 #include <pthread.h>
12156 #if HAVE_PTHREADS < 7
12160 #define NULL (void*)0
12163 static void *task(p)
12166 return (void *) (p == NULL);
12170 int main(argc, argv)
12175 /* pthread test function */
12176 #ifndef PTHREAD_CREATE_DETACHED
12177 #define PTHREAD_CREATE_DETACHED 1
12181 int detach = PTHREAD_CREATE_DETACHED;
12183 #if HAVE_PTHREADS > 4
12184 /* Final pthreads */
12185 pthread_attr_t attr;
12187 status = pthread_attr_init(&attr);
12188 if( status ) return status;
12190 #if HAVE_PTHREADS < 7
12191 status = pthread_attr_setdetachstate(&attr, &detach);
12192 if( status < 0 ) status = errno;
12194 status = pthread_attr_setdetachstate(&attr, detach);
12196 if( status ) return status;
12197 status = pthread_create( &t, &attr, task, NULL );
12198 #if HAVE_PTHREADS < 7
12199 if( status < 0 ) status = errno;
12201 if( status ) return status;
12203 /* Draft 4 pthreads */
12204 status = pthread_create( &t, pthread_attr_default, task, NULL );
12205 if( status ) return errno;
12207 /* give thread a chance to complete */
12208 /* it should remain joinable and hence detachable */
12211 status = pthread_detach( &t );
12212 if( status ) return errno;
12215 #ifdef HAVE_LINUX_THREADS
12216 pthread_kill_other_threads_np();
12224 if { (eval echo configure:12225: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12226 ol_cv_pthread_create=yes
12228 echo "configure: failed program was:" >&5
12229 cat conftest.$ac_ext >&5
12231 ol_cv_pthread_create=no
12238 echo "$ac_t""$ol_cv_pthread_create" 1>&6
12240 if test $ol_cv_pthread_create != no ; then
12241 ol_link_threads=posix
12242 ol_link_pthreads=""
12245 # Pthread try link: -kthread (ol_cv_pthread_kthread)
12246 if test "$ol_link_threads" = no ; then
12248 echo $ac_n "checking for pthread link with -kthread""... $ac_c" 1>&6
12249 echo "configure:12250: checking for pthread link with -kthread" >&5
12250 if eval "test \"\${ol_cv_pthread_kthread+set}\" = set"; then
12251 echo $ac_n "(cached) $ac_c" 1>&6
12256 LIBS="-kthread $LIBS"
12258 if test "$cross_compiling" = yes; then
12259 cat > conftest.$ac_ext <<EOF
12260 #line 12261 "configure"
12261 #include "confdefs.h"
12262 /* pthread test headers */
12263 #include <pthread.h>
12264 #if HAVE_PTHREADS < 7
12268 #define NULL (void*)0
12271 static void *task(p)
12274 return (void *) (p == NULL);
12279 /* pthread test function */
12280 #ifndef PTHREAD_CREATE_DETACHED
12281 #define PTHREAD_CREATE_DETACHED 1
12285 int detach = PTHREAD_CREATE_DETACHED;
12287 #if HAVE_PTHREADS > 4
12288 /* Final pthreads */
12289 pthread_attr_t attr;
12291 status = pthread_attr_init(&attr);
12292 if( status ) return status;
12294 #if HAVE_PTHREADS < 7
12295 status = pthread_attr_setdetachstate(&attr, &detach);
12296 if( status < 0 ) status = errno;
12298 status = pthread_attr_setdetachstate(&attr, detach);
12300 if( status ) return status;
12301 status = pthread_create( &t, &attr, task, NULL );
12302 #if HAVE_PTHREADS < 7
12303 if( status < 0 ) status = errno;
12305 if( status ) return status;
12307 /* Draft 4 pthreads */
12308 status = pthread_create( &t, pthread_attr_default, task, NULL );
12309 if( status ) return errno;
12311 /* give thread a chance to complete */
12312 /* it should remain joinable and hence detachable */
12315 status = pthread_detach( &t );
12316 if( status ) return errno;
12319 #ifdef HAVE_LINUX_THREADS
12320 pthread_kill_other_threads_np();
12327 if { (eval echo configure:12328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12329 ol_cv_pthread_kthread=yes
12331 echo "configure: failed program was:" >&5
12332 cat conftest.$ac_ext >&5
12334 ol_cv_pthread_kthread=no
12338 cat > conftest.$ac_ext <<EOF
12339 #line 12340 "configure"
12340 #include "confdefs.h"
12341 /* pthread test headers */
12342 #include <pthread.h>
12343 #if HAVE_PTHREADS < 7
12347 #define NULL (void*)0
12350 static void *task(p)
12353 return (void *) (p == NULL);
12357 int main(argc, argv)
12362 /* pthread test function */
12363 #ifndef PTHREAD_CREATE_DETACHED
12364 #define PTHREAD_CREATE_DETACHED 1
12368 int detach = PTHREAD_CREATE_DETACHED;
12370 #if HAVE_PTHREADS > 4
12371 /* Final pthreads */
12372 pthread_attr_t attr;
12374 status = pthread_attr_init(&attr);
12375 if( status ) return status;
12377 #if HAVE_PTHREADS < 7
12378 status = pthread_attr_setdetachstate(&attr, &detach);
12379 if( status < 0 ) status = errno;
12381 status = pthread_attr_setdetachstate(&attr, detach);
12383 if( status ) return status;
12384 status = pthread_create( &t, &attr, task, NULL );
12385 #if HAVE_PTHREADS < 7
12386 if( status < 0 ) status = errno;
12388 if( status ) return status;
12390 /* Draft 4 pthreads */
12391 status = pthread_create( &t, pthread_attr_default, task, NULL );
12392 if( status ) return errno;
12394 /* give thread a chance to complete */
12395 /* it should remain joinable and hence detachable */
12398 status = pthread_detach( &t );
12399 if( status ) return errno;
12402 #ifdef HAVE_LINUX_THREADS
12403 pthread_kill_other_threads_np();
12411 if { (eval echo configure:12412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12413 ol_cv_pthread_kthread=yes
12415 echo "configure: failed program was:" >&5
12416 cat conftest.$ac_ext >&5
12418 ol_cv_pthread_kthread=no
12429 echo "$ac_t""$ol_cv_pthread_kthread" 1>&6
12431 if test $ol_cv_pthread_kthread = yes ; then
12432 ol_link_pthreads="-kthread"
12433 ol_link_threads=posix
12437 # Pthread try link: -pthread (ol_cv_pthread_pthread)
12438 if test "$ol_link_threads" = no ; then
12440 echo $ac_n "checking for pthread link with -pthread""... $ac_c" 1>&6
12441 echo "configure:12442: checking for pthread link with -pthread" >&5
12442 if eval "test \"\${ol_cv_pthread_pthread+set}\" = set"; then
12443 echo $ac_n "(cached) $ac_c" 1>&6
12448 LIBS="-pthread $LIBS"
12450 if test "$cross_compiling" = yes; then
12451 cat > conftest.$ac_ext <<EOF
12452 #line 12453 "configure"
12453 #include "confdefs.h"
12454 /* pthread test headers */
12455 #include <pthread.h>
12456 #if HAVE_PTHREADS < 7
12460 #define NULL (void*)0
12463 static void *task(p)
12466 return (void *) (p == NULL);
12471 /* pthread test function */
12472 #ifndef PTHREAD_CREATE_DETACHED
12473 #define PTHREAD_CREATE_DETACHED 1
12477 int detach = PTHREAD_CREATE_DETACHED;
12479 #if HAVE_PTHREADS > 4
12480 /* Final pthreads */
12481 pthread_attr_t attr;
12483 status = pthread_attr_init(&attr);
12484 if( status ) return status;
12486 #if HAVE_PTHREADS < 7
12487 status = pthread_attr_setdetachstate(&attr, &detach);
12488 if( status < 0 ) status = errno;
12490 status = pthread_attr_setdetachstate(&attr, detach);
12492 if( status ) return status;
12493 status = pthread_create( &t, &attr, task, NULL );
12494 #if HAVE_PTHREADS < 7
12495 if( status < 0 ) status = errno;
12497 if( status ) return status;
12499 /* Draft 4 pthreads */
12500 status = pthread_create( &t, pthread_attr_default, task, NULL );
12501 if( status ) return errno;
12503 /* give thread a chance to complete */
12504 /* it should remain joinable and hence detachable */
12507 status = pthread_detach( &t );
12508 if( status ) return errno;
12511 #ifdef HAVE_LINUX_THREADS
12512 pthread_kill_other_threads_np();
12519 if { (eval echo configure:12520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12521 ol_cv_pthread_pthread=yes
12523 echo "configure: failed program was:" >&5
12524 cat conftest.$ac_ext >&5
12526 ol_cv_pthread_pthread=no
12530 cat > conftest.$ac_ext <<EOF
12531 #line 12532 "configure"
12532 #include "confdefs.h"
12533 /* pthread test headers */
12534 #include <pthread.h>
12535 #if HAVE_PTHREADS < 7
12539 #define NULL (void*)0
12542 static void *task(p)
12545 return (void *) (p == NULL);
12549 int main(argc, argv)
12554 /* pthread test function */
12555 #ifndef PTHREAD_CREATE_DETACHED
12556 #define PTHREAD_CREATE_DETACHED 1
12560 int detach = PTHREAD_CREATE_DETACHED;
12562 #if HAVE_PTHREADS > 4
12563 /* Final pthreads */
12564 pthread_attr_t attr;
12566 status = pthread_attr_init(&attr);
12567 if( status ) return status;
12569 #if HAVE_PTHREADS < 7
12570 status = pthread_attr_setdetachstate(&attr, &detach);
12571 if( status < 0 ) status = errno;
12573 status = pthread_attr_setdetachstate(&attr, detach);
12575 if( status ) return status;
12576 status = pthread_create( &t, &attr, task, NULL );
12577 #if HAVE_PTHREADS < 7
12578 if( status < 0 ) status = errno;
12580 if( status ) return status;
12582 /* Draft 4 pthreads */
12583 status = pthread_create( &t, pthread_attr_default, task, NULL );
12584 if( status ) return errno;
12586 /* give thread a chance to complete */
12587 /* it should remain joinable and hence detachable */
12590 status = pthread_detach( &t );
12591 if( status ) return errno;
12594 #ifdef HAVE_LINUX_THREADS
12595 pthread_kill_other_threads_np();
12603 if { (eval echo configure:12604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12605 ol_cv_pthread_pthread=yes
12607 echo "configure: failed program was:" >&5
12608 cat conftest.$ac_ext >&5
12610 ol_cv_pthread_pthread=no
12621 echo "$ac_t""$ol_cv_pthread_pthread" 1>&6
12623 if test $ol_cv_pthread_pthread = yes ; then
12624 ol_link_pthreads="-pthread"
12625 ol_link_threads=posix
12629 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
12630 if test "$ol_link_threads" = no ; then
12632 echo $ac_n "checking for pthread link with -pthreads""... $ac_c" 1>&6
12633 echo "configure:12634: checking for pthread link with -pthreads" >&5
12634 if eval "test \"\${ol_cv_pthread_pthreads+set}\" = set"; then
12635 echo $ac_n "(cached) $ac_c" 1>&6
12640 LIBS="-pthreads $LIBS"
12642 if test "$cross_compiling" = yes; then
12643 cat > conftest.$ac_ext <<EOF
12644 #line 12645 "configure"
12645 #include "confdefs.h"
12646 /* pthread test headers */
12647 #include <pthread.h>
12648 #if HAVE_PTHREADS < 7
12652 #define NULL (void*)0
12655 static void *task(p)
12658 return (void *) (p == NULL);
12663 /* pthread test function */
12664 #ifndef PTHREAD_CREATE_DETACHED
12665 #define PTHREAD_CREATE_DETACHED 1
12669 int detach = PTHREAD_CREATE_DETACHED;
12671 #if HAVE_PTHREADS > 4
12672 /* Final pthreads */
12673 pthread_attr_t attr;
12675 status = pthread_attr_init(&attr);
12676 if( status ) return status;
12678 #if HAVE_PTHREADS < 7
12679 status = pthread_attr_setdetachstate(&attr, &detach);
12680 if( status < 0 ) status = errno;
12682 status = pthread_attr_setdetachstate(&attr, detach);
12684 if( status ) return status;
12685 status = pthread_create( &t, &attr, task, NULL );
12686 #if HAVE_PTHREADS < 7
12687 if( status < 0 ) status = errno;
12689 if( status ) return status;
12691 /* Draft 4 pthreads */
12692 status = pthread_create( &t, pthread_attr_default, task, NULL );
12693 if( status ) return errno;
12695 /* give thread a chance to complete */
12696 /* it should remain joinable and hence detachable */
12699 status = pthread_detach( &t );
12700 if( status ) return errno;
12703 #ifdef HAVE_LINUX_THREADS
12704 pthread_kill_other_threads_np();
12711 if { (eval echo configure:12712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12713 ol_cv_pthread_pthreads=yes
12715 echo "configure: failed program was:" >&5
12716 cat conftest.$ac_ext >&5
12718 ol_cv_pthread_pthreads=no
12722 cat > conftest.$ac_ext <<EOF
12723 #line 12724 "configure"
12724 #include "confdefs.h"
12725 /* pthread test headers */
12726 #include <pthread.h>
12727 #if HAVE_PTHREADS < 7
12731 #define NULL (void*)0
12734 static void *task(p)
12737 return (void *) (p == NULL);
12741 int main(argc, argv)
12746 /* pthread test function */
12747 #ifndef PTHREAD_CREATE_DETACHED
12748 #define PTHREAD_CREATE_DETACHED 1
12752 int detach = PTHREAD_CREATE_DETACHED;
12754 #if HAVE_PTHREADS > 4
12755 /* Final pthreads */
12756 pthread_attr_t attr;
12758 status = pthread_attr_init(&attr);
12759 if( status ) return status;
12761 #if HAVE_PTHREADS < 7
12762 status = pthread_attr_setdetachstate(&attr, &detach);
12763 if( status < 0 ) status = errno;
12765 status = pthread_attr_setdetachstate(&attr, detach);
12767 if( status ) return status;
12768 status = pthread_create( &t, &attr, task, NULL );
12769 #if HAVE_PTHREADS < 7
12770 if( status < 0 ) status = errno;
12772 if( status ) return status;
12774 /* Draft 4 pthreads */
12775 status = pthread_create( &t, pthread_attr_default, task, NULL );
12776 if( status ) return errno;
12778 /* give thread a chance to complete */
12779 /* it should remain joinable and hence detachable */
12782 status = pthread_detach( &t );
12783 if( status ) return errno;
12786 #ifdef HAVE_LINUX_THREADS
12787 pthread_kill_other_threads_np();
12795 if { (eval echo configure:12796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12797 ol_cv_pthread_pthreads=yes
12799 echo "configure: failed program was:" >&5
12800 cat conftest.$ac_ext >&5
12802 ol_cv_pthread_pthreads=no
12813 echo "$ac_t""$ol_cv_pthread_pthreads" 1>&6
12815 if test $ol_cv_pthread_pthreads = yes ; then
12816 ol_link_pthreads="-pthreads"
12817 ol_link_threads=posix
12821 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
12822 if test "$ol_link_threads" = no ; then
12824 echo $ac_n "checking for pthread link with -mthreads""... $ac_c" 1>&6
12825 echo "configure:12826: checking for pthread link with -mthreads" >&5
12826 if eval "test \"\${ol_cv_pthread_mthreads+set}\" = set"; then
12827 echo $ac_n "(cached) $ac_c" 1>&6
12832 LIBS="-mthreads $LIBS"
12834 if test "$cross_compiling" = yes; then
12835 cat > conftest.$ac_ext <<EOF
12836 #line 12837 "configure"
12837 #include "confdefs.h"
12838 /* pthread test headers */
12839 #include <pthread.h>
12840 #if HAVE_PTHREADS < 7
12844 #define NULL (void*)0
12847 static void *task(p)
12850 return (void *) (p == NULL);
12855 /* pthread test function */
12856 #ifndef PTHREAD_CREATE_DETACHED
12857 #define PTHREAD_CREATE_DETACHED 1
12861 int detach = PTHREAD_CREATE_DETACHED;
12863 #if HAVE_PTHREADS > 4
12864 /* Final pthreads */
12865 pthread_attr_t attr;
12867 status = pthread_attr_init(&attr);
12868 if( status ) return status;
12870 #if HAVE_PTHREADS < 7
12871 status = pthread_attr_setdetachstate(&attr, &detach);
12872 if( status < 0 ) status = errno;
12874 status = pthread_attr_setdetachstate(&attr, detach);
12876 if( status ) return status;
12877 status = pthread_create( &t, &attr, task, NULL );
12878 #if HAVE_PTHREADS < 7
12879 if( status < 0 ) status = errno;
12881 if( status ) return status;
12883 /* Draft 4 pthreads */
12884 status = pthread_create( &t, pthread_attr_default, task, NULL );
12885 if( status ) return errno;
12887 /* give thread a chance to complete */
12888 /* it should remain joinable and hence detachable */
12891 status = pthread_detach( &t );
12892 if( status ) return errno;
12895 #ifdef HAVE_LINUX_THREADS
12896 pthread_kill_other_threads_np();
12903 if { (eval echo configure:12904: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12905 ol_cv_pthread_mthreads=yes
12907 echo "configure: failed program was:" >&5
12908 cat conftest.$ac_ext >&5
12910 ol_cv_pthread_mthreads=no
12914 cat > conftest.$ac_ext <<EOF
12915 #line 12916 "configure"
12916 #include "confdefs.h"
12917 /* pthread test headers */
12918 #include <pthread.h>
12919 #if HAVE_PTHREADS < 7
12923 #define NULL (void*)0
12926 static void *task(p)
12929 return (void *) (p == NULL);
12933 int main(argc, argv)
12938 /* pthread test function */
12939 #ifndef PTHREAD_CREATE_DETACHED
12940 #define PTHREAD_CREATE_DETACHED 1
12944 int detach = PTHREAD_CREATE_DETACHED;
12946 #if HAVE_PTHREADS > 4
12947 /* Final pthreads */
12948 pthread_attr_t attr;
12950 status = pthread_attr_init(&attr);
12951 if( status ) return status;
12953 #if HAVE_PTHREADS < 7
12954 status = pthread_attr_setdetachstate(&attr, &detach);
12955 if( status < 0 ) status = errno;
12957 status = pthread_attr_setdetachstate(&attr, detach);
12959 if( status ) return status;
12960 status = pthread_create( &t, &attr, task, NULL );
12961 #if HAVE_PTHREADS < 7
12962 if( status < 0 ) status = errno;
12964 if( status ) return status;
12966 /* Draft 4 pthreads */
12967 status = pthread_create( &t, pthread_attr_default, task, NULL );
12968 if( status ) return errno;
12970 /* give thread a chance to complete */
12971 /* it should remain joinable and hence detachable */
12974 status = pthread_detach( &t );
12975 if( status ) return errno;
12978 #ifdef HAVE_LINUX_THREADS
12979 pthread_kill_other_threads_np();
12987 if { (eval echo configure:12988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
12989 ol_cv_pthread_mthreads=yes
12991 echo "configure: failed program was:" >&5
12992 cat conftest.$ac_ext >&5
12994 ol_cv_pthread_mthreads=no
13005 echo "$ac_t""$ol_cv_pthread_mthreads" 1>&6
13007 if test $ol_cv_pthread_mthreads = yes ; then
13008 ol_link_pthreads="-mthreads"
13009 ol_link_threads=posix
13013 # Pthread try link: -thread (ol_cv_pthread_thread)
13014 if test "$ol_link_threads" = no ; then
13016 echo $ac_n "checking for pthread link with -thread""... $ac_c" 1>&6
13017 echo "configure:13018: checking for pthread link with -thread" >&5
13018 if eval "test \"\${ol_cv_pthread_thread+set}\" = set"; then
13019 echo $ac_n "(cached) $ac_c" 1>&6
13024 LIBS="-thread $LIBS"
13026 if test "$cross_compiling" = yes; then
13027 cat > conftest.$ac_ext <<EOF
13028 #line 13029 "configure"
13029 #include "confdefs.h"
13030 /* pthread test headers */
13031 #include <pthread.h>
13032 #if HAVE_PTHREADS < 7
13036 #define NULL (void*)0
13039 static void *task(p)
13042 return (void *) (p == NULL);
13047 /* pthread test function */
13048 #ifndef PTHREAD_CREATE_DETACHED
13049 #define PTHREAD_CREATE_DETACHED 1
13053 int detach = PTHREAD_CREATE_DETACHED;
13055 #if HAVE_PTHREADS > 4
13056 /* Final pthreads */
13057 pthread_attr_t attr;
13059 status = pthread_attr_init(&attr);
13060 if( status ) return status;
13062 #if HAVE_PTHREADS < 7
13063 status = pthread_attr_setdetachstate(&attr, &detach);
13064 if( status < 0 ) status = errno;
13066 status = pthread_attr_setdetachstate(&attr, detach);
13068 if( status ) return status;
13069 status = pthread_create( &t, &attr, task, NULL );
13070 #if HAVE_PTHREADS < 7
13071 if( status < 0 ) status = errno;
13073 if( status ) return status;
13075 /* Draft 4 pthreads */
13076 status = pthread_create( &t, pthread_attr_default, task, NULL );
13077 if( status ) return errno;
13079 /* give thread a chance to complete */
13080 /* it should remain joinable and hence detachable */
13083 status = pthread_detach( &t );
13084 if( status ) return errno;
13087 #ifdef HAVE_LINUX_THREADS
13088 pthread_kill_other_threads_np();
13095 if { (eval echo configure:13096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13097 ol_cv_pthread_thread=yes
13099 echo "configure: failed program was:" >&5
13100 cat conftest.$ac_ext >&5
13102 ol_cv_pthread_thread=no
13106 cat > conftest.$ac_ext <<EOF
13107 #line 13108 "configure"
13108 #include "confdefs.h"
13109 /* pthread test headers */
13110 #include <pthread.h>
13111 #if HAVE_PTHREADS < 7
13115 #define NULL (void*)0
13118 static void *task(p)
13121 return (void *) (p == NULL);
13125 int main(argc, argv)
13130 /* pthread test function */
13131 #ifndef PTHREAD_CREATE_DETACHED
13132 #define PTHREAD_CREATE_DETACHED 1
13136 int detach = PTHREAD_CREATE_DETACHED;
13138 #if HAVE_PTHREADS > 4
13139 /* Final pthreads */
13140 pthread_attr_t attr;
13142 status = pthread_attr_init(&attr);
13143 if( status ) return status;
13145 #if HAVE_PTHREADS < 7
13146 status = pthread_attr_setdetachstate(&attr, &detach);
13147 if( status < 0 ) status = errno;
13149 status = pthread_attr_setdetachstate(&attr, detach);
13151 if( status ) return status;
13152 status = pthread_create( &t, &attr, task, NULL );
13153 #if HAVE_PTHREADS < 7
13154 if( status < 0 ) status = errno;
13156 if( status ) return status;
13158 /* Draft 4 pthreads */
13159 status = pthread_create( &t, pthread_attr_default, task, NULL );
13160 if( status ) return errno;
13162 /* give thread a chance to complete */
13163 /* it should remain joinable and hence detachable */
13166 status = pthread_detach( &t );
13167 if( status ) return errno;
13170 #ifdef HAVE_LINUX_THREADS
13171 pthread_kill_other_threads_np();
13179 if { (eval echo configure:13180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13181 ol_cv_pthread_thread=yes
13183 echo "configure: failed program was:" >&5
13184 cat conftest.$ac_ext >&5
13186 ol_cv_pthread_thread=no
13197 echo "$ac_t""$ol_cv_pthread_thread" 1>&6
13199 if test $ol_cv_pthread_thread = yes ; then
13200 ol_link_pthreads="-thread"
13201 ol_link_threads=posix
13206 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
13207 if test "$ol_link_threads" = no ; then
13208 # try -lpthread -lmach -lexc -lc_r
13209 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc -lc_r""... $ac_c" 1>&6
13210 echo "configure:13211: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
13211 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}\" = set"; then
13212 echo $ac_n "(cached) $ac_c" 1>&6
13217 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
13219 if test "$cross_compiling" = yes; then
13220 cat > conftest.$ac_ext <<EOF
13221 #line 13222 "configure"
13222 #include "confdefs.h"
13223 /* pthread test headers */
13224 #include <pthread.h>
13225 #if HAVE_PTHREADS < 7
13229 #define NULL (void*)0
13232 static void *task(p)
13235 return (void *) (p == NULL);
13240 /* pthread test function */
13241 #ifndef PTHREAD_CREATE_DETACHED
13242 #define PTHREAD_CREATE_DETACHED 1
13246 int detach = PTHREAD_CREATE_DETACHED;
13248 #if HAVE_PTHREADS > 4
13249 /* Final pthreads */
13250 pthread_attr_t attr;
13252 status = pthread_attr_init(&attr);
13253 if( status ) return status;
13255 #if HAVE_PTHREADS < 7
13256 status = pthread_attr_setdetachstate(&attr, &detach);
13257 if( status < 0 ) status = errno;
13259 status = pthread_attr_setdetachstate(&attr, detach);
13261 if( status ) return status;
13262 status = pthread_create( &t, &attr, task, NULL );
13263 #if HAVE_PTHREADS < 7
13264 if( status < 0 ) status = errno;
13266 if( status ) return status;
13268 /* Draft 4 pthreads */
13269 status = pthread_create( &t, pthread_attr_default, task, NULL );
13270 if( status ) return errno;
13272 /* give thread a chance to complete */
13273 /* it should remain joinable and hence detachable */
13276 status = pthread_detach( &t );
13277 if( status ) return errno;
13280 #ifdef HAVE_LINUX_THREADS
13281 pthread_kill_other_threads_np();
13288 if { (eval echo configure:13289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13290 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13292 echo "configure: failed program was:" >&5
13293 cat conftest.$ac_ext >&5
13295 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13299 cat > conftest.$ac_ext <<EOF
13300 #line 13301 "configure"
13301 #include "confdefs.h"
13302 /* pthread test headers */
13303 #include <pthread.h>
13304 #if HAVE_PTHREADS < 7
13308 #define NULL (void*)0
13311 static void *task(p)
13314 return (void *) (p == NULL);
13318 int main(argc, argv)
13323 /* pthread test function */
13324 #ifndef PTHREAD_CREATE_DETACHED
13325 #define PTHREAD_CREATE_DETACHED 1
13329 int detach = PTHREAD_CREATE_DETACHED;
13331 #if HAVE_PTHREADS > 4
13332 /* Final pthreads */
13333 pthread_attr_t attr;
13335 status = pthread_attr_init(&attr);
13336 if( status ) return status;
13338 #if HAVE_PTHREADS < 7
13339 status = pthread_attr_setdetachstate(&attr, &detach);
13340 if( status < 0 ) status = errno;
13342 status = pthread_attr_setdetachstate(&attr, detach);
13344 if( status ) return status;
13345 status = pthread_create( &t, &attr, task, NULL );
13346 #if HAVE_PTHREADS < 7
13347 if( status < 0 ) status = errno;
13349 if( status ) return status;
13351 /* Draft 4 pthreads */
13352 status = pthread_create( &t, pthread_attr_default, task, NULL );
13353 if( status ) return errno;
13355 /* give thread a chance to complete */
13356 /* it should remain joinable and hence detachable */
13359 status = pthread_detach( &t );
13360 if( status ) return errno;
13363 #ifdef HAVE_LINUX_THREADS
13364 pthread_kill_other_threads_np();
13372 if { (eval echo configure:13373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13374 ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
13376 echo "configure: failed program was:" >&5
13377 cat conftest.$ac_ext >&5
13379 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
13390 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc_lc_r" 1>&6
13392 if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
13393 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
13394 ol_link_threads=posix
13398 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
13399 if test "$ol_link_threads" = no ; then
13400 # try -lpthread -lmach -lexc
13401 echo $ac_n "checking for pthread link with -lpthread -lmach -lexc""... $ac_c" 1>&6
13402 echo "configure:13403: checking for pthread link with -lpthread -lmach -lexc" >&5
13403 if eval "test \"\${ol_cv_pthread_lpthread_lmach_lexc+set}\" = set"; then
13404 echo $ac_n "(cached) $ac_c" 1>&6
13409 LIBS="-lpthread -lmach -lexc $LIBS"
13411 if test "$cross_compiling" = yes; then
13412 cat > conftest.$ac_ext <<EOF
13413 #line 13414 "configure"
13414 #include "confdefs.h"
13415 /* pthread test headers */
13416 #include <pthread.h>
13417 #if HAVE_PTHREADS < 7
13421 #define NULL (void*)0
13424 static void *task(p)
13427 return (void *) (p == NULL);
13432 /* pthread test function */
13433 #ifndef PTHREAD_CREATE_DETACHED
13434 #define PTHREAD_CREATE_DETACHED 1
13438 int detach = PTHREAD_CREATE_DETACHED;
13440 #if HAVE_PTHREADS > 4
13441 /* Final pthreads */
13442 pthread_attr_t attr;
13444 status = pthread_attr_init(&attr);
13445 if( status ) return status;
13447 #if HAVE_PTHREADS < 7
13448 status = pthread_attr_setdetachstate(&attr, &detach);
13449 if( status < 0 ) status = errno;
13451 status = pthread_attr_setdetachstate(&attr, detach);
13453 if( status ) return status;
13454 status = pthread_create( &t, &attr, task, NULL );
13455 #if HAVE_PTHREADS < 7
13456 if( status < 0 ) status = errno;
13458 if( status ) return status;
13460 /* Draft 4 pthreads */
13461 status = pthread_create( &t, pthread_attr_default, task, NULL );
13462 if( status ) return errno;
13464 /* give thread a chance to complete */
13465 /* it should remain joinable and hence detachable */
13468 status = pthread_detach( &t );
13469 if( status ) return errno;
13472 #ifdef HAVE_LINUX_THREADS
13473 pthread_kill_other_threads_np();
13480 if { (eval echo configure:13481: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13482 ol_cv_pthread_lpthread_lmach_lexc=yes
13484 echo "configure: failed program was:" >&5
13485 cat conftest.$ac_ext >&5
13487 ol_cv_pthread_lpthread_lmach_lexc=no
13491 cat > conftest.$ac_ext <<EOF
13492 #line 13493 "configure"
13493 #include "confdefs.h"
13494 /* pthread test headers */
13495 #include <pthread.h>
13496 #if HAVE_PTHREADS < 7
13500 #define NULL (void*)0
13503 static void *task(p)
13506 return (void *) (p == NULL);
13510 int main(argc, argv)
13515 /* pthread test function */
13516 #ifndef PTHREAD_CREATE_DETACHED
13517 #define PTHREAD_CREATE_DETACHED 1
13521 int detach = PTHREAD_CREATE_DETACHED;
13523 #if HAVE_PTHREADS > 4
13524 /* Final pthreads */
13525 pthread_attr_t attr;
13527 status = pthread_attr_init(&attr);
13528 if( status ) return status;
13530 #if HAVE_PTHREADS < 7
13531 status = pthread_attr_setdetachstate(&attr, &detach);
13532 if( status < 0 ) status = errno;
13534 status = pthread_attr_setdetachstate(&attr, detach);
13536 if( status ) return status;
13537 status = pthread_create( &t, &attr, task, NULL );
13538 #if HAVE_PTHREADS < 7
13539 if( status < 0 ) status = errno;
13541 if( status ) return status;
13543 /* Draft 4 pthreads */
13544 status = pthread_create( &t, pthread_attr_default, task, NULL );
13545 if( status ) return errno;
13547 /* give thread a chance to complete */
13548 /* it should remain joinable and hence detachable */
13551 status = pthread_detach( &t );
13552 if( status ) return errno;
13555 #ifdef HAVE_LINUX_THREADS
13556 pthread_kill_other_threads_np();
13564 if { (eval echo configure:13565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13566 ol_cv_pthread_lpthread_lmach_lexc=yes
13568 echo "configure: failed program was:" >&5
13569 cat conftest.$ac_ext >&5
13571 ol_cv_pthread_lpthread_lmach_lexc=no
13582 echo "$ac_t""$ol_cv_pthread_lpthread_lmach_lexc" 1>&6
13584 if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
13585 ol_link_pthreads="-lpthread -lmach -lexc"
13586 ol_link_threads=posix
13591 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
13592 if test "$ol_link_threads" = no ; then
13593 # try -lpthread -Wl,-woff,85
13594 echo $ac_n "checking for pthread link with -lpthread -Wl,-woff,85""... $ac_c" 1>&6
13595 echo "configure:13596: checking for pthread link with -lpthread -Wl,-woff,85" >&5
13596 if eval "test \"\${ol_cv_pthread_lib_lpthread_woff+set}\" = set"; then
13597 echo $ac_n "(cached) $ac_c" 1>&6
13602 LIBS="-lpthread -Wl,-woff,85 $LIBS"
13604 if test "$cross_compiling" = yes; then
13605 cat > conftest.$ac_ext <<EOF
13606 #line 13607 "configure"
13607 #include "confdefs.h"
13608 /* pthread test headers */
13609 #include <pthread.h>
13610 #if HAVE_PTHREADS < 7
13614 #define NULL (void*)0
13617 static void *task(p)
13620 return (void *) (p == NULL);
13625 /* pthread test function */
13626 #ifndef PTHREAD_CREATE_DETACHED
13627 #define PTHREAD_CREATE_DETACHED 1
13631 int detach = PTHREAD_CREATE_DETACHED;
13633 #if HAVE_PTHREADS > 4
13634 /* Final pthreads */
13635 pthread_attr_t attr;
13637 status = pthread_attr_init(&attr);
13638 if( status ) return status;
13640 #if HAVE_PTHREADS < 7
13641 status = pthread_attr_setdetachstate(&attr, &detach);
13642 if( status < 0 ) status = errno;
13644 status = pthread_attr_setdetachstate(&attr, detach);
13646 if( status ) return status;
13647 status = pthread_create( &t, &attr, task, NULL );
13648 #if HAVE_PTHREADS < 7
13649 if( status < 0 ) status = errno;
13651 if( status ) return status;
13653 /* Draft 4 pthreads */
13654 status = pthread_create( &t, pthread_attr_default, task, NULL );
13655 if( status ) return errno;
13657 /* give thread a chance to complete */
13658 /* it should remain joinable and hence detachable */
13661 status = pthread_detach( &t );
13662 if( status ) return errno;
13665 #ifdef HAVE_LINUX_THREADS
13666 pthread_kill_other_threads_np();
13673 if { (eval echo configure:13674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13675 ol_cv_pthread_lib_lpthread_woff=yes
13677 echo "configure: failed program was:" >&5
13678 cat conftest.$ac_ext >&5
13680 ol_cv_pthread_lib_lpthread_woff=no
13684 cat > conftest.$ac_ext <<EOF
13685 #line 13686 "configure"
13686 #include "confdefs.h"
13687 /* pthread test headers */
13688 #include <pthread.h>
13689 #if HAVE_PTHREADS < 7
13693 #define NULL (void*)0
13696 static void *task(p)
13699 return (void *) (p == NULL);
13703 int main(argc, argv)
13708 /* pthread test function */
13709 #ifndef PTHREAD_CREATE_DETACHED
13710 #define PTHREAD_CREATE_DETACHED 1
13714 int detach = PTHREAD_CREATE_DETACHED;
13716 #if HAVE_PTHREADS > 4
13717 /* Final pthreads */
13718 pthread_attr_t attr;
13720 status = pthread_attr_init(&attr);
13721 if( status ) return status;
13723 #if HAVE_PTHREADS < 7
13724 status = pthread_attr_setdetachstate(&attr, &detach);
13725 if( status < 0 ) status = errno;
13727 status = pthread_attr_setdetachstate(&attr, detach);
13729 if( status ) return status;
13730 status = pthread_create( &t, &attr, task, NULL );
13731 #if HAVE_PTHREADS < 7
13732 if( status < 0 ) status = errno;
13734 if( status ) return status;
13736 /* Draft 4 pthreads */
13737 status = pthread_create( &t, pthread_attr_default, task, NULL );
13738 if( status ) return errno;
13740 /* give thread a chance to complete */
13741 /* it should remain joinable and hence detachable */
13744 status = pthread_detach( &t );
13745 if( status ) return errno;
13748 #ifdef HAVE_LINUX_THREADS
13749 pthread_kill_other_threads_np();
13757 if { (eval echo configure:13758: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13759 ol_cv_pthread_lib_lpthread_woff=yes
13761 echo "configure: failed program was:" >&5
13762 cat conftest.$ac_ext >&5
13764 ol_cv_pthread_lib_lpthread_woff=no
13775 echo "$ac_t""$ol_cv_pthread_lib_lpthread_woff" 1>&6
13777 if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
13778 ol_link_pthreads="-lpthread -Wl,-woff,85"
13779 ol_link_threads=posix
13784 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
13785 if test "$ol_link_threads" = no ; then
13787 echo $ac_n "checking for pthread link with -lpthread""... $ac_c" 1>&6
13788 echo "configure:13789: checking for pthread link with -lpthread" >&5
13789 if eval "test \"\${ol_cv_pthread_lpthread+set}\" = set"; then
13790 echo $ac_n "(cached) $ac_c" 1>&6
13795 LIBS="-lpthread $LIBS"
13797 if test "$cross_compiling" = yes; then
13798 cat > conftest.$ac_ext <<EOF
13799 #line 13800 "configure"
13800 #include "confdefs.h"
13801 /* pthread test headers */
13802 #include <pthread.h>
13803 #if HAVE_PTHREADS < 7
13807 #define NULL (void*)0
13810 static void *task(p)
13813 return (void *) (p == NULL);
13818 /* pthread test function */
13819 #ifndef PTHREAD_CREATE_DETACHED
13820 #define PTHREAD_CREATE_DETACHED 1
13824 int detach = PTHREAD_CREATE_DETACHED;
13826 #if HAVE_PTHREADS > 4
13827 /* Final pthreads */
13828 pthread_attr_t attr;
13830 status = pthread_attr_init(&attr);
13831 if( status ) return status;
13833 #if HAVE_PTHREADS < 7
13834 status = pthread_attr_setdetachstate(&attr, &detach);
13835 if( status < 0 ) status = errno;
13837 status = pthread_attr_setdetachstate(&attr, detach);
13839 if( status ) return status;
13840 status = pthread_create( &t, &attr, task, NULL );
13841 #if HAVE_PTHREADS < 7
13842 if( status < 0 ) status = errno;
13844 if( status ) return status;
13846 /* Draft 4 pthreads */
13847 status = pthread_create( &t, pthread_attr_default, task, NULL );
13848 if( status ) return errno;
13850 /* give thread a chance to complete */
13851 /* it should remain joinable and hence detachable */
13854 status = pthread_detach( &t );
13855 if( status ) return errno;
13858 #ifdef HAVE_LINUX_THREADS
13859 pthread_kill_other_threads_np();
13866 if { (eval echo configure:13867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13868 ol_cv_pthread_lpthread=yes
13870 echo "configure: failed program was:" >&5
13871 cat conftest.$ac_ext >&5
13873 ol_cv_pthread_lpthread=no
13877 cat > conftest.$ac_ext <<EOF
13878 #line 13879 "configure"
13879 #include "confdefs.h"
13880 /* pthread test headers */
13881 #include <pthread.h>
13882 #if HAVE_PTHREADS < 7
13886 #define NULL (void*)0
13889 static void *task(p)
13892 return (void *) (p == NULL);
13896 int main(argc, argv)
13901 /* pthread test function */
13902 #ifndef PTHREAD_CREATE_DETACHED
13903 #define PTHREAD_CREATE_DETACHED 1
13907 int detach = PTHREAD_CREATE_DETACHED;
13909 #if HAVE_PTHREADS > 4
13910 /* Final pthreads */
13911 pthread_attr_t attr;
13913 status = pthread_attr_init(&attr);
13914 if( status ) return status;
13916 #if HAVE_PTHREADS < 7
13917 status = pthread_attr_setdetachstate(&attr, &detach);
13918 if( status < 0 ) status = errno;
13920 status = pthread_attr_setdetachstate(&attr, detach);
13922 if( status ) return status;
13923 status = pthread_create( &t, &attr, task, NULL );
13924 #if HAVE_PTHREADS < 7
13925 if( status < 0 ) status = errno;
13927 if( status ) return status;
13929 /* Draft 4 pthreads */
13930 status = pthread_create( &t, pthread_attr_default, task, NULL );
13931 if( status ) return errno;
13933 /* give thread a chance to complete */
13934 /* it should remain joinable and hence detachable */
13937 status = pthread_detach( &t );
13938 if( status ) return errno;
13941 #ifdef HAVE_LINUX_THREADS
13942 pthread_kill_other_threads_np();
13950 if { (eval echo configure:13951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
13952 ol_cv_pthread_lpthread=yes
13954 echo "configure: failed program was:" >&5
13955 cat conftest.$ac_ext >&5
13957 ol_cv_pthread_lpthread=no
13968 echo "$ac_t""$ol_cv_pthread_lpthread" 1>&6
13970 if test $ol_cv_pthread_lpthread = yes ; then
13971 ol_link_pthreads="-lpthread"
13972 ol_link_threads=posix
13976 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
13977 if test "$ol_link_threads" = no ; then
13979 echo $ac_n "checking for pthread link with -lc_r""... $ac_c" 1>&6
13980 echo "configure:13981: checking for pthread link with -lc_r" >&5
13981 if eval "test \"\${ol_cv_pthread_lc_r+set}\" = set"; then
13982 echo $ac_n "(cached) $ac_c" 1>&6
13989 if test "$cross_compiling" = yes; then
13990 cat > conftest.$ac_ext <<EOF
13991 #line 13992 "configure"
13992 #include "confdefs.h"
13993 /* pthread test headers */
13994 #include <pthread.h>
13995 #if HAVE_PTHREADS < 7
13999 #define NULL (void*)0
14002 static void *task(p)
14005 return (void *) (p == NULL);
14010 /* pthread test function */
14011 #ifndef PTHREAD_CREATE_DETACHED
14012 #define PTHREAD_CREATE_DETACHED 1
14016 int detach = PTHREAD_CREATE_DETACHED;
14018 #if HAVE_PTHREADS > 4
14019 /* Final pthreads */
14020 pthread_attr_t attr;
14022 status = pthread_attr_init(&attr);
14023 if( status ) return status;
14025 #if HAVE_PTHREADS < 7
14026 status = pthread_attr_setdetachstate(&attr, &detach);
14027 if( status < 0 ) status = errno;
14029 status = pthread_attr_setdetachstate(&attr, detach);
14031 if( status ) return status;
14032 status = pthread_create( &t, &attr, task, NULL );
14033 #if HAVE_PTHREADS < 7
14034 if( status < 0 ) status = errno;
14036 if( status ) return status;
14038 /* Draft 4 pthreads */
14039 status = pthread_create( &t, pthread_attr_default, task, NULL );
14040 if( status ) return errno;
14042 /* give thread a chance to complete */
14043 /* it should remain joinable and hence detachable */
14046 status = pthread_detach( &t );
14047 if( status ) return errno;
14050 #ifdef HAVE_LINUX_THREADS
14051 pthread_kill_other_threads_np();
14058 if { (eval echo configure:14059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14060 ol_cv_pthread_lc_r=yes
14062 echo "configure: failed program was:" >&5
14063 cat conftest.$ac_ext >&5
14065 ol_cv_pthread_lc_r=no
14069 cat > conftest.$ac_ext <<EOF
14070 #line 14071 "configure"
14071 #include "confdefs.h"
14072 /* pthread test headers */
14073 #include <pthread.h>
14074 #if HAVE_PTHREADS < 7
14078 #define NULL (void*)0
14081 static void *task(p)
14084 return (void *) (p == NULL);
14088 int main(argc, argv)
14093 /* pthread test function */
14094 #ifndef PTHREAD_CREATE_DETACHED
14095 #define PTHREAD_CREATE_DETACHED 1
14099 int detach = PTHREAD_CREATE_DETACHED;
14101 #if HAVE_PTHREADS > 4
14102 /* Final pthreads */
14103 pthread_attr_t attr;
14105 status = pthread_attr_init(&attr);
14106 if( status ) return status;
14108 #if HAVE_PTHREADS < 7
14109 status = pthread_attr_setdetachstate(&attr, &detach);
14110 if( status < 0 ) status = errno;
14112 status = pthread_attr_setdetachstate(&attr, detach);
14114 if( status ) return status;
14115 status = pthread_create( &t, &attr, task, NULL );
14116 #if HAVE_PTHREADS < 7
14117 if( status < 0 ) status = errno;
14119 if( status ) return status;
14121 /* Draft 4 pthreads */
14122 status = pthread_create( &t, pthread_attr_default, task, NULL );
14123 if( status ) return errno;
14125 /* give thread a chance to complete */
14126 /* it should remain joinable and hence detachable */
14129 status = pthread_detach( &t );
14130 if( status ) return errno;
14133 #ifdef HAVE_LINUX_THREADS
14134 pthread_kill_other_threads_np();
14142 if { (eval echo configure:14143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
14144 ol_cv_pthread_lc_r=yes
14146 echo "configure: failed program was:" >&5
14147 cat conftest.$ac_ext >&5
14149 ol_cv_pthread_lc_r=no
14160 echo "$ac_t""$ol_cv_pthread_lc_r" 1>&6
14162 if test $ol_cv_pthread_lc_r = yes ; then
14163 ol_link_pthreads="-lc_r"
14164 ol_link_threads=posix
14169 # Pthread try link: -threads (ol_cv_pthread_threads)
14170 if test "$ol_link_threads" = no ; then
14172 echo $ac_n "checking for pthread link with -threads""... $ac_c" 1>&6
14173 echo "configure:14174: checking for pthread link with -threads" >&5
14174 if eval "test \"\${ol_cv_pthread_threads+set}\" = set"; then
14175 echo $ac_n "(cached) $ac_c" 1>&6
14180 LIBS="-threads $LIBS"
14182 if test "$cross_compiling" = yes; then
14183 cat > conftest.$ac_ext <<EOF
14184 #line 14185 "configure"
14185 #include "confdefs.h"
14186 /* pthread test headers */
14187 #include <pthread.h>
14188 #if HAVE_PTHREADS < 7
14192 #define NULL (void*)0
14195 static void *task(p)
14198 return (void *) (p == NULL);
14203 /* pthread test function */
14204 #ifndef PTHREAD_CREATE_DETACHED
14205 #define PTHREAD_CREATE_DETACHED 1
14209 int detach = PTHREAD_CREATE_DETACHED;
14211 #if HAVE_PTHREADS > 4
14212 /* Final pthreads */
14213 pthread_attr_t attr;
14215 status = pthread_attr_init(&attr);
14216 if( status ) return status;
14218 #if HAVE_PTHREADS < 7
14219 status = pthread_attr_setdetachstate(&attr, &detach);
14220 if( status < 0 ) status = errno;
14222 status = pthread_attr_setdetachstate(&attr, detach);
14224 if( status ) return status;
14225 status = pthread_create( &t, &attr, task, NULL );
14226 #if HAVE_PTHREADS < 7
14227 if( status < 0 ) status = errno;
14229 if( status ) return status;
14231 /* Draft 4 pthreads */
14232 status = pthread_create( &t, pthread_attr_default, task, NULL );
14233 if( status ) return errno;
14235 /* give thread a chance to complete */
14236 /* it should remain joinable and hence detachable */
14239 status = pthread_detach( &t );
14240 if( status ) return errno;
14243 #ifdef HAVE_LINUX_THREADS
14244 pthread_kill_other_threads_np();
14251 if { (eval echo configure:14252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14253 ol_cv_pthread_threads=yes
14255 echo "configure: failed program was:" >&5
14256 cat conftest.$ac_ext >&5
14258 ol_cv_pthread_threads=no
14262 cat > conftest.$ac_ext <<EOF
14263 #line 14264 "configure"
14264 #include "confdefs.h"
14265 /* pthread test headers */
14266 #include <pthread.h>
14267 #if HAVE_PTHREADS < 7
14271 #define NULL (void*)0
14274 static void *task(p)
14277 return (void *) (p == NULL);
14281 int main(argc, argv)
14286 /* pthread test function */
14287 #ifndef PTHREAD_CREATE_DETACHED
14288 #define PTHREAD_CREATE_DETACHED 1
14292 int detach = PTHREAD_CREATE_DETACHED;
14294 #if HAVE_PTHREADS > 4
14295 /* Final pthreads */
14296 pthread_attr_t attr;
14298 status = pthread_attr_init(&attr);
14299 if( status ) return status;
14301 #if HAVE_PTHREADS < 7
14302 status = pthread_attr_setdetachstate(&attr, &detach);
14303 if( status < 0 ) status = errno;
14305 status = pthread_attr_setdetachstate(&attr, detach);
14307 if( status ) return status;
14308 status = pthread_create( &t, &attr, task, NULL );
14309 #if HAVE_PTHREADS < 7
14310 if( status < 0 ) status = errno;
14312 if( status ) return status;
14314 /* Draft 4 pthreads */
14315 status = pthread_create( &t, pthread_attr_default, task, NULL );
14316 if( status ) return errno;
14318 /* give thread a chance to complete */
14319 /* it should remain joinable and hence detachable */
14322 status = pthread_detach( &t );
14323 if( status ) return errno;
14326 #ifdef HAVE_LINUX_THREADS
14327 pthread_kill_other_threads_np();
14335 if { (eval echo configure:14336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
14337 ol_cv_pthread_threads=yes
14339 echo "configure: failed program was:" >&5
14340 cat conftest.$ac_ext >&5
14342 ol_cv_pthread_threads=no
14353 echo "$ac_t""$ol_cv_pthread_threads" 1>&6
14355 if test $ol_cv_pthread_threads = yes ; then
14356 ol_link_pthreads="-threads"
14357 ol_link_threads=posix
14362 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
14363 if test "$ol_link_threads" = no ; then
14364 # try -lpthreads -lmach -lexc -lc_r
14365 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc -lc_r""... $ac_c" 1>&6
14366 echo "configure:14367: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
14367 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}\" = set"; then
14368 echo $ac_n "(cached) $ac_c" 1>&6
14373 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
14375 if test "$cross_compiling" = yes; then
14376 cat > conftest.$ac_ext <<EOF
14377 #line 14378 "configure"
14378 #include "confdefs.h"
14379 /* pthread test headers */
14380 #include <pthread.h>
14381 #if HAVE_PTHREADS < 7
14385 #define NULL (void*)0
14388 static void *task(p)
14391 return (void *) (p == NULL);
14396 /* pthread test function */
14397 #ifndef PTHREAD_CREATE_DETACHED
14398 #define PTHREAD_CREATE_DETACHED 1
14402 int detach = PTHREAD_CREATE_DETACHED;
14404 #if HAVE_PTHREADS > 4
14405 /* Final pthreads */
14406 pthread_attr_t attr;
14408 status = pthread_attr_init(&attr);
14409 if( status ) return status;
14411 #if HAVE_PTHREADS < 7
14412 status = pthread_attr_setdetachstate(&attr, &detach);
14413 if( status < 0 ) status = errno;
14415 status = pthread_attr_setdetachstate(&attr, detach);
14417 if( status ) return status;
14418 status = pthread_create( &t, &attr, task, NULL );
14419 #if HAVE_PTHREADS < 7
14420 if( status < 0 ) status = errno;
14422 if( status ) return status;
14424 /* Draft 4 pthreads */
14425 status = pthread_create( &t, pthread_attr_default, task, NULL );
14426 if( status ) return errno;
14428 /* give thread a chance to complete */
14429 /* it should remain joinable and hence detachable */
14432 status = pthread_detach( &t );
14433 if( status ) return errno;
14436 #ifdef HAVE_LINUX_THREADS
14437 pthread_kill_other_threads_np();
14444 if { (eval echo configure:14445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14446 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14448 echo "configure: failed program was:" >&5
14449 cat conftest.$ac_ext >&5
14451 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14455 cat > conftest.$ac_ext <<EOF
14456 #line 14457 "configure"
14457 #include "confdefs.h"
14458 /* pthread test headers */
14459 #include <pthread.h>
14460 #if HAVE_PTHREADS < 7
14464 #define NULL (void*)0
14467 static void *task(p)
14470 return (void *) (p == NULL);
14474 int main(argc, argv)
14479 /* pthread test function */
14480 #ifndef PTHREAD_CREATE_DETACHED
14481 #define PTHREAD_CREATE_DETACHED 1
14485 int detach = PTHREAD_CREATE_DETACHED;
14487 #if HAVE_PTHREADS > 4
14488 /* Final pthreads */
14489 pthread_attr_t attr;
14491 status = pthread_attr_init(&attr);
14492 if( status ) return status;
14494 #if HAVE_PTHREADS < 7
14495 status = pthread_attr_setdetachstate(&attr, &detach);
14496 if( status < 0 ) status = errno;
14498 status = pthread_attr_setdetachstate(&attr, detach);
14500 if( status ) return status;
14501 status = pthread_create( &t, &attr, task, NULL );
14502 #if HAVE_PTHREADS < 7
14503 if( status < 0 ) status = errno;
14505 if( status ) return status;
14507 /* Draft 4 pthreads */
14508 status = pthread_create( &t, pthread_attr_default, task, NULL );
14509 if( status ) return errno;
14511 /* give thread a chance to complete */
14512 /* it should remain joinable and hence detachable */
14515 status = pthread_detach( &t );
14516 if( status ) return errno;
14519 #ifdef HAVE_LINUX_THREADS
14520 pthread_kill_other_threads_np();
14528 if { (eval echo configure:14529: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
14530 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
14532 echo "configure: failed program was:" >&5
14533 cat conftest.$ac_ext >&5
14535 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
14546 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" 1>&6
14548 if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
14549 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
14550 ol_link_threads=posix
14554 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
14555 if test "$ol_link_threads" = no ; then
14556 # try -lpthreads -lmach -lexc
14557 echo $ac_n "checking for pthread link with -lpthreads -lmach -lexc""... $ac_c" 1>&6
14558 echo "configure:14559: checking for pthread link with -lpthreads -lmach -lexc" >&5
14559 if eval "test \"\${ol_cv_pthread_lpthreads_lmach_lexc+set}\" = set"; then
14560 echo $ac_n "(cached) $ac_c" 1>&6
14565 LIBS="-lpthreads -lmach -lexc $LIBS"
14567 if test "$cross_compiling" = yes; then
14568 cat > conftest.$ac_ext <<EOF
14569 #line 14570 "configure"
14570 #include "confdefs.h"
14571 /* pthread test headers */
14572 #include <pthread.h>
14573 #if HAVE_PTHREADS < 7
14577 #define NULL (void*)0
14580 static void *task(p)
14583 return (void *) (p == NULL);
14588 /* pthread test function */
14589 #ifndef PTHREAD_CREATE_DETACHED
14590 #define PTHREAD_CREATE_DETACHED 1
14594 int detach = PTHREAD_CREATE_DETACHED;
14596 #if HAVE_PTHREADS > 4
14597 /* Final pthreads */
14598 pthread_attr_t attr;
14600 status = pthread_attr_init(&attr);
14601 if( status ) return status;
14603 #if HAVE_PTHREADS < 7
14604 status = pthread_attr_setdetachstate(&attr, &detach);
14605 if( status < 0 ) status = errno;
14607 status = pthread_attr_setdetachstate(&attr, detach);
14609 if( status ) return status;
14610 status = pthread_create( &t, &attr, task, NULL );
14611 #if HAVE_PTHREADS < 7
14612 if( status < 0 ) status = errno;
14614 if( status ) return status;
14616 /* Draft 4 pthreads */
14617 status = pthread_create( &t, pthread_attr_default, task, NULL );
14618 if( status ) return errno;
14620 /* give thread a chance to complete */
14621 /* it should remain joinable and hence detachable */
14624 status = pthread_detach( &t );
14625 if( status ) return errno;
14628 #ifdef HAVE_LINUX_THREADS
14629 pthread_kill_other_threads_np();
14636 if { (eval echo configure:14637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14638 ol_cv_pthread_lpthreads_lmach_lexc=yes
14640 echo "configure: failed program was:" >&5
14641 cat conftest.$ac_ext >&5
14643 ol_cv_pthread_lpthreads_lmach_lexc=no
14647 cat > conftest.$ac_ext <<EOF
14648 #line 14649 "configure"
14649 #include "confdefs.h"
14650 /* pthread test headers */
14651 #include <pthread.h>
14652 #if HAVE_PTHREADS < 7
14656 #define NULL (void*)0
14659 static void *task(p)
14662 return (void *) (p == NULL);
14666 int main(argc, argv)
14671 /* pthread test function */
14672 #ifndef PTHREAD_CREATE_DETACHED
14673 #define PTHREAD_CREATE_DETACHED 1
14677 int detach = PTHREAD_CREATE_DETACHED;
14679 #if HAVE_PTHREADS > 4
14680 /* Final pthreads */
14681 pthread_attr_t attr;
14683 status = pthread_attr_init(&attr);
14684 if( status ) return status;
14686 #if HAVE_PTHREADS < 7
14687 status = pthread_attr_setdetachstate(&attr, &detach);
14688 if( status < 0 ) status = errno;
14690 status = pthread_attr_setdetachstate(&attr, detach);
14692 if( status ) return status;
14693 status = pthread_create( &t, &attr, task, NULL );
14694 #if HAVE_PTHREADS < 7
14695 if( status < 0 ) status = errno;
14697 if( status ) return status;
14699 /* Draft 4 pthreads */
14700 status = pthread_create( &t, pthread_attr_default, task, NULL );
14701 if( status ) return errno;
14703 /* give thread a chance to complete */
14704 /* it should remain joinable and hence detachable */
14707 status = pthread_detach( &t );
14708 if( status ) return errno;
14711 #ifdef HAVE_LINUX_THREADS
14712 pthread_kill_other_threads_np();
14720 if { (eval echo configure:14721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
14722 ol_cv_pthread_lpthreads_lmach_lexc=yes
14724 echo "configure: failed program was:" >&5
14725 cat conftest.$ac_ext >&5
14727 ol_cv_pthread_lpthreads_lmach_lexc=no
14738 echo "$ac_t""$ol_cv_pthread_lpthreads_lmach_lexc" 1>&6
14740 if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
14741 ol_link_pthreads="-lpthreads -lmach -lexc"
14742 ol_link_threads=posix
14746 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
14747 if test "$ol_link_threads" = no ; then
14748 # try -lpthreads -lexc
14749 echo $ac_n "checking for pthread link with -lpthreads -lexc""... $ac_c" 1>&6
14750 echo "configure:14751: checking for pthread link with -lpthreads -lexc" >&5
14751 if eval "test \"\${ol_cv_pthread_lpthreads_lexc+set}\" = set"; then
14752 echo $ac_n "(cached) $ac_c" 1>&6
14757 LIBS="-lpthreads -lexc $LIBS"
14759 if test "$cross_compiling" = yes; then
14760 cat > conftest.$ac_ext <<EOF
14761 #line 14762 "configure"
14762 #include "confdefs.h"
14763 /* pthread test headers */
14764 #include <pthread.h>
14765 #if HAVE_PTHREADS < 7
14769 #define NULL (void*)0
14772 static void *task(p)
14775 return (void *) (p == NULL);
14780 /* pthread test function */
14781 #ifndef PTHREAD_CREATE_DETACHED
14782 #define PTHREAD_CREATE_DETACHED 1
14786 int detach = PTHREAD_CREATE_DETACHED;
14788 #if HAVE_PTHREADS > 4
14789 /* Final pthreads */
14790 pthread_attr_t attr;
14792 status = pthread_attr_init(&attr);
14793 if( status ) return status;
14795 #if HAVE_PTHREADS < 7
14796 status = pthread_attr_setdetachstate(&attr, &detach);
14797 if( status < 0 ) status = errno;
14799 status = pthread_attr_setdetachstate(&attr, detach);
14801 if( status ) return status;
14802 status = pthread_create( &t, &attr, task, NULL );
14803 #if HAVE_PTHREADS < 7
14804 if( status < 0 ) status = errno;
14806 if( status ) return status;
14808 /* Draft 4 pthreads */
14809 status = pthread_create( &t, pthread_attr_default, task, NULL );
14810 if( status ) return errno;
14812 /* give thread a chance to complete */
14813 /* it should remain joinable and hence detachable */
14816 status = pthread_detach( &t );
14817 if( status ) return errno;
14820 #ifdef HAVE_LINUX_THREADS
14821 pthread_kill_other_threads_np();
14828 if { (eval echo configure:14829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14830 ol_cv_pthread_lpthreads_lexc=yes
14832 echo "configure: failed program was:" >&5
14833 cat conftest.$ac_ext >&5
14835 ol_cv_pthread_lpthreads_lexc=no
14839 cat > conftest.$ac_ext <<EOF
14840 #line 14841 "configure"
14841 #include "confdefs.h"
14842 /* pthread test headers */
14843 #include <pthread.h>
14844 #if HAVE_PTHREADS < 7
14848 #define NULL (void*)0
14851 static void *task(p)
14854 return (void *) (p == NULL);
14858 int main(argc, argv)
14863 /* pthread test function */
14864 #ifndef PTHREAD_CREATE_DETACHED
14865 #define PTHREAD_CREATE_DETACHED 1
14869 int detach = PTHREAD_CREATE_DETACHED;
14871 #if HAVE_PTHREADS > 4
14872 /* Final pthreads */
14873 pthread_attr_t attr;
14875 status = pthread_attr_init(&attr);
14876 if( status ) return status;
14878 #if HAVE_PTHREADS < 7
14879 status = pthread_attr_setdetachstate(&attr, &detach);
14880 if( status < 0 ) status = errno;
14882 status = pthread_attr_setdetachstate(&attr, detach);
14884 if( status ) return status;
14885 status = pthread_create( &t, &attr, task, NULL );
14886 #if HAVE_PTHREADS < 7
14887 if( status < 0 ) status = errno;
14889 if( status ) return status;
14891 /* Draft 4 pthreads */
14892 status = pthread_create( &t, pthread_attr_default, task, NULL );
14893 if( status ) return errno;
14895 /* give thread a chance to complete */
14896 /* it should remain joinable and hence detachable */
14899 status = pthread_detach( &t );
14900 if( status ) return errno;
14903 #ifdef HAVE_LINUX_THREADS
14904 pthread_kill_other_threads_np();
14912 if { (eval echo configure:14913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
14914 ol_cv_pthread_lpthreads_lexc=yes
14916 echo "configure: failed program was:" >&5
14917 cat conftest.$ac_ext >&5
14919 ol_cv_pthread_lpthreads_lexc=no
14930 echo "$ac_t""$ol_cv_pthread_lpthreads_lexc" 1>&6
14932 if test $ol_cv_pthread_lpthreads_lexc = yes ; then
14933 ol_link_pthreads="-lpthreads -lexc"
14934 ol_link_threads=posix
14939 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
14940 if test "$ol_link_threads" = no ; then
14942 echo $ac_n "checking for pthread link with -lpthreads""... $ac_c" 1>&6
14943 echo "configure:14944: checking for pthread link with -lpthreads" >&5
14944 if eval "test \"\${ol_cv_pthread_lib_lpthreads+set}\" = set"; then
14945 echo $ac_n "(cached) $ac_c" 1>&6
14950 LIBS="-lpthreads $LIBS"
14952 if test "$cross_compiling" = yes; then
14953 cat > conftest.$ac_ext <<EOF
14954 #line 14955 "configure"
14955 #include "confdefs.h"
14956 /* pthread test headers */
14957 #include <pthread.h>
14958 #if HAVE_PTHREADS < 7
14962 #define NULL (void*)0
14965 static void *task(p)
14968 return (void *) (p == NULL);
14973 /* pthread test function */
14974 #ifndef PTHREAD_CREATE_DETACHED
14975 #define PTHREAD_CREATE_DETACHED 1
14979 int detach = PTHREAD_CREATE_DETACHED;
14981 #if HAVE_PTHREADS > 4
14982 /* Final pthreads */
14983 pthread_attr_t attr;
14985 status = pthread_attr_init(&attr);
14986 if( status ) return status;
14988 #if HAVE_PTHREADS < 7
14989 status = pthread_attr_setdetachstate(&attr, &detach);
14990 if( status < 0 ) status = errno;
14992 status = pthread_attr_setdetachstate(&attr, detach);
14994 if( status ) return status;
14995 status = pthread_create( &t, &attr, task, NULL );
14996 #if HAVE_PTHREADS < 7
14997 if( status < 0 ) status = errno;
14999 if( status ) return status;
15001 /* Draft 4 pthreads */
15002 status = pthread_create( &t, pthread_attr_default, task, NULL );
15003 if( status ) return errno;
15005 /* give thread a chance to complete */
15006 /* it should remain joinable and hence detachable */
15009 status = pthread_detach( &t );
15010 if( status ) return errno;
15013 #ifdef HAVE_LINUX_THREADS
15014 pthread_kill_other_threads_np();
15021 if { (eval echo configure:15022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15023 ol_cv_pthread_lib_lpthreads=yes
15025 echo "configure: failed program was:" >&5
15026 cat conftest.$ac_ext >&5
15028 ol_cv_pthread_lib_lpthreads=no
15032 cat > conftest.$ac_ext <<EOF
15033 #line 15034 "configure"
15034 #include "confdefs.h"
15035 /* pthread test headers */
15036 #include <pthread.h>
15037 #if HAVE_PTHREADS < 7
15041 #define NULL (void*)0
15044 static void *task(p)
15047 return (void *) (p == NULL);
15051 int main(argc, argv)
15056 /* pthread test function */
15057 #ifndef PTHREAD_CREATE_DETACHED
15058 #define PTHREAD_CREATE_DETACHED 1
15062 int detach = PTHREAD_CREATE_DETACHED;
15064 #if HAVE_PTHREADS > 4
15065 /* Final pthreads */
15066 pthread_attr_t attr;
15068 status = pthread_attr_init(&attr);
15069 if( status ) return status;
15071 #if HAVE_PTHREADS < 7
15072 status = pthread_attr_setdetachstate(&attr, &detach);
15073 if( status < 0 ) status = errno;
15075 status = pthread_attr_setdetachstate(&attr, detach);
15077 if( status ) return status;
15078 status = pthread_create( &t, &attr, task, NULL );
15079 #if HAVE_PTHREADS < 7
15080 if( status < 0 ) status = errno;
15082 if( status ) return status;
15084 /* Draft 4 pthreads */
15085 status = pthread_create( &t, pthread_attr_default, task, NULL );
15086 if( status ) return errno;
15088 /* give thread a chance to complete */
15089 /* it should remain joinable and hence detachable */
15092 status = pthread_detach( &t );
15093 if( status ) return errno;
15096 #ifdef HAVE_LINUX_THREADS
15097 pthread_kill_other_threads_np();
15105 if { (eval echo configure:15106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
15107 ol_cv_pthread_lib_lpthreads=yes
15109 echo "configure: failed program was:" >&5
15110 cat conftest.$ac_ext >&5
15112 ol_cv_pthread_lib_lpthreads=no
15123 echo "$ac_t""$ol_cv_pthread_lib_lpthreads" 1>&6
15125 if test $ol_cv_pthread_lib_lpthreads = yes ; then
15126 ol_link_pthreads="-lpthreads"
15127 ol_link_threads=posix
15132 if test $ol_link_threads != no ; then
15133 LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
15135 save_CPPFLAGS="$CPPFLAGS"
15137 LIBS="$LTHREAD_LIBS $LIBS"
15139 for ac_func in sched_yield pthread_yield thr_yield
15141 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15142 echo "configure:15143: checking for $ac_func" >&5
15143 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15144 echo $ac_n "(cached) $ac_c" 1>&6
15146 cat > conftest.$ac_ext <<EOF
15147 #line 15148 "configure"
15148 #include "confdefs.h"
15149 /* System header to define __stub macros and hopefully few prototypes,
15150 which can conflict with char $ac_func(); below. */
15151 #include <assert.h>
15152 /* Override any gcc2 internal prototype to avoid an error. */
15153 /* We use char because int might match the return type of a gcc2
15154 builtin and then its argument prototype would still apply. */
15160 /* The GNU C library defines this for functions which it implements
15161 to always fail with ENOSYS. Some functions are actually named
15162 something starting with __ and the normal name is an alias. */
15163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15171 if { (eval echo configure:15172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15173 eval "ac_cv_func_$ac_func=yes"
15175 echo "configure: failed program was:" >&5
15176 cat conftest.$ac_ext >&5
15178 eval "ac_cv_func_$ac_func=no"
15183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15184 echo "$ac_t""yes" 1>&6
15185 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15186 cat >> confdefs.h <<EOF
15187 #define $ac_tr_func 1
15191 echo "$ac_t""no" 1>&6
15196 if test $ac_cv_func_sched_yield = no -a \
15197 $ac_cv_func_pthread_yield = no -a \
15198 $ac_cv_func_thr_yield = no ; then
15199 echo $ac_n "checking for sched_yield in -lrt""... $ac_c" 1>&6
15200 echo "configure:15201: checking for sched_yield in -lrt" >&5
15201 ac_lib_var=`echo rt'_'sched_yield | sed 'y%./+-:%__p__%'`
15202 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
15203 echo $ac_n "(cached) $ac_c" 1>&6
15205 ac_save_LIBS="$LIBS"
15207 cat > conftest.$ac_ext <<EOF
15208 #line 15209 "configure"
15209 #include "confdefs.h"
15210 /* Override any gcc2 internal prototype to avoid an error. */
15211 /* We use char because int might match the return type of a gcc2
15212 builtin and then its argument prototype would still apply. */
15213 char sched_yield();
15219 if { (eval echo configure:15220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15221 eval "ac_cv_lib_$ac_lib_var=yes"
15223 echo "configure: failed program was:" >&5
15224 cat conftest.$ac_ext >&5
15226 eval "ac_cv_lib_$ac_lib_var=no"
15229 LIBS="$ac_save_LIBS"
15232 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15233 echo "$ac_t""yes" 1>&6
15234 LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
15235 cat >> confdefs.h <<\EOF
15236 #define HAVE_SCHED_YIELD 1
15239 ac_cv_func_sched_yield=yes
15241 echo "$ac_t""no" 1>&6
15242 ac_cv_func_sched_yield=no
15246 if test $ac_cv_func_sched_yield = no -a \
15247 $ac_cv_func_pthread_yield = no -a \
15248 "$ac_cv_func_thr_yield" = no ; then
15249 echo "configure: warning: could not locate sched_yield() or pthread_yield()" 1>&2
15252 for ac_func in pthread_kill pthread_rwlock_destroy
15254 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15255 echo "configure:15256: checking for $ac_func" >&5
15256 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15257 echo $ac_n "(cached) $ac_c" 1>&6
15259 cat > conftest.$ac_ext <<EOF
15260 #line 15261 "configure"
15261 #include "confdefs.h"
15262 /* System header to define __stub macros and hopefully few prototypes,
15263 which can conflict with char $ac_func(); below. */
15264 #include <assert.h>
15265 /* Override any gcc2 internal prototype to avoid an error. */
15266 /* We use char because int might match the return type of a gcc2
15267 builtin and then its argument prototype would still apply. */
15273 /* The GNU C library defines this for functions which it implements
15274 to always fail with ENOSYS. Some functions are actually named
15275 something starting with __ and the normal name is an alias. */
15276 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15284 if { (eval echo configure:15285: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15286 eval "ac_cv_func_$ac_func=yes"
15288 echo "configure: failed program was:" >&5
15289 cat conftest.$ac_ext >&5
15291 eval "ac_cv_func_$ac_func=no"
15296 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15297 echo "$ac_t""yes" 1>&6
15298 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15299 cat >> confdefs.h <<EOF
15300 #define $ac_tr_func 1
15304 echo "$ac_t""no" 1>&6
15309 echo $ac_n "checking for pthread_detach with <pthread.h>""... $ac_c" 1>&6
15310 echo "configure:15311: checking for pthread_detach with <pthread.h>" >&5
15311 if eval "test \"\${ol_cv_func_pthread_detach+set}\" = set"; then
15312 echo $ac_n "(cached) $ac_c" 1>&6
15315 cat > conftest.$ac_ext <<EOF
15316 #line 15317 "configure"
15317 #include "confdefs.h"
15319 #include <pthread.h>
15321 #define NULL (void*)0
15325 pthread_detach(NULL);
15328 if { (eval echo configure:15329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15330 ol_cv_func_pthread_detach=yes
15332 echo "configure: failed program was:" >&5
15333 cat conftest.$ac_ext >&5
15335 ol_cv_func_pthread_detach=no
15341 echo "$ac_t""$ol_cv_func_pthread_detach" 1>&6
15343 if test $ol_cv_func_pthread_detach = no ; then
15344 { echo "configure: error: could not locate pthread_detach()" 1>&2; exit 1; }
15347 cat >> confdefs.h <<\EOF
15348 #define HAVE_PTHREAD_DETACH 1
15353 pthread_setconcurrency \
15354 pthread_getconcurrency \
15355 thr_setconcurrency \
15356 thr_getconcurrency \
15359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15360 echo "configure:15361: checking for $ac_func" >&5
15361 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15362 echo $ac_n "(cached) $ac_c" 1>&6
15364 cat > conftest.$ac_ext <<EOF
15365 #line 15366 "configure"
15366 #include "confdefs.h"
15367 /* System header to define __stub macros and hopefully few prototypes,
15368 which can conflict with char $ac_func(); below. */
15369 #include <assert.h>
15370 /* Override any gcc2 internal prototype to avoid an error. */
15371 /* We use char because int might match the return type of a gcc2
15372 builtin and then its argument prototype would still apply. */
15378 /* The GNU C library defines this for functions which it implements
15379 to always fail with ENOSYS. Some functions are actually named
15380 something starting with __ and the normal name is an alias. */
15381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15389 if { (eval echo configure:15390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15391 eval "ac_cv_func_$ac_func=yes"
15393 echo "configure: failed program was:" >&5
15394 cat conftest.$ac_ext >&5
15396 eval "ac_cv_func_$ac_func=no"
15401 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15402 echo "$ac_t""yes" 1>&6
15403 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15404 cat >> confdefs.h <<EOF
15405 #define $ac_tr_func 1
15409 echo "$ac_t""no" 1>&6
15415 for ac_func in pthread_kill_other_threads_np
15417 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15418 echo "configure:15419: checking for $ac_func" >&5
15419 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
15420 echo $ac_n "(cached) $ac_c" 1>&6
15422 cat > conftest.$ac_ext <<EOF
15423 #line 15424 "configure"
15424 #include "confdefs.h"
15425 /* System header to define __stub macros and hopefully few prototypes,
15426 which can conflict with char $ac_func(); below. */
15427 #include <assert.h>
15428 /* Override any gcc2 internal prototype to avoid an error. */
15429 /* We use char because int might match the return type of a gcc2
15430 builtin and then its argument prototype would still apply. */
15436 /* The GNU C library defines this for functions which it implements
15437 to always fail with ENOSYS. Some functions are actually named
15438 something starting with __ and the normal name is an alias. */
15439 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15447 if { (eval echo configure:15448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15449 eval "ac_cv_func_$ac_func=yes"
15451 echo "configure: failed program was:" >&5
15452 cat conftest.$ac_ext >&5
15454 eval "ac_cv_func_$ac_func=no"
15459 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15460 echo "$ac_t""yes" 1>&6
15461 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15462 cat >> confdefs.h <<EOF
15463 #define $ac_tr_func 1
15467 echo "$ac_t""no" 1>&6
15471 echo $ac_n "checking for LinuxThreads implementation""... $ac_c" 1>&6
15472 echo "configure:15473: checking for LinuxThreads implementation" >&5
15473 if eval "test \"\${ol_cv_sys_linux_threads+set}\" = set"; then
15474 echo $ac_n "(cached) $ac_c" 1>&6
15476 ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
15479 echo "$ac_t""$ol_cv_sys_linux_threads" 1>&6
15484 echo $ac_n "checking for LinuxThreads consistency""... $ac_c" 1>&6
15485 echo "configure:15486: checking for LinuxThreads consistency" >&5
15486 if eval "test \"\${ol_cv_linux_threads+set}\" = set"; then
15487 echo $ac_n "(cached) $ac_c" 1>&6
15490 if test $ol_cv_header_linux_threads = yes -a \
15491 $ol_cv_sys_linux_threads = yes; then
15492 ol_cv_linux_threads=yes
15493 elif test $ol_cv_header_linux_threads = no -a \
15494 $ol_cv_sys_linux_threads = no; then
15495 ol_cv_linux_threads=no
15497 ol_cv_linux_threads=error
15502 echo "$ac_t""$ol_cv_linux_threads" 1>&6
15505 if test $ol_cv_linux_threads = error; then
15506 { echo "configure: error: LinuxThreads header/library mismatch" 1>&2; exit 1; };
15509 echo $ac_n "checking if pthread_create() works""... $ac_c" 1>&6
15510 echo "configure:15511: checking if pthread_create() works" >&5
15511 if eval "test \"\${ol_cv_pthread_create_works+set}\" = set"; then
15512 echo $ac_n "(cached) $ac_c" 1>&6
15515 if test "$cross_compiling" = yes; then
15516 ol_cv_pthread_create_works=yes
15518 cat > conftest.$ac_ext <<EOF
15519 #line 15520 "configure"
15520 #include "confdefs.h"
15521 /* pthread test headers */
15522 #include <pthread.h>
15523 #if HAVE_PTHREADS < 7
15527 #define NULL (void*)0
15530 static void *task(p)
15533 return (void *) (p == NULL);
15537 int main(argc, argv)
15542 /* pthread test function */
15543 #ifndef PTHREAD_CREATE_DETACHED
15544 #define PTHREAD_CREATE_DETACHED 1
15548 int detach = PTHREAD_CREATE_DETACHED;
15550 #if HAVE_PTHREADS > 4
15551 /* Final pthreads */
15552 pthread_attr_t attr;
15554 status = pthread_attr_init(&attr);
15555 if( status ) return status;
15557 #if HAVE_PTHREADS < 7
15558 status = pthread_attr_setdetachstate(&attr, &detach);
15559 if( status < 0 ) status = errno;
15561 status = pthread_attr_setdetachstate(&attr, detach);
15563 if( status ) return status;
15564 status = pthread_create( &t, &attr, task, NULL );
15565 #if HAVE_PTHREADS < 7
15566 if( status < 0 ) status = errno;
15568 if( status ) return status;
15570 /* Draft 4 pthreads */
15571 status = pthread_create( &t, pthread_attr_default, task, NULL );
15572 if( status ) return errno;
15574 /* give thread a chance to complete */
15575 /* it should remain joinable and hence detachable */
15578 status = pthread_detach( &t );
15579 if( status ) return errno;
15582 #ifdef HAVE_LINUX_THREADS
15583 pthread_kill_other_threads_np();
15591 if { (eval echo configure:15592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
15593 ol_cv_pthread_create_works=yes
15595 echo "configure: failed program was:" >&5
15596 cat conftest.$ac_ext >&5
15598 ol_cv_pthread_create_works=no
15605 echo "$ac_t""$ol_cv_pthread_create_works" 1>&6
15607 if test $ol_cv_pthread_create_works = no ; then
15608 { echo "configure: error: pthread_create is not usable, check environment settings" 1>&2; exit 1; }
15611 if test $ol_with_yielding_select = auto ; then
15612 echo $ac_n "checking if select yields when using pthreads""... $ac_c" 1>&6
15613 echo "configure:15614: checking if select yields when using pthreads" >&5
15614 if eval "test \"\${ol_cv_pthread_select_yields+set}\" = set"; then
15615 echo $ac_n "(cached) $ac_c" 1>&6
15618 if test "$cross_compiling" = yes; then
15619 ol_cv_pthread_select_yields=cross
15621 cat > conftest.$ac_ext <<EOF
15622 #line 15623 "configure"
15623 #include "confdefs.h"
15625 #include <sys/types.h>
15626 #include <sys/time.h>
15627 #include <unistd.h>
15628 #include <pthread.h>
15630 #define NULL (void*) 0
15633 static int fildes[2];
15635 static void *task(p)
15647 FD_SET(fildes[0], &rfds);
15649 /* we're not interested in any fds */
15650 i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
15657 exit(0); /* if we exit here, the select blocked the whole process */
15660 int main(argc, argv)
15666 /* create a pipe to select */
15667 if(pipe(&fildes[0])) {
15672 #ifdef HAVE_PTHREAD_SETCONCURRENCY
15673 (void) pthread_setconcurrency(2);
15675 #ifdef HAVE_THR_SETCONCURRENCY
15676 /* Set Solaris LWP concurrency to 2 */
15677 thr_setconcurrency(2);
15681 #if HAVE_PTHREADS < 6
15682 pthread_create(&t, pthread_attr_default, task, NULL);
15684 pthread_create(&t, NULL, task, NULL);
15687 /* make sure task runs first */
15690 #elif defined( HAVE_SCHED_YIELD )
15692 #elif defined( HAVE_PTHREAD_YIELD )
15699 if { (eval echo configure:15700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
15701 ol_cv_pthread_select_yields=no
15703 echo "configure: failed program was:" >&5
15704 cat conftest.$ac_ext >&5
15706 ol_cv_pthread_select_yields=yes
15713 echo "$ac_t""$ol_cv_pthread_select_yields" 1>&6
15715 if test $ol_cv_pthread_select_yields = cross ; then
15716 { echo "configure: error: crossing compiling: use --with-yielding_select=yes|no|manual" 1>&2; exit 1; }
15719 if test $ol_cv_pthread_select_yields = yes ; then
15720 ol_with_yielding_select=yes
15724 CPPFLAGS="$save_CPPFLAGS"
15727 { echo "configure: error: could not locate usable POSIX Threads" 1>&2; exit 1; }
15731 if test $ol_with_threads = posix ; then
15732 { echo "configure: error: could not locate POSIX Threads" 1>&2; exit 1; }
15736 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15737 -o $ol_with_threads = mach ; then
15739 for ac_hdr in mach/cthreads.h cthreads.h
15741 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15742 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15743 echo "configure:15744: checking for $ac_hdr" >&5
15744 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15745 echo $ac_n "(cached) $ac_c" 1>&6
15747 cat > conftest.$ac_ext <<EOF
15748 #line 15749 "configure"
15749 #include "confdefs.h"
15752 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15753 { (eval echo configure:15754: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15754 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15755 if test -z "$ac_err"; then
15757 eval "ac_cv_header_$ac_safe=yes"
15760 echo "configure: failed program was:" >&5
15761 cat conftest.$ac_ext >&5
15763 eval "ac_cv_header_$ac_safe=no"
15767 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15768 echo "$ac_t""yes" 1>&6
15769 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15770 cat >> confdefs.h <<EOF
15771 #define $ac_tr_hdr 1
15775 echo "$ac_t""no" 1>&6
15779 if test $ac_cv_header_mach_cthreads_h = yes ; then
15780 ol_with_threads=found
15782 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15783 echo "configure:15784: checking for cthread_fork" >&5
15784 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15785 echo $ac_n "(cached) $ac_c" 1>&6
15787 cat > conftest.$ac_ext <<EOF
15788 #line 15789 "configure"
15789 #include "confdefs.h"
15790 /* System header to define __stub macros and hopefully few prototypes,
15791 which can conflict with char cthread_fork(); below. */
15792 #include <assert.h>
15793 /* Override any gcc2 internal prototype to avoid an error. */
15794 /* We use char because int might match the return type of a gcc2
15795 builtin and then its argument prototype would still apply. */
15796 char cthread_fork();
15801 /* The GNU C library defines this for functions which it implements
15802 to always fail with ENOSYS. Some functions are actually named
15803 something starting with __ and the normal name is an alias. */
15804 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15812 if { (eval echo configure:15813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15814 eval "ac_cv_func_cthread_fork=yes"
15816 echo "configure: failed program was:" >&5
15817 cat conftest.$ac_ext >&5
15819 eval "ac_cv_func_cthread_fork=no"
15824 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15825 echo "$ac_t""yes" 1>&6
15826 ol_link_threads=yes
15828 echo "$ac_t""no" 1>&6
15832 if test $ol_link_threads = no ; then
15833 echo $ac_n "checking for cthread_fork with -all_load""... $ac_c" 1>&6
15834 echo "configure:15835: checking for cthread_fork with -all_load" >&5
15835 if eval "test \"\${ol_cv_cthread_all_load+set}\" = set"; then
15836 echo $ac_n "(cached) $ac_c" 1>&6
15840 LIBS="-all_load $LIBS"
15841 cat > conftest.$ac_ext <<EOF
15842 #line 15843 "configure"
15843 #include "confdefs.h"
15844 #include <mach/cthreads.h>
15847 cthread_fork((void *)0, (void *)0);
15851 if { (eval echo configure:15852: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15853 ol_cv_cthread_all_load=yes
15855 echo "configure: failed program was:" >&5
15856 cat conftest.$ac_ext >&5
15858 ol_cv_cthread_all_load=no
15865 echo "$ac_t""$ol_cv_cthread_all_load" 1>&6
15867 if test $ol_cv_cthread_all_load = yes ; then
15868 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
15869 ol_link_threads=mach
15870 ol_with_threads=found
15874 elif test $ac_cv_header_cthreads_h = yes ; then
15876 ol_with_threads=found
15879 LIBS="$LIBS -lthreads"
15880 echo $ac_n "checking for cthread_fork""... $ac_c" 1>&6
15881 echo "configure:15882: checking for cthread_fork" >&5
15882 if eval "test \"\${ac_cv_func_cthread_fork+set}\" = set"; then
15883 echo $ac_n "(cached) $ac_c" 1>&6
15885 cat > conftest.$ac_ext <<EOF
15886 #line 15887 "configure"
15887 #include "confdefs.h"
15888 /* System header to define __stub macros and hopefully few prototypes,
15889 which can conflict with char cthread_fork(); below. */
15890 #include <assert.h>
15891 /* Override any gcc2 internal prototype to avoid an error. */
15892 /* We use char because int might match the return type of a gcc2
15893 builtin and then its argument prototype would still apply. */
15894 char cthread_fork();
15899 /* The GNU C library defines this for functions which it implements
15900 to always fail with ENOSYS. Some functions are actually named
15901 something starting with __ and the normal name is an alias. */
15902 #if defined (__stub_cthread_fork) || defined (__stub___cthread_fork)
15910 if { (eval echo configure:15911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15912 eval "ac_cv_func_cthread_fork=yes"
15914 echo "configure: failed program was:" >&5
15915 cat conftest.$ac_ext >&5
15917 eval "ac_cv_func_cthread_fork=no"
15922 if eval "test \"`echo '$ac_cv_func_'cthread_fork`\" = yes"; then
15923 echo "$ac_t""yes" 1>&6
15924 ol_link_threads=yes
15926 echo "$ac_t""no" 1>&6
15931 if test $ol_link_threads = yes ; then
15932 LTHREAD_LIBS="-lthreads"
15933 ol_link_threads=mach
15934 ol_with_threads=found
15936 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15939 elif test $ol_with_threads = mach ; then
15940 { echo "configure: error: could not locate Mach CThreads" 1>&2; exit 1; }
15943 if test $ol_link_threads = mach ; then
15944 cat >> confdefs.h <<\EOF
15945 #define HAVE_MACH_CTHREADS 1
15948 elif test $ol_with_threads = found ; then
15949 { echo "configure: error: could not link with Mach CThreads" 1>&2; exit 1; }
15953 if test $ol_with_threads = auto -o $ol_with_threads = yes \
15954 -o $ol_with_threads = pth ; then
15956 for ac_hdr in pth.h
15958 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15959 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15960 echo "configure:15961: checking for $ac_hdr" >&5
15961 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
15962 echo $ac_n "(cached) $ac_c" 1>&6
15964 cat > conftest.$ac_ext <<EOF
15965 #line 15966 "configure"
15966 #include "confdefs.h"
15969 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15970 { (eval echo configure:15971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15971 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15972 if test -z "$ac_err"; then
15974 eval "ac_cv_header_$ac_safe=yes"
15977 echo "configure: failed program was:" >&5
15978 cat conftest.$ac_ext >&5
15980 eval "ac_cv_header_$ac_safe=no"
15984 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15985 echo "$ac_t""yes" 1>&6
15986 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15987 cat >> confdefs.h <<EOF
15988 #define $ac_tr_hdr 1
15992 echo "$ac_t""no" 1>&6
15997 if test $ac_cv_header_pth_h = yes ; then
15998 echo $ac_n "checking for pth_version in -lpth""... $ac_c" 1>&6
15999 echo "configure:16000: checking for pth_version in -lpth" >&5
16000 ac_lib_var=`echo pth'_'pth_version | sed 'y%./+-:%__p__%'`
16001 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16002 echo $ac_n "(cached) $ac_c" 1>&6
16004 ac_save_LIBS="$LIBS"
16006 cat > conftest.$ac_ext <<EOF
16007 #line 16008 "configure"
16008 #include "confdefs.h"
16009 /* Override any gcc2 internal prototype to avoid an error. */
16010 /* We use char because int might match the return type of a gcc2
16011 builtin and then its argument prototype would still apply. */
16012 char pth_version();
16018 if { (eval echo configure:16019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16020 eval "ac_cv_lib_$ac_lib_var=yes"
16022 echo "configure: failed program was:" >&5
16023 cat conftest.$ac_ext >&5
16025 eval "ac_cv_lib_$ac_lib_var=no"
16028 LIBS="$ac_save_LIBS"
16031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16032 echo "$ac_t""yes" 1>&6
16035 echo "$ac_t""no" 1>&6
16040 if test $have_pth = yes ; then
16041 cat >> confdefs.h <<\EOF
16042 #define HAVE_GNU_PTH 1
16045 LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
16046 ol_link_threads=pth
16047 ol_with_threads=found
16049 if test $ol_with_yielding_select = auto ; then
16050 ol_with_yielding_select=yes
16056 if test $ol_with_threads = auto -o $ol_with_threads = yes \
16057 -o $ol_with_threads = lwp ; then
16059 for ac_hdr in thread.h synch.h
16061 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16062 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16063 echo "configure:16064: checking for $ac_hdr" >&5
16064 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16065 echo $ac_n "(cached) $ac_c" 1>&6
16067 cat > conftest.$ac_ext <<EOF
16068 #line 16069 "configure"
16069 #include "confdefs.h"
16072 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16073 { (eval echo configure:16074: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16074 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16075 if test -z "$ac_err"; then
16077 eval "ac_cv_header_$ac_safe=yes"
16080 echo "configure: failed program was:" >&5
16081 cat conftest.$ac_ext >&5
16083 eval "ac_cv_header_$ac_safe=no"
16087 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16088 echo "$ac_t""yes" 1>&6
16089 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16090 cat >> confdefs.h <<EOF
16091 #define $ac_tr_hdr 1
16095 echo "$ac_t""no" 1>&6
16099 if test $ac_cv_header_thread_h = yes -a $ac_cv_header_synch_h = yes ; then
16100 echo $ac_n "checking for thr_create in -lthread""... $ac_c" 1>&6
16101 echo "configure:16102: checking for thr_create in -lthread" >&5
16102 ac_lib_var=`echo thread'_'thr_create | sed 'y%./+-:%__p__%'`
16103 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16104 echo $ac_n "(cached) $ac_c" 1>&6
16106 ac_save_LIBS="$LIBS"
16107 LIBS="-lthread $LIBS"
16108 cat > conftest.$ac_ext <<EOF
16109 #line 16110 "configure"
16110 #include "confdefs.h"
16111 /* Override any gcc2 internal prototype to avoid an error. */
16112 /* We use char because int might match the return type of a gcc2
16113 builtin and then its argument prototype would still apply. */
16120 if { (eval echo configure:16121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16122 eval "ac_cv_lib_$ac_lib_var=yes"
16124 echo "configure: failed program was:" >&5
16125 cat conftest.$ac_ext >&5
16127 eval "ac_cv_lib_$ac_lib_var=no"
16130 LIBS="$ac_save_LIBS"
16133 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16134 echo "$ac_t""yes" 1>&6
16137 echo "$ac_t""no" 1>&6
16142 if test $have_thr = yes ; then
16143 cat >> confdefs.h <<\EOF
16147 LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
16148 ol_link_threads=thr
16150 if test $ol_with_yielding_select = auto ; then
16151 ol_with_yielding_select=yes
16155 thr_setconcurrency \
16156 thr_getconcurrency \
16159 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16160 echo "configure:16161: checking for $ac_func" >&5
16161 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16162 echo $ac_n "(cached) $ac_c" 1>&6
16164 cat > conftest.$ac_ext <<EOF
16165 #line 16166 "configure"
16166 #include "confdefs.h"
16167 /* System header to define __stub macros and hopefully few prototypes,
16168 which can conflict with char $ac_func(); below. */
16169 #include <assert.h>
16170 /* Override any gcc2 internal prototype to avoid an error. */
16171 /* We use char because int might match the return type of a gcc2
16172 builtin and then its argument prototype would still apply. */
16178 /* The GNU C library defines this for functions which it implements
16179 to always fail with ENOSYS. Some functions are actually named
16180 something starting with __ and the normal name is an alias. */
16181 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16189 if { (eval echo configure:16190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16191 eval "ac_cv_func_$ac_func=yes"
16193 echo "configure: failed program was:" >&5
16194 cat conftest.$ac_ext >&5
16196 eval "ac_cv_func_$ac_func=no"
16201 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16202 echo "$ac_t""yes" 1>&6
16203 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16204 cat >> confdefs.h <<EOF
16205 #define $ac_tr_func 1
16209 echo "$ac_t""no" 1>&6
16216 for ac_hdr in lwp/lwp.h
16218 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16219 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16220 echo "configure:16221: checking for $ac_hdr" >&5
16221 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16222 echo $ac_n "(cached) $ac_c" 1>&6
16224 cat > conftest.$ac_ext <<EOF
16225 #line 16226 "configure"
16226 #include "confdefs.h"
16229 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16230 { (eval echo configure:16231: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16231 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16232 if test -z "$ac_err"; then
16234 eval "ac_cv_header_$ac_safe=yes"
16237 echo "configure: failed program was:" >&5
16238 cat conftest.$ac_ext >&5
16240 eval "ac_cv_header_$ac_safe=no"
16244 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16245 echo "$ac_t""yes" 1>&6
16246 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16247 cat >> confdefs.h <<EOF
16248 #define $ac_tr_hdr 1
16252 echo "$ac_t""no" 1>&6
16256 if test $ac_cv_header_lwp_lwp_h = yes ; then
16257 echo $ac_n "checking for lwp_create in -llwp""... $ac_c" 1>&6
16258 echo "configure:16259: checking for lwp_create in -llwp" >&5
16259 ac_lib_var=`echo lwp'_'lwp_create | sed 'y%./+-:%__p__%'`
16260 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
16261 echo $ac_n "(cached) $ac_c" 1>&6
16263 ac_save_LIBS="$LIBS"
16265 cat > conftest.$ac_ext <<EOF
16266 #line 16267 "configure"
16267 #include "confdefs.h"
16268 /* Override any gcc2 internal prototype to avoid an error. */
16269 /* We use char because int might match the return type of a gcc2
16270 builtin and then its argument prototype would still apply. */
16277 if { (eval echo configure:16278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16279 eval "ac_cv_lib_$ac_lib_var=yes"
16281 echo "configure: failed program was:" >&5
16282 cat conftest.$ac_ext >&5
16284 eval "ac_cv_lib_$ac_lib_var=no"
16287 LIBS="$ac_save_LIBS"
16290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16291 echo "$ac_t""yes" 1>&6
16294 echo "$ac_t""no" 1>&6
16299 if test $have_lwp = yes ; then
16300 cat >> confdefs.h <<\EOF
16304 LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
16305 ol_link_threads=lwp
16307 if test $ol_with_yielding_select = auto ; then
16308 ol_with_yielding_select=no
16314 if test $ol_with_yielding_select = yes ; then
16315 cat >> confdefs.h <<\EOF
16316 #define HAVE_YIELDING_SELECT 1
16321 if test $ol_with_threads = manual ; then
16322 ol_link_threads=yes
16324 echo "configure: warning: thread defines and link options must be set manually" 1>&2
16326 for ac_hdr in pthread.h sched.h
16328 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16329 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16330 echo "configure:16331: checking for $ac_hdr" >&5
16331 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16332 echo $ac_n "(cached) $ac_c" 1>&6
16334 cat > conftest.$ac_ext <<EOF
16335 #line 16336 "configure"
16336 #include "confdefs.h"
16339 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16340 { (eval echo configure:16341: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16341 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16342 if test -z "$ac_err"; then
16344 eval "ac_cv_header_$ac_safe=yes"
16347 echo "configure: failed program was:" >&5
16348 cat conftest.$ac_ext >&5
16350 eval "ac_cv_header_$ac_safe=no"
16354 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16355 echo "$ac_t""yes" 1>&6
16356 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16357 cat >> confdefs.h <<EOF
16358 #define $ac_tr_hdr 1
16362 echo "$ac_t""no" 1>&6
16366 for ac_func in sched_yield pthread_yield
16368 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16369 echo "configure:16370: checking for $ac_func" >&5
16370 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16371 echo $ac_n "(cached) $ac_c" 1>&6
16373 cat > conftest.$ac_ext <<EOF
16374 #line 16375 "configure"
16375 #include "confdefs.h"
16376 /* System header to define __stub macros and hopefully few prototypes,
16377 which can conflict with char $ac_func(); below. */
16378 #include <assert.h>
16379 /* Override any gcc2 internal prototype to avoid an error. */
16380 /* We use char because int might match the return type of a gcc2
16381 builtin and then its argument prototype would still apply. */
16387 /* The GNU C library defines this for functions which it implements
16388 to always fail with ENOSYS. Some functions are actually named
16389 something starting with __ and the normal name is an alias. */
16390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16398 if { (eval echo configure:16399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16400 eval "ac_cv_func_$ac_func=yes"
16402 echo "configure: failed program was:" >&5
16403 cat conftest.$ac_ext >&5
16405 eval "ac_cv_func_$ac_func=no"
16410 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16411 echo "$ac_t""yes" 1>&6
16412 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16413 cat >> confdefs.h <<EOF
16414 #define $ac_tr_func 1
16418 echo "$ac_t""no" 1>&6
16423 echo $ac_n "checking for LinuxThreads pthread.h""... $ac_c" 1>&6
16424 echo "configure:16425: checking for LinuxThreads pthread.h" >&5
16425 if eval "test \"\${ol_cv_header_linux_threads+set}\" = set"; then
16426 echo $ac_n "(cached) $ac_c" 1>&6
16428 cat > conftest.$ac_ext <<EOF
16429 #line 16430 "configure"
16430 #include "confdefs.h"
16431 #include <pthread.h>
16433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16434 egrep "pthread_kill_other_threads_np" >/dev/null 2>&1; then
16436 ol_cv_header_linux_threads=yes
16439 ol_cv_header_linux_threads=no
16446 echo "$ac_t""$ol_cv_header_linux_threads" 1>&6
16447 if test $ol_cv_header_linux_threads = yes; then
16448 cat >> confdefs.h <<\EOF
16449 #define HAVE_LINUX_THREADS 1
16455 for ac_hdr in mach/cthreads.h
16457 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16458 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16459 echo "configure:16460: checking for $ac_hdr" >&5
16460 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16461 echo $ac_n "(cached) $ac_c" 1>&6
16463 cat > conftest.$ac_ext <<EOF
16464 #line 16465 "configure"
16465 #include "confdefs.h"
16468 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16469 { (eval echo configure:16470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16470 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16471 if test -z "$ac_err"; then
16473 eval "ac_cv_header_$ac_safe=yes"
16476 echo "configure: failed program was:" >&5
16477 cat conftest.$ac_ext >&5
16479 eval "ac_cv_header_$ac_safe=no"
16483 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16484 echo "$ac_t""yes" 1>&6
16485 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16486 cat >> confdefs.h <<EOF
16487 #define $ac_tr_hdr 1
16491 echo "$ac_t""no" 1>&6
16495 for ac_hdr in lwp/lwp.h
16497 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16498 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16499 echo "configure:16500: checking for $ac_hdr" >&5
16500 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16501 echo $ac_n "(cached) $ac_c" 1>&6
16503 cat > conftest.$ac_ext <<EOF
16504 #line 16505 "configure"
16505 #include "confdefs.h"
16508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16509 { (eval echo configure:16510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16510 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16511 if test -z "$ac_err"; then
16513 eval "ac_cv_header_$ac_safe=yes"
16516 echo "configure: failed program was:" >&5
16517 cat conftest.$ac_ext >&5
16519 eval "ac_cv_header_$ac_safe=no"
16523 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16524 echo "$ac_t""yes" 1>&6
16525 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16526 cat >> confdefs.h <<EOF
16527 #define $ac_tr_hdr 1
16531 echo "$ac_t""no" 1>&6
16535 for ac_hdr in thread.h synch.h
16537 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16538 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16539 echo "configure:16540: checking for $ac_hdr" >&5
16540 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
16541 echo $ac_n "(cached) $ac_c" 1>&6
16543 cat > conftest.$ac_ext <<EOF
16544 #line 16545 "configure"
16545 #include "confdefs.h"
16548 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16549 { (eval echo configure:16550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16550 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16551 if test -z "$ac_err"; then
16553 eval "ac_cv_header_$ac_safe=yes"
16556 echo "configure: failed program was:" >&5
16557 cat conftest.$ac_ext >&5
16559 eval "ac_cv_header_$ac_safe=no"
16563 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16564 echo "$ac_t""yes" 1>&6
16565 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16566 cat >> confdefs.h <<EOF
16567 #define $ac_tr_hdr 1
16571 echo "$ac_t""no" 1>&6
16577 if test $ol_link_threads != no -a $ol_link_threads != nt ; then
16578 cat >> confdefs.h <<\EOF
16579 #define REENTRANT 1
16582 cat >> confdefs.h <<\EOF
16583 #define _REENTRANT 1
16586 cat >> confdefs.h <<\EOF
16587 #define THREAD_SAFE 1
16590 cat >> confdefs.h <<\EOF
16591 #define _THREAD_SAFE 1
16594 cat >> confdefs.h <<\EOF
16595 #define THREADSAFE 1
16598 cat >> confdefs.h <<\EOF
16599 #define _THREADSAFE 1
16602 cat >> confdefs.h <<\EOF
16603 #define _SGI_MP_SOURCE 1
16607 echo $ac_n "checking for thread specific errno""... $ac_c" 1>&6
16608 echo "configure:16609: checking for thread specific errno" >&5
16609 if eval "test \"\${ol_cv_errno_thread_specific+set}\" = set"; then
16610 echo $ac_n "(cached) $ac_c" 1>&6
16613 cat > conftest.$ac_ext <<EOF
16614 #line 16615 "configure"
16615 #include "confdefs.h"
16621 if { (eval echo configure:16622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16623 ol_cv_errno_thread_specific=yes
16625 echo "configure: failed program was:" >&5
16626 cat conftest.$ac_ext >&5
16628 ol_cv_errno_thread_specific=no
16634 echo "$ac_t""$ol_cv_errno_thread_specific" 1>&6
16636 echo $ac_n "checking for thread specific h_errno""... $ac_c" 1>&6
16637 echo "configure:16638: checking for thread specific h_errno" >&5
16638 if eval "test \"\${ol_cv_h_errno_thread_specific+set}\" = set"; then
16639 echo $ac_n "(cached) $ac_c" 1>&6
16642 cat > conftest.$ac_ext <<EOF
16643 #line 16644 "configure"
16644 #include "confdefs.h"
16650 if { (eval echo configure:16651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16652 ol_cv_h_errno_thread_specific=yes
16654 echo "configure: failed program was:" >&5
16655 cat conftest.$ac_ext >&5
16657 ol_cv_h_errno_thread_specific=no
16663 echo "$ac_t""$ol_cv_h_errno_thread_specific" 1>&6
16665 if test $ol_cv_errno_thread_specific != yes \
16666 -o $ol_cv_h_errno_thread_specific != yes ; then
16667 LIBS="$LTHREAD_LIBS $LIBS"
16673 if test $ol_link_threads = no ; then
16674 if test $ol_with_threads = yes ; then
16675 { echo "configure: error: no suitable thread support" 1>&2; exit 1; }
16678 if test $ol_with_threads = auto ; then
16679 echo "configure: warning: no suitable thread support, disabling threads" 1>&2
16683 cat >> confdefs.h <<\EOF
16684 #define NO_THREADS 1
16690 if test $ol_link_threads != no ; then
16691 cat >> confdefs.h <<\EOF
16692 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
16699 gethostbyname_r gethostbyaddr_r \
16702 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16703 echo "configure:16704: checking for $ac_func" >&5
16704 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
16705 echo $ac_n "(cached) $ac_c" 1>&6
16707 cat > conftest.$ac_ext <<EOF
16708 #line 16709 "configure"
16709 #include "confdefs.h"
16710 /* System header to define __stub macros and hopefully few prototypes,
16711 which can conflict with char $ac_func(); below. */
16712 #include <assert.h>
16713 /* Override any gcc2 internal prototype to avoid an error. */
16714 /* We use char because int might match the return type of a gcc2
16715 builtin and then its argument prototype would still apply. */
16721 /* The GNU C library defines this for functions which it implements
16722 to always fail with ENOSYS. Some functions are actually named
16723 something starting with __ and the normal name is an alias. */
16724 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16732 if { (eval echo configure:16733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16734 eval "ac_cv_func_$ac_func=yes"
16736 echo "configure: failed program was:" >&5
16737 cat conftest.$ac_ext >&5
16739 eval "ac_cv_func_$ac_func=no"
16744 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16745 echo "$ac_t""yes" 1>&6
16746 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16747 cat >> confdefs.h <<EOF
16748 #define $ac_tr_func 1
16752 echo "$ac_t""no" 1>&6
16757 if test "$ac_cv_func_ctime_r" = no ; then
16758 ol_cv_func_ctime_r_nargs=0
16760 echo $ac_n "checking number of arguments of ctime_r""... $ac_c" 1>&6
16761 echo "configure:16762: checking number of arguments of ctime_r" >&5
16762 if eval "test \"\${ol_cv_func_ctime_r_nargs+set}\" = set"; then
16763 echo $ac_n "(cached) $ac_c" 1>&6
16765 cat > conftest.$ac_ext <<EOF
16766 #line 16767 "configure"
16767 #include "confdefs.h"
16770 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
16773 if { (eval echo configure:16774: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16775 ol_cv_func_ctime_r_nargs3=yes
16777 echo "configure: failed program was:" >&5
16778 cat conftest.$ac_ext >&5
16780 ol_cv_func_ctime_r_nargs3=no
16784 cat > conftest.$ac_ext <<EOF
16785 #line 16786 "configure"
16786 #include "confdefs.h"
16789 time_t ti; char *buffer; ctime_r(&ti,buffer);
16792 if { (eval echo configure:16793: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16794 ol_cv_func_ctime_r_nargs2=yes
16796 echo "configure: failed program was:" >&5
16797 cat conftest.$ac_ext >&5
16799 ol_cv_func_ctime_r_nargs2=no
16803 if test $ol_cv_func_ctime_r_nargs3 = yes -a \
16804 $ol_cv_func_ctime_r_nargs2 = no ; then
16806 ol_cv_func_ctime_r_nargs=3
16808 elif test $ol_cv_func_ctime_r_nargs3 = no -a \
16809 $ol_cv_func_ctime_r_nargs2 = yes ; then
16811 ol_cv_func_ctime_r_nargs=2
16814 ol_cv_func_ctime_r_nargs=0
16819 echo "$ac_t""$ol_cv_func_ctime_r_nargs" 1>&6
16821 if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
16822 cat >> confdefs.h <<EOF
16823 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
16830 if test "$ac_cv_func_gethostbyname_r" = yes ; then
16831 echo $ac_n "checking number of arguments of gethostbyname_r""... $ac_c" 1>&6
16832 echo "configure:16833: checking number of arguments of gethostbyname_r" >&5
16833 if eval "test \"\${ol_cv_func_gethostbyname_r_nargs+set}\" = set"; then
16834 echo $ac_n "(cached) $ac_c" 1>&6
16836 cat > conftest.$ac_ext <<EOF
16837 #line 16838 "configure"
16838 #include "confdefs.h"
16839 #include <sys/types.h>
16840 #include <sys/socket.h>
16841 #include <netinet/in.h>
16843 #define BUFSIZE (sizeof(struct hostent)+10)
16845 struct hostent hent; char buffer[BUFSIZE];
16846 int bufsize=BUFSIZE;int h_errno;
16847 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
16848 buffer, bufsize, &h_errno);
16851 if { (eval echo configure:16852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16853 ol_cv_func_gethostbyname_r_nargs5=yes
16855 echo "configure: failed program was:" >&5
16856 cat conftest.$ac_ext >&5
16858 ol_cv_func_gethostbyname_r_nargs5=no
16862 cat > conftest.$ac_ext <<EOF
16863 #line 16864 "configure"
16864 #include "confdefs.h"
16865 #include <sys/types.h>
16866 #include <sys/socket.h>
16867 #include <netinet/in.h>
16869 #define BUFSIZE (sizeof(struct hostent)+10)
16871 struct hostent hent;struct hostent *rhent;
16872 char buffer[BUFSIZE];
16873 int bufsize=BUFSIZE;int h_errno;
16874 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
16878 if { (eval echo configure:16879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16880 ol_cv_func_gethostbyname_r_nargs6=yes
16882 echo "configure: failed program was:" >&5
16883 cat conftest.$ac_ext >&5
16885 ol_cv_func_gethostbyname_r_nargs6=no
16889 if test $ol_cv_func_gethostbyname_r_nargs5 = yes -a \
16890 $ol_cv_func_gethostbyname_r_nargs6 = no ; then
16892 ol_cv_func_gethostbyname_r_nargs=5
16894 elif test $ol_cv_func_gethostbyname_r_nargs5 = no -a \
16895 $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
16897 ol_cv_func_gethostbyname_r_nargs=6
16900 ol_cv_func_gethostbyname_r_nargs=0
16905 echo "$ac_t""$ol_cv_func_gethostbyname_r_nargs" 1>&6
16906 if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
16907 cat >> confdefs.h <<EOF
16908 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
16914 ol_cv_func_gethostbyname_r_nargs=0
16917 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
16918 echo $ac_n "checking number of arguments of gethostbyaddr_r""... $ac_c" 1>&6
16919 echo "configure:16920: checking number of arguments of gethostbyaddr_r" >&5
16920 if eval "test \"\${ol_cv_func_gethostbyaddr_r_nargs+set}\" = set"; then
16921 echo $ac_n "(cached) $ac_c" 1>&6
16923 cat > conftest.$ac_ext <<EOF
16924 #line 16925 "configure"
16925 #include "confdefs.h"
16926 #include <sys/types.h>
16927 #include <sys/socket.h>
16928 #include <netinet/in.h>
16930 #define BUFSIZE (sizeof(struct hostent)+10)
16932 struct hostent hent; char buffer[BUFSIZE];
16933 struct in_addr add;
16934 size_t alen=sizeof(struct in_addr);
16935 int bufsize=BUFSIZE;int h_errno;
16936 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16937 alen, AF_INET, &hent, buffer, bufsize, &h_errno);
16940 if { (eval echo configure:16941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16942 ol_cv_func_gethostbyaddr_r_nargs7=yes
16944 echo "configure: failed program was:" >&5
16945 cat conftest.$ac_ext >&5
16947 ol_cv_func_gethostbyaddr_r_nargs7=no
16951 cat > conftest.$ac_ext <<EOF
16952 #line 16953 "configure"
16953 #include "confdefs.h"
16954 #include <sys/types.h>
16955 #include <sys/socket.h>
16956 #include <netinet/in.h>
16958 #define BUFSIZE (sizeof(struct hostent)+10)
16960 struct hostent hent;
16961 struct hostent *rhent; char buffer[BUFSIZE];
16962 struct in_addr add;
16963 size_t alen=sizeof(struct in_addr);
16964 int bufsize=BUFSIZE;int h_errno;
16965 (void)gethostbyaddr_r( (void *)&(add.s_addr),
16966 alen, AF_INET, &hent, buffer, bufsize,
16970 if { (eval echo configure:16971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16972 ol_cv_func_gethostbyaddr_r_nargs8=yes
16974 echo "configure: failed program was:" >&5
16975 cat conftest.$ac_ext >&5
16977 ol_cv_func_gethostbyaddr_r_nargs8=no
16981 if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes -a \
16982 $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
16984 ol_cv_func_gethostbyaddr_r_nargs=7
16986 elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no -a \
16987 $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
16989 ol_cv_func_gethostbyaddr_r_nargs=8
16992 ol_cv_func_gethostbyaddr_r_nargs=0
16997 echo "$ac_t""$ol_cv_func_gethostbyaddr_r_nargs" 1>&6
16998 if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
16999 cat >> confdefs.h <<EOF
17000 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
17006 ol_cv_func_gethostbyaddr_r_nargs=0
17011 if test $ol_with_ldbm_api = auto \
17012 -o $ol_with_ldbm_api = berkeley \
17013 -o $ol_with_ldbm_api = bcompat ; then
17015 if test $ol_with_ldbm_api = bcompat; then \
17016 for ac_hdr in db_185.h db.h
17018 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17019 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17020 echo "configure:17021: checking for $ac_hdr" >&5
17021 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
17022 echo $ac_n "(cached) $ac_c" 1>&6
17024 cat > conftest.$ac_ext <<EOF
17025 #line 17026 "configure"
17026 #include "confdefs.h"
17029 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17030 { (eval echo configure:17031: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17031 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17032 if test -z "$ac_err"; then
17034 eval "ac_cv_header_$ac_safe=yes"
17037 echo "configure: failed program was:" >&5
17038 cat conftest.$ac_ext >&5
17040 eval "ac_cv_header_$ac_safe=no"
17044 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17045 echo "$ac_t""yes" 1>&6
17046 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17047 cat >> confdefs.h <<EOF
17048 #define $ac_tr_hdr 1
17052 echo "$ac_t""no" 1>&6
17056 if test $ac_cv_header_db_185_h = yes -o $ac_cv_header_db_h = yes; then
17057 echo $ac_n "checking if Berkeley DB header compatibility""... $ac_c" 1>&6
17058 echo "configure:17059: checking if Berkeley DB header compatibility" >&5
17059 if eval "test \"\${ol_cv_header_db1+set}\" = set"; then
17060 echo $ac_n "(cached) $ac_c" 1>&6
17063 cat > conftest.$ac_ext <<EOF
17064 #line 17065 "configure"
17065 #include "confdefs.h"
17068 # include <db_185.h>
17073 /* this check could be improved */
17074 #ifndef DB_VERSION_MAJOR
17075 # define DB_VERSION_MAJOR 1
17078 #if DB_VERSION_MAJOR == 1
17083 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17084 egrep "__db_version_1" >/dev/null 2>&1; then
17086 ol_cv_header_db1=yes
17089 ol_cv_header_db1=no
17095 echo "$ac_t""$ol_cv_header_db1" 1>&6
17097 if test $ol_cv_header_db1 = yes ; then
17099 if test $ol_cv_lib_db = no ; then
17100 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
17101 echo "configure:17102: checking for Berkeley DB link (default)" >&5
17102 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
17103 echo $ac_n "(cached) $ac_c" 1>&6
17108 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17110 cat > conftest.$ac_ext <<EOF
17111 #line 17112 "configure"
17112 #include "confdefs.h"
17114 #ifdef HAVE_DB_185_H
17115 # include <db_185.h>
17120 #ifndef DB_VERSION_MAJOR
17121 # define DB_VERSION_MAJOR 1
17125 #define NULL ((void*)0)
17130 #if DB_VERSION_MAJOR > 1
17133 int major, minor, patch;
17135 version = db_version( &major, &minor, &patch );
17137 if( major != DB_VERSION_MAJOR ||
17138 minor < DB_VERSION_MINOR )
17140 printf("Berkeley DB version mismatch\n"
17141 "\theader: %s\n\tlibrary: %s\n",
17142 DB_VERSION_STRING, version);
17148 #if DB_VERSION_MAJOR > 2
17149 db_env_create( NULL, 0 );
17150 #elif DB_VERSION_MAJOR > 1
17151 db_appexit( NULL );
17153 (void) dbopen( NULL, 0, 0, 0, NULL);
17158 if { (eval echo configure:17159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17162 echo "configure: failed program was:" >&5
17163 cat conftest.$ac_ext >&5
17173 echo "$ac_t""$ol_cv_db_none" 1>&6
17175 if test $ol_cv_db_none = yes ; then
17180 if test $ol_cv_lib_db = no ; then
17181 echo $ac_n "checking for Berkeley DB link (-ldb43)""... $ac_c" 1>&6
17182 echo "configure:17183: checking for Berkeley DB link (-ldb43)" >&5
17183 if eval "test \"\${ol_cv_db_db43+set}\" = set"; then
17184 echo $ac_n "(cached) $ac_c" 1>&6
17189 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17191 cat > conftest.$ac_ext <<EOF
17192 #line 17193 "configure"
17193 #include "confdefs.h"
17195 #ifdef HAVE_DB_185_H
17196 # include <db_185.h>
17201 #ifndef DB_VERSION_MAJOR
17202 # define DB_VERSION_MAJOR 1
17206 #define NULL ((void*)0)
17211 #if DB_VERSION_MAJOR > 1
17214 int major, minor, patch;
17216 version = db_version( &major, &minor, &patch );
17218 if( major != DB_VERSION_MAJOR ||
17219 minor < DB_VERSION_MINOR )
17221 printf("Berkeley DB version mismatch\n"
17222 "\theader: %s\n\tlibrary: %s\n",
17223 DB_VERSION_STRING, version);
17229 #if DB_VERSION_MAJOR > 2
17230 db_env_create( NULL, 0 );
17231 #elif DB_VERSION_MAJOR > 1
17232 db_appexit( NULL );
17234 (void) dbopen( NULL, 0, 0, 0, NULL);
17239 if { (eval echo configure:17240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17243 echo "configure: failed program was:" >&5
17244 cat conftest.$ac_ext >&5
17254 echo "$ac_t""$ol_cv_db_db43" 1>&6
17256 if test $ol_cv_db_db43 = yes ; then
17257 ol_cv_lib_db=-ldb43
17261 if test $ol_cv_lib_db = no ; then
17262 echo $ac_n "checking for Berkeley DB link (-ldb-43)""... $ac_c" 1>&6
17263 echo "configure:17264: checking for Berkeley DB link (-ldb-43)" >&5
17264 if eval "test \"\${ol_cv_db_db_43+set}\" = set"; then
17265 echo $ac_n "(cached) $ac_c" 1>&6
17270 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17272 cat > conftest.$ac_ext <<EOF
17273 #line 17274 "configure"
17274 #include "confdefs.h"
17276 #ifdef HAVE_DB_185_H
17277 # include <db_185.h>
17282 #ifndef DB_VERSION_MAJOR
17283 # define DB_VERSION_MAJOR 1
17287 #define NULL ((void*)0)
17292 #if DB_VERSION_MAJOR > 1
17295 int major, minor, patch;
17297 version = db_version( &major, &minor, &patch );
17299 if( major != DB_VERSION_MAJOR ||
17300 minor < DB_VERSION_MINOR )
17302 printf("Berkeley DB version mismatch\n"
17303 "\theader: %s\n\tlibrary: %s\n",
17304 DB_VERSION_STRING, version);
17310 #if DB_VERSION_MAJOR > 2
17311 db_env_create( NULL, 0 );
17312 #elif DB_VERSION_MAJOR > 1
17313 db_appexit( NULL );
17315 (void) dbopen( NULL, 0, 0, 0, NULL);
17320 if { (eval echo configure:17321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17324 echo "configure: failed program was:" >&5
17325 cat conftest.$ac_ext >&5
17335 echo "$ac_t""$ol_cv_db_db_43" 1>&6
17337 if test $ol_cv_db_db_43 = yes ; then
17338 ol_cv_lib_db=-ldb-43
17342 if test $ol_cv_lib_db = no ; then
17343 echo $ac_n "checking for Berkeley DB link (-ldb-4.3)""... $ac_c" 1>&6
17344 echo "configure:17345: checking for Berkeley DB link (-ldb-4.3)" >&5
17345 if eval "test \"\${ol_cv_db_db_4_dot_3+set}\" = set"; then
17346 echo $ac_n "(cached) $ac_c" 1>&6
17351 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17353 cat > conftest.$ac_ext <<EOF
17354 #line 17355 "configure"
17355 #include "confdefs.h"
17357 #ifdef HAVE_DB_185_H
17358 # include <db_185.h>
17363 #ifndef DB_VERSION_MAJOR
17364 # define DB_VERSION_MAJOR 1
17368 #define NULL ((void*)0)
17373 #if DB_VERSION_MAJOR > 1
17376 int major, minor, patch;
17378 version = db_version( &major, &minor, &patch );
17380 if( major != DB_VERSION_MAJOR ||
17381 minor < DB_VERSION_MINOR )
17383 printf("Berkeley DB version mismatch\n"
17384 "\theader: %s\n\tlibrary: %s\n",
17385 DB_VERSION_STRING, version);
17391 #if DB_VERSION_MAJOR > 2
17392 db_env_create( NULL, 0 );
17393 #elif DB_VERSION_MAJOR > 1
17394 db_appexit( NULL );
17396 (void) dbopen( NULL, 0, 0, 0, NULL);
17401 if { (eval echo configure:17402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17403 ol_cv_db_db_4_dot_3=yes
17405 echo "configure: failed program was:" >&5
17406 cat conftest.$ac_ext >&5
17408 ol_cv_db_db_4_dot_3=no
17416 echo "$ac_t""$ol_cv_db_db_4_dot_3" 1>&6
17418 if test $ol_cv_db_db_4_dot_3 = yes ; then
17419 ol_cv_lib_db=-ldb-4.3
17423 if test $ol_cv_lib_db = no ; then
17424 echo $ac_n "checking for Berkeley DB link (-ldb-4-3)""... $ac_c" 1>&6
17425 echo "configure:17426: checking for Berkeley DB link (-ldb-4-3)" >&5
17426 if eval "test \"\${ol_cv_db_db_4_3+set}\" = set"; then
17427 echo $ac_n "(cached) $ac_c" 1>&6
17432 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17434 cat > conftest.$ac_ext <<EOF
17435 #line 17436 "configure"
17436 #include "confdefs.h"
17438 #ifdef HAVE_DB_185_H
17439 # include <db_185.h>
17444 #ifndef DB_VERSION_MAJOR
17445 # define DB_VERSION_MAJOR 1
17449 #define NULL ((void*)0)
17454 #if DB_VERSION_MAJOR > 1
17457 int major, minor, patch;
17459 version = db_version( &major, &minor, &patch );
17461 if( major != DB_VERSION_MAJOR ||
17462 minor < DB_VERSION_MINOR )
17464 printf("Berkeley DB version mismatch\n"
17465 "\theader: %s\n\tlibrary: %s\n",
17466 DB_VERSION_STRING, version);
17472 #if DB_VERSION_MAJOR > 2
17473 db_env_create( NULL, 0 );
17474 #elif DB_VERSION_MAJOR > 1
17475 db_appexit( NULL );
17477 (void) dbopen( NULL, 0, 0, 0, NULL);
17482 if { (eval echo configure:17483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17484 ol_cv_db_db_4_3=yes
17486 echo "configure: failed program was:" >&5
17487 cat conftest.$ac_ext >&5
17497 echo "$ac_t""$ol_cv_db_db_4_3" 1>&6
17499 if test $ol_cv_db_db_4_3 = yes ; then
17500 ol_cv_lib_db=-ldb-4-3
17504 if test $ol_cv_lib_db = no ; then
17505 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
17506 echo "configure:17507: checking for Berkeley DB link (-ldb42)" >&5
17507 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
17508 echo $ac_n "(cached) $ac_c" 1>&6
17513 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17515 cat > conftest.$ac_ext <<EOF
17516 #line 17517 "configure"
17517 #include "confdefs.h"
17519 #ifdef HAVE_DB_185_H
17520 # include <db_185.h>
17525 #ifndef DB_VERSION_MAJOR
17526 # define DB_VERSION_MAJOR 1
17530 #define NULL ((void*)0)
17535 #if DB_VERSION_MAJOR > 1
17538 int major, minor, patch;
17540 version = db_version( &major, &minor, &patch );
17542 if( major != DB_VERSION_MAJOR ||
17543 minor < DB_VERSION_MINOR )
17545 printf("Berkeley DB version mismatch\n"
17546 "\theader: %s\n\tlibrary: %s\n",
17547 DB_VERSION_STRING, version);
17553 #if DB_VERSION_MAJOR > 2
17554 db_env_create( NULL, 0 );
17555 #elif DB_VERSION_MAJOR > 1
17556 db_appexit( NULL );
17558 (void) dbopen( NULL, 0, 0, 0, NULL);
17563 if { (eval echo configure:17564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17567 echo "configure: failed program was:" >&5
17568 cat conftest.$ac_ext >&5
17578 echo "$ac_t""$ol_cv_db_db42" 1>&6
17580 if test $ol_cv_db_db42 = yes ; then
17581 ol_cv_lib_db=-ldb42
17585 if test $ol_cv_lib_db = no ; then
17586 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
17587 echo "configure:17588: checking for Berkeley DB link (-ldb-42)" >&5
17588 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
17589 echo $ac_n "(cached) $ac_c" 1>&6
17594 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17596 cat > conftest.$ac_ext <<EOF
17597 #line 17598 "configure"
17598 #include "confdefs.h"
17600 #ifdef HAVE_DB_185_H
17601 # include <db_185.h>
17606 #ifndef DB_VERSION_MAJOR
17607 # define DB_VERSION_MAJOR 1
17611 #define NULL ((void*)0)
17616 #if DB_VERSION_MAJOR > 1
17619 int major, minor, patch;
17621 version = db_version( &major, &minor, &patch );
17623 if( major != DB_VERSION_MAJOR ||
17624 minor < DB_VERSION_MINOR )
17626 printf("Berkeley DB version mismatch\n"
17627 "\theader: %s\n\tlibrary: %s\n",
17628 DB_VERSION_STRING, version);
17634 #if DB_VERSION_MAJOR > 2
17635 db_env_create( NULL, 0 );
17636 #elif DB_VERSION_MAJOR > 1
17637 db_appexit( NULL );
17639 (void) dbopen( NULL, 0, 0, 0, NULL);
17644 if { (eval echo configure:17645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17648 echo "configure: failed program was:" >&5
17649 cat conftest.$ac_ext >&5
17659 echo "$ac_t""$ol_cv_db_db_42" 1>&6
17661 if test $ol_cv_db_db_42 = yes ; then
17662 ol_cv_lib_db=-ldb-42
17666 if test $ol_cv_lib_db = no ; then
17667 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
17668 echo "configure:17669: checking for Berkeley DB link (-ldb-4.2)" >&5
17669 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
17670 echo $ac_n "(cached) $ac_c" 1>&6
17675 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17677 cat > conftest.$ac_ext <<EOF
17678 #line 17679 "configure"
17679 #include "confdefs.h"
17681 #ifdef HAVE_DB_185_H
17682 # include <db_185.h>
17687 #ifndef DB_VERSION_MAJOR
17688 # define DB_VERSION_MAJOR 1
17692 #define NULL ((void*)0)
17697 #if DB_VERSION_MAJOR > 1
17700 int major, minor, patch;
17702 version = db_version( &major, &minor, &patch );
17704 if( major != DB_VERSION_MAJOR ||
17705 minor < DB_VERSION_MINOR )
17707 printf("Berkeley DB version mismatch\n"
17708 "\theader: %s\n\tlibrary: %s\n",
17709 DB_VERSION_STRING, version);
17715 #if DB_VERSION_MAJOR > 2
17716 db_env_create( NULL, 0 );
17717 #elif DB_VERSION_MAJOR > 1
17718 db_appexit( NULL );
17720 (void) dbopen( NULL, 0, 0, 0, NULL);
17725 if { (eval echo configure:17726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17727 ol_cv_db_db_4_dot_2=yes
17729 echo "configure: failed program was:" >&5
17730 cat conftest.$ac_ext >&5
17732 ol_cv_db_db_4_dot_2=no
17740 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
17742 if test $ol_cv_db_db_4_dot_2 = yes ; then
17743 ol_cv_lib_db=-ldb-4.2
17747 if test $ol_cv_lib_db = no ; then
17748 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
17749 echo "configure:17750: checking for Berkeley DB link (-ldb-4-2)" >&5
17750 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
17751 echo $ac_n "(cached) $ac_c" 1>&6
17756 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17758 cat > conftest.$ac_ext <<EOF
17759 #line 17760 "configure"
17760 #include "confdefs.h"
17762 #ifdef HAVE_DB_185_H
17763 # include <db_185.h>
17768 #ifndef DB_VERSION_MAJOR
17769 # define DB_VERSION_MAJOR 1
17773 #define NULL ((void*)0)
17778 #if DB_VERSION_MAJOR > 1
17781 int major, minor, patch;
17783 version = db_version( &major, &minor, &patch );
17785 if( major != DB_VERSION_MAJOR ||
17786 minor < DB_VERSION_MINOR )
17788 printf("Berkeley DB version mismatch\n"
17789 "\theader: %s\n\tlibrary: %s\n",
17790 DB_VERSION_STRING, version);
17796 #if DB_VERSION_MAJOR > 2
17797 db_env_create( NULL, 0 );
17798 #elif DB_VERSION_MAJOR > 1
17799 db_appexit( NULL );
17801 (void) dbopen( NULL, 0, 0, 0, NULL);
17806 if { (eval echo configure:17807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17808 ol_cv_db_db_4_2=yes
17810 echo "configure: failed program was:" >&5
17811 cat conftest.$ac_ext >&5
17821 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
17823 if test $ol_cv_db_db_4_2 = yes ; then
17824 ol_cv_lib_db=-ldb-4-2
17828 if test $ol_cv_lib_db = no ; then
17829 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
17830 echo "configure:17831: checking for Berkeley DB link (-ldb-4)" >&5
17831 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
17832 echo $ac_n "(cached) $ac_c" 1>&6
17837 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17839 cat > conftest.$ac_ext <<EOF
17840 #line 17841 "configure"
17841 #include "confdefs.h"
17843 #ifdef HAVE_DB_185_H
17844 # include <db_185.h>
17849 #ifndef DB_VERSION_MAJOR
17850 # define DB_VERSION_MAJOR 1
17854 #define NULL ((void*)0)
17859 #if DB_VERSION_MAJOR > 1
17862 int major, minor, patch;
17864 version = db_version( &major, &minor, &patch );
17866 if( major != DB_VERSION_MAJOR ||
17867 minor < DB_VERSION_MINOR )
17869 printf("Berkeley DB version mismatch\n"
17870 "\theader: %s\n\tlibrary: %s\n",
17871 DB_VERSION_STRING, version);
17877 #if DB_VERSION_MAJOR > 2
17878 db_env_create( NULL, 0 );
17879 #elif DB_VERSION_MAJOR > 1
17880 db_appexit( NULL );
17882 (void) dbopen( NULL, 0, 0, 0, NULL);
17887 if { (eval echo configure:17888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17891 echo "configure: failed program was:" >&5
17892 cat conftest.$ac_ext >&5
17902 echo "$ac_t""$ol_cv_db_db_4" 1>&6
17904 if test $ol_cv_db_db_4 = yes ; then
17905 ol_cv_lib_db=-ldb-4
17909 if test $ol_cv_lib_db = no ; then
17910 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
17911 echo "configure:17912: checking for Berkeley DB link (-ldb4)" >&5
17912 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
17913 echo $ac_n "(cached) $ac_c" 1>&6
17918 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
17920 cat > conftest.$ac_ext <<EOF
17921 #line 17922 "configure"
17922 #include "confdefs.h"
17924 #ifdef HAVE_DB_185_H
17925 # include <db_185.h>
17930 #ifndef DB_VERSION_MAJOR
17931 # define DB_VERSION_MAJOR 1
17935 #define NULL ((void*)0)
17940 #if DB_VERSION_MAJOR > 1
17943 int major, minor, patch;
17945 version = db_version( &major, &minor, &patch );
17947 if( major != DB_VERSION_MAJOR ||
17948 minor < DB_VERSION_MINOR )
17950 printf("Berkeley DB version mismatch\n"
17951 "\theader: %s\n\tlibrary: %s\n",
17952 DB_VERSION_STRING, version);
17958 #if DB_VERSION_MAJOR > 2
17959 db_env_create( NULL, 0 );
17960 #elif DB_VERSION_MAJOR > 1
17961 db_appexit( NULL );
17963 (void) dbopen( NULL, 0, 0, 0, NULL);
17968 if { (eval echo configure:17969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17972 echo "configure: failed program was:" >&5
17973 cat conftest.$ac_ext >&5
17983 echo "$ac_t""$ol_cv_db_db4" 1>&6
17985 if test $ol_cv_db_db4 = yes ; then
17990 if test $ol_cv_lib_db = no ; then
17991 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
17992 echo "configure:17993: checking for Berkeley DB link (-ldb)" >&5
17993 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
17994 echo $ac_n "(cached) $ac_c" 1>&6
17999 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18001 cat > conftest.$ac_ext <<EOF
18002 #line 18003 "configure"
18003 #include "confdefs.h"
18005 #ifdef HAVE_DB_185_H
18006 # include <db_185.h>
18011 #ifndef DB_VERSION_MAJOR
18012 # define DB_VERSION_MAJOR 1
18016 #define NULL ((void*)0)
18021 #if DB_VERSION_MAJOR > 1
18024 int major, minor, patch;
18026 version = db_version( &major, &minor, &patch );
18028 if( major != DB_VERSION_MAJOR ||
18029 minor < DB_VERSION_MINOR )
18031 printf("Berkeley DB version mismatch\n"
18032 "\theader: %s\n\tlibrary: %s\n",
18033 DB_VERSION_STRING, version);
18039 #if DB_VERSION_MAJOR > 2
18040 db_env_create( NULL, 0 );
18041 #elif DB_VERSION_MAJOR > 1
18042 db_appexit( NULL );
18044 (void) dbopen( NULL, 0, 0, 0, NULL);
18049 if { (eval echo configure:18050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18053 echo "configure: failed program was:" >&5
18054 cat conftest.$ac_ext >&5
18064 echo "$ac_t""$ol_cv_db_db" 1>&6
18066 if test $ol_cv_db_db = yes ; then
18071 if test $ol_cv_lib_db = no ; then
18072 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
18073 echo "configure:18074: checking for Berkeley DB link (-ldb41)" >&5
18074 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
18075 echo $ac_n "(cached) $ac_c" 1>&6
18080 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18082 cat > conftest.$ac_ext <<EOF
18083 #line 18084 "configure"
18084 #include "confdefs.h"
18086 #ifdef HAVE_DB_185_H
18087 # include <db_185.h>
18092 #ifndef DB_VERSION_MAJOR
18093 # define DB_VERSION_MAJOR 1
18097 #define NULL ((void*)0)
18102 #if DB_VERSION_MAJOR > 1
18105 int major, minor, patch;
18107 version = db_version( &major, &minor, &patch );
18109 if( major != DB_VERSION_MAJOR ||
18110 minor < DB_VERSION_MINOR )
18112 printf("Berkeley DB version mismatch\n"
18113 "\theader: %s\n\tlibrary: %s\n",
18114 DB_VERSION_STRING, version);
18120 #if DB_VERSION_MAJOR > 2
18121 db_env_create( NULL, 0 );
18122 #elif DB_VERSION_MAJOR > 1
18123 db_appexit( NULL );
18125 (void) dbopen( NULL, 0, 0, 0, NULL);
18130 if { (eval echo configure:18131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18134 echo "configure: failed program was:" >&5
18135 cat conftest.$ac_ext >&5
18145 echo "$ac_t""$ol_cv_db_db41" 1>&6
18147 if test $ol_cv_db_db41 = yes ; then
18148 ol_cv_lib_db=-ldb41
18152 if test $ol_cv_lib_db = no ; then
18153 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
18154 echo "configure:18155: checking for Berkeley DB link (-ldb-41)" >&5
18155 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
18156 echo $ac_n "(cached) $ac_c" 1>&6
18161 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18163 cat > conftest.$ac_ext <<EOF
18164 #line 18165 "configure"
18165 #include "confdefs.h"
18167 #ifdef HAVE_DB_185_H
18168 # include <db_185.h>
18173 #ifndef DB_VERSION_MAJOR
18174 # define DB_VERSION_MAJOR 1
18178 #define NULL ((void*)0)
18183 #if DB_VERSION_MAJOR > 1
18186 int major, minor, patch;
18188 version = db_version( &major, &minor, &patch );
18190 if( major != DB_VERSION_MAJOR ||
18191 minor < DB_VERSION_MINOR )
18193 printf("Berkeley DB version mismatch\n"
18194 "\theader: %s\n\tlibrary: %s\n",
18195 DB_VERSION_STRING, version);
18201 #if DB_VERSION_MAJOR > 2
18202 db_env_create( NULL, 0 );
18203 #elif DB_VERSION_MAJOR > 1
18204 db_appexit( NULL );
18206 (void) dbopen( NULL, 0, 0, 0, NULL);
18211 if { (eval echo configure:18212: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18215 echo "configure: failed program was:" >&5
18216 cat conftest.$ac_ext >&5
18226 echo "$ac_t""$ol_cv_db_db_41" 1>&6
18228 if test $ol_cv_db_db_41 = yes ; then
18229 ol_cv_lib_db=-ldb-41
18233 if test $ol_cv_lib_db = no ; then
18234 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
18235 echo "configure:18236: checking for Berkeley DB link (-ldb-4.1)" >&5
18236 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
18237 echo $ac_n "(cached) $ac_c" 1>&6
18242 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18244 cat > conftest.$ac_ext <<EOF
18245 #line 18246 "configure"
18246 #include "confdefs.h"
18248 #ifdef HAVE_DB_185_H
18249 # include <db_185.h>
18254 #ifndef DB_VERSION_MAJOR
18255 # define DB_VERSION_MAJOR 1
18259 #define NULL ((void*)0)
18264 #if DB_VERSION_MAJOR > 1
18267 int major, minor, patch;
18269 version = db_version( &major, &minor, &patch );
18271 if( major != DB_VERSION_MAJOR ||
18272 minor < DB_VERSION_MINOR )
18274 printf("Berkeley DB version mismatch\n"
18275 "\theader: %s\n\tlibrary: %s\n",
18276 DB_VERSION_STRING, version);
18282 #if DB_VERSION_MAJOR > 2
18283 db_env_create( NULL, 0 );
18284 #elif DB_VERSION_MAJOR > 1
18285 db_appexit( NULL );
18287 (void) dbopen( NULL, 0, 0, 0, NULL);
18292 if { (eval echo configure:18293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18294 ol_cv_db_db_4_dot_1=yes
18296 echo "configure: failed program was:" >&5
18297 cat conftest.$ac_ext >&5
18299 ol_cv_db_db_4_dot_1=no
18307 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
18309 if test $ol_cv_db_db_4_dot_1 = yes ; then
18310 ol_cv_lib_db=-ldb-4.1
18314 if test $ol_cv_lib_db = no ; then
18315 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
18316 echo "configure:18317: checking for Berkeley DB link (-ldb-4-1)" >&5
18317 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
18318 echo $ac_n "(cached) $ac_c" 1>&6
18323 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18325 cat > conftest.$ac_ext <<EOF
18326 #line 18327 "configure"
18327 #include "confdefs.h"
18329 #ifdef HAVE_DB_185_H
18330 # include <db_185.h>
18335 #ifndef DB_VERSION_MAJOR
18336 # define DB_VERSION_MAJOR 1
18340 #define NULL ((void*)0)
18345 #if DB_VERSION_MAJOR > 1
18348 int major, minor, patch;
18350 version = db_version( &major, &minor, &patch );
18352 if( major != DB_VERSION_MAJOR ||
18353 minor < DB_VERSION_MINOR )
18355 printf("Berkeley DB version mismatch\n"
18356 "\theader: %s\n\tlibrary: %s\n",
18357 DB_VERSION_STRING, version);
18363 #if DB_VERSION_MAJOR > 2
18364 db_env_create( NULL, 0 );
18365 #elif DB_VERSION_MAJOR > 1
18366 db_appexit( NULL );
18368 (void) dbopen( NULL, 0, 0, 0, NULL);
18373 if { (eval echo configure:18374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18375 ol_cv_db_db_4_1=yes
18377 echo "configure: failed program was:" >&5
18378 cat conftest.$ac_ext >&5
18388 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
18390 if test $ol_cv_db_db_4_1 = yes ; then
18391 ol_cv_lib_db=-ldb-4-1
18395 if test $ol_cv_lib_db = no ; then
18396 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
18397 echo "configure:18398: checking for Berkeley DB link (-ldb3)" >&5
18398 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
18399 echo $ac_n "(cached) $ac_c" 1>&6
18404 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18406 cat > conftest.$ac_ext <<EOF
18407 #line 18408 "configure"
18408 #include "confdefs.h"
18410 #ifdef HAVE_DB_185_H
18411 # include <db_185.h>
18416 #ifndef DB_VERSION_MAJOR
18417 # define DB_VERSION_MAJOR 1
18421 #define NULL ((void*)0)
18426 #if DB_VERSION_MAJOR > 1
18429 int major, minor, patch;
18431 version = db_version( &major, &minor, &patch );
18433 if( major != DB_VERSION_MAJOR ||
18434 minor < DB_VERSION_MINOR )
18436 printf("Berkeley DB version mismatch\n"
18437 "\theader: %s\n\tlibrary: %s\n",
18438 DB_VERSION_STRING, version);
18444 #if DB_VERSION_MAJOR > 2
18445 db_env_create( NULL, 0 );
18446 #elif DB_VERSION_MAJOR > 1
18447 db_appexit( NULL );
18449 (void) dbopen( NULL, 0, 0, 0, NULL);
18454 if { (eval echo configure:18455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18458 echo "configure: failed program was:" >&5
18459 cat conftest.$ac_ext >&5
18469 echo "$ac_t""$ol_cv_db_db3" 1>&6
18471 if test $ol_cv_db_db3 = yes ; then
18476 if test $ol_cv_lib_db = no ; then
18477 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
18478 echo "configure:18479: checking for Berkeley DB link (-ldb-3)" >&5
18479 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
18480 echo $ac_n "(cached) $ac_c" 1>&6
18485 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18487 cat > conftest.$ac_ext <<EOF
18488 #line 18489 "configure"
18489 #include "confdefs.h"
18491 #ifdef HAVE_DB_185_H
18492 # include <db_185.h>
18497 #ifndef DB_VERSION_MAJOR
18498 # define DB_VERSION_MAJOR 1
18502 #define NULL ((void*)0)
18507 #if DB_VERSION_MAJOR > 1
18510 int major, minor, patch;
18512 version = db_version( &major, &minor, &patch );
18514 if( major != DB_VERSION_MAJOR ||
18515 minor < DB_VERSION_MINOR )
18517 printf("Berkeley DB version mismatch\n"
18518 "\theader: %s\n\tlibrary: %s\n",
18519 DB_VERSION_STRING, version);
18525 #if DB_VERSION_MAJOR > 2
18526 db_env_create( NULL, 0 );
18527 #elif DB_VERSION_MAJOR > 1
18528 db_appexit( NULL );
18530 (void) dbopen( NULL, 0, 0, 0, NULL);
18535 if { (eval echo configure:18536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18539 echo "configure: failed program was:" >&5
18540 cat conftest.$ac_ext >&5
18550 echo "$ac_t""$ol_cv_db_db_3" 1>&6
18552 if test $ol_cv_db_db_3 = yes ; then
18553 ol_cv_lib_db=-ldb-3
18557 if test $ol_cv_lib_db = no ; then
18558 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
18559 echo "configure:18560: checking for Berkeley DB link (-ldb2)" >&5
18560 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
18561 echo $ac_n "(cached) $ac_c" 1>&6
18566 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18568 cat > conftest.$ac_ext <<EOF
18569 #line 18570 "configure"
18570 #include "confdefs.h"
18572 #ifdef HAVE_DB_185_H
18573 # include <db_185.h>
18578 #ifndef DB_VERSION_MAJOR
18579 # define DB_VERSION_MAJOR 1
18583 #define NULL ((void*)0)
18588 #if DB_VERSION_MAJOR > 1
18591 int major, minor, patch;
18593 version = db_version( &major, &minor, &patch );
18595 if( major != DB_VERSION_MAJOR ||
18596 minor < DB_VERSION_MINOR )
18598 printf("Berkeley DB version mismatch\n"
18599 "\theader: %s\n\tlibrary: %s\n",
18600 DB_VERSION_STRING, version);
18606 #if DB_VERSION_MAJOR > 2
18607 db_env_create( NULL, 0 );
18608 #elif DB_VERSION_MAJOR > 1
18609 db_appexit( NULL );
18611 (void) dbopen( NULL, 0, 0, 0, NULL);
18616 if { (eval echo configure:18617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18620 echo "configure: failed program was:" >&5
18621 cat conftest.$ac_ext >&5
18631 echo "$ac_t""$ol_cv_db_db2" 1>&6
18633 if test $ol_cv_db_db2 = yes ; then
18638 if test $ol_cv_lib_db = no ; then
18639 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
18640 echo "configure:18641: checking for Berkeley DB link (-ldb-2)" >&5
18641 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
18642 echo $ac_n "(cached) $ac_c" 1>&6
18647 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18649 cat > conftest.$ac_ext <<EOF
18650 #line 18651 "configure"
18651 #include "confdefs.h"
18653 #ifdef HAVE_DB_185_H
18654 # include <db_185.h>
18659 #ifndef DB_VERSION_MAJOR
18660 # define DB_VERSION_MAJOR 1
18664 #define NULL ((void*)0)
18669 #if DB_VERSION_MAJOR > 1
18672 int major, minor, patch;
18674 version = db_version( &major, &minor, &patch );
18676 if( major != DB_VERSION_MAJOR ||
18677 minor < DB_VERSION_MINOR )
18679 printf("Berkeley DB version mismatch\n"
18680 "\theader: %s\n\tlibrary: %s\n",
18681 DB_VERSION_STRING, version);
18687 #if DB_VERSION_MAJOR > 2
18688 db_env_create( NULL, 0 );
18689 #elif DB_VERSION_MAJOR > 1
18690 db_appexit( NULL );
18692 (void) dbopen( NULL, 0, 0, 0, NULL);
18697 if { (eval echo configure:18698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18701 echo "configure: failed program was:" >&5
18702 cat conftest.$ac_ext >&5
18712 echo "$ac_t""$ol_cv_db_db_2" 1>&6
18714 if test $ol_cv_db_db_2 = yes ; then
18715 ol_cv_lib_db=-ldb-2
18719 if test $ol_cv_lib_db = no ; then
18720 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
18721 echo "configure:18722: checking for Berkeley DB link (-ldb1)" >&5
18722 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
18723 echo $ac_n "(cached) $ac_c" 1>&6
18728 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18730 cat > conftest.$ac_ext <<EOF
18731 #line 18732 "configure"
18732 #include "confdefs.h"
18734 #ifdef HAVE_DB_185_H
18735 # include <db_185.h>
18740 #ifndef DB_VERSION_MAJOR
18741 # define DB_VERSION_MAJOR 1
18745 #define NULL ((void*)0)
18750 #if DB_VERSION_MAJOR > 1
18753 int major, minor, patch;
18755 version = db_version( &major, &minor, &patch );
18757 if( major != DB_VERSION_MAJOR ||
18758 minor < DB_VERSION_MINOR )
18760 printf("Berkeley DB version mismatch\n"
18761 "\theader: %s\n\tlibrary: %s\n",
18762 DB_VERSION_STRING, version);
18768 #if DB_VERSION_MAJOR > 2
18769 db_env_create( NULL, 0 );
18770 #elif DB_VERSION_MAJOR > 1
18771 db_appexit( NULL );
18773 (void) dbopen( NULL, 0, 0, 0, NULL);
18778 if { (eval echo configure:18779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18782 echo "configure: failed program was:" >&5
18783 cat conftest.$ac_ext >&5
18793 echo "$ac_t""$ol_cv_db_db1" 1>&6
18795 if test $ol_cv_db_db1 = yes ; then
18800 if test $ol_cv_lib_db = no ; then
18801 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
18802 echo "configure:18803: checking for Berkeley DB link (-ldb-1)" >&5
18803 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
18804 echo $ac_n "(cached) $ac_c" 1>&6
18809 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18811 cat > conftest.$ac_ext <<EOF
18812 #line 18813 "configure"
18813 #include "confdefs.h"
18815 #ifdef HAVE_DB_185_H
18816 # include <db_185.h>
18821 #ifndef DB_VERSION_MAJOR
18822 # define DB_VERSION_MAJOR 1
18826 #define NULL ((void*)0)
18831 #if DB_VERSION_MAJOR > 1
18834 int major, minor, patch;
18836 version = db_version( &major, &minor, &patch );
18838 if( major != DB_VERSION_MAJOR ||
18839 minor < DB_VERSION_MINOR )
18841 printf("Berkeley DB version mismatch\n"
18842 "\theader: %s\n\tlibrary: %s\n",
18843 DB_VERSION_STRING, version);
18849 #if DB_VERSION_MAJOR > 2
18850 db_env_create( NULL, 0 );
18851 #elif DB_VERSION_MAJOR > 1
18852 db_appexit( NULL );
18854 (void) dbopen( NULL, 0, 0, 0, NULL);
18859 if { (eval echo configure:18860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18863 echo "configure: failed program was:" >&5
18864 cat conftest.$ac_ext >&5
18874 echo "$ac_t""$ol_cv_db_db_1" 1>&6
18876 if test $ol_cv_db_db_1 = yes ; then
18877 ol_cv_lib_db=-ldb-1
18882 if test "$ol_cv_lib_db" != no ; then
18883 ol_cv_berkeley_db=yes
18889 ol_cv_berkeley_db=no
18892 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18893 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18894 echo "configure:18895: checking for $ac_hdr" >&5
18895 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
18896 echo $ac_n "(cached) $ac_c" 1>&6
18898 cat > conftest.$ac_ext <<EOF
18899 #line 18900 "configure"
18900 #include "confdefs.h"
18903 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18904 { (eval echo configure:18905: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18905 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18906 if test -z "$ac_err"; then
18908 eval "ac_cv_header_$ac_safe=yes"
18911 echo "configure: failed program was:" >&5
18912 cat conftest.$ac_ext >&5
18914 eval "ac_cv_header_$ac_safe=no"
18918 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18919 echo "$ac_t""yes" 1>&6
18920 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18921 cat >> confdefs.h <<EOF
18922 #define $ac_tr_hdr 1
18926 echo "$ac_t""no" 1>&6
18930 if test $ac_cv_header_db_h = yes; then
18932 if test $ol_cv_lib_db = no ; then
18933 echo $ac_n "checking for Berkeley DB link (default)""... $ac_c" 1>&6
18934 echo "configure:18935: checking for Berkeley DB link (default)" >&5
18935 if eval "test \"\${ol_cv_db_none+set}\" = set"; then
18936 echo $ac_n "(cached) $ac_c" 1>&6
18941 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
18943 cat > conftest.$ac_ext <<EOF
18944 #line 18945 "configure"
18945 #include "confdefs.h"
18947 #ifdef HAVE_DB_185_H
18948 # include <db_185.h>
18953 #ifndef DB_VERSION_MAJOR
18954 # define DB_VERSION_MAJOR 1
18958 #define NULL ((void*)0)
18963 #if DB_VERSION_MAJOR > 1
18966 int major, minor, patch;
18968 version = db_version( &major, &minor, &patch );
18970 if( major != DB_VERSION_MAJOR ||
18971 minor < DB_VERSION_MINOR )
18973 printf("Berkeley DB version mismatch\n"
18974 "\theader: %s\n\tlibrary: %s\n",
18975 DB_VERSION_STRING, version);
18981 #if DB_VERSION_MAJOR > 2
18982 db_env_create( NULL, 0 );
18983 #elif DB_VERSION_MAJOR > 1
18984 db_appexit( NULL );
18986 (void) dbopen( NULL, 0, 0, 0, NULL);
18991 if { (eval echo configure:18992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18995 echo "configure: failed program was:" >&5
18996 cat conftest.$ac_ext >&5
19006 echo "$ac_t""$ol_cv_db_none" 1>&6
19008 if test $ol_cv_db_none = yes ; then
19013 if test $ol_cv_lib_db = no ; then
19014 echo $ac_n "checking for Berkeley DB link (-ldb43)""... $ac_c" 1>&6
19015 echo "configure:19016: checking for Berkeley DB link (-ldb43)" >&5
19016 if eval "test \"\${ol_cv_db_db43+set}\" = set"; then
19017 echo $ac_n "(cached) $ac_c" 1>&6
19022 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19024 cat > conftest.$ac_ext <<EOF
19025 #line 19026 "configure"
19026 #include "confdefs.h"
19028 #ifdef HAVE_DB_185_H
19029 # include <db_185.h>
19034 #ifndef DB_VERSION_MAJOR
19035 # define DB_VERSION_MAJOR 1
19039 #define NULL ((void*)0)
19044 #if DB_VERSION_MAJOR > 1
19047 int major, minor, patch;
19049 version = db_version( &major, &minor, &patch );
19051 if( major != DB_VERSION_MAJOR ||
19052 minor < DB_VERSION_MINOR )
19054 printf("Berkeley DB version mismatch\n"
19055 "\theader: %s\n\tlibrary: %s\n",
19056 DB_VERSION_STRING, version);
19062 #if DB_VERSION_MAJOR > 2
19063 db_env_create( NULL, 0 );
19064 #elif DB_VERSION_MAJOR > 1
19065 db_appexit( NULL );
19067 (void) dbopen( NULL, 0, 0, 0, NULL);
19072 if { (eval echo configure:19073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19076 echo "configure: failed program was:" >&5
19077 cat conftest.$ac_ext >&5
19087 echo "$ac_t""$ol_cv_db_db43" 1>&6
19089 if test $ol_cv_db_db43 = yes ; then
19090 ol_cv_lib_db=-ldb43
19094 if test $ol_cv_lib_db = no ; then
19095 echo $ac_n "checking for Berkeley DB link (-ldb-43)""... $ac_c" 1>&6
19096 echo "configure:19097: checking for Berkeley DB link (-ldb-43)" >&5
19097 if eval "test \"\${ol_cv_db_db_43+set}\" = set"; then
19098 echo $ac_n "(cached) $ac_c" 1>&6
19103 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19105 cat > conftest.$ac_ext <<EOF
19106 #line 19107 "configure"
19107 #include "confdefs.h"
19109 #ifdef HAVE_DB_185_H
19110 # include <db_185.h>
19115 #ifndef DB_VERSION_MAJOR
19116 # define DB_VERSION_MAJOR 1
19120 #define NULL ((void*)0)
19125 #if DB_VERSION_MAJOR > 1
19128 int major, minor, patch;
19130 version = db_version( &major, &minor, &patch );
19132 if( major != DB_VERSION_MAJOR ||
19133 minor < DB_VERSION_MINOR )
19135 printf("Berkeley DB version mismatch\n"
19136 "\theader: %s\n\tlibrary: %s\n",
19137 DB_VERSION_STRING, version);
19143 #if DB_VERSION_MAJOR > 2
19144 db_env_create( NULL, 0 );
19145 #elif DB_VERSION_MAJOR > 1
19146 db_appexit( NULL );
19148 (void) dbopen( NULL, 0, 0, 0, NULL);
19153 if { (eval echo configure:19154: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19157 echo "configure: failed program was:" >&5
19158 cat conftest.$ac_ext >&5
19168 echo "$ac_t""$ol_cv_db_db_43" 1>&6
19170 if test $ol_cv_db_db_43 = yes ; then
19171 ol_cv_lib_db=-ldb-43
19175 if test $ol_cv_lib_db = no ; then
19176 echo $ac_n "checking for Berkeley DB link (-ldb-4.3)""... $ac_c" 1>&6
19177 echo "configure:19178: checking for Berkeley DB link (-ldb-4.3)" >&5
19178 if eval "test \"\${ol_cv_db_db_4_dot_3+set}\" = set"; then
19179 echo $ac_n "(cached) $ac_c" 1>&6
19184 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19186 cat > conftest.$ac_ext <<EOF
19187 #line 19188 "configure"
19188 #include "confdefs.h"
19190 #ifdef HAVE_DB_185_H
19191 # include <db_185.h>
19196 #ifndef DB_VERSION_MAJOR
19197 # define DB_VERSION_MAJOR 1
19201 #define NULL ((void*)0)
19206 #if DB_VERSION_MAJOR > 1
19209 int major, minor, patch;
19211 version = db_version( &major, &minor, &patch );
19213 if( major != DB_VERSION_MAJOR ||
19214 minor < DB_VERSION_MINOR )
19216 printf("Berkeley DB version mismatch\n"
19217 "\theader: %s\n\tlibrary: %s\n",
19218 DB_VERSION_STRING, version);
19224 #if DB_VERSION_MAJOR > 2
19225 db_env_create( NULL, 0 );
19226 #elif DB_VERSION_MAJOR > 1
19227 db_appexit( NULL );
19229 (void) dbopen( NULL, 0, 0, 0, NULL);
19234 if { (eval echo configure:19235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19236 ol_cv_db_db_4_dot_3=yes
19238 echo "configure: failed program was:" >&5
19239 cat conftest.$ac_ext >&5
19241 ol_cv_db_db_4_dot_3=no
19249 echo "$ac_t""$ol_cv_db_db_4_dot_3" 1>&6
19251 if test $ol_cv_db_db_4_dot_3 = yes ; then
19252 ol_cv_lib_db=-ldb-4.3
19256 if test $ol_cv_lib_db = no ; then
19257 echo $ac_n "checking for Berkeley DB link (-ldb-4-3)""... $ac_c" 1>&6
19258 echo "configure:19259: checking for Berkeley DB link (-ldb-4-3)" >&5
19259 if eval "test \"\${ol_cv_db_db_4_3+set}\" = set"; then
19260 echo $ac_n "(cached) $ac_c" 1>&6
19265 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19267 cat > conftest.$ac_ext <<EOF
19268 #line 19269 "configure"
19269 #include "confdefs.h"
19271 #ifdef HAVE_DB_185_H
19272 # include <db_185.h>
19277 #ifndef DB_VERSION_MAJOR
19278 # define DB_VERSION_MAJOR 1
19282 #define NULL ((void*)0)
19287 #if DB_VERSION_MAJOR > 1
19290 int major, minor, patch;
19292 version = db_version( &major, &minor, &patch );
19294 if( major != DB_VERSION_MAJOR ||
19295 minor < DB_VERSION_MINOR )
19297 printf("Berkeley DB version mismatch\n"
19298 "\theader: %s\n\tlibrary: %s\n",
19299 DB_VERSION_STRING, version);
19305 #if DB_VERSION_MAJOR > 2
19306 db_env_create( NULL, 0 );
19307 #elif DB_VERSION_MAJOR > 1
19308 db_appexit( NULL );
19310 (void) dbopen( NULL, 0, 0, 0, NULL);
19315 if { (eval echo configure:19316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19317 ol_cv_db_db_4_3=yes
19319 echo "configure: failed program was:" >&5
19320 cat conftest.$ac_ext >&5
19330 echo "$ac_t""$ol_cv_db_db_4_3" 1>&6
19332 if test $ol_cv_db_db_4_3 = yes ; then
19333 ol_cv_lib_db=-ldb-4-3
19337 if test $ol_cv_lib_db = no ; then
19338 echo $ac_n "checking for Berkeley DB link (-ldb42)""... $ac_c" 1>&6
19339 echo "configure:19340: checking for Berkeley DB link (-ldb42)" >&5
19340 if eval "test \"\${ol_cv_db_db42+set}\" = set"; then
19341 echo $ac_n "(cached) $ac_c" 1>&6
19346 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19348 cat > conftest.$ac_ext <<EOF
19349 #line 19350 "configure"
19350 #include "confdefs.h"
19352 #ifdef HAVE_DB_185_H
19353 # include <db_185.h>
19358 #ifndef DB_VERSION_MAJOR
19359 # define DB_VERSION_MAJOR 1
19363 #define NULL ((void*)0)
19368 #if DB_VERSION_MAJOR > 1
19371 int major, minor, patch;
19373 version = db_version( &major, &minor, &patch );
19375 if( major != DB_VERSION_MAJOR ||
19376 minor < DB_VERSION_MINOR )
19378 printf("Berkeley DB version mismatch\n"
19379 "\theader: %s\n\tlibrary: %s\n",
19380 DB_VERSION_STRING, version);
19386 #if DB_VERSION_MAJOR > 2
19387 db_env_create( NULL, 0 );
19388 #elif DB_VERSION_MAJOR > 1
19389 db_appexit( NULL );
19391 (void) dbopen( NULL, 0, 0, 0, NULL);
19396 if { (eval echo configure:19397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19400 echo "configure: failed program was:" >&5
19401 cat conftest.$ac_ext >&5
19411 echo "$ac_t""$ol_cv_db_db42" 1>&6
19413 if test $ol_cv_db_db42 = yes ; then
19414 ol_cv_lib_db=-ldb42
19418 if test $ol_cv_lib_db = no ; then
19419 echo $ac_n "checking for Berkeley DB link (-ldb-42)""... $ac_c" 1>&6
19420 echo "configure:19421: checking for Berkeley DB link (-ldb-42)" >&5
19421 if eval "test \"\${ol_cv_db_db_42+set}\" = set"; then
19422 echo $ac_n "(cached) $ac_c" 1>&6
19427 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19429 cat > conftest.$ac_ext <<EOF
19430 #line 19431 "configure"
19431 #include "confdefs.h"
19433 #ifdef HAVE_DB_185_H
19434 # include <db_185.h>
19439 #ifndef DB_VERSION_MAJOR
19440 # define DB_VERSION_MAJOR 1
19444 #define NULL ((void*)0)
19449 #if DB_VERSION_MAJOR > 1
19452 int major, minor, patch;
19454 version = db_version( &major, &minor, &patch );
19456 if( major != DB_VERSION_MAJOR ||
19457 minor < DB_VERSION_MINOR )
19459 printf("Berkeley DB version mismatch\n"
19460 "\theader: %s\n\tlibrary: %s\n",
19461 DB_VERSION_STRING, version);
19467 #if DB_VERSION_MAJOR > 2
19468 db_env_create( NULL, 0 );
19469 #elif DB_VERSION_MAJOR > 1
19470 db_appexit( NULL );
19472 (void) dbopen( NULL, 0, 0, 0, NULL);
19477 if { (eval echo configure:19478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19481 echo "configure: failed program was:" >&5
19482 cat conftest.$ac_ext >&5
19492 echo "$ac_t""$ol_cv_db_db_42" 1>&6
19494 if test $ol_cv_db_db_42 = yes ; then
19495 ol_cv_lib_db=-ldb-42
19499 if test $ol_cv_lib_db = no ; then
19500 echo $ac_n "checking for Berkeley DB link (-ldb-4.2)""... $ac_c" 1>&6
19501 echo "configure:19502: checking for Berkeley DB link (-ldb-4.2)" >&5
19502 if eval "test \"\${ol_cv_db_db_4_dot_2+set}\" = set"; then
19503 echo $ac_n "(cached) $ac_c" 1>&6
19508 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19510 cat > conftest.$ac_ext <<EOF
19511 #line 19512 "configure"
19512 #include "confdefs.h"
19514 #ifdef HAVE_DB_185_H
19515 # include <db_185.h>
19520 #ifndef DB_VERSION_MAJOR
19521 # define DB_VERSION_MAJOR 1
19525 #define NULL ((void*)0)
19530 #if DB_VERSION_MAJOR > 1
19533 int major, minor, patch;
19535 version = db_version( &major, &minor, &patch );
19537 if( major != DB_VERSION_MAJOR ||
19538 minor < DB_VERSION_MINOR )
19540 printf("Berkeley DB version mismatch\n"
19541 "\theader: %s\n\tlibrary: %s\n",
19542 DB_VERSION_STRING, version);
19548 #if DB_VERSION_MAJOR > 2
19549 db_env_create( NULL, 0 );
19550 #elif DB_VERSION_MAJOR > 1
19551 db_appexit( NULL );
19553 (void) dbopen( NULL, 0, 0, 0, NULL);
19558 if { (eval echo configure:19559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19560 ol_cv_db_db_4_dot_2=yes
19562 echo "configure: failed program was:" >&5
19563 cat conftest.$ac_ext >&5
19565 ol_cv_db_db_4_dot_2=no
19573 echo "$ac_t""$ol_cv_db_db_4_dot_2" 1>&6
19575 if test $ol_cv_db_db_4_dot_2 = yes ; then
19576 ol_cv_lib_db=-ldb-4.2
19580 if test $ol_cv_lib_db = no ; then
19581 echo $ac_n "checking for Berkeley DB link (-ldb-4-2)""... $ac_c" 1>&6
19582 echo "configure:19583: checking for Berkeley DB link (-ldb-4-2)" >&5
19583 if eval "test \"\${ol_cv_db_db_4_2+set}\" = set"; then
19584 echo $ac_n "(cached) $ac_c" 1>&6
19589 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19591 cat > conftest.$ac_ext <<EOF
19592 #line 19593 "configure"
19593 #include "confdefs.h"
19595 #ifdef HAVE_DB_185_H
19596 # include <db_185.h>
19601 #ifndef DB_VERSION_MAJOR
19602 # define DB_VERSION_MAJOR 1
19606 #define NULL ((void*)0)
19611 #if DB_VERSION_MAJOR > 1
19614 int major, minor, patch;
19616 version = db_version( &major, &minor, &patch );
19618 if( major != DB_VERSION_MAJOR ||
19619 minor < DB_VERSION_MINOR )
19621 printf("Berkeley DB version mismatch\n"
19622 "\theader: %s\n\tlibrary: %s\n",
19623 DB_VERSION_STRING, version);
19629 #if DB_VERSION_MAJOR > 2
19630 db_env_create( NULL, 0 );
19631 #elif DB_VERSION_MAJOR > 1
19632 db_appexit( NULL );
19634 (void) dbopen( NULL, 0, 0, 0, NULL);
19639 if { (eval echo configure:19640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19641 ol_cv_db_db_4_2=yes
19643 echo "configure: failed program was:" >&5
19644 cat conftest.$ac_ext >&5
19654 echo "$ac_t""$ol_cv_db_db_4_2" 1>&6
19656 if test $ol_cv_db_db_4_2 = yes ; then
19657 ol_cv_lib_db=-ldb-4-2
19661 if test $ol_cv_lib_db = no ; then
19662 echo $ac_n "checking for Berkeley DB link (-ldb-4)""... $ac_c" 1>&6
19663 echo "configure:19664: checking for Berkeley DB link (-ldb-4)" >&5
19664 if eval "test \"\${ol_cv_db_db_4+set}\" = set"; then
19665 echo $ac_n "(cached) $ac_c" 1>&6
19670 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19672 cat > conftest.$ac_ext <<EOF
19673 #line 19674 "configure"
19674 #include "confdefs.h"
19676 #ifdef HAVE_DB_185_H
19677 # include <db_185.h>
19682 #ifndef DB_VERSION_MAJOR
19683 # define DB_VERSION_MAJOR 1
19687 #define NULL ((void*)0)
19692 #if DB_VERSION_MAJOR > 1
19695 int major, minor, patch;
19697 version = db_version( &major, &minor, &patch );
19699 if( major != DB_VERSION_MAJOR ||
19700 minor < DB_VERSION_MINOR )
19702 printf("Berkeley DB version mismatch\n"
19703 "\theader: %s\n\tlibrary: %s\n",
19704 DB_VERSION_STRING, version);
19710 #if DB_VERSION_MAJOR > 2
19711 db_env_create( NULL, 0 );
19712 #elif DB_VERSION_MAJOR > 1
19713 db_appexit( NULL );
19715 (void) dbopen( NULL, 0, 0, 0, NULL);
19720 if { (eval echo configure:19721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19724 echo "configure: failed program was:" >&5
19725 cat conftest.$ac_ext >&5
19735 echo "$ac_t""$ol_cv_db_db_4" 1>&6
19737 if test $ol_cv_db_db_4 = yes ; then
19738 ol_cv_lib_db=-ldb-4
19742 if test $ol_cv_lib_db = no ; then
19743 echo $ac_n "checking for Berkeley DB link (-ldb4)""... $ac_c" 1>&6
19744 echo "configure:19745: checking for Berkeley DB link (-ldb4)" >&5
19745 if eval "test \"\${ol_cv_db_db4+set}\" = set"; then
19746 echo $ac_n "(cached) $ac_c" 1>&6
19751 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19753 cat > conftest.$ac_ext <<EOF
19754 #line 19755 "configure"
19755 #include "confdefs.h"
19757 #ifdef HAVE_DB_185_H
19758 # include <db_185.h>
19763 #ifndef DB_VERSION_MAJOR
19764 # define DB_VERSION_MAJOR 1
19768 #define NULL ((void*)0)
19773 #if DB_VERSION_MAJOR > 1
19776 int major, minor, patch;
19778 version = db_version( &major, &minor, &patch );
19780 if( major != DB_VERSION_MAJOR ||
19781 minor < DB_VERSION_MINOR )
19783 printf("Berkeley DB version mismatch\n"
19784 "\theader: %s\n\tlibrary: %s\n",
19785 DB_VERSION_STRING, version);
19791 #if DB_VERSION_MAJOR > 2
19792 db_env_create( NULL, 0 );
19793 #elif DB_VERSION_MAJOR > 1
19794 db_appexit( NULL );
19796 (void) dbopen( NULL, 0, 0, 0, NULL);
19801 if { (eval echo configure:19802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19805 echo "configure: failed program was:" >&5
19806 cat conftest.$ac_ext >&5
19816 echo "$ac_t""$ol_cv_db_db4" 1>&6
19818 if test $ol_cv_db_db4 = yes ; then
19823 if test $ol_cv_lib_db = no ; then
19824 echo $ac_n "checking for Berkeley DB link (-ldb)""... $ac_c" 1>&6
19825 echo "configure:19826: checking for Berkeley DB link (-ldb)" >&5
19826 if eval "test \"\${ol_cv_db_db+set}\" = set"; then
19827 echo $ac_n "(cached) $ac_c" 1>&6
19832 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19834 cat > conftest.$ac_ext <<EOF
19835 #line 19836 "configure"
19836 #include "confdefs.h"
19838 #ifdef HAVE_DB_185_H
19839 # include <db_185.h>
19844 #ifndef DB_VERSION_MAJOR
19845 # define DB_VERSION_MAJOR 1
19849 #define NULL ((void*)0)
19854 #if DB_VERSION_MAJOR > 1
19857 int major, minor, patch;
19859 version = db_version( &major, &minor, &patch );
19861 if( major != DB_VERSION_MAJOR ||
19862 minor < DB_VERSION_MINOR )
19864 printf("Berkeley DB version mismatch\n"
19865 "\theader: %s\n\tlibrary: %s\n",
19866 DB_VERSION_STRING, version);
19872 #if DB_VERSION_MAJOR > 2
19873 db_env_create( NULL, 0 );
19874 #elif DB_VERSION_MAJOR > 1
19875 db_appexit( NULL );
19877 (void) dbopen( NULL, 0, 0, 0, NULL);
19882 if { (eval echo configure:19883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19886 echo "configure: failed program was:" >&5
19887 cat conftest.$ac_ext >&5
19897 echo "$ac_t""$ol_cv_db_db" 1>&6
19899 if test $ol_cv_db_db = yes ; then
19904 if test $ol_cv_lib_db = no ; then
19905 echo $ac_n "checking for Berkeley DB link (-ldb41)""... $ac_c" 1>&6
19906 echo "configure:19907: checking for Berkeley DB link (-ldb41)" >&5
19907 if eval "test \"\${ol_cv_db_db41+set}\" = set"; then
19908 echo $ac_n "(cached) $ac_c" 1>&6
19913 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19915 cat > conftest.$ac_ext <<EOF
19916 #line 19917 "configure"
19917 #include "confdefs.h"
19919 #ifdef HAVE_DB_185_H
19920 # include <db_185.h>
19925 #ifndef DB_VERSION_MAJOR
19926 # define DB_VERSION_MAJOR 1
19930 #define NULL ((void*)0)
19935 #if DB_VERSION_MAJOR > 1
19938 int major, minor, patch;
19940 version = db_version( &major, &minor, &patch );
19942 if( major != DB_VERSION_MAJOR ||
19943 minor < DB_VERSION_MINOR )
19945 printf("Berkeley DB version mismatch\n"
19946 "\theader: %s\n\tlibrary: %s\n",
19947 DB_VERSION_STRING, version);
19953 #if DB_VERSION_MAJOR > 2
19954 db_env_create( NULL, 0 );
19955 #elif DB_VERSION_MAJOR > 1
19956 db_appexit( NULL );
19958 (void) dbopen( NULL, 0, 0, 0, NULL);
19963 if { (eval echo configure:19964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19967 echo "configure: failed program was:" >&5
19968 cat conftest.$ac_ext >&5
19978 echo "$ac_t""$ol_cv_db_db41" 1>&6
19980 if test $ol_cv_db_db41 = yes ; then
19981 ol_cv_lib_db=-ldb41
19985 if test $ol_cv_lib_db = no ; then
19986 echo $ac_n "checking for Berkeley DB link (-ldb-41)""... $ac_c" 1>&6
19987 echo "configure:19988: checking for Berkeley DB link (-ldb-41)" >&5
19988 if eval "test \"\${ol_cv_db_db_41+set}\" = set"; then
19989 echo $ac_n "(cached) $ac_c" 1>&6
19994 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
19996 cat > conftest.$ac_ext <<EOF
19997 #line 19998 "configure"
19998 #include "confdefs.h"
20000 #ifdef HAVE_DB_185_H
20001 # include <db_185.h>
20006 #ifndef DB_VERSION_MAJOR
20007 # define DB_VERSION_MAJOR 1
20011 #define NULL ((void*)0)
20016 #if DB_VERSION_MAJOR > 1
20019 int major, minor, patch;
20021 version = db_version( &major, &minor, &patch );
20023 if( major != DB_VERSION_MAJOR ||
20024 minor < DB_VERSION_MINOR )
20026 printf("Berkeley DB version mismatch\n"
20027 "\theader: %s\n\tlibrary: %s\n",
20028 DB_VERSION_STRING, version);
20034 #if DB_VERSION_MAJOR > 2
20035 db_env_create( NULL, 0 );
20036 #elif DB_VERSION_MAJOR > 1
20037 db_appexit( NULL );
20039 (void) dbopen( NULL, 0, 0, 0, NULL);
20044 if { (eval echo configure:20045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20048 echo "configure: failed program was:" >&5
20049 cat conftest.$ac_ext >&5
20059 echo "$ac_t""$ol_cv_db_db_41" 1>&6
20061 if test $ol_cv_db_db_41 = yes ; then
20062 ol_cv_lib_db=-ldb-41
20066 if test $ol_cv_lib_db = no ; then
20067 echo $ac_n "checking for Berkeley DB link (-ldb-4.1)""... $ac_c" 1>&6
20068 echo "configure:20069: checking for Berkeley DB link (-ldb-4.1)" >&5
20069 if eval "test \"\${ol_cv_db_db_4_dot_1+set}\" = set"; then
20070 echo $ac_n "(cached) $ac_c" 1>&6
20075 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20077 cat > conftest.$ac_ext <<EOF
20078 #line 20079 "configure"
20079 #include "confdefs.h"
20081 #ifdef HAVE_DB_185_H
20082 # include <db_185.h>
20087 #ifndef DB_VERSION_MAJOR
20088 # define DB_VERSION_MAJOR 1
20092 #define NULL ((void*)0)
20097 #if DB_VERSION_MAJOR > 1
20100 int major, minor, patch;
20102 version = db_version( &major, &minor, &patch );
20104 if( major != DB_VERSION_MAJOR ||
20105 minor < DB_VERSION_MINOR )
20107 printf("Berkeley DB version mismatch\n"
20108 "\theader: %s\n\tlibrary: %s\n",
20109 DB_VERSION_STRING, version);
20115 #if DB_VERSION_MAJOR > 2
20116 db_env_create( NULL, 0 );
20117 #elif DB_VERSION_MAJOR > 1
20118 db_appexit( NULL );
20120 (void) dbopen( NULL, 0, 0, 0, NULL);
20125 if { (eval echo configure:20126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20127 ol_cv_db_db_4_dot_1=yes
20129 echo "configure: failed program was:" >&5
20130 cat conftest.$ac_ext >&5
20132 ol_cv_db_db_4_dot_1=no
20140 echo "$ac_t""$ol_cv_db_db_4_dot_1" 1>&6
20142 if test $ol_cv_db_db_4_dot_1 = yes ; then
20143 ol_cv_lib_db=-ldb-4.1
20147 if test $ol_cv_lib_db = no ; then
20148 echo $ac_n "checking for Berkeley DB link (-ldb-4-1)""... $ac_c" 1>&6
20149 echo "configure:20150: checking for Berkeley DB link (-ldb-4-1)" >&5
20150 if eval "test \"\${ol_cv_db_db_4_1+set}\" = set"; then
20151 echo $ac_n "(cached) $ac_c" 1>&6
20156 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20158 cat > conftest.$ac_ext <<EOF
20159 #line 20160 "configure"
20160 #include "confdefs.h"
20162 #ifdef HAVE_DB_185_H
20163 # include <db_185.h>
20168 #ifndef DB_VERSION_MAJOR
20169 # define DB_VERSION_MAJOR 1
20173 #define NULL ((void*)0)
20178 #if DB_VERSION_MAJOR > 1
20181 int major, minor, patch;
20183 version = db_version( &major, &minor, &patch );
20185 if( major != DB_VERSION_MAJOR ||
20186 minor < DB_VERSION_MINOR )
20188 printf("Berkeley DB version mismatch\n"
20189 "\theader: %s\n\tlibrary: %s\n",
20190 DB_VERSION_STRING, version);
20196 #if DB_VERSION_MAJOR > 2
20197 db_env_create( NULL, 0 );
20198 #elif DB_VERSION_MAJOR > 1
20199 db_appexit( NULL );
20201 (void) dbopen( NULL, 0, 0, 0, NULL);
20206 if { (eval echo configure:20207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20208 ol_cv_db_db_4_1=yes
20210 echo "configure: failed program was:" >&5
20211 cat conftest.$ac_ext >&5
20221 echo "$ac_t""$ol_cv_db_db_4_1" 1>&6
20223 if test $ol_cv_db_db_4_1 = yes ; then
20224 ol_cv_lib_db=-ldb-4-1
20228 if test $ol_cv_lib_db = no ; then
20229 echo $ac_n "checking for Berkeley DB link (-ldb3)""... $ac_c" 1>&6
20230 echo "configure:20231: checking for Berkeley DB link (-ldb3)" >&5
20231 if eval "test \"\${ol_cv_db_db3+set}\" = set"; then
20232 echo $ac_n "(cached) $ac_c" 1>&6
20237 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20239 cat > conftest.$ac_ext <<EOF
20240 #line 20241 "configure"
20241 #include "confdefs.h"
20243 #ifdef HAVE_DB_185_H
20244 # include <db_185.h>
20249 #ifndef DB_VERSION_MAJOR
20250 # define DB_VERSION_MAJOR 1
20254 #define NULL ((void*)0)
20259 #if DB_VERSION_MAJOR > 1
20262 int major, minor, patch;
20264 version = db_version( &major, &minor, &patch );
20266 if( major != DB_VERSION_MAJOR ||
20267 minor < DB_VERSION_MINOR )
20269 printf("Berkeley DB version mismatch\n"
20270 "\theader: %s\n\tlibrary: %s\n",
20271 DB_VERSION_STRING, version);
20277 #if DB_VERSION_MAJOR > 2
20278 db_env_create( NULL, 0 );
20279 #elif DB_VERSION_MAJOR > 1
20280 db_appexit( NULL );
20282 (void) dbopen( NULL, 0, 0, 0, NULL);
20287 if { (eval echo configure:20288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20291 echo "configure: failed program was:" >&5
20292 cat conftest.$ac_ext >&5
20302 echo "$ac_t""$ol_cv_db_db3" 1>&6
20304 if test $ol_cv_db_db3 = yes ; then
20309 if test $ol_cv_lib_db = no ; then
20310 echo $ac_n "checking for Berkeley DB link (-ldb-3)""... $ac_c" 1>&6
20311 echo "configure:20312: checking for Berkeley DB link (-ldb-3)" >&5
20312 if eval "test \"\${ol_cv_db_db_3+set}\" = set"; then
20313 echo $ac_n "(cached) $ac_c" 1>&6
20318 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20320 cat > conftest.$ac_ext <<EOF
20321 #line 20322 "configure"
20322 #include "confdefs.h"
20324 #ifdef HAVE_DB_185_H
20325 # include <db_185.h>
20330 #ifndef DB_VERSION_MAJOR
20331 # define DB_VERSION_MAJOR 1
20335 #define NULL ((void*)0)
20340 #if DB_VERSION_MAJOR > 1
20343 int major, minor, patch;
20345 version = db_version( &major, &minor, &patch );
20347 if( major != DB_VERSION_MAJOR ||
20348 minor < DB_VERSION_MINOR )
20350 printf("Berkeley DB version mismatch\n"
20351 "\theader: %s\n\tlibrary: %s\n",
20352 DB_VERSION_STRING, version);
20358 #if DB_VERSION_MAJOR > 2
20359 db_env_create( NULL, 0 );
20360 #elif DB_VERSION_MAJOR > 1
20361 db_appexit( NULL );
20363 (void) dbopen( NULL, 0, 0, 0, NULL);
20368 if { (eval echo configure:20369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20372 echo "configure: failed program was:" >&5
20373 cat conftest.$ac_ext >&5
20383 echo "$ac_t""$ol_cv_db_db_3" 1>&6
20385 if test $ol_cv_db_db_3 = yes ; then
20386 ol_cv_lib_db=-ldb-3
20390 if test $ol_cv_lib_db = no ; then
20391 echo $ac_n "checking for Berkeley DB link (-ldb2)""... $ac_c" 1>&6
20392 echo "configure:20393: checking for Berkeley DB link (-ldb2)" >&5
20393 if eval "test \"\${ol_cv_db_db2+set}\" = set"; then
20394 echo $ac_n "(cached) $ac_c" 1>&6
20399 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20401 cat > conftest.$ac_ext <<EOF
20402 #line 20403 "configure"
20403 #include "confdefs.h"
20405 #ifdef HAVE_DB_185_H
20406 # include <db_185.h>
20411 #ifndef DB_VERSION_MAJOR
20412 # define DB_VERSION_MAJOR 1
20416 #define NULL ((void*)0)
20421 #if DB_VERSION_MAJOR > 1
20424 int major, minor, patch;
20426 version = db_version( &major, &minor, &patch );
20428 if( major != DB_VERSION_MAJOR ||
20429 minor < DB_VERSION_MINOR )
20431 printf("Berkeley DB version mismatch\n"
20432 "\theader: %s\n\tlibrary: %s\n",
20433 DB_VERSION_STRING, version);
20439 #if DB_VERSION_MAJOR > 2
20440 db_env_create( NULL, 0 );
20441 #elif DB_VERSION_MAJOR > 1
20442 db_appexit( NULL );
20444 (void) dbopen( NULL, 0, 0, 0, NULL);
20449 if { (eval echo configure:20450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20453 echo "configure: failed program was:" >&5
20454 cat conftest.$ac_ext >&5
20464 echo "$ac_t""$ol_cv_db_db2" 1>&6
20466 if test $ol_cv_db_db2 = yes ; then
20471 if test $ol_cv_lib_db = no ; then
20472 echo $ac_n "checking for Berkeley DB link (-ldb-2)""... $ac_c" 1>&6
20473 echo "configure:20474: checking for Berkeley DB link (-ldb-2)" >&5
20474 if eval "test \"\${ol_cv_db_db_2+set}\" = set"; then
20475 echo $ac_n "(cached) $ac_c" 1>&6
20480 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20482 cat > conftest.$ac_ext <<EOF
20483 #line 20484 "configure"
20484 #include "confdefs.h"
20486 #ifdef HAVE_DB_185_H
20487 # include <db_185.h>
20492 #ifndef DB_VERSION_MAJOR
20493 # define DB_VERSION_MAJOR 1
20497 #define NULL ((void*)0)
20502 #if DB_VERSION_MAJOR > 1
20505 int major, minor, patch;
20507 version = db_version( &major, &minor, &patch );
20509 if( major != DB_VERSION_MAJOR ||
20510 minor < DB_VERSION_MINOR )
20512 printf("Berkeley DB version mismatch\n"
20513 "\theader: %s\n\tlibrary: %s\n",
20514 DB_VERSION_STRING, version);
20520 #if DB_VERSION_MAJOR > 2
20521 db_env_create( NULL, 0 );
20522 #elif DB_VERSION_MAJOR > 1
20523 db_appexit( NULL );
20525 (void) dbopen( NULL, 0, 0, 0, NULL);
20530 if { (eval echo configure:20531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20534 echo "configure: failed program was:" >&5
20535 cat conftest.$ac_ext >&5
20545 echo "$ac_t""$ol_cv_db_db_2" 1>&6
20547 if test $ol_cv_db_db_2 = yes ; then
20548 ol_cv_lib_db=-ldb-2
20552 if test $ol_cv_lib_db = no ; then
20553 echo $ac_n "checking for Berkeley DB link (-ldb1)""... $ac_c" 1>&6
20554 echo "configure:20555: checking for Berkeley DB link (-ldb1)" >&5
20555 if eval "test \"\${ol_cv_db_db1+set}\" = set"; then
20556 echo $ac_n "(cached) $ac_c" 1>&6
20561 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20563 cat > conftest.$ac_ext <<EOF
20564 #line 20565 "configure"
20565 #include "confdefs.h"
20567 #ifdef HAVE_DB_185_H
20568 # include <db_185.h>
20573 #ifndef DB_VERSION_MAJOR
20574 # define DB_VERSION_MAJOR 1
20578 #define NULL ((void*)0)
20583 #if DB_VERSION_MAJOR > 1
20586 int major, minor, patch;
20588 version = db_version( &major, &minor, &patch );
20590 if( major != DB_VERSION_MAJOR ||
20591 minor < DB_VERSION_MINOR )
20593 printf("Berkeley DB version mismatch\n"
20594 "\theader: %s\n\tlibrary: %s\n",
20595 DB_VERSION_STRING, version);
20601 #if DB_VERSION_MAJOR > 2
20602 db_env_create( NULL, 0 );
20603 #elif DB_VERSION_MAJOR > 1
20604 db_appexit( NULL );
20606 (void) dbopen( NULL, 0, 0, 0, NULL);
20611 if { (eval echo configure:20612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20615 echo "configure: failed program was:" >&5
20616 cat conftest.$ac_ext >&5
20626 echo "$ac_t""$ol_cv_db_db1" 1>&6
20628 if test $ol_cv_db_db1 = yes ; then
20633 if test $ol_cv_lib_db = no ; then
20634 echo $ac_n "checking for Berkeley DB link (-ldb-1)""... $ac_c" 1>&6
20635 echo "configure:20636: checking for Berkeley DB link (-ldb-1)" >&5
20636 if eval "test \"\${ol_cv_db_db_1+set}\" = set"; then
20637 echo $ac_n "(cached) $ac_c" 1>&6
20642 LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
20644 cat > conftest.$ac_ext <<EOF
20645 #line 20646 "configure"
20646 #include "confdefs.h"
20648 #ifdef HAVE_DB_185_H
20649 # include <db_185.h>
20654 #ifndef DB_VERSION_MAJOR
20655 # define DB_VERSION_MAJOR 1
20659 #define NULL ((void*)0)
20664 #if DB_VERSION_MAJOR > 1
20667 int major, minor, patch;
20669 version = db_version( &major, &minor, &patch );
20671 if( major != DB_VERSION_MAJOR ||
20672 minor < DB_VERSION_MINOR )
20674 printf("Berkeley DB version mismatch\n"
20675 "\theader: %s\n\tlibrary: %s\n",
20676 DB_VERSION_STRING, version);
20682 #if DB_VERSION_MAJOR > 2
20683 db_env_create( NULL, 0 );
20684 #elif DB_VERSION_MAJOR > 1
20685 db_appexit( NULL );
20687 (void) dbopen( NULL, 0, 0, 0, NULL);
20692 if { (eval echo configure:20693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
20696 echo "configure: failed program was:" >&5
20697 cat conftest.$ac_ext >&5
20707 echo "$ac_t""$ol_cv_db_db_1" 1>&6
20709 if test $ol_cv_db_db_1 = yes ; then
20710 ol_cv_lib_db=-ldb-1
20715 if test "$ol_cv_lib_db" != no ; then
20716 ol_cv_berkeley_db=yes
20717 echo $ac_n "checking for Berkeley DB version match""... $ac_c" 1>&6
20718 echo "configure:20719: checking for Berkeley DB version match" >&5
20719 if eval "test \"\${ol_cv_berkeley_db_version+set}\" = set"; then
20720 echo $ac_n "(cached) $ac_c" 1>&6
20724 LIBS="$LTHREAD_LIBS $LIBS"
20725 if test $ol_cv_lib_db != yes ; then
20726 LIBS="$ol_cv_lib_db $LIBS"
20729 if test "$cross_compiling" = yes; then
20730 ol_cv_berkeley_db_version=cross
20732 cat > conftest.$ac_ext <<EOF
20733 #line 20734 "configure"
20734 #include "confdefs.h"
20736 #ifdef HAVE_DB_185_H
20741 #ifndef DB_VERSION_MAJOR
20742 # define DB_VERSION_MAJOR 1
20745 #define NULL ((void *)0)
20749 #if DB_VERSION_MAJOR > 1
20751 int major, minor, patch;
20753 version = db_version( &major, &minor, &patch );
20755 if( major != DB_VERSION_MAJOR || minor < DB_VERSION_MINOR ) {
20756 printf("Berkeley DB version mismatch\n"
20757 "\theader: %s\n\tlibrary: %s\n",
20758 DB_VERSION_STRING, version);
20766 if { (eval echo configure:20767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
20768 ol_cv_berkeley_db_version=yes
20770 echo "configure: failed program was:" >&5
20771 cat conftest.$ac_ext >&5
20773 ol_cv_berkeley_db_version=no
20783 echo "$ac_t""$ol_cv_berkeley_db_version" 1>&6
20785 if test $ol_cv_berkeley_db_version = no ; then
20786 { echo "configure: error: Berkeley DB version mismatch" 1>&2; exit 1; }
20789 echo $ac_n "checking for Berkeley DB thread support""... $ac_c" 1>&6
20790 echo "configure:20791: checking for Berkeley DB thread support" >&5
20791 if eval "test \"\${ol_cv_berkeley_db_thread+set}\" = set"; then
20792 echo $ac_n "(cached) $ac_c" 1>&6
20796 LIBS="$LTHREAD_LIBS $LIBS"
20797 if test $ol_cv_lib_db != yes ; then
20798 LIBS="$ol_cv_lib_db $LIBS"
20801 if test "$cross_compiling" = yes; then
20802 ol_cv_berkeley_db_thread=cross
20804 cat > conftest.$ac_ext <<EOF
20805 #line 20806 "configure"
20806 #include "confdefs.h"
20808 #ifdef HAVE_DB_185_H
20814 #define NULL ((void *)0)
20819 u_int32_t flags = DB_CREATE |
20825 #if DB_VERSION_MAJOR > 2
20826 DB_ENV *env = NULL;
20828 rc = db_env_create( &env, 0 );
20830 flags |= DB_INIT_MPOOL;
20831 #ifdef DB_MPOOL_PRIVATE
20832 flags |= DB_MPOOL_PRIVATE;
20836 printf("BerkeleyDB: %s\n", db_strerror(rc) );
20840 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
20841 rc = env->open( env, NULL, flags, 0 );
20843 rc = env->open( env, NULL, NULL, flags, 0 );
20847 rc = env->close( env, 0 );
20851 printf("BerkeleyDB: %s\n", db_strerror(rc) );
20857 memset( &env, '\0', sizeof(env) );
20859 rc = db_appinit( NULL, NULL, &env, flags );
20862 db_appexit( &env );
20865 unlink("__db_mpool.share");
20866 unlink("__db_lock.share");
20872 if { (eval echo configure:20873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
20874 ol_cv_berkeley_db_thread=yes
20876 echo "configure: failed program was:" >&5
20877 cat conftest.$ac_ext >&5
20879 ol_cv_berkeley_db_thread=no
20889 echo "$ac_t""$ol_cv_berkeley_db_thread" 1>&6
20891 if test $ol_cv_berkeley_db_thread != no ; then
20892 cat >> confdefs.h <<\EOF
20893 #define HAVE_BERKELEY_DB_THREAD 1
20903 if test $ol_cv_berkeley_db != no ; then
20904 cat >> confdefs.h <<\EOF
20905 #define HAVE_BERKELEY_DB 1
20909 ol_link_ldbm=berkeley
20910 ol_with_ldbm_api=berkeley
20912 if test $ol_with_ldbm_type = hash ; then
20913 cat >> confdefs.h <<\EOF
20914 #define LDBM_USE_DBHASH 1
20918 cat >> confdefs.h <<\EOF
20919 #define LDBM_USE_DBBTREE 1
20924 if test $ol_cv_lib_db != yes ; then
20925 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_db"
20930 if test $ol_enable_bdb != no -o $ol_enable_hdb != no; then
20931 if test $ol_link_ldbm != berkeley ; then
20932 { echo "configure: error: BDB/HDB: BerkeleyDB not available" 1>&2; exit 1; }
20934 echo $ac_n "checking Berkeley DB version for BDB backend""... $ac_c" 1>&6
20935 echo "configure:20936: checking Berkeley DB version for BDB backend" >&5
20936 if eval "test \"\${ol_cv_bdb_compat+set}\" = set"; then
20937 echo $ac_n "(cached) $ac_c" 1>&6
20940 cat > conftest.$ac_ext <<EOF
20941 #line 20942 "configure"
20942 #include "confdefs.h"
20946 /* this check could be improved */
20947 #ifndef DB_VERSION_MAJOR
20948 # define DB_VERSION_MAJOR 1
20950 #ifndef DB_VERSION_MINOR
20951 # define DB_VERSION_MINOR 0
20954 /* require 4.2 or later */
20955 #if (DB_VERSION_MAJOR >= 4) && (DB_VERSION_MINOR >= 2)
20956 __db_version_compat
20960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20961 egrep "__db_version_compat" >/dev/null 2>&1; then
20963 ol_cv_bdb_compat=yes
20966 ol_cv_bdb_compat=no
20972 echo "$ac_t""$ol_cv_bdb_compat" 1>&6
20975 if test $ol_cv_bdb_compat != yes ; then
20976 { echo "configure: error: BDB/HDB: BerkeleyDB version incompatible" 1>&2; exit 1; }
20981 if test $ol_link_ldbm = no -a $ol_with_ldbm_type = btree ; then
20982 echo "configure: warning: Could not find LDBM with BTREE support" 1>&2
20983 ol_with_ldbm_api=none
20986 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = mdbm ; then
20987 echo $ac_n "checking for MDBM library""... $ac_c" 1>&6
20988 echo "configure:20989: checking for MDBM library" >&5
20989 if eval "test \"\${ol_cv_lib_mdbm+set}\" = set"; then
20990 echo $ac_n "(cached) $ac_c" 1>&6
20993 echo $ac_n "checking for mdbm_set_chain""... $ac_c" 1>&6
20994 echo "configure:20995: checking for mdbm_set_chain" >&5
20995 if eval "test \"\${ac_cv_func_mdbm_set_chain+set}\" = set"; then
20996 echo $ac_n "(cached) $ac_c" 1>&6
20998 cat > conftest.$ac_ext <<EOF
20999 #line 21000 "configure"
21000 #include "confdefs.h"
21001 /* System header to define __stub macros and hopefully few prototypes,
21002 which can conflict with char mdbm_set_chain(); below. */
21003 #include <assert.h>
21004 /* Override any gcc2 internal prototype to avoid an error. */
21005 /* We use char because int might match the return type of a gcc2
21006 builtin and then its argument prototype would still apply. */
21007 char mdbm_set_chain();
21012 /* The GNU C library defines this for functions which it implements
21013 to always fail with ENOSYS. Some functions are actually named
21014 something starting with __ and the normal name is an alias. */
21015 #if defined (__stub_mdbm_set_chain) || defined (__stub___mdbm_set_chain)
21018 f = mdbm_set_chain;
21023 if { (eval echo configure:21024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21025 eval "ac_cv_func_mdbm_set_chain=yes"
21027 echo "configure: failed program was:" >&5
21028 cat conftest.$ac_ext >&5
21030 eval "ac_cv_func_mdbm_set_chain=no"
21035 if eval "test \"`echo '$ac_cv_func_'mdbm_set_chain`\" = yes"; then
21036 echo "$ac_t""yes" 1>&6
21039 echo "$ac_t""no" 1>&6
21041 echo $ac_n "checking for mdbm_set_chain in -lmdbm""... $ac_c" 1>&6
21042 echo "configure:21043: checking for mdbm_set_chain in -lmdbm" >&5
21043 ac_lib_var=`echo mdbm'_'mdbm_set_chain | sed 'y%./+-:%__p__%'`
21044 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21045 echo $ac_n "(cached) $ac_c" 1>&6
21047 ac_save_LIBS="$LIBS"
21048 LIBS="-lmdbm $LIBS"
21049 cat > conftest.$ac_ext <<EOF
21050 #line 21051 "configure"
21051 #include "confdefs.h"
21052 /* Override any gcc2 internal prototype to avoid an error. */
21053 /* We use char because int might match the return type of a gcc2
21054 builtin and then its argument prototype would still apply. */
21055 char mdbm_set_chain();
21061 if { (eval echo configure:21062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21063 eval "ac_cv_lib_$ac_lib_var=yes"
21065 echo "configure: failed program was:" >&5
21066 cat conftest.$ac_ext >&5
21068 eval "ac_cv_lib_$ac_lib_var=no"
21071 LIBS="$ac_save_LIBS"
21074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21075 echo "$ac_t""yes" 1>&6
21076 ol_cv_lib_mdbm=-lmdbm
21078 echo "$ac_t""no" 1>&6
21089 echo "$ac_t""$ol_cv_lib_mdbm" 1>&6
21092 for ac_hdr in mdbm.h
21094 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21095 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21096 echo "configure:21097: checking for $ac_hdr" >&5
21097 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21098 echo $ac_n "(cached) $ac_c" 1>&6
21100 cat > conftest.$ac_ext <<EOF
21101 #line 21102 "configure"
21102 #include "confdefs.h"
21105 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21106 { (eval echo configure:21107: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21107 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21108 if test -z "$ac_err"; then
21110 eval "ac_cv_header_$ac_safe=yes"
21113 echo "configure: failed program was:" >&5
21114 cat conftest.$ac_ext >&5
21116 eval "ac_cv_header_$ac_safe=no"
21120 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21121 echo "$ac_t""yes" 1>&6
21122 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21123 cat >> confdefs.h <<EOF
21124 #define $ac_tr_hdr 1
21128 echo "$ac_t""no" 1>&6
21132 echo $ac_n "checking for db""... $ac_c" 1>&6
21133 echo "configure:21134: checking for db" >&5
21134 if eval "test \"\${ol_cv_mdbm+set}\" = set"; then
21135 echo $ac_n "(cached) $ac_c" 1>&6
21138 if test $ol_cv_lib_mdbm = no -o $ac_cv_header_mdbm_h = no ; then
21146 echo "$ac_t""$ol_cv_mdbm" 1>&6
21147 if test $ol_cv_mdbm = yes ; then
21148 cat >> confdefs.h <<\EOF
21149 #define HAVE_MDBM 1
21155 if test $ol_cv_mdbm = yes ; then
21157 ol_with_ldbm_api=mdbm
21158 if test $ol_cv_lib_mdbm != yes ; then
21159 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_mdbm"
21164 if test $ol_with_ldbm_api = auto -o $ol_with_ldbm_api = gdbm ; then
21165 echo $ac_n "checking for GDBM library""... $ac_c" 1>&6
21166 echo "configure:21167: checking for GDBM library" >&5
21167 if eval "test \"\${ol_cv_lib_gdbm+set}\" = set"; then
21168 echo $ac_n "(cached) $ac_c" 1>&6
21171 echo $ac_n "checking for gdbm_open""... $ac_c" 1>&6
21172 echo "configure:21173: checking for gdbm_open" >&5
21173 if eval "test \"\${ac_cv_func_gdbm_open+set}\" = set"; then
21174 echo $ac_n "(cached) $ac_c" 1>&6
21176 cat > conftest.$ac_ext <<EOF
21177 #line 21178 "configure"
21178 #include "confdefs.h"
21179 /* System header to define __stub macros and hopefully few prototypes,
21180 which can conflict with char gdbm_open(); below. */
21181 #include <assert.h>
21182 /* Override any gcc2 internal prototype to avoid an error. */
21183 /* We use char because int might match the return type of a gcc2
21184 builtin and then its argument prototype would still apply. */
21190 /* The GNU C library defines this for functions which it implements
21191 to always fail with ENOSYS. Some functions are actually named
21192 something starting with __ and the normal name is an alias. */
21193 #if defined (__stub_gdbm_open) || defined (__stub___gdbm_open)
21201 if { (eval echo configure:21202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21203 eval "ac_cv_func_gdbm_open=yes"
21205 echo "configure: failed program was:" >&5
21206 cat conftest.$ac_ext >&5
21208 eval "ac_cv_func_gdbm_open=no"
21213 if eval "test \"`echo '$ac_cv_func_'gdbm_open`\" = yes"; then
21214 echo "$ac_t""yes" 1>&6
21217 echo "$ac_t""no" 1>&6
21219 echo $ac_n "checking for gdbm_open in -lgdbm""... $ac_c" 1>&6
21220 echo "configure:21221: checking for gdbm_open in -lgdbm" >&5
21221 ac_lib_var=`echo gdbm'_'gdbm_open | sed 'y%./+-:%__p__%'`
21222 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21223 echo $ac_n "(cached) $ac_c" 1>&6
21225 ac_save_LIBS="$LIBS"
21226 LIBS="-lgdbm $LIBS"
21227 cat > conftest.$ac_ext <<EOF
21228 #line 21229 "configure"
21229 #include "confdefs.h"
21230 /* Override any gcc2 internal prototype to avoid an error. */
21231 /* We use char because int might match the return type of a gcc2
21232 builtin and then its argument prototype would still apply. */
21239 if { (eval echo configure:21240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21241 eval "ac_cv_lib_$ac_lib_var=yes"
21243 echo "configure: failed program was:" >&5
21244 cat conftest.$ac_ext >&5
21246 eval "ac_cv_lib_$ac_lib_var=no"
21249 LIBS="$ac_save_LIBS"
21252 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21253 echo "$ac_t""yes" 1>&6
21254 ol_cv_lib_gdbm=-lgdbm
21256 echo "$ac_t""no" 1>&6
21267 echo "$ac_t""$ol_cv_lib_gdbm" 1>&6
21270 for ac_hdr in gdbm.h
21272 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21273 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21274 echo "configure:21275: checking for $ac_hdr" >&5
21275 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21276 echo $ac_n "(cached) $ac_c" 1>&6
21278 cat > conftest.$ac_ext <<EOF
21279 #line 21280 "configure"
21280 #include "confdefs.h"
21283 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21284 { (eval echo configure:21285: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21285 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21286 if test -z "$ac_err"; then
21288 eval "ac_cv_header_$ac_safe=yes"
21291 echo "configure: failed program was:" >&5
21292 cat conftest.$ac_ext >&5
21294 eval "ac_cv_header_$ac_safe=no"
21298 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21299 echo "$ac_t""yes" 1>&6
21300 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21301 cat >> confdefs.h <<EOF
21302 #define $ac_tr_hdr 1
21306 echo "$ac_t""no" 1>&6
21310 echo $ac_n "checking for db""... $ac_c" 1>&6
21311 echo "configure:21312: checking for db" >&5
21312 if eval "test \"\${ol_cv_gdbm+set}\" = set"; then
21313 echo $ac_n "(cached) $ac_c" 1>&6
21316 if test $ol_cv_lib_gdbm = no -o $ac_cv_header_gdbm_h = no ; then
21324 echo "$ac_t""$ol_cv_gdbm" 1>&6
21325 if test $ol_cv_gdbm = yes ; then
21326 cat >> confdefs.h <<\EOF
21327 #define HAVE_GDBM 1
21333 if test $ol_cv_gdbm = yes ; then
21335 ol_with_ldbm_api=gdbm
21337 if test $ol_cv_lib_gdbm != yes ; then
21338 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_gdbm"
21343 if test $ol_with_ldbm_api = ndbm ; then
21344 echo $ac_n "checking for NDBM library""... $ac_c" 1>&6
21345 echo "configure:21346: checking for NDBM library" >&5
21346 if eval "test \"\${ol_cv_lib_ndbm+set}\" = set"; then
21347 echo $ac_n "(cached) $ac_c" 1>&6
21350 echo $ac_n "checking for dbm_open""... $ac_c" 1>&6
21351 echo "configure:21352: checking for dbm_open" >&5
21352 if eval "test \"\${ac_cv_func_dbm_open+set}\" = set"; then
21353 echo $ac_n "(cached) $ac_c" 1>&6
21355 cat > conftest.$ac_ext <<EOF
21356 #line 21357 "configure"
21357 #include "confdefs.h"
21358 /* System header to define __stub macros and hopefully few prototypes,
21359 which can conflict with char dbm_open(); below. */
21360 #include <assert.h>
21361 /* Override any gcc2 internal prototype to avoid an error. */
21362 /* We use char because int might match the return type of a gcc2
21363 builtin and then its argument prototype would still apply. */
21369 /* The GNU C library defines this for functions which it implements
21370 to always fail with ENOSYS. Some functions are actually named
21371 something starting with __ and the normal name is an alias. */
21372 #if defined (__stub_dbm_open) || defined (__stub___dbm_open)
21380 if { (eval echo configure:21381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21382 eval "ac_cv_func_dbm_open=yes"
21384 echo "configure: failed program was:" >&5
21385 cat conftest.$ac_ext >&5
21387 eval "ac_cv_func_dbm_open=no"
21392 if eval "test \"`echo '$ac_cv_func_'dbm_open`\" = yes"; then
21393 echo "$ac_t""yes" 1>&6
21396 echo "$ac_t""no" 1>&6
21398 echo $ac_n "checking for dbm_open in -lndbm""... $ac_c" 1>&6
21399 echo "configure:21400: checking for dbm_open in -lndbm" >&5
21400 ac_lib_var=`echo ndbm'_'dbm_open | sed 'y%./+-:%__p__%'`
21401 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21402 echo $ac_n "(cached) $ac_c" 1>&6
21404 ac_save_LIBS="$LIBS"
21405 LIBS="-lndbm $LIBS"
21406 cat > conftest.$ac_ext <<EOF
21407 #line 21408 "configure"
21408 #include "confdefs.h"
21409 /* Override any gcc2 internal prototype to avoid an error. */
21410 /* We use char because int might match the return type of a gcc2
21411 builtin and then its argument prototype would still apply. */
21418 if { (eval echo configure:21419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21420 eval "ac_cv_lib_$ac_lib_var=yes"
21422 echo "configure: failed program was:" >&5
21423 cat conftest.$ac_ext >&5
21425 eval "ac_cv_lib_$ac_lib_var=no"
21428 LIBS="$ac_save_LIBS"
21431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21432 echo "$ac_t""yes" 1>&6
21433 ol_cv_lib_ndbm=-lndbm
21435 echo "$ac_t""no" 1>&6
21437 echo $ac_n "checking for dbm_open in -ldbm""... $ac_c" 1>&6
21438 echo "configure:21439: checking for dbm_open in -ldbm" >&5
21439 ac_lib_var=`echo dbm'_'dbm_open | sed 'y%./+-:%__p__%'`
21440 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21441 echo $ac_n "(cached) $ac_c" 1>&6
21443 ac_save_LIBS="$LIBS"
21445 cat > conftest.$ac_ext <<EOF
21446 #line 21447 "configure"
21447 #include "confdefs.h"
21448 /* Override any gcc2 internal prototype to avoid an error. */
21449 /* We use char because int might match the return type of a gcc2
21450 builtin and then its argument prototype would still apply. */
21457 if { (eval echo configure:21458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21459 eval "ac_cv_lib_$ac_lib_var=yes"
21461 echo "configure: failed program was:" >&5
21462 cat conftest.$ac_ext >&5
21464 eval "ac_cv_lib_$ac_lib_var=no"
21467 LIBS="$ac_save_LIBS"
21470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21471 echo "$ac_t""yes" 1>&6
21472 ol_cv_lib_ndbm=-ldbm
21474 echo "$ac_t""no" 1>&6
21487 echo "$ac_t""$ol_cv_lib_ndbm" 1>&6
21490 for ac_hdr in ndbm.h
21492 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21493 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21494 echo "configure:21495: checking for $ac_hdr" >&5
21495 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21496 echo $ac_n "(cached) $ac_c" 1>&6
21498 cat > conftest.$ac_ext <<EOF
21499 #line 21500 "configure"
21500 #include "confdefs.h"
21503 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21504 { (eval echo configure:21505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21505 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21506 if test -z "$ac_err"; then
21508 eval "ac_cv_header_$ac_safe=yes"
21511 echo "configure: failed program was:" >&5
21512 cat conftest.$ac_ext >&5
21514 eval "ac_cv_header_$ac_safe=no"
21518 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21519 echo "$ac_t""yes" 1>&6
21520 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21521 cat >> confdefs.h <<EOF
21522 #define $ac_tr_hdr 1
21526 echo "$ac_t""no" 1>&6
21530 echo $ac_n "checking for db""... $ac_c" 1>&6
21531 echo "configure:21532: checking for db" >&5
21532 if eval "test \"\${ol_cv_ndbm+set}\" = set"; then
21533 echo $ac_n "(cached) $ac_c" 1>&6
21536 if test $ol_cv_lib_ndbm = no -o $ac_cv_header_ndbm_h = no ; then
21544 echo "$ac_t""$ol_cv_ndbm" 1>&6
21545 if test $ol_cv_ndbm = yes ; then
21546 cat >> confdefs.h <<\EOF
21547 #define HAVE_NDBM 1
21553 if test $ol_cv_ndbm = yes ; then
21555 ol_with_ldbm_api=ndbm
21557 if test $ol_cv_lib_ndbm != yes ; then
21558 LDBM_LIBS="$LDBM_LIBS $ol_cv_lib_ndbm"
21563 if test $ol_link_ldbm = no -a $ol_enable_ldbm != no ; then
21564 { echo "configure: error: could not find suitable LDBM backend" 1>&2; exit 1; }
21567 if test $ol_enable_bdb = yes -o \
21568 $ol_enable_hdb = yes -o \
21569 $ol_enable_ldbm = yes ; then
21570 SLAPD_LIBS="$SLAPD_LIBS \$(LDBM_LIBS)"
21574 if test $ol_enable_dynamic = yes -a $enable_shared = yes ; then
21575 BUILD_LIBS_DYNAMIC=shared
21576 cat >> confdefs.h <<\EOF
21577 #define LDAP_LIBS_DYNAMIC 1
21582 BUILD_LIBS_DYNAMIC=static
21586 if test $ol_enable_wrappers != no ; then
21587 for ac_hdr in tcpd.h
21589 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21590 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21591 echo "configure:21592: checking for $ac_hdr" >&5
21592 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21593 echo $ac_n "(cached) $ac_c" 1>&6
21595 cat > conftest.$ac_ext <<EOF
21596 #line 21597 "configure"
21597 #include "confdefs.h"
21600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21601 { (eval echo configure:21602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21603 if test -z "$ac_err"; then
21605 eval "ac_cv_header_$ac_safe=yes"
21608 echo "configure: failed program was:" >&5
21609 cat conftest.$ac_ext >&5
21611 eval "ac_cv_header_$ac_safe=no"
21615 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21616 echo "$ac_t""yes" 1>&6
21617 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21618 cat >> confdefs.h <<EOF
21619 #define $ac_tr_hdr 1
21622 echo $ac_n "checking for TCP wrappers library""... $ac_c" 1>&6
21623 echo "configure:21624: checking for TCP wrappers library" >&5
21625 LIBS="$LIBS -lwrap"
21626 cat > conftest.$ac_ext <<EOF
21627 #line 21628 "configure"
21628 #include "confdefs.h"
21631 int allow_severity = 0;
21632 int deny_severity = 0;
21634 struct request_info *req;
21642 if { (eval echo configure:21643: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21644 echo "$ac_t""-lwrap" 1>&6
21648 echo "configure: failed program was:" >&5
21649 cat conftest.$ac_ext >&5
21653 cat > conftest.$ac_ext <<EOF
21654 #line 21655 "configure"
21655 #include "confdefs.h"
21658 int allow_severity = 0;
21659 int deny_severity = 0;
21661 struct request_info *req;
21669 if { (eval echo configure:21670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21671 echo "$ac_t""-lwrap -lnsl" 1>&6
21673 LIBS="$save_LIBS -lnsl"
21675 echo "configure: failed program was:" >&5
21676 cat conftest.$ac_ext >&5
21679 echo "$ac_t""no" 1>&6
21687 echo "$ac_t""no" 1>&6
21693 if test $have_wrappers = yes ; then
21694 cat >> confdefs.h <<\EOF
21695 #define HAVE_TCPD 1
21699 elif test $ol_enable_wrappers = yes ; then
21700 { echo "configure: error: could not find TCP wrappers, select apppropriate options or disable" 1>&2; exit 1; }
21702 echo "configure: warning: could not find TCP wrappers, support disabled" 1>&2
21707 if test $ol_enable_syslog != no ; then
21708 echo $ac_n "checking for openlog""... $ac_c" 1>&6
21709 echo "configure:21710: checking for openlog" >&5
21710 if eval "test \"\${ac_cv_func_openlog+set}\" = set"; then
21711 echo $ac_n "(cached) $ac_c" 1>&6
21713 cat > conftest.$ac_ext <<EOF
21714 #line 21715 "configure"
21715 #include "confdefs.h"
21716 /* System header to define __stub macros and hopefully few prototypes,
21717 which can conflict with char openlog(); below. */
21718 #include <assert.h>
21719 /* Override any gcc2 internal prototype to avoid an error. */
21720 /* We use char because int might match the return type of a gcc2
21721 builtin and then its argument prototype would still apply. */
21727 /* The GNU C library defines this for functions which it implements
21728 to always fail with ENOSYS. Some functions are actually named
21729 something starting with __ and the normal name is an alias. */
21730 #if defined (__stub_openlog) || defined (__stub___openlog)
21738 if { (eval echo configure:21739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21740 eval "ac_cv_func_openlog=yes"
21742 echo "configure: failed program was:" >&5
21743 cat conftest.$ac_ext >&5
21745 eval "ac_cv_func_openlog=no"
21750 if eval "test \"`echo '$ac_cv_func_'openlog`\" = yes"; then
21751 echo "$ac_t""yes" 1>&6
21754 echo "$ac_t""no" 1>&6
21757 if test $ac_cv_func_openlog = no -a $ol_enable_syslog = yes; then
21758 { echo "configure: error: could not find syslog" 1>&2; exit 1; }
21760 ol_enable_syslog=$ac_cv_func_openlog
21765 if test $ol_enable_sql != no ; then
21766 for ac_hdr in sql.h sqlext.h
21768 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21769 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21770 echo "configure:21771: checking for $ac_hdr" >&5
21771 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21772 echo $ac_n "(cached) $ac_c" 1>&6
21774 cat > conftest.$ac_ext <<EOF
21775 #line 21776 "configure"
21776 #include "confdefs.h"
21779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21780 { (eval echo configure:21781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21781 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21782 if test -z "$ac_err"; then
21784 eval "ac_cv_header_$ac_safe=yes"
21787 echo "configure: failed program was:" >&5
21788 cat conftest.$ac_ext >&5
21790 eval "ac_cv_header_$ac_safe=no"
21794 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21795 echo "$ac_t""yes" 1>&6
21796 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21797 cat >> confdefs.h <<EOF
21798 #define $ac_tr_hdr 1
21802 echo "$ac_t""no" 1>&6
21803 { echo "configure: error: could not locate SQL headers" 1>&2; exit 1; }
21809 echo $ac_n "checking for SQLDriverConnect in -liodbc""... $ac_c" 1>&6
21810 echo "configure:21811: checking for SQLDriverConnect in -liodbc" >&5
21811 ac_lib_var=`echo iodbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
21812 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21813 echo $ac_n "(cached) $ac_c" 1>&6
21815 ac_save_LIBS="$LIBS"
21816 LIBS="-liodbc $LIBS"
21817 cat > conftest.$ac_ext <<EOF
21818 #line 21819 "configure"
21819 #include "confdefs.h"
21820 /* Override any gcc2 internal prototype to avoid an error. */
21821 /* We use char because int might match the return type of a gcc2
21822 builtin and then its argument prototype would still apply. */
21823 char SQLDriverConnect();
21829 if { (eval echo configure:21830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21831 eval "ac_cv_lib_$ac_lib_var=yes"
21833 echo "configure: failed program was:" >&5
21834 cat conftest.$ac_ext >&5
21836 eval "ac_cv_lib_$ac_lib_var=no"
21839 LIBS="$ac_save_LIBS"
21842 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21843 echo "$ac_t""yes" 1>&6
21846 echo "$ac_t""no" 1>&6
21850 if test $have_iodbc = yes ; then
21851 ol_link_sql="-liodbc"
21853 echo $ac_n "checking for SQLDriverConnect in -lodbc""... $ac_c" 1>&6
21854 echo "configure:21855: checking for SQLDriverConnect in -lodbc" >&5
21855 ac_lib_var=`echo odbc'_'SQLDriverConnect | sed 'y%./+-:%__p__%'`
21856 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21857 echo $ac_n "(cached) $ac_c" 1>&6
21859 ac_save_LIBS="$LIBS"
21860 LIBS="-lodbc $LIBS"
21861 cat > conftest.$ac_ext <<EOF
21862 #line 21863 "configure"
21863 #include "confdefs.h"
21864 /* Override any gcc2 internal prototype to avoid an error. */
21865 /* We use char because int might match the return type of a gcc2
21866 builtin and then its argument prototype would still apply. */
21867 char SQLDriverConnect();
21873 if { (eval echo configure:21874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21875 eval "ac_cv_lib_$ac_lib_var=yes"
21877 echo "configure: failed program was:" >&5
21878 cat conftest.$ac_ext >&5
21880 eval "ac_cv_lib_$ac_lib_var=no"
21883 LIBS="$ac_save_LIBS"
21886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21887 echo "$ac_t""yes" 1>&6
21890 echo "$ac_t""no" 1>&6
21894 if test $have_odbc = yes ; then
21895 ol_link_sql="-lodbc"
21899 if test $ol_link_sql != no ; then
21900 SLAPD_SQL_LIBS="$ol_link_sql"
21902 elif test $ol_enable_sql != auto ; then
21903 { echo "configure: error: could not locate suitable ODBC library" 1>&2; exit 1; }
21910 if test $ol_with_cyrus_sasl != no ; then
21911 for ac_hdr in sasl/sasl.h sasl.h
21913 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
21914 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
21915 echo "configure:21916: checking for $ac_hdr" >&5
21916 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
21917 echo $ac_n "(cached) $ac_c" 1>&6
21919 cat > conftest.$ac_ext <<EOF
21920 #line 21921 "configure"
21921 #include "confdefs.h"
21924 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
21925 { (eval echo configure:21926: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
21926 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
21927 if test -z "$ac_err"; then
21929 eval "ac_cv_header_$ac_safe=yes"
21932 echo "configure: failed program was:" >&5
21933 cat conftest.$ac_ext >&5
21935 eval "ac_cv_header_$ac_safe=no"
21939 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
21940 echo "$ac_t""yes" 1>&6
21941 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
21942 cat >> confdefs.h <<EOF
21943 #define $ac_tr_hdr 1
21947 echo "$ac_t""no" 1>&6
21952 if test $ac_cv_header_sasl_sasl_h = yes -o $ac_cv_header_sasl_h = yes; then
21953 echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6
21954 echo "configure:21955: checking for sasl_client_init in -lsasl2" >&5
21955 ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-:%__p__%'`
21956 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21957 echo $ac_n "(cached) $ac_c" 1>&6
21959 ac_save_LIBS="$LIBS"
21960 LIBS="-lsasl2 $LIBS"
21961 cat > conftest.$ac_ext <<EOF
21962 #line 21963 "configure"
21963 #include "confdefs.h"
21964 /* Override any gcc2 internal prototype to avoid an error. */
21965 /* We use char because int might match the return type of a gcc2
21966 builtin and then its argument prototype would still apply. */
21967 char sasl_client_init();
21973 if { (eval echo configure:21974: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
21975 eval "ac_cv_lib_$ac_lib_var=yes"
21977 echo "configure: failed program was:" >&5
21978 cat conftest.$ac_ext >&5
21980 eval "ac_cv_lib_$ac_lib_var=no"
21983 LIBS="$ac_save_LIBS"
21986 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
21987 echo "$ac_t""yes" 1>&6
21988 ol_link_sasl="-lsasl2"
21990 echo "$ac_t""no" 1>&6
21991 echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6
21992 echo "configure:21993: checking for sasl_client_init in -lsasl" >&5
21993 ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-:%__p__%'`
21994 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
21995 echo $ac_n "(cached) $ac_c" 1>&6
21997 ac_save_LIBS="$LIBS"
21998 LIBS="-lsasl $LIBS"
21999 cat > conftest.$ac_ext <<EOF
22000 #line 22001 "configure"
22001 #include "confdefs.h"
22002 /* Override any gcc2 internal prototype to avoid an error. */
22003 /* We use char because int might match the return type of a gcc2
22004 builtin and then its argument prototype would still apply. */
22005 char sasl_client_init();
22011 if { (eval echo configure:22012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22013 eval "ac_cv_lib_$ac_lib_var=yes"
22015 echo "configure: failed program was:" >&5
22016 cat conftest.$ac_ext >&5
22018 eval "ac_cv_lib_$ac_lib_var=no"
22021 LIBS="$ac_save_LIBS"
22024 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22025 echo "$ac_t""yes" 1>&6
22026 ol_link_sasl="-lsasl"
22028 echo "$ac_t""no" 1>&6
22035 if test $ol_link_sasl = no ; then
22036 if test $ol_with_cyrus_sasl != auto ; then
22037 { echo "configure: error: Could not locate Cyrus SASL" 1>&2; exit 1; }
22039 echo "configure: warning: Could not locate Cyrus SASL" 1>&2
22040 echo "configure: warning: SASL authentication not supported!" 1>&2
22041 if test $ol_link_tls = no ; then
22042 echo "configure: warning: Strong authentication not supported!" 1>&2
22046 echo $ac_n "checking Cyrus SASL library version""... $ac_c" 1>&6
22047 echo "configure:22048: checking Cyrus SASL library version" >&5
22048 if eval "test \"\${ol_cv_sasl_compat+set}\" = set"; then
22049 echo $ac_n "(cached) $ac_c" 1>&6
22052 cat > conftest.$ac_ext <<EOF
22053 #line 22054 "configure"
22054 #include "confdefs.h"
22056 #ifdef HAVE_SASL_SASL_H
22057 #include <sasl/sasl.h>
22062 /* Require 2.1.15+ */
22063 #if SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR > 1
22064 char *__sasl_compat = "2.2+ or better okay (we guess)";
22065 #elif SASL_VERSION_MAJOR == 2 && SASL_VERSION_MINOR == 1 \
22066 && SASL_VERSION_STEP >=15
22067 char *__sasl_compat = "2.1.15+ or better okay";
22071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22072 egrep "__sasl_compat" >/dev/null 2>&1; then
22074 ol_cv_sasl_compat=yes
22077 ol_cv_sasl_compat=no
22083 echo "$ac_t""$ol_cv_sasl_compat" 1>&6
22085 if test $ol_cv_sasl_compat = no ; then
22087 { echo "configure: error: Cyrus SASL library located but is incompatible" 1>&2; exit 1; }
22090 cat >> confdefs.h <<\EOF
22091 #define HAVE_CYRUS_SASL 1
22094 SASL_LIBS="$ol_link_sasl"
22095 if test $ol_enable_spasswd != no ; then
22096 ol_link_spasswd=yes
22099 ac_save_LIBS="$LIBS"
22100 LIBS="$LIBS $ol_link_sasl"
22101 echo $ac_n "checking for sasl_version""... $ac_c" 1>&6
22102 echo "configure:22103: checking for sasl_version" >&5
22103 if eval "test \"\${ac_cv_func_sasl_version+set}\" = set"; then
22104 echo $ac_n "(cached) $ac_c" 1>&6
22106 cat > conftest.$ac_ext <<EOF
22107 #line 22108 "configure"
22108 #include "confdefs.h"
22109 /* System header to define __stub macros and hopefully few prototypes,
22110 which can conflict with char sasl_version(); below. */
22111 #include <assert.h>
22112 /* Override any gcc2 internal prototype to avoid an error. */
22113 /* We use char because int might match the return type of a gcc2
22114 builtin and then its argument prototype would still apply. */
22115 char sasl_version();
22120 /* The GNU C library defines this for functions which it implements
22121 to always fail with ENOSYS. Some functions are actually named
22122 something starting with __ and the normal name is an alias. */
22123 #if defined (__stub_sasl_version) || defined (__stub___sasl_version)
22131 if { (eval echo configure:22132: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22133 eval "ac_cv_func_sasl_version=yes"
22135 echo "configure: failed program was:" >&5
22136 cat conftest.$ac_ext >&5
22138 eval "ac_cv_func_sasl_version=no"
22143 if eval "test \"`echo '$ac_cv_func_'sasl_version`\" = yes"; then
22144 echo "$ac_t""yes" 1>&6
22145 cat >> confdefs.h <<\EOF
22146 #define HAVE_SASL_VERSION 1
22150 echo "$ac_t""no" 1>&6
22153 LIBS="$ac_save_LIBS"
22159 echo "configure: warning: SASL authentication not supported!" 1>&2
22160 if test $ol_link_tls = no ; then
22161 echo "configure: warning: Strong authentication not supported!" 1>&2
22165 if test $cross_compiling != yes -a "$ac_cv_mingw32" != yes ; then
22167 if test -r /dev/urandom ; then
22168 dev="/dev/urandom";
22169 elif test -r /idev/urandom ; then
22170 dev="/idev/urandom";
22171 elif test -r /dev/srandom ; then
22172 dev="/dev/srandom";
22173 elif test -r /dev/random ; then
22175 elif test -r /idev/random ; then
22176 dev="/idev/random";
22179 if test $dev != no ; then
22180 cat >> confdefs.h <<EOF
22181 #define URANDOM_DEVICE "$dev"
22188 if test $ol_with_fetch != no ; then
22190 LIBS="-lfetch -lcom_err $LIBS"
22191 echo $ac_n "checking fetch(3) library""... $ac_c" 1>&6
22192 echo "configure:22193: checking fetch(3) library" >&5
22193 if eval "test \"\${ol_cv_lib_fetch+set}\" = set"; then
22194 echo $ac_n "(cached) $ac_c" 1>&6
22197 cat > conftest.$ac_ext <<EOF
22198 #line 22199 "configure"
22199 #include "confdefs.h"
22201 #include <sys/param.h>
22205 struct url *u = fetchParseURL("file:///");
22208 if { (eval echo configure:22209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22210 ol_cv_lib_fetch=yes
22212 echo "configure: failed program was:" >&5
22213 cat conftest.$ac_ext >&5
22220 echo "$ac_t""$ol_cv_lib_fetch" 1>&6
22222 if test $ol_cv_lib_fetch != no ; then
22223 ol_link_fetch="-lfetch -lcom_err"
22224 cat >> confdefs.h <<\EOF
22225 #define HAVE_FETCH 1
22231 if test $ol_cv_lib_fetch != no ; then
22232 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
22233 ol_link_fetch=freebsd
22235 elif test $ol_with_fetch != auto ; then
22236 { echo "configure: error: no suitable API for --with-fetch=$ol_with_fetch" 1>&2; exit 1; }
22240 if test $ol_enable_crypt != no ; then
22242 LIBS="$TLS_LIBS $LIBS"
22244 echo $ac_n "checking for crypt""... $ac_c" 1>&6
22245 echo "configure:22246: checking for crypt" >&5
22246 if eval "test \"\${ac_cv_func_crypt+set}\" = set"; then
22247 echo $ac_n "(cached) $ac_c" 1>&6
22249 cat > conftest.$ac_ext <<EOF
22250 #line 22251 "configure"
22251 #include "confdefs.h"
22252 /* System header to define __stub macros and hopefully few prototypes,
22253 which can conflict with char crypt(); below. */
22254 #include <assert.h>
22255 /* Override any gcc2 internal prototype to avoid an error. */
22256 /* We use char because int might match the return type of a gcc2
22257 builtin and then its argument prototype would still apply. */
22263 /* The GNU C library defines this for functions which it implements
22264 to always fail with ENOSYS. Some functions are actually named
22265 something starting with __ and the normal name is an alias. */
22266 #if defined (__stub_crypt) || defined (__stub___crypt)
22274 if { (eval echo configure:22275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22276 eval "ac_cv_func_crypt=yes"
22278 echo "configure: failed program was:" >&5
22279 cat conftest.$ac_ext >&5
22281 eval "ac_cv_func_crypt=no"
22286 if eval "test \"`echo '$ac_cv_func_'crypt`\" = yes"; then
22287 echo "$ac_t""yes" 1>&6
22290 echo "$ac_t""no" 1>&6
22293 echo $ac_n "checking for crypt in -lcrypt""... $ac_c" 1>&6
22294 echo "configure:22295: checking for crypt in -lcrypt" >&5
22295 ac_lib_var=`echo crypt'_'crypt | sed 'y%./+-:%__p__%'`
22296 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22297 echo $ac_n "(cached) $ac_c" 1>&6
22299 ac_save_LIBS="$LIBS"
22300 LIBS="-lcrypt $LIBS"
22301 cat > conftest.$ac_ext <<EOF
22302 #line 22303 "configure"
22303 #include "confdefs.h"
22304 /* Override any gcc2 internal prototype to avoid an error. */
22305 /* We use char because int might match the return type of a gcc2
22306 builtin and then its argument prototype would still apply. */
22313 if { (eval echo configure:22314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22315 eval "ac_cv_lib_$ac_lib_var=yes"
22317 echo "configure: failed program was:" >&5
22318 cat conftest.$ac_ext >&5
22320 eval "ac_cv_lib_$ac_lib_var=no"
22323 LIBS="$ac_save_LIBS"
22326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22327 echo "$ac_t""yes" 1>&6
22328 LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
22331 echo "$ac_t""no" 1>&6
22340 if test $have_crypt = yes ; then
22341 cat >> confdefs.h <<\EOF
22342 #define HAVE_CRYPT 1
22346 echo "configure: warning: could not find crypt" 1>&2
22347 if test $ol_enable_crypt = yes ; then
22348 { echo "configure: error: could not find crypt, select appropriate options or disable" 1>&2; exit 1; }
22351 echo "configure: warning: disabling crypt support" 1>&2
22356 if test $ol_enable_proctitle != no ; then
22357 echo $ac_n "checking for setproctitle""... $ac_c" 1>&6
22358 echo "configure:22359: checking for setproctitle" >&5
22359 if eval "test \"\${ac_cv_func_setproctitle+set}\" = set"; then
22360 echo $ac_n "(cached) $ac_c" 1>&6
22362 cat > conftest.$ac_ext <<EOF
22363 #line 22364 "configure"
22364 #include "confdefs.h"
22365 /* System header to define __stub macros and hopefully few prototypes,
22366 which can conflict with char setproctitle(); below. */
22367 #include <assert.h>
22368 /* Override any gcc2 internal prototype to avoid an error. */
22369 /* We use char because int might match the return type of a gcc2
22370 builtin and then its argument prototype would still apply. */
22371 char setproctitle();
22376 /* The GNU C library defines this for functions which it implements
22377 to always fail with ENOSYS. Some functions are actually named
22378 something starting with __ and the normal name is an alias. */
22379 #if defined (__stub_setproctitle) || defined (__stub___setproctitle)
22387 if { (eval echo configure:22388: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22389 eval "ac_cv_func_setproctitle=yes"
22391 echo "configure: failed program was:" >&5
22392 cat conftest.$ac_ext >&5
22394 eval "ac_cv_func_setproctitle=no"
22399 if eval "test \"`echo '$ac_cv_func_'setproctitle`\" = yes"; then
22400 echo "$ac_t""yes" 1>&6
22401 have_setproctitle=yes
22403 echo "$ac_t""no" 1>&6
22405 echo $ac_n "checking for setproctitle in -lutil""... $ac_c" 1>&6
22406 echo "configure:22407: checking for setproctitle in -lutil" >&5
22407 ac_lib_var=`echo util'_'setproctitle | sed 'y%./+-:%__p__%'`
22408 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22409 echo $ac_n "(cached) $ac_c" 1>&6
22411 ac_save_LIBS="$LIBS"
22412 LIBS="-lutil $LIBS"
22413 cat > conftest.$ac_ext <<EOF
22414 #line 22415 "configure"
22415 #include "confdefs.h"
22416 /* Override any gcc2 internal prototype to avoid an error. */
22417 /* We use char because int might match the return type of a gcc2
22418 builtin and then its argument prototype would still apply. */
22419 char setproctitle();
22425 if { (eval echo configure:22426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22427 eval "ac_cv_lib_$ac_lib_var=yes"
22429 echo "configure: failed program was:" >&5
22430 cat conftest.$ac_ext >&5
22432 eval "ac_cv_lib_$ac_lib_var=no"
22435 LIBS="$ac_save_LIBS"
22438 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22439 echo "$ac_t""yes" 1>&6
22440 have_setproctitle=yes
22441 LUTIL_LIBS="$LUTIL_LIBS -lutil"
22443 echo "$ac_t""no" 1>&6
22444 have_setproctitle=no
22445 LIBOBJS="$LIBOBJS setproctitle.o"
22446 LIBSRCS="$LIBSRCS setproctitle.c"
22452 if test $have_setproctitle = yes ; then
22453 cat >> confdefs.h <<\EOF
22454 #define HAVE_SETPROCTITLE 1
22460 if test $ol_enable_slp != no ; then
22461 for ac_hdr in slp.h
22463 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22464 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22465 echo "configure:22466: checking for $ac_hdr" >&5
22466 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22467 echo $ac_n "(cached) $ac_c" 1>&6
22469 cat > conftest.$ac_ext <<EOF
22470 #line 22471 "configure"
22471 #include "confdefs.h"
22474 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22475 { (eval echo configure:22476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22476 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22477 if test -z "$ac_err"; then
22479 eval "ac_cv_header_$ac_safe=yes"
22482 echo "configure: failed program was:" >&5
22483 cat conftest.$ac_ext >&5
22485 eval "ac_cv_header_$ac_safe=no"
22489 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22490 echo "$ac_t""yes" 1>&6
22491 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22492 cat >> confdefs.h <<EOF
22493 #define $ac_tr_hdr 1
22497 echo "$ac_t""no" 1>&6
22502 if test $ac_cv_header_slp_h = yes ; then
22503 echo $ac_n "checking for SLPOpen in -lslp""... $ac_c" 1>&6
22504 echo "configure:22505: checking for SLPOpen in -lslp" >&5
22505 ac_lib_var=`echo slp'_'SLPOpen | sed 'y%./+-:%__p__%'`
22506 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22507 echo $ac_n "(cached) $ac_c" 1>&6
22509 ac_save_LIBS="$LIBS"
22511 cat > conftest.$ac_ext <<EOF
22512 #line 22513 "configure"
22513 #include "confdefs.h"
22514 /* Override any gcc2 internal prototype to avoid an error. */
22515 /* We use char because int might match the return type of a gcc2
22516 builtin and then its argument prototype would still apply. */
22523 if { (eval echo configure:22524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22525 eval "ac_cv_lib_$ac_lib_var=yes"
22527 echo "configure: failed program was:" >&5
22528 cat conftest.$ac_ext >&5
22530 eval "ac_cv_lib_$ac_lib_var=no"
22533 LIBS="$ac_save_LIBS"
22536 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22537 echo "$ac_t""yes" 1>&6
22540 echo "$ac_t""no" 1>&6
22544 if test $have_slp = yes ; then
22545 cat >> confdefs.h <<\EOF
22549 SLAPD_SLP_LIBS=-lslp
22552 elif test $ol_enable_slp = yes ; then
22553 { echo "configure: error: SLP not found" 1>&2; exit 1; }
22557 if test "$ol_with_multiple_precision" != "no" ; then
22561 for ac_hdr in openssl/bn.h bn.h
22563 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22564 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22565 echo "configure:22566: checking for $ac_hdr" >&5
22566 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22567 echo $ac_n "(cached) $ac_c" 1>&6
22569 cat > conftest.$ac_ext <<EOF
22570 #line 22571 "configure"
22571 #include "confdefs.h"
22574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22575 { (eval echo configure:22576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22577 if test -z "$ac_err"; then
22579 eval "ac_cv_header_$ac_safe=yes"
22582 echo "configure: failed program was:" >&5
22583 cat conftest.$ac_ext >&5
22585 eval "ac_cv_header_$ac_safe=no"
22589 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22590 echo "$ac_t""yes" 1>&6
22591 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22592 cat >> confdefs.h <<EOF
22593 #define $ac_tr_hdr 1
22597 echo "$ac_t""no" 1>&6
22601 for ac_hdr in openssl/crypto.h crypto.h
22603 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22604 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22605 echo "configure:22606: checking for $ac_hdr" >&5
22606 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22607 echo $ac_n "(cached) $ac_c" 1>&6
22609 cat > conftest.$ac_ext <<EOF
22610 #line 22611 "configure"
22611 #include "confdefs.h"
22614 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22615 { (eval echo configure:22616: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22616 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22617 if test -z "$ac_err"; then
22619 eval "ac_cv_header_$ac_safe=yes"
22622 echo "configure: failed program was:" >&5
22623 cat conftest.$ac_ext >&5
22625 eval "ac_cv_header_$ac_safe=no"
22629 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22630 echo "$ac_t""yes" 1>&6
22631 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22632 cat >> confdefs.h <<EOF
22633 #define $ac_tr_hdr 1
22637 echo "$ac_t""no" 1>&6
22641 for ac_hdr in gmp.h
22643 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
22644 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
22645 echo "configure:22646: checking for $ac_hdr" >&5
22646 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
22647 echo $ac_n "(cached) $ac_c" 1>&6
22649 cat > conftest.$ac_ext <<EOF
22650 #line 22651 "configure"
22651 #include "confdefs.h"
22654 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22655 { (eval echo configure:22656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22656 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22657 if test -z "$ac_err"; then
22659 eval "ac_cv_header_$ac_safe=yes"
22662 echo "configure: failed program was:" >&5
22663 cat conftest.$ac_ext >&5
22665 eval "ac_cv_header_$ac_safe=no"
22669 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
22670 echo "$ac_t""yes" 1>&6
22671 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
22672 cat >> confdefs.h <<EOF
22673 #define $ac_tr_hdr 1
22677 echo "$ac_t""no" 1>&6
22682 if test "$ol_with_tls" = "found" ; then
22684 ol_have_crypto_h=no
22686 if test "$ac_cv_header_openssl_bn_h" = "yes" \
22687 -o "$ac_cv_header_bn_h" = "yes" ; then
22691 if test "$ac_cv_header_openssl_crypto_h" = "yes" \
22692 -o "$ac_cv_header_crypto_h" = "yes" ; then
22693 ol_have_crypto_h=yes
22696 if test "$ol_have_bn_h" = "yes" \
22697 -a "$ol_have_crypto_h" = "yes" ; then
22702 if test $ac_cv_header_gmp_h = yes ; then
22703 echo $ac_n "checking for __gmpz_add_ui in -lgmp""... $ac_c" 1>&6
22704 echo "configure:22705: checking for __gmpz_add_ui in -lgmp" >&5
22705 ac_lib_var=`echo gmp'_'__gmpz_add_ui | sed 'y%./+-:%__p__%'`
22706 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
22707 echo $ac_n "(cached) $ac_c" 1>&6
22709 ac_save_LIBS="$LIBS"
22711 cat > conftest.$ac_ext <<EOF
22712 #line 22713 "configure"
22713 #include "confdefs.h"
22714 /* Override any gcc2 internal prototype to avoid an error. */
22715 /* We use char because int might match the return type of a gcc2
22716 builtin and then its argument prototype would still apply. */
22717 char __gmpz_add_ui();
22723 if { (eval echo configure:22724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
22725 eval "ac_cv_lib_$ac_lib_var=yes"
22727 echo "configure: failed program was:" >&5
22728 cat conftest.$ac_ext >&5
22730 eval "ac_cv_lib_$ac_lib_var=no"
22733 LIBS="$ac_save_LIBS"
22736 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
22737 echo "$ac_t""yes" 1>&6
22740 echo "$ac_t""no" 1>&6
22744 if test $have_gmp = yes ; then
22749 echo $ac_n "checking for multiple precision support""... $ac_c" 1>&6
22750 echo "configure:22751: checking for multiple precision support" >&5
22752 ol_mp_support="none"
22753 case "$ol_with_multiple_precision" in
22755 if test "$ol_have_bignum" = "yes" ; then
22756 ol_mp_support="bignum"
22758 if test "$ol_have_gmp" = "yes" ; then
22759 ol_mp_support="gmp"
22764 if test "$ol_have_bignum" != "yes" ; then
22765 { echo "configure: error: OpenSSL's BIGNUM not available" 1>&2; exit 1; }
22767 ol_mp_support="bignum"
22770 if test "$ol_have_gmp" != "yes" ; then
22771 { echo "configure: error: GMP not available" 1>&2; exit 1; }
22773 ol_mp_support="gmp"
22776 if test "$ol_have_bignum" = "yes" ; then
22777 ol_mp_support="bignum"
22778 elif test "$ol_have_gmp" = "yes" ; then
22779 ol_mp_support="gmp"
22781 { echo "configure: error: not available" 1>&2; exit 1; }
22786 case "$ol_mp_support" in
22788 cat >> confdefs.h <<\EOF
22789 #define HAVE_BIGNUM 1
22794 cat >> confdefs.h <<\EOF
22798 SLAPD_GMP_LIBS=-lgmp
22804 echo "$ac_t""$ol_mp_support" 1>&6
22808 echo $ac_n "checking long long""... $ac_c" 1>&6
22809 echo "configure:22810: checking long long" >&5
22810 if eval "test \"\${ol_cv_type_long_long+set}\" = set"; then
22811 echo $ac_n "(cached) $ac_c" 1>&6
22814 cat > conftest.$ac_ext <<EOF
22815 #line 22816 "configure"
22816 #include "confdefs.h"
22822 if { (eval echo configure:22823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
22824 ol_cv_type_long_long=yes
22826 echo "configure: failed program was:" >&5
22827 cat conftest.$ac_ext >&5
22829 ol_cv_type_long_long=no
22834 echo "$ac_t""$ol_cv_type_long_long" 1>&6
22835 if test $ol_cv_type_long_long = yes; then
22836 cat >> confdefs.h <<\EOF
22837 #define HAVE_LONG_LONG 1
22842 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
22843 echo "configure:22844: checking for ANSI C header files" >&5
22844 if eval "test \"\${ac_cv_header_stdc+set}\" = set"; then
22845 echo $ac_n "(cached) $ac_c" 1>&6
22847 cat > conftest.$ac_ext <<EOF
22848 #line 22849 "configure"
22849 #include "confdefs.h"
22850 #include <stdlib.h>
22851 #include <stdarg.h>
22852 #include <string.h>
22855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
22856 { (eval echo configure:22857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
22857 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
22858 if test -z "$ac_err"; then
22860 ac_cv_header_stdc=yes
22863 echo "configure: failed program was:" >&5
22864 cat conftest.$ac_ext >&5
22866 ac_cv_header_stdc=no
22870 if test $ac_cv_header_stdc = yes; then
22871 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22872 cat > conftest.$ac_ext <<EOF
22873 #line 22874 "configure"
22874 #include "confdefs.h"
22875 #include <string.h>
22877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22878 egrep "memchr" >/dev/null 2>&1; then
22882 ac_cv_header_stdc=no
22888 if test $ac_cv_header_stdc = yes; then
22889 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22890 cat > conftest.$ac_ext <<EOF
22891 #line 22892 "configure"
22892 #include "confdefs.h"
22893 #include <stdlib.h>
22895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22896 egrep "free" >/dev/null 2>&1; then
22900 ac_cv_header_stdc=no
22906 if test $ac_cv_header_stdc = yes; then
22907 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22908 if test "$cross_compiling" = yes; then
22911 cat > conftest.$ac_ext <<EOF
22912 #line 22913 "configure"
22913 #include "confdefs.h"
22915 #if ((' ' & 0x0FF) == 0x020)
22916 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22917 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22919 #define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
22920 || ('j' <= (c) && (c) <= 'r') \
22921 || ('s' <= (c) && (c) <= 'z'))
22922 #define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22924 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22925 int main () { int i; for (i = 0; i < 256; i++)
22926 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
22930 if { (eval echo configure:22931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
22934 echo "configure: failed program was:" >&5
22935 cat conftest.$ac_ext >&5
22937 ac_cv_header_stdc=no
22945 echo "$ac_t""$ac_cv_header_stdc" 1>&6
22946 if test $ac_cv_header_stdc = yes; then
22947 cat >> confdefs.h <<\EOF
22948 #define STDC_HEADERS 1
22953 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
22954 echo "configure:22955: checking for mode_t" >&5
22955 if eval "test \"\${ac_cv_type_mode_t+set}\" = set"; then
22956 echo $ac_n "(cached) $ac_c" 1>&6
22958 cat > conftest.$ac_ext <<EOF
22959 #line 22960 "configure"
22960 #include "confdefs.h"
22961 #include <sys/types.h>
22963 #include <stdlib.h>
22964 #include <stddef.h>
22968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22969 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22971 eval "ac_cv_type_mode_t=yes"
22974 eval "ac_cv_type_mode_t=no"
22979 if eval "test \"`echo '$ac_cv_type_'mode_t`\" = yes"; then
22980 echo "$ac_t""yes" 1>&6
22982 echo "$ac_t""no" 1>&6
22983 cat >> confdefs.h <<EOF
22989 echo $ac_n "checking for off_t""... $ac_c" 1>&6
22990 echo "configure:22991: checking for off_t" >&5
22991 if eval "test \"\${ac_cv_type_off_t+set}\" = set"; then
22992 echo $ac_n "(cached) $ac_c" 1>&6
22994 cat > conftest.$ac_ext <<EOF
22995 #line 22996 "configure"
22996 #include "confdefs.h"
22997 #include <sys/types.h>
22999 #include <stdlib.h>
23000 #include <stddef.h>
23004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23005 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
23007 eval "ac_cv_type_off_t=yes"
23010 eval "ac_cv_type_off_t=no"
23015 if eval "test \"`echo '$ac_cv_type_'off_t`\" = yes"; then
23016 echo "$ac_t""yes" 1>&6
23018 echo "$ac_t""no" 1>&6
23019 cat >> confdefs.h <<EOF
23025 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
23026 echo "configure:23027: checking for pid_t" >&5
23027 if eval "test \"\${ac_cv_type_pid_t+set}\" = set"; then
23028 echo $ac_n "(cached) $ac_c" 1>&6
23030 cat > conftest.$ac_ext <<EOF
23031 #line 23032 "configure"
23032 #include "confdefs.h"
23033 #include <sys/types.h>
23035 #include <stdlib.h>
23036 #include <stddef.h>
23040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23041 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
23043 eval "ac_cv_type_pid_t=yes"
23046 eval "ac_cv_type_pid_t=no"
23051 if eval "test \"`echo '$ac_cv_type_'pid_t`\" = yes"; then
23052 echo "$ac_t""yes" 1>&6
23054 echo "$ac_t""no" 1>&6
23055 cat >> confdefs.h <<EOF
23061 echo $ac_n "checking for ptrdiff_t""... $ac_c" 1>&6
23062 echo "configure:23063: checking for ptrdiff_t" >&5
23063 if eval "test \"\${am_cv_type_ptrdiff_t+set}\" = set"; then
23064 echo $ac_n "(cached) $ac_c" 1>&6
23066 cat > conftest.$ac_ext <<EOF
23067 #line 23068 "configure"
23068 #include "confdefs.h"
23069 #include <stddef.h>
23074 if { (eval echo configure:23075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23076 am_cv_type_ptrdiff_t=yes
23078 echo "configure: failed program was:" >&5
23079 cat conftest.$ac_ext >&5
23081 am_cv_type_ptrdiff_t=no
23086 echo "$ac_t""$am_cv_type_ptrdiff_t" 1>&6
23087 if test $am_cv_type_ptrdiff_t = yes; then
23088 cat >> confdefs.h <<\EOF
23089 #define HAVE_PTRDIFF_T 1
23094 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
23095 echo "configure:23096: checking return type of signal handlers" >&5
23096 if eval "test \"\${ac_cv_type_signal+set}\" = set"; then
23097 echo $ac_n "(cached) $ac_c" 1>&6
23099 cat > conftest.$ac_ext <<EOF
23100 #line 23101 "configure"
23101 #include "confdefs.h"
23102 #include <sys/types.h>
23103 #include <signal.h>
23108 extern "C" void (*signal (int, void (*)(int)))(int);
23110 void (*signal ()) ();
23117 if { (eval echo configure:23118: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23119 ac_cv_type_signal=void
23121 echo "configure: failed program was:" >&5
23122 cat conftest.$ac_ext >&5
23124 ac_cv_type_signal=int
23129 echo "$ac_t""$ac_cv_type_signal" 1>&6
23130 cat >> confdefs.h <<EOF
23131 #define RETSIGTYPE $ac_cv_type_signal
23135 echo $ac_n "checking for size_t""... $ac_c" 1>&6
23136 echo "configure:23137: checking for size_t" >&5
23137 if eval "test \"\${ac_cv_type_size_t+set}\" = set"; then
23138 echo $ac_n "(cached) $ac_c" 1>&6
23140 cat > conftest.$ac_ext <<EOF
23141 #line 23142 "configure"
23142 #include "confdefs.h"
23143 #include <sys/types.h>
23145 #include <stdlib.h>
23146 #include <stddef.h>
23150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23151 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
23153 eval "ac_cv_type_size_t=yes"
23156 eval "ac_cv_type_size_t=no"
23161 if eval "test \"`echo '$ac_cv_type_'size_t`\" = yes"; then
23162 echo "$ac_t""yes" 1>&6
23164 echo "$ac_t""no" 1>&6
23165 cat >> confdefs.h <<EOF
23166 #define size_t unsigned
23172 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6
23173 echo "configure:23174: checking for ssize_t" >&5
23174 if eval "test \"\${ac_cv_type_ssize_t+set}\" = set"; then
23175 echo $ac_n "(cached) $ac_c" 1>&6
23177 cat > conftest.$ac_ext <<EOF
23178 #line 23179 "configure"
23179 #include "confdefs.h"
23180 #include <sys/types.h>
23182 #include <stdlib.h>
23183 #include <stddef.h>
23187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23188 egrep "(^|[^a-zA-Z_0-9])ssize_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
23190 eval "ac_cv_type_ssize_t=yes"
23193 eval "ac_cv_type_ssize_t=no"
23198 if eval "test \"`echo '$ac_cv_type_'ssize_t`\" = yes"; then
23199 echo "$ac_t""yes" 1>&6
23201 echo "$ac_t""no" 1>&6
23202 cat >> confdefs.h <<EOF
23203 #define ssize_t signed int
23208 echo $ac_n "checking for caddr_t""... $ac_c" 1>&6
23209 echo "configure:23210: checking for caddr_t" >&5
23210 if eval "test \"\${ac_cv_type_caddr_t+set}\" = set"; then
23211 echo $ac_n "(cached) $ac_c" 1>&6
23213 cat > conftest.$ac_ext <<EOF
23214 #line 23215 "configure"
23215 #include "confdefs.h"
23216 #include <sys/types.h>
23218 #include <stdlib.h>
23219 #include <stddef.h>
23223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23224 egrep "(^|[^a-zA-Z_0-9])caddr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
23226 eval "ac_cv_type_caddr_t=yes"
23229 eval "ac_cv_type_caddr_t=no"
23234 if eval "test \"`echo '$ac_cv_type_'caddr_t`\" = yes"; then
23235 echo "$ac_t""yes" 1>&6
23237 echo "$ac_t""no" 1>&6
23238 cat >> confdefs.h <<EOF
23239 #define caddr_t char *
23245 echo $ac_n "checking for socklen_t""... $ac_c" 1>&6
23246 echo "configure:23247: checking for socklen_t" >&5
23247 if eval "test \"\${ol_cv_type_socklen_t+set}\" = set"; then
23248 echo $ac_n "(cached) $ac_c" 1>&6
23250 cat > conftest.$ac_ext <<EOF
23251 #line 23252 "configure"
23252 #include "confdefs.h"
23254 #ifdef HAVE_SYS_TYPES_H
23255 #include <sys/types.h>
23257 #ifdef HAVE_SYS_SOCKET_H
23258 #include <sys/socket.h>
23265 if { (eval echo configure:23266: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23267 ol_cv_type_socklen_t=yes
23269 echo "configure: failed program was:" >&5
23270 cat conftest.$ac_ext >&5
23272 ol_cv_type_socklen_t=no
23277 echo "$ac_t""$ol_cv_type_socklen_t" 1>&6
23278 if test $ol_cv_type_socklen_t = no; then
23279 cat >> confdefs.h <<\EOF
23280 #define socklen_t int
23285 echo $ac_n "checking for member st_blksize in aggregate type struct stat""... $ac_c" 1>&6
23286 echo "configure:23287: checking for member st_blksize in aggregate type struct stat" >&5
23287 if eval "test \"\${ac_cv_c_struct_member_st_blksize+set}\" = set"; then
23288 echo $ac_n "(cached) $ac_c" 1>&6
23290 cat > conftest.$ac_ext <<EOF
23291 #line 23292 "configure"
23292 #include "confdefs.h"
23293 #include <sys/types.h>
23294 #include <sys/stat.h>
23296 struct stat foo; foo.st_blksize;
23299 if { (eval echo configure:23300: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23301 ac_cv_c_struct_member_st_blksize=yes
23303 echo "configure: failed program was:" >&5
23304 cat conftest.$ac_ext >&5
23306 ac_cv_c_struct_member_st_blksize=no
23311 echo "$ac_t""$ac_cv_c_struct_member_st_blksize" 1>&6
23312 st_blksize="$ac_cv_c_struct_member_st_blksize"
23313 if test $ac_cv_c_struct_member_st_blksize = yes; then
23314 cat >> confdefs.h <<\EOF
23315 #define HAVE_ST_BLKSIZE 1
23320 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
23321 echo "configure:23322: checking whether time.h and sys/time.h may both be included" >&5
23322 if eval "test \"\${ac_cv_header_time+set}\" = set"; then
23323 echo $ac_n "(cached) $ac_c" 1>&6
23325 cat > conftest.$ac_ext <<EOF
23326 #line 23327 "configure"
23327 #include "confdefs.h"
23328 #include <sys/types.h>
23329 #include <sys/time.h>
23335 if { (eval echo configure:23336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23337 ac_cv_header_time=yes
23339 echo "configure: failed program was:" >&5
23340 cat conftest.$ac_ext >&5
23342 ac_cv_header_time=no
23347 echo "$ac_t""$ac_cv_header_time" 1>&6
23348 if test $ac_cv_header_time = yes; then
23349 cat >> confdefs.h <<\EOF
23350 #define TIME_WITH_SYS_TIME 1
23355 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
23356 echo "configure:23357: checking whether struct tm is in sys/time.h or time.h" >&5
23357 if eval "test \"\${ac_cv_struct_tm+set}\" = set"; then
23358 echo $ac_n "(cached) $ac_c" 1>&6
23360 cat > conftest.$ac_ext <<EOF
23361 #line 23362 "configure"
23362 #include "confdefs.h"
23363 #include <sys/types.h>
23366 struct tm *tp; tp->tm_sec;
23369 if { (eval echo configure:23370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23371 ac_cv_struct_tm=time.h
23373 echo "configure: failed program was:" >&5
23374 cat conftest.$ac_ext >&5
23376 ac_cv_struct_tm=sys/time.h
23381 echo "$ac_t""$ac_cv_struct_tm" 1>&6
23382 if test $ac_cv_struct_tm = sys/time.h; then
23383 cat >> confdefs.h <<\EOF
23384 #define TM_IN_SYS_TIME 1
23389 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
23390 echo "configure:23391: checking for uid_t in sys/types.h" >&5
23391 if eval "test \"\${ac_cv_type_uid_t+set}\" = set"; then
23392 echo $ac_n "(cached) $ac_c" 1>&6
23394 cat > conftest.$ac_ext <<EOF
23395 #line 23396 "configure"
23396 #include "confdefs.h"
23397 #include <sys/types.h>
23399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23400 egrep "uid_t" >/dev/null 2>&1; then
23402 ac_cv_type_uid_t=yes
23405 ac_cv_type_uid_t=no
23411 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
23412 if test $ac_cv_type_uid_t = no; then
23413 cat >> confdefs.h <<\EOF
23417 cat >> confdefs.h <<\EOF
23423 echo $ac_n "checking for sig_atomic_t""... $ac_c" 1>&6
23424 echo "configure:23425: checking for sig_atomic_t" >&5
23425 if eval "test \"\${ol_cv_type_sig_atomic_t+set}\" = set"; then
23426 echo $ac_n "(cached) $ac_c" 1>&6
23428 cat > conftest.$ac_ext <<EOF
23429 #line 23430 "configure"
23430 #include "confdefs.h"
23431 #include <signal.h>
23433 sig_atomic_t atomic;
23436 if { (eval echo configure:23437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23438 ol_cv_type_sig_atomic_t=yes
23440 echo "configure: failed program was:" >&5
23441 cat conftest.$ac_ext >&5
23443 ol_cv_type_sig_atomic_t=no
23448 echo "$ac_t""$ol_cv_type_sig_atomic_t" 1>&6
23449 if test $ol_cv_type_sig_atomic_t = no; then
23450 cat >> confdefs.h <<\EOF
23451 #define sig_atomic_t int
23458 # test for pw_gecos in struct passwd
23459 echo $ac_n "checking struct passwd for pw_gecos""... $ac_c" 1>&6
23460 echo "configure:23461: checking struct passwd for pw_gecos" >&5
23461 if eval "test \"\${ol_cv_struct_passwd_pw_gecos+set}\" = set"; then
23462 echo $ac_n "(cached) $ac_c" 1>&6
23465 cat > conftest.$ac_ext <<EOF
23466 #line 23467 "configure"
23467 #include "confdefs.h"
23472 pwd.pw_gecos = pwd.pw_name;
23476 if { (eval echo configure:23477: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23478 ol_cv_struct_passwd_pw_gecos=yes
23480 echo "configure: failed program was:" >&5
23481 cat conftest.$ac_ext >&5
23483 ol_cv_struct_passwd_pw_gecos=no
23488 echo "$ac_t""$ol_cv_struct_passwd_pw_gecos" 1>&6
23489 if test $ol_cv_struct_passwd_pw_gecos = yes ; then
23490 cat >> confdefs.h <<\EOF
23491 #define HAVE_PW_GECOS 1
23496 # test for pw_passwd in struct passwd
23497 echo $ac_n "checking struct passwd for pw_passwd""... $ac_c" 1>&6
23498 echo "configure:23499: checking struct passwd for pw_passwd" >&5
23499 if eval "test \"\${ol_cv_struct_passwd_pw_passwd+set}\" = set"; then
23500 echo $ac_n "(cached) $ac_c" 1>&6
23503 cat > conftest.$ac_ext <<EOF
23504 #line 23505 "configure"
23505 #include "confdefs.h"
23510 pwd.pw_passwd = pwd.pw_name;
23514 if { (eval echo configure:23515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23516 ol_cv_struct_passwd_pw_passwd=yes
23518 echo "configure: failed program was:" >&5
23519 cat conftest.$ac_ext >&5
23521 ol_cv_struct_passwd_pw_passwd=no
23526 echo "$ac_t""$ol_cv_struct_passwd_pw_passwd" 1>&6
23527 if test $ol_cv_struct_passwd_pw_passwd = yes ; then
23528 cat >> confdefs.h <<\EOF
23529 #define HAVE_PW_PASSWD 1
23535 echo $ac_n "checking if toupper() requires islower()""... $ac_c" 1>&6
23536 echo "configure:23537: checking if toupper() requires islower()" >&5
23537 if eval "test \"\${ol_cv_c_upper_lower+set}\" = set"; then
23538 echo $ac_n "(cached) $ac_c" 1>&6
23541 if test "$cross_compiling" = yes; then
23542 ol_cv_c_upper_lower=safe
23544 cat > conftest.$ac_ext <<EOF
23545 #line 23546 "configure"
23546 #include "confdefs.h"
23551 if ('C' == toupper('C'))
23557 if { (eval echo configure:23558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
23559 ol_cv_c_upper_lower=no
23561 echo "configure: failed program was:" >&5
23562 cat conftest.$ac_ext >&5
23564 ol_cv_c_upper_lower=yes
23571 echo "$ac_t""$ol_cv_c_upper_lower" 1>&6
23572 if test $ol_cv_c_upper_lower != no ; then
23573 cat >> confdefs.h <<\EOF
23574 #define C_UPPER_LOWER 1
23579 echo $ac_n "checking for working const""... $ac_c" 1>&6
23580 echo "configure:23581: checking for working const" >&5
23581 if eval "test \"\${ac_cv_c_const+set}\" = set"; then
23582 echo $ac_n "(cached) $ac_c" 1>&6
23584 cat > conftest.$ac_ext <<EOF
23585 #line 23586 "configure"
23586 #include "confdefs.h"
23590 /* Ultrix mips cc rejects this. */
23591 typedef int charset[2]; const charset x;
23592 /* SunOS 4.1.1 cc rejects this. */
23593 char const *const *ccp;
23595 /* NEC SVR4.0.2 mips cc rejects this. */
23596 struct point {int x, y;};
23597 static struct point const zero = {0,0};
23598 /* AIX XL C 1.02.0.0 rejects this.
23599 It does not let you subtract one const X* pointer from another in an arm
23600 of an if-expression whose if-part is not a constant expression */
23601 const char *g = "string";
23602 ccp = &g + (g ? g-g : 0);
23603 /* HPUX 7.0 cc rejects these. */
23606 ccp = (char const *const *) p;
23607 { /* SCO 3.2v4 cc rejects this. */
23609 char const *s = 0 ? (char *) 0 : (char const *) 0;
23613 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23614 int x[] = {25, 17};
23615 const int *foo = &x[0];
23618 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23619 typedef const int *iptr;
23623 { /* AIX XL C 1.02.0.0 rejects this saying
23624 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23625 struct s { int j; const int *ap[3]; };
23626 struct s *b; b->j = 5;
23628 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23629 const int foo = 10;
23634 if { (eval echo configure:23635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23638 echo "configure: failed program was:" >&5
23639 cat conftest.$ac_ext >&5
23646 echo "$ac_t""$ac_cv_c_const" 1>&6
23647 if test $ac_cv_c_const = no; then
23648 cat >> confdefs.h <<\EOF
23654 echo $ac_n "checking if compiler understands volatile""... $ac_c" 1>&6
23655 echo "configure:23656: checking if compiler understands volatile" >&5
23656 if eval "test \"\${ol_cv_c_volatile+set}\" = set"; then
23657 echo $ac_n "(cached) $ac_c" 1>&6
23659 cat > conftest.$ac_ext <<EOF
23660 #line 23661 "configure"
23661 #include "confdefs.h"
23664 volatile int a; int * volatile b = x ? &y : &z;
23665 /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
23669 if { (eval echo configure:23670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23671 ol_cv_c_volatile=yes
23673 echo "configure: failed program was:" >&5
23674 cat conftest.$ac_ext >&5
23676 ol_cv_c_volatile=no
23681 echo "$ac_t""$ol_cv_c_volatile" 1>&6
23682 if test $ol_cv_c_volatile = yes; then
23685 cat >> confdefs.h <<\EOF
23692 if test $cross_compiling = yes ; then
23693 echo "configure: warning: Crossing compiling... all bets are off!" 1>&2
23694 cat >> confdefs.h <<\EOF
23695 #define CROSS_COMPILING 1
23699 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
23700 echo "configure:23701: checking whether byte ordering is bigendian" >&5
23701 if eval "test \"\${ac_cv_c_bigendian+set}\" = set"; then
23702 echo $ac_n "(cached) $ac_c" 1>&6
23704 ac_cv_c_bigendian=unknown
23705 # See if sys/param.h defines the BYTE_ORDER macro.
23706 cat > conftest.$ac_ext <<EOF
23707 #line 23708 "configure"
23708 #include "confdefs.h"
23709 #include <sys/types.h>
23710 #include <sys/param.h>
23713 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
23714 bogus endian macros
23718 if { (eval echo configure:23719: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23720 # It does; now see whether it defined to BIG_ENDIAN or not.
23721 cat > conftest.$ac_ext <<EOF
23722 #line 23723 "configure"
23723 #include "confdefs.h"
23724 #include <sys/types.h>
23725 #include <sys/param.h>
23728 #if BYTE_ORDER != BIG_ENDIAN
23733 if { (eval echo configure:23734: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23735 ac_cv_c_bigendian=yes
23737 echo "configure: failed program was:" >&5
23738 cat conftest.$ac_ext >&5
23740 ac_cv_c_bigendian=no
23744 echo "configure: failed program was:" >&5
23745 cat conftest.$ac_ext >&5
23748 if test $ac_cv_c_bigendian = unknown; then
23749 if test "$cross_compiling" = yes; then
23750 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
23752 cat > conftest.$ac_ext <<EOF
23753 #line 23754 "configure"
23754 #include "confdefs.h"
23756 /* Are we little or big endian? From Harbison&Steele. */
23760 char c[sizeof (long)];
23763 exit (u.c[sizeof (long) - 1] == 1);
23766 if { (eval echo configure:23767: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
23768 ac_cv_c_bigendian=no
23770 echo "configure: failed program was:" >&5
23771 cat conftest.$ac_ext >&5
23773 ac_cv_c_bigendian=yes
23781 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
23782 if test $ac_cv_c_bigendian = yes; then
23783 cat >> confdefs.h <<\EOF
23784 #define WORDS_BIGENDIAN 1
23791 echo $ac_n "checking size of short""... $ac_c" 1>&6
23792 echo "configure:23793: checking size of short" >&5
23793 if eval "test \"\${ac_cv_sizeof_short+set}\" = set"; then
23794 echo $ac_n "(cached) $ac_c" 1>&6
23796 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23797 cat > conftest.$ac_ext <<EOF
23798 #line 23799 "configure"
23799 #include "confdefs.h"
23800 #include "confdefs.h"
23801 #include <stdlib.h>
23802 #include <sys/types.h>
23806 switch (0) case 0: case (sizeof (short) == $ac_size):;
23809 if { (eval echo configure:23810: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23811 ac_cv_sizeof_short=$ac_size
23813 echo "configure: failed program was:" >&5
23814 cat conftest.$ac_ext >&5
23817 if test x$ac_cv_sizeof_short != x ; then break; fi
23822 if test x$ac_cv_sizeof_short = x ; then
23823 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }
23825 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
23826 cat >> confdefs.h <<EOF
23827 #define SIZEOF_SHORT $ac_cv_sizeof_short
23831 echo $ac_n "checking size of int""... $ac_c" 1>&6
23832 echo "configure:23833: checking size of int" >&5
23833 if eval "test \"\${ac_cv_sizeof_int+set}\" = set"; then
23834 echo $ac_n "(cached) $ac_c" 1>&6
23836 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23837 cat > conftest.$ac_ext <<EOF
23838 #line 23839 "configure"
23839 #include "confdefs.h"
23840 #include "confdefs.h"
23841 #include <stdlib.h>
23842 #include <sys/types.h>
23846 switch (0) case 0: case (sizeof (int) == $ac_size):;
23849 if { (eval echo configure:23850: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23851 ac_cv_sizeof_int=$ac_size
23853 echo "configure: failed program was:" >&5
23854 cat conftest.$ac_ext >&5
23857 if test x$ac_cv_sizeof_int != x ; then break; fi
23862 if test x$ac_cv_sizeof_int = x ; then
23863 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }
23865 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
23866 cat >> confdefs.h <<EOF
23867 #define SIZEOF_INT $ac_cv_sizeof_int
23871 echo $ac_n "checking size of long""... $ac_c" 1>&6
23872 echo "configure:23873: checking size of long" >&5
23873 if eval "test \"\${ac_cv_sizeof_long+set}\" = set"; then
23874 echo $ac_n "(cached) $ac_c" 1>&6
23876 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23877 cat > conftest.$ac_ext <<EOF
23878 #line 23879 "configure"
23879 #include "confdefs.h"
23880 #include "confdefs.h"
23881 #include <stdlib.h>
23882 #include <sys/types.h>
23886 switch (0) case 0: case (sizeof (long) == $ac_size):;
23889 if { (eval echo configure:23890: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23891 ac_cv_sizeof_long=$ac_size
23893 echo "configure: failed program was:" >&5
23894 cat conftest.$ac_ext >&5
23897 if test x$ac_cv_sizeof_long != x ; then break; fi
23902 if test x$ac_cv_sizeof_long = x ; then
23903 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }
23905 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
23906 cat >> confdefs.h <<EOF
23907 #define SIZEOF_LONG $ac_cv_sizeof_long
23911 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
23912 echo "configure:23913: checking size of wchar_t" >&5
23913 if eval "test \"\${ac_cv_sizeof_wchar_t+set}\" = set"; then
23914 echo $ac_n "(cached) $ac_c" 1>&6
23916 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23917 cat > conftest.$ac_ext <<EOF
23918 #line 23919 "configure"
23919 #include "confdefs.h"
23920 #include "confdefs.h"
23921 #include <stdlib.h>
23922 #include <sys/types.h>
23926 switch (0) case 0: case (sizeof (wchar_t) == $ac_size):;
23929 if { (eval echo configure:23930: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
23931 ac_cv_sizeof_wchar_t=$ac_size
23933 echo "configure: failed program was:" >&5
23934 cat conftest.$ac_ext >&5
23937 if test x$ac_cv_sizeof_wchar_t != x ; then break; fi
23942 if test x$ac_cv_sizeof_wchar_t = x ; then
23943 { echo "configure: error: cannot determine a size for wchar_t" 1>&2; exit 1; }
23945 echo "$ac_t""$ac_cv_sizeof_wchar_t" 1>&6
23946 cat >> confdefs.h <<EOF
23947 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
23952 if test "$ac_cv_sizeof_int" -lt 4 ; then
23953 echo "configure: warning: OpenLDAP requires 'int' to be 32 bits or greater." 1>&2
23955 cat >> confdefs.h <<\EOF
23956 #define LBER_INT_T long
23960 cat >> confdefs.h <<\EOF
23961 #define LBER_INT_T int
23966 cat >> confdefs.h <<\EOF
23967 #define LBER_LEN_T long
23970 cat >> confdefs.h <<\EOF
23971 #define LBER_SOCKET_T int
23974 cat >> confdefs.h <<\EOF
23975 #define LBER_TAG_T long
23979 echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
23980 echo "configure:23981: checking for 8-bit clean memcmp" >&5
23981 if eval "test \"\${ac_cv_func_memcmp_clean+set}\" = set"; then
23982 echo $ac_n "(cached) $ac_c" 1>&6
23984 if test "$cross_compiling" = yes; then
23985 ac_cv_func_memcmp_clean=no
23987 cat > conftest.$ac_ext <<EOF
23988 #line 23989 "configure"
23989 #include "confdefs.h"
23993 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
23994 exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
23998 if { (eval echo configure:23999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>&5
24000 ac_cv_func_memcmp_clean=yes
24002 echo "configure: failed program was:" >&5
24003 cat conftest.$ac_ext >&5
24005 ac_cv_func_memcmp_clean=no
24012 echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
24013 test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
24015 echo $ac_n "checking for strftime""... $ac_c" 1>&6
24016 echo "configure:24017: checking for strftime" >&5
24017 if eval "test \"\${ac_cv_func_strftime+set}\" = set"; then
24018 echo $ac_n "(cached) $ac_c" 1>&6
24020 cat > conftest.$ac_ext <<EOF
24021 #line 24022 "configure"
24022 #include "confdefs.h"
24023 /* System header to define __stub macros and hopefully few prototypes,
24024 which can conflict with char strftime(); below. */
24025 #include <assert.h>
24026 /* Override any gcc2 internal prototype to avoid an error. */
24027 /* We use char because int might match the return type of a gcc2
24028 builtin and then its argument prototype would still apply. */
24034 /* The GNU C library defines this for functions which it implements
24035 to always fail with ENOSYS. Some functions are actually named
24036 something starting with __ and the normal name is an alias. */
24037 #if defined (__stub_strftime) || defined (__stub___strftime)
24045 if { (eval echo configure:24046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24047 eval "ac_cv_func_strftime=yes"
24049 echo "configure: failed program was:" >&5
24050 cat conftest.$ac_ext >&5
24052 eval "ac_cv_func_strftime=no"
24057 if eval "test \"`echo '$ac_cv_func_'strftime`\" = yes"; then
24058 echo "$ac_t""yes" 1>&6
24059 cat >> confdefs.h <<\EOF
24060 #define HAVE_STRFTIME 1
24064 echo "$ac_t""no" 1>&6
24065 # strftime is in -lintl on SCO UNIX.
24066 echo $ac_n "checking for strftime in -lintl""... $ac_c" 1>&6
24067 echo "configure:24068: checking for strftime in -lintl" >&5
24068 ac_lib_var=`echo intl'_'strftime | sed 'y%./+-:%__p__%'`
24069 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
24070 echo $ac_n "(cached) $ac_c" 1>&6
24072 ac_save_LIBS="$LIBS"
24073 LIBS="-lintl $LIBS"
24074 cat > conftest.$ac_ext <<EOF
24075 #line 24076 "configure"
24076 #include "confdefs.h"
24077 /* Override any gcc2 internal prototype to avoid an error. */
24078 /* We use char because int might match the return type of a gcc2
24079 builtin and then its argument prototype would still apply. */
24086 if { (eval echo configure:24087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24088 eval "ac_cv_lib_$ac_lib_var=yes"
24090 echo "configure: failed program was:" >&5
24091 cat conftest.$ac_ext >&5
24093 eval "ac_cv_lib_$ac_lib_var=no"
24096 LIBS="$ac_save_LIBS"
24099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
24100 echo "$ac_t""yes" 1>&6
24101 cat >> confdefs.h <<\EOF
24102 #define HAVE_STRFTIME 1
24105 LIBS="-lintl $LIBS"
24107 echo "$ac_t""no" 1>&6
24113 echo $ac_n "checking for inet_aton()""... $ac_c" 1>&6
24114 echo "configure:24115: checking for inet_aton()" >&5
24115 if eval "test \"\${ol_cv_func_inet_aton+set}\" = set"; then
24116 echo $ac_n "(cached) $ac_c" 1>&6
24118 cat > conftest.$ac_ext <<EOF
24119 #line 24120 "configure"
24120 #include "confdefs.h"
24122 #ifdef HAVE_SYS_TYPES_H
24123 # include <sys/types.h>
24125 #ifdef HAVE_SYS_SOCKET_H
24126 # include <sys/socket.h>
24127 # ifdef HAVE_SYS_SELECT_H
24128 # include <sys/select.h>
24130 # include <netinet/in.h>
24131 # ifdef HAVE_ARPA_INET_H
24132 # include <arpa/inet.h>
24138 int rc = inet_aton( "255.255.255.255", &in );
24141 if { (eval echo configure:24142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24143 ol_cv_func_inet_aton=yes
24145 echo "configure: failed program was:" >&5
24146 cat conftest.$ac_ext >&5
24148 ol_cv_func_inet_aton=no
24153 echo "$ac_t""$ol_cv_func_inet_aton" 1>&6
24154 if test $ol_cv_func_inet_aton != no; then
24155 cat >> confdefs.h <<\EOF
24156 #define HAVE_INET_ATON 1
24162 echo $ac_n "checking for _spawnlp""... $ac_c" 1>&6
24163 echo "configure:24164: checking for _spawnlp" >&5
24164 if eval "test \"\${ac_cv_func__spawnlp+set}\" = set"; then
24165 echo $ac_n "(cached) $ac_c" 1>&6
24167 cat > conftest.$ac_ext <<EOF
24168 #line 24169 "configure"
24169 #include "confdefs.h"
24170 /* System header to define __stub macros and hopefully few prototypes,
24171 which can conflict with char _spawnlp(); below. */
24172 #include <assert.h>
24173 /* Override any gcc2 internal prototype to avoid an error. */
24174 /* We use char because int might match the return type of a gcc2
24175 builtin and then its argument prototype would still apply. */
24181 /* The GNU C library defines this for functions which it implements
24182 to always fail with ENOSYS. Some functions are actually named
24183 something starting with __ and the normal name is an alias. */
24184 #if defined (__stub__spawnlp) || defined (__stub____spawnlp)
24192 if { (eval echo configure:24193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24194 eval "ac_cv_func__spawnlp=yes"
24196 echo "configure: failed program was:" >&5
24197 cat conftest.$ac_ext >&5
24199 eval "ac_cv_func__spawnlp=no"
24204 if eval "test \"`echo '$ac_cv_func_'_spawnlp`\" = yes"; then
24205 echo "$ac_t""yes" 1>&6
24206 cat >> confdefs.h <<\EOF
24207 #define HAVE_SPAWNLP 1
24211 echo "$ac_t""no" 1>&6
24215 echo $ac_n "checking for _snprintf""... $ac_c" 1>&6
24216 echo "configure:24217: checking for _snprintf" >&5
24217 if eval "test \"\${ac_cv_func__snprintf+set}\" = set"; then
24218 echo $ac_n "(cached) $ac_c" 1>&6
24220 cat > conftest.$ac_ext <<EOF
24221 #line 24222 "configure"
24222 #include "confdefs.h"
24223 /* System header to define __stub macros and hopefully few prototypes,
24224 which can conflict with char _snprintf(); below. */
24225 #include <assert.h>
24226 /* Override any gcc2 internal prototype to avoid an error. */
24227 /* We use char because int might match the return type of a gcc2
24228 builtin and then its argument prototype would still apply. */
24234 /* The GNU C library defines this for functions which it implements
24235 to always fail with ENOSYS. Some functions are actually named
24236 something starting with __ and the normal name is an alias. */
24237 #if defined (__stub__snprintf) || defined (__stub____snprintf)
24245 if { (eval echo configure:24246: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24247 eval "ac_cv_func__snprintf=yes"
24249 echo "configure: failed program was:" >&5
24250 cat conftest.$ac_ext >&5
24252 eval "ac_cv_func__snprintf=no"
24257 if eval "test \"`echo '$ac_cv_func_'_snprintf`\" = yes"; then
24258 echo "$ac_t""yes" 1>&6
24259 ac_cv_func_snprintf=yes
24260 cat >> confdefs.h <<\EOF
24261 #define snprintf _snprintf
24266 echo "$ac_t""no" 1>&6
24270 echo $ac_n "checking for _vsnprintf""... $ac_c" 1>&6
24271 echo "configure:24272: checking for _vsnprintf" >&5
24272 if eval "test \"\${ac_cv_func__vsnprintf+set}\" = set"; then
24273 echo $ac_n "(cached) $ac_c" 1>&6
24275 cat > conftest.$ac_ext <<EOF
24276 #line 24277 "configure"
24277 #include "confdefs.h"
24278 /* System header to define __stub macros and hopefully few prototypes,
24279 which can conflict with char _vsnprintf(); below. */
24280 #include <assert.h>
24281 /* Override any gcc2 internal prototype to avoid an error. */
24282 /* We use char because int might match the return type of a gcc2
24283 builtin and then its argument prototype would still apply. */
24289 /* The GNU C library defines this for functions which it implements
24290 to always fail with ENOSYS. Some functions are actually named
24291 something starting with __ and the normal name is an alias. */
24292 #if defined (__stub__vsnprintf) || defined (__stub____vsnprintf)
24300 if { (eval echo configure:24301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24302 eval "ac_cv_func__vsnprintf=yes"
24304 echo "configure: failed program was:" >&5
24305 cat conftest.$ac_ext >&5
24307 eval "ac_cv_func__vsnprintf=no"
24312 if eval "test \"`echo '$ac_cv_func_'_vsnprintf`\" = yes"; then
24313 echo "$ac_t""yes" 1>&6
24314 ac_cv_func_vsnprintf=yes
24315 cat >> confdefs.h <<\EOF
24316 #define vsnprintf _vsnprintf
24321 echo "$ac_t""no" 1>&6
24325 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
24326 echo "configure:24327: checking for vprintf" >&5
24327 if eval "test \"\${ac_cv_func_vprintf+set}\" = set"; then
24328 echo $ac_n "(cached) $ac_c" 1>&6
24330 cat > conftest.$ac_ext <<EOF
24331 #line 24332 "configure"
24332 #include "confdefs.h"
24333 /* System header to define __stub macros and hopefully few prototypes,
24334 which can conflict with char vprintf(); below. */
24335 #include <assert.h>
24336 /* Override any gcc2 internal prototype to avoid an error. */
24337 /* We use char because int might match the return type of a gcc2
24338 builtin and then its argument prototype would still apply. */
24344 /* The GNU C library defines this for functions which it implements
24345 to always fail with ENOSYS. Some functions are actually named
24346 something starting with __ and the normal name is an alias. */
24347 #if defined (__stub_vprintf) || defined (__stub___vprintf)
24355 if { (eval echo configure:24356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24357 eval "ac_cv_func_vprintf=yes"
24359 echo "configure: failed program was:" >&5
24360 cat conftest.$ac_ext >&5
24362 eval "ac_cv_func_vprintf=no"
24367 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
24368 echo "$ac_t""yes" 1>&6
24369 cat >> confdefs.h <<\EOF
24370 #define HAVE_VPRINTF 1
24374 echo "$ac_t""no" 1>&6
24377 if test "$ac_cv_func_vprintf" != yes; then
24378 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
24379 echo "configure:24380: checking for _doprnt" >&5
24380 if eval "test \"\${ac_cv_func__doprnt+set}\" = set"; then
24381 echo $ac_n "(cached) $ac_c" 1>&6
24383 cat > conftest.$ac_ext <<EOF
24384 #line 24385 "configure"
24385 #include "confdefs.h"
24386 /* System header to define __stub macros and hopefully few prototypes,
24387 which can conflict with char _doprnt(); below. */
24388 #include <assert.h>
24389 /* Override any gcc2 internal prototype to avoid an error. */
24390 /* We use char because int might match the return type of a gcc2
24391 builtin and then its argument prototype would still apply. */
24397 /* The GNU C library defines this for functions which it implements
24398 to always fail with ENOSYS. Some functions are actually named
24399 something starting with __ and the normal name is an alias. */
24400 #if defined (__stub__doprnt) || defined (__stub____doprnt)
24408 if { (eval echo configure:24409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24410 eval "ac_cv_func__doprnt=yes"
24412 echo "configure: failed program was:" >&5
24413 cat conftest.$ac_ext >&5
24415 eval "ac_cv_func__doprnt=no"
24420 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
24421 echo "$ac_t""yes" 1>&6
24422 cat >> confdefs.h <<\EOF
24423 #define HAVE_DOPRNT 1
24427 echo "$ac_t""no" 1>&6
24433 if test $ac_cv_func_vprintf = yes ; then
24434 for ac_func in snprintf vsnprintf
24436 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24437 echo "configure:24438: checking for $ac_func" >&5
24438 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
24439 echo $ac_n "(cached) $ac_c" 1>&6
24441 cat > conftest.$ac_ext <<EOF
24442 #line 24443 "configure"
24443 #include "confdefs.h"
24444 /* System header to define __stub macros and hopefully few prototypes,
24445 which can conflict with char $ac_func(); below. */
24446 #include <assert.h>
24447 /* Override any gcc2 internal prototype to avoid an error. */
24448 /* We use char because int might match the return type of a gcc2
24449 builtin and then its argument prototype would still apply. */
24455 /* The GNU C library defines this for functions which it implements
24456 to always fail with ENOSYS. Some functions are actually named
24457 something starting with __ and the normal name is an alias. */
24458 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24466 if { (eval echo configure:24467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24468 eval "ac_cv_func_$ac_func=yes"
24470 echo "configure: failed program was:" >&5
24471 cat conftest.$ac_ext >&5
24473 eval "ac_cv_func_$ac_func=no"
24478 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
24479 echo "$ac_t""yes" 1>&6
24480 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24481 cat >> confdefs.h <<EOF
24482 #define $ac_tr_func 1
24486 echo "$ac_t""no" 1>&6
24548 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24549 echo "configure:24550: checking for $ac_func" >&5
24550 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
24551 echo $ac_n "(cached) $ac_c" 1>&6
24553 cat > conftest.$ac_ext <<EOF
24554 #line 24555 "configure"
24555 #include "confdefs.h"
24556 /* System header to define __stub macros and hopefully few prototypes,
24557 which can conflict with char $ac_func(); below. */
24558 #include <assert.h>
24559 /* Override any gcc2 internal prototype to avoid an error. */
24560 /* We use char because int might match the return type of a gcc2
24561 builtin and then its argument prototype would still apply. */
24567 /* The GNU C library defines this for functions which it implements
24568 to always fail with ENOSYS. Some functions are actually named
24569 something starting with __ and the normal name is an alias. */
24570 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24578 if { (eval echo configure:24579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24580 eval "ac_cv_func_$ac_func=yes"
24582 echo "configure: failed program was:" >&5
24583 cat conftest.$ac_ext >&5
24585 eval "ac_cv_func_$ac_func=no"
24590 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
24591 echo "$ac_t""yes" 1>&6
24592 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24593 cat >> confdefs.h <<EOF
24594 #define $ac_tr_func 1
24598 echo "$ac_t""no" 1>&6
24603 for ac_func in getopt getpeereid
24605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
24606 echo "configure:24607: checking for $ac_func" >&5
24607 if eval "test \"\${ac_cv_func_$ac_func+set}\" = set"; then
24608 echo $ac_n "(cached) $ac_c" 1>&6
24610 cat > conftest.$ac_ext <<EOF
24611 #line 24612 "configure"
24612 #include "confdefs.h"
24613 /* System header to define __stub macros and hopefully few prototypes,
24614 which can conflict with char $ac_func(); below. */
24615 #include <assert.h>
24616 /* Override any gcc2 internal prototype to avoid an error. */
24617 /* We use char because int might match the return type of a gcc2
24618 builtin and then its argument prototype would still apply. */
24624 /* The GNU C library defines this for functions which it implements
24625 to always fail with ENOSYS. Some functions are actually named
24626 something starting with __ and the normal name is an alias. */
24627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24635 if { (eval echo configure:24636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24637 eval "ac_cv_func_$ac_func=yes"
24639 echo "configure: failed program was:" >&5
24640 cat conftest.$ac_ext >&5
24642 eval "ac_cv_func_$ac_func=no"
24647 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
24648 echo "$ac_t""yes" 1>&6
24649 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
24650 cat >> confdefs.h <<EOF
24651 #define $ac_tr_func 1
24655 echo "$ac_t""no" 1>&6
24656 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
24662 if test "$ac_cv_func_getopt" != yes; then
24663 LIBSRCS="$LIBSRCS getopt.c"
24665 if test "$ac_cv_func_getpeereid" != yes; then
24666 echo $ac_n "checking for msg_accrights in msghdr""... $ac_c" 1>&6
24667 echo "configure:24668: checking for msg_accrights in msghdr" >&5
24668 if eval "test \"\${ol_cv_msghdr_msg_accrights+set}\" = set"; then
24669 echo $ac_n "(cached) $ac_c" 1>&6
24671 cat > conftest.$ac_ext <<EOF
24672 #line 24673 "configure"
24673 #include "confdefs.h"
24674 #include <sys/socket.h>
24676 struct msghdr m; m.msg_accrightslen=0
24679 if { (eval echo configure:24680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
24681 ol_cv_msghdr_msg_accrights=yes
24683 echo "configure: failed program was:" >&5
24684 cat conftest.$ac_ext >&5
24686 ol_cv_msghdr_msg_accrights=no
24692 echo "$ac_t""$ol_cv_msghdr_msg_accrights" 1>&6
24693 if test $ol_cv_msghdr_msg_accrights = "yes" ; then
24694 cat >> confdefs.h <<\EOF
24695 #define HAVE_MSGHDR_MSG_ACCRIGHTS 1
24700 LIBSRCS="$LIBSRCS getpeereid.c"
24702 if test "$ac_cv_func_snprintf" != yes -o "$ac_cv_func_vsnprintf" != yes; then
24703 if test "$ac_cv_func_snprintf" != yes; then
24704 cat >> confdefs.h <<\EOF
24705 #define snprintf ber_pvt_snprintf
24709 if test "$ac_cv_func_vsnprintf" != yes; then
24710 cat >> confdefs.h <<\EOF
24711 #define vsnprintf ber_pvt_vsnprintf
24718 if test "$ol_enable_slapi" != no ; then
24719 for ac_hdr in ltdl.h
24721 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
24722 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
24723 echo "configure:24724: checking for $ac_hdr" >&5
24724 if eval "test \"\${ac_cv_header_$ac_safe+set}\" = set"; then
24725 echo $ac_n "(cached) $ac_c" 1>&6
24727 cat > conftest.$ac_ext <<EOF
24728 #line 24729 "configure"
24729 #include "confdefs.h"
24732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
24733 { (eval echo configure:24734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
24734 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
24735 if test -z "$ac_err"; then
24737 eval "ac_cv_header_$ac_safe=yes"
24740 echo "configure: failed program was:" >&5
24741 cat conftest.$ac_ext >&5
24743 eval "ac_cv_header_$ac_safe=no"
24747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
24748 echo "$ac_t""yes" 1>&6
24749 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
24750 cat >> confdefs.h <<EOF
24751 #define $ac_tr_hdr 1
24755 echo "$ac_t""no" 1>&6
24760 if test $ac_cv_header_ltdl_h != yes ; then
24761 { echo "configure: error: could not locate <ltdl.h>" 1>&2; exit 1; }
24763 echo $ac_n "checking for lt_dlinit in -lltdl""... $ac_c" 1>&6
24764 echo "configure:24765: checking for lt_dlinit in -lltdl" >&5
24765 ac_lib_var=`echo ltdl'_'lt_dlinit | sed 'y%./+-:%__p__%'`
24766 if eval "test \"\${ac_cv_lib_$ac_lib_var+set}\" = set"; then
24767 echo $ac_n "(cached) $ac_c" 1>&6
24769 ac_save_LIBS="$LIBS"
24770 LIBS="-lltdl $LIBS"
24771 cat > conftest.$ac_ext <<EOF
24772 #line 24773 "configure"
24773 #include "confdefs.h"
24774 /* Override any gcc2 internal prototype to avoid an error. */
24775 /* We use char because int might match the return type of a gcc2
24776 builtin and then its argument prototype would still apply. */
24783 if { (eval echo configure:24784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
24785 eval "ac_cv_lib_$ac_lib_var=yes"
24787 echo "configure: failed program was:" >&5
24788 cat conftest.$ac_ext >&5
24790 eval "ac_cv_lib_$ac_lib_var=no"
24793 LIBS="$ac_save_LIBS"
24796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
24797 echo "$ac_t""yes" 1>&6
24800 LIBSLAPI=libslapi.a
24801 LIBSLAPITOOLS=../libslapi.a
24802 cat >> confdefs.h <<\EOF
24803 #define HAVE_LIBLTDL 1
24808 echo "$ac_t""no" 1>&6
24809 { echo "configure: error: could not locate libtool -lltdl" 1>&2; exit 1; }
24813 cat >> confdefs.h <<\EOF
24814 #define LDAP_SLAPI 1
24819 if test "$ol_enable_debug" != no ; then
24820 cat >> confdefs.h <<\EOF
24821 #define LDAP_DEBUG 1
24825 if test "$ol_enable_syslog" = yes ; then
24826 cat >> confdefs.h <<\EOF
24827 #define LDAP_SYSLOG 1
24831 if test "$ol_link_kbind" != no ; then
24832 cat >> confdefs.h <<\EOF
24833 #define LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND LDAP_VENDOR_VERSION
24837 if test "$ol_enable_proctitle" != no ; then
24838 cat >> confdefs.h <<\EOF
24839 #define LDAP_PROCTITLE 1
24843 if test "$ol_enable_referrals" != no ; then
24844 cat >> confdefs.h <<\EOF
24845 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
24849 if test "$ol_enable_local" != no; then
24850 cat >> confdefs.h <<\EOF
24851 #define LDAP_PF_LOCAL 1
24855 if test "$ol_link_ipv6" != no; then
24856 cat >> confdefs.h <<\EOF
24857 #define LDAP_PF_INET6 1
24861 if test "$ol_enable_cleartext" != no ; then
24862 cat >> confdefs.h <<\EOF
24863 #define SLAPD_CLEARTEXT 1
24867 if test "$ol_enable_crypt" != no ; then
24868 cat >> confdefs.h <<\EOF
24869 #define SLAPD_CRYPT 1
24873 if test "$ol_link_spasswd" != no ; then
24874 cat >> confdefs.h <<\EOF
24875 #define SLAPD_SPASSWD 1
24879 if test "$ol_enable_multimaster" != no ; then
24880 cat >> confdefs.h <<\EOF
24881 #define SLAPD_MULTIMASTER 1
24885 if test "$ol_enable_rlookups" != no ; then
24886 cat >> confdefs.h <<\EOF
24887 #define SLAPD_RLOOKUPS 1
24891 if test "$ol_enable_aci" != no ; then
24892 cat >> confdefs.h <<\EOF
24893 #define SLAPD_ACI_ENABLED 1
24898 if test "$ol_link_modules" != no ; then
24899 cat >> confdefs.h <<\EOF
24900 #define SLAPD_MODULES 1
24904 SLAPD_MODULES_LDFLAGS="-dlopen self"
24907 cat >> confdefs.h <<\EOF
24908 #define SLAPD_MOD_STATIC 1
24911 cat >> confdefs.h <<\EOF
24912 #define SLAPD_MOD_DYNAMIC 2
24916 if test "$ol_enable_bdb" != no ; then
24918 BUILD_BDB=$ol_enable_bdb
24919 if test "$ol_enable_bdb" = mod ; then
24920 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
24921 MFLAG=SLAPD_MOD_DYNAMIC
24923 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
24924 MFLAG=SLAPD_MOD_STATIC
24926 cat >> confdefs.h <<EOF
24927 #define SLAPD_BDB $MFLAG
24932 if test "$ol_enable_dnssrv" != no ; then
24934 BUILD_DNSSRV=$ol_enable_dnssrv
24935 if test "$ol_enable_dnssrv" = mod ; then
24936 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
24937 MFLAG=SLAPD_MOD_DYNAMIC
24939 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
24940 MFLAG=SLAPD_MOD_STATIC
24942 cat >> confdefs.h <<EOF
24943 #define SLAPD_DNSSRV $MFLAG
24948 if test "$ol_enable_hdb" != no ; then
24950 BUILD_HDB=$ol_enable_hdb
24951 if test "$ol_enable_hdb" = mod ; then
24952 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
24953 MFLAG=SLAPD_MOD_DYNAMIC
24955 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
24956 MFLAG=SLAPD_MOD_STATIC
24958 cat >> confdefs.h <<EOF
24959 #define SLAPD_HDB $MFLAG
24964 if test "$ol_enable_ldap" != no ; then
24966 BUILD_LDAP=$ol_enable_ldap
24967 if test "$ol_enable_ldap" = mod ; then
24968 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
24969 MFLAG=SLAPD_MOD_DYNAMIC
24971 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
24972 MFLAG=SLAPD_MOD_STATIC
24974 cat >> confdefs.h <<EOF
24975 #define SLAPD_LDAP $MFLAG
24980 if test "$ol_link_ldbm" != no -a $ol_enable_ldbm != no; then
24982 BUILD_LDBM=$ol_enable_ldbm
24983 if test "$ol_enable_ldbm" = mod ; then
24984 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldbm"
24985 MFLAG=SLAPD_MOD_DYNAMIC
24987 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldbm"
24988 MFLAG=SLAPD_MOD_STATIC
24990 cat >> confdefs.h <<EOF
24991 #define SLAPD_LDBM $MFLAG
24996 if test "$ol_enable_meta" != no ; then
24998 BUILD_META=$ol_enable_meta
25000 if test "$ol_enable_meta" = mod ; then
25001 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
25002 MFLAG=SLAPD_MOD_DYNAMIC
25004 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
25005 MFLAG=SLAPD_MOD_STATIC
25007 cat >> confdefs.h <<EOF
25008 #define SLAPD_META $MFLAG
25013 if test "$ol_enable_monitor" != no ; then
25015 BUILD_MONITOR=$ol_enable_monitor
25016 if test "$ol_enable_monitor" = mod ; then
25017 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
25018 MFLAG=SLAPD_MOD_DYNAMIC
25020 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
25021 MFLAG=SLAPD_MOD_STATIC
25023 cat >> confdefs.h <<EOF
25024 #define SLAPD_MONITOR $MFLAG
25029 if test "$ol_enable_null" != no ; then
25031 BUILD_NULL=$ol_enable_null
25032 if test "$ol_enable_null" = mod ; then
25033 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
25034 MFLAG=SLAPD_MOD_DYNAMIC
25036 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
25037 MFLAG=SLAPD_MOD_STATIC
25039 cat >> confdefs.h <<EOF
25040 #define SLAPD_NULL $MFLAG
25045 if test "$ol_enable_passwd" != no ; then
25047 BUILD_PASSWD=$ol_enable_passwd
25048 if test "$ol_enable_passwd" = mod ; then
25049 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
25050 MFLAG=SLAPD_MOD_DYNAMIC
25052 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
25053 MFLAG=SLAPD_MOD_STATIC
25055 cat >> confdefs.h <<EOF
25056 #define SLAPD_PASSWD $MFLAG
25061 if test "$ol_link_perl" != no ; then
25063 BUILD_PERL=$ol_enable_perl
25064 if test "$ol_enable_perl" = mod ; then
25065 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
25066 MFLAG=SLAPD_MOD_DYNAMIC
25068 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
25069 MFLAG=SLAPD_MOD_STATIC
25071 cat >> confdefs.h <<EOF
25072 #define SLAPD_PERL $MFLAG
25077 if test "$ol_enable_relay" != no ; then
25079 BUILD_RELAY=$ol_enable_relay
25080 if test "$ol_enable_relay" = mod ; then
25081 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
25082 MFLAG=SLAPD_MOD_DYNAMIC
25084 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
25085 MFLAG=SLAPD_MOD_STATIC
25087 cat >> confdefs.h <<EOF
25088 #define SLAPD_RELAY $MFLAG
25093 if test "$ol_enable_shell" != no ; then
25094 if test "$ol_link_thread" != no ; then
25095 echo "configure: warning: Use of --without-threads is recommended with back-shell" 1>&2
25098 BUILD_SHELL=$ol_enable_shell
25099 if test "$ol_enable_shell" = mod ; then
25100 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
25101 MFLAG=SLAPD_MOD_DYNAMIC
25103 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
25104 MFLAG=SLAPD_MOD_STATIC
25106 cat >> confdefs.h <<EOF
25107 #define SLAPD_SHELL $MFLAG
25112 if test "$ol_link_sql" != no ; then
25114 BUILD_SQL=$ol_enable_sql
25115 if test "$ol_enable_sql" = mod; then
25116 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
25117 MFLAG=SLAPD_MOD_DYNAMIC
25119 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
25120 MFLAG=SLAPD_MOD_STATIC
25122 cat >> confdefs.h <<EOF
25123 #define SLAPD_SQL $MFLAG
25128 if test "$ol_enable_denyop" != no ; then
25129 BUILD_DENYOP=$ol_enable_denyop
25130 if test "$ol_enable_denyop" = mod ; then
25131 MFLAG=SLAPD_MOD_DYNAMIC
25132 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS denyop.la"
25134 MFLAG=SLAPD_MOD_STATIC
25136 cat >> confdefs.h <<EOF
25137 #define SLAPD_OVER_DENYOP $MFLAG
25142 if test "$ol_enable_dyngroup" != no ; then
25143 BUILD_DYNGROUP=$ol_enable_dyngroup
25144 if test "$ol_enable_dyngroup" = mod ; then
25145 MFLAG=SLAPD_MOD_DYNAMIC
25146 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
25148 MFLAG=SLAPD_MOD_STATIC
25150 cat >> confdefs.h <<EOF
25151 #define SLAPD_OVER_DYNGROUP $MFLAG
25156 if test "$ol_enable_glue" != no ; then
25157 BUILD_GLUE=$ol_enable_glue
25158 if test "$ol_enable_glue" = mod ; then
25159 MFLAG=SLAPD_MOD_DYNAMIC
25160 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS glue.la"
25162 MFLAG=SLAPD_MOD_STATIC
25164 cat >> confdefs.h <<EOF
25165 #define SLAPD_OVER_GLUE $MFLAG
25170 if test "$ol_enable_lastmod" != no ; then
25171 BUILD_LASTMOD=$ol_enable_lastmod
25172 if test "$ol_enable_lastmod" = mod ; then
25173 MFLAG=SLAPD_MOD_DYNAMIC
25174 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS lastmod.la"
25176 MFLAG=SLAPD_MOD_STATIC
25178 cat >> confdefs.h <<EOF
25179 #define SLAPD_OVER_LASTMOD $MFLAG
25184 if test "$ol_enable_ppolicy" != no ; then
25185 BUILD_PPOLICY=$ol_enable_ppolicy
25186 if test "$ol_enable_ppolicy" = mod ; then
25187 MFLAG=SLAPD_MOD_DYNAMIC
25188 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
25190 MFLAG=SLAPD_MOD_STATIC
25192 cat >> confdefs.h <<EOF
25193 #define SLAPD_OVER_PPOLICY $MFLAG
25198 if test "$ol_enable_proxycache" != no ; then
25199 BUILD_PROXYCACHE=$ol_enable_proxycache
25200 if test "$ol_enable_proxycache" = mod ; then
25201 MFLAG=SLAPD_MOD_DYNAMIC
25202 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
25204 MFLAG=SLAPD_MOD_STATIC
25206 cat >> confdefs.h <<EOF
25207 #define SLAPD_OVER_PROXYCACHE $MFLAG
25212 if test "$ol_enable_refint" != no ; then
25213 BUILD_REFINT=$ol_enable_refint
25214 if test "$ol_enable_refint" = mod ; then
25215 MFLAG=SLAPD_MOD_DYNAMIC
25216 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
25218 MFLAG=SLAPD_MOD_STATIC
25220 cat >> confdefs.h <<EOF
25221 #define SLAPD_OVER_REFINT $MFLAG
25226 if test "$ol_enable_rwm" != no ; then
25228 BUILD_RWM=$ol_enable_rwm
25229 if test "$ol_enable_rwm" = mod ; then
25230 MFLAG=SLAPD_MOD_DYNAMIC
25231 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
25233 MFLAG=SLAPD_MOD_STATIC
25235 cat >> confdefs.h <<EOF
25236 #define SLAPD_OVER_RWM $MFLAG
25241 if test "$ol_enable_syncprov" != no ; then
25242 BUILD_SYNCPROV=$ol_enable_syncprov
25243 if test "$ol_enable_syncprov" = mod ; then
25244 MFLAG=SLAPD_MOD_DYNAMIC
25245 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
25247 MFLAG=SLAPD_MOD_STATIC
25249 cat >> confdefs.h <<EOF
25250 #define SLAPD_OVER_SYNCPROV $MFLAG
25255 if test "$ol_enable_unique" != no ; then
25256 BUILD_UNIQUE=$ol_enable_unique
25257 if test "$ol_enable_unique" = mod ; then
25258 MFLAG=SLAPD_MOD_DYNAMIC
25259 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
25261 MFLAG=SLAPD_MOD_STATIC
25263 cat >> confdefs.h <<EOF
25264 #define SLAPD_OVER_UNIQUE $MFLAG
25269 if test "$ol_enable_slurpd" != no -a "$ol_link_threads" != no -a \
25270 $BUILD_SLAPD = yes ; then
25274 if test "$ol_enable_rewrite" != no ; then
25275 cat >> confdefs.h <<\EOF
25276 #define ENABLE_REWRITE 1
25282 if test "$ol_enable_slapi" != no ; then
25283 cat >> confdefs.h <<\EOF
25284 #define ENABLE_SLAPI 1
25288 SLAPD_SLAPI_DEPEND=libslapi.a
25293 if test "$ac_cv_mingw32" = yes ; then
25295 SLAPD_MODULES_LDFLAGS=
25373 # Check whether --with-xxinstall or --without-xxinstall was given.
25374 if test "${with_xxinstall+set}" = set; then
25375 withval="$with_xxinstall"
25383 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
25385 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25386 # Let make expand exec_prefix.
25387 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25389 # Any assignment to VPATH causes Sun make to only execute
25390 # the first set of double-colon rules, so remove it if not needed.
25391 # If there is a colon in the path, we need to keep it.
25392 if test "x$srcdir" = x.; then
25393 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
25396 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
25398 DEFS=-DHAVE_CONFIG_H
25400 # Without the "./", some shells look in PATH for config.status.
25401 : ${CONFIG_STATUS=./config.status}
25403 echo creating $CONFIG_STATUS
25404 rm -f $CONFIG_STATUS
25405 cat > $CONFIG_STATUS <<EOF
25407 # Generated automatically by configure.
25408 # Run this file to recreate the current configuration.
25409 # This directory was configured as follows,
25410 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
25412 # $0 $ac_configure_args
25414 # Compiler output produced by configure, useful for debugging
25415 # configure, is in ./config.log if it exists.
25417 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
25420 case "\$ac_option" in
25421 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25422 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
25423 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
25424 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
25425 echo "$CONFIG_STATUS generated by autoconf version 2.13.1"
25427 -help | --help | --hel | --he | --h)
25428 echo "\$ac_cs_usage"; exit 0 ;;
25429 *) echo "\$ac_cs_usage"; exit 1 ;;
25433 ac_given_srcdir=$srcdir
25434 ac_given_INSTALL="$INSTALL"
25436 trap 'rm -fr `echo "\
25437 Makefile:build/top.mk:Makefile.in:build/dir.mk \
25438 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
25439 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
25440 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
25441 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
25442 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
25443 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
25444 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
25445 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
25446 include/Makefile:build/top.mk:include/Makefile.in \
25447 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
25448 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
25449 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
25450 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
25451 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
25452 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
25453 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
25454 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
25455 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
25456 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
25457 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
25458 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
25459 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
25460 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
25461 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
25462 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
25463 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
25464 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
25465 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
25466 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
25467 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
25468 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
25469 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
25470 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
25471 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
25472 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
25473 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
25475 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
25476 include/portable.h include/ldap_features.h include/lber_types.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
25478 cat >> $CONFIG_STATUS <<EOF
25480 # Protect against being on the right side of a sed subst in config.status.
25481 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
25482 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
25486 s%@CFLAGS@%$CFLAGS%g
25487 s%@CPPFLAGS@%$CPPFLAGS%g
25488 s%@CXXFLAGS@%$CXXFLAGS%g
25489 s%@FFLAGS@%$FFLAGS%g
25491 s%@LDFLAGS@%$LDFLAGS%g
25493 s%@exec_prefix@%$exec_prefix%g
25494 s%@prefix@%$prefix%g
25495 s%@program_transform_name@%$program_transform_name%g
25496 s%@bindir@%$bindir%g
25497 s%@sbindir@%$sbindir%g
25498 s%@libexecdir@%$libexecdir%g
25499 s%@datadir@%$datadir%g
25500 s%@sysconfdir@%$sysconfdir%g
25501 s%@sharedstatedir@%$sharedstatedir%g
25502 s%@localstatedir@%$localstatedir%g
25503 s%@libdir@%$libdir%g
25504 s%@includedir@%$includedir%g
25505 s%@oldincludedir@%$oldincludedir%g
25506 s%@infodir@%$infodir%g
25507 s%@mandir@%$mandir%g
25509 s%@host_alias@%$host_alias%g
25510 s%@host_cpu@%$host_cpu%g
25511 s%@host_vendor@%$host_vendor%g
25512 s%@host_os@%$host_os%g
25513 s%@target@%$target%g
25514 s%@target_alias@%$target_alias%g
25515 s%@target_cpu@%$target_cpu%g
25516 s%@target_vendor@%$target_vendor%g
25517 s%@target_os@%$target_os%g
25519 s%@build_alias@%$build_alias%g
25520 s%@build_cpu@%$build_cpu%g
25521 s%@build_vendor@%$build_vendor%g
25522 s%@build_os@%$build_os%g
25523 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
25524 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
25525 s%@INSTALL_DATA@%$INSTALL_DATA%g
25526 s%@PACKAGE@%$PACKAGE%g
25527 s%@VERSION@%$VERSION%g
25528 s%@ACLOCAL@%$ACLOCAL%g
25529 s%@AUTOCONF@%$AUTOCONF%g
25530 s%@AUTOMAKE@%$AUTOMAKE%g
25531 s%@AUTOHEADER@%$AUTOHEADER%g
25532 s%@MAKEINFO@%$MAKEINFO%g
25533 s%@install_sh@%$install_sh%g
25536 s%@AMTARFLAGS@%$AMTARFLAGS%g
25537 s%@SET_MAKE@%$SET_MAKE%g
25538 s%@OPENLDAP_LIBRELEASE@%$OPENLDAP_LIBRELEASE%g
25539 s%@OPENLDAP_LIBVERSION@%$OPENLDAP_LIBVERSION%g
25540 s%@OPENLDAP_RELEASE_DATE@%$OPENLDAP_RELEASE_DATE%g
25541 s%@top_builddir@%$top_builddir%g
25542 s%@ldap_subdir@%$ldap_subdir%g
25546 s%@OBJEXT@%$OBJEXT%g
25547 s%@EXEEXT@%$EXEEXT%g
25549 s%@RANLIB@%$RANLIB%g
25551 s%@DLLTOOL@%$DLLTOOL%g
25553 s%@OBJDUMP@%$OBJDUMP%g
25555 s%@LIBTOOL@%$LIBTOOL%g
25556 s%@PERLBIN@%$PERLBIN%g
25557 s%@OL_MKDEP@%$OL_MKDEP%g
25558 s%@OL_MKDEP_FLAGS@%$OL_MKDEP_FLAGS%g
25559 s%@LTSTATIC@%$LTSTATIC%g
25560 s%@LIBOBJS@%$LIBOBJS%g
25561 s%@LIBSRCS@%$LIBSRCS%g
25563 s%@WITH_SASL@%$WITH_SASL%g
25564 s%@WITH_TLS@%$WITH_TLS%g
25565 s%@WITH_MODULES_ENABLED@%$WITH_MODULES_ENABLED%g
25566 s%@BUILD_LIBS_DYNAMIC@%$BUILD_LIBS_DYNAMIC%g
25567 s%@BUILD_SLAPD@%$BUILD_SLAPD%g
25568 s%@BUILD_SLAPI@%$BUILD_SLAPI%g
25569 s%@SLAPD_SLAPI_DEPEND@%$SLAPD_SLAPI_DEPEND%g
25570 s%@BUILD_BDB@%$BUILD_BDB%g
25571 s%@BUILD_DNSSRV@%$BUILD_DNSSRV%g
25572 s%@BUILD_HDB@%$BUILD_HDB%g
25573 s%@BUILD_LDAP@%$BUILD_LDAP%g
25574 s%@BUILD_LDBM@%$BUILD_LDBM%g
25575 s%@BUILD_META@%$BUILD_META%g
25576 s%@BUILD_MONITOR@%$BUILD_MONITOR%g
25577 s%@BUILD_NULL@%$BUILD_NULL%g
25578 s%@BUILD_PASSWD@%$BUILD_PASSWD%g
25579 s%@BUILD_RELAY@%$BUILD_RELAY%g
25580 s%@BUILD_PERL@%$BUILD_PERL%g
25581 s%@BUILD_SHELL@%$BUILD_SHELL%g
25582 s%@BUILD_SQL@%$BUILD_SQL%g
25583 s%@BUILD_CHAIN@%$BUILD_CHAIN%g
25584 s%@BUILD_DENYOP@%$BUILD_DENYOP%g
25585 s%@BUILD_DYNGROUP@%$BUILD_DYNGROUP%g
25586 s%@BUILD_GLUE@%$BUILD_GLUE%g
25587 s%@BUILD_LASTMOD@%$BUILD_LASTMOD%g
25588 s%@BUILD_PPOLICY@%$BUILD_PPOLICY%g
25589 s%@BUILD_PROXYCACHE@%$BUILD_PROXYCACHE%g
25590 s%@BUILD_REFINT@%$BUILD_REFINT%g
25591 s%@BUILD_RWM@%$BUILD_RWM%g
25592 s%@BUILD_SYNCPROV@%$BUILD_SYNCPROV%g
25593 s%@BUILD_UNIQUE@%$BUILD_UNIQUE%g
25594 s%@BUILD_SLURPD@%$BUILD_SLURPD%g
25595 s%@LDAP_LIBS@%$LDAP_LIBS%g
25596 s%@SLAPD_LIBS@%$SLAPD_LIBS%g
25597 s%@SLURPD_LIBS@%$SLURPD_LIBS%g
25598 s%@LDBM_LIBS@%$LDBM_LIBS%g
25599 s%@LTHREAD_LIBS@%$LTHREAD_LIBS%g
25600 s%@LUTIL_LIBS@%$LUTIL_LIBS%g
25601 s%@WRAP_LIBS@%$WRAP_LIBS%g
25602 s%@SLAPD_MODULES_CPPFLAGS@%$SLAPD_MODULES_CPPFLAGS%g
25603 s%@SLAPD_MODULES_LDFLAGS@%$SLAPD_MODULES_LDFLAGS%g
25604 s%@SLAPD_NO_STATIC@%$SLAPD_NO_STATIC%g
25605 s%@SLAPD_STATIC_BACKENDS@%$SLAPD_STATIC_BACKENDS%g
25606 s%@SLAPD_DYNAMIC_BACKENDS@%$SLAPD_DYNAMIC_BACKENDS%g
25607 s%@SLAPD_DYNAMIC_OVERLAYS@%$SLAPD_DYNAMIC_OVERLAYS%g
25608 s%@PERL_CPPFLAGS@%$PERL_CPPFLAGS%g
25609 s%@SLAPD_PERL_LDFLAGS@%$SLAPD_PERL_LDFLAGS%g
25610 s%@MOD_PERL_LDFLAGS@%$MOD_PERL_LDFLAGS%g
25611 s%@KRB4_LIBS@%$KRB4_LIBS%g
25612 s%@KRB5_LIBS@%$KRB5_LIBS%g
25613 s%@SASL_LIBS@%$SASL_LIBS%g
25614 s%@TLS_LIBS@%$TLS_LIBS%g
25615 s%@MODULES_LIBS@%$MODULES_LIBS%g
25616 s%@SLAPI_LIBS@%$SLAPI_LIBS%g
25617 s%@LIBSLAPI@%$LIBSLAPI%g
25618 s%@LIBSLAPITOOLS@%$LIBSLAPITOOLS%g
25619 s%@AUTH_LIBS@%$AUTH_LIBS%g
25620 s%@SLAPD_SLP_LIBS@%$SLAPD_SLP_LIBS%g
25621 s%@SLAPD_GMP_LIBS@%$SLAPD_GMP_LIBS%g
25622 s%@SLAPD_SQL_LDFLAGS@%$SLAPD_SQL_LDFLAGS%g
25623 s%@SLAPD_SQL_LIBS@%$SLAPD_SQL_LIBS%g
25624 s%@SLAPD_SQL_INCLUDES@%$SLAPD_SQL_INCLUDES%g
25629 cat >> $CONFIG_STATUS <<\EOF
25631 # Split the substitutions into bite-sized pieces for seds with
25632 # small command number limits, like on Digital OSF/1 and HP-UX.
25633 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
25634 ac_file=1 # Number of current file.
25635 ac_beg=1 # First line for current file.
25636 ac_end=$ac_max_sed_cmds # Line after last line for current file.
25639 while $ac_more_lines; do
25640 if test $ac_beg -gt 1; then
25641 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
25643 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
25645 if test ! -s conftest.s$ac_file; then
25646 ac_more_lines=false
25647 rm -f conftest.s$ac_file
25649 if test -z "$ac_sed_cmds"; then
25650 ac_sed_cmds="sed -f conftest.s$ac_file"
25652 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
25654 ac_file=`expr $ac_file + 1`
25656 ac_end=`expr $ac_end + $ac_max_sed_cmds`
25659 if test -z "$ac_sed_cmds"; then
25664 cat >> $CONFIG_STATUS <<EOF
25666 CONFIG_FILES=\${CONFIG_FILES-"\
25667 Makefile:build/top.mk:Makefile.in:build/dir.mk \
25668 doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk \
25669 doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk \
25670 doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk \
25671 doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk \
25672 doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk \
25673 doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk \
25674 clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk \
25675 clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk \
25676 include/Makefile:build/top.mk:include/Makefile.in \
25677 libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk \
25678 libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk \
25679 libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk \
25680 libraries/libldap_r/Makefile:build/top.mk:libraries/libldap_r/Makefile.in:build/lib.mk:build/lib-shared.mk \
25681 libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk \
25682 libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk \
25683 libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk \
25684 servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk \
25685 servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk \
25686 servers/slapd/back-bdb/Makefile:build/top.mk:servers/slapd/back-bdb/Makefile.in:build/mod.mk \
25687 servers/slapd/back-dnssrv/Makefile:build/top.mk:servers/slapd/back-dnssrv/Makefile.in:build/mod.mk \
25688 servers/slapd/back-hdb/Makefile:build/top.mk:servers/slapd/back-hdb/Makefile.in:build/mod.mk \
25689 servers/slapd/back-ldap/Makefile:build/top.mk:servers/slapd/back-ldap/Makefile.in:build/mod.mk \
25690 servers/slapd/back-ldbm/Makefile:build/top.mk:servers/slapd/back-ldbm/Makefile.in:build/mod.mk \
25691 servers/slapd/back-meta/Makefile:build/top.mk:servers/slapd/back-meta/Makefile.in:build/mod.mk \
25692 servers/slapd/back-monitor/Makefile:build/top.mk:servers/slapd/back-monitor/Makefile.in:build/mod.mk \
25693 servers/slapd/back-null/Makefile:build/top.mk:servers/slapd/back-null/Makefile.in:build/mod.mk \
25694 servers/slapd/back-passwd/Makefile:build/top.mk:servers/slapd/back-passwd/Makefile.in:build/mod.mk \
25695 servers/slapd/back-perl/Makefile:build/top.mk:servers/slapd/back-perl/Makefile.in:build/mod.mk \
25696 servers/slapd/back-relay/Makefile:build/top.mk:servers/slapd/back-relay/Makefile.in:build/mod.mk \
25697 servers/slapd/back-shell/Makefile:build/top.mk:servers/slapd/back-shell/Makefile.in:build/mod.mk \
25698 servers/slapd/back-sql/Makefile:build/top.mk:servers/slapd/back-sql/Makefile.in:build/mod.mk \
25699 servers/slapd/shell-backends/Makefile:build/top.mk:servers/slapd/shell-backends/Makefile.in:build/srv.mk \
25700 servers/slapd/slapi/Makefile:build/top.mk:servers/slapd/slapi/Makefile.in:build/lib.mk:build/lib-shared.mk \
25701 servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk \
25702 servers/slurpd/Makefile:build/top.mk:servers/slurpd/Makefile.in:build/srv.mk \
25703 tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk \
25705 tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk \
25708 cat >> $CONFIG_STATUS <<\EOF
25709 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
25710 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25712 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
25713 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25714 *) ac_file_in="${ac_file}.in" ;;
25717 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
25719 # Remove last slash and all that follows it. Not all systems have dirname.
25720 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
25721 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
25722 # The file is in a subdirectory.
25723 test ! -d "$ac_dir" && mkdir "$ac_dir"
25724 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
25725 # A "../" for each directory in $ac_dir_suffix.
25726 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
25728 ac_dir_suffix= ac_dots=
25731 case "$ac_given_srcdir" in
25733 if test -z "$ac_dots"; then top_srcdir=.
25734 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
25735 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
25736 *) # Relative path.
25737 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
25738 top_srcdir="$ac_dots$ac_given_srcdir" ;;
25741 case "$ac_given_INSTALL" in
25742 [/$]*) INSTALL="$ac_given_INSTALL" ;;
25743 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
25746 echo creating "$ac_file"
25748 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
25750 *[Mm]akefile*) ac_comsub="1i\\
25751 # $configure_input" ;;
25755 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
25757 s%@configure_input@%$configure_input%g
25758 s%@srcdir@%$srcdir%g
25759 s%@top_srcdir@%$top_srcdir%g
25760 s%@INSTALL@%$INSTALL%g
25761 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
25765 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25766 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25768 # ac_d sets the value in "#define NAME VALUE" lines.
25769 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25770 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
25773 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
25774 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25775 ac_uB='\([ ]\)%\1#\2define\3'
25778 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25779 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25780 ac_eB='$%\1#\2define\3'
25784 if test "${CONFIG_HEADERS+set}" != set; then
25786 cat >> $CONFIG_STATUS <<EOF
25787 CONFIG_HEADERS="include/portable.h include/ldap_features.h include/lber_types.h"
25789 cat >> $CONFIG_STATUS <<\EOF
25791 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
25792 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25794 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
25795 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
25796 *) ac_file_in="${ac_file}.in" ;;
25799 echo creating $ac_file
25801 rm -f conftest.frag conftest.in conftest.out
25802 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
25803 cat $ac_file_inputs > conftest.in
25807 # Transform confdefs.h into a sed script conftest.vals that substitutes
25808 # the proper values into config.h.in to produce config.h. And first:
25809 # Protect against being on the right side of a sed subst in config.status.
25810 # Protect against being in an unquoted here document in config.status.
25811 rm -f conftest.vals
25812 cat > conftest.hdr <<\EOF
25815 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
25819 sed -n -f conftest.hdr confdefs.h > conftest.vals
25822 # This sed command replaces #undef with comments. This is necessary, for
25823 # example, in the case of _POSIX_SOURCE, which is predefined and required
25824 # on some systems where configure will not decide to define it.
25825 cat >> conftest.vals <<\EOF
25826 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
25829 # Break up conftest.vals because some shells have a limit on
25830 # the size of here documents, and old seds have small limits too.
25832 rm -f conftest.tail
25835 ac_lines=`grep -c . conftest.vals`
25836 # grep -c gives empty output for an empty file on some AIX systems.
25837 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
25838 # Write a limited-size here document to conftest.frag.
25839 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
25840 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
25842 sed -f conftest.frag conftest.in > conftest.out
25844 mv conftest.out conftest.in
25845 ' >> $CONFIG_STATUS
25846 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
25847 rm -f conftest.vals
25848 mv conftest.tail conftest.vals
25850 rm -f conftest.vals
25852 cat >> $CONFIG_STATUS <<\EOF
25853 rm -f conftest.frag conftest.h
25854 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
25855 cat conftest.in >> conftest.h
25857 if cmp -s $ac_file conftest.h 2>/dev/null; then
25858 echo "$ac_file is unchanged"
25861 # Remove last slash and all that follows it. Not all systems have dirname.
25862 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
25863 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
25864 # The file is in a subdirectory.
25865 test ! -d "$ac_dir" && mkdir "$ac_dir"
25868 mv conftest.h $ac_file
25873 cat >> $CONFIG_STATUS <<EOF
25874 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
25876 cat >> $CONFIG_STATUS <<\EOF
25880 BACKENDSC="servers/slapd/backends.c"
25881 echo "Making $BACKENDSC"
25883 cat > $BACKENDSC << ENDX
25884 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
25886 * Copyright 1998-2005 The OpenLDAP Foundation.
25887 * All rights reserved.
25889 * Redistribution and use in source and binary forms, with or without
25890 * modification, are permitted only as authorized by the OpenLDAP
25893 * A copy of this license is available in the file LICENSE in the
25894 * top-level directory of the distribution or, alternatively, at
25895 * <http://www.OpenLDAP.org/license.html>.
25897 /* This file is automatically generated by configure; please do not edit. */
25899 #include "portable.h"
25903 if test "${STATIC_BACKENDS}"; then
25904 for b in config ${STATIC_BACKENDS}; do
25905 bb=`echo "${b}" | sed -e 's/back-//'`
25906 cat >> $BACKENDSC << ENDX
25907 extern BI_init ${bb}_back_initialize;
25911 cat >> $BACKENDSC << ENDX
25913 BackendInfo slap_binfo[] = {
25916 for b in config ${STATIC_BACKENDS}; do
25917 bb=`echo "${b}" | sed -e 's/back-//'`
25918 echo " Add ${bb} ..."
25919 cat >> $BACKENDSC << ENDX
25920 { "${bb}", ${bb}_back_initialize },
25924 cat >> $BACKENDSC << ENDX
25928 /* end of generated file */
25932 echo Please run \"make depend\" to build dependencies
25936 chmod +x $CONFIG_STATUS
25937 rm -fr confdefs* $ac_clean_files
25938 test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1